From 0bf74a5b2e00eafbaad9f1ce3453b1dd58b3e47b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 8 Sep 2025 17:13:12 +0000 Subject: [PATCH] Update SDK to version v1.72.0 - Generated from OpenAPI spec version v1.72.0 - Auto-generated by GitHub Actions --- .sdk-version | 1 + README.md | 25 +- docs/ANNFunction.md | 4 +- docs/AiUnstripRequest.md | 29 + docs/AnalysesCoreApi.md | 88 + docs/AnalysesResultsMetadataApi.md | 6 +- docs/AnalysisCreateRequest.md | 2 +- docs/AnalysisTags.md | 30 + ...pApiRestV2AnalysesResponsesAnalysisTags.md | 30 - docs/AppApiRestV2InfoResponsesAnalysisTags.md | 30 - ...eResponsesBaseBaseResponseAnalysisTags1.md | 33 - ...eResponsesBaseBaseResponseAnalysisTags2.md | 33 - docs/AutoUnstripByGroupResponse.md | 33 + docs/AutoUnstripRequest.md | 30 + docs/AutoUnstripResponse.md | 33 + docs/BaseResponseAnalysisTags.md | 33 + docs/BaseResponseUploadResponse.md | 33 + docs/FunctionRename.md | 2 +- docs/FunctionRenameMap.md | 2 +- docs/FunctionsCoreApi.md | 432 +- docs/FunctionsDataTypesApi.md | 8 +- docs/MatchedFunctionGroup.md | 30 + docs/MatchedFunctionSuggestion.md | 31 + docs/SearchApi.md | 6 +- docs/{TagInput.md => Tag.md} | 16 +- docs/TagOutput.md | 30 - docs/UnstripRequest.md | 31 + docs/UploadFileType.md | 16 + docs/UploadResponse.md | 31 + revengai/__init__.py | 61 +- revengai/api/analyses_comments_api.py | 2 +- revengai/api/analyses_core_api.py | 344 +- .../api/analyses_dynamic_execution_api.py | 2 +- revengai/api/analyses_results_metadata_api.py | 14 +- revengai/api/analyses_security_checks_api.py | 2 +- revengai/api/authentication_users_api.py | 2 +- revengai/api/binaries_api.py | 2 +- revengai/api/collections_api.py | 2 +- revengai/api/confidence_api.py | 2 +- revengai/api/external_sources_api.py | 2 +- revengai/api/firmware_api.py | 2 +- .../api/functions_ai_decompilation_api.py | 2 +- revengai/api/functions_block_comments_api.py | 2 +- revengai/api/functions_core_api.py | 2318 ++++-- revengai/api/functions_data_types_api.py | 26 +- revengai/api/functions_decompilation_api.py | 2 +- .../api/functions_renaming_history_api.py | 2 +- revengai/api/functions_threat_score_api.py | 2 +- revengai/api/models_api.py | 2 +- revengai/api/search_api.py | 21 +- revengai/api/v1_api.py | 6373 ----------------- revengai/api_client.py | 4 +- revengai/configuration.py | 6 +- revengai/exceptions.py | 2 +- revengai/models/__init__.py | 40 +- revengai/models/addr.py | 2 +- revengai/models/ai_decompilation_rating.py | 2 +- ...param_mapping.py => ai_unstrip_request.py} | 22 +- revengai/models/analyse_created.py | 99 - revengai/models/analysis_access_info.py | 2 +- revengai/models/analysis_config.py | 2 +- revengai/models/analysis_create_request.py | 8 +- revengai/models/analysis_create_response.py | 2 +- revengai/models/analysis_detail_response.py | 2 +- revengai/models/analysis_form.py | 138 - revengai/models/analysis_functions.py | 2 +- revengai/models/analysis_record.py | 2 +- revengai/models/analysis_scope.py | 2 +- revengai/models/analysis_status.py | 94 - revengai/models/analysis_strings_response.py | 2 +- ...nses_analysis_tags.py => analysis_tags.py} | 10 +- revengai/models/analysis_threat_score_data.py | 2 +- revengai/models/analysis_update_request.py | 2 +- .../models/analysis_update_tags_request.py | 2 +- .../models/analysis_update_tags_response.py | 2 +- revengai/models/ann_function.py | 6 +- revengai/models/ann_input.py | 108 - ...p_api_rest_v1_analyse_schema_model_name.py | 44 - .../app_api_rest_v1_analyse_schema_status.py | 40 - .../app_api_rest_v1_analyse_schema_symbols.py | 97 - ...pi_rest_v1_analysis_info_responses_logs.py | 99 - ...app_api_rest_v1_ann_schema_ann_function.py | 135 - ...analyses_enums_dynamic_execution_status.py | 2 +- ...p_api_rest_v2_analyses_enums_model_name.py | 43 - ...app_api_rest_v2_analyses_enums_order_by.py | 2 +- .../app_api_rest_v2_analyses_enums_status.py | 41 - ...app_api_rest_v2_analyses_responses_logs.py | 87 - ...api_rest_v2_analyses_responses_tag_item.py | 2 +- ...pp_api_rest_v2_analyses_schemas_symbols.py | 97 - ..._api_rest_v2_collections_enums_order_by.py | 2 +- ...functions_rename_schema_function_rename.py | 94 - ...pi_rest_v2_functions_responses_function.py | 2 +- ...pp_api_rest_v2_functions_types_function.py | 2 +- ...pi_rest_v2_info_responses_analysis_tags.py | 104 - ..._rest_v2_similarity_schema_ann_function.py | 121 - ...app_services_binary_ann_schema_tag_item.py | 2 +- ...cution_schemas_dynamic_execution_status.py | 2 +- revengai/models/argument.py | 2 +- .../models/auto_unstrip_by_group_response.py | 132 + ...tion_rename.py => auto_unstrip_request.py} | 22 +- ...ad_success.py => auto_unstrip_response.py} | 61 +- revengai/models/base_response.py | 2 +- .../base_response_analysis_create_response.py | 2 +- .../base_response_analysis_detail_response.py | 2 +- .../base_response_analysis_functions.py | 2 +- ...base_response_analysis_strings_response.py | 2 +- ...ags1.py => base_response_analysis_tags.py} | 16 +- ...ase_response_analysis_threat_score_data.py | 2 +- ..._response_analysis_update_tags_response.py | 2 +- revengai/models/base_response_basic.py | 2 +- ...ase_response_binary_additional_response.py | 2 +- .../base_response_binary_ann_list_response.py | 2 +- .../base_response_binary_details_response.py | 2 +- ...base_response_binary_externals_response.py | 2 +- .../base_response_binary_search_response.py | 2 +- ...mments_generation_for_function_response.py | 2 +- ...k_comments_overview_generation_response.py | 2 +- revengai/models/base_response_bool.py | 2 +- .../base_response_box_plot_confidence.py | 2 +- ...ponse_callees_caller_functions_response.py | 2 +- revengai/models/base_response_capabilities.py | 2 +- ...nse_check_security_checks_task_response.py | 2 +- .../base_response_child_binaries_response.py | 2 +- ...nse_collection_binaries_update_response.py | 2 +- .../base_response_collection_response.py | 2 +- ...ase_response_collection_search_response.py | 2 +- ...esponse_collection_tags_update_response.py | 2 +- .../models/base_response_comment_response.py | 2 +- revengai/models/base_response_communities.py | 2 +- revengai/models/base_response_created.py | 2 +- .../base_response_decompilation_response.py | 2 +- revengai/models/base_response_dict.py | 2 +- .../base_response_dynamic_execution_status.py | 2 +- .../models/base_response_external_response.py | 2 +- ...nse_function_analysis_threat_score_data.py | 2 +- .../base_response_function_blocks_response.py | 2 +- ...e_response_function_capability_response.py | 2 +- .../base_response_function_data_types.py | 2 +- .../base_response_function_data_types_list.py | 2 +- .../base_response_function_search_response.py | 2 +- ...base_response_function_strings_response.py | 2 +- .../base_response_function_task_response.py | 2 +- .../base_response_function_threat_score.py | 2 +- ...base_response_functions_detail_response.py | 2 +- ...e_response_generate_function_data_types.py | 2 +- .../base_response_generation_status_list.py | 2 +- ...se_get_ai_decompilation_rating_response.py | 2 +- ...base_response_get_ai_decompilation_task.py | 2 +- .../base_response_get_public_user_response.py | 2 +- .../models/base_response_get_user_response.py | 2 +- .../base_response_list_collection_results.py | 2 +- .../base_response_list_comment_response.py | 2 +- .../models/base_response_list_die_match.py | 2 +- ...ponse_list_function_box_plot_confidence.py | 2 +- ...ase_response_list_function_name_history.py | 2 +- revengai/models/base_response_list_sbom.py | 2 +- ...esponse_list_similar_functions_response.py | 2 +- ...nse_list_tag_origin_box_plot_confidence.py | 2 +- ...se_response_list_user_activity_response.py | 2 +- .../models/base_response_login_response.py | 2 +- revengai/models/base_response_logs.py | 2 +- .../models/base_response_models_response.py | 2 +- ...base_response_nearest_neighbor_analysis.py | 2 +- ...base_response_network_overview_response.py | 2 +- revengai/models/base_response_params.py | 2 +- .../models/base_response_process_dumps.py | 2 +- .../models/base_response_process_registry.py | 2 +- revengai/models/base_response_process_tree.py | 2 +- ...se_queued_security_checks_task_response.py | 2 +- revengai/models/base_response_recent.py | 2 +- .../base_response_security_checks_response.py | 2 +- revengai/models/base_response_status.py | 2 +- revengai/models/base_response_str.py | 2 +- revengai/models/base_response_symbols_info.py | 2 +- .../base_response_tag_search_response.py | 2 +- .../models/base_response_task_response.py | 2 +- revengai/models/base_response_ttps.py | 2 +- ...s2.py => base_response_upload_response.py} | 16 +- .../models/base_response_vulnerabilities.py | 2 +- revengai/models/basic.py | 2 +- revengai/models/batch_ann.py | 106 - revengai/models/batch_function_rename.py | 95 - ...binary_additional_details_data_response.py | 2 +- revengai/models/binary_additional_response.py | 2 +- revengai/models/binary_ann_form.py | 2 +- revengai/models/binary_ann_list_response.py | 2 +- revengai/models/binary_config.py | 2 +- revengai/models/binary_details_response.py | 2 +- revengai/models/binary_externals_response.py | 2 +- revengai/models/binary_search_response.py | 2 +- revengai/models/binary_search_result.py | 2 +- revengai/models/binary_task_status.py | 2 +- revengai/models/block.py | 2 +- ...mments_generation_for_function_response.py | 2 +- revengai/models/boundary.py | 2 +- revengai/models/box_plot_confidence.py | 2 +- revengai/models/callee_function_info.py | 2 +- .../callees_caller_functions_response.py | 2 +- revengai/models/caller_function_info.py | 2 +- revengai/models/capabilities.py | 2 +- revengai/models/capability.py | 2 +- .../check_security_checks_task_response.py | 2 +- revengai/models/child_binaries_response.py | 2 +- revengai/models/code_signature_model.py | 2 +- .../collection_binaries_update_request.py | 2 +- .../collection_binaries_update_response.py | 2 +- revengai/models/collection_binary_response.py | 2 +- revengai/models/collection_count.py | 99 - revengai/models/collection_create_request.py | 2 +- revengai/models/collection_list_item.py | 2 +- revengai/models/collection_response.py | 2 +- .../collection_response_binaries_inner.py | 2 +- revengai/models/collection_scope.py | 2 +- revengai/models/collection_search_response.py | 2 +- revengai/models/collection_search_result.py | 2 +- .../models/collection_tags_update_request.py | 2 +- .../models/collection_tags_update_response.py | 2 +- revengai/models/collection_update_request.py | 2 +- revengai/models/comment_base.py | 2 +- revengai/models/comment_response.py | 2 +- revengai/models/comment_update_request.py | 2 +- revengai/models/communities.py | 2 +- .../models/community_match_percentages.py | 2 +- revengai/models/confidence_type.py | 2 +- revengai/models/config_settings.py | 101 - revengai/models/context.py | 2 +- .../models/create_ai_decompilation_request.py | 87 - revengai/models/created.py | 2 +- .../models/decompilation_comment_context.py | 2 +- revengai/models/decompilation_response.py | 2 +- revengai/models/deleted_analysis.py | 99 - revengai/models/die_match.py | 2 +- .../models/dynamic_execution_status_input.py | 2 +- revengai/models/elf_dynamic_entry.py | 2 +- revengai/models/elf_import_model.py | 2 +- revengai/models/elf_model.py | 2 +- revengai/models/elf_relocation.py | 2 +- revengai/models/elf_section.py | 2 +- revengai/models/elf_security.py | 2 +- revengai/models/elf_segment.py | 2 +- revengai/models/elf_symbol.py | 2 +- revengai/models/entrypoint_model.py | 2 +- revengai/models/enumeration.py | 2 +- revengai/models/error_model.py | 2 +- revengai/models/export_model.py | 2 +- revengai/models/exported_binary_ann_result.py | 2 +- revengai/models/external_response.py | 2 +- revengai/models/file_format.py | 2 +- revengai/models/file_hashes.py | 2 +- revengai/models/file_metadata.py | 2 +- revengai/models/file_options.py | 41 - revengai/models/filters.py | 2 +- .../function_analysis_threat_score_data.py | 2 +- revengai/models/function_batch_ann.py | 106 - .../function_block_destination_response.py | 2 +- revengai/models/function_block_response.py | 2 +- revengai/models/function_blocks_response.py | 2 +- revengai/models/function_boundary.py | 2 +- .../models/function_box_plot_confidence.py | 2 +- .../models/function_capability_response.py | 2 +- .../models/function_comment_create_request.py | 2 +- revengai/models/function_data_types.py | 2 +- revengai/models/function_data_types_list.py | 2 +- .../models/function_data_types_list_item.py | 2 +- revengai/models/function_data_types_params.py | 2 +- revengai/models/function_data_types_status.py | 2 +- revengai/models/function_dump.py | 106 - revengai/models/function_header.py | 2 +- revengai/models/function_info_input.py | 2 +- .../function_info_input_func_deps_inner.py | 2 +- revengai/models/function_info_output.py | 2 +- revengai/models/function_list.py | 87 - revengai/models/function_list_basic.py | 99 - .../function_local_variable_response.py | 2 +- revengai/models/function_mapping_full.py | 2 +- .../models/function_name_confidence_body.py | 2 +- revengai/models/function_name_history.py | 2 +- revengai/models/function_name_input.py | 2 +- revengai/models/function_param_response.py | 2 +- revengai/models/function_params.py | 95 - revengai/models/function_rename.py | 8 +- revengai/models/function_rename_map.py | 6 +- revengai/models/function_search_response.py | 2 +- revengai/models/function_search_result.py | 2 +- revengai/models/function_string.py | 2 +- revengai/models/function_strings_response.py | 2 +- revengai/models/function_task_response.py | 2 +- revengai/models/function_task_status.py | 2 +- revengai/models/function_threat_score.py | 2 +- revengai/models/function_type_input.py | 2 +- revengai/models/function_type_output.py | 2 +- revengai/models/functions_detail_response.py | 2 +- revengai/models/functions_list_rename.py | 2 +- .../models/generate_function_data_types.py | 2 +- revengai/models/generation_status_list.py | 2 +- .../get_ai_decompilation_rating_response.py | 2 +- revengai/models/get_ai_decompilation_task.py | 2 +- revengai/models/get_public_user_response.py | 2 +- revengai/models/get_user_response.py | 2 +- revengai/models/global_variable.py | 2 +- revengai/models/icon_model.py | 2 +- revengai/models/import_model.py | 2 +- revengai/models/inverse_function_map_item.py | 2 +- revengai/models/inverse_string_map_item.py | 2 +- revengai/models/inverse_value.py | 2 +- revengai/models/isa.py | 2 +- revengai/models/isa_options.py | 39 - revengai/models/list_collection_results.py | 2 +- revengai/models/login_request.py | 2 +- revengai/models/login_response.py | 2 +- revengai/models/logs.py | 2 +- ...ount_form.py => matched_function_group.py} | 23 +- ...cord.py => matched_function_suggestion.py} | 30 +- revengai/models/meta_model.py | 2 +- revengai/models/model_list.py | 99 - revengai/models/model_name.py | 2 +- revengai/models/models_response.py | 2 +- revengai/models/nearest_neighbor.py | 2 +- revengai/models/network_overview_dns.py | 2 +- .../models/network_overview_dns_answer.py | 2 +- revengai/models/network_overview_metadata.py | 2 +- revengai/models/network_overview_response.py | 2 +- revengai/models/order.py | 2 +- revengai/models/origin.py | 2 +- revengai/models/pagination_model.py | 2 +- revengai/models/params.py | 2 +- revengai/models/pdb_debug_model.py | 2 +- revengai/models/pe_model.py | 2 +- revengai/models/platform.py | 2 +- revengai/models/platform_options.py | 40 - revengai/models/process.py | 2 +- revengai/models/process_dump.py | 2 +- revengai/models/process_dump_metadata.py | 2 +- revengai/models/process_dumps.py | 2 +- revengai/models/process_dumps_data.py | 2 +- revengai/models/process_registry.py | 2 +- revengai/models/process_tree.py | 2 +- .../queued_security_checks_task_response.py | 2 +- revengai/models/quick_search.py | 99 - revengai/models/re_analysis_form.py | 2 +- revengai/models/recent.py | 2 +- revengai/models/recent_analysis.py | 99 - revengai/models/recent_analysis_form.py | 92 - revengai/models/registry.py | 2 +- revengai/models/relative_binary_response.py | 2 +- revengai/models/rename.py | 99 - revengai/models/sandbox_options.py | 2 +- revengai/models/sbom.py | 2 +- revengai/models/sbom_package.py | 2 +- revengai/models/scrape_third_party_config.py | 2 +- revengai/models/search_binary_ids.py | 2 +- revengai/models/search_function_ids.py | 2 +- revengai/models/search_query.py | 99 - revengai/models/section_model.py | 2 +- revengai/models/security_checks_response.py | 2 +- revengai/models/security_checks_result.py | 2 +- revengai/models/security_model.py | 2 +- revengai/models/severity_type.py | 2 +- revengai/models/similar_functions_response.py | 2 +- .../models/single_code_certificate_model.py | 2 +- .../models/single_code_signature_model.py | 2 +- revengai/models/single_pdb_entry_model.py | 2 +- revengai/models/single_section_model.py | 2 +- revengai/models/stack_variable.py | 2 +- revengai/models/status_input.py | 2 +- revengai/models/status_output.py | 2 +- revengai/models/string_functions.py | 2 +- revengai/models/structure.py | 2 +- revengai/models/structure_member.py | 2 +- revengai/models/symbols.py | 2 +- revengai/models/symbols_info.py | 2 +- revengai/models/{tag_input.py => tag.py} | 10 +- revengai/models/tag_confidence_body.py | 2 +- .../models/tag_origin_box_plot_confidence.py | 2 +- revengai/models/tag_output.py | 89 - revengai/models/tag_response.py | 2 +- revengai/models/tag_search_response.py | 2 +- revengai/models/tag_search_result.py | 2 +- revengai/models/tags.py | 2 +- revengai/models/task_response.py | 2 +- revengai/models/task_status.py | 2 +- revengai/models/threat_score_function_body.py | 2 +- revengai/models/timestamp_model.py | 2 +- revengai/models/ttps.py | 2 +- revengai/models/ttps_attack.py | 2 +- revengai/models/ttps_data.py | 2 +- revengai/models/ttps_element.py | 2 +- revengai/models/ttps_occurance.py | 2 +- revengai/models/type_definition.py | 2 +- .../{search_form.py => unstrip_request.py} | 35 +- revengai/models/update_function_data_types.py | 2 +- .../models/{scope.py => upload_file_type.py} | 16 +- ...{user_boundaries.py => upload_response.py} | 27 +- .../upsert_ai_decomplation_rating_request.py | 2 +- revengai/models/user_activity_response.py | 2 +- revengai/models/vulnerabilities.py | 2 +- revengai/models/vulnerability.py | 2 +- revengai/models/vulnerability_type.py | 2 +- revengai/models/workspace.py | 2 +- revengai/rest.py | 2 +- revengai/test/__init__.py | 0 revengai/test/test_ai_decompilation_rating.py | 33 - revengai/test/test_analyses_comments_api.py | 59 - revengai/test/test_analyses_core_api.py | 136 - .../test_analyses_dynamic_execution_api.py | 80 - .../test_analyses_results_metadata_api.py | 143 - .../test/test_analyses_security_checks_api.py | 52 - revengai/test/test_analysis_access_info.py | 54 - revengai/test/test_analysis_config.py | 60 - revengai/test/test_analysis_create_request.py | 83 - .../test/test_analysis_create_response.py | 54 - .../test/test_analysis_detail_response.py | 83 - revengai/test/test_analysis_form.py | 81 - revengai/test/test_analysis_functions.py | 78 - revengai/test/test_analysis_record.py | 74 - revengai/test/test_analysis_scope.py | 33 - .../test/test_analysis_strings_response.py | 70 - .../test/test_analysis_threat_score_data.py | 64 - revengai/test/test_analysis_update_request.py | 52 - .../test/test_analysis_update_tags_request.py | 56 - .../test_analysis_update_tags_response.py | 60 - revengai/test/test_ann_function.py | 61 - revengai/test/test_ann_input.py | 56 - ...p_api_rest_v1_analyse_schema_model_name.py | 33 - ...t_app_api_rest_v1_analyse_schema_status.py | 33 - ..._app_api_rest_v1_analyse_schema_symbols.py | 57 - ...pi_rest_v1_analysis_info_responses_logs.py | 53 - ...v1_analysis_info_schema_function_rename.py | 52 - ...app_api_rest_v1_ann_schema_ann_function.py | 74 - ...analyses_enums_dynamic_execution_status.py | 33 - ...p_api_rest_v2_analyses_enums_model_name.py | 33 - ...app_api_rest_v2_analyses_enums_order_by.py | 33 - ...t_app_api_rest_v2_analyses_enums_status.py | 33 - ...est_v2_analyses_responses_analysis_tags.py | 74 - ...app_api_rest_v2_analyses_responses_logs.py | 52 - ...api_rest_v2_analyses_responses_tag_item.py | 55 - ...pp_api_rest_v2_analyses_schemas_symbols.py | 57 - ..._api_rest_v2_collections_enums_order_by.py | 33 - ...functions_rename_schema_function_rename.py | 52 - ...pi_rest_v2_functions_responses_function.py | 54 - ...pp_api_rest_v2_functions_types_function.py | 72 - ...pi_rest_v2_info_responses_analysis_tags.py | 70 - ..._rest_v2_similarity_schema_ann_function.py | 61 - ...onses_base_base_response_analysis_tags1.py | 73 - ...onses_base_base_response_analysis_tags2.py | 75 - ...app_services_binary_ann_schema_tag_item.py | 52 - ...cution_schemas_dynamic_execution_status.py | 52 - revengai/test/test_argument.py | 59 - .../test/test_authentication_users_api.py | 66 - revengai/test/test_base_response.py | 63 - ..._base_response_analysis_create_response.py | 65 - ..._base_response_analysis_detail_response.py | 81 - .../test_base_response_analysis_functions.py | 77 - ...base_response_analysis_strings_response.py | 73 - ...ase_response_analysis_threat_score_data.py | 70 - ..._response_analysis_update_tags_response.py | 68 - revengai/test/test_base_response_basic.py | 74 - ...ase_response_binary_additional_response.py | 259 - ..._base_response_binary_ann_list_response.py | 83 - ...t_base_response_binary_details_response.py | 83 - ...base_response_binary_externals_response.py | 72 - ...st_base_response_binary_search_response.py | 77 - ...mments_generation_for_function_response.py | 64 - ...k_comments_overview_generation_response.py | 63 - revengai/test/test_base_response_bool.py | 63 - .../test_base_response_box_plot_confidence.py | 70 - ...ponse_callees_caller_functions_response.py | 82 - .../test/test_base_response_capabilities.py | 71 - ...nse_check_security_checks_task_response.py | 64 - ...t_base_response_child_binaries_response.py | 73 - ...nse_collection_binaries_update_response.py | 72 - .../test_base_response_collection_response.py | 78 - ...ase_response_collection_search_response.py | 80 - ...esponse_collection_tags_update_response.py | 66 - .../test_base_response_comment_response.py | 71 - .../test/test_base_response_communities.py | 77 - revengai/test/test_base_response_created.py | 66 - ...st_base_response_decompilation_response.py | 66 - revengai/test/test_base_response_dict.py | 65 - ..._base_response_dynamic_execution_status.py | 64 - .../test_base_response_external_response.py | 68 - ...nse_function_analysis_threat_score_data.py | 70 - ..._base_response_function_blocks_response.py | 96 - ...e_response_function_capability_response.py | 66 - .../test_base_response_function_data_types.py | 99 - ..._base_response_function_data_types_list.py | 105 - ..._base_response_function_search_response.py | 73 - ...base_response_function_strings_response.py | 69 - ...st_base_response_function_task_response.py | 65 - ...est_base_response_function_threat_score.py | 73 - ...base_response_functions_detail_response.py | 78 - ...e_response_generate_function_data_types.py | 74 - ...st_base_response_generation_status_list.py | 71 - ...se_get_ai_decompilation_rating_response.py | 64 - ...base_response_get_ai_decompilation_task.py | 118 - ..._base_response_get_public_user_response.py | 65 - .../test_base_response_get_user_response.py | 70 - ...t_base_response_list_collection_results.py | 79 - ...est_base_response_list_comment_response.py | 73 - .../test/test_base_response_list_die_match.py | 69 - ...ponse_list_function_box_plot_confidence.py | 74 - ...ase_response_list_function_name_history.py | 71 - revengai/test/test_base_response_list_sbom.py | 73 - ...esponse_list_similar_functions_response.py | 77 - ...nse_list_tag_origin_box_plot_confidence.py | 76 - ...se_response_list_user_activity_response.py | 71 - .../test/test_base_response_login_response.py | 64 - revengai/test/test_base_response_logs.py | 64 - ...base_response_nearest_neighbor_analysis.py | 75 - ...base_response_network_overview_response.py | 80 - revengai/test/test_base_response_params.py | 70 - .../test/test_base_response_process_dumps.py | 76 - .../test_base_response_process_registry.py | 73 - .../test/test_base_response_process_tree.py | 78 - ...se_queued_security_checks_task_response.py | 64 - revengai/test/test_base_response_recent.py | 79 - ..._base_response_security_checks_response.py | 76 - revengai/test/test_base_response_status.py | 65 - revengai/test/test_base_response_str.py | 63 - .../test/test_base_response_symbols_info.py | 68 - .../test_base_response_tag_search_response.py | 68 - .../test/test_base_response_task_response.py | 65 - revengai/test/test_base_response_ttps.py | 81 - .../test_base_response_vulnerabilities.py | 77 - revengai/test/test_basic.py | 72 - revengai/test/test_batch_ann.py | 55 - revengai/test/test_batch_function_rename.py | 60 - .../test/test_batch_function_rename_record.py | 54 - revengai/test/test_binaries_api.py | 73 - ...binary_additional_details_data_response.py | 256 - .../test/test_binary_additional_response.py | 441 -- revengai/test/test_binary_ann_form.py | 58 - .../test/test_binary_ann_list_response.py | 90 - revengai/test/test_binary_config.py | 53 - revengai/test/test_binary_details_response.py | 90 - .../test/test_binary_externals_response.py | 68 - revengai/test/test_binary_search_response.py | 78 - revengai/test/test_binary_search_result.py | 72 - revengai/test/test_binary_task_status.py | 33 - revengai/test/test_block.py | 52 - ...mments_generation_for_function_response.py | 52 - revengai/test/test_boundary.py | 56 - revengai/test/test_box_plot_confidence.py | 64 - revengai/test/test_callee_function_info.py | 61 - .../test_callees_caller_functions_response.py | 87 - revengai/test/test_caller_function_info.py | 61 - revengai/test/test_capabilities.py | 66 - ...est_check_security_checks_task_response.py | 52 - revengai/test/test_child_binaries_response.py | 66 - revengai/test/test_code_signature_model.py | 80 - ...test_collection_binaries_update_request.py | 56 - ...est_collection_binaries_update_response.py | 68 - .../test/test_collection_binary_response.py | 62 - revengai/test/test_collection_count.py | 53 - .../test/test_collection_create_request.py | 63 - revengai/test/test_collection_list_item.py | 72 - revengai/test/test_collection_response.py | 73 - ...test_collection_response_binaries_inner.py | 62 - revengai/test/test_collection_scope.py | 33 - .../test/test_collection_search_response.py | 84 - .../test/test_collection_search_result.py | 73 - .../test_collection_tags_update_request.py | 56 - .../test_collection_tags_update_response.py | 56 - .../test/test_collection_update_request.py | 53 - revengai/test/test_collections_api.py | 80 - revengai/test/test_collections_count_form.py | 52 - revengai/test/test_comment_response.py | 65 - revengai/test/test_comment_update_request.py | 52 - revengai/test/test_communities.py | 78 - .../test/test_community_match_percentages.py | 58 - revengai/test/test_confidence_api.py | 59 - revengai/test/test_confidence_type.py | 33 - revengai/test/test_config_settings.py | 70 - revengai/test/test_context.py | 54 - .../test_create_ai_decompilation_request.py | 52 - revengai/test/test_created.py | 56 - .../test_decompilation_comment_context.py | 54 - revengai/test/test_decompilation_response.py | 56 - revengai/test/test_deleted_analysis.py | 52 - revengai/test/test_die_match.py | 58 - .../test_dynamic_execution_status_input.py | 33 - revengai/test/test_elf_dynamic_entry.py | 54 - revengai/test/test_elf_import_model.py | 58 - revengai/test/test_elf_model.py | 236 - revengai/test/test_elf_relocation.py | 64 - revengai/test/test_elf_section.py | 70 - revengai/test/test_elf_security.py | 60 - revengai/test/test_elf_segment.py | 68 - revengai/test/test_elf_symbol.py | 64 - revengai/test/test_entrypoint_model.py | 54 - revengai/test/test_enumeration.py | 60 - revengai/test/test_error_model.py | 54 - revengai/test/test_export_model.py | 62 - .../test/test_exported_binary_ann_result.py | 79 - revengai/test/test_external_response.py | 60 - revengai/test/test_external_sources_api.py | 73 - revengai/test/test_file_hashes.py | 66 - revengai/test/test_file_metadata.py | 74 - revengai/test/test_file_options.py | 33 - revengai/test/test_filters.py | 33 - revengai/test/test_firmware_api.py | 45 - ...est_function_analysis_threat_score_data.py | 64 - revengai/test/test_function_batch_ann.py | 55 - ...est_function_block_destination_response.py | 56 - revengai/test/test_function_block_response.py | 75 - .../test/test_function_blocks_response.py | 116 - revengai/test/test_function_boundary.py | 56 - .../test/test_function_box_plot_confidence.py | 68 - .../test/test_function_capability_response.py | 56 - .../test_function_comment_create_request.py | 55 - revengai/test/test_function_data_types.py | 88 - .../test/test_function_data_types_list.py | 132 - .../test_function_data_types_list_item.py | 90 - .../test/test_function_data_types_params.py | 56 - .../test/test_function_data_types_status.py | 56 - revengai/test/test_function_dump.py | 55 - revengai/test/test_function_header.py | 73 - revengai/test/test_function_info_input.py | 85 - ...est_function_info_input_func_deps_inner.py | 66 - revengai/test/test_function_info_output.py | 85 - revengai/test/test_function_list.py | 56 - revengai/test/test_function_list_basic.py | 53 - .../test_function_local_variable_response.py | 60 - revengai/test/test_function_mapping_full.py | 148 - .../test_function_name_confidence_body.py | 56 - revengai/test/test_function_name_history.py | 62 - revengai/test/test_function_name_input.py | 54 - revengai/test/test_function_param_mapping.py | 54 - revengai/test/test_function_param_response.py | 60 - revengai/test/test_function_params.py | 60 - revengai/test/test_function_rename.py | 52 - revengai/test/test_function_rename_map.py | 55 - .../test/test_function_search_response.py | 70 - revengai/test/test_function_search_result.py | 64 - revengai/test/test_function_string.py | 54 - .../test/test_function_strings_response.py | 62 - revengai/test/test_function_task_response.py | 52 - revengai/test/test_function_task_status.py | 33 - revengai/test/test_function_threat_score.py | 70 - revengai/test/test_function_type_input.py | 95 - revengai/test/test_function_type_output.py | 95 - .../test_functions_ai_decompilation_api.py | 108 - .../test/test_functions_block_comments_api.py | 73 - revengai/test/test_functions_core_api.py | 87 - .../test/test_functions_data_types_api.py | 101 - .../test/test_functions_decompilation_api.py | 80 - .../test/test_functions_detail_response.py | 74 - revengai/test/test_functions_list_rename.py | 62 - .../test_functions_renaming_history_api.py | 59 - .../test/test_functions_threat_score_api.py | 59 - .../test/test_generate_function_data_types.py | 72 - revengai/test/test_generation_status_list.py | 64 - ...st_get_ai_decompilation_rating_response.py | 52 - .../test/test_get_ai_decompilation_task.py | 157 - .../test/test_get_public_user_response.py | 54 - revengai/test/test_get_user_response.py | 64 - revengai/test/test_global_variable.py | 60 - revengai/test/test_icon_model.py | 52 - revengai/test/test_import_model.py | 66 - .../test/test_inverse_function_map_item.py | 55 - revengai/test/test_inverse_string_map_item.py | 54 - revengai/test/test_inverse_value.py | 52 - revengai/test/test_isa.py | 33 - revengai/test/test_isa_options.py | 33 - revengai/test/test_list_collection_results.py | 82 - revengai/test/test_login_request.py | 54 - revengai/test/test_login_response.py | 52 - revengai/test/test_logs.py | 52 - revengai/test/test_meta_model.py | 54 - revengai/test/test_model_list.py | 53 - revengai/test/test_model_name.py | 33 - revengai/test/test_models_api.py | 38 - revengai/test/test_models_response.py | 56 - revengai/test/test_nearest_neighbor.py | 66 - revengai/test/test_network_overview_dns.py | 64 - .../test/test_network_overview_dns_answer.py | 54 - .../test/test_network_overview_metadata.py | 58 - .../test/test_network_overview_response.py | 84 - revengai/test/test_order.py | 33 - revengai/test/test_origin.py | 33 - revengai/test/test_pagination_model.py | 56 - revengai/test/test_params.py | 64 - revengai/test/test_pdb_debug_model.py | 62 - revengai/test/test_pe_model.py | 220 - revengai/test/test_platform.py | 33 - revengai/test/test_platform_options.py | 33 - revengai/test/test_process.py | 72 - revengai/test/test_process_dump.py | 64 - revengai/test/test_process_dump_metadata.py | 56 - revengai/test/test_process_dumps.py | 76 - revengai/test/test_process_dumps_data.py | 72 - revengai/test/test_process_registry.py | 70 - revengai/test/test_process_tree.py | 80 - ...st_queued_security_checks_task_response.py | 52 - revengai/test/test_quick_search.py | 53 - revengai/test/test_re_analysis_form.py | 58 - revengai/test/test_recent.py | 82 - revengai/test/test_recent_analysis.py | 53 - revengai/test/test_recent_analysis_form.py | 53 - revengai/test/test_registry.py | 58 - .../test/test_relative_binary_response.py | 56 - revengai/test/test_rename.py | 53 - revengai/test/test_sandbox_options.py | 52 - revengai/test/test_sbom.py | 66 - revengai/test/test_sbom_package.py | 54 - revengai/test/test_scope.py | 33 - .../test/test_scrape_third_party_config.py | 51 - revengai/test/test_search_api.py | 59 - revengai/test/test_search_binary_ids.py | 50 - revengai/test/test_search_function_ids.py | 50 - revengai/test/test_search_query.py | 52 - revengai/test/test_section_model.py | 72 - .../test/test_security_checks_response.py | 76 - revengai/test/test_security_checks_result.py | 66 - revengai/test/test_security_model.py | 72 - revengai/test/test_severity_type.py | 33 - .../test/test_similar_functions_response.py | 74 - .../test_single_code_certificate_model.py | 62 - .../test/test_single_code_signature_model.py | 70 - revengai/test/test_single_pdb_entry_model.py | 56 - revengai/test/test_single_section_model.py | 64 - revengai/test/test_stack_variable.py | 61 - revengai/test/test_status_input.py | 33 - revengai/test/test_status_output.py | 54 - revengai/test/test_string_functions.py | 62 - revengai/test/test_structure.py | 71 - revengai/test/test_structure_member.py | 59 - revengai/test/test_symbols.py | 57 - revengai/test/test_symbols_info.py | 55 - revengai/test/test_tag_confidence_body.py | 60 - revengai/test/test_tag_input.py | 52 - .../test_tag_origin_box_plot_confidence.py | 72 - revengai/test/test_tag_output.py | 54 - revengai/test/test_tag_response.py | 54 - revengai/test/test_tag_search_response.py | 60 - revengai/test/test_tag_search_result.py | 54 - revengai/test/test_tags.py | 54 - revengai/test/test_task_response.py | 52 - revengai/test/test_task_status.py | 33 - .../test/test_threat_score_function_body.py | 53 - revengai/test/test_timestamp_model.py | 56 - revengai/test/test_ttps.py | 86 - revengai/test/test_ttps_attack.py | 54 - revengai/test/test_ttps_data.py | 82 - revengai/test/test_ttps_element.py | 74 - revengai/test/test_ttps_occurance.py | 54 - revengai/test/test_type_definition.py | 56 - .../test/test_update_function_data_types.py | 118 - revengai/test/test_upload_success.py | 54 - ...t_upsert_ai_decomplation_rating_request.py | 52 - revengai/test/test_user_activity_response.py | 62 - revengai/test/test_user_boundaries.py | 56 - revengai/test/test_v1_api.py | 185 - revengai/test/test_vulnerabilities.py | 78 - revengai/test/test_vulnerability.py | 71 - revengai/test/test_vulnerability_type.py | 33 - revengai/test/test_workspace.py | 33 - test/test_addr.py | 2 +- test/test_ai_decompilation_rating.py | 2 +- .../test_ai_unstrip_request.py | 25 +- test/test_analyses_comments_api.py | 2 +- test/test_analyses_core_api.py | 9 +- test/test_analyses_dynamic_execution_api.py | 2 +- test/test_analyses_results_metadata_api.py | 2 +- test/test_analyses_security_checks_api.py | 2 +- test/test_analysis_access_info.py | 2 +- test/test_analysis_config.py | 2 +- test/test_analysis_create_request.py | 2 +- test/test_analysis_create_response.py | 2 +- test/test_analysis_detail_response.py | 2 +- test/test_analysis_functions.py | 2 +- test/test_analysis_record.py | 2 +- test/test_analysis_scope.py | 2 +- test/test_analysis_strings_response.py | 2 +- ...analysis_tags.py => test_analysis_tags.py} | 24 +- test/test_analysis_threat_score_data.py | 2 +- test/test_analysis_update_request.py | 2 +- test/test_analysis_update_tags_request.py | 2 +- test/test_analysis_update_tags_response.py | 2 +- test/test_ann_function.py | 2 +- ...analyses_enums_dynamic_execution_status.py | 2 +- ...app_api_rest_v2_analyses_enums_order_by.py | 2 +- ...api_rest_v2_analyses_responses_tag_item.py | 2 +- ..._api_rest_v2_collections_enums_order_by.py | 2 +- ...pi_rest_v2_functions_responses_function.py | 2 +- ...pp_api_rest_v2_functions_types_function.py | 2 +- ...pi_rest_v2_info_responses_analysis_tags.py | 70 - ...onses_base_base_response_analysis_tags1.py | 73 - ...app_services_binary_ann_schema_tag_item.py | 2 +- ...cution_schemas_dynamic_execution_status.py | 2 +- test/test_argument.py | 2 +- test/test_authentication_users_api.py | 2 +- test/test_auto_unstrip_by_group_response.py | 61 + .../test_auto_unstrip_request.py | 29 +- test/test_auto_unstrip_response.py | 60 + test/test_base_response.py | 2 +- ..._base_response_analysis_create_response.py | 2 +- ..._base_response_analysis_detail_response.py | 2 +- test/test_base_response_analysis_functions.py | 2 +- ...base_response_analysis_strings_response.py | 2 +- ...py => test_base_response_analysis_tags.py} | 24 +- ...ase_response_analysis_threat_score_data.py | 2 +- ..._response_analysis_update_tags_response.py | 2 +- test/test_base_response_basic.py | 2 +- ...ase_response_binary_additional_response.py | 2 +- ..._base_response_binary_ann_list_response.py | 2 +- ...t_base_response_binary_details_response.py | 2 +- ...base_response_binary_externals_response.py | 2 +- ...st_base_response_binary_search_response.py | 2 +- ...mments_generation_for_function_response.py | 2 +- ...k_comments_overview_generation_response.py | 2 +- test/test_base_response_bool.py | 2 +- .../test_base_response_box_plot_confidence.py | 2 +- ...ponse_callees_caller_functions_response.py | 2 +- test/test_base_response_capabilities.py | 2 +- ...nse_check_security_checks_task_response.py | 2 +- ...t_base_response_child_binaries_response.py | 2 +- ...nse_collection_binaries_update_response.py | 2 +- .../test_base_response_collection_response.py | 2 +- ...ase_response_collection_search_response.py | 2 +- ...esponse_collection_tags_update_response.py | 2 +- test/test_base_response_comment_response.py | 2 +- test/test_base_response_communities.py | 2 +- test/test_base_response_created.py | 2 +- ...st_base_response_decompilation_response.py | 2 +- test/test_base_response_dict.py | 2 +- ..._base_response_dynamic_execution_status.py | 2 +- test/test_base_response_external_response.py | 2 +- ...nse_function_analysis_threat_score_data.py | 2 +- ..._base_response_function_blocks_response.py | 2 +- ...e_response_function_capability_response.py | 2 +- .../test_base_response_function_data_types.py | 2 +- ..._base_response_function_data_types_list.py | 2 +- ..._base_response_function_search_response.py | 2 +- ...base_response_function_strings_response.py | 2 +- ...st_base_response_function_task_response.py | 2 +- ...est_base_response_function_threat_score.py | 2 +- ...base_response_functions_detail_response.py | 2 +- ...e_response_generate_function_data_types.py | 2 +- ...st_base_response_generation_status_list.py | 2 +- ...se_get_ai_decompilation_rating_response.py | 2 +- ...base_response_get_ai_decompilation_task.py | 2 +- ..._base_response_get_public_user_response.py | 2 +- test/test_base_response_get_user_response.py | 2 +- ...t_base_response_list_collection_results.py | 2 +- ...est_base_response_list_comment_response.py | 2 +- test/test_base_response_list_die_match.py | 2 +- ...ponse_list_function_box_plot_confidence.py | 2 +- ...ase_response_list_function_name_history.py | 2 +- test/test_base_response_list_sbom.py | 2 +- ...esponse_list_similar_functions_response.py | 2 +- ...nse_list_tag_origin_box_plot_confidence.py | 2 +- ...se_response_list_user_activity_response.py | 2 +- test/test_base_response_login_response.py | 2 +- test/test_base_response_logs.py | 2 +- test/test_base_response_models_response.py | 2 +- ...base_response_nearest_neighbor_analysis.py | 2 +- ...base_response_network_overview_response.py | 2 +- test/test_base_response_params.py | 2 +- test/test_base_response_process_dumps.py | 2 +- test/test_base_response_process_registry.py | 2 +- test/test_base_response_process_tree.py | 2 +- ...se_queued_security_checks_task_response.py | 2 +- test/test_base_response_recent.py | 2 +- ..._base_response_security_checks_response.py | 2 +- test/test_base_response_status.py | 2 +- test/test_base_response_str.py | 2 +- test/test_base_response_symbols_info.py | 2 +- .../test_base_response_tag_search_response.py | 2 +- test/test_base_response_task_response.py | 2 +- test/test_base_response_ttps.py | 2 +- .../test_base_response_upload_response.py | 32 +- test/test_base_response_vulnerabilities.py | 2 +- test/test_basic.py | 2 +- test/test_binaries_api.py | 2 +- ...binary_additional_details_data_response.py | 2 +- test/test_binary_additional_response.py | 2 +- test/test_binary_ann_form.py | 2 +- test/test_binary_ann_list_response.py | 2 +- test/test_binary_config.py | 2 +- test/test_binary_details_response.py | 2 +- test/test_binary_externals_response.py | 2 +- test/test_binary_search_response.py | 2 +- test/test_binary_search_result.py | 2 +- test/test_binary_task_status.py | 2 +- test/test_block.py | 2 +- ...mments_generation_for_function_response.py | 2 +- test/test_boundary.py | 2 +- test/test_box_plot_confidence.py | 2 +- test/test_callee_function_info.py | 2 +- .../test_callees_caller_functions_response.py | 2 +- test/test_caller_function_info.py | 2 +- test/test_capabilities.py | 2 +- test/test_capability.py | 2 +- ...est_check_security_checks_task_response.py | 2 +- test/test_child_binaries_response.py | 2 +- test/test_code_signature_model.py | 2 +- ...test_collection_binaries_update_request.py | 2 +- ...est_collection_binaries_update_response.py | 2 +- test/test_collection_binary_response.py | 2 +- test/test_collection_create_request.py | 2 +- test/test_collection_list_item.py | 2 +- test/test_collection_response.py | 2 +- ...test_collection_response_binaries_inner.py | 2 +- test/test_collection_scope.py | 2 +- test/test_collection_search_response.py | 2 +- test/test_collection_search_result.py | 2 +- test/test_collection_tags_update_request.py | 2 +- test/test_collection_tags_update_response.py | 2 +- test/test_collection_update_request.py | 2 +- test/test_collections_api.py | 2 +- test/test_comment_base.py | 2 +- test/test_comment_response.py | 2 +- test/test_comment_update_request.py | 2 +- test/test_communities.py | 2 +- test/test_community_match_percentages.py | 2 +- test/test_confidence_api.py | 2 +- test/test_confidence_type.py | 2 +- test/test_context.py | 2 +- test/test_created.py | 2 +- test/test_decompilation_comment_context.py | 2 +- test/test_decompilation_response.py | 2 +- test/test_die_match.py | 2 +- test/test_dynamic_execution_status_input.py | 2 +- test/test_elf_dynamic_entry.py | 2 +- test/test_elf_import_model.py | 2 +- test/test_elf_model.py | 2 +- test/test_elf_relocation.py | 2 +- test/test_elf_section.py | 2 +- test/test_elf_security.py | 2 +- test/test_elf_segment.py | 2 +- test/test_elf_symbol.py | 2 +- test/test_entrypoint_model.py | 2 +- test/test_enumeration.py | 2 +- test/test_error_model.py | 2 +- test/test_export_model.py | 2 +- test/test_exported_binary_ann_result.py | 2 +- test/test_external_response.py | 2 +- test/test_external_sources_api.py | 2 +- test/test_file_format.py | 2 +- test/test_file_hashes.py | 2 +- test/test_file_metadata.py | 2 +- test/test_filters.py | 2 +- test/test_firmware_api.py | 2 +- ...est_function_analysis_threat_score_data.py | 2 +- ...est_function_block_destination_response.py | 2 +- test/test_function_block_response.py | 2 +- test/test_function_blocks_response.py | 2 +- test/test_function_boundary.py | 2 +- test/test_function_box_plot_confidence.py | 2 +- test/test_function_capability_response.py | 2 +- test/test_function_comment_create_request.py | 2 +- test/test_function_data_types.py | 2 +- test/test_function_data_types_list.py | 2 +- test/test_function_data_types_list_item.py | 2 +- test/test_function_data_types_params.py | 2 +- test/test_function_data_types_status.py | 2 +- test/test_function_header.py | 2 +- test/test_function_info_input.py | 2 +- ...est_function_info_input_func_deps_inner.py | 2 +- test/test_function_info_output.py | 2 +- test/test_function_local_variable_response.py | 2 +- test/test_function_mapping_full.py | 2 +- test/test_function_name_confidence_body.py | 2 +- test/test_function_name_history.py | 2 +- test/test_function_name_input.py | 2 +- test/test_function_param_response.py | 2 +- test/test_function_rename.py | 2 +- test/test_function_rename_map.py | 3 +- test/test_function_search_response.py | 2 +- test/test_function_search_result.py | 2 +- test/test_function_string.py | 2 +- test/test_function_strings_response.py | 2 +- test/test_function_task_response.py | 2 +- test/test_function_task_status.py | 2 +- test/test_function_threat_score.py | 2 +- test/test_function_type_input.py | 2 +- test/test_function_type_output.py | 2 +- test/test_functions_ai_decompilation_api.py | 2 +- test/test_functions_block_comments_api.py | 2 +- test/test_functions_core_api.py | 37 +- test/test_functions_data_types_api.py | 2 +- test/test_functions_decompilation_api.py | 2 +- test/test_functions_detail_response.py | 2 +- test/test_functions_list_rename.py | 2 +- test/test_functions_renaming_history_api.py | 2 +- test/test_functions_threat_score_api.py | 2 +- test/test_generate_function_data_types.py | 2 +- test/test_generation_status_list.py | 2 +- ...st_get_ai_decompilation_rating_response.py | 2 +- test/test_get_ai_decompilation_task.py | 2 +- test/test_get_public_user_response.py | 2 +- test/test_get_user_response.py | 2 +- test/test_global_variable.py | 2 +- test/test_icon_model.py | 2 +- test/test_import_model.py | 2 +- test/test_inverse_function_map_item.py | 2 +- test/test_inverse_string_map_item.py | 2 +- test/test_inverse_value.py | 2 +- test/test_isa.py | 2 +- test/test_list_collection_results.py | 2 +- test/test_login_request.py | 2 +- test/test_login_response.py | 2 +- test/test_logs.py | 2 +- .../test_matched_function_group.py | 31 +- .../test_matched_function_suggestion.py | 36 +- test/test_meta_model.py | 2 +- test/test_model_name.py | 2 +- test/test_models_api.py | 2 +- test/test_models_response.py | 2 +- test/test_nearest_neighbor.py | 2 +- test/test_network_overview_dns.py | 2 +- test/test_network_overview_dns_answer.py | 2 +- test/test_network_overview_metadata.py | 2 +- test/test_network_overview_response.py | 2 +- test/test_order.py | 2 +- test/test_origin.py | 2 +- test/test_pagination_model.py | 2 +- test/test_params.py | 2 +- test/test_pdb_debug_model.py | 2 +- test/test_pe_model.py | 2 +- test/test_platform.py | 2 +- test/test_process.py | 2 +- test/test_process_dump.py | 2 +- test/test_process_dump_metadata.py | 2 +- test/test_process_dumps.py | 2 +- test/test_process_dumps_data.py | 2 +- test/test_process_registry.py | 2 +- test/test_process_tree.py | 2 +- ...st_queued_security_checks_task_response.py | 2 +- test/test_re_analysis_form.py | 2 +- test/test_recent.py | 2 +- test/test_registry.py | 2 +- test/test_relative_binary_response.py | 2 +- test/test_sandbox_options.py | 2 +- test/test_sbom.py | 2 +- test/test_sbom_package.py | 2 +- test/test_scrape_third_party_config.py | 2 +- test/test_search_api.py | 2 +- test/test_search_binary_ids.py | 2 +- test/test_search_function_ids.py | 2 +- test/test_section_model.py | 2 +- test/test_security_checks_response.py | 2 +- test/test_security_checks_result.py | 2 +- test/test_security_model.py | 2 +- test/test_severity_type.py | 2 +- test/test_similar_functions_response.py | 2 +- test/test_single_code_certificate_model.py | 2 +- test/test_single_code_signature_model.py | 2 +- test/test_single_pdb_entry_model.py | 2 +- test/test_single_section_model.py | 2 +- test/test_stack_variable.py | 2 +- test/test_status_input.py | 2 +- test/test_status_output.py | 2 +- test/test_string_functions.py | 2 +- test/test_structure.py | 2 +- test/test_structure_member.py | 2 +- test/test_symbols.py | 2 +- test/test_symbols_info.py | 2 +- test/{test_tag_input.py => test_tag.py} | 24 +- test/test_tag_confidence_body.py | 2 +- test/test_tag_origin_box_plot_confidence.py | 2 +- test/test_tag_output.py | 54 - test/test_tag_response.py | 2 +- test/test_tag_search_response.py | 2 +- test/test_tag_search_result.py | 2 +- test/test_tags.py | 2 +- test/test_task_response.py | 2 +- test/test_task_status.py | 2 +- test/test_threat_score_function_body.py | 2 +- test/test_timestamp_model.py | 2 +- test/test_ttps.py | 2 +- test/test_ttps_attack.py | 2 +- test/test_ttps_data.py | 2 +- test/test_ttps_element.py | 2 +- test/test_ttps_occurance.py | 2 +- test/test_type_definition.py | 2 +- .../test_unstrip_request.py | 29 +- test/test_update_function_data_types.py | 2 +- .../test_upload_file_type.py | 14 +- .../test_upload_response.py | 34 +- ...t_upsert_ai_decomplation_rating_request.py | 2 +- test/test_user_activity_response.py | 2 +- test/test_vulnerabilities.py | 2 +- test/test_vulnerability.py | 2 +- test/test_vulnerability_type.py | 2 +- test/test_workspace.py | 2 +- 1087 files changed, 4508 insertions(+), 35537 deletions(-) create mode 100644 .sdk-version create mode 100644 docs/AiUnstripRequest.md create mode 100644 docs/AnalysisTags.md delete mode 100644 docs/AppApiRestV2AnalysesResponsesAnalysisTags.md delete mode 100644 docs/AppApiRestV2InfoResponsesAnalysisTags.md delete mode 100644 docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md delete mode 100644 docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md create mode 100644 docs/AutoUnstripByGroupResponse.md create mode 100644 docs/AutoUnstripRequest.md create mode 100644 docs/AutoUnstripResponse.md create mode 100644 docs/BaseResponseAnalysisTags.md create mode 100644 docs/BaseResponseUploadResponse.md create mode 100644 docs/MatchedFunctionGroup.md create mode 100644 docs/MatchedFunctionSuggestion.md rename docs/{TagInput.md => Tag.md} (58%) delete mode 100644 docs/TagOutput.md create mode 100644 docs/UnstripRequest.md create mode 100644 docs/UploadFileType.md create mode 100644 docs/UploadResponse.md delete mode 100644 revengai/api/v1_api.py rename revengai/models/{function_param_mapping.py => ai_unstrip_request.py} (77%) delete mode 100644 revengai/models/analyse_created.py delete mode 100644 revengai/models/analysis_form.py delete mode 100644 revengai/models/analysis_status.py rename revengai/models/{app_api_rest_v2_analyses_responses_analysis_tags.py => analysis_tags.py} (91%) delete mode 100644 revengai/models/ann_input.py delete mode 100644 revengai/models/app_api_rest_v1_analyse_schema_model_name.py delete mode 100644 revengai/models/app_api_rest_v1_analyse_schema_status.py delete mode 100644 revengai/models/app_api_rest_v1_analyse_schema_symbols.py delete mode 100644 revengai/models/app_api_rest_v1_analysis_info_responses_logs.py delete mode 100644 revengai/models/app_api_rest_v1_ann_schema_ann_function.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_enums_model_name.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_enums_status.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_responses_logs.py delete mode 100644 revengai/models/app_api_rest_v2_analyses_schemas_symbols.py delete mode 100644 revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py delete mode 100644 revengai/models/app_api_rest_v2_info_responses_analysis_tags.py delete mode 100644 revengai/models/app_api_rest_v2_similarity_schema_ann_function.py create mode 100644 revengai/models/auto_unstrip_by_group_response.py rename revengai/models/{app_api_rest_v1_analysis_info_schema_function_rename.py => auto_unstrip_request.py} (66%) rename revengai/models/{upload_success.py => auto_unstrip_response.py} (50%) rename revengai/models/{app_core_responses_base_base_response_analysis_tags1.py => base_response_analysis_tags.py} (86%) rename revengai/models/{app_core_responses_base_base_response_analysis_tags2.py => base_response_upload_response.py} (86%) delete mode 100644 revengai/models/batch_ann.py delete mode 100644 revengai/models/batch_function_rename.py delete mode 100644 revengai/models/collection_count.py delete mode 100644 revengai/models/config_settings.py delete mode 100644 revengai/models/create_ai_decompilation_request.py delete mode 100644 revengai/models/deleted_analysis.py delete mode 100644 revengai/models/file_options.py delete mode 100644 revengai/models/function_batch_ann.py delete mode 100644 revengai/models/function_dump.py delete mode 100644 revengai/models/function_list.py delete mode 100644 revengai/models/function_list_basic.py delete mode 100644 revengai/models/function_params.py delete mode 100644 revengai/models/isa_options.py rename revengai/models/{collections_count_form.py => matched_function_group.py} (71%) rename revengai/models/{batch_function_rename_record.py => matched_function_suggestion.py} (68%) delete mode 100644 revengai/models/model_list.py delete mode 100644 revengai/models/platform_options.py delete mode 100644 revengai/models/quick_search.py delete mode 100644 revengai/models/recent_analysis.py delete mode 100644 revengai/models/recent_analysis_form.py delete mode 100644 revengai/models/rename.py delete mode 100644 revengai/models/search_query.py rename revengai/models/{tag_input.py => tag.py} (91%) delete mode 100644 revengai/models/tag_output.py rename revengai/models/{search_form.py => unstrip_request.py} (62%) rename revengai/models/{scope.py => upload_file_type.py} (65%) rename revengai/models/{user_boundaries.py => upload_response.py} (75%) delete mode 100644 revengai/test/__init__.py delete mode 100644 revengai/test/test_ai_decompilation_rating.py delete mode 100644 revengai/test/test_analyses_comments_api.py delete mode 100644 revengai/test/test_analyses_core_api.py delete mode 100644 revengai/test/test_analyses_dynamic_execution_api.py delete mode 100644 revengai/test/test_analyses_results_metadata_api.py delete mode 100644 revengai/test/test_analyses_security_checks_api.py delete mode 100644 revengai/test/test_analysis_access_info.py delete mode 100644 revengai/test/test_analysis_config.py delete mode 100644 revengai/test/test_analysis_create_request.py delete mode 100644 revengai/test/test_analysis_create_response.py delete mode 100644 revengai/test/test_analysis_detail_response.py delete mode 100644 revengai/test/test_analysis_form.py delete mode 100644 revengai/test/test_analysis_functions.py delete mode 100644 revengai/test/test_analysis_record.py delete mode 100644 revengai/test/test_analysis_scope.py delete mode 100644 revengai/test/test_analysis_strings_response.py delete mode 100644 revengai/test/test_analysis_threat_score_data.py delete mode 100644 revengai/test/test_analysis_update_request.py delete mode 100644 revengai/test/test_analysis_update_tags_request.py delete mode 100644 revengai/test/test_analysis_update_tags_response.py delete mode 100644 revengai/test/test_ann_function.py delete mode 100644 revengai/test/test_ann_input.py delete mode 100644 revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py delete mode 100644 revengai/test/test_app_api_rest_v1_analyse_schema_status.py delete mode 100644 revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py delete mode 100644 revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py delete mode 100644 revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py delete mode 100644 revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py delete mode 100644 revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py delete mode 100644 revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py delete mode 100644 revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py delete mode 100644 revengai/test/test_app_api_rest_v2_analyses_enums_status.py delete mode 100644 revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py delete mode 100644 revengai/test/test_app_api_rest_v2_analyses_responses_logs.py delete mode 100644 revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py delete mode 100644 revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py delete mode 100644 revengai/test/test_app_api_rest_v2_collections_enums_order_by.py delete mode 100644 revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py delete mode 100644 revengai/test/test_app_api_rest_v2_functions_responses_function.py delete mode 100644 revengai/test/test_app_api_rest_v2_functions_types_function.py delete mode 100644 revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py delete mode 100644 revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py delete mode 100644 revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py delete mode 100644 revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py delete mode 100644 revengai/test/test_app_services_binary_ann_schema_tag_item.py delete mode 100644 revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py delete mode 100644 revengai/test/test_argument.py delete mode 100644 revengai/test/test_authentication_users_api.py delete mode 100644 revengai/test/test_base_response.py delete mode 100644 revengai/test/test_base_response_analysis_create_response.py delete mode 100644 revengai/test/test_base_response_analysis_detail_response.py delete mode 100644 revengai/test/test_base_response_analysis_functions.py delete mode 100644 revengai/test/test_base_response_analysis_strings_response.py delete mode 100644 revengai/test/test_base_response_analysis_threat_score_data.py delete mode 100644 revengai/test/test_base_response_analysis_update_tags_response.py delete mode 100644 revengai/test/test_base_response_basic.py delete mode 100644 revengai/test/test_base_response_binary_additional_response.py delete mode 100644 revengai/test/test_base_response_binary_ann_list_response.py delete mode 100644 revengai/test/test_base_response_binary_details_response.py delete mode 100644 revengai/test/test_base_response_binary_externals_response.py delete mode 100644 revengai/test/test_base_response_binary_search_response.py delete mode 100644 revengai/test/test_base_response_block_comments_generation_for_function_response.py delete mode 100644 revengai/test/test_base_response_block_comments_overview_generation_response.py delete mode 100644 revengai/test/test_base_response_bool.py delete mode 100644 revengai/test/test_base_response_box_plot_confidence.py delete mode 100644 revengai/test/test_base_response_callees_caller_functions_response.py delete mode 100644 revengai/test/test_base_response_capabilities.py delete mode 100644 revengai/test/test_base_response_check_security_checks_task_response.py delete mode 100644 revengai/test/test_base_response_child_binaries_response.py delete mode 100644 revengai/test/test_base_response_collection_binaries_update_response.py delete mode 100644 revengai/test/test_base_response_collection_response.py delete mode 100644 revengai/test/test_base_response_collection_search_response.py delete mode 100644 revengai/test/test_base_response_collection_tags_update_response.py delete mode 100644 revengai/test/test_base_response_comment_response.py delete mode 100644 revengai/test/test_base_response_communities.py delete mode 100644 revengai/test/test_base_response_created.py delete mode 100644 revengai/test/test_base_response_decompilation_response.py delete mode 100644 revengai/test/test_base_response_dict.py delete mode 100644 revengai/test/test_base_response_dynamic_execution_status.py delete mode 100644 revengai/test/test_base_response_external_response.py delete mode 100644 revengai/test/test_base_response_function_analysis_threat_score_data.py delete mode 100644 revengai/test/test_base_response_function_blocks_response.py delete mode 100644 revengai/test/test_base_response_function_capability_response.py delete mode 100644 revengai/test/test_base_response_function_data_types.py delete mode 100644 revengai/test/test_base_response_function_data_types_list.py delete mode 100644 revengai/test/test_base_response_function_search_response.py delete mode 100644 revengai/test/test_base_response_function_strings_response.py delete mode 100644 revengai/test/test_base_response_function_task_response.py delete mode 100644 revengai/test/test_base_response_function_threat_score.py delete mode 100644 revengai/test/test_base_response_functions_detail_response.py delete mode 100644 revengai/test/test_base_response_generate_function_data_types.py delete mode 100644 revengai/test/test_base_response_generation_status_list.py delete mode 100644 revengai/test/test_base_response_get_ai_decompilation_rating_response.py delete mode 100644 revengai/test/test_base_response_get_ai_decompilation_task.py delete mode 100644 revengai/test/test_base_response_get_public_user_response.py delete mode 100644 revengai/test/test_base_response_get_user_response.py delete mode 100644 revengai/test/test_base_response_list_collection_results.py delete mode 100644 revengai/test/test_base_response_list_comment_response.py delete mode 100644 revengai/test/test_base_response_list_die_match.py delete mode 100644 revengai/test/test_base_response_list_function_box_plot_confidence.py delete mode 100644 revengai/test/test_base_response_list_function_name_history.py delete mode 100644 revengai/test/test_base_response_list_sbom.py delete mode 100644 revengai/test/test_base_response_list_similar_functions_response.py delete mode 100644 revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py delete mode 100644 revengai/test/test_base_response_list_user_activity_response.py delete mode 100644 revengai/test/test_base_response_login_response.py delete mode 100644 revengai/test/test_base_response_logs.py delete mode 100644 revengai/test/test_base_response_nearest_neighbor_analysis.py delete mode 100644 revengai/test/test_base_response_network_overview_response.py delete mode 100644 revengai/test/test_base_response_params.py delete mode 100644 revengai/test/test_base_response_process_dumps.py delete mode 100644 revengai/test/test_base_response_process_registry.py delete mode 100644 revengai/test/test_base_response_process_tree.py delete mode 100644 revengai/test/test_base_response_queued_security_checks_task_response.py delete mode 100644 revengai/test/test_base_response_recent.py delete mode 100644 revengai/test/test_base_response_security_checks_response.py delete mode 100644 revengai/test/test_base_response_status.py delete mode 100644 revengai/test/test_base_response_str.py delete mode 100644 revengai/test/test_base_response_symbols_info.py delete mode 100644 revengai/test/test_base_response_tag_search_response.py delete mode 100644 revengai/test/test_base_response_task_response.py delete mode 100644 revengai/test/test_base_response_ttps.py delete mode 100644 revengai/test/test_base_response_vulnerabilities.py delete mode 100644 revengai/test/test_basic.py delete mode 100644 revengai/test/test_batch_ann.py delete mode 100644 revengai/test/test_batch_function_rename.py delete mode 100644 revengai/test/test_batch_function_rename_record.py delete mode 100644 revengai/test/test_binaries_api.py delete mode 100644 revengai/test/test_binary_additional_details_data_response.py delete mode 100644 revengai/test/test_binary_additional_response.py delete mode 100644 revengai/test/test_binary_ann_form.py delete mode 100644 revengai/test/test_binary_ann_list_response.py delete mode 100644 revengai/test/test_binary_config.py delete mode 100644 revengai/test/test_binary_details_response.py delete mode 100644 revengai/test/test_binary_externals_response.py delete mode 100644 revengai/test/test_binary_search_response.py delete mode 100644 revengai/test/test_binary_search_result.py delete mode 100644 revengai/test/test_binary_task_status.py delete mode 100644 revengai/test/test_block.py delete mode 100644 revengai/test/test_block_comments_generation_for_function_response.py delete mode 100644 revengai/test/test_boundary.py delete mode 100644 revengai/test/test_box_plot_confidence.py delete mode 100644 revengai/test/test_callee_function_info.py delete mode 100644 revengai/test/test_callees_caller_functions_response.py delete mode 100644 revengai/test/test_caller_function_info.py delete mode 100644 revengai/test/test_capabilities.py delete mode 100644 revengai/test/test_check_security_checks_task_response.py delete mode 100644 revengai/test/test_child_binaries_response.py delete mode 100644 revengai/test/test_code_signature_model.py delete mode 100644 revengai/test/test_collection_binaries_update_request.py delete mode 100644 revengai/test/test_collection_binaries_update_response.py delete mode 100644 revengai/test/test_collection_binary_response.py delete mode 100644 revengai/test/test_collection_count.py delete mode 100644 revengai/test/test_collection_create_request.py delete mode 100644 revengai/test/test_collection_list_item.py delete mode 100644 revengai/test/test_collection_response.py delete mode 100644 revengai/test/test_collection_response_binaries_inner.py delete mode 100644 revengai/test/test_collection_scope.py delete mode 100644 revengai/test/test_collection_search_response.py delete mode 100644 revengai/test/test_collection_search_result.py delete mode 100644 revengai/test/test_collection_tags_update_request.py delete mode 100644 revengai/test/test_collection_tags_update_response.py delete mode 100644 revengai/test/test_collection_update_request.py delete mode 100644 revengai/test/test_collections_api.py delete mode 100644 revengai/test/test_collections_count_form.py delete mode 100644 revengai/test/test_comment_response.py delete mode 100644 revengai/test/test_comment_update_request.py delete mode 100644 revengai/test/test_communities.py delete mode 100644 revengai/test/test_community_match_percentages.py delete mode 100644 revengai/test/test_confidence_api.py delete mode 100644 revengai/test/test_confidence_type.py delete mode 100644 revengai/test/test_config_settings.py delete mode 100644 revengai/test/test_context.py delete mode 100644 revengai/test/test_create_ai_decompilation_request.py delete mode 100644 revengai/test/test_created.py delete mode 100644 revengai/test/test_decompilation_comment_context.py delete mode 100644 revengai/test/test_decompilation_response.py delete mode 100644 revengai/test/test_deleted_analysis.py delete mode 100644 revengai/test/test_die_match.py delete mode 100644 revengai/test/test_dynamic_execution_status_input.py delete mode 100644 revengai/test/test_elf_dynamic_entry.py delete mode 100644 revengai/test/test_elf_import_model.py delete mode 100644 revengai/test/test_elf_model.py delete mode 100644 revengai/test/test_elf_relocation.py delete mode 100644 revengai/test/test_elf_section.py delete mode 100644 revengai/test/test_elf_security.py delete mode 100644 revengai/test/test_elf_segment.py delete mode 100644 revengai/test/test_elf_symbol.py delete mode 100644 revengai/test/test_entrypoint_model.py delete mode 100644 revengai/test/test_enumeration.py delete mode 100644 revengai/test/test_error_model.py delete mode 100644 revengai/test/test_export_model.py delete mode 100644 revengai/test/test_exported_binary_ann_result.py delete mode 100644 revengai/test/test_external_response.py delete mode 100644 revengai/test/test_external_sources_api.py delete mode 100644 revengai/test/test_file_hashes.py delete mode 100644 revengai/test/test_file_metadata.py delete mode 100644 revengai/test/test_file_options.py delete mode 100644 revengai/test/test_filters.py delete mode 100644 revengai/test/test_firmware_api.py delete mode 100644 revengai/test/test_function_analysis_threat_score_data.py delete mode 100644 revengai/test/test_function_batch_ann.py delete mode 100644 revengai/test/test_function_block_destination_response.py delete mode 100644 revengai/test/test_function_block_response.py delete mode 100644 revengai/test/test_function_blocks_response.py delete mode 100644 revengai/test/test_function_boundary.py delete mode 100644 revengai/test/test_function_box_plot_confidence.py delete mode 100644 revengai/test/test_function_capability_response.py delete mode 100644 revengai/test/test_function_comment_create_request.py delete mode 100644 revengai/test/test_function_data_types.py delete mode 100644 revengai/test/test_function_data_types_list.py delete mode 100644 revengai/test/test_function_data_types_list_item.py delete mode 100644 revengai/test/test_function_data_types_params.py delete mode 100644 revengai/test/test_function_data_types_status.py delete mode 100644 revengai/test/test_function_dump.py delete mode 100644 revengai/test/test_function_header.py delete mode 100644 revengai/test/test_function_info_input.py delete mode 100644 revengai/test/test_function_info_input_func_deps_inner.py delete mode 100644 revengai/test/test_function_info_output.py delete mode 100644 revengai/test/test_function_list.py delete mode 100644 revengai/test/test_function_list_basic.py delete mode 100644 revengai/test/test_function_local_variable_response.py delete mode 100644 revengai/test/test_function_mapping_full.py delete mode 100644 revengai/test/test_function_name_confidence_body.py delete mode 100644 revengai/test/test_function_name_history.py delete mode 100644 revengai/test/test_function_name_input.py delete mode 100644 revengai/test/test_function_param_mapping.py delete mode 100644 revengai/test/test_function_param_response.py delete mode 100644 revengai/test/test_function_params.py delete mode 100644 revengai/test/test_function_rename.py delete mode 100644 revengai/test/test_function_rename_map.py delete mode 100644 revengai/test/test_function_search_response.py delete mode 100644 revengai/test/test_function_search_result.py delete mode 100644 revengai/test/test_function_string.py delete mode 100644 revengai/test/test_function_strings_response.py delete mode 100644 revengai/test/test_function_task_response.py delete mode 100644 revengai/test/test_function_task_status.py delete mode 100644 revengai/test/test_function_threat_score.py delete mode 100644 revengai/test/test_function_type_input.py delete mode 100644 revengai/test/test_function_type_output.py delete mode 100644 revengai/test/test_functions_ai_decompilation_api.py delete mode 100644 revengai/test/test_functions_block_comments_api.py delete mode 100644 revengai/test/test_functions_core_api.py delete mode 100644 revengai/test/test_functions_data_types_api.py delete mode 100644 revengai/test/test_functions_decompilation_api.py delete mode 100644 revengai/test/test_functions_detail_response.py delete mode 100644 revengai/test/test_functions_list_rename.py delete mode 100644 revengai/test/test_functions_renaming_history_api.py delete mode 100644 revengai/test/test_functions_threat_score_api.py delete mode 100644 revengai/test/test_generate_function_data_types.py delete mode 100644 revengai/test/test_generation_status_list.py delete mode 100644 revengai/test/test_get_ai_decompilation_rating_response.py delete mode 100644 revengai/test/test_get_ai_decompilation_task.py delete mode 100644 revengai/test/test_get_public_user_response.py delete mode 100644 revengai/test/test_get_user_response.py delete mode 100644 revengai/test/test_global_variable.py delete mode 100644 revengai/test/test_icon_model.py delete mode 100644 revengai/test/test_import_model.py delete mode 100644 revengai/test/test_inverse_function_map_item.py delete mode 100644 revengai/test/test_inverse_string_map_item.py delete mode 100644 revengai/test/test_inverse_value.py delete mode 100644 revengai/test/test_isa.py delete mode 100644 revengai/test/test_isa_options.py delete mode 100644 revengai/test/test_list_collection_results.py delete mode 100644 revengai/test/test_login_request.py delete mode 100644 revengai/test/test_login_response.py delete mode 100644 revengai/test/test_logs.py delete mode 100644 revengai/test/test_meta_model.py delete mode 100644 revengai/test/test_model_list.py delete mode 100644 revengai/test/test_model_name.py delete mode 100644 revengai/test/test_models_api.py delete mode 100644 revengai/test/test_models_response.py delete mode 100644 revengai/test/test_nearest_neighbor.py delete mode 100644 revengai/test/test_network_overview_dns.py delete mode 100644 revengai/test/test_network_overview_dns_answer.py delete mode 100644 revengai/test/test_network_overview_metadata.py delete mode 100644 revengai/test/test_network_overview_response.py delete mode 100644 revengai/test/test_order.py delete mode 100644 revengai/test/test_origin.py delete mode 100644 revengai/test/test_pagination_model.py delete mode 100644 revengai/test/test_params.py delete mode 100644 revengai/test/test_pdb_debug_model.py delete mode 100644 revengai/test/test_pe_model.py delete mode 100644 revengai/test/test_platform.py delete mode 100644 revengai/test/test_platform_options.py delete mode 100644 revengai/test/test_process.py delete mode 100644 revengai/test/test_process_dump.py delete mode 100644 revengai/test/test_process_dump_metadata.py delete mode 100644 revengai/test/test_process_dumps.py delete mode 100644 revengai/test/test_process_dumps_data.py delete mode 100644 revengai/test/test_process_registry.py delete mode 100644 revengai/test/test_process_tree.py delete mode 100644 revengai/test/test_queued_security_checks_task_response.py delete mode 100644 revengai/test/test_quick_search.py delete mode 100644 revengai/test/test_re_analysis_form.py delete mode 100644 revengai/test/test_recent.py delete mode 100644 revengai/test/test_recent_analysis.py delete mode 100644 revengai/test/test_recent_analysis_form.py delete mode 100644 revengai/test/test_registry.py delete mode 100644 revengai/test/test_relative_binary_response.py delete mode 100644 revengai/test/test_rename.py delete mode 100644 revengai/test/test_sandbox_options.py delete mode 100644 revengai/test/test_sbom.py delete mode 100644 revengai/test/test_sbom_package.py delete mode 100644 revengai/test/test_scope.py delete mode 100644 revengai/test/test_scrape_third_party_config.py delete mode 100644 revengai/test/test_search_api.py delete mode 100644 revengai/test/test_search_binary_ids.py delete mode 100644 revengai/test/test_search_function_ids.py delete mode 100644 revengai/test/test_search_query.py delete mode 100644 revengai/test/test_section_model.py delete mode 100644 revengai/test/test_security_checks_response.py delete mode 100644 revengai/test/test_security_checks_result.py delete mode 100644 revengai/test/test_security_model.py delete mode 100644 revengai/test/test_severity_type.py delete mode 100644 revengai/test/test_similar_functions_response.py delete mode 100644 revengai/test/test_single_code_certificate_model.py delete mode 100644 revengai/test/test_single_code_signature_model.py delete mode 100644 revengai/test/test_single_pdb_entry_model.py delete mode 100644 revengai/test/test_single_section_model.py delete mode 100644 revengai/test/test_stack_variable.py delete mode 100644 revengai/test/test_status_input.py delete mode 100644 revengai/test/test_status_output.py delete mode 100644 revengai/test/test_string_functions.py delete mode 100644 revengai/test/test_structure.py delete mode 100644 revengai/test/test_structure_member.py delete mode 100644 revengai/test/test_symbols.py delete mode 100644 revengai/test/test_symbols_info.py delete mode 100644 revengai/test/test_tag_confidence_body.py delete mode 100644 revengai/test/test_tag_input.py delete mode 100644 revengai/test/test_tag_origin_box_plot_confidence.py delete mode 100644 revengai/test/test_tag_output.py delete mode 100644 revengai/test/test_tag_response.py delete mode 100644 revengai/test/test_tag_search_response.py delete mode 100644 revengai/test/test_tag_search_result.py delete mode 100644 revengai/test/test_tags.py delete mode 100644 revengai/test/test_task_response.py delete mode 100644 revengai/test/test_task_status.py delete mode 100644 revengai/test/test_threat_score_function_body.py delete mode 100644 revengai/test/test_timestamp_model.py delete mode 100644 revengai/test/test_ttps.py delete mode 100644 revengai/test/test_ttps_attack.py delete mode 100644 revengai/test/test_ttps_data.py delete mode 100644 revengai/test/test_ttps_element.py delete mode 100644 revengai/test/test_ttps_occurance.py delete mode 100644 revengai/test/test_type_definition.py delete mode 100644 revengai/test/test_update_function_data_types.py delete mode 100644 revengai/test/test_upload_success.py delete mode 100644 revengai/test/test_upsert_ai_decomplation_rating_request.py delete mode 100644 revengai/test/test_user_activity_response.py delete mode 100644 revengai/test/test_user_boundaries.py delete mode 100644 revengai/test/test_v1_api.py delete mode 100644 revengai/test/test_vulnerabilities.py delete mode 100644 revengai/test/test_vulnerability.py delete mode 100644 revengai/test/test_vulnerability_type.py delete mode 100644 revengai/test/test_workspace.py rename revengai/test/test_addr.py => test/test_ai_unstrip_request.py (57%) rename test/{test_app_api_rest_v2_analyses_responses_analysis_tags.py => test_analysis_tags.py} (66%) delete mode 100644 test/test_app_api_rest_v2_info_responses_analysis_tags.py delete mode 100644 test/test_app_core_responses_base_base_response_analysis_tags1.py create mode 100644 test/test_auto_unstrip_by_group_response.py rename revengai/test/test_analysis_status.py => test/test_auto_unstrip_request.py (54%) create mode 100644 test/test_auto_unstrip_response.py rename test/{test_app_core_responses_base_base_response_analysis_tags2.py => test_base_response_analysis_tags.py} (67%) rename revengai/test/test_base_response_models_response.py => test/test_base_response_upload_response.py (63%) rename revengai/test/test_analyse_created.py => test/test_matched_function_group.py (50%) rename revengai/test/test_capability.py => test/test_matched_function_suggestion.py (51%) rename test/{test_tag_input.py => test_tag.py} (64%) delete mode 100644 test/test_tag_output.py rename revengai/test/test_comment_base.py => test/test_unstrip_request.py (55%) rename revengai/test/test_file_format.py => test/test_upload_file_type.py (55%) rename revengai/test/test_search_form.py => test/test_upload_response.py (53%) diff --git a/.sdk-version b/.sdk-version new file mode 100644 index 0000000..8d3c419 --- /dev/null +++ b/.sdk-version @@ -0,0 +1 @@ +v1.72.0 diff --git a/README.md b/README.md index d6167cf..7301958 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Class | Method | HTTP request | Description *AnalysesCoreApi* | [**requeue_analysis**](docs/AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis *AnalysesCoreApi* | [**update_analysis**](docs/AnalysesCoreApi.md#update_analysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis *AnalysesCoreApi* | [**update_analysis_tags**](docs/AnalysesCoreApi.md#update_analysis_tags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags +*AnalysesCoreApi* | [**upload_file**](docs/AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File *AnalysesDynamicExecutionApi* | [**get_dynamic_execution_status**](docs/AnalysesDynamicExecutionApi.md#get_dynamic_execution_status) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/status | Get the status of a dynamic execution task *AnalysesDynamicExecutionApi* | [**get_network_overview**](docs/AnalysesDynamicExecutionApi.md#get_network_overview) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/network-overview | Get the dynamic execution results for network overview *AnalysesDynamicExecutionApi* | [**get_process_dump**](docs/AnalysesDynamicExecutionApi.md#get_process_dump) | **GET** /v2/analyses/{analysis_id}/dynamic-execution/process-dumps/{dump_name} | Get the dynamic execution results for a specific process dump @@ -119,6 +120,10 @@ Class | Method | HTTP request | Description *FunctionsBlockCommentsApi* | [**generate_block_comments_for_block_in_function**](docs/FunctionsBlockCommentsApi.md#generate_block_comments_for_block_in_function) | **POST** /v2/functions/{function_id}/block-comments/single | Generate block comments for a specific block in a function *FunctionsBlockCommentsApi* | [**generate_block_comments_for_function**](docs/FunctionsBlockCommentsApi.md#generate_block_comments_for_function) | **POST** /v2/functions/{function_id}/block-comments | Generate block comments for a function *FunctionsBlockCommentsApi* | [**generate_overview_comment_for_function**](docs/FunctionsBlockCommentsApi.md#generate_overview_comment_for_function) | **POST** /v2/functions/{function_id}/block-comments/overview | Generate overview comment for a function +*FunctionsCoreApi* | [**ai_unstrip**](docs/FunctionsCoreApi.md#ai_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions +*FunctionsCoreApi* | [**auto_unstrip**](docs/FunctionsCoreApi.md#auto_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions +*FunctionsCoreApi* | [**cancel_ai_unstrip**](docs/FunctionsCoreApi.md#cancel_ai_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip +*FunctionsCoreApi* | [**cancel_auto_unstrip**](docs/FunctionsCoreApi.md#cancel_auto_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip *FunctionsCoreApi* | [**get_analysis_strings**](docs/FunctionsCoreApi.md#get_analysis_strings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis *FunctionsCoreApi* | [**get_function_blocks**](docs/FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function *FunctionsCoreApi* | [**get_function_callees_callers**](docs/FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v2/functions/{function_id}/callees_callers | Get list of functions that call or are called by the specified function @@ -126,6 +131,7 @@ Class | Method | HTTP request | Description *FunctionsCoreApi* | [**get_function_details**](docs/FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details *FunctionsCoreApi* | [**get_function_strings**](docs/FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function *FunctionsCoreApi* | [**get_similar_functions**](docs/FunctionsCoreApi.md#get_similar_functions) | **GET** /v2/functions/{function_id}/similar-functions | Get list of similar functions +*FunctionsCoreApi* | [**unstrip**](docs/FunctionsCoreApi.md#unstrip) | **POST** /v2/analyses/{analysis_id}/functions/unstrip | Performs matching and auto-unstrip for an analysis and its functions *FunctionsDataTypesApi* | [**generate_function_data_types_for_analysis**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_analysis) | **POST** /v2/analyses/{analysis_id}/functions/data_types | Generate Function Data Types *FunctionsDataTypesApi* | [**generate_function_data_types_for_functions**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_functions) | **POST** /v2/functions/data_types | Generate Function Data Types for an arbitrary list of functions *FunctionsDataTypesApi* | [**get_function_data_types**](docs/FunctionsDataTypesApi.md#get_function_data_types) | **GET** /v2/analyses/{analysis_id}/functions/{function_id}/data_types | Get Function Data Types @@ -157,6 +163,7 @@ Class | Method | HTTP request | Description - [ANNFunction](docs/ANNFunction.md) - [Addr](docs/Addr.md) - [AiDecompilationRating](docs/AiDecompilationRating.md) + - [AiUnstripRequest](docs/AiUnstripRequest.md) - [AnalysisAccessInfo](docs/AnalysisAccessInfo.md) - [AnalysisConfig](docs/AnalysisConfig.md) - [AnalysisCreateRequest](docs/AnalysisCreateRequest.md) @@ -166,28 +173,29 @@ Class | Method | HTTP request | Description - [AnalysisRecord](docs/AnalysisRecord.md) - [AnalysisScope](docs/AnalysisScope.md) - [AnalysisStringsResponse](docs/AnalysisStringsResponse.md) + - [AnalysisTags](docs/AnalysisTags.md) - [AnalysisThreatScoreData](docs/AnalysisThreatScoreData.md) - [AnalysisUpdateRequest](docs/AnalysisUpdateRequest.md) - [AnalysisUpdateTagsRequest](docs/AnalysisUpdateTagsRequest.md) - [AnalysisUpdateTagsResponse](docs/AnalysisUpdateTagsResponse.md) - [AppApiRestV2AnalysesEnumsDynamicExecutionStatus](docs/AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md) - [AppApiRestV2AnalysesEnumsOrderBy](docs/AppApiRestV2AnalysesEnumsOrderBy.md) - - [AppApiRestV2AnalysesResponsesAnalysisTags](docs/AppApiRestV2AnalysesResponsesAnalysisTags.md) - [AppApiRestV2AnalysesResponsesTagItem](docs/AppApiRestV2AnalysesResponsesTagItem.md) - [AppApiRestV2CollectionsEnumsOrderBy](docs/AppApiRestV2CollectionsEnumsOrderBy.md) - [AppApiRestV2FunctionsResponsesFunction](docs/AppApiRestV2FunctionsResponsesFunction.md) - [AppApiRestV2FunctionsTypesFunction](docs/AppApiRestV2FunctionsTypesFunction.md) - - [AppApiRestV2InfoResponsesAnalysisTags](docs/AppApiRestV2InfoResponsesAnalysisTags.md) - - [AppCoreResponsesBaseBaseResponseAnalysisTags1](docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md) - - [AppCoreResponsesBaseBaseResponseAnalysisTags2](docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md) - [AppServicesBinaryAnnSchemaTagItem](docs/AppServicesBinaryAnnSchemaTagItem.md) - [AppServicesDynamicExecutionSchemasDynamicExecutionStatus](docs/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md) - [Argument](docs/Argument.md) + - [AutoUnstripByGroupResponse](docs/AutoUnstripByGroupResponse.md) + - [AutoUnstripRequest](docs/AutoUnstripRequest.md) + - [AutoUnstripResponse](docs/AutoUnstripResponse.md) - [BaseResponse](docs/BaseResponse.md) - [BaseResponseAnalysisCreateResponse](docs/BaseResponseAnalysisCreateResponse.md) - [BaseResponseAnalysisDetailResponse](docs/BaseResponseAnalysisDetailResponse.md) - [BaseResponseAnalysisFunctions](docs/BaseResponseAnalysisFunctions.md) - [BaseResponseAnalysisStringsResponse](docs/BaseResponseAnalysisStringsResponse.md) + - [BaseResponseAnalysisTags](docs/BaseResponseAnalysisTags.md) - [BaseResponseAnalysisThreatScoreData](docs/BaseResponseAnalysisThreatScoreData.md) - [BaseResponseAnalysisUpdateTagsResponse](docs/BaseResponseAnalysisUpdateTagsResponse.md) - [BaseResponseBasic](docs/BaseResponseBasic.md) @@ -258,6 +266,7 @@ Class | Method | HTTP request | Description - [BaseResponseTTPS](docs/BaseResponseTTPS.md) - [BaseResponseTagSearchResponse](docs/BaseResponseTagSearchResponse.md) - [BaseResponseTaskResponse](docs/BaseResponseTaskResponse.md) + - [BaseResponseUploadResponse](docs/BaseResponseUploadResponse.md) - [BaseResponseVulnerabilities](docs/BaseResponseVulnerabilities.md) - [Basic](docs/Basic.md) - [BinaryAdditionalDetailsDataResponse](docs/BinaryAdditionalDetailsDataResponse.md) @@ -378,6 +387,8 @@ Class | Method | HTTP request | Description - [LoginRequest](docs/LoginRequest.md) - [LoginResponse](docs/LoginResponse.md) - [Logs](docs/Logs.md) + - [MatchedFunctionGroup](docs/MatchedFunctionGroup.md) + - [MatchedFunctionSuggestion](docs/MatchedFunctionSuggestion.md) - [MetaModel](docs/MetaModel.md) - [ModelName](docs/ModelName.md) - [ModelsResponse](docs/ModelsResponse.md) @@ -434,10 +445,9 @@ Class | Method | HTTP request | Description - [TTPSData](docs/TTPSData.md) - [TTPSElement](docs/TTPSElement.md) - [TTPSOccurance](docs/TTPSOccurance.md) + - [Tag](docs/Tag.md) - [TagConfidenceBody](docs/TagConfidenceBody.md) - - [TagInput](docs/TagInput.md) - [TagOriginBoxPlotConfidence](docs/TagOriginBoxPlotConfidence.md) - - [TagOutput](docs/TagOutput.md) - [TagResponse](docs/TagResponse.md) - [TagSearchResponse](docs/TagSearchResponse.md) - [TagSearchResult](docs/TagSearchResult.md) @@ -447,7 +457,10 @@ Class | Method | HTTP request | Description - [ThreatScoreFunctionBody](docs/ThreatScoreFunctionBody.md) - [TimestampModel](docs/TimestampModel.md) - [TypeDefinition](docs/TypeDefinition.md) + - [UnstripRequest](docs/UnstripRequest.md) - [UpdateFunctionDataTypes](docs/UpdateFunctionDataTypes.md) + - [UploadFileType](docs/UploadFileType.md) + - [UploadResponse](docs/UploadResponse.md) - [UpsertAiDecomplationRatingRequest](docs/UpsertAiDecomplationRatingRequest.md) - [UserActivityResponse](docs/UserActivityResponse.md) - [Vulnerabilities](docs/Vulnerabilities.md) diff --git a/docs/ANNFunction.md b/docs/ANNFunction.md index e58dac4..bddf677 100644 --- a/docs/ANNFunction.md +++ b/docs/ANNFunction.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limit** | **int** | The amount of neighbours per function ID | [optional] [default to 5] **distance** | **float** | The distance between two neighbours | [optional] [default to 0.1] -**analysis_search_ids** | **List[Optional[int]]** | Perform a search on functions within a list of analyses | [optional] [default to []] -**collection_search_ids** | **List[Optional[int]]** | Search only within these collections | [optional] [default to []] +**analysis_search_ids** | **List[int]** | Perform a search on functions within a list of analyses | [optional] [default to []] +**collection_search_ids** | **List[int]** | Search only within these collections | [optional] [default to []] **search_binary_ids** | [**SearchBinaryIds**](SearchBinaryIds.md) | | [optional] **search_function_ids** | [**SearchFunctionIds**](SearchFunctionIds.md) | | [optional] **debug_only** | **bool** | Searches for only functions which are debug | [optional] [default to False] diff --git a/docs/AiUnstripRequest.md b/docs/AiUnstripRequest.md new file mode 100644 index 0000000..318c345 --- /dev/null +++ b/docs/AiUnstripRequest.md @@ -0,0 +1,29 @@ +# AiUnstripRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apply** | **bool** | Whether to apply the suggested function names to the target functions, default is False | [optional] [default to False] + +## Example + +```python +from revengai.models.ai_unstrip_request import AiUnstripRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AiUnstripRequest from a JSON string +ai_unstrip_request_instance = AiUnstripRequest.from_json(json) +# print the JSON string representation of the object +print(AiUnstripRequest.to_json()) + +# convert the object into a dict +ai_unstrip_request_dict = ai_unstrip_request_instance.to_dict() +# create an instance of AiUnstripRequest from a dict +ai_unstrip_request_from_dict = AiUnstripRequest.from_dict(ai_unstrip_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 852a9d5..20bac3d 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -18,6 +18,7 @@ Method | HTTP request | Description [**requeue_analysis**](AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis [**update_analysis**](AnalysesCoreApi.md#update_analysis) | **PATCH** /v2/analyses/{analysis_id} | Update Analysis [**update_analysis_tags**](AnalysesCoreApi.md#update_analysis_tags) | **PATCH** /v2/analyses/{analysis_id}/tags | Update Analysis Tags +[**upload_file**](AnalysesCoreApi.md#upload_file) | **POST** /v2/upload | Upload File # **create_analysis** @@ -1215,3 +1216,90 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **upload_file** +> BaseResponseUploadResponse upload_file(upload_file_type, file, packed_password=packed_password, authorization=authorization, force_overwrite=force_overwrite) + +Upload File + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.base_response_upload_response import BaseResponseUploadResponse +from revengai.models.upload_file_type import UploadFileType +from revengai.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.reveng.ai +# See configuration.py for a list of all supported configuration parameters. +configuration = revengai.Configuration( + host = "https://api.reveng.ai" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKey +configuration.api_key['APIKey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with revengai.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = revengai.AnalysesCoreApi(api_client) + upload_file_type = revengai.UploadFileType() # UploadFileType | + file = None # bytearray | + packed_password = 'packed_password_example' # str | (optional) + authorization = 'authorization_example' # str | API Key bearer token (optional) + force_overwrite = False # bool | (optional) (default to False) + + try: + # Upload File + api_response = api_instance.upload_file(upload_file_type, file, packed_password=packed_password, authorization=authorization, force_overwrite=force_overwrite) + print("The response of AnalysesCoreApi->upload_file:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AnalysesCoreApi->upload_file: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **upload_file_type** | [**UploadFileType**](UploadFileType.md)| | + **file** | **bytearray**| | + **packed_password** | **str**| | [optional] + **authorization** | **str**| API Key bearer token | [optional] + **force_overwrite** | **bool**| | [optional] [default to False] + +### Return type + +[**BaseResponseUploadResponse**](BaseResponseUploadResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/AnalysesResultsMetadataApi.md b/docs/AnalysesResultsMetadataApi.md index b8c0a32..2b3c9fa 100644 --- a/docs/AnalysesResultsMetadataApi.md +++ b/docs/AnalysesResultsMetadataApi.md @@ -424,7 +424,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_tags** -> AppCoreResponsesBaseBaseResponseAnalysisTags2 get_tags(analysis_id, authorization=authorization) +> BaseResponseAnalysisTags get_tags(analysis_id, authorization=authorization) Get function tags with maliciousness score @@ -434,7 +434,7 @@ Get function tags with maliciousness score ```python import revengai -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags from revengai.rest import ApiException from pprint import pprint @@ -483,7 +483,7 @@ Name | Type | Description | Notes ### Return type -[**AppCoreResponsesBaseBaseResponseAnalysisTags2**](AppCoreResponsesBaseBaseResponseAnalysisTags2.md) +[**BaseResponseAnalysisTags**](BaseResponseAnalysisTags.md) ### Authorization diff --git a/docs/AnalysisCreateRequest.md b/docs/AnalysisCreateRequest.md index cf6e78b..a6a6432 100644 --- a/docs/AnalysisCreateRequest.md +++ b/docs/AnalysisCreateRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **filename** | **str** | The name of the file | **sha_256_hash** | **str** | The name of the file | -**tags** | [**List[TagInput]**](TagInput.md) | List of community tags to assign to an analysis | [optional] [default to []] +**tags** | [**List[Tag]**](Tag.md) | List of community tags to assign to an analysis | [optional] [default to []] **analysis_scope** | [**AnalysisScope**](AnalysisScope.md) | The scope of the analysis determines who can access it | [optional] **symbols** | [**Symbols**](Symbols.md) | | [optional] **debug_hash** | **str** | | [optional] diff --git a/docs/AnalysisTags.md b/docs/AnalysisTags.md new file mode 100644 index 0000000..8f290b3 --- /dev/null +++ b/docs/AnalysisTags.md @@ -0,0 +1,30 @@ +# AnalysisTags + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**analysis_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | +**suggested_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | + +## Example + +```python +from revengai.models.analysis_tags import AnalysisTags + +# TODO update the JSON string below +json = "{}" +# create an instance of AnalysisTags from a JSON string +analysis_tags_instance = AnalysisTags.from_json(json) +# print the JSON string representation of the object +print(AnalysisTags.to_json()) + +# convert the object into a dict +analysis_tags_dict = analysis_tags_instance.to_dict() +# create an instance of AnalysisTags from a dict +analysis_tags_from_dict = AnalysisTags.from_dict(analysis_tags_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppApiRestV2AnalysesResponsesAnalysisTags.md b/docs/AppApiRestV2AnalysesResponsesAnalysisTags.md deleted file mode 100644 index 567c7b3..0000000 --- a/docs/AppApiRestV2AnalysesResponsesAnalysisTags.md +++ /dev/null @@ -1,30 +0,0 @@ -# AppApiRestV2AnalysesResponsesAnalysisTags - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | -**suggested_tags** | [**List[AppApiRestV2AnalysesResponsesTagItem]**](AppApiRestV2AnalysesResponsesTagItem.md) | | - -## Example - -```python -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2AnalysesResponsesAnalysisTags from a JSON string -app_api_rest_v2_analyses_responses_analysis_tags_instance = AppApiRestV2AnalysesResponsesAnalysisTags.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2AnalysesResponsesAnalysisTags.to_json()) - -# convert the object into a dict -app_api_rest_v2_analyses_responses_analysis_tags_dict = app_api_rest_v2_analyses_responses_analysis_tags_instance.to_dict() -# create an instance of AppApiRestV2AnalysesResponsesAnalysisTags from a dict -app_api_rest_v2_analyses_responses_analysis_tags_from_dict = AppApiRestV2AnalysesResponsesAnalysisTags.from_dict(app_api_rest_v2_analyses_responses_analysis_tags_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AppApiRestV2InfoResponsesAnalysisTags.md b/docs/AppApiRestV2InfoResponsesAnalysisTags.md deleted file mode 100644 index 9a7cc14..0000000 --- a/docs/AppApiRestV2InfoResponsesAnalysisTags.md +++ /dev/null @@ -1,30 +0,0 @@ -# AppApiRestV2InfoResponsesAnalysisTags - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**analysis_tags** | [**List[TagOutput]**](TagOutput.md) | List of analysis tags | -**suggested_tags** | [**List[TagOutput]**](TagOutput.md) | List of suggested analysis tags | - -## Example - -```python -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags - -# TODO update the JSON string below -json = "{}" -# create an instance of AppApiRestV2InfoResponsesAnalysisTags from a JSON string -app_api_rest_v2_info_responses_analysis_tags_instance = AppApiRestV2InfoResponsesAnalysisTags.from_json(json) -# print the JSON string representation of the object -print(AppApiRestV2InfoResponsesAnalysisTags.to_json()) - -# convert the object into a dict -app_api_rest_v2_info_responses_analysis_tags_dict = app_api_rest_v2_info_responses_analysis_tags_instance.to_dict() -# create an instance of AppApiRestV2InfoResponsesAnalysisTags from a dict -app_api_rest_v2_info_responses_analysis_tags_from_dict = AppApiRestV2InfoResponsesAnalysisTags.from_dict(app_api_rest_v2_info_responses_analysis_tags_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md b/docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md deleted file mode 100644 index e7fd36e..0000000 --- a/docs/AppCoreResponsesBaseBaseResponseAnalysisTags1.md +++ /dev/null @@ -1,33 +0,0 @@ -# AppCoreResponsesBaseBaseResponseAnalysisTags1 - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AppApiRestV2InfoResponsesAnalysisTags**](AppApiRestV2InfoResponsesAnalysisTags.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 - -# TODO update the JSON string below -json = "{}" -# create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags1 from a JSON string -app_core_responses_base_base_response_analysis_tags1_instance = AppCoreResponsesBaseBaseResponseAnalysisTags1.from_json(json) -# print the JSON string representation of the object -print(AppCoreResponsesBaseBaseResponseAnalysisTags1.to_json()) - -# convert the object into a dict -app_core_responses_base_base_response_analysis_tags1_dict = app_core_responses_base_base_response_analysis_tags1_instance.to_dict() -# create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags1 from a dict -app_core_responses_base_base_response_analysis_tags1_from_dict = AppCoreResponsesBaseBaseResponseAnalysisTags1.from_dict(app_core_responses_base_base_response_analysis_tags1_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md b/docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md deleted file mode 100644 index b7a6c16..0000000 --- a/docs/AppCoreResponsesBaseBaseResponseAnalysisTags2.md +++ /dev/null @@ -1,33 +0,0 @@ -# AppCoreResponsesBaseBaseResponseAnalysisTags2 - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] -**data** | [**AppApiRestV2AnalysesResponsesAnalysisTags**](AppApiRestV2AnalysesResponsesAnalysisTags.md) | | [optional] -**message** | **str** | | [optional] -**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] -**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] - -## Example - -```python -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 - -# TODO update the JSON string below -json = "{}" -# create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags2 from a JSON string -app_core_responses_base_base_response_analysis_tags2_instance = AppCoreResponsesBaseBaseResponseAnalysisTags2.from_json(json) -# print the JSON string representation of the object -print(AppCoreResponsesBaseBaseResponseAnalysisTags2.to_json()) - -# convert the object into a dict -app_core_responses_base_base_response_analysis_tags2_dict = app_core_responses_base_base_response_analysis_tags2_instance.to_dict() -# create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags2 from a dict -app_core_responses_base_base_response_analysis_tags2_from_dict = AppCoreResponsesBaseBaseResponseAnalysisTags2.from_dict(app_core_responses_base_base_response_analysis_tags2_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AutoUnstripByGroupResponse.md b/docs/AutoUnstripByGroupResponse.md new file mode 100644 index 0000000..ceefb9b --- /dev/null +++ b/docs/AutoUnstripByGroupResponse.md @@ -0,0 +1,33 @@ +# AutoUnstripByGroupResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**progress** | **int** | Progress of the auto-unstrip operation, represented as a percentage | [optional] [default to 0] +**status** | **str** | | [optional] +**total_time** | **int** | | [optional] +**matches_map** | **Dict[str, List[MatchedFunctionGroup]]** | | [optional] +**applied** | **bool** | | [optional] + +## Example + +```python +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AutoUnstripByGroupResponse from a JSON string +auto_unstrip_by_group_response_instance = AutoUnstripByGroupResponse.from_json(json) +# print the JSON string representation of the object +print(AutoUnstripByGroupResponse.to_json()) + +# convert the object into a dict +auto_unstrip_by_group_response_dict = auto_unstrip_by_group_response_instance.to_dict() +# create an instance of AutoUnstripByGroupResponse from a dict +auto_unstrip_by_group_response_from_dict = AutoUnstripByGroupResponse.from_dict(auto_unstrip_by_group_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AutoUnstripRequest.md b/docs/AutoUnstripRequest.md new file mode 100644 index 0000000..ca93df8 --- /dev/null +++ b/docs/AutoUnstripRequest.md @@ -0,0 +1,30 @@ +# AutoUnstripRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_similarity** | **float** | Minimum similarity expected for a match, default is 0.9 | [optional] [default to 0.9] +**apply** | **bool** | Whether to apply the matched function names to the target binary, default is False | [optional] [default to False] + +## Example + +```python +from revengai.models.auto_unstrip_request import AutoUnstripRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AutoUnstripRequest from a JSON string +auto_unstrip_request_instance = AutoUnstripRequest.from_json(json) +# print the JSON string representation of the object +print(AutoUnstripRequest.to_json()) + +# convert the object into a dict +auto_unstrip_request_dict = auto_unstrip_request_instance.to_dict() +# create an instance of AutoUnstripRequest from a dict +auto_unstrip_request_from_dict = AutoUnstripRequest.from_dict(auto_unstrip_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AutoUnstripResponse.md b/docs/AutoUnstripResponse.md new file mode 100644 index 0000000..c9374f9 --- /dev/null +++ b/docs/AutoUnstripResponse.md @@ -0,0 +1,33 @@ +# AutoUnstripResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**progress** | **int** | Progress of the auto-unstrip operation, represented as a percentage | [optional] [default to 0] +**status** | **str** | | [optional] +**total_time** | **int** | | [optional] +**matches** | [**List[MatchedFunctionSuggestion]**](MatchedFunctionSuggestion.md) | | [optional] +**applied** | **bool** | | [optional] + +## Example + +```python +from revengai.models.auto_unstrip_response import AutoUnstripResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AutoUnstripResponse from a JSON string +auto_unstrip_response_instance = AutoUnstripResponse.from_json(json) +# print the JSON string representation of the object +print(AutoUnstripResponse.to_json()) + +# convert the object into a dict +auto_unstrip_response_dict = auto_unstrip_response_instance.to_dict() +# create an instance of AutoUnstripResponse from a dict +auto_unstrip_response_from_dict = AutoUnstripResponse.from_dict(auto_unstrip_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BaseResponseAnalysisTags.md b/docs/BaseResponseAnalysisTags.md new file mode 100644 index 0000000..2ac24b8 --- /dev/null +++ b/docs/BaseResponseAnalysisTags.md @@ -0,0 +1,33 @@ +# BaseResponseAnalysisTags + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] +**data** | [**AnalysisTags**](AnalysisTags.md) | | [optional] +**message** | **str** | | [optional] +**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] + +## Example + +```python +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags + +# TODO update the JSON string below +json = "{}" +# create an instance of BaseResponseAnalysisTags from a JSON string +base_response_analysis_tags_instance = BaseResponseAnalysisTags.from_json(json) +# print the JSON string representation of the object +print(BaseResponseAnalysisTags.to_json()) + +# convert the object into a dict +base_response_analysis_tags_dict = base_response_analysis_tags_instance.to_dict() +# create an instance of BaseResponseAnalysisTags from a dict +base_response_analysis_tags_from_dict = BaseResponseAnalysisTags.from_dict(base_response_analysis_tags_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BaseResponseUploadResponse.md b/docs/BaseResponseUploadResponse.md new file mode 100644 index 0000000..1c53476 --- /dev/null +++ b/docs/BaseResponseUploadResponse.md @@ -0,0 +1,33 @@ +# BaseResponseUploadResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | Response status on whether the request succeeded | [optional] [default to True] +**data** | [**UploadResponse**](UploadResponse.md) | | [optional] +**message** | **str** | | [optional] +**errors** | [**List[ErrorModel]**](ErrorModel.md) | | [optional] +**meta** | [**MetaModel**](MetaModel.md) | Metadata | [optional] + +## Example + +```python +from revengai.models.base_response_upload_response import BaseResponseUploadResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of BaseResponseUploadResponse from a JSON string +base_response_upload_response_instance = BaseResponseUploadResponse.from_json(json) +# print the JSON string representation of the object +print(BaseResponseUploadResponse.to_json()) + +# convert the object into a dict +base_response_upload_response_dict = base_response_upload_response_instance.to_dict() +# create an instance of BaseResponseUploadResponse from a dict +base_response_upload_response_from_dict = BaseResponseUploadResponse.from_dict(base_response_upload_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FunctionRename.md b/docs/FunctionRename.md index 6da100c..3a9a021 100644 --- a/docs/FunctionRename.md +++ b/docs/FunctionRename.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**new_name** | **str** | | [optional] +**new_name** | **str** | The new name for the function | [optional] [default to ''] **new_mangled_name** | **str** | | [optional] ## Example diff --git a/docs/FunctionRenameMap.md b/docs/FunctionRenameMap.md index 2d90943..3355c02 100644 --- a/docs/FunctionRenameMap.md +++ b/docs/FunctionRenameMap.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **function_id** | **int** | The ID of the function to rename | -**new_name** | **str** | The new name for the function | +**new_name** | **str** | The new name for the function | [optional] [default to ''] **new_mangled_name** | **str** | | [optional] ## Example diff --git a/docs/FunctionsCoreApi.md b/docs/FunctionsCoreApi.md index fcfa67e..2a77ee5 100644 --- a/docs/FunctionsCoreApi.md +++ b/docs/FunctionsCoreApi.md @@ -4,6 +4,10 @@ All URIs are relative to *https://api.reveng.ai* Method | HTTP request | Description ------------- | ------------- | ------------- +[**ai_unstrip**](FunctionsCoreApi.md#ai_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/ai-unstrip | Performs matching and auto-unstrip for an analysis and its functions +[**auto_unstrip**](FunctionsCoreApi.md#auto_unstrip) | **POST** /v2/analyses/{analysis_id}/functions/auto-unstrip | Performs matching and auto-unstrip for an analysis and its functions +[**cancel_ai_unstrip**](FunctionsCoreApi.md#cancel_ai_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/ai-unstrip/cancel | Cancels a running ai-unstrip +[**cancel_auto_unstrip**](FunctionsCoreApi.md#cancel_auto_unstrip) | **DELETE** /v2/analyses/{analysis_id}/functions/unstrip/cancel | Cancels a running auto-unstrip [**get_analysis_strings**](FunctionsCoreApi.md#get_analysis_strings) | **GET** /v2/analyses/{analysis_id}/functions/strings | Get string information found in the Analysis [**get_function_blocks**](FunctionsCoreApi.md#get_function_blocks) | **GET** /v2/functions/{function_id}/blocks | Get disassembly blocks related to the function [**get_function_callees_callers**](FunctionsCoreApi.md#get_function_callees_callers) | **GET** /v2/functions/{function_id}/callees_callers | Get list of functions that call or are called by the specified function @@ -11,8 +15,343 @@ Method | HTTP request | Description [**get_function_details**](FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details [**get_function_strings**](FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function [**get_similar_functions**](FunctionsCoreApi.md#get_similar_functions) | **GET** /v2/functions/{function_id}/similar-functions | Get list of similar functions +[**unstrip**](FunctionsCoreApi.md#unstrip) | **POST** /v2/analyses/{analysis_id}/functions/unstrip | Performs matching and auto-unstrip for an analysis and its functions +# **ai_unstrip** +> AutoUnstripResponse ai_unstrip(analysis_id, ai_unstrip_request, authorization=authorization) + +Performs matching and auto-unstrip for an analysis and its functions + +Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.ai_unstrip_request import AiUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse +from revengai.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.reveng.ai +# See configuration.py for a list of all supported configuration parameters. +configuration = revengai.Configuration( + host = "https://api.reveng.ai" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKey +configuration.api_key['APIKey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with revengai.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = revengai.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + ai_unstrip_request = revengai.AiUnstripRequest() # AiUnstripRequest | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Performs matching and auto-unstrip for an analysis and its functions + api_response = api_instance.ai_unstrip(analysis_id, ai_unstrip_request, authorization=authorization) + print("The response of FunctionsCoreApi->ai_unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->ai_unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **ai_unstrip_request** | [**AiUnstripRequest**](AiUnstripRequest.md)| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripResponse**](AutoUnstripResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **auto_unstrip** +> AutoUnstripResponse auto_unstrip(analysis_id, auto_unstrip_request, authorization=authorization) + +Performs matching and auto-unstrip for an analysis and its functions + +Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.auto_unstrip_request import AutoUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse +from revengai.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.reveng.ai +# See configuration.py for a list of all supported configuration parameters. +configuration = revengai.Configuration( + host = "https://api.reveng.ai" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKey +configuration.api_key['APIKey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with revengai.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = revengai.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + auto_unstrip_request = revengai.AutoUnstripRequest() # AutoUnstripRequest | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Performs matching and auto-unstrip for an analysis and its functions + api_response = api_instance.auto_unstrip(analysis_id, auto_unstrip_request, authorization=authorization) + print("The response of FunctionsCoreApi->auto_unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->auto_unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **auto_unstrip_request** | [**AutoUnstripRequest**](AutoUnstripRequest.md)| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripResponse**](AutoUnstripResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **cancel_ai_unstrip** +> AutoUnstripResponse cancel_ai_unstrip(analysis_id, authorization=authorization) + +Cancels a running ai-unstrip + +Takes in the analysis ID and cancels a running ai-unstrip operation + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.auto_unstrip_response import AutoUnstripResponse +from revengai.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.reveng.ai +# See configuration.py for a list of all supported configuration parameters. +configuration = revengai.Configuration( + host = "https://api.reveng.ai" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKey +configuration.api_key['APIKey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with revengai.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = revengai.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Cancels a running ai-unstrip + api_response = api_instance.cancel_ai_unstrip(analysis_id, authorization=authorization) + print("The response of FunctionsCoreApi->cancel_ai_unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->cancel_ai_unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripResponse**](AutoUnstripResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **cancel_auto_unstrip** +> AutoUnstripResponse cancel_auto_unstrip(analysis_id, authorization=authorization) + +Cancels a running auto-unstrip + +Takes in the analysis ID and cancels a running auto-unstrip operation + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.auto_unstrip_response import AutoUnstripResponse +from revengai.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.reveng.ai +# See configuration.py for a list of all supported configuration parameters. +configuration = revengai.Configuration( + host = "https://api.reveng.ai" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKey +configuration.api_key['APIKey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with revengai.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = revengai.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Cancels a running auto-unstrip + api_response = api_instance.cancel_auto_unstrip(analysis_id, authorization=authorization) + print("The response of FunctionsCoreApi->cancel_auto_unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->cancel_auto_unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripResponse**](AutoUnstripResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_analysis_strings** > BaseResponseAnalysisStringsResponse get_analysis_strings(analysis_id, page=page, page_size=page_size, search=search, function_search=function_search, authorization=authorization) @@ -554,10 +893,10 @@ with revengai.ApiClient(configuration) as api_client: function_id = 56 # int | limit = 20 # int | Number of similar functions to return (optional) (default to 20) distance = 1.0 # float | Maximum cosine distance (optional) (default to 1.0) - collection_ids = [] # List[Optional[int]] | Collection filtering by IDs (optional) (default to []) + collection_ids = [] # List[int] | Collection filtering by IDs (optional) (default to []) debug = False # bool | Only return matching debug functions (optional) (default to False) debug_types = ["SYSTEM"] # List[str] | If limiting results to functions with debug names, which type of debug names to include? (optional) (default to ["SYSTEM"]) - binary_ids = [] # List[Optional[int]] | Limit similar functions to specific binaries (optional) (default to []) + binary_ids = [] # List[int] | Limit similar functions to specific binaries (optional) (default to []) authorization = 'authorization_example' # str | API Key bearer token (optional) try: @@ -579,10 +918,10 @@ Name | Type | Description | Notes **function_id** | **int**| | **limit** | **int**| Number of similar functions to return | [optional] [default to 20] **distance** | **float**| Maximum cosine distance | [optional] [default to 1.0] - **collection_ids** | [**List[Optional[int]]**](int.md)| Collection filtering by IDs | [optional] [default to []] + **collection_ids** | [**List[int]**](int.md)| Collection filtering by IDs | [optional] [default to []] **debug** | **bool**| Only return matching debug functions | [optional] [default to False] **debug_types** | [**List[str]**](str.md)| If limiting results to functions with debug names, which type of debug names to include? | [optional] [default to ["SYSTEM"]] - **binary_ids** | [**List[Optional[int]]**](int.md)| Limit similar functions to specific binaries | [optional] [default to []] + **binary_ids** | [**List[int]**](int.md)| Limit similar functions to specific binaries | [optional] [default to []] **authorization** | **str**| API Key bearer token | [optional] ### Return type @@ -607,3 +946,88 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **unstrip** +> AutoUnstripByGroupResponse unstrip(analysis_id, unstrip_request, authorization=authorization) + +Performs matching and auto-unstrip for an analysis and its functions + +Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + +### Example + +* Api Key Authentication (APIKey): + +```python +import revengai +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse +from revengai.models.unstrip_request import UnstripRequest +from revengai.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.reveng.ai +# See configuration.py for a list of all supported configuration parameters. +configuration = revengai.Configuration( + host = "https://api.reveng.ai" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: APIKey +configuration.api_key['APIKey'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['APIKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with revengai.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = revengai.FunctionsCoreApi(api_client) + analysis_id = 56 # int | + unstrip_request = revengai.UnstripRequest() # UnstripRequest | + authorization = 'authorization_example' # str | API Key bearer token (optional) + + try: + # Performs matching and auto-unstrip for an analysis and its functions + api_response = api_instance.unstrip(analysis_id, unstrip_request, authorization=authorization) + print("The response of FunctionsCoreApi->unstrip:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling FunctionsCoreApi->unstrip: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **analysis_id** | **int**| | + **unstrip_request** | [**UnstripRequest**](UnstripRequest.md)| | + **authorization** | **str**| API Key bearer token | [optional] + +### Return type + +[**AutoUnstripByGroupResponse**](AutoUnstripByGroupResponse.md) + +### Authorization + +[APIKey](../README.md#APIKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Invalid request parameters | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FunctionsDataTypesApi.md b/docs/FunctionsDataTypesApi.md index f87866d..c194002 100644 --- a/docs/FunctionsDataTypesApi.md +++ b/docs/FunctionsDataTypesApi.md @@ -303,7 +303,7 @@ with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.FunctionsDataTypesApi(api_client) analysis_id = 56 # int | - function_ids = [56] # List[Optional[int]] | (optional) + function_ids = [56] # List[int] | (optional) authorization = 'authorization_example' # str | API Key bearer token (optional) try: @@ -323,7 +323,7 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **analysis_id** | **int**| | - **function_ids** | [**List[Optional[int]]**](int.md)| | [optional] + **function_ids** | [**List[int]**](int.md)| | [optional] **authorization** | **str**| API Key bearer token | [optional] ### Return type @@ -386,7 +386,7 @@ configuration.api_key['APIKey'] = os.environ["API_KEY"] with revengai.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = revengai.FunctionsDataTypesApi(api_client) - function_ids = [56] # List[Optional[int]] | (optional) + function_ids = [56] # List[int] | (optional) authorization = 'authorization_example' # str | API Key bearer token (optional) try: @@ -405,7 +405,7 @@ with revengai.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **function_ids** | [**List[Optional[int]]**](int.md)| | [optional] + **function_ids** | [**List[int]**](int.md)| | [optional] **authorization** | **str**| API Key bearer token | [optional] ### Return type diff --git a/docs/MatchedFunctionGroup.md b/docs/MatchedFunctionGroup.md new file mode 100644 index 0000000..7659291 --- /dev/null +++ b/docs/MatchedFunctionGroup.md @@ -0,0 +1,30 @@ +# MatchedFunctionGroup + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**function_group_name** | **str** | Name of the function group that contains the matched functions | +**similarity** | **float** | Similarity score of the match | + +## Example + +```python +from revengai.models.matched_function_group import MatchedFunctionGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of MatchedFunctionGroup from a JSON string +matched_function_group_instance = MatchedFunctionGroup.from_json(json) +# print the JSON string representation of the object +print(MatchedFunctionGroup.to_json()) + +# convert the object into a dict +matched_function_group_dict = matched_function_group_instance.to_dict() +# create an instance of MatchedFunctionGroup from a dict +matched_function_group_from_dict = MatchedFunctionGroup.from_dict(matched_function_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MatchedFunctionSuggestion.md b/docs/MatchedFunctionSuggestion.md new file mode 100644 index 0000000..087cf92 --- /dev/null +++ b/docs/MatchedFunctionSuggestion.md @@ -0,0 +1,31 @@ +# MatchedFunctionSuggestion + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**function_id** | **int** | Unique identifier of the matched function | +**function_vaddr** | **int** | | +**suggested_name** | **str** | Name of the function group that contains the matched functions | + +## Example + +```python +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion + +# TODO update the JSON string below +json = "{}" +# create an instance of MatchedFunctionSuggestion from a JSON string +matched_function_suggestion_instance = MatchedFunctionSuggestion.from_json(json) +# print the JSON string representation of the object +print(MatchedFunctionSuggestion.to_json()) + +# convert the object into a dict +matched_function_suggestion_dict = matched_function_suggestion_instance.to_dict() +# create an instance of MatchedFunctionSuggestion from a dict +matched_function_suggestion_from_dict = MatchedFunctionSuggestion.from_dict(matched_function_suggestion_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SearchApi.md b/docs/SearchApi.md index 8315be7..2e67c08 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **search_binaries** -> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, authorization=authorization) +> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, authorization=authorization) Binaries search @@ -54,11 +54,12 @@ with revengai.ApiClient(configuration) as api_client: partial_sha256 = 'partial_sha256_example' # str | The partial or full sha256 of the binary being searched (optional) tags = ['tags_example'] # List[str] | The tags to be searched for (optional) model_name = 'model_name_example' # str | The name of the model used to analyze the binary the function belongs to (optional) + user_files_only = False # bool | Whether to only search user's uploaded files (optional) (default to False) authorization = 'authorization_example' # str | API Key bearer token (optional) try: # Binaries search - api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, authorization=authorization) + api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, authorization=authorization) print("The response of SearchApi->search_binaries:\n") pprint(api_response) except Exception as e: @@ -78,6 +79,7 @@ Name | Type | Description | Notes **partial_sha256** | **str**| The partial or full sha256 of the binary being searched | [optional] **tags** | [**List[str]**](str.md)| The tags to be searched for | [optional] **model_name** | **str**| The name of the model used to analyze the binary the function belongs to | [optional] + **user_files_only** | **bool**| Whether to only search user's uploaded files | [optional] [default to False] **authorization** | **str**| API Key bearer token | [optional] ### Return type diff --git a/docs/TagInput.md b/docs/Tag.md similarity index 58% rename from docs/TagInput.md rename to docs/Tag.md index 9895c5e..b5606bd 100644 --- a/docs/TagInput.md +++ b/docs/Tag.md @@ -1,4 +1,4 @@ -# TagInput +# Tag ## Properties @@ -10,19 +10,19 @@ Name | Type | Description | Notes ## Example ```python -from revengai.models.tag_input import TagInput +from revengai.models.tag import Tag # TODO update the JSON string below json = "{}" -# create an instance of TagInput from a JSON string -tag_input_instance = TagInput.from_json(json) +# create an instance of Tag from a JSON string +tag_instance = Tag.from_json(json) # print the JSON string representation of the object -print(TagInput.to_json()) +print(Tag.to_json()) # convert the object into a dict -tag_input_dict = tag_input_instance.to_dict() -# create an instance of TagInput from a dict -tag_input_from_dict = TagInput.from_dict(tag_input_dict) +tag_dict = tag_instance.to_dict() +# create an instance of Tag from a dict +tag_from_dict = Tag.from_dict(tag_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TagOutput.md b/docs/TagOutput.md deleted file mode 100644 index af2ad43..0000000 --- a/docs/TagOutput.md +++ /dev/null @@ -1,30 +0,0 @@ -# TagOutput - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tag** | **str** | The name of the tag | -**origin** | **str** | Where the tag originates from | - -## Example - -```python -from revengai.models.tag_output import TagOutput - -# TODO update the JSON string below -json = "{}" -# create an instance of TagOutput from a JSON string -tag_output_instance = TagOutput.from_json(json) -# print the JSON string representation of the object -print(TagOutput.to_json()) - -# convert the object into a dict -tag_output_dict = tag_output_instance.to_dict() -# create an instance of TagOutput from a dict -tag_output_from_dict = TagOutput.from_dict(tag_output_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UnstripRequest.md b/docs/UnstripRequest.md new file mode 100644 index 0000000..93eaf1d --- /dev/null +++ b/docs/UnstripRequest.md @@ -0,0 +1,31 @@ +# UnstripRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_similarity** | **float** | Minimum similarity expected for a match, default is 0.9 | [optional] [default to 0.9] +**limit** | **int** | Maximum number of matches to return, default is 1, maximum is 10 | [optional] [default to 1] +**apply** | **bool** | Whether to apply the matched function names to the target binary, default is False | [optional] [default to False] + +## Example + +```python +from revengai.models.unstrip_request import UnstripRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UnstripRequest from a JSON string +unstrip_request_instance = UnstripRequest.from_json(json) +# print the JSON string representation of the object +print(UnstripRequest.to_json()) + +# convert the object into a dict +unstrip_request_dict = unstrip_request_instance.to_dict() +# create an instance of UnstripRequest from a dict +unstrip_request_from_dict = UnstripRequest.from_dict(unstrip_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UploadFileType.md b/docs/UploadFileType.md new file mode 100644 index 0000000..5b60136 --- /dev/null +++ b/docs/UploadFileType.md @@ -0,0 +1,16 @@ +# UploadFileType + + +## Enum + +* `BINARY` (value: `'BINARY'`) + +* `DEBUG` (value: `'DEBUG'`) + +* `PACKED` (value: `'PACKED'`) + +* `FIRMWARE` (value: `'FIRMWARE'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UploadResponse.md b/docs/UploadResponse.md new file mode 100644 index 0000000..db62cd8 --- /dev/null +++ b/docs/UploadResponse.md @@ -0,0 +1,31 @@ +# UploadResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sha_256_hash** | **str** | | +**file_type** | [**UploadFileType**](UploadFileType.md) | | +**filename** | **str** | | + +## Example + +```python +from revengai.models.upload_response import UploadResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UploadResponse from a JSON string +upload_response_instance = UploadResponse.from_json(json) +# print the JSON string representation of the object +print(UploadResponse.to_json()) + +# convert the object into a dict +upload_response_dict = upload_response_instance.to_dict() +# create an instance of UploadResponse from a dict +upload_response_from_dict = UploadResponse.from_dict(upload_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/revengai/__init__.py b/revengai/__init__.py index f61d6b8..3328404 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -7,14 +7,14 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 -__version__ = "1.0.0" +__version__ = "v1.72.0" # Define package exports __all__ = [ @@ -50,6 +50,7 @@ "ANNFunction", "Addr", "AiDecompilationRating", + "AiUnstripRequest", "AnalysisAccessInfo", "AnalysisConfig", "AnalysisCreateRequest", @@ -59,28 +60,29 @@ "AnalysisRecord", "AnalysisScope", "AnalysisStringsResponse", + "AnalysisTags", "AnalysisThreatScoreData", "AnalysisUpdateRequest", "AnalysisUpdateTagsRequest", "AnalysisUpdateTagsResponse", "AppApiRestV2AnalysesEnumsDynamicExecutionStatus", "AppApiRestV2AnalysesEnumsOrderBy", - "AppApiRestV2AnalysesResponsesAnalysisTags", "AppApiRestV2AnalysesResponsesTagItem", "AppApiRestV2CollectionsEnumsOrderBy", "AppApiRestV2FunctionsResponsesFunction", "AppApiRestV2FunctionsTypesFunction", - "AppApiRestV2InfoResponsesAnalysisTags", - "AppCoreResponsesBaseBaseResponseAnalysisTags1", - "AppCoreResponsesBaseBaseResponseAnalysisTags2", "AppServicesBinaryAnnSchemaTagItem", "AppServicesDynamicExecutionSchemasDynamicExecutionStatus", "Argument", + "AutoUnstripByGroupResponse", + "AutoUnstripRequest", + "AutoUnstripResponse", "BaseResponse", "BaseResponseAnalysisCreateResponse", "BaseResponseAnalysisDetailResponse", "BaseResponseAnalysisFunctions", "BaseResponseAnalysisStringsResponse", + "BaseResponseAnalysisTags", "BaseResponseAnalysisThreatScoreData", "BaseResponseAnalysisUpdateTagsResponse", "BaseResponseBasic", @@ -151,6 +153,7 @@ "BaseResponseTTPS", "BaseResponseTagSearchResponse", "BaseResponseTaskResponse", + "BaseResponseUploadResponse", "BaseResponseVulnerabilities", "Basic", "BinaryAdditionalDetailsDataResponse", @@ -271,6 +274,8 @@ "LoginRequest", "LoginResponse", "Logs", + "MatchedFunctionGroup", + "MatchedFunctionSuggestion", "MetaModel", "ModelName", "ModelsResponse", @@ -327,10 +332,9 @@ "TTPSData", "TTPSElement", "TTPSOccurance", + "Tag", "TagConfidenceBody", - "TagInput", "TagOriginBoxPlotConfidence", - "TagOutput", "TagResponse", "TagSearchResponse", "TagSearchResult", @@ -340,7 +344,10 @@ "ThreatScoreFunctionBody", "TimestampModel", "TypeDefinition", + "UnstripRequest", "UpdateFunctionDataTypes", + "UploadFileType", + "UploadResponse", "UpsertAiDecomplationRatingRequest", "UserActivityResponse", "Vulnerabilities", @@ -387,6 +394,7 @@ from revengai.models.ann_function import ANNFunction as ANNFunction from revengai.models.addr import Addr as Addr from revengai.models.ai_decompilation_rating import AiDecompilationRating as AiDecompilationRating + from revengai.models.ai_unstrip_request import AiUnstripRequest as AiUnstripRequest from revengai.models.analysis_access_info import AnalysisAccessInfo as AnalysisAccessInfo from revengai.models.analysis_config import AnalysisConfig as AnalysisConfig from revengai.models.analysis_create_request import AnalysisCreateRequest as AnalysisCreateRequest @@ -396,28 +404,29 @@ from revengai.models.analysis_record import AnalysisRecord as AnalysisRecord from revengai.models.analysis_scope import AnalysisScope as AnalysisScope from revengai.models.analysis_strings_response import AnalysisStringsResponse as AnalysisStringsResponse + from revengai.models.analysis_tags import AnalysisTags as AnalysisTags from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData as AnalysisThreatScoreData from revengai.models.analysis_update_request import AnalysisUpdateRequest as AnalysisUpdateRequest from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest as AnalysisUpdateTagsRequest from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse as AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus as AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy as AppApiRestV2AnalysesEnumsOrderBy - from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags as AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem as AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy as AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction as AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction as AppApiRestV2FunctionsTypesFunction - from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags as AppApiRestV2InfoResponsesAnalysisTags - from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 as AppCoreResponsesBaseBaseResponseAnalysisTags1 - from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 as AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem as AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus as AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument as Argument + from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse as AutoUnstripByGroupResponse + from revengai.models.auto_unstrip_request import AutoUnstripRequest as AutoUnstripRequest + from revengai.models.auto_unstrip_response import AutoUnstripResponse as AutoUnstripResponse from revengai.models.base_response import BaseResponse as BaseResponse from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse as BaseResponseAnalysisCreateResponse from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse as BaseResponseAnalysisDetailResponse from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions as BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse as BaseResponseAnalysisStringsResponse + from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags as BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData as BaseResponseAnalysisThreatScoreData from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse as BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic as BaseResponseBasic @@ -488,6 +497,7 @@ from revengai.models.base_response_ttps import BaseResponseTTPS as BaseResponseTTPS from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse as BaseResponseTagSearchResponse from revengai.models.base_response_task_response import BaseResponseTaskResponse as BaseResponseTaskResponse + from revengai.models.base_response_upload_response import BaseResponseUploadResponse as BaseResponseUploadResponse from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities as BaseResponseVulnerabilities from revengai.models.basic import Basic as Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse as BinaryAdditionalDetailsDataResponse @@ -608,6 +618,8 @@ from revengai.models.login_request import LoginRequest as LoginRequest from revengai.models.login_response import LoginResponse as LoginResponse from revengai.models.logs import Logs as Logs + from revengai.models.matched_function_group import MatchedFunctionGroup as MatchedFunctionGroup + from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion as MatchedFunctionSuggestion from revengai.models.meta_model import MetaModel as MetaModel from revengai.models.model_name import ModelName as ModelName from revengai.models.models_response import ModelsResponse as ModelsResponse @@ -664,10 +676,9 @@ from revengai.models.ttps_data import TTPSData as TTPSData from revengai.models.ttps_element import TTPSElement as TTPSElement from revengai.models.ttps_occurance import TTPSOccurance as TTPSOccurance + from revengai.models.tag import Tag as Tag from revengai.models.tag_confidence_body import TagConfidenceBody as TagConfidenceBody - from revengai.models.tag_input import TagInput as TagInput from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence as TagOriginBoxPlotConfidence - from revengai.models.tag_output import TagOutput as TagOutput from revengai.models.tag_response import TagResponse as TagResponse from revengai.models.tag_search_response import TagSearchResponse as TagSearchResponse from revengai.models.tag_search_result import TagSearchResult as TagSearchResult @@ -677,7 +688,10 @@ from revengai.models.threat_score_function_body import ThreatScoreFunctionBody as ThreatScoreFunctionBody from revengai.models.timestamp_model import TimestampModel as TimestampModel from revengai.models.type_definition import TypeDefinition as TypeDefinition + from revengai.models.unstrip_request import UnstripRequest as UnstripRequest from revengai.models.update_function_data_types import UpdateFunctionDataTypes as UpdateFunctionDataTypes + from revengai.models.upload_file_type import UploadFileType as UploadFileType + from revengai.models.upload_response import UploadResponse as UploadResponse from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest as UpsertAiDecomplationRatingRequest from revengai.models.user_activity_response import UserActivityResponse as UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities as Vulnerabilities @@ -730,6 +744,7 @@ from revengai.models.ann_function import ANNFunction as ANNFunction from revengai.models.addr import Addr as Addr from revengai.models.ai_decompilation_rating import AiDecompilationRating as AiDecompilationRating +from revengai.models.ai_unstrip_request import AiUnstripRequest as AiUnstripRequest from revengai.models.analysis_access_info import AnalysisAccessInfo as AnalysisAccessInfo from revengai.models.analysis_config import AnalysisConfig as AnalysisConfig from revengai.models.analysis_create_request import AnalysisCreateRequest as AnalysisCreateRequest @@ -739,28 +754,29 @@ from revengai.models.analysis_record import AnalysisRecord as AnalysisRecord from revengai.models.analysis_scope import AnalysisScope as AnalysisScope from revengai.models.analysis_strings_response import AnalysisStringsResponse as AnalysisStringsResponse +from revengai.models.analysis_tags import AnalysisTags as AnalysisTags from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData as AnalysisThreatScoreData from revengai.models.analysis_update_request import AnalysisUpdateRequest as AnalysisUpdateRequest from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest as AnalysisUpdateTagsRequest from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse as AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus as AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy as AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags as AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem as AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy as AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction as AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction as AppApiRestV2FunctionsTypesFunction -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags as AppApiRestV2InfoResponsesAnalysisTags -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 as AppCoreResponsesBaseBaseResponseAnalysisTags1 -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 as AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem as AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus as AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument as Argument +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse as AutoUnstripByGroupResponse +from revengai.models.auto_unstrip_request import AutoUnstripRequest as AutoUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse as AutoUnstripResponse from revengai.models.base_response import BaseResponse as BaseResponse from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse as BaseResponseAnalysisCreateResponse from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse as BaseResponseAnalysisDetailResponse from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions as BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse as BaseResponseAnalysisStringsResponse +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags as BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData as BaseResponseAnalysisThreatScoreData from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse as BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic as BaseResponseBasic @@ -831,6 +847,7 @@ from revengai.models.base_response_ttps import BaseResponseTTPS as BaseResponseTTPS from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse as BaseResponseTagSearchResponse from revengai.models.base_response_task_response import BaseResponseTaskResponse as BaseResponseTaskResponse +from revengai.models.base_response_upload_response import BaseResponseUploadResponse as BaseResponseUploadResponse from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities as BaseResponseVulnerabilities from revengai.models.basic import Basic as Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse as BinaryAdditionalDetailsDataResponse @@ -951,6 +968,8 @@ from revengai.models.login_request import LoginRequest as LoginRequest from revengai.models.login_response import LoginResponse as LoginResponse from revengai.models.logs import Logs as Logs +from revengai.models.matched_function_group import MatchedFunctionGroup as MatchedFunctionGroup +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion as MatchedFunctionSuggestion from revengai.models.meta_model import MetaModel as MetaModel from revengai.models.model_name import ModelName as ModelName from revengai.models.models_response import ModelsResponse as ModelsResponse @@ -1007,10 +1026,9 @@ from revengai.models.ttps_data import TTPSData as TTPSData from revengai.models.ttps_element import TTPSElement as TTPSElement from revengai.models.ttps_occurance import TTPSOccurance as TTPSOccurance +from revengai.models.tag import Tag as Tag from revengai.models.tag_confidence_body import TagConfidenceBody as TagConfidenceBody -from revengai.models.tag_input import TagInput as TagInput from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence as TagOriginBoxPlotConfidence -from revengai.models.tag_output import TagOutput as TagOutput from revengai.models.tag_response import TagResponse as TagResponse from revengai.models.tag_search_response import TagSearchResponse as TagSearchResponse from revengai.models.tag_search_result import TagSearchResult as TagSearchResult @@ -1020,7 +1038,10 @@ from revengai.models.threat_score_function_body import ThreatScoreFunctionBody as ThreatScoreFunctionBody from revengai.models.timestamp_model import TimestampModel as TimestampModel from revengai.models.type_definition import TypeDefinition as TypeDefinition +from revengai.models.unstrip_request import UnstripRequest as UnstripRequest from revengai.models.update_function_data_types import UpdateFunctionDataTypes as UpdateFunctionDataTypes +from revengai.models.upload_file_type import UploadFileType as UploadFileType +from revengai.models.upload_response import UploadResponse as UploadResponse from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest as UpsertAiDecomplationRatingRequest from revengai.models.user_activity_response import UserActivityResponse as UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities as Vulnerabilities diff --git a/revengai/api/analyses_comments_api.py b/revengai/api/analyses_comments_api.py index 6d54c97..ad6d91e 100644 --- a/revengai/api/analyses_comments_api.py +++ b/revengai/api/analyses_comments_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/analyses_core_api.py b/revengai/api/analyses_core_api.py index 3e26dc9..38d7b9a 100644 --- a/revengai/api/analyses_core_api.py +++ b/revengai/api/analyses_core_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,8 +16,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt, StrictStr -from typing import Any, List, Optional +from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr +from typing import Any, List, Optional, Tuple, Union from typing_extensions import Annotated from revengai.models.ann_function import ANNFunction from revengai.models.analysis_create_request import AnalysisCreateRequest @@ -37,12 +37,14 @@ from revengai.models.base_response_recent import BaseResponseRecent from revengai.models.base_response_status import BaseResponseStatus from revengai.models.base_response_symbols_info import BaseResponseSymbolsInfo +from revengai.models.base_response_upload_response import BaseResponseUploadResponse from revengai.models.binary_ann_form import BinaryAnnForm from revengai.models.dynamic_execution_status_input import DynamicExecutionStatusInput from revengai.models.model_name import ModelName from revengai.models.order import Order from revengai.models.re_analysis_form import ReAnalysisForm from revengai.models.status_input import StatusInput +from revengai.models.upload_file_type import UploadFileType from revengai.models.workspace import Workspace from revengai.api_client import ApiClient, RequestSerialized @@ -4303,3 +4305,339 @@ def _update_analysis_tags_serialize( ) + + + @validate_call + def upload_file( + self, + upload_file_type: UploadFileType, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + packed_password: Optional[StrictStr] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + force_overwrite: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BaseResponseUploadResponse: + """Upload File + + + :param upload_file_type: (required) + :type upload_file_type: UploadFileType + :param file: (required) + :type file: bytearray + :param packed_password: + :type packed_password: str + :param authorization: API Key bearer token + :type authorization: str + :param force_overwrite: + :type force_overwrite: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upload_file_serialize( + upload_file_type=upload_file_type, + file=file, + packed_password=packed_password, + authorization=authorization, + force_overwrite=force_overwrite, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseUploadResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def upload_file_with_http_info( + self, + upload_file_type: UploadFileType, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + packed_password: Optional[StrictStr] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + force_overwrite: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BaseResponseUploadResponse]: + """Upload File + + + :param upload_file_type: (required) + :type upload_file_type: UploadFileType + :param file: (required) + :type file: bytearray + :param packed_password: + :type packed_password: str + :param authorization: API Key bearer token + :type authorization: str + :param force_overwrite: + :type force_overwrite: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upload_file_serialize( + upload_file_type=upload_file_type, + file=file, + packed_password=packed_password, + authorization=authorization, + force_overwrite=force_overwrite, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseUploadResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def upload_file_without_preload_content( + self, + upload_file_type: UploadFileType, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + packed_password: Optional[StrictStr] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + force_overwrite: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Upload File + + + :param upload_file_type: (required) + :type upload_file_type: UploadFileType + :param file: (required) + :type file: bytearray + :param packed_password: + :type packed_password: str + :param authorization: API Key bearer token + :type authorization: str + :param force_overwrite: + :type force_overwrite: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._upload_file_serialize( + upload_file_type=upload_file_type, + file=file, + packed_password=packed_password, + authorization=authorization, + force_overwrite=force_overwrite, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseUploadResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _upload_file_serialize( + self, + upload_file_type, + file, + packed_password, + authorization, + force_overwrite, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if packed_password is not None: + + _query_params.append(('packed_password', packed_password)) + + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + if upload_file_type is not None: + _form_params.append(('upload_file_type', upload_file_type)) + if file is not None: + _files['file'] = file + if force_overwrite is not None: + _form_params.append(('force_overwrite', force_overwrite)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v2/upload', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/revengai/api/analyses_dynamic_execution_api.py b/revengai/api/analyses_dynamic_execution_api.py index 4719b78..0e2dc40 100644 --- a/revengai/api/analyses_dynamic_execution_api.py +++ b/revengai/api/analyses_dynamic_execution_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/analyses_results_metadata_api.py b/revengai/api/analyses_results_metadata_api.py index f2f3eb5..96ed699 100644 --- a/revengai/api/analyses_results_metadata_api.py +++ b/revengai/api/analyses_results_metadata_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,8 +19,8 @@ from pydantic import Field, StrictInt, StrictStr from typing import Any, Optional from typing_extensions import Annotated -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData from revengai.models.base_response_capabilities import BaseResponseCapabilities from revengai.models.base_response_communities import BaseResponseCommunities @@ -1513,7 +1513,7 @@ def get_tags( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppCoreResponsesBaseBaseResponseAnalysisTags2: + ) -> BaseResponseAnalysisTags: """Get function tags with maliciousness score @@ -1553,7 +1553,7 @@ def get_tags( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppCoreResponsesBaseBaseResponseAnalysisTags2", + '200': "BaseResponseAnalysisTags", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1584,7 +1584,7 @@ def get_tags_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AppCoreResponsesBaseBaseResponseAnalysisTags2]: + ) -> ApiResponse[BaseResponseAnalysisTags]: """Get function tags with maliciousness score @@ -1624,7 +1624,7 @@ def get_tags_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppCoreResponsesBaseBaseResponseAnalysisTags2", + '200': "BaseResponseAnalysisTags", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1695,7 +1695,7 @@ def get_tags_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AppCoreResponsesBaseBaseResponseAnalysisTags2", + '200': "BaseResponseAnalysisTags", '422': "BaseResponse", } response_data = self.api_client.call_api( diff --git a/revengai/api/analyses_security_checks_api.py b/revengai/api/analyses_security_checks_api.py index 37fea21..d74a6f6 100644 --- a/revengai/api/analyses_security_checks_api.py +++ b/revengai/api/analyses_security_checks_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/authentication_users_api.py b/revengai/api/authentication_users_api.py index e4531ee..f3502a5 100644 --- a/revengai/api/authentication_users_api.py +++ b/revengai/api/authentication_users_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/binaries_api.py b/revengai/api/binaries_api.py index 1ba25a2..20b2de1 100644 --- a/revengai/api/binaries_api.py +++ b/revengai/api/binaries_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/collections_api.py b/revengai/api/collections_api.py index a149071..0053052 100644 --- a/revengai/api/collections_api.py +++ b/revengai/api/collections_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/confidence_api.py b/revengai/api/confidence_api.py index bb4d438..22126f9 100644 --- a/revengai/api/confidence_api.py +++ b/revengai/api/confidence_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/external_sources_api.py b/revengai/api/external_sources_api.py index d2ab1d2..70813ca 100644 --- a/revengai/api/external_sources_api.py +++ b/revengai/api/external_sources_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/firmware_api.py b/revengai/api/firmware_api.py index 0c707c2..c7131ef 100644 --- a/revengai/api/firmware_api.py +++ b/revengai/api/firmware_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_ai_decompilation_api.py b/revengai/api/functions_ai_decompilation_api.py index e8cc434..a83b702 100644 --- a/revengai/api/functions_ai_decompilation_api.py +++ b/revengai/api/functions_ai_decompilation_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_block_comments_api.py b/revengai/api/functions_block_comments_api.py index 03947a5..6fc2378 100644 --- a/revengai/api/functions_block_comments_api.py +++ b/revengai/api/functions_block_comments_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_core_api.py b/revengai/api/functions_core_api.py index 48b670e..b91c36e 100644 --- a/revengai/api/functions_core_api.py +++ b/revengai/api/functions_core_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,6 +19,10 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import List, Optional, Union from typing_extensions import Annotated +from revengai.models.ai_unstrip_request import AiUnstripRequest +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse +from revengai.models.auto_unstrip_request import AutoUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse @@ -26,6 +30,7 @@ from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse from revengai.models.base_response_list_similar_functions_response import BaseResponseListSimilarFunctionsResponse +from revengai.models.unstrip_request import UnstripRequest from revengai.api_client import ApiClient, RequestSerialized from revengai.api_response import ApiResponse @@ -46,13 +51,10 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_analysis_strings( + def ai_unstrip( self, analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + ai_unstrip_request: AiUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -66,21 +68,15 @@ def get_analysis_strings( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseAnalysisStringsResponse: - """Get string information found in the Analysis + ) -> AutoUnstripResponse: + """Performs matching and auto-unstrip for an analysis and its functions - Get string information found in the analysis + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system :param analysis_id: (required) :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str + :param ai_unstrip_request: (required) + :type ai_unstrip_request: AiUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -105,12 +101,9 @@ def get_analysis_strings( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_strings_serialize( + _param = self._ai_unstrip_serialize( analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, + ai_unstrip_request=ai_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -119,7 +112,7 @@ def get_analysis_strings( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -134,13 +127,10 @@ def get_analysis_strings( @validate_call - def get_analysis_strings_with_http_info( + def ai_unstrip_with_http_info( self, analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + ai_unstrip_request: AiUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -154,21 +144,15 @@ def get_analysis_strings_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseAnalysisStringsResponse]: - """Get string information found in the Analysis + ) -> ApiResponse[AutoUnstripResponse]: + """Performs matching and auto-unstrip for an analysis and its functions - Get string information found in the analysis + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system :param analysis_id: (required) :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str + :param ai_unstrip_request: (required) + :type ai_unstrip_request: AiUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -193,12 +177,9 @@ def get_analysis_strings_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_strings_serialize( + _param = self._ai_unstrip_serialize( analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, + ai_unstrip_request=ai_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -207,7 +188,7 @@ def get_analysis_strings_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -222,13 +203,10 @@ def get_analysis_strings_with_http_info( @validate_call - def get_analysis_strings_without_preload_content( + def ai_unstrip_without_preload_content( self, analysis_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, - function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, + ai_unstrip_request: AiUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -243,20 +221,14 @@ def get_analysis_strings_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get string information found in the Analysis + """Performs matching and auto-unstrip for an analysis and its functions - Get string information found in the analysis + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system :param analysis_id: (required) :type analysis_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str - :param function_search: Search is applied to function names - :type function_search: str + :param ai_unstrip_request: (required) + :type ai_unstrip_request: AiUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -281,12 +253,9 @@ def get_analysis_strings_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_analysis_strings_serialize( + _param = self._ai_unstrip_serialize( analysis_id=analysis_id, - page=page, - page_size=page_size, - search=search, - function_search=function_search, + ai_unstrip_request=ai_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -295,7 +264,7 @@ def get_analysis_strings_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseAnalysisStringsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -305,13 +274,10 @@ def get_analysis_strings_without_preload_content( return response_data.response - def _get_analysis_strings_serialize( + def _ai_unstrip_serialize( self, analysis_id, - page, - page_size, - search, - function_search, + ai_unstrip_request, authorization, _request_auth, _content_type, @@ -337,27 +303,13 @@ def _get_analysis_strings_serialize( if analysis_id is not None: _path_params['analysis_id'] = analysis_id # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if function_search is not None: - - _query_params.append(('function_search', function_search)) - # process the header parameters if authorization is not None: _header_params['authorization'] = authorization # process the form parameters # process the body parameter + if ai_unstrip_request is not None: + _body_params = ai_unstrip_request # set the HTTP header `Accept` @@ -368,6 +320,19 @@ def _get_analysis_strings_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -375,8 +340,8 @@ def _get_analysis_strings_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/analyses/{analysis_id}/functions/strings', + method='POST', + resource_path='/v2/analyses/{analysis_id}/functions/ai-unstrip', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -393,9 +358,10 @@ def _get_analysis_strings_serialize( @validate_call - def get_function_blocks( + def auto_unstrip( self, - function_id: StrictInt, + analysis_id: StrictInt, + auto_unstrip_request: AutoUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -409,13 +375,15 @@ def get_function_blocks( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionBlocksResponse: - """Get disassembly blocks related to the function + ) -> AutoUnstripResponse: + """Performs matching and auto-unstrip for an analysis and its functions - Get disassembly blocks related to the function + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param auto_unstrip_request: (required) + :type auto_unstrip_request: AutoUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -440,8 +408,9 @@ def get_function_blocks( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_blocks_serialize( - function_id=function_id, + _param = self._auto_unstrip_serialize( + analysis_id=analysis_id, + auto_unstrip_request=auto_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -450,9 +419,8 @@ def get_function_blocks( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -466,9 +434,10 @@ def get_function_blocks( @validate_call - def get_function_blocks_with_http_info( + def auto_unstrip_with_http_info( self, - function_id: StrictInt, + analysis_id: StrictInt, + auto_unstrip_request: AutoUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -482,13 +451,15 @@ def get_function_blocks_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionBlocksResponse]: - """Get disassembly blocks related to the function + ) -> ApiResponse[AutoUnstripResponse]: + """Performs matching and auto-unstrip for an analysis and its functions - Get disassembly blocks related to the function + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param auto_unstrip_request: (required) + :type auto_unstrip_request: AutoUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -513,8 +484,9 @@ def get_function_blocks_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_blocks_serialize( - function_id=function_id, + _param = self._auto_unstrip_serialize( + analysis_id=analysis_id, + auto_unstrip_request=auto_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -523,9 +495,8 @@ def get_function_blocks_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -539,9 +510,10 @@ def get_function_blocks_with_http_info( @validate_call - def get_function_blocks_without_preload_content( + def auto_unstrip_without_preload_content( self, - function_id: StrictInt, + analysis_id: StrictInt, + auto_unstrip_request: AutoUnstripRequest, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -556,12 +528,14 @@ def get_function_blocks_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get disassembly blocks related to the function + """Performs matching and auto-unstrip for an analysis and its functions - Get disassembly blocks related to the function + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param auto_unstrip_request: (required) + :type auto_unstrip_request: AutoUnstripRequest :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -586,8 +560,9 @@ def get_function_blocks_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_blocks_serialize( - function_id=function_id, + _param = self._auto_unstrip_serialize( + analysis_id=analysis_id, + auto_unstrip_request=auto_unstrip_request, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -596,9 +571,8 @@ def get_function_blocks_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionBlocksResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -607,9 +581,10 @@ def get_function_blocks_without_preload_content( return response_data.response - def _get_function_blocks_serialize( + def _auto_unstrip_serialize( self, - function_id, + analysis_id, + auto_unstrip_request, authorization, _request_auth, _content_type, @@ -632,14 +607,16 @@ def _get_function_blocks_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters # process the header parameters if authorization is not None: _header_params['authorization'] = authorization # process the form parameters # process the body parameter + if auto_unstrip_request is not None: + _body_params = auto_unstrip_request # set the HTTP header `Accept` @@ -650,6 +627,19 @@ def _get_function_blocks_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -657,8 +647,8 @@ def _get_function_blocks_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/blocks', + method='POST', + resource_path='/v2/analyses/{analysis_id}/functions/auto-unstrip', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -675,9 +665,9 @@ def _get_function_blocks_serialize( @validate_call - def get_function_callees_callers( + def cancel_ai_unstrip( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -691,12 +681,13 @@ def get_function_callees_callers( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseCalleesCallerFunctionsResponse: - """Get list of functions that call or are called by the specified function + ) -> AutoUnstripResponse: + """Cancels a running ai-unstrip + Takes in the analysis ID and cancels a running ai-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -721,8 +712,8 @@ def get_function_callees_callers( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_callees_callers_serialize( - function_id=function_id, + _param = self._cancel_ai_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -731,7 +722,7 @@ def get_function_callees_callers( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -746,9 +737,9 @@ def get_function_callees_callers( @validate_call - def get_function_callees_callers_with_http_info( + def cancel_ai_unstrip_with_http_info( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -762,12 +753,13 @@ def get_function_callees_callers_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseCalleesCallerFunctionsResponse]: - """Get list of functions that call or are called by the specified function + ) -> ApiResponse[AutoUnstripResponse]: + """Cancels a running ai-unstrip + Takes in the analysis ID and cancels a running ai-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -792,8 +784,8 @@ def get_function_callees_callers_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_callees_callers_serialize( - function_id=function_id, + _param = self._cancel_ai_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -802,7 +794,7 @@ def get_function_callees_callers_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -817,9 +809,9 @@ def get_function_callees_callers_with_http_info( @validate_call - def get_function_callees_callers_without_preload_content( + def cancel_ai_unstrip_without_preload_content( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -834,11 +826,12 @@ def get_function_callees_callers_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get list of functions that call or are called by the specified function + """Cancels a running ai-unstrip + Takes in the analysis ID and cancels a running ai-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -863,8 +856,8 @@ def get_function_callees_callers_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_callees_callers_serialize( - function_id=function_id, + _param = self._cancel_ai_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -873,7 +866,7 @@ def get_function_callees_callers_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseCalleesCallerFunctionsResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -883,9 +876,9 @@ def get_function_callees_callers_without_preload_content( return response_data.response - def _get_function_callees_callers_serialize( + def _cancel_ai_unstrip_serialize( self, - function_id, + analysis_id, authorization, _request_auth, _content_type, @@ -908,8 +901,8 @@ def _get_function_callees_callers_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters # process the header parameters if authorization is not None: @@ -933,8 +926,8 @@ def _get_function_callees_callers_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/callees_callers', + method='DELETE', + resource_path='/v2/analyses/{analysis_id}/functions/ai-unstrip/cancel', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -951,9 +944,9 @@ def _get_function_callees_callers_serialize( @validate_call - def get_function_capabilities( + def cancel_auto_unstrip( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -967,12 +960,13 @@ def get_function_capabilities( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionCapabilityResponse: - """Retrieve a functions capabilities + ) -> AutoUnstripResponse: + """Cancels a running auto-unstrip + Takes in the analysis ID and cancels a running auto-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -997,8 +991,8 @@ def get_function_capabilities( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_serialize( - function_id=function_id, + _param = self._cancel_auto_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1007,9 +1001,8 @@ def get_function_capabilities( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1023,9 +1016,9 @@ def get_function_capabilities( @validate_call - def get_function_capabilities_with_http_info( + def cancel_auto_unstrip_with_http_info( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1039,12 +1032,13 @@ def get_function_capabilities_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionCapabilityResponse]: - """Retrieve a functions capabilities + ) -> ApiResponse[AutoUnstripResponse]: + """Cancels a running auto-unstrip + Takes in the analysis ID and cancels a running auto-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1069,8 +1063,8 @@ def get_function_capabilities_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_serialize( - function_id=function_id, + _param = self._cancel_auto_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1079,9 +1073,8 @@ def get_function_capabilities_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1095,9 +1088,9 @@ def get_function_capabilities_with_http_info( @validate_call - def get_function_capabilities_without_preload_content( + def cancel_auto_unstrip_without_preload_content( self, - function_id: StrictInt, + analysis_id: StrictInt, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1112,11 +1105,12 @@ def get_function_capabilities_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a functions capabilities + """Cancels a running auto-unstrip + Takes in the analysis ID and cancels a running auto-unstrip operation - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1141,8 +1135,8 @@ def get_function_capabilities_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_capabilities_serialize( - function_id=function_id, + _param = self._cancel_auto_unstrip_serialize( + analysis_id=analysis_id, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1151,9 +1145,8 @@ def get_function_capabilities_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionCapabilityResponse", + '200': "AutoUnstripResponse", '422': "BaseResponse", - '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1162,9 +1155,9 @@ def get_function_capabilities_without_preload_content( return response_data.response - def _get_function_capabilities_serialize( + def _cancel_auto_unstrip_serialize( self, - function_id, + analysis_id, authorization, _request_auth, _content_type, @@ -1187,8 +1180,8 @@ def _get_function_capabilities_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters # process the header parameters if authorization is not None: @@ -1212,8 +1205,8 @@ def _get_function_capabilities_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/functions/{function_id}/capabilities', + method='DELETE', + resource_path='/v2/analyses/{analysis_id}/functions/unstrip/cancel', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1230,9 +1223,13 @@ def _get_function_capabilities_serialize( @validate_call - def get_function_details( + def get_analysis_strings( self, - function_id: StrictInt, + analysis_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1246,13 +1243,22 @@ def get_function_details( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionsDetailResponse: - """Get function details + ) -> BaseResponseAnalysisStringsResponse: + """Get string information found in the Analysis + Get string information found in the analysis - :param function_id: (required) - :type function_id: int - :param authorization: API Key bearer token + :param analysis_id: (required) + :type analysis_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param function_search: Search is applied to function names + :type function_search: str + :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1276,8 +1282,12 @@ def get_function_details( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_serialize( - function_id=function_id, + _param = self._get_analysis_strings_serialize( + analysis_id=analysis_id, + page=page, + page_size=page_size, + search=search, + function_search=function_search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1286,7 +1296,7 @@ def get_function_details( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", + '200': "BaseResponseAnalysisStringsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1301,9 +1311,13 @@ def get_function_details( @validate_call - def get_function_details_with_http_info( + def get_analysis_strings_with_http_info( self, - function_id: StrictInt, + analysis_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1317,12 +1331,21 @@ def get_function_details_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionsDetailResponse]: - """Get function details + ) -> ApiResponse[BaseResponseAnalysisStringsResponse]: + """Get string information found in the Analysis + Get string information found in the analysis - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param function_search: Search is applied to function names + :type function_search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1347,8 +1370,12 @@ def get_function_details_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_serialize( - function_id=function_id, + _param = self._get_analysis_strings_serialize( + analysis_id=analysis_id, + page=page, + page_size=page_size, + search=search, + function_search=function_search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1357,7 +1384,7 @@ def get_function_details_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", + '200': "BaseResponseAnalysisStringsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1372,9 +1399,13 @@ def get_function_details_with_http_info( @validate_call - def get_function_details_without_preload_content( + def get_analysis_strings_without_preload_content( self, - function_id: StrictInt, + analysis_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + function_search: Annotated[Optional[StrictStr], Field(description="Search is applied to function names")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1389,11 +1420,20 @@ def get_function_details_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get function details + """Get string information found in the Analysis + Get string information found in the analysis - :param function_id: (required) - :type function_id: int + :param analysis_id: (required) + :type analysis_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param function_search: Search is applied to function names + :type function_search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1418,8 +1458,12 @@ def get_function_details_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_details_serialize( - function_id=function_id, + _param = self._get_analysis_strings_serialize( + analysis_id=analysis_id, + page=page, + page_size=page_size, + search=search, + function_search=function_search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1428,7 +1472,7 @@ def get_function_details_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionsDetailResponse", + '200': "BaseResponseAnalysisStringsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1438,9 +1482,13 @@ def get_function_details_without_preload_content( return response_data.response - def _get_function_details_serialize( + def _get_analysis_strings_serialize( self, - function_id, + analysis_id, + page, + page_size, + search, + function_search, authorization, _request_auth, _content_type, @@ -1463,9 +1511,25 @@ def _get_function_details_serialize( _body_params: Optional[bytes] = None # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id # process the query parameters + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if function_search is not None: + + _query_params.append(('function_search', function_search)) + # process the header parameters if authorization is not None: _header_params['authorization'] = authorization @@ -1489,7 +1553,7 @@ def _get_function_details_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/{function_id}', + resource_path='/v2/analyses/{analysis_id}/functions/strings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1506,12 +1570,9 @@ def _get_function_details_serialize( @validate_call - def get_function_strings( + def get_function_blocks( self, function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1525,19 +1586,13 @@ def get_function_strings( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseFunctionStringsResponse: - """Get string information found in the function + ) -> BaseResponseFunctionBlocksResponse: + """Get disassembly blocks related to the function - Get string information found in the function + Get disassembly blocks related to the function :param function_id: (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1562,11 +1617,8 @@ def get_function_strings( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1575,8 +1627,9 @@ def get_function_strings( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", + '200': "BaseResponseFunctionBlocksResponse", '422': "BaseResponse", + '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1590,12 +1643,9 @@ def get_function_strings( @validate_call - def get_function_strings_with_http_info( + def get_function_blocks_with_http_info( self, function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1609,19 +1659,13 @@ def get_function_strings_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseFunctionStringsResponse]: - """Get string information found in the function + ) -> ApiResponse[BaseResponseFunctionBlocksResponse]: + """Get disassembly blocks related to the function - Get string information found in the function + Get disassembly blocks related to the function :param function_id: (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1646,11 +1690,8 @@ def get_function_strings_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1659,8 +1700,9 @@ def get_function_strings_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", + '200': "BaseResponseFunctionBlocksResponse", '422': "BaseResponse", + '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1674,12 +1716,9 @@ def get_function_strings_with_http_info( @validate_call - def get_function_strings_without_preload_content( + def get_function_blocks_without_preload_content( self, function_id: StrictInt, - page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, - page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1694,18 +1733,12 @@ def get_function_strings_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get string information found in the function + """Get disassembly blocks related to the function - Get string information found in the function + Get disassembly blocks related to the function :param function_id: (required) :type function_id: int - :param page: The page number to retrieve. - :type page: int - :param page_size: Number of items per page. - :type page_size: int - :param search: Search is applied to string value - :type search: str :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1730,11 +1763,8 @@ def get_function_strings_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_function_strings_serialize( + _param = self._get_function_blocks_serialize( function_id=function_id, - page=page, - page_size=page_size, - search=search, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1743,8 +1773,9 @@ def get_function_strings_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseFunctionStringsResponse", + '200': "BaseResponseFunctionBlocksResponse", '422': "BaseResponse", + '404': "BaseResponse", } response_data = self.api_client.call_api( *_param, @@ -1753,12 +1784,9 @@ def get_function_strings_without_preload_content( return response_data.response - def _get_function_strings_serialize( + def _get_function_blocks_serialize( self, function_id, - page, - page_size, - search, authorization, _request_auth, _content_type, @@ -1784,18 +1812,6 @@ def _get_function_strings_serialize( if function_id is not None: _path_params['function_id'] = function_id # process the query parameters - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - # process the header parameters if authorization is not None: _header_params['authorization'] = authorization @@ -1819,7 +1835,7 @@ def _get_function_strings_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/{function_id}/strings', + resource_path='/v2/functions/{function_id}/blocks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1836,15 +1852,9 @@ def _get_function_strings_serialize( @validate_call - def get_similar_functions( + def get_function_callees_callers( self, function_id: StrictInt, - limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, - distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, - collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None, - debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, - debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, - binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1858,24 +1868,12 @@ def get_similar_functions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponseListSimilarFunctionsResponse: - """Get list of similar functions + ) -> BaseResponseCalleesCallerFunctionsResponse: + """Get list of functions that call or are called by the specified function :param function_id: (required) :type function_id: int - :param limit: Number of similar functions to return - :type limit: int - :param distance: Maximum cosine distance - :type distance: float - :param collection_ids: Collection filtering by IDs - :type collection_ids: List[Optional[int]] - :param debug: Only return matching debug functions - :type debug: bool - :param debug_types: If limiting results to functions with debug names, which type of debug names to include? - :type debug_types: List[str] - :param binary_ids: Limit similar functions to specific binaries - :type binary_ids: List[Optional[int]] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1900,14 +1898,8 @@ def get_similar_functions( :return: Returns the result object. """ # noqa: E501 - _param = self._get_similar_functions_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, - limit=limit, - distance=distance, - collection_ids=collection_ids, - debug=debug, - debug_types=debug_types, - binary_ids=binary_ids, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -1916,7 +1908,7 @@ def get_similar_functions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSimilarFunctionsResponse", + '200': "BaseResponseCalleesCallerFunctionsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -1931,15 +1923,9 @@ def get_similar_functions( @validate_call - def get_similar_functions_with_http_info( + def get_function_callees_callers_with_http_info( self, function_id: StrictInt, - limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, - distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, - collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None, - debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, - debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, - binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1953,24 +1939,12 @@ def get_similar_functions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponseListSimilarFunctionsResponse]: - """Get list of similar functions + ) -> ApiResponse[BaseResponseCalleesCallerFunctionsResponse]: + """Get list of functions that call or are called by the specified function :param function_id: (required) :type function_id: int - :param limit: Number of similar functions to return - :type limit: int - :param distance: Maximum cosine distance - :type distance: float - :param collection_ids: Collection filtering by IDs - :type collection_ids: List[Optional[int]] - :param debug: Only return matching debug functions - :type debug: bool - :param debug_types: If limiting results to functions with debug names, which type of debug names to include? - :type debug_types: List[str] - :param binary_ids: Limit similar functions to specific binaries - :type binary_ids: List[Optional[int]] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1995,14 +1969,8 @@ def get_similar_functions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_similar_functions_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, - limit=limit, - distance=distance, - collection_ids=collection_ids, - debug=debug, - debug_types=debug_types, - binary_ids=binary_ids, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -2011,7 +1979,7 @@ def get_similar_functions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSimilarFunctionsResponse", + '200': "BaseResponseCalleesCallerFunctionsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -2026,15 +1994,9 @@ def get_similar_functions_with_http_info( @validate_call - def get_similar_functions_without_preload_content( + def get_function_callees_callers_without_preload_content( self, function_id: StrictInt, - limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, - distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, - collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None, - debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, - debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, - binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -2049,23 +2011,11 @@ def get_similar_functions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get list of similar functions + """Get list of functions that call or are called by the specified function :param function_id: (required) :type function_id: int - :param limit: Number of similar functions to return - :type limit: int - :param distance: Maximum cosine distance - :type distance: float - :param collection_ids: Collection filtering by IDs - :type collection_ids: List[Optional[int]] - :param debug: Only return matching debug functions - :type debug: bool - :param debug_types: If limiting results to functions with debug names, which type of debug names to include? - :type debug_types: List[str] - :param binary_ids: Limit similar functions to specific binaries - :type binary_ids: List[Optional[int]] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -2090,14 +2040,8 @@ def get_similar_functions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_similar_functions_serialize( + _param = self._get_function_callees_callers_serialize( function_id=function_id, - limit=limit, - distance=distance, - collection_ids=collection_ids, - debug=debug, - debug_types=debug_types, - binary_ids=binary_ids, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -2106,7 +2050,7 @@ def get_similar_functions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponseListSimilarFunctionsResponse", + '200': "BaseResponseCalleesCallerFunctionsResponse", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -2116,15 +2060,9 @@ def get_similar_functions_without_preload_content( return response_data.response - def _get_similar_functions_serialize( + def _get_function_callees_callers_serialize( self, function_id, - limit, - distance, - collection_ids, - debug, - debug_types, - binary_ids, authorization, _request_auth, _content_type, @@ -2135,9 +2073,6 @@ def _get_similar_functions_serialize( _host = None _collection_formats: Dict[str, str] = { - 'collection_ids': 'multi', - 'debug_types': 'multi', - 'binary_ids': 'multi', } _path_params: Dict[str, str] = {} @@ -2153,30 +2088,6 @@ def _get_similar_functions_serialize( if function_id is not None: _path_params['function_id'] = function_id # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if distance is not None: - - _query_params.append(('distance', distance)) - - if collection_ids is not None: - - _query_params.append(('collection_ids', collection_ids)) - - if debug is not None: - - _query_params.append(('debug', debug)) - - if debug_types is not None: - - _query_params.append(('debug_types', debug_types)) - - if binary_ids is not None: - - _query_params.append(('binary_ids', binary_ids)) - # process the header parameters if authorization is not None: _header_params['authorization'] = authorization @@ -2200,7 +2111,1580 @@ def _get_similar_functions_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/functions/{function_id}/similar-functions', + resource_path='/v2/functions/{function_id}/callees_callers', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_function_capabilities( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BaseResponseFunctionCapabilityResponse: + """Retrieve a functions capabilities + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_capabilities_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionCapabilityResponse", + '422': "BaseResponse", + '404': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_function_capabilities_with_http_info( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BaseResponseFunctionCapabilityResponse]: + """Retrieve a functions capabilities + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_capabilities_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionCapabilityResponse", + '422': "BaseResponse", + '404': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_function_capabilities_without_preload_content( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a functions capabilities + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_capabilities_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionCapabilityResponse", + '422': "BaseResponse", + '404': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_function_capabilities_serialize( + self, + function_id, + authorization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if function_id is not None: + _path_params['function_id'] = function_id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/functions/{function_id}/capabilities', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_function_details( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BaseResponseFunctionsDetailResponse: + """Get function details + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_details_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionsDetailResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_function_details_with_http_info( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BaseResponseFunctionsDetailResponse]: + """Get function details + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_details_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionsDetailResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_function_details_without_preload_content( + self, + function_id: StrictInt, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get function details + + + :param function_id: (required) + :type function_id: int + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_details_serialize( + function_id=function_id, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionsDetailResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_function_details_serialize( + self, + function_id, + authorization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if function_id is not None: + _path_params['function_id'] = function_id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/functions/{function_id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_function_strings( + self, + function_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BaseResponseFunctionStringsResponse: + """Get string information found in the function + + Get string information found in the function + + :param function_id: (required) + :type function_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_strings_serialize( + function_id=function_id, + page=page, + page_size=page_size, + search=search, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionStringsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_function_strings_with_http_info( + self, + function_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BaseResponseFunctionStringsResponse]: + """Get string information found in the function + + Get string information found in the function + + :param function_id: (required) + :type function_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_strings_serialize( + function_id=function_id, + page=page, + page_size=page_size, + search=search, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionStringsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_function_strings_without_preload_content( + self, + function_id: StrictInt, + page: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=1)]], Field(description="The page number to retrieve.")] = None, + page_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Number of items per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="Search is applied to string value")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get string information found in the function + + Get string information found in the function + + :param function_id: (required) + :type function_id: int + :param page: The page number to retrieve. + :type page: int + :param page_size: Number of items per page. + :type page_size: int + :param search: Search is applied to string value + :type search: str + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_function_strings_serialize( + function_id=function_id, + page=page, + page_size=page_size, + search=search, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseFunctionStringsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_function_strings_serialize( + self, + function_id, + page, + page_size, + search, + authorization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if function_id is not None: + _path_params['function_id'] = function_id + # process the query parameters + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/functions/{function_id}/strings', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_similar_functions( + self, + function_id: StrictInt, + limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, + distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, + collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None, + debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, + debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, + binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BaseResponseListSimilarFunctionsResponse: + """Get list of similar functions + + + :param function_id: (required) + :type function_id: int + :param limit: Number of similar functions to return + :type limit: int + :param distance: Maximum cosine distance + :type distance: float + :param collection_ids: Collection filtering by IDs + :type collection_ids: List[int] + :param debug: Only return matching debug functions + :type debug: bool + :param debug_types: If limiting results to functions with debug names, which type of debug names to include? + :type debug_types: List[str] + :param binary_ids: Limit similar functions to specific binaries + :type binary_ids: List[int] + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_similar_functions_serialize( + function_id=function_id, + limit=limit, + distance=distance, + collection_ids=collection_ids, + debug=debug, + debug_types=debug_types, + binary_ids=binary_ids, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseListSimilarFunctionsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_similar_functions_with_http_info( + self, + function_id: StrictInt, + limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, + distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, + collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None, + debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, + debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, + binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BaseResponseListSimilarFunctionsResponse]: + """Get list of similar functions + + + :param function_id: (required) + :type function_id: int + :param limit: Number of similar functions to return + :type limit: int + :param distance: Maximum cosine distance + :type distance: float + :param collection_ids: Collection filtering by IDs + :type collection_ids: List[int] + :param debug: Only return matching debug functions + :type debug: bool + :param debug_types: If limiting results to functions with debug names, which type of debug names to include? + :type debug_types: List[str] + :param binary_ids: Limit similar functions to specific binaries + :type binary_ids: List[int] + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_similar_functions_serialize( + function_id=function_id, + limit=limit, + distance=distance, + collection_ids=collection_ids, + debug=debug, + debug_types=debug_types, + binary_ids=binary_ids, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseListSimilarFunctionsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_similar_functions_without_preload_content( + self, + function_id: StrictInt, + limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None, + distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None, + collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None, + debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None, + debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None, + binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get list of similar functions + + + :param function_id: (required) + :type function_id: int + :param limit: Number of similar functions to return + :type limit: int + :param distance: Maximum cosine distance + :type distance: float + :param collection_ids: Collection filtering by IDs + :type collection_ids: List[int] + :param debug: Only return matching debug functions + :type debug: bool + :param debug_types: If limiting results to functions with debug names, which type of debug names to include? + :type debug_types: List[str] + :param binary_ids: Limit similar functions to specific binaries + :type binary_ids: List[int] + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_similar_functions_serialize( + function_id=function_id, + limit=limit, + distance=distance, + collection_ids=collection_ids, + debug=debug, + debug_types=debug_types, + binary_ids=binary_ids, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BaseResponseListSimilarFunctionsResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_similar_functions_serialize( + self, + function_id, + limit, + distance, + collection_ids, + debug, + debug_types, + binary_ids, + authorization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'collection_ids': 'multi', + 'debug_types': 'multi', + 'binary_ids': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if function_id is not None: + _path_params['function_id'] = function_id + # process the query parameters + if limit is not None: + + _query_params.append(('limit', limit)) + + if distance is not None: + + _query_params.append(('distance', distance)) + + if collection_ids is not None: + + _query_params.append(('collection_ids', collection_ids)) + + if debug is not None: + + _query_params.append(('debug', debug)) + + if debug_types is not None: + + _query_params.append(('debug_types', debug_types)) + + if binary_ids is not None: + + _query_params.append(('binary_ids', binary_ids)) + + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/functions/{function_id}/similar-functions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def unstrip( + self, + analysis_id: StrictInt, + unstrip_request: UnstripRequest, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AutoUnstripByGroupResponse: + """Performs matching and auto-unstrip for an analysis and its functions + + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + + :param analysis_id: (required) + :type analysis_id: int + :param unstrip_request: (required) + :type unstrip_request: UnstripRequest + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unstrip_serialize( + analysis_id=analysis_id, + unstrip_request=unstrip_request, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AutoUnstripByGroupResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def unstrip_with_http_info( + self, + analysis_id: StrictInt, + unstrip_request: UnstripRequest, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AutoUnstripByGroupResponse]: + """Performs matching and auto-unstrip for an analysis and its functions + + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + + :param analysis_id: (required) + :type analysis_id: int + :param unstrip_request: (required) + :type unstrip_request: UnstripRequest + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unstrip_serialize( + analysis_id=analysis_id, + unstrip_request=unstrip_request, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AutoUnstripByGroupResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def unstrip_without_preload_content( + self, + analysis_id: StrictInt, + unstrip_request: UnstripRequest, + authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Performs matching and auto-unstrip for an analysis and its functions + + Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system + + :param analysis_id: (required) + :type analysis_id: int + :param unstrip_request: (required) + :type unstrip_request: UnstripRequest + :param authorization: API Key bearer token + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._unstrip_serialize( + analysis_id=analysis_id, + unstrip_request=unstrip_request, + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AutoUnstripByGroupResponse", + '422': "BaseResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _unstrip_serialize( + self, + analysis_id, + unstrip_request, + authorization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if analysis_id is not None: + _path_params['analysis_id'] = analysis_id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['authorization'] = authorization + # process the form parameters + # process the body parameter + if unstrip_request is not None: + _body_params = unstrip_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'APIKey' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v2/analyses/{analysis_id}/functions/unstrip', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/revengai/api/functions_data_types_api.py b/revengai/api/functions_data_types_api.py index 881b3fe..1390b5a 100644 --- a/revengai/api/functions_data_types_api.py +++ b/revengai/api/functions_data_types_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -941,7 +941,7 @@ def _get_function_data_types_serialize( def list_function_data_types_for_analysis( self, analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -963,7 +963,7 @@ def list_function_data_types_for_analysis( :param analysis_id: (required) :type analysis_id: int :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1017,7 +1017,7 @@ def list_function_data_types_for_analysis( def list_function_data_types_for_analysis_with_http_info( self, analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1039,7 +1039,7 @@ def list_function_data_types_for_analysis_with_http_info( :param analysis_id: (required) :type analysis_id: int :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1093,7 +1093,7 @@ def list_function_data_types_for_analysis_with_http_info( def list_function_data_types_for_analysis_without_preload_content( self, analysis_id: StrictInt, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1115,7 +1115,7 @@ def list_function_data_types_for_analysis_without_preload_content( :param analysis_id: (required) :type analysis_id: int :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1237,7 +1237,7 @@ def _list_function_data_types_for_analysis_serialize( @validate_call def list_function_data_types_for_functions( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1257,7 +1257,7 @@ def list_function_data_types_for_functions( Returns data types for multiple function IDs :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1309,7 +1309,7 @@ def list_function_data_types_for_functions( @validate_call def list_function_data_types_for_functions_with_http_info( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1329,7 +1329,7 @@ def list_function_data_types_for_functions_with_http_info( Returns data types for multiple function IDs :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -1381,7 +1381,7 @@ def list_function_data_types_for_functions_with_http_info( @validate_call def list_function_data_types_for_functions_without_preload_content( self, - function_ids: Optional[List[Optional[StrictInt]]] = None, + function_ids: Optional[List[StrictInt]] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -1401,7 +1401,7 @@ def list_function_data_types_for_functions_without_preload_content( Returns data types for multiple function IDs :param function_ids: - :type function_ids: List[Optional[int]] + :type function_ids: List[int] :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one diff --git a/revengai/api/functions_decompilation_api.py b/revengai/api/functions_decompilation_api.py index 9666a49..287b3ed 100644 --- a/revengai/api/functions_decompilation_api.py +++ b/revengai/api/functions_decompilation_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_renaming_history_api.py b/revengai/api/functions_renaming_history_api.py index 9f71b4b..39dde0b 100644 --- a/revengai/api/functions_renaming_history_api.py +++ b/revengai/api/functions_renaming_history_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/functions_threat_score_api.py b/revengai/api/functions_threat_score_api.py index 242e2a4..d6fcf54 100644 --- a/revengai/api/functions_threat_score_api.py +++ b/revengai/api/functions_threat_score_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/models_api.py b/revengai/api/models_api.py index 9de35a0..ca581f6 100644 --- a/revengai/api/models_api.py +++ b/revengai/api/models_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/api/search_api.py b/revengai/api/search_api.py index b3173bf..be0299d 100644 --- a/revengai/api/search_api.py +++ b/revengai/api/search_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -16,7 +16,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictStr +from pydantic import Field, StrictBool, StrictStr from typing import List, Optional from typing_extensions import Annotated from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy @@ -54,6 +54,7 @@ def search_binaries( partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, + user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -84,6 +85,8 @@ def search_binaries( :type tags: List[str] :param model_name: The name of the model used to analyze the binary the function belongs to :type model_name: str + :param user_files_only: Whether to only search user's uploaded files + :type user_files_only: bool :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -115,6 +118,7 @@ def search_binaries( partial_sha256=partial_sha256, tags=tags, model_name=model_name, + user_files_only=user_files_only, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -146,6 +150,7 @@ def search_binaries_with_http_info( partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, + user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -176,6 +181,8 @@ def search_binaries_with_http_info( :type tags: List[str] :param model_name: The name of the model used to analyze the binary the function belongs to :type model_name: str + :param user_files_only: Whether to only search user's uploaded files + :type user_files_only: bool :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -207,6 +214,7 @@ def search_binaries_with_http_info( partial_sha256=partial_sha256, tags=tags, model_name=model_name, + user_files_only=user_files_only, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -238,6 +246,7 @@ def search_binaries_without_preload_content( partial_sha256: Annotated[Optional[StrictStr], Field(description="The partial or full sha256 of the binary being searched")] = None, tags: Annotated[Optional[List[StrictStr]], Field(description="The tags to be searched for")] = None, model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None, + user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None, authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, _request_timeout: Union[ None, @@ -268,6 +277,8 @@ def search_binaries_without_preload_content( :type tags: List[str] :param model_name: The name of the model used to analyze the binary the function belongs to :type model_name: str + :param user_files_only: Whether to only search user's uploaded files + :type user_files_only: bool :param authorization: API Key bearer token :type authorization: str :param _request_timeout: timeout setting for this request. If one @@ -299,6 +310,7 @@ def search_binaries_without_preload_content( partial_sha256=partial_sha256, tags=tags, model_name=model_name, + user_files_only=user_files_only, authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -325,6 +337,7 @@ def _search_binaries_serialize( partial_sha256, tags, model_name, + user_files_only, authorization, _request_auth, _content_type, @@ -373,6 +386,10 @@ def _search_binaries_serialize( _query_params.append(('model_name', model_name)) + if user_files_only is not None: + + _query_params.append(('user_files_only', user_files_only)) + # process the header parameters if authorization is not None: _header_params['authorization'] = authorization diff --git a/revengai/api/v1_api.py b/revengai/api/v1_api.py deleted file mode 100644 index 6938eaa..0000000 --- a/revengai/api/v1_api.py +++ /dev/null @@ -1,6373 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictBytes, StrictInt, StrictStr -from typing import Any, Optional, Tuple, Union -from typing_extensions import Annotated -from revengai.models.ann_input import ANNInput -from revengai.models.analyse_created import AnalyseCreated -from revengai.models.analysis_form import AnalysisForm -from revengai.models.analysis_status import AnalysisStatus -from revengai.models.app_api_rest_v1_analysis_info_responses_logs import AppApiRestV1AnalysisInfoResponsesLogs -from revengai.models.app_api_rest_v1_analysis_info_schema_function_rename import AppApiRestV1AnalysisInfoSchemaFunctionRename -from revengai.models.app_api_rest_v1_ann_schema_ann_function import AppApiRestV1AnnSchemaANNFunction -from revengai.models.batch_ann import BatchAnn -from revengai.models.batch_function_rename import BatchFunctionRename -from revengai.models.collection_count import CollectionCount -from revengai.models.collections_count_form import CollectionsCountForm -from revengai.models.config_settings import ConfigSettings -from revengai.models.deleted_analysis import DeletedAnalysis -from revengai.models.function_batch_ann import FunctionBatchAnn -from revengai.models.function_dump import FunctionDump -from revengai.models.function_list import FunctionList -from revengai.models.function_list_basic import FunctionListBasic -from revengai.models.function_params import FunctionParams -from revengai.models.model_list import ModelList -from revengai.models.quick_search import QuickSearch -from revengai.models.recent_analysis import RecentAnalysis -from revengai.models.recent_analysis_form import RecentAnalysisForm -from revengai.models.rename import Rename -from revengai.models.search_form import SearchForm -from revengai.models.search_query import SearchQuery -from revengai.models.upload_success import UploadSuccess - -from revengai.api_client import ApiClient, RequestSerialized -from revengai.api_response import ApiResponse -from revengai.rest import RESTResponseType - - -class V1Api: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def batch_function_ann_v1_ann_symbol_binary_id_post( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - ann_input: Optional[ANNInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BatchAnn: - """(Deprecated) Batch Symbol ANN using binary ID - - Takes a binary ID and returns the nearest functions within the database that match those functions - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param ann_input: - :type ann_input: ANNInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/ann/symbol/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._batch_function_ann_v1_ann_symbol_binary_id_post_serialize( - binary_id=binary_id, - authorization=authorization, - ann_input=ann_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchAnn", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def batch_function_ann_v1_ann_symbol_binary_id_post_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - ann_input: Optional[ANNInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BatchAnn]: - """(Deprecated) Batch Symbol ANN using binary ID - - Takes a binary ID and returns the nearest functions within the database that match those functions - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param ann_input: - :type ann_input: ANNInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/ann/symbol/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._batch_function_ann_v1_ann_symbol_binary_id_post_serialize( - binary_id=binary_id, - authorization=authorization, - ann_input=ann_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchAnn", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def batch_function_ann_v1_ann_symbol_binary_id_post_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - ann_input: Optional[ANNInput] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Batch Symbol ANN using binary ID - - Takes a binary ID and returns the nearest functions within the database that match those functions - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param ann_input: - :type ann_input: ANNInput - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/ann/symbol/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._batch_function_ann_v1_ann_symbol_binary_id_post_serialize( - binary_id=binary_id, - authorization=authorization, - ann_input=ann_input, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BatchAnn", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _batch_function_ann_v1_ann_symbol_binary_id_post_serialize( - self, - binary_id, - authorization, - ann_input, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if ann_input is not None: - _body_params = ann_input - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/ann/symbol/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def batch_rename_function_v1_functions_batch_rename_post( - self, - batch_function_rename: BatchFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """(Deprecated) Batch Renames Functions - - Takes a list of dictionaries, with a corresponding a key as a function ID and the desired function_name Will not record name change history - - :param batch_function_rename: (required) - :type batch_function_rename: BatchFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/batch/rename is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_v1_functions_batch_rename_post_serialize( - batch_function_rename=batch_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def batch_rename_function_v1_functions_batch_rename_post_with_http_info( - self, - batch_function_rename: BatchFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """(Deprecated) Batch Renames Functions - - Takes a list of dictionaries, with a corresponding a key as a function ID and the desired function_name Will not record name change history - - :param batch_function_rename: (required) - :type batch_function_rename: BatchFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/batch/rename is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_v1_functions_batch_rename_post_serialize( - batch_function_rename=batch_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def batch_rename_function_v1_functions_batch_rename_post_without_preload_content( - self, - batch_function_rename: BatchFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Batch Renames Functions - - Takes a list of dictionaries, with a corresponding a key as a function ID and the desired function_name Will not record name change history - - :param batch_function_rename: (required) - :type batch_function_rename: BatchFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/batch/rename is deprecated.", DeprecationWarning) - - _param = self._batch_rename_function_v1_functions_batch_rename_post_serialize( - batch_function_rename=batch_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _batch_rename_function_v1_functions_batch_rename_post_serialize( - self, - batch_function_rename, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if batch_function_rename is not None: - _body_params = batch_function_rename - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/functions/batch/rename', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def check_authentication_v1_authenticate_get( - self, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """(Deprecated) API key check - - Checks that the API key is valid - - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/authenticate is deprecated.", DeprecationWarning) - - _param = self._check_authentication_v1_authenticate_get_serialize( - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def check_authentication_v1_authenticate_get_with_http_info( - self, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """(Deprecated) API key check - - Checks that the API key is valid - - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/authenticate is deprecated.", DeprecationWarning) - - _param = self._check_authentication_v1_authenticate_get_serialize( - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def check_authentication_v1_authenticate_get_without_preload_content( - self, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) API key check - - Checks that the API key is valid - - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/authenticate is deprecated.", DeprecationWarning) - - _param = self._check_authentication_v1_authenticate_get_serialize( - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _check_authentication_v1_authenticate_get_serialize( - self, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/authenticate', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def collections_count_v1_collections_count_get( - self, - collections_count_form: CollectionsCountForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CollectionCount: - """(Deprecated) Get Collections Count - - Takes a scope and returns the amount within the collection - - :param collections_count_form: (required) - :type collections_count_form: CollectionsCountForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/collections/count is deprecated.", DeprecationWarning) - - _param = self._collections_count_v1_collections_count_get_serialize( - collections_count_form=collections_count_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CollectionCount", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def collections_count_v1_collections_count_get_with_http_info( - self, - collections_count_form: CollectionsCountForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CollectionCount]: - """(Deprecated) Get Collections Count - - Takes a scope and returns the amount within the collection - - :param collections_count_form: (required) - :type collections_count_form: CollectionsCountForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/collections/count is deprecated.", DeprecationWarning) - - _param = self._collections_count_v1_collections_count_get_serialize( - collections_count_form=collections_count_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CollectionCount", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def collections_count_v1_collections_count_get_without_preload_content( - self, - collections_count_form: CollectionsCountForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get Collections Count - - Takes a scope and returns the amount within the collection - - :param collections_count_form: (required) - :type collections_count_form: CollectionsCountForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/collections/count is deprecated.", DeprecationWarning) - - _param = self._collections_count_v1_collections_count_get_serialize( - collections_count_form=collections_count_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CollectionCount", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _collections_count_v1_collections_count_get_serialize( - self, - collections_count_form, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if collections_count_form is not None: - _body_params = collections_count_form - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/collections/count', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def collections_quick_search_v1_collections_quick_search_get( - self, - search_term: StrictStr, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> QuickSearch: - """(Deprecated) Collection Quick Search - - Finds the collections which match the search term - - :param search_term: (required) - :type search_term: str - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/collections/quick/search is deprecated.", DeprecationWarning) - - _param = self._collections_quick_search_v1_collections_quick_search_get_serialize( - search_term=search_term, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "QuickSearch", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def collections_quick_search_v1_collections_quick_search_get_with_http_info( - self, - search_term: StrictStr, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[QuickSearch]: - """(Deprecated) Collection Quick Search - - Finds the collections which match the search term - - :param search_term: (required) - :type search_term: str - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/collections/quick/search is deprecated.", DeprecationWarning) - - _param = self._collections_quick_search_v1_collections_quick_search_get_serialize( - search_term=search_term, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "QuickSearch", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def collections_quick_search_v1_collections_quick_search_get_without_preload_content( - self, - search_term: StrictStr, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Collection Quick Search - - Finds the collections which match the search term - - :param search_term: (required) - :type search_term: str - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/collections/quick/search is deprecated.", DeprecationWarning) - - _param = self._collections_quick_search_v1_collections_quick_search_get_serialize( - search_term=search_term, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "QuickSearch", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _collections_quick_search_v1_collections_quick_search_get_serialize( - self, - search_term, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if search_term is not None: - - _query_params.append(('search_term', search_term)) - - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/collections/quick/search', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def custom_function_ann_v1_ann_symbol_batch_post( - self, - app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FunctionBatchAnn: - """(Deprecated) Batch Symbol ANN using function IDs - - Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database - - :param app_api_rest_v1_ann_schema_ann_function: (required) - :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning) - - _param = self._custom_function_ann_v1_ann_symbol_batch_post_serialize( - app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionBatchAnn", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def custom_function_ann_v1_ann_symbol_batch_post_with_http_info( - self, - app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FunctionBatchAnn]: - """(Deprecated) Batch Symbol ANN using function IDs - - Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database - - :param app_api_rest_v1_ann_schema_ann_function: (required) - :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning) - - _param = self._custom_function_ann_v1_ann_symbol_batch_post_serialize( - app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionBatchAnn", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def custom_function_ann_v1_ann_symbol_batch_post_without_preload_content( - self, - app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Batch Symbol ANN using function IDs - - Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the database - - :param app_api_rest_v1_ann_schema_ann_function: (required) - :type app_api_rest_v1_ann_schema_ann_function: AppApiRestV1AnnSchemaANNFunction - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/ann/symbol/batch is deprecated.", DeprecationWarning) - - _param = self._custom_function_ann_v1_ann_symbol_batch_post_serialize( - app_api_rest_v1_ann_schema_ann_function=app_api_rest_v1_ann_schema_ann_function, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionBatchAnn", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _custom_function_ann_v1_ann_symbol_batch_post_serialize( - self, - app_api_rest_v1_ann_schema_ann_function, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if app_api_rest_v1_ann_schema_ann_function is not None: - _body_params = app_api_rest_v1_ann_schema_ann_function - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/ann/symbol/batch', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_binary_id_v1_analyse_binary_id_delete( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeletedAnalysis: - """(Deprecated) Delete Analysis - - This endpoint deletes an analysis - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("DELETE /v1/analyse/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._delete_binary_id_v1_analyse_binary_id_delete_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeletedAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_binary_id_v1_analyse_binary_id_delete_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeletedAnalysis]: - """(Deprecated) Delete Analysis - - This endpoint deletes an analysis - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("DELETE /v1/analyse/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._delete_binary_id_v1_analyse_binary_id_delete_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeletedAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_binary_id_v1_analyse_binary_id_delete_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Delete Analysis - - This endpoint deletes an analysis - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("DELETE /v1/analyse/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._delete_binary_id_v1_analyse_binary_id_delete_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeletedAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_binary_id_v1_analyse_binary_id_delete_serialize( - self, - binary_id, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/analyse/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def generate_function_params_v1_functions_generate_params_post( - self, - function_params: FunctionParams, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """(Deprecated) Get Function params - - Gets the function parameters - - :param function_params: (required) - :type function_params: FunctionParams - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/generate_params is deprecated.", DeprecationWarning) - - _param = self._generate_function_params_v1_functions_generate_params_post_serialize( - function_params=function_params, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def generate_function_params_v1_functions_generate_params_post_with_http_info( - self, - function_params: FunctionParams, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """(Deprecated) Get Function params - - Gets the function parameters - - :param function_params: (required) - :type function_params: FunctionParams - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/generate_params is deprecated.", DeprecationWarning) - - _param = self._generate_function_params_v1_functions_generate_params_post_serialize( - function_params=function_params, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def generate_function_params_v1_functions_generate_params_post_without_preload_content( - self, - function_params: FunctionParams, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get Function params - - Gets the function parameters - - :param function_params: (required) - :type function_params: FunctionParams - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/generate_params is deprecated.", DeprecationWarning) - - _param = self._generate_function_params_v1_functions_generate_params_post_serialize( - function_params=function_params, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _generate_function_params_v1_functions_generate_params_post_serialize( - self, - function_params, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if function_params is not None: - _body_params = function_params - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/functions/generate_params', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_status_v1_analyse_status_binary_id_get( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AnalysisStatus: - """(Deprecated) Analysis Status - - Gets the status of an analysis using the binary ID - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/status/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_analyse_status_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_status_v1_analyse_status_binary_id_get_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AnalysisStatus]: - """(Deprecated) Analysis Status - - Gets the status of an analysis using the binary ID - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/status/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_analyse_status_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_status_v1_analyse_status_binary_id_get_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Analysis Status - - Gets the status of an analysis using the binary ID - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/status/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_analyse_status_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AnalysisStatus", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_status_v1_analyse_status_binary_id_get_serialize( - self, - binary_id, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/analyse/status/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_analysis_status_v1_logs_binary_id_get( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AppApiRestV1AnalysisInfoResponsesLogs: - """(Deprecated) Get Analysis Logs - - This function gets the analysis logs of a given binary - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/logs/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_logs_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AppApiRestV1AnalysisInfoResponsesLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_analysis_status_v1_logs_binary_id_get_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AppApiRestV1AnalysisInfoResponsesLogs]: - """(Deprecated) Get Analysis Logs - - This function gets the analysis logs of a given binary - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/logs/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_logs_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AppApiRestV1AnalysisInfoResponsesLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_analysis_status_v1_logs_binary_id_get_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get Analysis Logs - - This function gets the analysis logs of a given binary - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/logs/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_analysis_status_v1_logs_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AppApiRestV1AnalysisInfoResponsesLogs", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_analysis_status_v1_logs_binary_id_get_serialize( - self, - binary_id, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/logs/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_basic_function_info_v1_analyse_functions_binary_id_get( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FunctionListBasic: - """(Deprecated) Get Basic Function Info - - This function gets the basic function info including name/address and size - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/functions/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_basic_function_info_v1_analyse_functions_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionListBasic", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_basic_function_info_v1_analyse_functions_binary_id_get_with_http_info( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FunctionListBasic]: - """(Deprecated) Get Basic Function Info - - This function gets the basic function info including name/address and size - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/functions/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_basic_function_info_v1_analyse_functions_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionListBasic", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_basic_function_info_v1_analyse_functions_binary_id_get_without_preload_content( - self, - binary_id: StrictInt, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get Basic Function Info - - This function gets the basic function info including name/address and size - - :param binary_id: (required) - :type binary_id: int - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/functions/{binary_id} is deprecated.", DeprecationWarning) - - _param = self._get_basic_function_info_v1_analyse_functions_binary_id_get_serialize( - binary_id=binary_id, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionListBasic", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_basic_function_info_v1_analyse_functions_binary_id_get_serialize( - self, - binary_id, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if binary_id is not None: - _path_params['binary_id'] = binary_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/analyse/functions/{binary_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_config_v1_config_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConfigSettings: - """(Deprecated) Get the configuration settings - - Gets the configuration settings coresponding to forms used for the API - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/config is deprecated.", DeprecationWarning) - - _param = self._get_config_v1_config_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigSettings", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_config_v1_config_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConfigSettings]: - """(Deprecated) Get the configuration settings - - Gets the configuration settings coresponding to forms used for the API - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/config is deprecated.", DeprecationWarning) - - _param = self._get_config_v1_config_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigSettings", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_config_v1_config_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get the configuration settings - - Gets the configuration settings coresponding to forms used for the API - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/config is deprecated.", DeprecationWarning) - - _param = self._get_config_v1_config_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigSettings", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_config_v1_config_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/config', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_function_disassembly_dump_v1_functions_dump_get( - self, - function_list: FunctionList, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FunctionDump: - """(Deprecated) Get Function Disassembly Dumps - - Gets the disassembly of a list of function ID's - - :param function_list: (required) - :type function_list: FunctionList - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/functions/dump is deprecated.", DeprecationWarning) - - _param = self._get_function_disassembly_dump_v1_functions_dump_get_serialize( - function_list=function_list, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDump", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_function_disassembly_dump_v1_functions_dump_get_with_http_info( - self, - function_list: FunctionList, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FunctionDump]: - """(Deprecated) Get Function Disassembly Dumps - - Gets the disassembly of a list of function ID's - - :param function_list: (required) - :type function_list: FunctionList - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/functions/dump is deprecated.", DeprecationWarning) - - _param = self._get_function_disassembly_dump_v1_functions_dump_get_serialize( - function_list=function_list, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDump", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_function_disassembly_dump_v1_functions_dump_get_without_preload_content( - self, - function_list: FunctionList, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get Function Disassembly Dumps - - Gets the disassembly of a list of function ID's - - :param function_list: (required) - :type function_list: FunctionList - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/functions/dump is deprecated.", DeprecationWarning) - - _param = self._get_function_disassembly_dump_v1_functions_dump_get_serialize( - function_list=function_list, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FunctionDump", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_function_disassembly_dump_v1_functions_dump_get_serialize( - self, - function_list, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if function_list is not None: - _body_params = function_list - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/functions/dump', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_models_v1_models_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ModelList: - """(Deprecated) Get available models - - Gets the models that are currently being used for analysis - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/models is deprecated.", DeprecationWarning) - - _param = self._get_models_v1_models_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ModelList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_models_v1_models_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ModelList]: - """(Deprecated) Get available models - - Gets the models that are currently being used for analysis - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/models is deprecated.", DeprecationWarning) - - _param = self._get_models_v1_models_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ModelList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_models_v1_models_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Get available models - - Gets the models that are currently being used for analysis - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/models is deprecated.", DeprecationWarning) - - _param = self._get_models_v1_models_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ModelList", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_models_v1_models_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/models', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_recent_analysis_v1_analyse_recent_get( - self, - recent_analysis_form: RecentAnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RecentAnalysis: - """(Deprecated) Recent Analysis - - Gets the recent analysis given a scope, status and amount - - :param recent_analysis_form: (required) - :type recent_analysis_form: RecentAnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/recent is deprecated.", DeprecationWarning) - - _param = self._get_recent_analysis_v1_analyse_recent_get_serialize( - recent_analysis_form=recent_analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RecentAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_recent_analysis_v1_analyse_recent_get_with_http_info( - self, - recent_analysis_form: RecentAnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RecentAnalysis]: - """(Deprecated) Recent Analysis - - Gets the recent analysis given a scope, status and amount - - :param recent_analysis_form: (required) - :type recent_analysis_form: RecentAnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/recent is deprecated.", DeprecationWarning) - - _param = self._get_recent_analysis_v1_analyse_recent_get_serialize( - recent_analysis_form=recent_analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RecentAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_recent_analysis_v1_analyse_recent_get_without_preload_content( - self, - recent_analysis_form: RecentAnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Recent Analysis - - Gets the recent analysis given a scope, status and amount - - :param recent_analysis_form: (required) - :type recent_analysis_form: RecentAnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/analyse/recent is deprecated.", DeprecationWarning) - - _param = self._get_recent_analysis_v1_analyse_recent_get_serialize( - recent_analysis_form=recent_analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RecentAnalysis", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_recent_analysis_v1_analyse_recent_get_serialize( - self, - recent_analysis_form, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if recent_analysis_form is not None: - _body_params = recent_analysis_form - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/analyse/recent', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def queue_analysis_v1_analyse_post( - self, - analysis_form: AnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AnalyseCreated: - """(Deprecated) Create Analysis - - This endpoint creates a new analysis. The symbols object sets the function boundaries of symbols to be analysed (optional). An object containing a base address and list of function objects are passed. The function objects' addresses are relative to the base address passed. - - :param analysis_form: (required) - :type analysis_form: AnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/analyse/ is deprecated.", DeprecationWarning) - - _param = self._queue_analysis_v1_analyse_post_serialize( - analysis_form=analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "AnalyseCreated", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def queue_analysis_v1_analyse_post_with_http_info( - self, - analysis_form: AnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AnalyseCreated]: - """(Deprecated) Create Analysis - - This endpoint creates a new analysis. The symbols object sets the function boundaries of symbols to be analysed (optional). An object containing a base address and list of function objects are passed. The function objects' addresses are relative to the base address passed. - - :param analysis_form: (required) - :type analysis_form: AnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/analyse/ is deprecated.", DeprecationWarning) - - _param = self._queue_analysis_v1_analyse_post_serialize( - analysis_form=analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "AnalyseCreated", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def queue_analysis_v1_analyse_post_without_preload_content( - self, - analysis_form: AnalysisForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Create Analysis - - This endpoint creates a new analysis. The symbols object sets the function boundaries of symbols to be analysed (optional). An object containing a base address and list of function objects are passed. The function objects' addresses are relative to the base address passed. - - :param analysis_form: (required) - :type analysis_form: AnalysisForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/analyse/ is deprecated.", DeprecationWarning) - - _param = self._queue_analysis_v1_analyse_post_serialize( - analysis_form=analysis_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "AnalyseCreated", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _queue_analysis_v1_analyse_post_serialize( - self, - analysis_form, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if analysis_form is not None: - _body_params = analysis_form - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/analyse/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def read_root_v1_get( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """(Deprecated) RevEng.AI Health Check - - Endpoint for health check & verifying access to the API - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1 is deprecated.", DeprecationWarning) - - _param = self._read_root_v1_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def read_root_v1_get_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """(Deprecated) RevEng.AI Health Check - - Endpoint for health check & verifying access to the API - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1 is deprecated.", DeprecationWarning) - - _param = self._read_root_v1_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def read_root_v1_get_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) RevEng.AI Health Check - - Endpoint for health check & verifying access to the API - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1 is deprecated.", DeprecationWarning) - - _param = self._read_root_v1_get_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _read_root_v1_get_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rename_function_id_v1_functions_rename_function_id_post( - self, - function_id: StrictInt, - app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Rename: - """(Deprecated) Rename Function - - Renames a function using the function ID Will not record name change history - - :param function_id: (required) - :type function_id: int - :param app_api_rest_v1_analysis_info_schema_function_rename: (required) - :type app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/rename/{function_id} is deprecated.", DeprecationWarning) - - _param = self._rename_function_id_v1_functions_rename_function_id_post_serialize( - function_id=function_id, - app_api_rest_v1_analysis_info_schema_function_rename=app_api_rest_v1_analysis_info_schema_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Rename", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rename_function_id_v1_functions_rename_function_id_post_with_http_info( - self, - function_id: StrictInt, - app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Rename]: - """(Deprecated) Rename Function - - Renames a function using the function ID Will not record name change history - - :param function_id: (required) - :type function_id: int - :param app_api_rest_v1_analysis_info_schema_function_rename: (required) - :type app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/rename/{function_id} is deprecated.", DeprecationWarning) - - _param = self._rename_function_id_v1_functions_rename_function_id_post_serialize( - function_id=function_id, - app_api_rest_v1_analysis_info_schema_function_rename=app_api_rest_v1_analysis_info_schema_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Rename", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rename_function_id_v1_functions_rename_function_id_post_without_preload_content( - self, - function_id: StrictInt, - app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Rename Function - - Renames a function using the function ID Will not record name change history - - :param function_id: (required) - :type function_id: int - :param app_api_rest_v1_analysis_info_schema_function_rename: (required) - :type app_api_rest_v1_analysis_info_schema_function_rename: AppApiRestV1AnalysisInfoSchemaFunctionRename - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/functions/rename/{function_id} is deprecated.", DeprecationWarning) - - _param = self._rename_function_id_v1_functions_rename_function_id_post_serialize( - function_id=function_id, - app_api_rest_v1_analysis_info_schema_function_rename=app_api_rest_v1_analysis_info_schema_function_rename, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Rename", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rename_function_id_v1_functions_rename_function_id_post_serialize( - self, - function_id, - app_api_rest_v1_analysis_info_schema_function_rename, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if function_id is not None: - _path_params['function_id'] = function_id - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if app_api_rest_v1_analysis_info_schema_function_rename is not None: - _body_params = app_api_rest_v1_analysis_info_schema_function_rename - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/functions/rename/{function_id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def search_post_v1_search_post( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SearchQuery: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_post_v1_search_post_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def search_post_v1_search_post_with_http_info( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SearchQuery]: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_post_v1_search_post_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def search_post_v1_search_post_without_preload_content( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_post_v1_search_post_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_post_v1_search_post_serialize( - self, - search_form, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if search_form is not None: - _body_params = search_form - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/search', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def search_v1_search_get( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SearchQuery: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_v1_search_get_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def search_v1_search_get_with_http_info( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SearchQuery]: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_v1_search_get_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def search_v1_search_get_without_preload_content( - self, - search_form: SearchForm, - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Performs a search for binaries and collections - - Performs a search using binary name/ hash etc and returns details around it - - :param search_form: (required) - :type search_form: SearchForm - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("GET /v1/search is deprecated.", DeprecationWarning) - - _param = self._search_v1_search_get_serialize( - search_form=search_form, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchQuery", - '422': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_v1_search_get_serialize( - self, - search_form, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - # process the body parameter - if search_form is not None: - _body_params = search_form - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/v1/search', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def upload_debug_file_v1_upload_debug_post( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UploadSuccess: - """(Deprecated) Upload a debug file - - Upload a debug file - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/upload/debug is deprecated.", DeprecationWarning) - - _param = self._upload_debug_file_v1_upload_debug_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def upload_debug_file_v1_upload_debug_post_with_http_info( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UploadSuccess]: - """(Deprecated) Upload a debug file - - Upload a debug file - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/upload/debug is deprecated.", DeprecationWarning) - - _param = self._upload_debug_file_v1_upload_debug_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def upload_debug_file_v1_upload_debug_post_without_preload_content( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Upload a debug file - - Upload a debug file - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/upload/debug is deprecated.", DeprecationWarning) - - _param = self._upload_debug_file_v1_upload_debug_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upload_debug_file_v1_upload_debug_post_serialize( - self, - file, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/upload/debug', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def upload_file_v1_upload_post( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UploadSuccess: - """(Deprecated) Upload a file - - Upload a file to be analysed - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/upload is deprecated.", DeprecationWarning) - - _param = self._upload_file_v1_upload_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def upload_file_v1_upload_post_with_http_info( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UploadSuccess]: - """(Deprecated) Upload a file - - Upload a file to be analysed - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/upload is deprecated.", DeprecationWarning) - - _param = self._upload_file_v1_upload_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def upload_file_v1_upload_post_without_preload_content( - self, - file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], - authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """(Deprecated) Upload a file - - Upload a file to be analysed - - :param file: (required) - :type file: bytearray - :param authorization: API Key bearer token - :type authorization: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - warnings.warn("POST /v1/upload is deprecated.", DeprecationWarning) - - _param = self._upload_file_v1_upload_post_serialize( - file=file, - authorization=authorization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UploadSuccess", - '422': "BaseResponse", - '409': "BaseResponse", - '400': "BaseResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upload_file_v1_upload_post_serialize( - self, - file, - authorization, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - if authorization is not None: - _header_params['authorization'] = authorization - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'APIKey' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/v1/upload', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/revengai/api_client.py b/revengai/api_client.py index b99eb29..583d00b 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.user_agent = 'OpenAPI-Generator/v1.72.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index f3e0d15..00e349c 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -530,8 +530,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.0.1\n"\ - "SDK Package Version: 1.0.0".\ + "Version of the API: v1.72.0\n"\ + "SDK Package Version: v1.72.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/revengai/exceptions.py b/revengai/exceptions.py index e09a451..a99f724 100644 --- a/revengai/exceptions.py +++ b/revengai/exceptions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/__init__.py b/revengai/models/__init__.py index cd3ad58..b23e717 100644 --- a/revengai/models/__init__.py +++ b/revengai/models/__init__.py @@ -6,7 +6,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,6 +18,7 @@ from revengai.models.ann_function import ANNFunction from revengai.models.addr import Addr from revengai.models.ai_decompilation_rating import AiDecompilationRating + from revengai.models.ai_unstrip_request import AiUnstripRequest from revengai.models.analysis_access_info import AnalysisAccessInfo from revengai.models.analysis_config import AnalysisConfig from revengai.models.analysis_create_request import AnalysisCreateRequest @@ -27,28 +28,29 @@ from revengai.models.analysis_record import AnalysisRecord from revengai.models.analysis_scope import AnalysisScope from revengai.models.analysis_strings_response import AnalysisStringsResponse + from revengai.models.analysis_tags import AnalysisTags from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData from revengai.models.analysis_update_request import AnalysisUpdateRequest from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy - from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction - from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags - from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 - from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument + from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse + from revengai.models.auto_unstrip_request import AutoUnstripRequest + from revengai.models.auto_unstrip_response import AutoUnstripResponse from revengai.models.base_response import BaseResponse from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse + from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic @@ -119,6 +121,7 @@ from revengai.models.base_response_ttps import BaseResponseTTPS from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse from revengai.models.base_response_task_response import BaseResponseTaskResponse + from revengai.models.base_response_upload_response import BaseResponseUploadResponse from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities from revengai.models.basic import Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse @@ -239,6 +242,8 @@ from revengai.models.login_request import LoginRequest from revengai.models.login_response import LoginResponse from revengai.models.logs import Logs + from revengai.models.matched_function_group import MatchedFunctionGroup + from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion from revengai.models.meta_model import MetaModel from revengai.models.model_name import ModelName from revengai.models.models_response import ModelsResponse @@ -295,10 +300,9 @@ from revengai.models.ttps_data import TTPSData from revengai.models.ttps_element import TTPSElement from revengai.models.ttps_occurance import TTPSOccurance + from revengai.models.tag import Tag from revengai.models.tag_confidence_body import TagConfidenceBody - from revengai.models.tag_input import TagInput from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence - from revengai.models.tag_output import TagOutput from revengai.models.tag_response import TagResponse from revengai.models.tag_search_response import TagSearchResponse from revengai.models.tag_search_result import TagSearchResult @@ -308,7 +312,10 @@ from revengai.models.threat_score_function_body import ThreatScoreFunctionBody from revengai.models.timestamp_model import TimestampModel from revengai.models.type_definition import TypeDefinition + from revengai.models.unstrip_request import UnstripRequest from revengai.models.update_function_data_types import UpdateFunctionDataTypes + from revengai.models.upload_file_type import UploadFileType + from revengai.models.upload_response import UploadResponse from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest from revengai.models.user_activity_response import UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities @@ -326,6 +333,7 @@ from revengai.models.ann_function import ANNFunction from revengai.models.addr import Addr from revengai.models.ai_decompilation_rating import AiDecompilationRating +from revengai.models.ai_unstrip_request import AiUnstripRequest from revengai.models.analysis_access_info import AnalysisAccessInfo from revengai.models.analysis_config import AnalysisConfig from revengai.models.analysis_create_request import AnalysisCreateRequest @@ -335,28 +343,29 @@ from revengai.models.analysis_record import AnalysisRecord from revengai.models.analysis_scope import AnalysisScope from revengai.models.analysis_strings_response import AnalysisStringsResponse +from revengai.models.analysis_tags import AnalysisTags from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData from revengai.models.analysis_update_request import AnalysisUpdateRequest from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus from revengai.models.argument import Argument +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse +from revengai.models.auto_unstrip_request import AutoUnstripRequest +from revengai.models.auto_unstrip_response import AutoUnstripResponse from revengai.models.base_response import BaseResponse from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse from revengai.models.base_response_basic import BaseResponseBasic @@ -427,6 +436,7 @@ from revengai.models.base_response_ttps import BaseResponseTTPS from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse from revengai.models.base_response_task_response import BaseResponseTaskResponse +from revengai.models.base_response_upload_response import BaseResponseUploadResponse from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities from revengai.models.basic import Basic from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse @@ -547,6 +557,8 @@ from revengai.models.login_request import LoginRequest from revengai.models.login_response import LoginResponse from revengai.models.logs import Logs +from revengai.models.matched_function_group import MatchedFunctionGroup +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion from revengai.models.meta_model import MetaModel from revengai.models.model_name import ModelName from revengai.models.models_response import ModelsResponse @@ -603,10 +615,9 @@ from revengai.models.ttps_data import TTPSData from revengai.models.ttps_element import TTPSElement from revengai.models.ttps_occurance import TTPSOccurance +from revengai.models.tag import Tag from revengai.models.tag_confidence_body import TagConfidenceBody -from revengai.models.tag_input import TagInput from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence -from revengai.models.tag_output import TagOutput from revengai.models.tag_response import TagResponse from revengai.models.tag_search_response import TagSearchResponse from revengai.models.tag_search_result import TagSearchResult @@ -616,7 +627,10 @@ from revengai.models.threat_score_function_body import ThreatScoreFunctionBody from revengai.models.timestamp_model import TimestampModel from revengai.models.type_definition import TypeDefinition +from revengai.models.unstrip_request import UnstripRequest from revengai.models.update_function_data_types import UpdateFunctionDataTypes +from revengai.models.upload_file_type import UploadFileType +from revengai.models.upload_response import UploadResponse from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest from revengai.models.user_activity_response import UserActivityResponse from revengai.models.vulnerabilities import Vulnerabilities diff --git a/revengai/models/addr.py b/revengai/models/addr.py index ac98230..b24d39d 100644 --- a/revengai/models/addr.py +++ b/revengai/models/addr.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ai_decompilation_rating.py b/revengai/models/ai_decompilation_rating.py index 53750f9..092fbc8 100644 --- a/revengai/models/ai_decompilation_rating.py +++ b/revengai/models/ai_decompilation_rating.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_param_mapping.py b/revengai/models/ai_unstrip_request.py similarity index 77% rename from revengai/models/function_param_mapping.py rename to revengai/models/ai_unstrip_request.py index abb219b..846d76e 100644 --- a/revengai/models/function_param_mapping.py +++ b/revengai/models/ai_unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,18 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self -class FunctionParamMapping(BaseModel): +class AiUnstripRequest(BaseModel): """ - FunctionParamMapping + AiUnstripRequest """ # noqa: E501 - function_id: StrictInt - vaddr: StrictInt - __properties: ClassVar[List[str]] = ["function_id", "vaddr"] + apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the suggested function names to the target functions, default is False") + __properties: ClassVar[List[str]] = ["apply"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionParamMapping from a JSON string""" + """Create an instance of AiUnstripRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionParamMapping from a dict""" + """Create an instance of AiUnstripRequest from a dict""" if obj is None: return None @@ -81,8 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "function_id": obj.get("function_id"), - "vaddr": obj.get("vaddr") + "apply": obj.get("apply") if obj.get("apply") is not None else False }) return _obj diff --git a/revengai/models/analyse_created.py b/revengai/models/analyse_created.py deleted file mode 100644 index be15a21..0000000 --- a/revengai/models/analyse_created.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AnalyseCreated(BaseModel): - """ - AnalyseCreated - """ # noqa: E501 - success: Optional[Any] = None - binary_id: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "binary_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalyseCreated from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if binary_id (nullable) is None - # and model_fields_set contains the field - if self.binary_id is None and "binary_id" in self.model_fields_set: - _dict['binary_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalyseCreated from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "binary_id": obj.get("binary_id") - }) - return _obj - - diff --git a/revengai/models/analysis_access_info.py b/revengai/models/analysis_access_info.py index 476e6d8..12a41b6 100644 --- a/revengai/models/analysis_access_info.py +++ b/revengai/models/analysis_access_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_config.py b/revengai/models/analysis_config.py index 1024729..26a3ab7 100644 --- a/revengai/models/analysis_config.py +++ b/revengai/models/analysis_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_create_request.py b/revengai/models/analysis_create_request.py index 681d3ba..e381ea1 100644 --- a/revengai/models/analysis_create_request.py +++ b/revengai/models/analysis_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,7 +23,7 @@ from revengai.models.analysis_scope import AnalysisScope from revengai.models.binary_config import BinaryConfig from revengai.models.symbols import Symbols -from revengai.models.tag_input import TagInput +from revengai.models.tag import Tag from typing import Optional, Set from typing_extensions import Self @@ -33,7 +33,7 @@ class AnalysisCreateRequest(BaseModel): """ # noqa: E501 filename: StrictStr = Field(description="The name of the file") sha_256_hash: StrictStr = Field(description="The name of the file") - tags: Optional[List[TagInput]] = Field(default=None, description="List of community tags to assign to an analysis") + tags: Optional[List[Tag]] = Field(default=None, description="List of community tags to assign to an analysis") analysis_scope: Optional[AnalysisScope] = Field(default=None, description="The scope of the analysis determines who can access it") symbols: Optional[Symbols] = None debug_hash: Optional[StrictStr] = None @@ -120,7 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "filename": obj.get("filename"), "sha_256_hash": obj.get("sha_256_hash"), - "tags": [TagInput.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, + "tags": [Tag.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None, "analysis_scope": obj.get("analysis_scope"), "symbols": Symbols.from_dict(obj["symbols"]) if obj.get("symbols") is not None else None, "debug_hash": obj.get("debug_hash"), diff --git a/revengai/models/analysis_create_response.py b/revengai/models/analysis_create_response.py index e8c49f1..322d24f 100644 --- a/revengai/models/analysis_create_response.py +++ b/revengai/models/analysis_create_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_detail_response.py b/revengai/models/analysis_detail_response.py index ca3246d..01d4473 100644 --- a/revengai/models/analysis_detail_response.py +++ b/revengai/models/analysis_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_form.py b/revengai/models/analysis_form.py deleted file mode 100644 index 2a77bb9..0000000 --- a/revengai/models/analysis_form.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v1_analyse_schema_model_name import AppApiRestV1AnalyseSchemaModelName -from revengai.models.app_api_rest_v1_analyse_schema_symbols import AppApiRestV1AnalyseSchemaSymbols -from revengai.models.file_options import FileOptions -from revengai.models.isa_options import IsaOptions -from revengai.models.platform_options import PlatformOptions -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisForm(BaseModel): - """ - Form Model for receiving the analysis request - """ # noqa: E501 - model_name: AppApiRestV1AnalyseSchemaModelName - platform_options: Optional[PlatformOptions] = None - isa_options: Optional[IsaOptions] = None - file_options: Optional[FileOptions] = None - dynamic_execution: Optional[StrictBool] = False - tags: Optional[List[StrictStr]] = None - binary_scope: Optional[StrictStr] = 'PRIVATE' - symbols: Optional[AppApiRestV1AnalyseSchemaSymbols] = None - file_name: Optional[StrictStr] = 'empty' - command_line_args: Optional[StrictStr] = '' - priority: Optional[StrictInt] = 0 - sha_256_hash: Optional[StrictStr] = '' - debug_hash: Optional[StrictStr] = None - size_in_bytes: StrictInt - skip_scraping: Optional[StrictBool] = False - skip_cves: Optional[StrictBool] = False - skip_sbom: Optional[StrictBool] = False - skip_capabilities: Optional[StrictBool] = False - ignore_cache: Optional[StrictBool] = False - advanced_analysis: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["model_name", "platform_options", "isa_options", "file_options", "dynamic_execution", "tags", "binary_scope", "symbols", "file_name", "command_line_args", "priority", "sha_256_hash", "debug_hash", "size_in_bytes", "skip_scraping", "skip_cves", "skip_sbom", "skip_capabilities", "ignore_cache", "advanced_analysis"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisForm from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of symbols - if self.symbols: - _dict['symbols'] = self.symbols.to_dict() - # set to None if debug_hash (nullable) is None - # and model_fields_set contains the field - if self.debug_hash is None and "debug_hash" in self.model_fields_set: - _dict['debug_hash'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisForm from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "model_name": obj.get("model_name"), - "platform_options": obj.get("platform_options"), - "isa_options": obj.get("isa_options"), - "file_options": obj.get("file_options"), - "dynamic_execution": obj.get("dynamic_execution") if obj.get("dynamic_execution") is not None else False, - "tags": obj.get("tags"), - "binary_scope": obj.get("binary_scope") if obj.get("binary_scope") is not None else 'PRIVATE', - "symbols": AppApiRestV1AnalyseSchemaSymbols.from_dict(obj["symbols"]) if obj.get("symbols") is not None else None, - "file_name": obj.get("file_name") if obj.get("file_name") is not None else 'empty', - "command_line_args": obj.get("command_line_args") if obj.get("command_line_args") is not None else '', - "priority": obj.get("priority") if obj.get("priority") is not None else 0, - "sha_256_hash": obj.get("sha_256_hash") if obj.get("sha_256_hash") is not None else '', - "debug_hash": obj.get("debug_hash"), - "size_in_bytes": obj.get("size_in_bytes"), - "skip_scraping": obj.get("skip_scraping") if obj.get("skip_scraping") is not None else False, - "skip_cves": obj.get("skip_cves") if obj.get("skip_cves") is not None else False, - "skip_sbom": obj.get("skip_sbom") if obj.get("skip_sbom") is not None else False, - "skip_capabilities": obj.get("skip_capabilities") if obj.get("skip_capabilities") is not None else False, - "ignore_cache": obj.get("ignore_cache") if obj.get("ignore_cache") is not None else False, - "advanced_analysis": obj.get("advanced_analysis") if obj.get("advanced_analysis") is not None else False - }) - return _obj - - diff --git a/revengai/models/analysis_functions.py b/revengai/models/analysis_functions.py index 6a0ea92..5100088 100644 --- a/revengai/models/analysis_functions.py +++ b/revengai/models/analysis_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_record.py b/revengai/models/analysis_record.py index 963a766..3f5abc8 100644 --- a/revengai/models/analysis_record.py +++ b/revengai/models/analysis_record.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_scope.py b/revengai/models/analysis_scope.py index fff48f9..8cd484e 100644 --- a/revengai/models/analysis_scope.py +++ b/revengai/models/analysis_scope.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_status.py b/revengai/models/analysis_status.py deleted file mode 100644 index 1a09e40..0000000 --- a/revengai/models/analysis_status.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AnalysisStatus(BaseModel): - """ - AnalysisStatus - """ # noqa: E501 - success: Optional[Any] = None - status: StrictStr - __properties: ClassVar[List[str]] = ["success", "status"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AnalysisStatus from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AnalysisStatus from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "status": obj.get("status") - }) - return _obj - - diff --git a/revengai/models/analysis_strings_response.py b/revengai/models/analysis_strings_response.py index f6d28bc..a2b75f0 100644 --- a/revengai/models/analysis_strings_response.py +++ b/revengai/models/analysis_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py b/revengai/models/analysis_tags.py similarity index 91% rename from revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py rename to revengai/models/analysis_tags.py index 583a7c6..f82b88f 100644 --- a/revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py +++ b/revengai/models/analysis_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class AppApiRestV2AnalysesResponsesAnalysisTags(BaseModel): +class AnalysisTags(BaseModel): """ - AppApiRestV2AnalysesResponsesAnalysisTags + AnalysisTags """ # noqa: E501 analysis_tags: List[AppApiRestV2AnalysesResponsesTagItem] suggested_tags: List[AppApiRestV2AnalysesResponsesTagItem] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesResponsesAnalysisTags from a JSON string""" + """Create an instance of AnalysisTags from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -88,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesResponsesAnalysisTags from a dict""" + """Create an instance of AnalysisTags from a dict""" if obj is None: return None diff --git a/revengai/models/analysis_threat_score_data.py b/revengai/models/analysis_threat_score_data.py index 131d526..5d564e2 100644 --- a/revengai/models/analysis_threat_score_data.py +++ b/revengai/models/analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_update_request.py b/revengai/models/analysis_update_request.py index 8f12633..8b2ad52 100644 --- a/revengai/models/analysis_update_request.py +++ b/revengai/models/analysis_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_update_tags_request.py b/revengai/models/analysis_update_tags_request.py index ec2cc68..a563056 100644 --- a/revengai/models/analysis_update_tags_request.py +++ b/revengai/models/analysis_update_tags_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/analysis_update_tags_response.py b/revengai/models/analysis_update_tags_response.py index 3d7f935..491811f 100644 --- a/revengai/models/analysis_update_tags_response.py +++ b/revengai/models/analysis_update_tags_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ann_function.py b/revengai/models/ann_function.py index b39b023..f96562f 100644 --- a/revengai/models/ann_function.py +++ b/revengai/models/ann_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -31,8 +31,8 @@ class ANNFunction(BaseModel): """ # noqa: E501 limit: Optional[StrictInt] = Field(default=5, description="The amount of neighbours per function ID") distance: Optional[Union[StrictFloat, StrictInt]] = Field(default=0.1, description="The distance between two neighbours") - analysis_search_ids: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of analyses") - collection_search_ids: Optional[Annotated[List[Optional[StrictInt]], Field(max_length=5)]] = Field(default=None, description="Search only within these collections") + analysis_search_ids: Optional[List[StrictInt]] = Field(default=None, description="Perform a search on functions within a list of analyses") + collection_search_ids: Optional[Annotated[List[StrictInt], Field(max_length=5)]] = Field(default=None, description="Search only within these collections") search_binary_ids: Optional[SearchBinaryIds] = None search_function_ids: Optional[SearchFunctionIds] = None debug_only: Optional[StrictBool] = Field(default=False, description="Searches for only functions which are debug") diff --git a/revengai/models/ann_input.py b/revengai/models/ann_input.py deleted file mode 100644 index 4515500..0000000 --- a/revengai/models/ann_input.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class ANNInput(BaseModel): - """ - ANNInput - """ # noqa: E501 - result_per_function: Optional[StrictInt] = None - debug_mode: Optional[StrictBool] = None - distance: Optional[Union[StrictFloat, StrictInt]] = None - collection: Optional[List[Optional[StrictStr]]] = None - __properties: ClassVar[List[str]] = ["result_per_function", "debug_mode", "distance", "collection"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ANNInput from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if result_per_function (nullable) is None - # and model_fields_set contains the field - if self.result_per_function is None and "result_per_function" in self.model_fields_set: - _dict['result_per_function'] = None - - # set to None if debug_mode (nullable) is None - # and model_fields_set contains the field - if self.debug_mode is None and "debug_mode" in self.model_fields_set: - _dict['debug_mode'] = None - - # set to None if distance (nullable) is None - # and model_fields_set contains the field - if self.distance is None and "distance" in self.model_fields_set: - _dict['distance'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ANNInput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "result_per_function": obj.get("result_per_function"), - "debug_mode": obj.get("debug_mode"), - "distance": obj.get("distance"), - "collection": obj.get("collection") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v1_analyse_schema_model_name.py b/revengai/models/app_api_rest_v1_analyse_schema_model_name.py deleted file mode 100644 index 1a6a125..0000000 --- a/revengai/models/app_api_rest_v1_analyse_schema_model_name.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AppApiRestV1AnalyseSchemaModelName(str, Enum): - """ - Custom enum for the model name - """ - - """ - allowed enum values - """ - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_WINDOWS = 'binnet-0.5-x86-windows' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_LINUX = 'binnet-0.5-x86-linux' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_MACOS = 'binnet-0.5-x86-macos' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_ANDROID = 'binnet-0.5-x86-android' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_LINUX = 'binnet-0.5-x86-32-linux' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_WINDOWS = 'binnet-0.5-x86-32-windows' - BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_LINUX = 'binnet-0.5-arm-64-linux' - BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_WINDOWS = 'binnet-0.5-arm-64-windows' - BINNET_MINUS_0_DOT_5 = 'binnet-0.5' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV1AnalyseSchemaModelName from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/app_api_rest_v1_analyse_schema_status.py b/revengai/models/app_api_rest_v1_analyse_schema_status.py deleted file mode 100644 index f4a84d1..0000000 --- a/revengai/models/app_api_rest_v1_analyse_schema_status.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AppApiRestV1AnalyseSchemaStatus(str, Enum): - """ - Custom enum for status - """ - - """ - allowed enum values - """ - QUEUED = 'Queued' - PROCESSING = 'Processing' - COMPLETE = 'Complete' - ERROR = 'Error' - ALL = 'All' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV1AnalyseSchemaStatus from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/app_api_rest_v1_analyse_schema_symbols.py b/revengai/models/app_api_rest_v1_analyse_schema_symbols.py deleted file mode 100644 index c26ff3c..0000000 --- a/revengai/models/app_api_rest_v1_analyse_schema_symbols.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.user_boundaries import UserBoundaries -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV1AnalyseSchemaSymbols(BaseModel): - """ - AppApiRestV1AnalyseSchemaSymbols - """ # noqa: E501 - base_addr: Optional[StrictInt] = None - functions: Optional[List[UserBoundaries]] = None - __properties: ClassVar[List[str]] = ["base_addr", "functions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalyseSchemaSymbols from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in functions (list) - _items = [] - if self.functions: - for _item_functions in self.functions: - if _item_functions: - _items.append(_item_functions.to_dict()) - _dict['functions'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalyseSchemaSymbols from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "base_addr": obj.get("base_addr"), - "functions": [UserBoundaries.from_dict(_item) for _item in obj["functions"]] if obj.get("functions") is not None else None - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v1_analysis_info_responses_logs.py b/revengai/models/app_api_rest_v1_analysis_info_responses_logs.py deleted file mode 100644 index ed6da6a..0000000 --- a/revengai/models/app_api_rest_v1_analysis_info_responses_logs.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV1AnalysisInfoResponsesLogs(BaseModel): - """ - AppApiRestV1AnalysisInfoResponsesLogs - """ # noqa: E501 - success: Optional[Any] = None - logs: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "logs"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalysisInfoResponsesLogs from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if logs (nullable) is None - # and model_fields_set contains the field - if self.logs is None and "logs" in self.model_fields_set: - _dict['logs'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalysisInfoResponsesLogs from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "logs": obj.get("logs") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v1_ann_schema_ann_function.py b/revengai/models/app_api_rest_v1_ann_schema_ann_function.py deleted file mode 100644 index af2a345..0000000 --- a/revengai/models/app_api_rest_v1_ann_schema_ann_function.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing_extensions import Annotated -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV1AnnSchemaANNFunction(BaseModel): - """ - AppApiRestV1AnnSchemaANNFunction - """ # noqa: E501 - result_per_function: Optional[Annotated[int, Field(le=20, strict=True)]] = None - distance: Optional[Union[StrictFloat, StrictInt]] = None - function_id_list: List[Optional[StrictInt]] = Field(description="List of function ids to compare") - speculative_function_ids: Optional[List[Any]] = None - collection: Optional[List[Optional[StrictStr]]] = Field(default=None, description="Perform a search on functions within a list of collections") - collection_search_list: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of collections") - debug_mode: Optional[StrictBool] = None - debug_types: Optional[List[StrictStr]] = Field(default=None, description="If limiting results to functions with debug names, which type of debug names to include?") - binaries_search_list: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of analyses") - __properties: ClassVar[List[str]] = ["result_per_function", "distance", "function_id_list", "speculative_function_ids", "collection", "collection_search_list", "debug_mode", "debug_types", "binaries_search_list"] - - @field_validator('debug_types') - def debug_types_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - for i in value: - if i not in set(['USER', 'SYSTEM', 'EXTERNAL']): - raise ValueError("each list item must be one of ('USER', 'SYSTEM', 'EXTERNAL')") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV1AnnSchemaANNFunction from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if result_per_function (nullable) is None - # and model_fields_set contains the field - if self.result_per_function is None and "result_per_function" in self.model_fields_set: - _dict['result_per_function'] = None - - # set to None if distance (nullable) is None - # and model_fields_set contains the field - if self.distance is None and "distance" in self.model_fields_set: - _dict['distance'] = None - - # set to None if speculative_function_ids (nullable) is None - # and model_fields_set contains the field - if self.speculative_function_ids is None and "speculative_function_ids" in self.model_fields_set: - _dict['speculative_function_ids'] = None - - # set to None if debug_mode (nullable) is None - # and model_fields_set contains the field - if self.debug_mode is None and "debug_mode" in self.model_fields_set: - _dict['debug_mode'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV1AnnSchemaANNFunction from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "result_per_function": obj.get("result_per_function"), - "distance": obj.get("distance"), - "function_id_list": obj.get("function_id_list"), - "speculative_function_ids": obj.get("speculative_function_ids"), - "collection": obj.get("collection"), - "collection_search_list": obj.get("collection_search_list"), - "debug_mode": obj.get("debug_mode"), - "debug_types": obj.get("debug_types"), - "binaries_search_list": obj.get("binaries_search_list") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py b/revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py index c8400e1..00415d7 100644 --- a/revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +++ b/revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_analyses_enums_model_name.py b/revengai/models/app_api_rest_v2_analyses_enums_model_name.py deleted file mode 100644 index c82bcb0..0000000 --- a/revengai/models/app_api_rest_v2_analyses_enums_model_name.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AppApiRestV2AnalysesEnumsModelName(str, Enum): - """ - Custom enum for the model name - """ - - """ - allowed enum values - """ - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_WINDOWS = 'binnet-0.5-x86-windows' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_LINUX = 'binnet-0.5-x86-linux' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_MACOS = 'binnet-0.5-x86-macos' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_ANDROID = 'binnet-0.5-x86-android' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_WINDOWS = 'binnet-0.5-x86-32-windows' - BINNET_MINUS_0_DOT_5_MINUS_X86_MINUS_32_MINUS_LINUX = 'binnet-0.5-x86-32-linux' - BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_WINDOWS = 'binnet-0.5-arm-64-windows' - BINNET_MINUS_0_DOT_5_MINUS_ARM_MINUS_64_MINUS_LINUX = 'binnet-0.5-arm-64-linux' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV2AnalysesEnumsModelName from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/app_api_rest_v2_analyses_enums_order_by.py b/revengai/models/app_api_rest_v2_analyses_enums_order_by.py index d3ee817..22589ac 100644 --- a/revengai/models/app_api_rest_v2_analyses_enums_order_by.py +++ b/revengai/models/app_api_rest_v2_analyses_enums_order_by.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_analyses_enums_status.py b/revengai/models/app_api_rest_v2_analyses_enums_status.py deleted file mode 100644 index 755847d..0000000 --- a/revengai/models/app_api_rest_v2_analyses_enums_status.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class AppApiRestV2AnalysesEnumsStatus(str, Enum): - """ - Custom enum for the analysis status - """ - - """ - allowed enum values - """ - UPLOADED = 'Uploaded' - QUEUED = 'Queued' - COMPLETE = 'Complete' - ERROR = 'Error' - PROCESSING = 'Processing' - ALL = 'All' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AppApiRestV2AnalysesEnumsStatus from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/app_api_rest_v2_analyses_responses_logs.py b/revengai/models/app_api_rest_v2_analyses_responses_logs.py deleted file mode 100644 index 5b7526d..0000000 --- a/revengai/models/app_api_rest_v2_analyses_responses_logs.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2AnalysesResponsesLogs(BaseModel): - """ - AppApiRestV2AnalysesResponsesLogs - """ # noqa: E501 - logs: StrictStr = Field(description="Full logs of an analysis of an analysis_id") - __properties: ClassVar[List[str]] = ["logs"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesResponsesLogs from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesResponsesLogs from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "logs": obj.get("logs") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py b/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py index 332a1e1..df20124 100644 --- a/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +++ b/revengai/models/app_api_rest_v2_analyses_responses_tag_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_analyses_schemas_symbols.py b/revengai/models/app_api_rest_v2_analyses_schemas_symbols.py deleted file mode 100644 index ab7ba44..0000000 --- a/revengai/models/app_api_rest_v2_analyses_schemas_symbols.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.function_boundary import FunctionBoundary -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2AnalysesSchemasSymbols(BaseModel): - """ - AppApiRestV2AnalysesSchemasSymbols - """ # noqa: E501 - base_address: Optional[StrictInt] = Field(default=0, description="The starting address of the execution") - function_boundaries: Optional[List[FunctionBoundary]] = Field(default=None, description="List of user defined function boundaries") - __properties: ClassVar[List[str]] = ["base_address", "function_boundaries"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesSchemasSymbols from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in function_boundaries (list) - _items = [] - if self.function_boundaries: - for _item_function_boundaries in self.function_boundaries: - if _item_function_boundaries: - _items.append(_item_function_boundaries.to_dict()) - _dict['function_boundaries'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2AnalysesSchemasSymbols from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "base_address": obj.get("base_address") if obj.get("base_address") is not None else 0, - "function_boundaries": [FunctionBoundary.from_dict(_item) for _item in obj["function_boundaries"]] if obj.get("function_boundaries") is not None else None - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_collections_enums_order_by.py b/revengai/models/app_api_rest_v2_collections_enums_order_by.py index d121857..1b5df6e 100644 --- a/revengai/models/app_api_rest_v2_collections_enums_order_by.py +++ b/revengai/models/app_api_rest_v2_collections_enums_order_by.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py b/revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py deleted file mode 100644 index 9f2308b..0000000 --- a/revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2FunctionsRenameSchemaFunctionRename(BaseModel): - """ - AppApiRestV2FunctionsRenameSchemaFunctionRename - """ # noqa: E501 - new_name: Optional[StrictStr] = None - new_mangled_name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2FunctionsRenameSchemaFunctionRename from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if new_mangled_name (nullable) is None - # and model_fields_set contains the field - if self.new_mangled_name is None and "new_mangled_name" in self.model_fields_set: - _dict['new_mangled_name'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2FunctionsRenameSchemaFunctionRename from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "new_name": obj.get("new_name"), - "new_mangled_name": obj.get("new_mangled_name") - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_functions_responses_function.py b/revengai/models/app_api_rest_v2_functions_responses_function.py index fc08510..fed584b 100644 --- a/revengai/models/app_api_rest_v2_functions_responses_function.py +++ b/revengai/models/app_api_rest_v2_functions_responses_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_functions_types_function.py b/revengai/models/app_api_rest_v2_functions_types_function.py index 9235d8a..17034f4 100644 --- a/revengai/models/app_api_rest_v2_functions_types_function.py +++ b/revengai/models/app_api_rest_v2_functions_types_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_api_rest_v2_info_responses_analysis_tags.py b/revengai/models/app_api_rest_v2_info_responses_analysis_tags.py deleted file mode 100644 index 0382505..0000000 --- a/revengai/models/app_api_rest_v2_info_responses_analysis_tags.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from revengai.models.tag_output import TagOutput -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2InfoResponsesAnalysisTags(BaseModel): - """ - AppApiRestV2InfoResponsesAnalysisTags - """ # noqa: E501 - analysis_tags: List[TagOutput] = Field(description="List of analysis tags") - suggested_tags: List[TagOutput] = Field(description="List of suggested analysis tags") - __properties: ClassVar[List[str]] = ["analysis_tags", "suggested_tags"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2InfoResponsesAnalysisTags from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in analysis_tags (list) - _items = [] - if self.analysis_tags: - for _item_analysis_tags in self.analysis_tags: - if _item_analysis_tags: - _items.append(_item_analysis_tags.to_dict()) - _dict['analysis_tags'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in suggested_tags (list) - _items = [] - if self.suggested_tags: - for _item_suggested_tags in self.suggested_tags: - if _item_suggested_tags: - _items.append(_item_suggested_tags.to_dict()) - _dict['suggested_tags'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2InfoResponsesAnalysisTags from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "analysis_tags": [TagOutput.from_dict(_item) for _item in obj["analysis_tags"]] if obj.get("analysis_tags") is not None else None, - "suggested_tags": [TagOutput.from_dict(_item) for _item in obj["suggested_tags"]] if obj.get("suggested_tags") is not None else None - }) - return _obj - - diff --git a/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py b/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py deleted file mode 100644 index 95f3e12..0000000 --- a/revengai/models/app_api_rest_v2_similarity_schema_ann_function.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing_extensions import Annotated -from revengai.models.search_binary_ids import SearchBinaryIds -from revengai.models.search_function_ids import SearchFunctionIds -from typing import Optional, Set -from typing_extensions import Self - -class AppApiRestV2SimilaritySchemaANNFunction(BaseModel): - """ - AppApiRestV2SimilaritySchemaANNFunction - """ # noqa: E501 - limit: Optional[StrictInt] = Field(default=5, description="The amount of neighbours per function ID") - distance: Optional[Union[StrictFloat, StrictInt]] = Field(default=0.1, description="The distance between two neighbours") - analysis_search_ids: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of analyses") - collection_search_ids: Optional[Annotated[List[Optional[StrictInt]], Field(max_length=5)]] = Field(default=None, description="Search only within these collections") - search_binary_ids: Optional[SearchBinaryIds] = None - search_function_ids: Optional[SearchFunctionIds] = None - debug_only: Optional[StrictBool] = Field(default=False, description="Searches for only functions which are debug") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["limit", "distance", "analysis_search_ids", "collection_search_ids", "search_binary_ids", "search_function_ids", "debug_only"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV2SimilaritySchemaANNFunction from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of search_binary_ids - if self.search_binary_ids: - _dict['search_binary_ids'] = self.search_binary_ids.to_dict() - # override the default output from pydantic by calling `to_dict()` of search_function_ids - if self.search_function_ids: - _dict['search_function_ids'] = self.search_function_ids.to_dict() - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV2SimilaritySchemaANNFunction from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "limit": obj.get("limit") if obj.get("limit") is not None else 5, - "distance": obj.get("distance") if obj.get("distance") is not None else 0.1, - "analysis_search_ids": obj.get("analysis_search_ids"), - "collection_search_ids": obj.get("collection_search_ids"), - "search_binary_ids": SearchBinaryIds.from_dict(obj["search_binary_ids"]) if obj.get("search_binary_ids") is not None else None, - "search_function_ids": SearchFunctionIds.from_dict(obj["search_function_ids"]) if obj.get("search_function_ids") is not None else None, - "debug_only": obj.get("debug_only") if obj.get("debug_only") is not None else False - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/revengai/models/app_services_binary_ann_schema_tag_item.py b/revengai/models/app_services_binary_ann_schema_tag_item.py index c3e4ada..c4259f0 100644 --- a/revengai/models/app_services_binary_ann_schema_tag_item.py +++ b/revengai/models/app_services_binary_ann_schema_tag_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py b/revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py index 9b180d6..ecdc982 100644 --- a/revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +++ b/revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/argument.py b/revengai/models/argument.py index f648119..f4b0567 100644 --- a/revengai/models/argument.py +++ b/revengai/models/argument.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/auto_unstrip_by_group_response.py b/revengai/models/auto_unstrip_by_group_response.py new file mode 100644 index 0000000..4310ca8 --- /dev/null +++ b/revengai/models/auto_unstrip_by_group_response.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from revengai.models.matched_function_group import MatchedFunctionGroup +from typing import Optional, Set +from typing_extensions import Self + +class AutoUnstripByGroupResponse(BaseModel): + """ + AutoUnstripByGroupResponse + """ # noqa: E501 + progress: Optional[StrictInt] = Field(default=0, description="Progress of the auto-unstrip operation, represented as a percentage") + status: Optional[StrictStr] = None + total_time: Optional[StrictInt] = None + matches_map: Optional[Dict[str, List[MatchedFunctionGroup]]] = None + applied: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["progress", "status", "total_time", "matches_map", "applied"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AutoUnstripByGroupResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each value in matches_map (dict of array) + _field_dict_of_array = {} + if self.matches_map: + for _key_matches_map in self.matches_map: + if self.matches_map[_key_matches_map] is not None: + _field_dict_of_array[_key_matches_map] = [ + _item.to_dict() for _item in self.matches_map[_key_matches_map] + ] + _dict['matches_map'] = _field_dict_of_array + # set to None if status (nullable) is None + # and model_fields_set contains the field + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None + + # set to None if total_time (nullable) is None + # and model_fields_set contains the field + if self.total_time is None and "total_time" in self.model_fields_set: + _dict['total_time'] = None + + # set to None if matches_map (nullable) is None + # and model_fields_set contains the field + if self.matches_map is None and "matches_map" in self.model_fields_set: + _dict['matches_map'] = None + + # set to None if applied (nullable) is None + # and model_fields_set contains the field + if self.applied is None and "applied" in self.model_fields_set: + _dict['applied'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AutoUnstripByGroupResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "progress": obj.get("progress") if obj.get("progress") is not None else 0, + "status": obj.get("status"), + "total_time": obj.get("total_time"), + "matches_map": dict( + (_k, + [MatchedFunctionGroup.from_dict(_item) for _item in _v] + if _v is not None + else None + ) + for _k, _v in obj.get("matches_map", {}).items() + ), + "applied": obj.get("applied") + }) + return _obj + + diff --git a/revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py b/revengai/models/auto_unstrip_request.py similarity index 66% rename from revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py rename to revengai/models/auto_unstrip_request.py index e70ccb9..d7a8e34 100644 --- a/revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py +++ b/revengai/models/auto_unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,18 +17,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -class AppApiRestV1AnalysisInfoSchemaFunctionRename(BaseModel): +class AutoUnstripRequest(BaseModel): """ - AppApiRestV1AnalysisInfoSchemaFunctionRename + AutoUnstripRequest """ # noqa: E501 - new_name: Annotated[str, Field(min_length=1, strict=True)] - __properties: ClassVar[List[str]] = ["new_name"] + min_similarity: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=0.9, description="Minimum similarity expected for a match, default is 0.9") + apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the matched function names to the target binary, default is False") + __properties: ClassVar[List[str]] = ["min_similarity", "apply"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalysisInfoSchemaFunctionRename from a JSON string""" + """Create an instance of AutoUnstripRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppApiRestV1AnalysisInfoSchemaFunctionRename from a dict""" + """Create an instance of AutoUnstripRequest from a dict""" if obj is None: return None @@ -81,7 +82,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "new_name": obj.get("new_name") + "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 0.9, + "apply": obj.get("apply") if obj.get("apply") is not None else False }) return _obj diff --git a/revengai/models/upload_success.py b/revengai/models/auto_unstrip_response.py similarity index 50% rename from revengai/models/upload_success.py rename to revengai/models/auto_unstrip_response.py index add7883..b3d5883 100644 --- a/revengai/models/upload_success.py +++ b/revengai/models/auto_unstrip_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,19 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion from typing import Optional, Set from typing_extensions import Self -class UploadSuccess(BaseModel): +class AutoUnstripResponse(BaseModel): """ - UploadSuccess + AutoUnstripResponse """ # noqa: E501 - success: Optional[Any] = None - message: Optional[Any] = None - sha_256_hash: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "message", "sha_256_hash"] + progress: Optional[StrictInt] = Field(default=0, description="Progress of the auto-unstrip operation, represented as a percentage") + status: Optional[StrictStr] = None + total_time: Optional[StrictInt] = None + matches: Optional[List[MatchedFunctionSuggestion]] = None + applied: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["progress", "status", "total_time", "matches", "applied"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UploadSuccess from a JSON string""" + """Create an instance of AutoUnstripResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,26 +73,38 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if success (nullable) is None + # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + _items = [] + if self.matches: + for _item_matches in self.matches: + if _item_matches: + _items.append(_item_matches.to_dict()) + _dict['matches'] = _items + # set to None if status (nullable) is None # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None + if self.status is None and "status" in self.model_fields_set: + _dict['status'] = None - # set to None if message (nullable) is None + # set to None if total_time (nullable) is None # and model_fields_set contains the field - if self.message is None and "message" in self.model_fields_set: - _dict['message'] = None + if self.total_time is None and "total_time" in self.model_fields_set: + _dict['total_time'] = None - # set to None if sha_256_hash (nullable) is None + # set to None if matches (nullable) is None # and model_fields_set contains the field - if self.sha_256_hash is None and "sha_256_hash" in self.model_fields_set: - _dict['sha_256_hash'] = None + if self.matches is None and "matches" in self.model_fields_set: + _dict['matches'] = None + + # set to None if applied (nullable) is None + # and model_fields_set contains the field + if self.applied is None and "applied" in self.model_fields_set: + _dict['applied'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UploadSuccess from a dict""" + """Create an instance of AutoUnstripResponse from a dict""" if obj is None: return None @@ -97,9 +112,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "success": obj.get("success"), - "message": obj.get("message"), - "sha_256_hash": obj.get("sha_256_hash") + "progress": obj.get("progress") if obj.get("progress") is not None else 0, + "status": obj.get("status"), + "total_time": obj.get("total_time"), + "matches": [MatchedFunctionSuggestion.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None, + "applied": obj.get("applied") }) return _obj diff --git a/revengai/models/base_response.py b/revengai/models/base_response.py index 05679a7..e8e3cff 100644 --- a/revengai/models/base_response.py +++ b/revengai/models/base_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_create_response.py b/revengai/models/base_response_analysis_create_response.py index 6a40f39..1f9f22e 100644 --- a/revengai/models/base_response_analysis_create_response.py +++ b/revengai/models/base_response_analysis_create_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_detail_response.py b/revengai/models/base_response_analysis_detail_response.py index 923389d..eb09baf 100644 --- a/revengai/models/base_response_analysis_detail_response.py +++ b/revengai/models/base_response_analysis_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_functions.py b/revengai/models/base_response_analysis_functions.py index e25ae32..18fc0ae 100644 --- a/revengai/models/base_response_analysis_functions.py +++ b/revengai/models/base_response_analysis_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_strings_response.py b/revengai/models/base_response_analysis_strings_response.py index 0764615..6e55ab2 100644 --- a/revengai/models/base_response_analysis_strings_response.py +++ b/revengai/models/base_response_analysis_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_core_responses_base_base_response_analysis_tags1.py b/revengai/models/base_response_analysis_tags.py similarity index 86% rename from revengai/models/app_core_responses_base_base_response_analysis_tags1.py rename to revengai/models/base_response_analysis_tags.py index 6c3733f..f94169f 100644 --- a/revengai/models/app_core_responses_base_base_response_analysis_tags1.py +++ b/revengai/models/base_response_analysis_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,18 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags +from revengai.models.analysis_tags import AnalysisTags from revengai.models.error_model import ErrorModel from revengai.models.meta_model import MetaModel from typing import Optional, Set from typing_extensions import Self -class AppCoreResponsesBaseBaseResponseAnalysisTags1(BaseModel): +class BaseResponseAnalysisTags(BaseModel): """ - AppCoreResponsesBaseBaseResponseAnalysisTags1 + BaseResponseAnalysisTags """ # noqa: E501 status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AppApiRestV2InfoResponsesAnalysisTags] = None + data: Optional[AnalysisTags] = None message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags1 from a JSON string""" + """Create an instance of BaseResponseAnalysisTags from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -107,7 +107,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags1 from a dict""" + """Create an instance of BaseResponseAnalysisTags from a dict""" if obj is None: return None @@ -116,7 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") if obj.get("status") is not None else True, - "data": AppApiRestV2InfoResponsesAnalysisTags.from_dict(obj["data"]) if obj.get("data") is not None else None, + "data": AnalysisTags.from_dict(obj["data"]) if obj.get("data") is not None else None, "message": obj.get("message"), "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None diff --git a/revengai/models/base_response_analysis_threat_score_data.py b/revengai/models/base_response_analysis_threat_score_data.py index 39dceb1..15902e9 100644 --- a/revengai/models/base_response_analysis_threat_score_data.py +++ b/revengai/models/base_response_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_analysis_update_tags_response.py b/revengai/models/base_response_analysis_update_tags_response.py index a16f076..60b4b4a 100644 --- a/revengai/models/base_response_analysis_update_tags_response.py +++ b/revengai/models/base_response_analysis_update_tags_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_basic.py b/revengai/models/base_response_basic.py index 76da59e..e7fe70b 100644 --- a/revengai/models/base_response_basic.py +++ b/revengai/models/base_response_basic.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_additional_response.py b/revengai/models/base_response_binary_additional_response.py index 762df65..216a8ee 100644 --- a/revengai/models/base_response_binary_additional_response.py +++ b/revengai/models/base_response_binary_additional_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_ann_list_response.py b/revengai/models/base_response_binary_ann_list_response.py index 9aaf113..69c024c 100644 --- a/revengai/models/base_response_binary_ann_list_response.py +++ b/revengai/models/base_response_binary_ann_list_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_details_response.py b/revengai/models/base_response_binary_details_response.py index 4dd77c8..3ad6727 100644 --- a/revengai/models/base_response_binary_details_response.py +++ b/revengai/models/base_response_binary_details_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_externals_response.py b/revengai/models/base_response_binary_externals_response.py index c02614f..f4c113d 100644 --- a/revengai/models/base_response_binary_externals_response.py +++ b/revengai/models/base_response_binary_externals_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_binary_search_response.py b/revengai/models/base_response_binary_search_response.py index b8831c0..c464e2a 100644 --- a/revengai/models/base_response_binary_search_response.py +++ b/revengai/models/base_response_binary_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_block_comments_generation_for_function_response.py b/revengai/models/base_response_block_comments_generation_for_function_response.py index 8bc64e0..ec09c3e 100644 --- a/revengai/models/base_response_block_comments_generation_for_function_response.py +++ b/revengai/models/base_response_block_comments_generation_for_function_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_block_comments_overview_generation_response.py b/revengai/models/base_response_block_comments_overview_generation_response.py index 127d75a..3757d87 100644 --- a/revengai/models/base_response_block_comments_overview_generation_response.py +++ b/revengai/models/base_response_block_comments_overview_generation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_bool.py b/revengai/models/base_response_bool.py index f4e132b..8b22bc4 100644 --- a/revengai/models/base_response_bool.py +++ b/revengai/models/base_response_bool.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_box_plot_confidence.py b/revengai/models/base_response_box_plot_confidence.py index 6c16120..698c33b 100644 --- a/revengai/models/base_response_box_plot_confidence.py +++ b/revengai/models/base_response_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_callees_caller_functions_response.py b/revengai/models/base_response_callees_caller_functions_response.py index 6babf71..69c607d 100644 --- a/revengai/models/base_response_callees_caller_functions_response.py +++ b/revengai/models/base_response_callees_caller_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_capabilities.py b/revengai/models/base_response_capabilities.py index 3fce295..ce64a4d 100644 --- a/revengai/models/base_response_capabilities.py +++ b/revengai/models/base_response_capabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_check_security_checks_task_response.py b/revengai/models/base_response_check_security_checks_task_response.py index f04e9c4..b898861 100644 --- a/revengai/models/base_response_check_security_checks_task_response.py +++ b/revengai/models/base_response_check_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_child_binaries_response.py b/revengai/models/base_response_child_binaries_response.py index 53b0ff1..43720b7 100644 --- a/revengai/models/base_response_child_binaries_response.py +++ b/revengai/models/base_response_child_binaries_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_collection_binaries_update_response.py b/revengai/models/base_response_collection_binaries_update_response.py index 35e692a..6ec06d5 100644 --- a/revengai/models/base_response_collection_binaries_update_response.py +++ b/revengai/models/base_response_collection_binaries_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_collection_response.py b/revengai/models/base_response_collection_response.py index 7f19102..fcf46b6 100644 --- a/revengai/models/base_response_collection_response.py +++ b/revengai/models/base_response_collection_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_collection_search_response.py b/revengai/models/base_response_collection_search_response.py index f18120b..a183334 100644 --- a/revengai/models/base_response_collection_search_response.py +++ b/revengai/models/base_response_collection_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_collection_tags_update_response.py b/revengai/models/base_response_collection_tags_update_response.py index c18c4ba..9d481be 100644 --- a/revengai/models/base_response_collection_tags_update_response.py +++ b/revengai/models/base_response_collection_tags_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_comment_response.py b/revengai/models/base_response_comment_response.py index f0f7e81..fa54aeb 100644 --- a/revengai/models/base_response_comment_response.py +++ b/revengai/models/base_response_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_communities.py b/revengai/models/base_response_communities.py index c014bff..7ae826f 100644 --- a/revengai/models/base_response_communities.py +++ b/revengai/models/base_response_communities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_created.py b/revengai/models/base_response_created.py index b3140cd..6752394 100644 --- a/revengai/models/base_response_created.py +++ b/revengai/models/base_response_created.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_decompilation_response.py b/revengai/models/base_response_decompilation_response.py index 4d43e1f..2a35633 100644 --- a/revengai/models/base_response_decompilation_response.py +++ b/revengai/models/base_response_decompilation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_dict.py b/revengai/models/base_response_dict.py index cb69f58..0386c8a 100644 --- a/revengai/models/base_response_dict.py +++ b/revengai/models/base_response_dict.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_dynamic_execution_status.py b/revengai/models/base_response_dynamic_execution_status.py index b16570e..62cba30 100644 --- a/revengai/models/base_response_dynamic_execution_status.py +++ b/revengai/models/base_response_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_external_response.py b/revengai/models/base_response_external_response.py index ac6586c..0351c1c 100644 --- a/revengai/models/base_response_external_response.py +++ b/revengai/models/base_response_external_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_analysis_threat_score_data.py b/revengai/models/base_response_function_analysis_threat_score_data.py index 819f8ee..b13cac3 100644 --- a/revengai/models/base_response_function_analysis_threat_score_data.py +++ b/revengai/models/base_response_function_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_blocks_response.py b/revengai/models/base_response_function_blocks_response.py index bdc226a..63e545e 100644 --- a/revengai/models/base_response_function_blocks_response.py +++ b/revengai/models/base_response_function_blocks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_capability_response.py b/revengai/models/base_response_function_capability_response.py index 5c4ae5b..cefc8fa 100644 --- a/revengai/models/base_response_function_capability_response.py +++ b/revengai/models/base_response_function_capability_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_data_types.py b/revengai/models/base_response_function_data_types.py index 10dec9f..d3410ef 100644 --- a/revengai/models/base_response_function_data_types.py +++ b/revengai/models/base_response_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_data_types_list.py b/revengai/models/base_response_function_data_types_list.py index ebeb35b..ea312c9 100644 --- a/revengai/models/base_response_function_data_types_list.py +++ b/revengai/models/base_response_function_data_types_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_search_response.py b/revengai/models/base_response_function_search_response.py index 9dc20ef..62b6b79 100644 --- a/revengai/models/base_response_function_search_response.py +++ b/revengai/models/base_response_function_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_strings_response.py b/revengai/models/base_response_function_strings_response.py index 52b8052..4b275fd 100644 --- a/revengai/models/base_response_function_strings_response.py +++ b/revengai/models/base_response_function_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_task_response.py b/revengai/models/base_response_function_task_response.py index 85c501c..6780563 100644 --- a/revengai/models/base_response_function_task_response.py +++ b/revengai/models/base_response_function_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_function_threat_score.py b/revengai/models/base_response_function_threat_score.py index 6762adf..e21fa00 100644 --- a/revengai/models/base_response_function_threat_score.py +++ b/revengai/models/base_response_function_threat_score.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_functions_detail_response.py b/revengai/models/base_response_functions_detail_response.py index bd347b5..8ca26cb 100644 --- a/revengai/models/base_response_functions_detail_response.py +++ b/revengai/models/base_response_functions_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_generate_function_data_types.py b/revengai/models/base_response_generate_function_data_types.py index 1182027..890ffa0 100644 --- a/revengai/models/base_response_generate_function_data_types.py +++ b/revengai/models/base_response_generate_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_generation_status_list.py b/revengai/models/base_response_generation_status_list.py index 05788d2..3576796 100644 --- a/revengai/models/base_response_generation_status_list.py +++ b/revengai/models/base_response_generation_status_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_get_ai_decompilation_rating_response.py b/revengai/models/base_response_get_ai_decompilation_rating_response.py index fefaaf2..dfbe80c 100644 --- a/revengai/models/base_response_get_ai_decompilation_rating_response.py +++ b/revengai/models/base_response_get_ai_decompilation_rating_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_get_ai_decompilation_task.py b/revengai/models/base_response_get_ai_decompilation_task.py index da1ae59..858cdc1 100644 --- a/revengai/models/base_response_get_ai_decompilation_task.py +++ b/revengai/models/base_response_get_ai_decompilation_task.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_get_public_user_response.py b/revengai/models/base_response_get_public_user_response.py index fe23c06..6029a2c 100644 --- a/revengai/models/base_response_get_public_user_response.py +++ b/revengai/models/base_response_get_public_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_get_user_response.py b/revengai/models/base_response_get_user_response.py index 763a437..f0f98ee 100644 --- a/revengai/models/base_response_get_user_response.py +++ b/revengai/models/base_response_get_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_collection_results.py b/revengai/models/base_response_list_collection_results.py index 0d25d31..19b617e 100644 --- a/revengai/models/base_response_list_collection_results.py +++ b/revengai/models/base_response_list_collection_results.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_comment_response.py b/revengai/models/base_response_list_comment_response.py index a21ad4b..4679509 100644 --- a/revengai/models/base_response_list_comment_response.py +++ b/revengai/models/base_response_list_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_die_match.py b/revengai/models/base_response_list_die_match.py index 2141048..20587a9 100644 --- a/revengai/models/base_response_list_die_match.py +++ b/revengai/models/base_response_list_die_match.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_function_box_plot_confidence.py b/revengai/models/base_response_list_function_box_plot_confidence.py index 4323c8b..f153da2 100644 --- a/revengai/models/base_response_list_function_box_plot_confidence.py +++ b/revengai/models/base_response_list_function_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_function_name_history.py b/revengai/models/base_response_list_function_name_history.py index a444ea9..7416ef3 100644 --- a/revengai/models/base_response_list_function_name_history.py +++ b/revengai/models/base_response_list_function_name_history.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_sbom.py b/revengai/models/base_response_list_sbom.py index fc700a6..0014d79 100644 --- a/revengai/models/base_response_list_sbom.py +++ b/revengai/models/base_response_list_sbom.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_similar_functions_response.py b/revengai/models/base_response_list_similar_functions_response.py index 2f152b7..d9650bd 100644 --- a/revengai/models/base_response_list_similar_functions_response.py +++ b/revengai/models/base_response_list_similar_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_tag_origin_box_plot_confidence.py b/revengai/models/base_response_list_tag_origin_box_plot_confidence.py index e2a33b6..3c107e6 100644 --- a/revengai/models/base_response_list_tag_origin_box_plot_confidence.py +++ b/revengai/models/base_response_list_tag_origin_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_list_user_activity_response.py b/revengai/models/base_response_list_user_activity_response.py index a9e922b..9f0e5c9 100644 --- a/revengai/models/base_response_list_user_activity_response.py +++ b/revengai/models/base_response_list_user_activity_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_login_response.py b/revengai/models/base_response_login_response.py index 392a13d..5531414 100644 --- a/revengai/models/base_response_login_response.py +++ b/revengai/models/base_response_login_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_logs.py b/revengai/models/base_response_logs.py index 8d02c3c..0ceb8a7 100644 --- a/revengai/models/base_response_logs.py +++ b/revengai/models/base_response_logs.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_models_response.py b/revengai/models/base_response_models_response.py index 2a81f3b..ce455a8 100644 --- a/revengai/models/base_response_models_response.py +++ b/revengai/models/base_response_models_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_nearest_neighbor_analysis.py b/revengai/models/base_response_nearest_neighbor_analysis.py index 9a064e1..0f49e59 100644 --- a/revengai/models/base_response_nearest_neighbor_analysis.py +++ b/revengai/models/base_response_nearest_neighbor_analysis.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_network_overview_response.py b/revengai/models/base_response_network_overview_response.py index d54abbf..f95a267 100644 --- a/revengai/models/base_response_network_overview_response.py +++ b/revengai/models/base_response_network_overview_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_params.py b/revengai/models/base_response_params.py index ec9fe22..6a32927 100644 --- a/revengai/models/base_response_params.py +++ b/revengai/models/base_response_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_process_dumps.py b/revengai/models/base_response_process_dumps.py index db216c1..5b69c0d 100644 --- a/revengai/models/base_response_process_dumps.py +++ b/revengai/models/base_response_process_dumps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_process_registry.py b/revengai/models/base_response_process_registry.py index 93d568f..370ee87 100644 --- a/revengai/models/base_response_process_registry.py +++ b/revengai/models/base_response_process_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_process_tree.py b/revengai/models/base_response_process_tree.py index 91ad4c4..c17b1d9 100644 --- a/revengai/models/base_response_process_tree.py +++ b/revengai/models/base_response_process_tree.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_queued_security_checks_task_response.py b/revengai/models/base_response_queued_security_checks_task_response.py index af86a7a..84c5b66 100644 --- a/revengai/models/base_response_queued_security_checks_task_response.py +++ b/revengai/models/base_response_queued_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_recent.py b/revengai/models/base_response_recent.py index 132cc98..a0b3f53 100644 --- a/revengai/models/base_response_recent.py +++ b/revengai/models/base_response_recent.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_security_checks_response.py b/revengai/models/base_response_security_checks_response.py index a36837e..f643b27 100644 --- a/revengai/models/base_response_security_checks_response.py +++ b/revengai/models/base_response_security_checks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_status.py b/revengai/models/base_response_status.py index 460b8b7..898c17d 100644 --- a/revengai/models/base_response_status.py +++ b/revengai/models/base_response_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_str.py b/revengai/models/base_response_str.py index e002785..891ceef 100644 --- a/revengai/models/base_response_str.py +++ b/revengai/models/base_response_str.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_symbols_info.py b/revengai/models/base_response_symbols_info.py index 9d5e184..acb397b 100644 --- a/revengai/models/base_response_symbols_info.py +++ b/revengai/models/base_response_symbols_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_tag_search_response.py b/revengai/models/base_response_tag_search_response.py index acab67d..b0e7a60 100644 --- a/revengai/models/base_response_tag_search_response.py +++ b/revengai/models/base_response_tag_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_task_response.py b/revengai/models/base_response_task_response.py index 35a9882..dd615ea 100644 --- a/revengai/models/base_response_task_response.py +++ b/revengai/models/base_response_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/base_response_ttps.py b/revengai/models/base_response_ttps.py index 7fc4206..d50342b 100644 --- a/revengai/models/base_response_ttps.py +++ b/revengai/models/base_response_ttps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/app_core_responses_base_base_response_analysis_tags2.py b/revengai/models/base_response_upload_response.py similarity index 86% rename from revengai/models/app_core_responses_base_base_response_analysis_tags2.py rename to revengai/models/base_response_upload_response.py index d5e7a07..0ac642d 100644 --- a/revengai/models/app_core_responses_base_base_response_analysis_tags2.py +++ b/revengai/models/base_response_upload_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,18 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags from revengai.models.error_model import ErrorModel from revengai.models.meta_model import MetaModel +from revengai.models.upload_response import UploadResponse from typing import Optional, Set from typing_extensions import Self -class AppCoreResponsesBaseBaseResponseAnalysisTags2(BaseModel): +class BaseResponseUploadResponse(BaseModel): """ - AppCoreResponsesBaseBaseResponseAnalysisTags2 + BaseResponseUploadResponse """ # noqa: E501 status: Optional[StrictBool] = Field(default=True, description="Response status on whether the request succeeded") - data: Optional[AppApiRestV2AnalysesResponsesAnalysisTags] = None + data: Optional[UploadResponse] = None message: Optional[StrictStr] = None errors: Optional[List[ErrorModel]] = None meta: Optional[MetaModel] = Field(default=None, description="Metadata") @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags2 from a JSON string""" + """Create an instance of BaseResponseUploadResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -107,7 +107,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AppCoreResponsesBaseBaseResponseAnalysisTags2 from a dict""" + """Create an instance of BaseResponseUploadResponse from a dict""" if obj is None: return None @@ -116,7 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status") if obj.get("status") is not None else True, - "data": AppApiRestV2AnalysesResponsesAnalysisTags.from_dict(obj["data"]) if obj.get("data") is not None else None, + "data": UploadResponse.from_dict(obj["data"]) if obj.get("data") is not None else None, "message": obj.get("message"), "errors": [ErrorModel.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, "meta": MetaModel.from_dict(obj["meta"]) if obj.get("meta") is not None else None diff --git a/revengai/models/base_response_vulnerabilities.py b/revengai/models/base_response_vulnerabilities.py index 0f63779..59ddd40 100644 --- a/revengai/models/base_response_vulnerabilities.py +++ b/revengai/models/base_response_vulnerabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/basic.py b/revengai/models/basic.py index 153bbf4..820b2f7 100644 --- a/revengai/models/basic.py +++ b/revengai/models/basic.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/batch_ann.py b/revengai/models/batch_ann.py deleted file mode 100644 index bdf3cb1..0000000 --- a/revengai/models/batch_ann.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class BatchAnn(BaseModel): - """ - BatchAnn - """ # noqa: E501 - success: Optional[Any] = None - settings: Optional[Any] - function_matches: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "settings", "function_matches"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchAnn from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if settings (nullable) is None - # and model_fields_set contains the field - if self.settings is None and "settings" in self.model_fields_set: - _dict['settings'] = None - - # set to None if function_matches (nullable) is None - # and model_fields_set contains the field - if self.function_matches is None and "function_matches" in self.model_fields_set: - _dict['function_matches'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchAnn from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "settings": obj.get("settings"), - "function_matches": obj.get("function_matches") - }) - return _obj - - diff --git a/revengai/models/batch_function_rename.py b/revengai/models/batch_function_rename.py deleted file mode 100644 index 96a754a..0000000 --- a/revengai/models/batch_function_rename.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.batch_function_rename_record import BatchFunctionRenameRecord -from typing import Optional, Set -from typing_extensions import Self - -class BatchFunctionRename(BaseModel): - """ - BatchFunctionRename - """ # noqa: E501 - new_name_mapping: List[BatchFunctionRenameRecord] - __properties: ClassVar[List[str]] = ["new_name_mapping"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchFunctionRename from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in new_name_mapping (list) - _items = [] - if self.new_name_mapping: - for _item_new_name_mapping in self.new_name_mapping: - if _item_new_name_mapping: - _items.append(_item_new_name_mapping.to_dict()) - _dict['new_name_mapping'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchFunctionRename from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "new_name_mapping": [BatchFunctionRenameRecord.from_dict(_item) for _item in obj["new_name_mapping"]] if obj.get("new_name_mapping") is not None else None - }) - return _obj - - diff --git a/revengai/models/binary_additional_details_data_response.py b/revengai/models/binary_additional_details_data_response.py index c721599..2578d22 100644 --- a/revengai/models/binary_additional_details_data_response.py +++ b/revengai/models/binary_additional_details_data_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_additional_response.py b/revengai/models/binary_additional_response.py index 3c1692b..0333eae 100644 --- a/revengai/models/binary_additional_response.py +++ b/revengai/models/binary_additional_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_ann_form.py b/revengai/models/binary_ann_form.py index 99edfd8..c4813f6 100644 --- a/revengai/models/binary_ann_form.py +++ b/revengai/models/binary_ann_form.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_ann_list_response.py b/revengai/models/binary_ann_list_response.py index 1b8d146..fa1619d 100644 --- a/revengai/models/binary_ann_list_response.py +++ b/revengai/models/binary_ann_list_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_config.py b/revengai/models/binary_config.py index b12f6f3..ad24484 100644 --- a/revengai/models/binary_config.py +++ b/revengai/models/binary_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_details_response.py b/revengai/models/binary_details_response.py index 512e22c..9175ff2 100644 --- a/revengai/models/binary_details_response.py +++ b/revengai/models/binary_details_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_externals_response.py b/revengai/models/binary_externals_response.py index a380975..6da24c4 100644 --- a/revengai/models/binary_externals_response.py +++ b/revengai/models/binary_externals_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_search_response.py b/revengai/models/binary_search_response.py index 137b03c..2cb29bc 100644 --- a/revengai/models/binary_search_response.py +++ b/revengai/models/binary_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_search_result.py b/revengai/models/binary_search_result.py index b581961..25ac2ad 100644 --- a/revengai/models/binary_search_result.py +++ b/revengai/models/binary_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/binary_task_status.py b/revengai/models/binary_task_status.py index ec8f20f..a7d9c28 100644 --- a/revengai/models/binary_task_status.py +++ b/revengai/models/binary_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/block.py b/revengai/models/block.py index 25d51fb..fcb9031 100644 --- a/revengai/models/block.py +++ b/revengai/models/block.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/block_comments_generation_for_function_response.py b/revengai/models/block_comments_generation_for_function_response.py index b3b1881..9163b28 100644 --- a/revengai/models/block_comments_generation_for_function_response.py +++ b/revengai/models/block_comments_generation_for_function_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/boundary.py b/revengai/models/boundary.py index de3c90b..5a3921d 100644 --- a/revengai/models/boundary.py +++ b/revengai/models/boundary.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/box_plot_confidence.py b/revengai/models/box_plot_confidence.py index 0881727..f2ae079 100644 --- a/revengai/models/box_plot_confidence.py +++ b/revengai/models/box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/callee_function_info.py b/revengai/models/callee_function_info.py index 09f90e9..9b16a70 100644 --- a/revengai/models/callee_function_info.py +++ b/revengai/models/callee_function_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/callees_caller_functions_response.py b/revengai/models/callees_caller_functions_response.py index 4f6ff07..9d0fd4a 100644 --- a/revengai/models/callees_caller_functions_response.py +++ b/revengai/models/callees_caller_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/caller_function_info.py b/revengai/models/caller_function_info.py index 0c3e8c9..ee7a37e 100644 --- a/revengai/models/caller_function_info.py +++ b/revengai/models/caller_function_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/capabilities.py b/revengai/models/capabilities.py index 2466677..4036cd3 100644 --- a/revengai/models/capabilities.py +++ b/revengai/models/capabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/capability.py b/revengai/models/capability.py index c2222d4..bea20f8 100644 --- a/revengai/models/capability.py +++ b/revengai/models/capability.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/check_security_checks_task_response.py b/revengai/models/check_security_checks_task_response.py index bd652a3..a177cc1 100644 --- a/revengai/models/check_security_checks_task_response.py +++ b/revengai/models/check_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/child_binaries_response.py b/revengai/models/child_binaries_response.py index ee9e022..4e19cc8 100644 --- a/revengai/models/child_binaries_response.py +++ b/revengai/models/child_binaries_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/code_signature_model.py b/revengai/models/code_signature_model.py index cee4914..61632e0 100644 --- a/revengai/models/code_signature_model.py +++ b/revengai/models/code_signature_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_binaries_update_request.py b/revengai/models/collection_binaries_update_request.py index 3a44552..b348a05 100644 --- a/revengai/models/collection_binaries_update_request.py +++ b/revengai/models/collection_binaries_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_binaries_update_response.py b/revengai/models/collection_binaries_update_response.py index cf2a982..325eeb5 100644 --- a/revengai/models/collection_binaries_update_response.py +++ b/revengai/models/collection_binaries_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_binary_response.py b/revengai/models/collection_binary_response.py index 2a749f1..8ef50c9 100644 --- a/revengai/models/collection_binary_response.py +++ b/revengai/models/collection_binary_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_count.py b/revengai/models/collection_count.py deleted file mode 100644 index 133a7c7..0000000 --- a/revengai/models/collection_count.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class CollectionCount(BaseModel): - """ - CollectionCount - """ # noqa: E501 - success: Optional[Any] = None - count: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "count"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionCount from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if count (nullable) is None - # and model_fields_set contains the field - if self.count is None and "count" in self.model_fields_set: - _dict['count'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionCount from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "count": obj.get("count") - }) - return _obj - - diff --git a/revengai/models/collection_create_request.py b/revengai/models/collection_create_request.py index e440049..75ce44f 100644 --- a/revengai/models/collection_create_request.py +++ b/revengai/models/collection_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_list_item.py b/revengai/models/collection_list_item.py index 9e50334..6411cbe 100644 --- a/revengai/models/collection_list_item.py +++ b/revengai/models/collection_list_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_response.py b/revengai/models/collection_response.py index 43d8ff3..ed6ddc9 100644 --- a/revengai/models/collection_response.py +++ b/revengai/models/collection_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_response_binaries_inner.py b/revengai/models/collection_response_binaries_inner.py index fc03aea..20fdb57 100644 --- a/revengai/models/collection_response_binaries_inner.py +++ b/revengai/models/collection_response_binaries_inner.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_scope.py b/revengai/models/collection_scope.py index db1ae75..b075e46 100644 --- a/revengai/models/collection_scope.py +++ b/revengai/models/collection_scope.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_search_response.py b/revengai/models/collection_search_response.py index a5f26c8..54e0862 100644 --- a/revengai/models/collection_search_response.py +++ b/revengai/models/collection_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_search_result.py b/revengai/models/collection_search_result.py index 60029de..f4d827b 100644 --- a/revengai/models/collection_search_result.py +++ b/revengai/models/collection_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_tags_update_request.py b/revengai/models/collection_tags_update_request.py index 9f5ff83..b82dfc9 100644 --- a/revengai/models/collection_tags_update_request.py +++ b/revengai/models/collection_tags_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_tags_update_response.py b/revengai/models/collection_tags_update_response.py index 13c120c..c3d8ec0 100644 --- a/revengai/models/collection_tags_update_response.py +++ b/revengai/models/collection_tags_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collection_update_request.py b/revengai/models/collection_update_request.py index 77bcb9c..a4850ef 100644 --- a/revengai/models/collection_update_request.py +++ b/revengai/models/collection_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/comment_base.py b/revengai/models/comment_base.py index 5d48a45..e81da80 100644 --- a/revengai/models/comment_base.py +++ b/revengai/models/comment_base.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/comment_response.py b/revengai/models/comment_response.py index 728568b..e3e5034 100644 --- a/revengai/models/comment_response.py +++ b/revengai/models/comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/comment_update_request.py b/revengai/models/comment_update_request.py index baf2b26..c1559ef 100644 --- a/revengai/models/comment_update_request.py +++ b/revengai/models/comment_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/communities.py b/revengai/models/communities.py index 65bf2bc..0a325cd 100644 --- a/revengai/models/communities.py +++ b/revengai/models/communities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/community_match_percentages.py b/revengai/models/community_match_percentages.py index 5a29128..a70ad1e 100644 --- a/revengai/models/community_match_percentages.py +++ b/revengai/models/community_match_percentages.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/confidence_type.py b/revengai/models/confidence_type.py index 997152a..97088c5 100644 --- a/revengai/models/confidence_type.py +++ b/revengai/models/confidence_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/config_settings.py b/revengai/models/config_settings.py deleted file mode 100644 index 17e6c36..0000000 --- a/revengai/models/config_settings.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ConfigSettings(BaseModel): - """ - ConfigSettings - """ # noqa: E501 - success: Optional[StrictBool] = True - max_file_size: Optional[StrictInt] = 52428800 - valid_models: Optional[List[Optional[StrictStr]]] = None - isa_options: Optional[List[Optional[StrictStr]]] = None - file_options: Optional[List[Optional[StrictStr]]] = None - platform_options: Optional[List[Optional[StrictStr]]] = None - analysis_status_conditions: Optional[List[Optional[StrictStr]]] = None - analysis_scope_conditions: Optional[List[Optional[StrictStr]]] = None - __properties: ClassVar[List[str]] = ["success", "max_file_size", "valid_models", "isa_options", "file_options", "platform_options", "analysis_status_conditions", "analysis_scope_conditions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ConfigSettings from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ConfigSettings from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success") if obj.get("success") is not None else True, - "max_file_size": obj.get("max_file_size") if obj.get("max_file_size") is not None else 52428800, - "valid_models": obj.get("valid_models"), - "isa_options": obj.get("isa_options"), - "file_options": obj.get("file_options"), - "platform_options": obj.get("platform_options"), - "analysis_status_conditions": obj.get("analysis_status_conditions"), - "analysis_scope_conditions": obj.get("analysis_scope_conditions") - }) - return _obj - - diff --git a/revengai/models/context.py b/revengai/models/context.py index 6fe2c2b..f67caef 100644 --- a/revengai/models/context.py +++ b/revengai/models/context.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/create_ai_decompilation_request.py b/revengai/models/create_ai_decompilation_request.py deleted file mode 100644 index 8a0b7c2..0000000 --- a/revengai/models/create_ai_decompilation_request.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CreateAiDecompilationRequest(BaseModel): - """ - CreateAiDecompilationRequest - """ # noqa: E501 - function_id: StrictInt - __properties: ClassVar[List[str]] = ["function_id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateAiDecompilationRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateAiDecompilationRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id": obj.get("function_id") - }) - return _obj - - diff --git a/revengai/models/created.py b/revengai/models/created.py index 81c57d3..21035dd 100644 --- a/revengai/models/created.py +++ b/revengai/models/created.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/decompilation_comment_context.py b/revengai/models/decompilation_comment_context.py index 57dcd85..6fbcad6 100644 --- a/revengai/models/decompilation_comment_context.py +++ b/revengai/models/decompilation_comment_context.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/decompilation_response.py b/revengai/models/decompilation_response.py index 9e6b567..069b0e3 100644 --- a/revengai/models/decompilation_response.py +++ b/revengai/models/decompilation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/deleted_analysis.py b/revengai/models/deleted_analysis.py deleted file mode 100644 index dd559de..0000000 --- a/revengai/models/deleted_analysis.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DeletedAnalysis(BaseModel): - """ - DeletedAnalysis - """ # noqa: E501 - success: Optional[Any] = None - msg: Optional[Any] = None - __properties: ClassVar[List[str]] = ["success", "msg"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeletedAnalysis from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if msg (nullable) is None - # and model_fields_set contains the field - if self.msg is None and "msg" in self.model_fields_set: - _dict['msg'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeletedAnalysis from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "msg": obj.get("msg") - }) - return _obj - - diff --git a/revengai/models/die_match.py b/revengai/models/die_match.py index 5e183ff..dd27ce4 100644 --- a/revengai/models/die_match.py +++ b/revengai/models/die_match.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/dynamic_execution_status_input.py b/revengai/models/dynamic_execution_status_input.py index 5328322..2c75993 100644 --- a/revengai/models/dynamic_execution_status_input.py +++ b/revengai/models/dynamic_execution_status_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_dynamic_entry.py b/revengai/models/elf_dynamic_entry.py index 09f09ac..c39f6ce 100644 --- a/revengai/models/elf_dynamic_entry.py +++ b/revengai/models/elf_dynamic_entry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_import_model.py b/revengai/models/elf_import_model.py index 526c3d9..520253d 100644 --- a/revengai/models/elf_import_model.py +++ b/revengai/models/elf_import_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_model.py b/revengai/models/elf_model.py index a0464af..69fc20a 100644 --- a/revengai/models/elf_model.py +++ b/revengai/models/elf_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_relocation.py b/revengai/models/elf_relocation.py index 79f8865..7941d1b 100644 --- a/revengai/models/elf_relocation.py +++ b/revengai/models/elf_relocation.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_section.py b/revengai/models/elf_section.py index 7a66524..d3f2b12 100644 --- a/revengai/models/elf_section.py +++ b/revengai/models/elf_section.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_security.py b/revengai/models/elf_security.py index 0a6d38e..adad28f 100644 --- a/revengai/models/elf_security.py +++ b/revengai/models/elf_security.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_segment.py b/revengai/models/elf_segment.py index 1744c7e..a205f2e 100644 --- a/revengai/models/elf_segment.py +++ b/revengai/models/elf_segment.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/elf_symbol.py b/revengai/models/elf_symbol.py index 21f0a86..dc71e1c 100644 --- a/revengai/models/elf_symbol.py +++ b/revengai/models/elf_symbol.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/entrypoint_model.py b/revengai/models/entrypoint_model.py index 05a3f09..cdf0769 100644 --- a/revengai/models/entrypoint_model.py +++ b/revengai/models/entrypoint_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/enumeration.py b/revengai/models/enumeration.py index 429ede0..45cea73 100644 --- a/revengai/models/enumeration.py +++ b/revengai/models/enumeration.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/error_model.py b/revengai/models/error_model.py index 9261b50..fba489a 100644 --- a/revengai/models/error_model.py +++ b/revengai/models/error_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/export_model.py b/revengai/models/export_model.py index 00c8498..8a9df81 100644 --- a/revengai/models/export_model.py +++ b/revengai/models/export_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/exported_binary_ann_result.py b/revengai/models/exported_binary_ann_result.py index 8669513..5bed6bb 100644 --- a/revengai/models/exported_binary_ann_result.py +++ b/revengai/models/exported_binary_ann_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/external_response.py b/revengai/models/external_response.py index 3e7cee6..d3ba7f0 100644 --- a/revengai/models/external_response.py +++ b/revengai/models/external_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/file_format.py b/revengai/models/file_format.py index 4a0b61f..f3c9461 100644 --- a/revengai/models/file_format.py +++ b/revengai/models/file_format.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/file_hashes.py b/revengai/models/file_hashes.py index e3768e9..8bc834a 100644 --- a/revengai/models/file_hashes.py +++ b/revengai/models/file_hashes.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/file_metadata.py b/revengai/models/file_metadata.py index 435be3d..92b8f91 100644 --- a/revengai/models/file_metadata.py +++ b/revengai/models/file_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/file_options.py b/revengai/models/file_options.py deleted file mode 100644 index 4a79ec6..0000000 --- a/revengai/models/file_options.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class FileOptions(str, Enum): - """ - Custom Enum for the file options - """ - - """ - allowed enum values - """ - AUTO = 'Auto' - PE = 'PE' - ELF = 'ELF' - RAW = 'RAW' - EXE = 'EXE' - DLL = 'dll' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of FileOptions from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/filters.py b/revengai/models/filters.py index 0efd26e..f834f07 100644 --- a/revengai/models/filters.py +++ b/revengai/models/filters.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_analysis_threat_score_data.py b/revengai/models/function_analysis_threat_score_data.py index f575e02..3f6a343 100644 --- a/revengai/models/function_analysis_threat_score_data.py +++ b/revengai/models/function_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_batch_ann.py b/revengai/models/function_batch_ann.py deleted file mode 100644 index c4cb380..0000000 --- a/revengai/models/function_batch_ann.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionBatchAnn(BaseModel): - """ - FunctionBatchAnn - """ # noqa: E501 - success: Optional[Any] = None - settings: Optional[Any] - function_matches: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "settings", "function_matches"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionBatchAnn from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if settings (nullable) is None - # and model_fields_set contains the field - if self.settings is None and "settings" in self.model_fields_set: - _dict['settings'] = None - - # set to None if function_matches (nullable) is None - # and model_fields_set contains the field - if self.function_matches is None and "function_matches" in self.model_fields_set: - _dict['function_matches'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionBatchAnn from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "settings": obj.get("settings"), - "function_matches": obj.get("function_matches") - }) - return _obj - - diff --git a/revengai/models/function_block_destination_response.py b/revengai/models/function_block_destination_response.py index 8707de1..768a1a3 100644 --- a/revengai/models/function_block_destination_response.py +++ b/revengai/models/function_block_destination_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_block_response.py b/revengai/models/function_block_response.py index 5e9a9ed..5e6c85b 100644 --- a/revengai/models/function_block_response.py +++ b/revengai/models/function_block_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_blocks_response.py b/revengai/models/function_blocks_response.py index 11c332f..74c5b16 100644 --- a/revengai/models/function_blocks_response.py +++ b/revengai/models/function_blocks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_boundary.py b/revengai/models/function_boundary.py index f89f5c2..4ddffac 100644 --- a/revengai/models/function_boundary.py +++ b/revengai/models/function_boundary.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_box_plot_confidence.py b/revengai/models/function_box_plot_confidence.py index 548bf26..079a6fc 100644 --- a/revengai/models/function_box_plot_confidence.py +++ b/revengai/models/function_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_capability_response.py b/revengai/models/function_capability_response.py index 93db01d..1c0e542 100644 --- a/revengai/models/function_capability_response.py +++ b/revengai/models/function_capability_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_comment_create_request.py b/revengai/models/function_comment_create_request.py index fe06c64..7e5c65f 100644 --- a/revengai/models/function_comment_create_request.py +++ b/revengai/models/function_comment_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types.py b/revengai/models/function_data_types.py index c6a9aae..b0a1a30 100644 --- a/revengai/models/function_data_types.py +++ b/revengai/models/function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types_list.py b/revengai/models/function_data_types_list.py index 0ccee28..2013760 100644 --- a/revengai/models/function_data_types_list.py +++ b/revengai/models/function_data_types_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types_list_item.py b/revengai/models/function_data_types_list_item.py index 985575f..a99ab1c 100644 --- a/revengai/models/function_data_types_list_item.py +++ b/revengai/models/function_data_types_list_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types_params.py b/revengai/models/function_data_types_params.py index d08458e..568bc0a 100644 --- a/revengai/models/function_data_types_params.py +++ b/revengai/models/function_data_types_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_data_types_status.py b/revengai/models/function_data_types_status.py index a5ec1d3..75aa5ce 100644 --- a/revengai/models/function_data_types_status.py +++ b/revengai/models/function_data_types_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_dump.py b/revengai/models/function_dump.py deleted file mode 100644 index 425beff..0000000 --- a/revengai/models/function_dump.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionDump(BaseModel): - """ - FunctionDump - """ # noqa: E501 - success: Optional[Any] = None - functions: Optional[Any] - invalid_functions: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "functions", "invalid_functions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionDump from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if functions (nullable) is None - # and model_fields_set contains the field - if self.functions is None and "functions" in self.model_fields_set: - _dict['functions'] = None - - # set to None if invalid_functions (nullable) is None - # and model_fields_set contains the field - if self.invalid_functions is None and "invalid_functions" in self.model_fields_set: - _dict['invalid_functions'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDump from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "functions": obj.get("functions"), - "invalid_functions": obj.get("invalid_functions") - }) - return _obj - - diff --git a/revengai/models/function_header.py b/revengai/models/function_header.py index 78aba4f..5d72d46 100644 --- a/revengai/models/function_header.py +++ b/revengai/models/function_header.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_info_input.py b/revengai/models/function_info_input.py index ef0a1cc..af807eb 100644 --- a/revengai/models/function_info_input.py +++ b/revengai/models/function_info_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_info_input_func_deps_inner.py b/revengai/models/function_info_input_func_deps_inner.py index 899cb12..396a8c6 100644 --- a/revengai/models/function_info_input_func_deps_inner.py +++ b/revengai/models/function_info_input_func_deps_inner.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_info_output.py b/revengai/models/function_info_output.py index 581e9a0..4f25ca0 100644 --- a/revengai/models/function_info_output.py +++ b/revengai/models/function_info_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_list.py b/revengai/models/function_list.py deleted file mode 100644 index 38d6f31..0000000 --- a/revengai/models/function_list.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class FunctionList(BaseModel): - """ - FunctionList - """ # noqa: E501 - function_id_list: List[StrictInt] - __properties: ClassVar[List[str]] = ["function_id_list"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id_list": obj.get("function_id_list") - }) - return _obj - - diff --git a/revengai/models/function_list_basic.py b/revengai/models/function_list_basic.py deleted file mode 100644 index 34ffdd1..0000000 --- a/revengai/models/function_list_basic.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class FunctionListBasic(BaseModel): - """ - FunctionListBasic - """ # noqa: E501 - success: Optional[Any] = None - functions: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "functions"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionListBasic from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if functions (nullable) is None - # and model_fields_set contains the field - if self.functions is None and "functions" in self.model_fields_set: - _dict['functions'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionListBasic from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "functions": obj.get("functions") - }) - return _obj - - diff --git a/revengai/models/function_local_variable_response.py b/revengai/models/function_local_variable_response.py index 1949109..97590a4 100644 --- a/revengai/models/function_local_variable_response.py +++ b/revengai/models/function_local_variable_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_mapping_full.py b/revengai/models/function_mapping_full.py index b17f9d7..2757cdb 100644 --- a/revengai/models/function_mapping_full.py +++ b/revengai/models/function_mapping_full.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_name_confidence_body.py b/revengai/models/function_name_confidence_body.py index 0518df2..ccd6dff 100644 --- a/revengai/models/function_name_confidence_body.py +++ b/revengai/models/function_name_confidence_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_name_history.py b/revengai/models/function_name_history.py index 6abc06c..a3183b4 100644 --- a/revengai/models/function_name_history.py +++ b/revengai/models/function_name_history.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_name_input.py b/revengai/models/function_name_input.py index 2a9eb03..abd85b6 100644 --- a/revengai/models/function_name_input.py +++ b/revengai/models/function_name_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_param_response.py b/revengai/models/function_param_response.py index 17cff38..01957ec 100644 --- a/revengai/models/function_param_response.py +++ b/revengai/models/function_param_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_params.py b/revengai/models/function_params.py deleted file mode 100644 index a23a659..0000000 --- a/revengai/models/function_params.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.function_param_mapping import FunctionParamMapping -from typing import Optional, Set -from typing_extensions import Self - -class FunctionParams(BaseModel): - """ - FunctionParams - """ # noqa: E501 - function_id_list: List[FunctionParamMapping] - __properties: ClassVar[List[str]] = ["function_id_list"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionParams from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in function_id_list (list) - _items = [] - if self.function_id_list: - for _item_function_id_list in self.function_id_list: - if _item_function_id_list: - _items.append(_item_function_id_list.to_dict()) - _dict['function_id_list'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionParams from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "function_id_list": [FunctionParamMapping.from_dict(_item) for _item in obj["function_id_list"]] if obj.get("function_id_list") is not None else None - }) - return _obj - - diff --git a/revengai/models/function_rename.py b/revengai/models/function_rename.py index 55fd67e..25f6546 100644 --- a/revengai/models/function_rename.py +++ b/revengai/models/function_rename.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class FunctionRename(BaseModel): """ FunctionRename """ # noqa: E501 - new_name: Optional[StrictStr] = None + new_name: Optional[StrictStr] = Field(default='', description="The new name for the function") new_mangled_name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"] @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "new_name": obj.get("new_name"), + "new_name": obj.get("new_name") if obj.get("new_name") is not None else '', "new_mangled_name": obj.get("new_mangled_name") }) return _obj diff --git a/revengai/models/function_rename_map.py b/revengai/models/function_rename_map.py index 32c0a2d..7ef61d9 100644 --- a/revengai/models/function_rename_map.py +++ b/revengai/models/function_rename_map.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,7 +27,7 @@ class FunctionRenameMap(BaseModel): FunctionRenameMap """ # noqa: E501 function_id: StrictInt = Field(description="The ID of the function to rename") - new_name: StrictStr = Field(description="The new name for the function") + new_name: Optional[StrictStr] = Field(default='', description="The new name for the function") new_mangled_name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["function_id", "new_name", "new_mangled_name"] @@ -88,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "function_id": obj.get("function_id"), - "new_name": obj.get("new_name"), + "new_name": obj.get("new_name") if obj.get("new_name") is not None else '', "new_mangled_name": obj.get("new_mangled_name") }) return _obj diff --git a/revengai/models/function_search_response.py b/revengai/models/function_search_response.py index 065921e..4ba5bf0 100644 --- a/revengai/models/function_search_response.py +++ b/revengai/models/function_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_search_result.py b/revengai/models/function_search_result.py index 18d0989..812b2fb 100644 --- a/revengai/models/function_search_result.py +++ b/revengai/models/function_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_string.py b/revengai/models/function_string.py index cfea82a..a1dc54b 100644 --- a/revengai/models/function_string.py +++ b/revengai/models/function_string.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_strings_response.py b/revengai/models/function_strings_response.py index ee6a288..00f304b 100644 --- a/revengai/models/function_strings_response.py +++ b/revengai/models/function_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_task_response.py b/revengai/models/function_task_response.py index 4f0bed0..d29def3 100644 --- a/revengai/models/function_task_response.py +++ b/revengai/models/function_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_task_status.py b/revengai/models/function_task_status.py index 7300d60..32e90ac 100644 --- a/revengai/models/function_task_status.py +++ b/revengai/models/function_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_threat_score.py b/revengai/models/function_threat_score.py index b41a7c6..c76e6da 100644 --- a/revengai/models/function_threat_score.py +++ b/revengai/models/function_threat_score.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_type_input.py b/revengai/models/function_type_input.py index 0eb9262..6ec13f2 100644 --- a/revengai/models/function_type_input.py +++ b/revengai/models/function_type_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/function_type_output.py b/revengai/models/function_type_output.py index d8d6366..53e6fc6 100644 --- a/revengai/models/function_type_output.py +++ b/revengai/models/function_type_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/functions_detail_response.py b/revengai/models/functions_detail_response.py index f480764..82af85c 100644 --- a/revengai/models/functions_detail_response.py +++ b/revengai/models/functions_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/functions_list_rename.py b/revengai/models/functions_list_rename.py index 62e09c7..77fe0d9 100644 --- a/revengai/models/functions_list_rename.py +++ b/revengai/models/functions_list_rename.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/generate_function_data_types.py b/revengai/models/generate_function_data_types.py index c3ae2a8..52dc7ad 100644 --- a/revengai/models/generate_function_data_types.py +++ b/revengai/models/generate_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/generation_status_list.py b/revengai/models/generation_status_list.py index 14f509a..9972a9f 100644 --- a/revengai/models/generation_status_list.py +++ b/revengai/models/generation_status_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/get_ai_decompilation_rating_response.py b/revengai/models/get_ai_decompilation_rating_response.py index b0806d5..8ae44c4 100644 --- a/revengai/models/get_ai_decompilation_rating_response.py +++ b/revengai/models/get_ai_decompilation_rating_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/get_ai_decompilation_task.py b/revengai/models/get_ai_decompilation_task.py index edb3134..45fee4f 100644 --- a/revengai/models/get_ai_decompilation_task.py +++ b/revengai/models/get_ai_decompilation_task.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/get_public_user_response.py b/revengai/models/get_public_user_response.py index 34d2ca0..96fc690 100644 --- a/revengai/models/get_public_user_response.py +++ b/revengai/models/get_public_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/get_user_response.py b/revengai/models/get_user_response.py index 0da171b..d154ee5 100644 --- a/revengai/models/get_user_response.py +++ b/revengai/models/get_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/global_variable.py b/revengai/models/global_variable.py index d43e014..e111045 100644 --- a/revengai/models/global_variable.py +++ b/revengai/models/global_variable.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/icon_model.py b/revengai/models/icon_model.py index 0aa2204..c94dc0f 100644 --- a/revengai/models/icon_model.py +++ b/revengai/models/icon_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/import_model.py b/revengai/models/import_model.py index 29959bf..d266b2c 100644 --- a/revengai/models/import_model.py +++ b/revengai/models/import_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/inverse_function_map_item.py b/revengai/models/inverse_function_map_item.py index 71437bf..37d2951 100644 --- a/revengai/models/inverse_function_map_item.py +++ b/revengai/models/inverse_function_map_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/inverse_string_map_item.py b/revengai/models/inverse_string_map_item.py index 051111a..efa6ca4 100644 --- a/revengai/models/inverse_string_map_item.py +++ b/revengai/models/inverse_string_map_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/inverse_value.py b/revengai/models/inverse_value.py index 5a82cc3..995fd95 100644 --- a/revengai/models/inverse_value.py +++ b/revengai/models/inverse_value.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/isa.py b/revengai/models/isa.py index 37110bf..8db8737 100644 --- a/revengai/models/isa.py +++ b/revengai/models/isa.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/isa_options.py b/revengai/models/isa_options.py deleted file mode 100644 index dd01254..0000000 --- a/revengai/models/isa_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class IsaOptions(str, Enum): - """ - Custom enum for the isa options - """ - - """ - allowed enum values - """ - AUTO = 'Auto' - X86 = 'x86' - X86_64 = 'x86_64' - ARM64 = 'ARM64' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of IsaOptions from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/list_collection_results.py b/revengai/models/list_collection_results.py index 9287856..617ea50 100644 --- a/revengai/models/list_collection_results.py +++ b/revengai/models/list_collection_results.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/login_request.py b/revengai/models/login_request.py index b04cec7..09579a3 100644 --- a/revengai/models/login_request.py +++ b/revengai/models/login_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/login_response.py b/revengai/models/login_response.py index a1f87a3..b09f66c 100644 --- a/revengai/models/login_response.py +++ b/revengai/models/login_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/logs.py b/revengai/models/logs.py index 28fb404..e4416e5 100644 --- a/revengai/models/logs.py +++ b/revengai/models/logs.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/collections_count_form.py b/revengai/models/matched_function_group.py similarity index 71% rename from revengai/models/collections_count_form.py rename to revengai/models/matched_function_group.py index 259a274..c326410 100644 --- a/revengai/models/collections_count_form.py +++ b/revengai/models/matched_function_group.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from revengai.models.scope import Scope +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self -class CollectionsCountForm(BaseModel): +class MatchedFunctionGroup(BaseModel): """ - CollectionsCountForm + MatchedFunctionGroup """ # noqa: E501 - scope: Scope - __properties: ClassVar[List[str]] = ["scope"] + function_group_name: StrictStr = Field(description="Name of the function group that contains the matched functions") + similarity: Union[StrictFloat, StrictInt] = Field(description="Similarity score of the match") + __properties: ClassVar[List[str]] = ["function_group_name", "similarity"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CollectionsCountForm from a JSON string""" + """Create an instance of MatchedFunctionGroup from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CollectionsCountForm from a dict""" + """Create an instance of MatchedFunctionGroup from a dict""" if obj is None: return None @@ -81,7 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "scope": obj.get("scope") + "function_group_name": obj.get("function_group_name"), + "similarity": obj.get("similarity") }) return _obj diff --git a/revengai/models/batch_function_rename_record.py b/revengai/models/matched_function_suggestion.py similarity index 68% rename from revengai/models/batch_function_rename_record.py rename to revengai/models/matched_function_suggestion.py index 4f87146..6bffc45 100644 --- a/revengai/models/batch_function_rename_record.py +++ b/revengai/models/matched_function_suggestion.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,19 +17,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List -from typing_extensions import Annotated +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self -class BatchFunctionRenameRecord(BaseModel): +class MatchedFunctionSuggestion(BaseModel): """ - BatchFunctionRenameRecord + MatchedFunctionSuggestion """ # noqa: E501 - function_id: StrictInt - function_name: Annotated[str, Field(min_length=1, strict=True)] - __properties: ClassVar[List[str]] = ["function_id", "function_name"] + function_id: StrictInt = Field(description="Unique identifier of the matched function") + function_vaddr: Optional[StrictInt] + suggested_name: StrictStr = Field(description="Name of the function group that contains the matched functions") + __properties: ClassVar[List[str]] = ["function_id", "function_vaddr", "suggested_name"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BatchFunctionRenameRecord from a JSON string""" + """Create an instance of MatchedFunctionSuggestion from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,11 +70,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if function_vaddr (nullable) is None + # and model_fields_set contains the field + if self.function_vaddr is None and "function_vaddr" in self.model_fields_set: + _dict['function_vaddr'] = None + return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BatchFunctionRenameRecord from a dict""" + """Create an instance of MatchedFunctionSuggestion from a dict""" if obj is None: return None @@ -83,7 +88,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "function_id": obj.get("function_id"), - "function_name": obj.get("function_name") + "function_vaddr": obj.get("function_vaddr"), + "suggested_name": obj.get("suggested_name") }) return _obj diff --git a/revengai/models/meta_model.py b/revengai/models/meta_model.py index 9bcac3f..d33355b 100644 --- a/revengai/models/meta_model.py +++ b/revengai/models/meta_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/model_list.py b/revengai/models/model_list.py deleted file mode 100644 index e4dcbba..0000000 --- a/revengai/models/model_list.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ModelList(BaseModel): - """ - ModelList - """ # noqa: E501 - success: Optional[Any] = None - models: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "models"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ModelList from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if models (nullable) is None - # and model_fields_set contains the field - if self.models is None and "models" in self.model_fields_set: - _dict['models'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ModelList from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "models": obj.get("models") - }) - return _obj - - diff --git a/revengai/models/model_name.py b/revengai/models/model_name.py index 08f66f3..073ebeb 100644 --- a/revengai/models/model_name.py +++ b/revengai/models/model_name.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/models_response.py b/revengai/models/models_response.py index 1caf1cd..4ae361d 100644 --- a/revengai/models/models_response.py +++ b/revengai/models/models_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/nearest_neighbor.py b/revengai/models/nearest_neighbor.py index 5c23f29..0b0d2cd 100644 --- a/revengai/models/nearest_neighbor.py +++ b/revengai/models/nearest_neighbor.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/network_overview_dns.py b/revengai/models/network_overview_dns.py index 1e61d5e..f08a598 100644 --- a/revengai/models/network_overview_dns.py +++ b/revengai/models/network_overview_dns.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/network_overview_dns_answer.py b/revengai/models/network_overview_dns_answer.py index 8165bd0..a616a64 100644 --- a/revengai/models/network_overview_dns_answer.py +++ b/revengai/models/network_overview_dns_answer.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/network_overview_metadata.py b/revengai/models/network_overview_metadata.py index cc88727..637c014 100644 --- a/revengai/models/network_overview_metadata.py +++ b/revengai/models/network_overview_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/network_overview_response.py b/revengai/models/network_overview_response.py index 17d8743..df0ccdc 100644 --- a/revengai/models/network_overview_response.py +++ b/revengai/models/network_overview_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/order.py b/revengai/models/order.py index bad0980..fffbeca 100644 --- a/revengai/models/order.py +++ b/revengai/models/order.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/origin.py b/revengai/models/origin.py index 6eff097..c204ecf 100644 --- a/revengai/models/origin.py +++ b/revengai/models/origin.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/pagination_model.py b/revengai/models/pagination_model.py index 4f16bf6..94f631e 100644 --- a/revengai/models/pagination_model.py +++ b/revengai/models/pagination_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/params.py b/revengai/models/params.py index 0db9cc1..6084f9d 100644 --- a/revengai/models/params.py +++ b/revengai/models/params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/pdb_debug_model.py b/revengai/models/pdb_debug_model.py index 0f0eaa9..53bc5c7 100644 --- a/revengai/models/pdb_debug_model.py +++ b/revengai/models/pdb_debug_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/pe_model.py b/revengai/models/pe_model.py index f09b280..8fc942d 100644 --- a/revengai/models/pe_model.py +++ b/revengai/models/pe_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/platform.py b/revengai/models/platform.py index b0e5da6..d7fe5bd 100644 --- a/revengai/models/platform.py +++ b/revengai/models/platform.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/platform_options.py b/revengai/models/platform_options.py deleted file mode 100644 index 5c64ed5..0000000 --- a/revengai/models/platform_options.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import json -from enum import Enum -from typing_extensions import Self - - -class PlatformOptions(str, Enum): - """ - Custom enum for the platform options - """ - - """ - allowed enum values - """ - AUTO = 'Auto' - WINDOWS = 'windows' - LINUX = 'linux' - ANDROID = 'android' - MACOS = 'macos' - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlatformOptions from a JSON string""" - return cls(json.loads(json_str)) - - diff --git a/revengai/models/process.py b/revengai/models/process.py index add5178..cd84baa 100644 --- a/revengai/models/process.py +++ b/revengai/models/process.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_dump.py b/revengai/models/process_dump.py index f264203..1d86fc2 100644 --- a/revengai/models/process_dump.py +++ b/revengai/models/process_dump.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_dump_metadata.py b/revengai/models/process_dump_metadata.py index 2b5a9f5..18287dc 100644 --- a/revengai/models/process_dump_metadata.py +++ b/revengai/models/process_dump_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_dumps.py b/revengai/models/process_dumps.py index e925cf3..028e480 100644 --- a/revengai/models/process_dumps.py +++ b/revengai/models/process_dumps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_dumps_data.py b/revengai/models/process_dumps_data.py index e07262f..af9a92d 100644 --- a/revengai/models/process_dumps_data.py +++ b/revengai/models/process_dumps_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_registry.py b/revengai/models/process_registry.py index facd2d1..d4e4d4d 100644 --- a/revengai/models/process_registry.py +++ b/revengai/models/process_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/process_tree.py b/revengai/models/process_tree.py index 9de60bc..35e87f0 100644 --- a/revengai/models/process_tree.py +++ b/revengai/models/process_tree.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/queued_security_checks_task_response.py b/revengai/models/queued_security_checks_task_response.py index 5025ec1..1c4ff81 100644 --- a/revengai/models/queued_security_checks_task_response.py +++ b/revengai/models/queued_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/quick_search.py b/revengai/models/quick_search.py deleted file mode 100644 index 98a52d4..0000000 --- a/revengai/models/quick_search.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class QuickSearch(BaseModel): - """ - QuickSearch - """ # noqa: E501 - success: Optional[Any] = None - collections: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "collections"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of QuickSearch from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if collections (nullable) is None - # and model_fields_set contains the field - if self.collections is None and "collections" in self.model_fields_set: - _dict['collections'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of QuickSearch from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "collections": obj.get("collections") - }) - return _obj - - diff --git a/revengai/models/re_analysis_form.py b/revengai/models/re_analysis_form.py index 2632b79..e0bc04d 100644 --- a/revengai/models/re_analysis_form.py +++ b/revengai/models/re_analysis_form.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/recent.py b/revengai/models/recent.py index 836f03a..d0a8f88 100644 --- a/revengai/models/recent.py +++ b/revengai/models/recent.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/recent_analysis.py b/revengai/models/recent_analysis.py deleted file mode 100644 index 2f0bc51..0000000 --- a/revengai/models/recent_analysis.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class RecentAnalysis(BaseModel): - """ - RecentAnalysis - """ # noqa: E501 - success: Optional[Any] = None - analysis: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "analysis"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RecentAnalysis from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if analysis (nullable) is None - # and model_fields_set contains the field - if self.analysis is None and "analysis" in self.model_fields_set: - _dict['analysis'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RecentAnalysis from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "analysis": obj.get("analysis") - }) - return _obj - - diff --git a/revengai/models/recent_analysis_form.py b/revengai/models/recent_analysis_form.py deleted file mode 100644 index f09878a..0000000 --- a/revengai/models/recent_analysis_form.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from revengai.models.app_api_rest_v1_analyse_schema_status import AppApiRestV1AnalyseSchemaStatus -from typing import Optional, Set -from typing_extensions import Self - -class RecentAnalysisForm(BaseModel): - """ - Form for getting the n recent analysis - """ # noqa: E501 - status: Optional[AppApiRestV1AnalyseSchemaStatus] = None - scope: Optional[StrictStr] = 'ALL' - n: Optional[StrictInt] = 10 - __properties: ClassVar[List[str]] = ["status", "scope", "n"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RecentAnalysisForm from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RecentAnalysisForm from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "scope": obj.get("scope") if obj.get("scope") is not None else 'ALL', - "n": obj.get("n") if obj.get("n") is not None else 10 - }) - return _obj - - diff --git a/revengai/models/registry.py b/revengai/models/registry.py index 96b830f..92d7f09 100644 --- a/revengai/models/registry.py +++ b/revengai/models/registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/relative_binary_response.py b/revengai/models/relative_binary_response.py index 22fcdab..abbaba7 100644 --- a/revengai/models/relative_binary_response.py +++ b/revengai/models/relative_binary_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/rename.py b/revengai/models/rename.py deleted file mode 100644 index 2fdc40a..0000000 --- a/revengai/models/rename.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class Rename(BaseModel): - """ - Rename - """ # noqa: E501 - success: Optional[Any] = None - msg: Optional[Any] - __properties: ClassVar[List[str]] = ["success", "msg"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Rename from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if msg (nullable) is None - # and model_fields_set contains the field - if self.msg is None and "msg" in self.model_fields_set: - _dict['msg'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Rename from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "msg": obj.get("msg") - }) - return _obj - - diff --git a/revengai/models/sandbox_options.py b/revengai/models/sandbox_options.py index 94ae6ae..740278b 100644 --- a/revengai/models/sandbox_options.py +++ b/revengai/models/sandbox_options.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/sbom.py b/revengai/models/sbom.py index 7a70fb2..7a4c669 100644 --- a/revengai/models/sbom.py +++ b/revengai/models/sbom.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/sbom_package.py b/revengai/models/sbom_package.py index 750e29b..c29f2cb 100644 --- a/revengai/models/sbom_package.py +++ b/revengai/models/sbom_package.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/scrape_third_party_config.py b/revengai/models/scrape_third_party_config.py index 59baa38..a731ba2 100644 --- a/revengai/models/scrape_third_party_config.py +++ b/revengai/models/scrape_third_party_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/search_binary_ids.py b/revengai/models/search_binary_ids.py index f37072b..7fb011d 100644 --- a/revengai/models/search_binary_ids.py +++ b/revengai/models/search_binary_ids.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/search_function_ids.py b/revengai/models/search_function_ids.py index e88dc56..65baf03 100644 --- a/revengai/models/search_function_ids.py +++ b/revengai/models/search_function_ids.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/search_query.py b/revengai/models/search_query.py deleted file mode 100644 index 8c0c263..0000000 --- a/revengai/models/search_query.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class SearchQuery(BaseModel): - """ - SearchQuery - """ # noqa: E501 - success: Optional[Any] = None - query_results: Optional[Any] = None - __properties: ClassVar[List[str]] = ["success", "query_results"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SearchQuery from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if success (nullable) is None - # and model_fields_set contains the field - if self.success is None and "success" in self.model_fields_set: - _dict['success'] = None - - # set to None if query_results (nullable) is None - # and model_fields_set contains the field - if self.query_results is None and "query_results" in self.model_fields_set: - _dict['query_results'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SearchQuery from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "query_results": obj.get("query_results") - }) - return _obj - - diff --git a/revengai/models/section_model.py b/revengai/models/section_model.py index 7dd665a..ab5427a 100644 --- a/revengai/models/section_model.py +++ b/revengai/models/section_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/security_checks_response.py b/revengai/models/security_checks_response.py index 9f6f64c..24353cc 100644 --- a/revengai/models/security_checks_response.py +++ b/revengai/models/security_checks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/security_checks_result.py b/revengai/models/security_checks_result.py index 45a0fcc..a4227bc 100644 --- a/revengai/models/security_checks_result.py +++ b/revengai/models/security_checks_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/security_model.py b/revengai/models/security_model.py index 4e3a7da..b422b62 100644 --- a/revengai/models/security_model.py +++ b/revengai/models/security_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/severity_type.py b/revengai/models/severity_type.py index df3275a..b1a1ea7 100644 --- a/revengai/models/severity_type.py +++ b/revengai/models/severity_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/similar_functions_response.py b/revengai/models/similar_functions_response.py index 19b42df..f5a0f3e 100644 --- a/revengai/models/similar_functions_response.py +++ b/revengai/models/similar_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/single_code_certificate_model.py b/revengai/models/single_code_certificate_model.py index 9b05b9a..6f20a3b 100644 --- a/revengai/models/single_code_certificate_model.py +++ b/revengai/models/single_code_certificate_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/single_code_signature_model.py b/revengai/models/single_code_signature_model.py index 06e414c..36aebc2 100644 --- a/revengai/models/single_code_signature_model.py +++ b/revengai/models/single_code_signature_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/single_pdb_entry_model.py b/revengai/models/single_pdb_entry_model.py index fb23f3b..f121be7 100644 --- a/revengai/models/single_pdb_entry_model.py +++ b/revengai/models/single_pdb_entry_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/single_section_model.py b/revengai/models/single_section_model.py index 2c6b679..63bb193 100644 --- a/revengai/models/single_section_model.py +++ b/revengai/models/single_section_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/stack_variable.py b/revengai/models/stack_variable.py index 3bd8437..2e9eb78 100644 --- a/revengai/models/stack_variable.py +++ b/revengai/models/stack_variable.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/status_input.py b/revengai/models/status_input.py index f6efb16..11eb07c 100644 --- a/revengai/models/status_input.py +++ b/revengai/models/status_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/status_output.py b/revengai/models/status_output.py index 0482e1e..43a94dc 100644 --- a/revengai/models/status_output.py +++ b/revengai/models/status_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/string_functions.py b/revengai/models/string_functions.py index 782a679..ffbc065 100644 --- a/revengai/models/string_functions.py +++ b/revengai/models/string_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/structure.py b/revengai/models/structure.py index 35212de..ae1cac6 100644 --- a/revengai/models/structure.py +++ b/revengai/models/structure.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/structure_member.py b/revengai/models/structure_member.py index e67df4b..554557f 100644 --- a/revengai/models/structure_member.py +++ b/revengai/models/structure_member.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/symbols.py b/revengai/models/symbols.py index 0830e02..28e94bc 100644 --- a/revengai/models/symbols.py +++ b/revengai/models/symbols.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/symbols_info.py b/revengai/models/symbols_info.py index 5554796..acef945 100644 --- a/revengai/models/symbols_info.py +++ b/revengai/models/symbols_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_input.py b/revengai/models/tag.py similarity index 91% rename from revengai/models/tag_input.py rename to revengai/models/tag.py index a6f35e4..60f8daf 100644 --- a/revengai/models/tag_input.py +++ b/revengai/models/tag.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class TagInput(BaseModel): +class Tag(BaseModel): """ - TagInput + Tag """ # noqa: E501 name: StrictStr __properties: ClassVar[List[str]] = ["name"] @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagInput from a JSON string""" + """Create an instance of Tag from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagInput from a dict""" + """Create an instance of Tag from a dict""" if obj is None: return None diff --git a/revengai/models/tag_confidence_body.py b/revengai/models/tag_confidence_body.py index 6c74563..00db0a2 100644 --- a/revengai/models/tag_confidence_body.py +++ b/revengai/models/tag_confidence_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_origin_box_plot_confidence.py b/revengai/models/tag_origin_box_plot_confidence.py index 14bcb82..6ce9efb 100644 --- a/revengai/models/tag_origin_box_plot_confidence.py +++ b/revengai/models/tag_origin_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_output.py b/revengai/models/tag_output.py deleted file mode 100644 index 2373a8e..0000000 --- a/revengai/models/tag_output.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class TagOutput(BaseModel): - """ - TagOutput - """ # noqa: E501 - tag: StrictStr = Field(description="The name of the tag") - origin: StrictStr = Field(description="Where the tag originates from") - __properties: ClassVar[List[str]] = ["tag", "origin"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TagOutput from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TagOutput from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "tag": obj.get("tag"), - "origin": obj.get("origin") - }) - return _obj - - diff --git a/revengai/models/tag_response.py b/revengai/models/tag_response.py index 1230844..e10a578 100644 --- a/revengai/models/tag_response.py +++ b/revengai/models/tag_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_search_response.py b/revengai/models/tag_search_response.py index bce6b69..f2b332e 100644 --- a/revengai/models/tag_search_response.py +++ b/revengai/models/tag_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tag_search_result.py b/revengai/models/tag_search_result.py index 5fd4158..0fa3b56 100644 --- a/revengai/models/tag_search_result.py +++ b/revengai/models/tag_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/tags.py b/revengai/models/tags.py index 2b73fea..2d58b86 100644 --- a/revengai/models/tags.py +++ b/revengai/models/tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/task_response.py b/revengai/models/task_response.py index 954ac4d..493c9a8 100644 --- a/revengai/models/task_response.py +++ b/revengai/models/task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/task_status.py b/revengai/models/task_status.py index 1ca9456..bfb6cfb 100644 --- a/revengai/models/task_status.py +++ b/revengai/models/task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/threat_score_function_body.py b/revengai/models/threat_score_function_body.py index 9aa6091..7f35b26 100644 --- a/revengai/models/threat_score_function_body.py +++ b/revengai/models/threat_score_function_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/timestamp_model.py b/revengai/models/timestamp_model.py index f21e455..005b06d 100644 --- a/revengai/models/timestamp_model.py +++ b/revengai/models/timestamp_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps.py b/revengai/models/ttps.py index 5259f9f..5722e1f 100644 --- a/revengai/models/ttps.py +++ b/revengai/models/ttps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps_attack.py b/revengai/models/ttps_attack.py index be1368e..e62becb 100644 --- a/revengai/models/ttps_attack.py +++ b/revengai/models/ttps_attack.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps_data.py b/revengai/models/ttps_data.py index 4cf2f16..f8d3452 100644 --- a/revengai/models/ttps_data.py +++ b/revengai/models/ttps_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps_element.py b/revengai/models/ttps_element.py index 61cd1de..897213a 100644 --- a/revengai/models/ttps_element.py +++ b/revengai/models/ttps_element.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/ttps_occurance.py b/revengai/models/ttps_occurance.py index dd29fbe..a52ed4b 100644 --- a/revengai/models/ttps_occurance.py +++ b/revengai/models/ttps_occurance.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/type_definition.py b/revengai/models/type_definition.py index 23466a8..2efc5d2 100644 --- a/revengai/models/type_definition.py +++ b/revengai/models/type_definition.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/search_form.py b/revengai/models/unstrip_request.py similarity index 62% rename from revengai/models/search_form.py rename to revengai/models/unstrip_request.py index 0634145..f64034d 100644 --- a/revengai/models/search_form.py +++ b/revengai/models/unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -class SearchForm(BaseModel): +class UnstripRequest(BaseModel): """ - SearchForm + UnstripRequest """ # noqa: E501 - sha_256_hash: Optional[StrictStr] = None - binary_name: Optional[StrictStr] = None - collection_name: Optional[StrictStr] = None - status: Optional[StrictStr] = None - scope: Optional[StrictStr] = None - limit: Optional[StrictStr] = '50' - __properties: ClassVar[List[str]] = ["sha_256_hash", "binary_name", "collection_name", "status", "scope", "limit"] + min_similarity: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=0.9, description="Minimum similarity expected for a match, default is 0.9") + limit: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=1, description="Maximum number of matches to return, default is 1, maximum is 10") + apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the matched function names to the target binary, default is False") + __properties: ClassVar[List[str]] = ["min_similarity", "limit", "apply"] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SearchForm from a JSON string""" + """Create an instance of UnstripRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SearchForm from a dict""" + """Create an instance of UnstripRequest from a dict""" if obj is None: return None @@ -85,12 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "sha_256_hash": obj.get("sha_256_hash"), - "binary_name": obj.get("binary_name"), - "collection_name": obj.get("collection_name"), - "status": obj.get("status"), - "scope": obj.get("scope"), - "limit": obj.get("limit") if obj.get("limit") is not None else '50' + "min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 0.9, + "limit": obj.get("limit") if obj.get("limit") is not None else 1, + "apply": obj.get("apply") if obj.get("apply") is not None else False }) return _obj diff --git a/revengai/models/update_function_data_types.py b/revengai/models/update_function_data_types.py index b9e273d..0ccdf6c 100644 --- a/revengai/models/update_function_data_types.py +++ b/revengai/models/update_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/scope.py b/revengai/models/upload_file_type.py similarity index 65% rename from revengai/models/scope.py rename to revengai/models/upload_file_type.py index c073a50..8408cc2 100644 --- a/revengai/models/scope.py +++ b/revengai/models/upload_file_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,22 +18,22 @@ from typing_extensions import Self -class Scope(str, Enum): +class UploadFileType(str, Enum): """ - Custom enum for the binary scope + UploadFileType """ """ allowed enum values """ - PRIVATE = 'PRIVATE' - PUBLIC = 'PUBLIC' - TEAM = 'TEAM' - ALL = 'ALL' + BINARY = 'BINARY' + DEBUG = 'DEBUG' + PACKED = 'PACKED' + FIRMWARE = 'FIRMWARE' @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of Scope from a JSON string""" + """Create an instance of UploadFileType from a JSON string""" return cls(json.loads(json_str)) diff --git a/revengai/models/user_boundaries.py b/revengai/models/upload_response.py similarity index 75% rename from revengai/models/user_boundaries.py rename to revengai/models/upload_response.py index 04082a9..02f5f95 100644 --- a/revengai/models/user_boundaries.py +++ b/revengai/models/upload_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,19 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List +from revengai.models.upload_file_type import UploadFileType from typing import Optional, Set from typing_extensions import Self -class UserBoundaries(BaseModel): +class UploadResponse(BaseModel): """ - UserBoundaries + UploadResponse """ # noqa: E501 - name: StrictStr - start_addr: StrictInt - end_addr: StrictInt - __properties: ClassVar[List[str]] = ["name", "start_addr", "end_addr"] + sha_256_hash: StrictStr + file_type: UploadFileType + filename: StrictStr + __properties: ClassVar[List[str]] = ["sha_256_hash", "file_type", "filename"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserBoundaries from a JSON string""" + """Create an instance of UploadResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserBoundaries from a dict""" + """Create an instance of UploadResponse from a dict""" if obj is None: return None @@ -82,9 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), - "start_addr": obj.get("start_addr"), - "end_addr": obj.get("end_addr") + "sha_256_hash": obj.get("sha_256_hash"), + "file_type": obj.get("file_type"), + "filename": obj.get("filename") }) return _obj diff --git a/revengai/models/upsert_ai_decomplation_rating_request.py b/revengai/models/upsert_ai_decomplation_rating_request.py index dff92ed..148ab32 100644 --- a/revengai/models/upsert_ai_decomplation_rating_request.py +++ b/revengai/models/upsert_ai_decomplation_rating_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/user_activity_response.py b/revengai/models/user_activity_response.py index f9c1237..56a1a7d 100644 --- a/revengai/models/user_activity_response.py +++ b/revengai/models/user_activity_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/vulnerabilities.py b/revengai/models/vulnerabilities.py index bac0a7a..ff53851 100644 --- a/revengai/models/vulnerabilities.py +++ b/revengai/models/vulnerabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/vulnerability.py b/revengai/models/vulnerability.py index b52564e..3969fe3 100644 --- a/revengai/models/vulnerability.py +++ b/revengai/models/vulnerability.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/vulnerability_type.py b/revengai/models/vulnerability_type.py index 5dd5c33..0222851 100644 --- a/revengai/models/vulnerability_type.py +++ b/revengai/models/vulnerability_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/models/workspace.py b/revengai/models/workspace.py index e7012c7..f7d0c50 100644 --- a/revengai/models/workspace.py +++ b/revengai/models/workspace.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/rest.py b/revengai/rest.py index 1389fc4..831e07a 100644 --- a/revengai/rest.py +++ b/revengai/rest.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/test/__init__.py b/revengai/test/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/revengai/test/test_ai_decompilation_rating.py b/revengai/test/test_ai_decompilation_rating.py deleted file mode 100644 index 7ecfceb..0000000 --- a/revengai/test/test_ai_decompilation_rating.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.ai_decompilation_rating import AiDecompilationRating - -class TestAiDecompilationRating(unittest.TestCase): - """AiDecompilationRating unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAiDecompilationRating(self): - """Test AiDecompilationRating""" - # inst = AiDecompilationRating() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analyses_comments_api.py b/revengai/test/test_analyses_comments_api.py deleted file mode 100644 index fd2c276..0000000 --- a/revengai/test/test_analyses_comments_api.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.analyses_comments_api import AnalysesCommentsApi - - -class TestAnalysesCommentsApi(unittest.TestCase): - """AnalysesCommentsApi unit test stubs""" - - def setUp(self) -> None: - self.api = AnalysesCommentsApi() - - def tearDown(self) -> None: - pass - - def test_create_analysis_comment(self) -> None: - """Test case for create_analysis_comment - - Create a comment for this analysis - """ - pass - - def test_delete_analysis_comment(self) -> None: - """Test case for delete_analysis_comment - - Delete a comment - """ - pass - - def test_get_analysis_comments(self) -> None: - """Test case for get_analysis_comments - - Get comments for this analysis - """ - pass - - def test_update_analysis_comment(self) -> None: - """Test case for update_analysis_comment - - Update a comment - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analyses_core_api.py b/revengai/test/test_analyses_core_api.py deleted file mode 100644 index 8b06a76..0000000 --- a/revengai/test/test_analyses_core_api.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.analyses_core_api import AnalysesCoreApi - - -class TestAnalysesCoreApi(unittest.TestCase): - """AnalysesCoreApi unit test stubs""" - - def setUp(self) -> None: - self.api = AnalysesCoreApi() - - def tearDown(self) -> None: - pass - - def test_create_analysis(self) -> None: - """Test case for create_analysis - - Create Analysis - """ - pass - - def test_delete_analysis(self) -> None: - """Test case for delete_analysis - - Delete Analysis - """ - pass - - def test_find_similar_functions_batch(self) -> None: - """Test case for find_similar_functions_batch - - Batch Symbol ANN using Analysis ID - """ - pass - - def test_get_analysis_basic_info(self) -> None: - """Test case for get_analysis_basic_info - - Gets basic analysis information - """ - pass - - def test_get_analysis_basic_info_deprecated(self) -> None: - """Test case for get_analysis_basic_info_deprecated - - Gets basic analysis information - """ - pass - - def test_get_analysis_logs(self) -> None: - """Test case for get_analysis_logs - - Gets the logs of an analysis - """ - pass - - def test_get_analysis_params(self) -> None: - """Test case for get_analysis_params - - Gets analysis param information - """ - pass - - def test_get_analysis_status(self) -> None: - """Test case for get_analysis_status - - Gets the status of an analysis - """ - pass - - def test_get_binary_ann(self) -> None: - """Test case for get_binary_ann - - Binary Ann - """ - pass - - def test_get_symbol_info_for_binary(self) -> None: - """Test case for get_symbol_info_for_binary - - Gets the symbol information of a binary - """ - pass - - def test_list_analyses(self) -> None: - """Test case for list_analyses - - Gets the most recent analyses - """ - pass - - def test_lookup_binary_id(self) -> None: - """Test case for lookup_binary_id - - Gets the analysis ID from binary ID - """ - pass - - def test_requeue_analysis(self) -> None: - """Test case for requeue_analysis - - Requeue Analysis - """ - pass - - def test_update_analysis(self) -> None: - """Test case for update_analysis - - Update Analysis - """ - pass - - def test_update_analysis_tags(self) -> None: - """Test case for update_analysis_tags - - Update Analysis Tags - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analyses_dynamic_execution_api.py b/revengai/test/test_analyses_dynamic_execution_api.py deleted file mode 100644 index 62730d7..0000000 --- a/revengai/test/test_analyses_dynamic_execution_api.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.analyses_dynamic_execution_api import AnalysesDynamicExecutionApi - - -class TestAnalysesDynamicExecutionApi(unittest.TestCase): - """AnalysesDynamicExecutionApi unit test stubs""" - - def setUp(self) -> None: - self.api = AnalysesDynamicExecutionApi() - - def tearDown(self) -> None: - pass - - def test_get_dynamic_execution_status(self) -> None: - """Test case for get_dynamic_execution_status - - Get the status of a dynamic execution task - """ - pass - - def test_get_network_overview(self) -> None: - """Test case for get_network_overview - - Get the dynamic execution results for network overview - """ - pass - - def test_get_process_dump(self) -> None: - """Test case for get_process_dump - - Get the dynamic execution results for a specific process dump - """ - pass - - def test_get_process_dumps(self) -> None: - """Test case for get_process_dumps - - Get the dynamic execution results for process dumps - """ - pass - - def test_get_process_registry(self) -> None: - """Test case for get_process_registry - - Get the dynamic execution results for process registry - """ - pass - - def test_get_process_tree(self) -> None: - """Test case for get_process_tree - - Get the dynamic execution results for process tree - """ - pass - - def test_get_ttps(self) -> None: - """Test case for get_ttps - - Get the dynamic execution results for ttps - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analyses_results_metadata_api.py b/revengai/test/test_analyses_results_metadata_api.py deleted file mode 100644 index 331873b..0000000 --- a/revengai/test/test_analyses_results_metadata_api.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.analyses_results_metadata_api import AnalysesResultsMetadataApi - - -class TestAnalysesResultsMetadataApi(unittest.TestCase): - """AnalysesResultsMetadataApi unit test stubs""" - - def setUp(self) -> None: - self.api = AnalysesResultsMetadataApi() - - def tearDown(self) -> None: - pass - - def test_get_capabilities(self) -> None: - """Test case for get_capabilities - - Gets the capabilities from the analysis - """ - pass - - def test_get_capabilities_deprecated(self) -> None: - """Test case for get_capabilities_deprecated - - Gets the capabilities from the analysis - """ - pass - - def test_get_communities(self) -> None: - """Test case for get_communities - - Gets the communities found in the analysis - """ - pass - - def test_get_communities_deprecated(self) -> None: - """Test case for get_communities_deprecated - - Gets the communities found in the analysis - """ - pass - - def test_get_functions_list(self) -> None: - """Test case for get_functions_list - - Gets functions from analysis - """ - pass - - def test_get_functions_list_deprecated(self) -> None: - """Test case for get_functions_list_deprecated - - Gets functions from analysis - """ - pass - - def test_get_pdf(self) -> None: - """Test case for get_pdf - - Gets the PDF found in the analysis - """ - pass - - def test_get_pdf_deprecated(self) -> None: - """Test case for get_pdf_deprecated - - Gets the PDF found in the analysis - """ - pass - - def test_get_sbom(self) -> None: - """Test case for get_sbom - - Gets the software-bill-of-materials (SBOM) found in the analysis - """ - pass - - def test_get_sbom_deprecated(self) -> None: - """Test case for get_sbom_deprecated - - Gets the software-bill-of-materials (SBOM) found in the analysis - """ - pass - - def test_get_tags(self) -> None: - """Test case for get_tags - - Get function tags with maliciousness score - """ - pass - - def test_get_tags_deprecated(self) -> None: - """Test case for get_tags_deprecated - - Gets tags for an analysis - """ - pass - - def test_get_threat_score(self) -> None: - """Test case for get_threat_score - - Gets the threat score found in the analysis - """ - pass - - def test_get_threat_score_deprecated(self) -> None: - """Test case for get_threat_score_deprecated - - Gets the threat score found in the analysis - """ - pass - - def test_get_vulnerabilities(self) -> None: - """Test case for get_vulnerabilities - - Gets the vulnerabilities found in the analysis - """ - pass - - def test_get_vulnerabilities_deprecated(self) -> None: - """Test case for get_vulnerabilities_deprecated - - Gets the vulnerabilities found in the analysis - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analyses_security_checks_api.py b/revengai/test/test_analyses_security_checks_api.py deleted file mode 100644 index 91a91da..0000000 --- a/revengai/test/test_analyses_security_checks_api.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.analyses_security_checks_api import AnalysesSecurityChecksApi - - -class TestAnalysesSecurityChecksApi(unittest.TestCase): - """AnalysesSecurityChecksApi unit test stubs""" - - def setUp(self) -> None: - self.api = AnalysesSecurityChecksApi() - - def tearDown(self) -> None: - pass - - def test_create_scurity_checks_task(self) -> None: - """Test case for create_scurity_checks_task - - Queues a security check process - """ - pass - - def test_get_security_checks(self) -> None: - """Test case for get_security_checks - - Get Security Checks - """ - pass - - def test_get_security_checks_task_status(self) -> None: - """Test case for get_security_checks_task_status - - Check the status of a security check process - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_access_info.py b/revengai/test/test_analysis_access_info.py deleted file mode 100644 index 7d837bc..0000000 --- a/revengai/test/test_analysis_access_info.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_access_info import AnalysisAccessInfo - -class TestAnalysisAccessInfo(unittest.TestCase): - """AnalysisAccessInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisAccessInfo: - """Test AnalysisAccessInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisAccessInfo` - """ - model = AnalysisAccessInfo() - if include_optional: - return AnalysisAccessInfo( - owner = True, - username = '' - ) - else: - return AnalysisAccessInfo( - owner = True, - username = '', - ) - """ - - def testAnalysisAccessInfo(self): - """Test AnalysisAccessInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_config.py b/revengai/test/test_analysis_config.py deleted file mode 100644 index 98a36b1..0000000 --- a/revengai/test/test_analysis_config.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_config import AnalysisConfig - -class TestAnalysisConfig(unittest.TestCase): - """AnalysisConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisConfig: - """Test AnalysisConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisConfig` - """ - model = AnalysisConfig() - if include_optional: - return AnalysisConfig( - scrape_third_party_config = revengai.models.scrape_third_party_config.ScrapeThirdPartyConfig( - enabled = True, ), - generate_cves = True, - generate_sbom = True, - generate_capabilities = True, - no_cache = True, - advanced_analysis = True, - sandbox_config = revengai.models.sandbox_options.SandboxOptions( - enabled = True, - command_line_args = '', ) - ) - else: - return AnalysisConfig( - ) - """ - - def testAnalysisConfig(self): - """Test AnalysisConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_create_request.py b/revengai/test/test_analysis_create_request.py deleted file mode 100644 index 832ea75..0000000 --- a/revengai/test/test_analysis_create_request.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_create_request import AnalysisCreateRequest - -class TestAnalysisCreateRequest(unittest.TestCase): - """AnalysisCreateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisCreateRequest: - """Test AnalysisCreateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisCreateRequest` - """ - model = AnalysisCreateRequest() - if include_optional: - return AnalysisCreateRequest( - filename = '', - sha_256_hash = '', - tags = [ - revengai.models.tag.Tag( - name = '', ) - ], - analysis_scope = 'PRIVATE', - symbols = revengai.models.symbols.Symbols( - base_address = 56, - function_boundaries = [ - revengai.models.function_boundary.FunctionBoundary( - name = '', - start_address = 56, - end_address = 56, ) - ], ), - debug_hash = '', - analysis_config = revengai.models.analysis_config.AnalysisConfig( - scrape_third_party_config = revengai.models.scrape_third_party_config.ScrapeThirdPartyConfig( - enabled = True, ), - generate_cves = True, - generate_sbom = True, - generate_capabilities = True, - no_cache = True, - advanced_analysis = True, - sandbox_config = revengai.models.sandbox_options.SandboxOptions( - enabled = True, - command_line_args = '', ), ), - binary_config = revengai.models.binary_config.BinaryConfig( - isa = 'x86', - platform = 'linux', - file_format = 'pe', ) - ) - else: - return AnalysisCreateRequest( - filename = '', - sha_256_hash = '', - ) - """ - - def testAnalysisCreateRequest(self): - """Test AnalysisCreateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_create_response.py b/revengai/test/test_analysis_create_response.py deleted file mode 100644 index 0a93361..0000000 --- a/revengai/test/test_analysis_create_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_create_response import AnalysisCreateResponse - -class TestAnalysisCreateResponse(unittest.TestCase): - """AnalysisCreateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisCreateResponse: - """Test AnalysisCreateResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisCreateResponse` - """ - model = AnalysisCreateResponse() - if include_optional: - return AnalysisCreateResponse( - analysis_id = 56, - binary_id = 56 - ) - else: - return AnalysisCreateResponse( - analysis_id = 56, - binary_id = 56, - ) - """ - - def testAnalysisCreateResponse(self): - """Test AnalysisCreateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_detail_response.py b/revengai/test/test_analysis_detail_response.py deleted file mode 100644 index f9bbf95..0000000 --- a/revengai/test/test_analysis_detail_response.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_detail_response import AnalysisDetailResponse - -class TestAnalysisDetailResponse(unittest.TestCase): - """AnalysisDetailResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisDetailResponse: - """Test AnalysisDetailResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisDetailResponse` - """ - model = AnalysisDetailResponse() - if include_optional: - return AnalysisDetailResponse( - access = revengai.models.analysis_access_info.AnalysisAccessInfo( - owner = True, - username = '', ), - analysis_id = 56, - analysis_scope = '', - architecture = '', - binary_dynamic = True, - binary_format = '', - binary_name = '', - binary_size = 56, - binary_type = '', - creation = '', - debug = True, - model_name = '', - sbom = { - 'key' : null - }, - sha_256_hash = '' - ) - else: - return AnalysisDetailResponse( - access = revengai.models.analysis_access_info.AnalysisAccessInfo( - owner = True, - username = '', ), - analysis_id = 56, - analysis_scope = '', - architecture = '', - binary_dynamic = True, - binary_format = '', - binary_name = '', - binary_size = 56, - binary_type = '', - creation = '', - debug = True, - model_name = '', - sha_256_hash = '', - ) - """ - - def testAnalysisDetailResponse(self): - """Test AnalysisDetailResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_form.py b/revengai/test/test_analysis_form.py deleted file mode 100644 index ce752f9..0000000 --- a/revengai/test/test_analysis_form.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_form import AnalysisForm - -class TestAnalysisForm(unittest.TestCase): - """AnalysisForm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisForm: - """Test AnalysisForm - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisForm` - """ - model = AnalysisForm() - if include_optional: - return AnalysisForm( - model_name = 'binnet-0.5-x86-windows', - platform_options = 'Auto', - isa_options = 'Auto', - file_options = 'Auto', - dynamic_execution = True, - tags = [ - '' - ], - binary_scope = 'PRIVATE', - symbols = revengai.models.symbols.Symbols( - base_addr = 56, - functions = [ - revengai.models.user_boundaries.UserBoundaries( - name = '', - start_addr = 56, - end_addr = 56, ) - ], ), - file_name = 'empty', - command_line_args = '', - priority = 56, - sha_256_hash = '', - debug_hash = '', - size_in_bytes = 56, - skip_scraping = True, - skip_cves = True, - skip_sbom = True, - skip_capabilities = True, - ignore_cache = True, - advanced_analysis = True - ) - else: - return AnalysisForm( - model_name = 'binnet-0.5-x86-windows', - size_in_bytes = 56, - ) - """ - - def testAnalysisForm(self): - """Test AnalysisForm""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_functions.py b/revengai/test/test_analysis_functions.py deleted file mode 100644 index b542901..0000000 --- a/revengai/test/test_analysis_functions.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_functions import AnalysisFunctions - -class TestAnalysisFunctions(unittest.TestCase): - """AnalysisFunctions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisFunctions: - """Test AnalysisFunctions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisFunctions` - """ - model = AnalysisFunctions() - if include_optional: - return AnalysisFunctions( - functions = [ - revengai.models.function.Function( - function_id = 56, - function_name = '', - function_vaddr = 56, - function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], ) - ] - ) - else: - return AnalysisFunctions( - functions = [ - revengai.models.function.Function( - function_id = 56, - function_name = '', - function_vaddr = 56, - function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], ) - ], - ) - """ - - def testAnalysisFunctions(self): - """Test AnalysisFunctions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_record.py b/revengai/test/test_analysis_record.py deleted file mode 100644 index bd48a9e..0000000 --- a/revengai/test/test_analysis_record.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_record import AnalysisRecord - -class TestAnalysisRecord(unittest.TestCase): - """AnalysisRecord unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisRecord: - """Test AnalysisRecord - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisRecord` - """ - model = AnalysisRecord() - if include_optional: - return AnalysisRecord( - analysis_id = 56, - analysis_scope = '', - binary_id = 56, - model_id = 56, - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, - binary_name = '', - sha_256_hash = '', - binary_size = 56, - username = '', - dynamic_execution_status = 'PENDING', - dynamic_execution_task_id = 56 - ) - else: - return AnalysisRecord( - analysis_id = 56, - analysis_scope = '', - binary_id = 56, - model_id = 56, - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, - binary_name = '', - sha_256_hash = '', - binary_size = 56, - username = '', - ) - """ - - def testAnalysisRecord(self): - """Test AnalysisRecord""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_scope.py b/revengai/test/test_analysis_scope.py deleted file mode 100644 index cea9e3f..0000000 --- a/revengai/test/test_analysis_scope.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_scope import AnalysisScope - -class TestAnalysisScope(unittest.TestCase): - """AnalysisScope unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAnalysisScope(self): - """Test AnalysisScope""" - # inst = AnalysisScope() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_strings_response.py b/revengai/test/test_analysis_strings_response.py deleted file mode 100644 index 7a2c54a..0000000 --- a/revengai/test/test_analysis_strings_response.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_strings_response import AnalysisStringsResponse - -class TestAnalysisStringsResponse(unittest.TestCase): - """AnalysisStringsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisStringsResponse: - """Test AnalysisStringsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisStringsResponse` - """ - model = AnalysisStringsResponse() - if include_optional: - return AnalysisStringsResponse( - strings = [ - revengai.models.string_functions.StringFunctions( - value = '', - functions = [ - revengai.models.function.Function( - function_id = 56, - function_vaddr = 56, ) - ], ) - ], - total_strings = 56 - ) - else: - return AnalysisStringsResponse( - strings = [ - revengai.models.string_functions.StringFunctions( - value = '', - functions = [ - revengai.models.function.Function( - function_id = 56, - function_vaddr = 56, ) - ], ) - ], - total_strings = 56, - ) - """ - - def testAnalysisStringsResponse(self): - """Test AnalysisStringsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_threat_score_data.py b/revengai/test/test_analysis_threat_score_data.py deleted file mode 100644 index 2aa34a3..0000000 --- a/revengai/test/test_analysis_threat_score_data.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_threat_score_data import AnalysisThreatScoreData - -class TestAnalysisThreatScoreData(unittest.TestCase): - """AnalysisThreatScoreData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisThreatScoreData: - """Test AnalysisThreatScoreData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisThreatScoreData` - """ - model = AnalysisThreatScoreData() - if include_optional: - return AnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56 - ) - else: - return AnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56, - ) - """ - - def testAnalysisThreatScoreData(self): - """Test AnalysisThreatScoreData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_update_request.py b/revengai/test/test_analysis_update_request.py deleted file mode 100644 index 2952100..0000000 --- a/revengai/test/test_analysis_update_request.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_update_request import AnalysisUpdateRequest - -class TestAnalysisUpdateRequest(unittest.TestCase): - """AnalysisUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisUpdateRequest: - """Test AnalysisUpdateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisUpdateRequest` - """ - model = AnalysisUpdateRequest() - if include_optional: - return AnalysisUpdateRequest( - binary_name = '', - analysis_scope = 'PUBLIC' - ) - else: - return AnalysisUpdateRequest( - ) - """ - - def testAnalysisUpdateRequest(self): - """Test AnalysisUpdateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_update_tags_request.py b/revengai/test/test_analysis_update_tags_request.py deleted file mode 100644 index 314d98e..0000000 --- a/revengai/test/test_analysis_update_tags_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsRequest - -class TestAnalysisUpdateTagsRequest(unittest.TestCase): - """AnalysisUpdateTagsRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisUpdateTagsRequest: - """Test AnalysisUpdateTagsRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisUpdateTagsRequest` - """ - model = AnalysisUpdateTagsRequest() - if include_optional: - return AnalysisUpdateTagsRequest( - tags = [ - '' - ] - ) - else: - return AnalysisUpdateTagsRequest( - tags = [ - '' - ], - ) - """ - - def testAnalysisUpdateTagsRequest(self): - """Test AnalysisUpdateTagsRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_analysis_update_tags_response.py b/revengai/test/test_analysis_update_tags_response.py deleted file mode 100644 index 86d4134..0000000 --- a/revengai/test/test_analysis_update_tags_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.analysis_update_tags_response import AnalysisUpdateTagsResponse - -class TestAnalysisUpdateTagsResponse(unittest.TestCase): - """AnalysisUpdateTagsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AnalysisUpdateTagsResponse: - """Test AnalysisUpdateTagsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AnalysisUpdateTagsResponse` - """ - model = AnalysisUpdateTagsResponse() - if include_optional: - return AnalysisUpdateTagsResponse( - tags = [ - revengai.models.tag_response.TagResponse( - name = '', - origin = '', ) - ] - ) - else: - return AnalysisUpdateTagsResponse( - tags = [ - revengai.models.tag_response.TagResponse( - name = '', - origin = '', ) - ], - ) - """ - - def testAnalysisUpdateTagsResponse(self): - """Test AnalysisUpdateTagsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_ann_function.py b/revengai/test/test_ann_function.py deleted file mode 100644 index 8dc685b..0000000 --- a/revengai/test/test_ann_function.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.ann_function import ANNFunction - -class TestANNFunction(unittest.TestCase): - """ANNFunction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ANNFunction: - """Test ANNFunction - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ANNFunction` - """ - model = ANNFunction() - if include_optional: - return ANNFunction( - limit = 56, - distance = 1.337, - analysis_search_ids = [ - 56 - ], - collection_search_ids = [ - 56 - ], - search_binary_ids = None, - search_function_ids = None, - debug_only = True - ) - else: - return ANNFunction( - ) - """ - - def testANNFunction(self): - """Test ANNFunction""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_ann_input.py b/revengai/test/test_ann_input.py deleted file mode 100644 index d4bb589..0000000 --- a/revengai/test/test_ann_input.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.ann_input import ANNInput - -class TestANNInput(unittest.TestCase): - """ANNInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ANNInput: - """Test ANNInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ANNInput` - """ - model = ANNInput() - if include_optional: - return ANNInput( - result_per_function = 56, - debug_mode = True, - distance = 1.337, - collection = [ - '' - ] - ) - else: - return ANNInput( - ) - """ - - def testANNInput(self): - """Test ANNInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py b/revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py deleted file mode 100644 index 4b908b6..0000000 --- a/revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v1_analyse_schema_model_name import AppApiRestV1AnalyseSchemaModelName - -class TestAppApiRestV1AnalyseSchemaModelName(unittest.TestCase): - """AppApiRestV1AnalyseSchemaModelName unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppApiRestV1AnalyseSchemaModelName(self): - """Test AppApiRestV1AnalyseSchemaModelName""" - # inst = AppApiRestV1AnalyseSchemaModelName() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v1_analyse_schema_status.py b/revengai/test/test_app_api_rest_v1_analyse_schema_status.py deleted file mode 100644 index e4c1a79..0000000 --- a/revengai/test/test_app_api_rest_v1_analyse_schema_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v1_analyse_schema_status import AppApiRestV1AnalyseSchemaStatus - -class TestAppApiRestV1AnalyseSchemaStatus(unittest.TestCase): - """AppApiRestV1AnalyseSchemaStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppApiRestV1AnalyseSchemaStatus(self): - """Test AppApiRestV1AnalyseSchemaStatus""" - # inst = AppApiRestV1AnalyseSchemaStatus() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py b/revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py deleted file mode 100644 index ac6c1ef..0000000 --- a/revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v1_analyse_schema_symbols import AppApiRestV1AnalyseSchemaSymbols - -class TestAppApiRestV1AnalyseSchemaSymbols(unittest.TestCase): - """AppApiRestV1AnalyseSchemaSymbols unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV1AnalyseSchemaSymbols: - """Test AppApiRestV1AnalyseSchemaSymbols - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV1AnalyseSchemaSymbols` - """ - model = AppApiRestV1AnalyseSchemaSymbols() - if include_optional: - return AppApiRestV1AnalyseSchemaSymbols( - base_addr = 56, - functions = [ - revengai.models.user_boundaries.UserBoundaries( - name = '', - start_addr = 56, - end_addr = 56, ) - ] - ) - else: - return AppApiRestV1AnalyseSchemaSymbols( - ) - """ - - def testAppApiRestV1AnalyseSchemaSymbols(self): - """Test AppApiRestV1AnalyseSchemaSymbols""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py b/revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py deleted file mode 100644 index 30c4367..0000000 --- a/revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v1_analysis_info_responses_logs import AppApiRestV1AnalysisInfoResponsesLogs - -class TestAppApiRestV1AnalysisInfoResponsesLogs(unittest.TestCase): - """AppApiRestV1AnalysisInfoResponsesLogs unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV1AnalysisInfoResponsesLogs: - """Test AppApiRestV1AnalysisInfoResponsesLogs - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV1AnalysisInfoResponsesLogs` - """ - model = AppApiRestV1AnalysisInfoResponsesLogs() - if include_optional: - return AppApiRestV1AnalysisInfoResponsesLogs( - success = None, - logs = None - ) - else: - return AppApiRestV1AnalysisInfoResponsesLogs( - logs = None, - ) - """ - - def testAppApiRestV1AnalysisInfoResponsesLogs(self): - """Test AppApiRestV1AnalysisInfoResponsesLogs""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py b/revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py deleted file mode 100644 index 6764919..0000000 --- a/revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v1_analysis_info_schema_function_rename import AppApiRestV1AnalysisInfoSchemaFunctionRename - -class TestAppApiRestV1AnalysisInfoSchemaFunctionRename(unittest.TestCase): - """AppApiRestV1AnalysisInfoSchemaFunctionRename unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV1AnalysisInfoSchemaFunctionRename: - """Test AppApiRestV1AnalysisInfoSchemaFunctionRename - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV1AnalysisInfoSchemaFunctionRename` - """ - model = AppApiRestV1AnalysisInfoSchemaFunctionRename() - if include_optional: - return AppApiRestV1AnalysisInfoSchemaFunctionRename( - new_name = '0' - ) - else: - return AppApiRestV1AnalysisInfoSchemaFunctionRename( - new_name = '0', - ) - """ - - def testAppApiRestV1AnalysisInfoSchemaFunctionRename(self): - """Test AppApiRestV1AnalysisInfoSchemaFunctionRename""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py b/revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py deleted file mode 100644 index 16b9262..0000000 --- a/revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v1_ann_schema_ann_function import AppApiRestV1AnnSchemaANNFunction - -class TestAppApiRestV1AnnSchemaANNFunction(unittest.TestCase): - """AppApiRestV1AnnSchemaANNFunction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV1AnnSchemaANNFunction: - """Test AppApiRestV1AnnSchemaANNFunction - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV1AnnSchemaANNFunction` - """ - model = AppApiRestV1AnnSchemaANNFunction() - if include_optional: - return AppApiRestV1AnnSchemaANNFunction( - result_per_function = 56, - distance = 1.337, - function_id_list = [ - 56 - ], - speculative_function_ids = [ - null - ], - collection = [ - '' - ], - collection_search_list = [ - 56 - ], - debug_mode = True, - debug_types = [ - 'USER' - ], - binaries_search_list = [ - 56 - ] - ) - else: - return AppApiRestV1AnnSchemaANNFunction( - function_id_list = [ - 56 - ], - ) - """ - - def testAppApiRestV1AnnSchemaANNFunction(self): - """Test AppApiRestV1AnnSchemaANNFunction""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py b/revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py deleted file mode 100644 index 649f4e1..0000000 --- a/revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_enums_dynamic_execution_status import AppApiRestV2AnalysesEnumsDynamicExecutionStatus - -class TestAppApiRestV2AnalysesEnumsDynamicExecutionStatus(unittest.TestCase): - """AppApiRestV2AnalysesEnumsDynamicExecutionStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppApiRestV2AnalysesEnumsDynamicExecutionStatus(self): - """Test AppApiRestV2AnalysesEnumsDynamicExecutionStatus""" - # inst = AppApiRestV2AnalysesEnumsDynamicExecutionStatus() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py b/revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py deleted file mode 100644 index 7614a00..0000000 --- a/revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_enums_model_name import AppApiRestV2AnalysesEnumsModelName - -class TestAppApiRestV2AnalysesEnumsModelName(unittest.TestCase): - """AppApiRestV2AnalysesEnumsModelName unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppApiRestV2AnalysesEnumsModelName(self): - """Test AppApiRestV2AnalysesEnumsModelName""" - # inst = AppApiRestV2AnalysesEnumsModelName() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py b/revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py deleted file mode 100644 index 9055862..0000000 --- a/revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy - -class TestAppApiRestV2AnalysesEnumsOrderBy(unittest.TestCase): - """AppApiRestV2AnalysesEnumsOrderBy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppApiRestV2AnalysesEnumsOrderBy(self): - """Test AppApiRestV2AnalysesEnumsOrderBy""" - # inst = AppApiRestV2AnalysesEnumsOrderBy() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_analyses_enums_status.py b/revengai/test/test_app_api_rest_v2_analyses_enums_status.py deleted file mode 100644 index d688807..0000000 --- a/revengai/test/test_app_api_rest_v2_analyses_enums_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_enums_status import AppApiRestV2AnalysesEnumsStatus - -class TestAppApiRestV2AnalysesEnumsStatus(unittest.TestCase): - """AppApiRestV2AnalysesEnumsStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppApiRestV2AnalysesEnumsStatus(self): - """Test AppApiRestV2AnalysesEnumsStatus""" - # inst = AppApiRestV2AnalysesEnumsStatus() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py b/revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py deleted file mode 100644 index e9f94d7..0000000 --- a/revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags - -class TestAppApiRestV2AnalysesResponsesAnalysisTags(unittest.TestCase): - """AppApiRestV2AnalysesResponsesAnalysisTags unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesAnalysisTags: - """Test AppApiRestV2AnalysesResponsesAnalysisTags - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2AnalysesResponsesAnalysisTags` - """ - model = AppApiRestV2AnalysesResponsesAnalysisTags() - if include_optional: - return AppApiRestV2AnalysesResponsesAnalysisTags( - analysis_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ], - suggested_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ] - ) - else: - return AppApiRestV2AnalysesResponsesAnalysisTags( - analysis_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ], - suggested_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ], - ) - """ - - def testAppApiRestV2AnalysesResponsesAnalysisTags(self): - """Test AppApiRestV2AnalysesResponsesAnalysisTags""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_analyses_responses_logs.py b/revengai/test/test_app_api_rest_v2_analyses_responses_logs.py deleted file mode 100644 index 32b0eec..0000000 --- a/revengai/test/test_app_api_rest_v2_analyses_responses_logs.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_responses_logs import AppApiRestV2AnalysesResponsesLogs - -class TestAppApiRestV2AnalysesResponsesLogs(unittest.TestCase): - """AppApiRestV2AnalysesResponsesLogs unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesLogs: - """Test AppApiRestV2AnalysesResponsesLogs - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2AnalysesResponsesLogs` - """ - model = AppApiRestV2AnalysesResponsesLogs() - if include_optional: - return AppApiRestV2AnalysesResponsesLogs( - logs = '' - ) - else: - return AppApiRestV2AnalysesResponsesLogs( - logs = '', - ) - """ - - def testAppApiRestV2AnalysesResponsesLogs(self): - """Test AppApiRestV2AnalysesResponsesLogs""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py b/revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py deleted file mode 100644 index 540b069..0000000 --- a/revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_responses_tag_item import AppApiRestV2AnalysesResponsesTagItem - -class TestAppApiRestV2AnalysesResponsesTagItem(unittest.TestCase): - """AppApiRestV2AnalysesResponsesTagItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesTagItem: - """Test AppApiRestV2AnalysesResponsesTagItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2AnalysesResponsesTagItem` - """ - model = AppApiRestV2AnalysesResponsesTagItem() - if include_optional: - return AppApiRestV2AnalysesResponsesTagItem( - name = '', - origin = '', - collection_id = 56 - ) - else: - return AppApiRestV2AnalysesResponsesTagItem( - name = '', - origin = '', - ) - """ - - def testAppApiRestV2AnalysesResponsesTagItem(self): - """Test AppApiRestV2AnalysesResponsesTagItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py b/revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py deleted file mode 100644 index 3d57a50..0000000 --- a/revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_analyses_schemas_symbols import AppApiRestV2AnalysesSchemasSymbols - -class TestAppApiRestV2AnalysesSchemasSymbols(unittest.TestCase): - """AppApiRestV2AnalysesSchemasSymbols unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2AnalysesSchemasSymbols: - """Test AppApiRestV2AnalysesSchemasSymbols - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2AnalysesSchemasSymbols` - """ - model = AppApiRestV2AnalysesSchemasSymbols() - if include_optional: - return AppApiRestV2AnalysesSchemasSymbols( - base_address = 56, - function_boundaries = [ - revengai.models.function_boundary.FunctionBoundary( - name = '', - start_address = 56, - end_address = 56, ) - ] - ) - else: - return AppApiRestV2AnalysesSchemasSymbols( - ) - """ - - def testAppApiRestV2AnalysesSchemasSymbols(self): - """Test AppApiRestV2AnalysesSchemasSymbols""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_collections_enums_order_by.py b/revengai/test/test_app_api_rest_v2_collections_enums_order_by.py deleted file mode 100644 index da54c1c..0000000 --- a/revengai/test/test_app_api_rest_v2_collections_enums_order_by.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_collections_enums_order_by import AppApiRestV2CollectionsEnumsOrderBy - -class TestAppApiRestV2CollectionsEnumsOrderBy(unittest.TestCase): - """AppApiRestV2CollectionsEnumsOrderBy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppApiRestV2CollectionsEnumsOrderBy(self): - """Test AppApiRestV2CollectionsEnumsOrderBy""" - # inst = AppApiRestV2CollectionsEnumsOrderBy() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py b/revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py deleted file mode 100644 index 27f67a8..0000000 --- a/revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_functions_rename_schema_function_rename import AppApiRestV2FunctionsRenameSchemaFunctionRename - -class TestAppApiRestV2FunctionsRenameSchemaFunctionRename(unittest.TestCase): - """AppApiRestV2FunctionsRenameSchemaFunctionRename unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2FunctionsRenameSchemaFunctionRename: - """Test AppApiRestV2FunctionsRenameSchemaFunctionRename - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2FunctionsRenameSchemaFunctionRename` - """ - model = AppApiRestV2FunctionsRenameSchemaFunctionRename() - if include_optional: - return AppApiRestV2FunctionsRenameSchemaFunctionRename( - new_name = '', - new_mangled_name = '' - ) - else: - return AppApiRestV2FunctionsRenameSchemaFunctionRename( - ) - """ - - def testAppApiRestV2FunctionsRenameSchemaFunctionRename(self): - """Test AppApiRestV2FunctionsRenameSchemaFunctionRename""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_functions_responses_function.py b/revengai/test/test_app_api_rest_v2_functions_responses_function.py deleted file mode 100644 index 6cb11da..0000000 --- a/revengai/test/test_app_api_rest_v2_functions_responses_function.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_functions_responses_function import AppApiRestV2FunctionsResponsesFunction - -class TestAppApiRestV2FunctionsResponsesFunction(unittest.TestCase): - """AppApiRestV2FunctionsResponsesFunction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2FunctionsResponsesFunction: - """Test AppApiRestV2FunctionsResponsesFunction - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2FunctionsResponsesFunction` - """ - model = AppApiRestV2FunctionsResponsesFunction() - if include_optional: - return AppApiRestV2FunctionsResponsesFunction( - function_id = 56, - function_vaddr = 56 - ) - else: - return AppApiRestV2FunctionsResponsesFunction( - function_id = 56, - function_vaddr = 56, - ) - """ - - def testAppApiRestV2FunctionsResponsesFunction(self): - """Test AppApiRestV2FunctionsResponsesFunction""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_functions_types_function.py b/revengai/test/test_app_api_rest_v2_functions_types_function.py deleted file mode 100644 index 4aee4bf..0000000 --- a/revengai/test/test_app_api_rest_v2_functions_types_function.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_functions_types_function import AppApiRestV2FunctionsTypesFunction - -class TestAppApiRestV2FunctionsTypesFunction(unittest.TestCase): - """AppApiRestV2FunctionsTypesFunction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2FunctionsTypesFunction: - """Test AppApiRestV2FunctionsTypesFunction - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2FunctionsTypesFunction` - """ - model = AppApiRestV2FunctionsTypesFunction() - if include_optional: - return AppApiRestV2FunctionsTypesFunction( - function_id = 56, - function_name = '', - function_vaddr = 56, - function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ] - ) - else: - return AppApiRestV2FunctionsTypesFunction( - function_id = 56, - function_name = '', - function_vaddr = 56, - function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - ) - """ - - def testAppApiRestV2FunctionsTypesFunction(self): - """Test AppApiRestV2FunctionsTypesFunction""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py b/revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py deleted file mode 100644 index 332692f..0000000 --- a/revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags - -class TestAppApiRestV2InfoResponsesAnalysisTags(unittest.TestCase): - """AppApiRestV2InfoResponsesAnalysisTags unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2InfoResponsesAnalysisTags: - """Test AppApiRestV2InfoResponsesAnalysisTags - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2InfoResponsesAnalysisTags` - """ - model = AppApiRestV2InfoResponsesAnalysisTags() - if include_optional: - return AppApiRestV2InfoResponsesAnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ] - ) - else: - return AppApiRestV2InfoResponsesAnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - ) - """ - - def testAppApiRestV2InfoResponsesAnalysisTags(self): - """Test AppApiRestV2InfoResponsesAnalysisTags""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py b/revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py deleted file mode 100644 index a88ff4e..0000000 --- a/revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_similarity_schema_ann_function import AppApiRestV2SimilaritySchemaANNFunction - -class TestAppApiRestV2SimilaritySchemaANNFunction(unittest.TestCase): - """AppApiRestV2SimilaritySchemaANNFunction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2SimilaritySchemaANNFunction: - """Test AppApiRestV2SimilaritySchemaANNFunction - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2SimilaritySchemaANNFunction` - """ - model = AppApiRestV2SimilaritySchemaANNFunction() - if include_optional: - return AppApiRestV2SimilaritySchemaANNFunction( - limit = 56, - distance = 1.337, - analysis_search_ids = [ - 56 - ], - collection_search_ids = [ - 56 - ], - search_binary_ids = None, - search_function_ids = None, - debug_only = True - ) - else: - return AppApiRestV2SimilaritySchemaANNFunction( - ) - """ - - def testAppApiRestV2SimilaritySchemaANNFunction(self): - """Test AppApiRestV2SimilaritySchemaANNFunction""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py b/revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py deleted file mode 100644 index 8173fa1..0000000 --- a/revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 - -class TestAppCoreResponsesBaseBaseResponseAnalysisTags1(unittest.TestCase): - """AppCoreResponsesBaseBaseResponseAnalysisTags1 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppCoreResponsesBaseBaseResponseAnalysisTags1: - """Test AppCoreResponsesBaseBaseResponseAnalysisTags1 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppCoreResponsesBaseBaseResponseAnalysisTags1` - """ - model = AppCoreResponsesBaseBaseResponseAnalysisTags1() - if include_optional: - return AppCoreResponsesBaseBaseResponseAnalysisTags1( - status = True, - data = revengai.models.analysis_tags.AnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return AppCoreResponsesBaseBaseResponseAnalysisTags1( - ) - """ - - def testAppCoreResponsesBaseBaseResponseAnalysisTags1(self): - """Test AppCoreResponsesBaseBaseResponseAnalysisTags1""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py b/revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py deleted file mode 100644 index 0325527..0000000 --- a/revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 - -class TestAppCoreResponsesBaseBaseResponseAnalysisTags2(unittest.TestCase): - """AppCoreResponsesBaseBaseResponseAnalysisTags2 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppCoreResponsesBaseBaseResponseAnalysisTags2: - """Test AppCoreResponsesBaseBaseResponseAnalysisTags2 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppCoreResponsesBaseBaseResponseAnalysisTags2` - """ - model = AppCoreResponsesBaseBaseResponseAnalysisTags2() - if include_optional: - return AppCoreResponsesBaseBaseResponseAnalysisTags2( - status = True, - data = revengai.models.analysis_tags.AnalysisTags( - analysis_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ], - suggested_tags = [ - revengai.models.tag_item.TagItem( - name = '', - origin = '', - collection_id = 56, ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return AppCoreResponsesBaseBaseResponseAnalysisTags2( - ) - """ - - def testAppCoreResponsesBaseBaseResponseAnalysisTags2(self): - """Test AppCoreResponsesBaseBaseResponseAnalysisTags2""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_services_binary_ann_schema_tag_item.py b/revengai/test/test_app_services_binary_ann_schema_tag_item.py deleted file mode 100644 index f28b2cd..0000000 --- a/revengai/test/test_app_services_binary_ann_schema_tag_item.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem - -class TestAppServicesBinaryAnnSchemaTagItem(unittest.TestCase): - """AppServicesBinaryAnnSchemaTagItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppServicesBinaryAnnSchemaTagItem: - """Test AppServicesBinaryAnnSchemaTagItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppServicesBinaryAnnSchemaTagItem` - """ - model = AppServicesBinaryAnnSchemaTagItem() - if include_optional: - return AppServicesBinaryAnnSchemaTagItem( - tag = '', - origin = '' - ) - else: - return AppServicesBinaryAnnSchemaTagItem( - ) - """ - - def testAppServicesBinaryAnnSchemaTagItem(self): - """Test AppServicesBinaryAnnSchemaTagItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py b/revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py deleted file mode 100644 index 1313f52..0000000 --- a/revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus - -class TestAppServicesDynamicExecutionSchemasDynamicExecutionStatus(unittest.TestCase): - """AppServicesDynamicExecutionSchemasDynamicExecutionStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppServicesDynamicExecutionSchemasDynamicExecutionStatus: - """Test AppServicesDynamicExecutionSchemasDynamicExecutionStatus - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppServicesDynamicExecutionSchemasDynamicExecutionStatus` - """ - model = AppServicesDynamicExecutionSchemasDynamicExecutionStatus() - if include_optional: - return AppServicesDynamicExecutionSchemasDynamicExecutionStatus( - status = '' - ) - else: - return AppServicesDynamicExecutionSchemasDynamicExecutionStatus( - status = '', - ) - """ - - def testAppServicesDynamicExecutionSchemasDynamicExecutionStatus(self): - """Test AppServicesDynamicExecutionSchemasDynamicExecutionStatus""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_argument.py b/revengai/test/test_argument.py deleted file mode 100644 index f4d7c4e..0000000 --- a/revengai/test/test_argument.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.argument import Argument - -class TestArgument(unittest.TestCase): - """Argument unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Argument: - """Test Argument - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Argument` - """ - model = Argument() - if include_optional: - return Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56 - ) - else: - return Argument( - offset = 56, - name = '', - type = '', - size = 56, - ) - """ - - def testArgument(self): - """Test Argument""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_authentication_users_api.py b/revengai/test/test_authentication_users_api.py deleted file mode 100644 index 50ce589..0000000 --- a/revengai/test/test_authentication_users_api.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.authentication_users_api import AuthenticationUsersApi - - -class TestAuthenticationUsersApi(unittest.TestCase): - """AuthenticationUsersApi unit test stubs""" - - def setUp(self) -> None: - self.api = AuthenticationUsersApi() - - def tearDown(self) -> None: - pass - - def test_get_requester_user_info(self) -> None: - """Test case for get_requester_user_info - - Get the requesters user information - """ - pass - - def test_get_user(self) -> None: - """Test case for get_user - - Get a user's public information - """ - pass - - def test_get_user_activity(self) -> None: - """Test case for get_user_activity - - Get auth user activity - """ - pass - - def test_get_user_comments(self) -> None: - """Test case for get_user_comments - - Get comments by user - """ - pass - - def test_login_user(self) -> None: - """Test case for login_user - - Authenticate a user - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response.py b/revengai/test/test_base_response.py deleted file mode 100644 index 802e1fe..0000000 --- a/revengai/test/test_base_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response import BaseResponse - -class TestBaseResponse(unittest.TestCase): - """BaseResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponse: - """Test BaseResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponse` - """ - model = BaseResponse() - if include_optional: - return BaseResponse( - status = True, - data = None, - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponse( - ) - """ - - def testBaseResponse(self): - """Test BaseResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_analysis_create_response.py b/revengai/test/test_base_response_analysis_create_response.py deleted file mode 100644 index d775542..0000000 --- a/revengai/test/test_base_response_analysis_create_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse - -class TestBaseResponseAnalysisCreateResponse(unittest.TestCase): - """BaseResponseAnalysisCreateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseAnalysisCreateResponse: - """Test BaseResponseAnalysisCreateResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseAnalysisCreateResponse` - """ - model = BaseResponseAnalysisCreateResponse() - if include_optional: - return BaseResponseAnalysisCreateResponse( - status = True, - data = revengai.models.analysis_create_response.AnalysisCreateResponse( - analysis_id = 56, - binary_id = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseAnalysisCreateResponse( - ) - """ - - def testBaseResponseAnalysisCreateResponse(self): - """Test BaseResponseAnalysisCreateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_analysis_detail_response.py b/revengai/test/test_base_response_analysis_detail_response.py deleted file mode 100644 index 424a228..0000000 --- a/revengai/test/test_base_response_analysis_detail_response.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse - -class TestBaseResponseAnalysisDetailResponse(unittest.TestCase): - """BaseResponseAnalysisDetailResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseAnalysisDetailResponse: - """Test BaseResponseAnalysisDetailResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseAnalysisDetailResponse` - """ - model = BaseResponseAnalysisDetailResponse() - if include_optional: - return BaseResponseAnalysisDetailResponse( - status = True, - data = revengai.models.analysis_detail_response.AnalysisDetailResponse( - access = revengai.models.analysis_access_info.AnalysisAccessInfo( - owner = True, - username = '', ), - analysis_id = 56, - analysis_scope = '', - architecture = '', - binary_dynamic = True, - binary_format = '', - binary_name = '', - binary_size = 56, - binary_type = '', - creation = '', - debug = True, - model_name = '', - sbom = { - 'key' : null - }, - sha_256_hash = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseAnalysisDetailResponse( - ) - """ - - def testBaseResponseAnalysisDetailResponse(self): - """Test BaseResponseAnalysisDetailResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_analysis_functions.py b/revengai/test/test_base_response_analysis_functions.py deleted file mode 100644 index 5b5f9c6..0000000 --- a/revengai/test/test_base_response_analysis_functions.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_analysis_functions import BaseResponseAnalysisFunctions - -class TestBaseResponseAnalysisFunctions(unittest.TestCase): - """BaseResponseAnalysisFunctions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseAnalysisFunctions: - """Test BaseResponseAnalysisFunctions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseAnalysisFunctions` - """ - model = BaseResponseAnalysisFunctions() - if include_optional: - return BaseResponseAnalysisFunctions( - status = True, - data = revengai.models.analysis_functions.AnalysisFunctions( - functions = [ - revengai.models.function.Function( - function_id = 56, - function_name = '', - function_vaddr = 56, - function_size = 56, - debug = True, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseAnalysisFunctions( - ) - """ - - def testBaseResponseAnalysisFunctions(self): - """Test BaseResponseAnalysisFunctions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_analysis_strings_response.py b/revengai/test/test_base_response_analysis_strings_response.py deleted file mode 100644 index fdb5fde..0000000 --- a/revengai/test/test_base_response_analysis_strings_response.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_analysis_strings_response import BaseResponseAnalysisStringsResponse - -class TestBaseResponseAnalysisStringsResponse(unittest.TestCase): - """BaseResponseAnalysisStringsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseAnalysisStringsResponse: - """Test BaseResponseAnalysisStringsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseAnalysisStringsResponse` - """ - model = BaseResponseAnalysisStringsResponse() - if include_optional: - return BaseResponseAnalysisStringsResponse( - status = True, - data = revengai.models.analysis_strings_response.AnalysisStringsResponse( - strings = [ - revengai.models.string_functions.StringFunctions( - value = '', - functions = [ - revengai.models.function.Function( - function_id = 56, - function_vaddr = 56, ) - ], ) - ], - total_strings = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseAnalysisStringsResponse( - ) - """ - - def testBaseResponseAnalysisStringsResponse(self): - """Test BaseResponseAnalysisStringsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_analysis_threat_score_data.py b/revengai/test/test_base_response_analysis_threat_score_data.py deleted file mode 100644 index 94e9fa3..0000000 --- a/revengai/test/test_base_response_analysis_threat_score_data.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_analysis_threat_score_data import BaseResponseAnalysisThreatScoreData - -class TestBaseResponseAnalysisThreatScoreData(unittest.TestCase): - """BaseResponseAnalysisThreatScoreData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseAnalysisThreatScoreData: - """Test BaseResponseAnalysisThreatScoreData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseAnalysisThreatScoreData` - """ - model = BaseResponseAnalysisThreatScoreData() - if include_optional: - return BaseResponseAnalysisThreatScoreData( - status = True, - data = revengai.models.analysis_threat_score_data.AnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseAnalysisThreatScoreData( - ) - """ - - def testBaseResponseAnalysisThreatScoreData(self): - """Test BaseResponseAnalysisThreatScoreData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_analysis_update_tags_response.py b/revengai/test/test_base_response_analysis_update_tags_response.py deleted file mode 100644 index b20673f..0000000 --- a/revengai/test/test_base_response_analysis_update_tags_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse - -class TestBaseResponseAnalysisUpdateTagsResponse(unittest.TestCase): - """BaseResponseAnalysisUpdateTagsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseAnalysisUpdateTagsResponse: - """Test BaseResponseAnalysisUpdateTagsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseAnalysisUpdateTagsResponse` - """ - model = BaseResponseAnalysisUpdateTagsResponse() - if include_optional: - return BaseResponseAnalysisUpdateTagsResponse( - status = True, - data = revengai.models.analysis_update_tags_response.AnalysisUpdateTagsResponse( - tags = [ - revengai.models.tag_response.TagResponse( - name = '', - origin = '', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseAnalysisUpdateTagsResponse( - ) - """ - - def testBaseResponseAnalysisUpdateTagsResponse(self): - """Test BaseResponseAnalysisUpdateTagsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_basic.py b/revengai/test/test_base_response_basic.py deleted file mode 100644 index 7935b45..0000000 --- a/revengai/test/test_base_response_basic.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_basic import BaseResponseBasic - -class TestBaseResponseBasic(unittest.TestCase): - """BaseResponseBasic unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBasic: - """Test BaseResponseBasic - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBasic` - """ - model = BaseResponseBasic() - if include_optional: - return BaseResponseBasic( - status = True, - data = revengai.models.basic.Basic( - binary_name = '', - binary_size = 56, - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - sha_256_hash = '', - model_name = '', - owner_username = '', - analysis_scope = '', - is_owner = True, - debug = True, - function_count = 56, - is_advanced = True, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBasic( - ) - """ - - def testBaseResponseBasic(self): - """Test BaseResponseBasic""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_binary_additional_response.py b/revengai/test/test_base_response_binary_additional_response.py deleted file mode 100644 index 78af3ad..0000000 --- a/revengai/test/test_base_response_binary_additional_response.py +++ /dev/null @@ -1,259 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse - -class TestBaseResponseBinaryAdditionalResponse(unittest.TestCase): - """BaseResponseBinaryAdditionalResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBinaryAdditionalResponse: - """Test BaseResponseBinaryAdditionalResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBinaryAdditionalResponse` - """ - model = BaseResponseBinaryAdditionalResponse() - if include_optional: - return BaseResponseBinaryAdditionalResponse( - status = True, - data = revengai.models.binary_additional_response.BinaryAdditionalResponse( - binary_id = 56, - details = revengai.models.binary_additional_details_data_response.BinaryAdditionalDetailsDataResponse( - file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', - entropy = 1.337, - hashes = revengai.models.file_hashes.FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '', ), ), - pe = revengai.models.pe_model.PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), - architecture = '', - checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, - debug_info = revengai.models.pdb_debug_model.PDBDebugModel( - debug_entries = [ - revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', - age = 56, - path = '', ) - ], ), - number_of_resources = 56, - entry_point = revengai.models.entrypoint_model.EntrypointModel( - address = 56, - first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', - export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ), ), - elf = revengai.models.elf_model.ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', - import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = 56, - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, - version_info = { - 'key' : null - }, ), ), - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBinaryAdditionalResponse( - ) - """ - - def testBaseResponseBinaryAdditionalResponse(self): - """Test BaseResponseBinaryAdditionalResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_binary_ann_list_response.py b/revengai/test/test_base_response_binary_ann_list_response.py deleted file mode 100644 index 7008af2..0000000 --- a/revengai/test/test_base_response_binary_ann_list_response.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_binary_ann_list_response import BaseResponseBinaryAnnListResponse - -class TestBaseResponseBinaryAnnListResponse(unittest.TestCase): - """BaseResponseBinaryAnnListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBinaryAnnListResponse: - """Test BaseResponseBinaryAnnListResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBinaryAnnListResponse` - """ - model = BaseResponseBinaryAnnListResponse() - if include_optional: - return BaseResponseBinaryAnnListResponse( - status = True, - data = revengai.models.binary_ann_list_response.BinaryAnnListResponse( - list = [ - revengai.models.exported_binary_ann_result.ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - tags = [ - revengai.models.tag_item.TagItem( - tag = '', - origin = '', ) - ], ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBinaryAnnListResponse( - ) - """ - - def testBaseResponseBinaryAnnListResponse(self): - """Test BaseResponseBinaryAnnListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_binary_details_response.py b/revengai/test/test_base_response_binary_details_response.py deleted file mode 100644 index f2810c8..0000000 --- a/revengai/test/test_base_response_binary_details_response.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_binary_details_response import BaseResponseBinaryDetailsResponse - -class TestBaseResponseBinaryDetailsResponse(unittest.TestCase): - """BaseResponseBinaryDetailsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBinaryDetailsResponse: - """Test BaseResponseBinaryDetailsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBinaryDetailsResponse` - """ - model = BaseResponseBinaryDetailsResponse() - if include_optional: - return BaseResponseBinaryDetailsResponse( - status = True, - data = revengai.models.binary_details_response.BinaryDetailsResponse( - arch = '', - bits = 56, - crc32 = '', - class = '', - entropy = 1.337, - file_size = 56, - language = '', - md5 = '', - machine = '', - os = '', - sha1 = '', - sha256 = '', - ssdeep = '', - static = True, - stripped = True, - sub_sys = '', - tlsh = '', - type = '', - debug = True, - first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBinaryDetailsResponse( - ) - """ - - def testBaseResponseBinaryDetailsResponse(self): - """Test BaseResponseBinaryDetailsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_binary_externals_response.py b/revengai/test/test_base_response_binary_externals_response.py deleted file mode 100644 index 2035c3f..0000000 --- a/revengai/test/test_base_response_binary_externals_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_binary_externals_response import BaseResponseBinaryExternalsResponse - -class TestBaseResponseBinaryExternalsResponse(unittest.TestCase): - """BaseResponseBinaryExternalsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBinaryExternalsResponse: - """Test BaseResponseBinaryExternalsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBinaryExternalsResponse` - """ - model = BaseResponseBinaryExternalsResponse() - if include_optional: - return BaseResponseBinaryExternalsResponse( - status = True, - data = revengai.models.binary_externals_response.BinaryExternalsResponse( - sha_256_hash = '', - vt = { - 'key' : null - }, - vt_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - mb = { - 'key' : null - }, - mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBinaryExternalsResponse( - ) - """ - - def testBaseResponseBinaryExternalsResponse(self): - """Test BaseResponseBinaryExternalsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_binary_search_response.py b/revengai/test/test_base_response_binary_search_response.py deleted file mode 100644 index 026f0be..0000000 --- a/revengai/test/test_base_response_binary_search_response.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_binary_search_response import BaseResponseBinarySearchResponse - -class TestBaseResponseBinarySearchResponse(unittest.TestCase): - """BaseResponseBinarySearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBinarySearchResponse: - """Test BaseResponseBinarySearchResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBinarySearchResponse` - """ - model = BaseResponseBinarySearchResponse() - if include_optional: - return BaseResponseBinarySearchResponse( - status = True, - data = revengai.models.binary_search_response.BinarySearchResponse( - results = [ - revengai.models.binary_search_result.BinarySearchResult( - binary_id = 56, - binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBinarySearchResponse( - ) - """ - - def testBaseResponseBinarySearchResponse(self): - """Test BaseResponseBinarySearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_block_comments_generation_for_function_response.py b/revengai/test/test_base_response_block_comments_generation_for_function_response.py deleted file mode 100644 index 7125814..0000000 --- a/revengai/test/test_base_response_block_comments_generation_for_function_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_block_comments_generation_for_function_response import BaseResponseBlockCommentsGenerationForFunctionResponse - -class TestBaseResponseBlockCommentsGenerationForFunctionResponse(unittest.TestCase): - """BaseResponseBlockCommentsGenerationForFunctionResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBlockCommentsGenerationForFunctionResponse: - """Test BaseResponseBlockCommentsGenerationForFunctionResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBlockCommentsGenerationForFunctionResponse` - """ - model = BaseResponseBlockCommentsGenerationForFunctionResponse() - if include_optional: - return BaseResponseBlockCommentsGenerationForFunctionResponse( - status = True, - data = revengai.models.block_comments_generation_for_function_response.BlockCommentsGenerationForFunctionResponse( - updated_blocks = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBlockCommentsGenerationForFunctionResponse( - ) - """ - - def testBaseResponseBlockCommentsGenerationForFunctionResponse(self): - """Test BaseResponseBlockCommentsGenerationForFunctionResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_block_comments_overview_generation_response.py b/revengai/test/test_base_response_block_comments_overview_generation_response.py deleted file mode 100644 index 3d31f1b..0000000 --- a/revengai/test/test_base_response_block_comments_overview_generation_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_block_comments_overview_generation_response import BaseResponseBlockCommentsOverviewGenerationResponse - -class TestBaseResponseBlockCommentsOverviewGenerationResponse(unittest.TestCase): - """BaseResponseBlockCommentsOverviewGenerationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBlockCommentsOverviewGenerationResponse: - """Test BaseResponseBlockCommentsOverviewGenerationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBlockCommentsOverviewGenerationResponse` - """ - model = BaseResponseBlockCommentsOverviewGenerationResponse() - if include_optional: - return BaseResponseBlockCommentsOverviewGenerationResponse( - status = True, - data = revengai.models.block_comments_overview_generation_response.BlockCommentsOverviewGenerationResponse(), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBlockCommentsOverviewGenerationResponse( - ) - """ - - def testBaseResponseBlockCommentsOverviewGenerationResponse(self): - """Test BaseResponseBlockCommentsOverviewGenerationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_bool.py b/revengai/test/test_base_response_bool.py deleted file mode 100644 index d8e74f2..0000000 --- a/revengai/test/test_base_response_bool.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_bool import BaseResponseBool - -class TestBaseResponseBool(unittest.TestCase): - """BaseResponseBool unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBool: - """Test BaseResponseBool - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBool` - """ - model = BaseResponseBool() - if include_optional: - return BaseResponseBool( - status = True, - data = True, - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBool( - ) - """ - - def testBaseResponseBool(self): - """Test BaseResponseBool""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_box_plot_confidence.py b/revengai/test/test_base_response_box_plot_confidence.py deleted file mode 100644 index dcdd901..0000000 --- a/revengai/test/test_base_response_box_plot_confidence.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_box_plot_confidence import BaseResponseBoxPlotConfidence - -class TestBaseResponseBoxPlotConfidence(unittest.TestCase): - """BaseResponseBoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseBoxPlotConfidence: - """Test BaseResponseBoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseBoxPlotConfidence` - """ - model = BaseResponseBoxPlotConfidence() - if include_optional: - return BaseResponseBoxPlotConfidence( - status = True, - data = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseBoxPlotConfidence( - ) - """ - - def testBaseResponseBoxPlotConfidence(self): - """Test BaseResponseBoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_callees_caller_functions_response.py b/revengai/test/test_base_response_callees_caller_functions_response.py deleted file mode 100644 index e5c5910..0000000 --- a/revengai/test/test_base_response_callees_caller_functions_response.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_callees_caller_functions_response import BaseResponseCalleesCallerFunctionsResponse - -class TestBaseResponseCalleesCallerFunctionsResponse(unittest.TestCase): - """BaseResponseCalleesCallerFunctionsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCalleesCallerFunctionsResponse: - """Test BaseResponseCalleesCallerFunctionsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCalleesCallerFunctionsResponse` - """ - model = BaseResponseCalleesCallerFunctionsResponse() - if include_optional: - return BaseResponseCalleesCallerFunctionsResponse( - status = True, - data = revengai.models.callees_caller_functions_response.CalleesCallerFunctionsResponse( - base_address = 56, - callees = [ - revengai.models.callee_function_info.CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056', ) - ], - callers = [ - revengai.models.caller_function_info.CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCalleesCallerFunctionsResponse( - ) - """ - - def testBaseResponseCalleesCallerFunctionsResponse(self): - """Test BaseResponseCalleesCallerFunctionsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_capabilities.py b/revengai/test/test_base_response_capabilities.py deleted file mode 100644 index e2a9233..0000000 --- a/revengai/test/test_base_response_capabilities.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_capabilities import BaseResponseCapabilities - -class TestBaseResponseCapabilities(unittest.TestCase): - """BaseResponseCapabilities unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCapabilities: - """Test BaseResponseCapabilities - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCapabilities` - """ - model = BaseResponseCapabilities() - if include_optional: - return BaseResponseCapabilities( - status = True, - data = revengai.models.capabilities.Capabilities( - capabilities = [ - revengai.models.capability.Capability( - function_name = '', - function_vaddr = 56, - capabilities = [ - '' - ], ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCapabilities( - ) - """ - - def testBaseResponseCapabilities(self): - """Test BaseResponseCapabilities""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_check_security_checks_task_response.py b/revengai/test/test_base_response_check_security_checks_task_response.py deleted file mode 100644 index c84011b..0000000 --- a/revengai/test/test_base_response_check_security_checks_task_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_check_security_checks_task_response import BaseResponseCheckSecurityChecksTaskResponse - -class TestBaseResponseCheckSecurityChecksTaskResponse(unittest.TestCase): - """BaseResponseCheckSecurityChecksTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCheckSecurityChecksTaskResponse: - """Test BaseResponseCheckSecurityChecksTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCheckSecurityChecksTaskResponse` - """ - model = BaseResponseCheckSecurityChecksTaskResponse() - if include_optional: - return BaseResponseCheckSecurityChecksTaskResponse( - status = True, - data = revengai.models.check_security_checks_task_response.CheckSecurityChecksTaskResponse( - status = 'UNINITIALISED', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCheckSecurityChecksTaskResponse( - ) - """ - - def testBaseResponseCheckSecurityChecksTaskResponse(self): - """Test BaseResponseCheckSecurityChecksTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_child_binaries_response.py b/revengai/test/test_base_response_child_binaries_response.py deleted file mode 100644 index 786e486..0000000 --- a/revengai/test/test_base_response_child_binaries_response.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_child_binaries_response import BaseResponseChildBinariesResponse - -class TestBaseResponseChildBinariesResponse(unittest.TestCase): - """BaseResponseChildBinariesResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseChildBinariesResponse: - """Test BaseResponseChildBinariesResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseChildBinariesResponse` - """ - model = BaseResponseChildBinariesResponse() - if include_optional: - return BaseResponseChildBinariesResponse( - status = True, - data = revengai.models.child_binaries_response.ChildBinariesResponse( - children = [ - revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, - name = '', - sha256 = '', ) - ], - parent = revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, - name = '', - sha256 = '', ), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseChildBinariesResponse( - ) - """ - - def testBaseResponseChildBinariesResponse(self): - """Test BaseResponseChildBinariesResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_collection_binaries_update_response.py b/revengai/test/test_base_response_collection_binaries_update_response.py deleted file mode 100644 index 983b436..0000000 --- a/revengai/test/test_base_response_collection_binaries_update_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_collection_binaries_update_response import BaseResponseCollectionBinariesUpdateResponse - -class TestBaseResponseCollectionBinariesUpdateResponse(unittest.TestCase): - """BaseResponseCollectionBinariesUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCollectionBinariesUpdateResponse: - """Test BaseResponseCollectionBinariesUpdateResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCollectionBinariesUpdateResponse` - """ - model = BaseResponseCollectionBinariesUpdateResponse() - if include_optional: - return BaseResponseCollectionBinariesUpdateResponse( - status = True, - data = revengai.models.collection_binaries_update_response.CollectionBinariesUpdateResponse( - binaries = [ - revengai.models.collection_binary_response.CollectionBinaryResponse( - analysis_id = 56, - binary_id = 56, - binary_name = '', - owner_id = 56, - sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCollectionBinariesUpdateResponse( - ) - """ - - def testBaseResponseCollectionBinariesUpdateResponse(self): - """Test BaseResponseCollectionBinariesUpdateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_collection_response.py b/revengai/test/test_base_response_collection_response.py deleted file mode 100644 index 990d2c8..0000000 --- a/revengai/test/test_base_response_collection_response.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_collection_response import BaseResponseCollectionResponse - -class TestBaseResponseCollectionResponse(unittest.TestCase): - """BaseResponseCollectionResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCollectionResponse: - """Test BaseResponseCollectionResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCollectionResponse` - """ - model = BaseResponseCollectionResponse() - if include_optional: - return BaseResponseCollectionResponse( - status = True, - data = revengai.models.collection_response.CollectionResponse( - collection_id = 56, - collection_name = '', - description = '', - model_id = 56, - user_id = 56, - team_id = 56, - collection_scope = 'PRIVATE', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tags = [ - '' - ], - binaries = [ - null - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCollectionResponse( - ) - """ - - def testBaseResponseCollectionResponse(self): - """Test BaseResponseCollectionResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_collection_search_response.py b/revengai/test/test_base_response_collection_search_response.py deleted file mode 100644 index 6bf4c4f..0000000 --- a/revengai/test/test_base_response_collection_search_response.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_collection_search_response import BaseResponseCollectionSearchResponse - -class TestBaseResponseCollectionSearchResponse(unittest.TestCase): - """BaseResponseCollectionSearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCollectionSearchResponse: - """Test BaseResponseCollectionSearchResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCollectionSearchResponse` - """ - model = BaseResponseCollectionSearchResponse() - if include_optional: - return BaseResponseCollectionSearchResponse( - status = True, - data = revengai.models.collection_search_response.CollectionSearchResponse( - results = [ - revengai.models.collection_search_result.CollectionSearchResult( - collection_id = 56, - collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', - tags = [ - '' - ], - size = 56, - description = '', - team_id = 56, ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCollectionSearchResponse( - ) - """ - - def testBaseResponseCollectionSearchResponse(self): - """Test BaseResponseCollectionSearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_collection_tags_update_response.py b/revengai/test/test_base_response_collection_tags_update_response.py deleted file mode 100644 index 499e32f..0000000 --- a/revengai/test/test_base_response_collection_tags_update_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_collection_tags_update_response import BaseResponseCollectionTagsUpdateResponse - -class TestBaseResponseCollectionTagsUpdateResponse(unittest.TestCase): - """BaseResponseCollectionTagsUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCollectionTagsUpdateResponse: - """Test BaseResponseCollectionTagsUpdateResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCollectionTagsUpdateResponse` - """ - model = BaseResponseCollectionTagsUpdateResponse() - if include_optional: - return BaseResponseCollectionTagsUpdateResponse( - status = True, - data = revengai.models.collection_tags_update_response.CollectionTagsUpdateResponse( - tags = [ - '' - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCollectionTagsUpdateResponse( - ) - """ - - def testBaseResponseCollectionTagsUpdateResponse(self): - """Test BaseResponseCollectionTagsUpdateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_comment_response.py b/revengai/test/test_base_response_comment_response.py deleted file mode 100644 index 381e78a..0000000 --- a/revengai/test/test_base_response_comment_response.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_comment_response import BaseResponseCommentResponse - -class TestBaseResponseCommentResponse(unittest.TestCase): - """BaseResponseCommentResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCommentResponse: - """Test BaseResponseCommentResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCommentResponse` - """ - model = BaseResponseCommentResponse() - if include_optional: - return BaseResponseCommentResponse( - status = True, - data = revengai.models.comment_response.CommentResponse( - content = '', - id = 56, - user_id = 56, - resource_type = '', - resource_id = '', - context = null, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCommentResponse( - ) - """ - - def testBaseResponseCommentResponse(self): - """Test BaseResponseCommentResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_communities.py b/revengai/test/test_base_response_communities.py deleted file mode 100644 index 6758b67..0000000 --- a/revengai/test/test_base_response_communities.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_communities import BaseResponseCommunities - -class TestBaseResponseCommunities(unittest.TestCase): - """BaseResponseCommunities unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCommunities: - """Test BaseResponseCommunities - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCommunities` - """ - model = BaseResponseCommunities() - if include_optional: - return BaseResponseCommunities( - status = True, - data = revengai.models.communities.Communities( - total_functions = 56, - total_matched_functions = 56, - direct_community_match_percentages = [ - revengai.models.community_match_percentages.CommunityMatchPercentages( - binary_name = '', - binary_id = 56, - matched_communities_percent = 1.337, - unmatched_communities_percent = 1.337, ) - ], - top_components = [ - { - 'key' : null - } - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCommunities( - ) - """ - - def testBaseResponseCommunities(self): - """Test BaseResponseCommunities""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_created.py b/revengai/test/test_base_response_created.py deleted file mode 100644 index 125fa98..0000000 --- a/revengai/test/test_base_response_created.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_created import BaseResponseCreated - -class TestBaseResponseCreated(unittest.TestCase): - """BaseResponseCreated unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseCreated: - """Test BaseResponseCreated - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseCreated` - """ - model = BaseResponseCreated() - if include_optional: - return BaseResponseCreated( - status = True, - data = revengai.models.created.Created( - analysis_id = 56, - binary_id = 56, - reference = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseCreated( - ) - """ - - def testBaseResponseCreated(self): - """Test BaseResponseCreated""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_decompilation_response.py b/revengai/test/test_base_response_decompilation_response.py deleted file mode 100644 index 3460a36..0000000 --- a/revengai/test/test_base_response_decompilation_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_decompilation_response import BaseResponseDecompilationResponse - -class TestBaseResponseDecompilationResponse(unittest.TestCase): - """BaseResponseDecompilationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseDecompilationResponse: - """Test BaseResponseDecompilationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseDecompilationResponse` - """ - model = BaseResponseDecompilationResponse() - if include_optional: - return BaseResponseDecompilationResponse( - status = True, - data = revengai.models.decompilation_response.DecompilationResponse( - function_id = 56, - decompilation = '', - calling_convention = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseDecompilationResponse( - ) - """ - - def testBaseResponseDecompilationResponse(self): - """Test BaseResponseDecompilationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_dict.py b/revengai/test/test_base_response_dict.py deleted file mode 100644 index 6f8dabd..0000000 --- a/revengai/test/test_base_response_dict.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_dict import BaseResponseDict - -class TestBaseResponseDict(unittest.TestCase): - """BaseResponseDict unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseDict: - """Test BaseResponseDict - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseDict` - """ - model = BaseResponseDict() - if include_optional: - return BaseResponseDict( - status = True, - data = { - 'key' : null - }, - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseDict( - ) - """ - - def testBaseResponseDict(self): - """Test BaseResponseDict""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_dynamic_execution_status.py b/revengai/test/test_base_response_dynamic_execution_status.py deleted file mode 100644 index 10d76b4..0000000 --- a/revengai/test/test_base_response_dynamic_execution_status.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_dynamic_execution_status import BaseResponseDynamicExecutionStatus - -class TestBaseResponseDynamicExecutionStatus(unittest.TestCase): - """BaseResponseDynamicExecutionStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseDynamicExecutionStatus: - """Test BaseResponseDynamicExecutionStatus - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseDynamicExecutionStatus` - """ - model = BaseResponseDynamicExecutionStatus() - if include_optional: - return BaseResponseDynamicExecutionStatus( - status = True, - data = revengai.models.dynamic_execution_status.DynamicExecutionStatus( - status = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseDynamicExecutionStatus( - ) - """ - - def testBaseResponseDynamicExecutionStatus(self): - """Test BaseResponseDynamicExecutionStatus""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_external_response.py b/revengai/test/test_base_response_external_response.py deleted file mode 100644 index 362a31b..0000000 --- a/revengai/test/test_base_response_external_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_external_response import BaseResponseExternalResponse - -class TestBaseResponseExternalResponse(unittest.TestCase): - """BaseResponseExternalResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseExternalResponse: - """Test BaseResponseExternalResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseExternalResponse` - """ - model = BaseResponseExternalResponse() - if include_optional: - return BaseResponseExternalResponse( - status = True, - data = revengai.models.external_response.ExternalResponse( - sha_256_hash = '', - data = { - 'key' : null - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseExternalResponse( - ) - """ - - def testBaseResponseExternalResponse(self): - """Test BaseResponseExternalResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_analysis_threat_score_data.py b/revengai/test/test_base_response_function_analysis_threat_score_data.py deleted file mode 100644 index 23afdf4..0000000 --- a/revengai/test/test_base_response_function_analysis_threat_score_data.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_analysis_threat_score_data import BaseResponseFunctionAnalysisThreatScoreData - -class TestBaseResponseFunctionAnalysisThreatScoreData(unittest.TestCase): - """BaseResponseFunctionAnalysisThreatScoreData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionAnalysisThreatScoreData: - """Test BaseResponseFunctionAnalysisThreatScoreData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionAnalysisThreatScoreData` - """ - model = BaseResponseFunctionAnalysisThreatScoreData() - if include_optional: - return BaseResponseFunctionAnalysisThreatScoreData( - status = True, - data = revengai.models.function_analysis_threat_score_data.FunctionAnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionAnalysisThreatScoreData( - ) - """ - - def testBaseResponseFunctionAnalysisThreatScoreData(self): - """Test BaseResponseFunctionAnalysisThreatScoreData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_blocks_response.py b/revengai/test/test_base_response_function_blocks_response.py deleted file mode 100644 index 8562c9c..0000000 --- a/revengai/test/test_base_response_function_blocks_response.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_blocks_response import BaseResponseFunctionBlocksResponse - -class TestBaseResponseFunctionBlocksResponse(unittest.TestCase): - """BaseResponseFunctionBlocksResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionBlocksResponse: - """Test BaseResponseFunctionBlocksResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionBlocksResponse` - """ - model = BaseResponseFunctionBlocksResponse() - if include_optional: - return BaseResponseFunctionBlocksResponse( - status = True, - data = revengai.models.function_blocks_response.FunctionBlocksResponse( - blocks = [ - revengai.models.function_block_response.FunctionBlockResponse( - asm = [ - '' - ], - id = 56, - min_addr = 56, - max_addr = 56, - destinations = [ - revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( - destination_block_id = 56, - flowtype = '', - vaddr = '', ) - ], - comment = '', ) - ], - local_variables = [ - revengai.models.function_local_variable_response.FunctionLocalVariableResponse( - address = '', - d_type = '', - size = 56, - loc = '', - name = '', ) - ], - params = [ - revengai.models.function_param_response.FunctionParamResponse( - d_type = '', - loc = '', - addr = '', - length = 56, - name = '', ) - ], - overview_comment = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionBlocksResponse( - ) - """ - - def testBaseResponseFunctionBlocksResponse(self): - """Test BaseResponseFunctionBlocksResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_capability_response.py b/revengai/test/test_base_response_function_capability_response.py deleted file mode 100644 index 181e69c..0000000 --- a/revengai/test/test_base_response_function_capability_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse - -class TestBaseResponseFunctionCapabilityResponse(unittest.TestCase): - """BaseResponseFunctionCapabilityResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionCapabilityResponse: - """Test BaseResponseFunctionCapabilityResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionCapabilityResponse` - """ - model = BaseResponseFunctionCapabilityResponse() - if include_optional: - return BaseResponseFunctionCapabilityResponse( - status = True, - data = revengai.models.function_capability_response.FunctionCapabilityResponse( - capabilities = [ - '' - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionCapabilityResponse( - ) - """ - - def testBaseResponseFunctionCapabilityResponse(self): - """Test BaseResponseFunctionCapabilityResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_data_types.py b/revengai/test/test_base_response_function_data_types.py deleted file mode 100644 index e33bfa5..0000000 --- a/revengai/test/test_base_response_function_data_types.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_data_types import BaseResponseFunctionDataTypes - -class TestBaseResponseFunctionDataTypes(unittest.TestCase): - """BaseResponseFunctionDataTypes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionDataTypes: - """Test BaseResponseFunctionDataTypes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionDataTypes` - """ - model = BaseResponseFunctionDataTypes() - if include_optional: - return BaseResponseFunctionDataTypes( - status = True, - data = revengai.models.function_data_types.FunctionDataTypes( - completed = True, - status = '', - data_types = revengai.models.function_info.FunctionInfo( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - data_types_version = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionDataTypes( - ) - """ - - def testBaseResponseFunctionDataTypes(self): - """Test BaseResponseFunctionDataTypes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_data_types_list.py b/revengai/test/test_base_response_function_data_types_list.py deleted file mode 100644 index 49bab9a..0000000 --- a/revengai/test/test_base_response_function_data_types_list.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_data_types_list import BaseResponseFunctionDataTypesList - -class TestBaseResponseFunctionDataTypesList(unittest.TestCase): - """BaseResponseFunctionDataTypesList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionDataTypesList: - """Test BaseResponseFunctionDataTypesList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionDataTypesList` - """ - model = BaseResponseFunctionDataTypesList() - if include_optional: - return BaseResponseFunctionDataTypesList( - status = True, - data = revengai.models.function_data_types_list.FunctionDataTypesList( - total_count = 56, - total_data_types_count = 56, - items = [ - revengai.models.function_data_types_list_item.FunctionDataTypesListItem( - completed = True, - status = '', - data_types = revengai.models.function_info.FunctionInfo( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - data_types_version = 56, - function_id = 56, ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionDataTypesList( - ) - """ - - def testBaseResponseFunctionDataTypesList(self): - """Test BaseResponseFunctionDataTypesList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_search_response.py b/revengai/test/test_base_response_function_search_response.py deleted file mode 100644 index 901584d..0000000 --- a/revengai/test/test_base_response_function_search_response.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_search_response import BaseResponseFunctionSearchResponse - -class TestBaseResponseFunctionSearchResponse(unittest.TestCase): - """BaseResponseFunctionSearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionSearchResponse: - """Test BaseResponseFunctionSearchResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionSearchResponse` - """ - model = BaseResponseFunctionSearchResponse() - if include_optional: - return BaseResponseFunctionSearchResponse( - status = True, - data = revengai.models.function_search_response.FunctionSearchResponse( - results = [ - revengai.models.function_search_result.FunctionSearchResult( - function_id = 56, - function_name = '', - binary_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionSearchResponse( - ) - """ - - def testBaseResponseFunctionSearchResponse(self): - """Test BaseResponseFunctionSearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_strings_response.py b/revengai/test/test_base_response_function_strings_response.py deleted file mode 100644 index 7513ef1..0000000 --- a/revengai/test/test_base_response_function_strings_response.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse - -class TestBaseResponseFunctionStringsResponse(unittest.TestCase): - """BaseResponseFunctionStringsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionStringsResponse: - """Test BaseResponseFunctionStringsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionStringsResponse` - """ - model = BaseResponseFunctionStringsResponse() - if include_optional: - return BaseResponseFunctionStringsResponse( - status = True, - data = revengai.models.function_strings_response.FunctionStringsResponse( - strings = [ - revengai.models.function_string.FunctionString( - value = '', - vaddr = 56, ) - ], - total_strings = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionStringsResponse( - ) - """ - - def testBaseResponseFunctionStringsResponse(self): - """Test BaseResponseFunctionStringsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_task_response.py b/revengai/test/test_base_response_function_task_response.py deleted file mode 100644 index 5397394..0000000 --- a/revengai/test/test_base_response_function_task_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_task_response import BaseResponseFunctionTaskResponse - -class TestBaseResponseFunctionTaskResponse(unittest.TestCase): - """BaseResponseFunctionTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionTaskResponse: - """Test BaseResponseFunctionTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionTaskResponse` - """ - model = BaseResponseFunctionTaskResponse() - if include_optional: - return BaseResponseFunctionTaskResponse( - status = True, - data = revengai.models.function_task_response.FunctionTaskResponse( - status = 'UNINITIALISED', - error_message = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionTaskResponse( - ) - """ - - def testBaseResponseFunctionTaskResponse(self): - """Test BaseResponseFunctionTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_function_threat_score.py b/revengai/test/test_base_response_function_threat_score.py deleted file mode 100644 index f7c49a6..0000000 --- a/revengai/test/test_base_response_function_threat_score.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_function_threat_score import BaseResponseFunctionThreatScore - -class TestBaseResponseFunctionThreatScore(unittest.TestCase): - """BaseResponseFunctionThreatScore unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionThreatScore: - """Test BaseResponseFunctionThreatScore - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionThreatScore` - """ - model = BaseResponseFunctionThreatScore() - if include_optional: - return BaseResponseFunctionThreatScore( - status = True, - data = revengai.models.function_threat_score.FunctionThreatScore( - results = { - 'key' : revengai.models.function_analysis_threat_score_data.FunctionAnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56, ) - }, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionThreatScore( - ) - """ - - def testBaseResponseFunctionThreatScore(self): - """Test BaseResponseFunctionThreatScore""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_functions_detail_response.py b/revengai/test/test_base_response_functions_detail_response.py deleted file mode 100644 index f5841c3..0000000 --- a/revengai/test/test_base_response_functions_detail_response.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse - -class TestBaseResponseFunctionsDetailResponse(unittest.TestCase): - """BaseResponseFunctionsDetailResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseFunctionsDetailResponse: - """Test BaseResponseFunctionsDetailResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseFunctionsDetailResponse` - """ - model = BaseResponseFunctionsDetailResponse() - if include_optional: - return BaseResponseFunctionsDetailResponse( - status = True, - data = revengai.models.functions_detail_response.FunctionsDetailResponse( - function_id = 56, - function_name = '', - function_vaddr = 56, - function_size = 56, - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - debug_hash = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseFunctionsDetailResponse( - ) - """ - - def testBaseResponseFunctionsDetailResponse(self): - """Test BaseResponseFunctionsDetailResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_generate_function_data_types.py b/revengai/test/test_base_response_generate_function_data_types.py deleted file mode 100644 index f082721..0000000 --- a/revengai/test/test_base_response_generate_function_data_types.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_generate_function_data_types import BaseResponseGenerateFunctionDataTypes - -class TestBaseResponseGenerateFunctionDataTypes(unittest.TestCase): - """BaseResponseGenerateFunctionDataTypes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseGenerateFunctionDataTypes: - """Test BaseResponseGenerateFunctionDataTypes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseGenerateFunctionDataTypes` - """ - model = BaseResponseGenerateFunctionDataTypes() - if include_optional: - return BaseResponseGenerateFunctionDataTypes( - status = True, - data = revengai.models.generate_function_data_types.GenerateFunctionDataTypes( - queued = True, - reference = '', - data_types_list = revengai.models.generation_status_list.GenerationStatusList( - total_count = 56, - total_data_types_count = 56, - items = [ - revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, - completed = True, - status = '', ) - ], ), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseGenerateFunctionDataTypes( - ) - """ - - def testBaseResponseGenerateFunctionDataTypes(self): - """Test BaseResponseGenerateFunctionDataTypes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_generation_status_list.py b/revengai/test/test_base_response_generation_status_list.py deleted file mode 100644 index 2d8b02d..0000000 --- a/revengai/test/test_base_response_generation_status_list.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_generation_status_list import BaseResponseGenerationStatusList - -class TestBaseResponseGenerationStatusList(unittest.TestCase): - """BaseResponseGenerationStatusList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseGenerationStatusList: - """Test BaseResponseGenerationStatusList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseGenerationStatusList` - """ - model = BaseResponseGenerationStatusList() - if include_optional: - return BaseResponseGenerationStatusList( - status = True, - data = revengai.models.generation_status_list.GenerationStatusList( - total_count = 56, - total_data_types_count = 56, - items = [ - revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, - completed = True, - status = '', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseGenerationStatusList( - ) - """ - - def testBaseResponseGenerationStatusList(self): - """Test BaseResponseGenerationStatusList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_get_ai_decompilation_rating_response.py b/revengai/test/test_base_response_get_ai_decompilation_rating_response.py deleted file mode 100644 index 2b2008e..0000000 --- a/revengai/test/test_base_response_get_ai_decompilation_rating_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_get_ai_decompilation_rating_response import BaseResponseGetAiDecompilationRatingResponse - -class TestBaseResponseGetAiDecompilationRatingResponse(unittest.TestCase): - """BaseResponseGetAiDecompilationRatingResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseGetAiDecompilationRatingResponse: - """Test BaseResponseGetAiDecompilationRatingResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseGetAiDecompilationRatingResponse` - """ - model = BaseResponseGetAiDecompilationRatingResponse() - if include_optional: - return BaseResponseGetAiDecompilationRatingResponse( - status = True, - data = revengai.models.get_ai_decompilation_rating_response.GetAiDecompilationRatingResponse( - rating = 'POSITIVE', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseGetAiDecompilationRatingResponse( - ) - """ - - def testBaseResponseGetAiDecompilationRatingResponse(self): - """Test BaseResponseGetAiDecompilationRatingResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_get_ai_decompilation_task.py b/revengai/test/test_base_response_get_ai_decompilation_task.py deleted file mode 100644 index 916b0f5..0000000 --- a/revengai/test/test_base_response_get_ai_decompilation_task.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_get_ai_decompilation_task import BaseResponseGetAiDecompilationTask - -class TestBaseResponseGetAiDecompilationTask(unittest.TestCase): - """BaseResponseGetAiDecompilationTask unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseGetAiDecompilationTask: - """Test BaseResponseGetAiDecompilationTask - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseGetAiDecompilationTask` - """ - model = BaseResponseGetAiDecompilationTask() - if include_optional: - return BaseResponseGetAiDecompilationTask( - status = True, - data = revengai.models.get_ai_decompilation_task.GetAiDecompilationTask( - status = '', - decompilation = '', - raw_decompilation = '', - function_mapping = { - 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', - addr = null, - is_external = True, ) - }, - function_mapping_full = revengai.models.function_mapping_full.FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) - }, - inverse_function_map = { - 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', - addr = null, - is_external = True, ) - }, - unmatched_functions = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_external_vars = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_custom_types = { - 'key' : - }, - unmatched_strings = { - 'key' : - }, - unmatched_vars = { - 'key' : - }, - unmatched_go_to_labels = { - 'key' : - }, - unmatched_custom_function_pointers = { - 'key' : - }, - unmatched_variadic_lists = { - 'key' : - }, - fields = { - 'key' : { - 'key' : - } - }, ), - summary = '', - ai_summary = '', - raw_ai_summary = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseGetAiDecompilationTask( - ) - """ - - def testBaseResponseGetAiDecompilationTask(self): - """Test BaseResponseGetAiDecompilationTask""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_get_public_user_response.py b/revengai/test/test_base_response_get_public_user_response.py deleted file mode 100644 index be52f97..0000000 --- a/revengai/test/test_base_response_get_public_user_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse - -class TestBaseResponseGetPublicUserResponse(unittest.TestCase): - """BaseResponseGetPublicUserResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseGetPublicUserResponse: - """Test BaseResponseGetPublicUserResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseGetPublicUserResponse` - """ - model = BaseResponseGetPublicUserResponse() - if include_optional: - return BaseResponseGetPublicUserResponse( - status = True, - data = revengai.models.get_public_user_response.GetPublicUserResponse( - username = '', - user_id = 56, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseGetPublicUserResponse( - ) - """ - - def testBaseResponseGetPublicUserResponse(self): - """Test BaseResponseGetPublicUserResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_get_user_response.py b/revengai/test/test_base_response_get_user_response.py deleted file mode 100644 index 0aae9c8..0000000 --- a/revengai/test/test_base_response_get_user_response.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_get_user_response import BaseResponseGetUserResponse - -class TestBaseResponseGetUserResponse(unittest.TestCase): - """BaseResponseGetUserResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseGetUserResponse: - """Test BaseResponseGetUserResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseGetUserResponse` - """ - model = BaseResponseGetUserResponse() - if include_optional: - return BaseResponseGetUserResponse( - status = True, - data = revengai.models.get_user_response.GetUserResponse( - username = '', - user_id = 56, - first_name = '', - last_name = '', - email = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tutorial_seen = True, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseGetUserResponse( - ) - """ - - def testBaseResponseGetUserResponse(self): - """Test BaseResponseGetUserResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_collection_results.py b/revengai/test/test_base_response_list_collection_results.py deleted file mode 100644 index fb28df3..0000000 --- a/revengai/test/test_base_response_list_collection_results.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_collection_results import BaseResponseListCollectionResults - -class TestBaseResponseListCollectionResults(unittest.TestCase): - """BaseResponseListCollectionResults unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListCollectionResults: - """Test BaseResponseListCollectionResults - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListCollectionResults` - """ - model = BaseResponseListCollectionResults() - if include_optional: - return BaseResponseListCollectionResults( - status = True, - data = revengai.models.list_collection_results.ListCollectionResults( - results = [ - revengai.models.collection_list_item.CollectionListItem( - collection_name = '', - description = '', - collection_scope = '', - collection_owner = '', - official_collection = True, - collection_tags = [ - '' - ], - collection_size = 56, - collection_id = 56, - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_name = '', - team_id = 56, ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListCollectionResults( - ) - """ - - def testBaseResponseListCollectionResults(self): - """Test BaseResponseListCollectionResults""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_comment_response.py b/revengai/test/test_base_response_list_comment_response.py deleted file mode 100644 index 4097bf2..0000000 --- a/revengai/test/test_base_response_list_comment_response.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_comment_response import BaseResponseListCommentResponse - -class TestBaseResponseListCommentResponse(unittest.TestCase): - """BaseResponseListCommentResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListCommentResponse: - """Test BaseResponseListCommentResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListCommentResponse` - """ - model = BaseResponseListCommentResponse() - if include_optional: - return BaseResponseListCommentResponse( - status = True, - data = [ - revengai.models.comment_response.CommentResponse( - content = '', - id = 56, - user_id = 56, - resource_type = '', - resource_id = '', - context = null, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListCommentResponse( - ) - """ - - def testBaseResponseListCommentResponse(self): - """Test BaseResponseListCommentResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_die_match.py b/revengai/test/test_base_response_list_die_match.py deleted file mode 100644 index a1f0e92..0000000 --- a/revengai/test/test_base_response_list_die_match.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_die_match import BaseResponseListDieMatch - -class TestBaseResponseListDieMatch(unittest.TestCase): - """BaseResponseListDieMatch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListDieMatch: - """Test BaseResponseListDieMatch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListDieMatch` - """ - model = BaseResponseListDieMatch() - if include_optional: - return BaseResponseListDieMatch( - status = True, - data = [ - revengai.models.die_match.DieMatch( - name = '', - type = '', - display = '', - version = '', ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListDieMatch( - ) - """ - - def testBaseResponseListDieMatch(self): - """Test BaseResponseListDieMatch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_function_box_plot_confidence.py b/revengai/test/test_base_response_list_function_box_plot_confidence.py deleted file mode 100644 index cf5a979..0000000 --- a/revengai/test/test_base_response_list_function_box_plot_confidence.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_function_box_plot_confidence import BaseResponseListFunctionBoxPlotConfidence - -class TestBaseResponseListFunctionBoxPlotConfidence(unittest.TestCase): - """BaseResponseListFunctionBoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListFunctionBoxPlotConfidence: - """Test BaseResponseListFunctionBoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListFunctionBoxPlotConfidence` - """ - model = BaseResponseListFunctionBoxPlotConfidence() - if include_optional: - return BaseResponseListFunctionBoxPlotConfidence( - status = True, - data = [ - revengai.models.function_box_plot_confidence.FunctionBoxPlotConfidence( - function_id = 56, - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ), ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListFunctionBoxPlotConfidence( - ) - """ - - def testBaseResponseListFunctionBoxPlotConfidence(self): - """Test BaseResponseListFunctionBoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_function_name_history.py b/revengai/test/test_base_response_list_function_name_history.py deleted file mode 100644 index 08eedfa..0000000 --- a/revengai/test/test_base_response_list_function_name_history.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_function_name_history import BaseResponseListFunctionNameHistory - -class TestBaseResponseListFunctionNameHistory(unittest.TestCase): - """BaseResponseListFunctionNameHistory unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListFunctionNameHistory: - """Test BaseResponseListFunctionNameHistory - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListFunctionNameHistory` - """ - model = BaseResponseListFunctionNameHistory() - if include_optional: - return BaseResponseListFunctionNameHistory( - status = True, - data = [ - revengai.models.function_name_history.FunctionNameHistory( - history_id = 56, - change_made_by = '', - function_name = '', - is_debug = True, - source_type = '', - created_at = '', ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListFunctionNameHistory( - ) - """ - - def testBaseResponseListFunctionNameHistory(self): - """Test BaseResponseListFunctionNameHistory""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_sbom.py b/revengai/test/test_base_response_list_sbom.py deleted file mode 100644 index e6f3219..0000000 --- a/revengai/test/test_base_response_list_sbom.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_sbom import BaseResponseListSBOM - -class TestBaseResponseListSBOM(unittest.TestCase): - """BaseResponseListSBOM unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListSBOM: - """Test BaseResponseListSBOM - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListSBOM` - """ - model = BaseResponseListSBOM() - if include_optional: - return BaseResponseListSBOM( - status = True, - data = [ - revengai.models.sbom.SBOM( - packages = [ - revengai.models.sbom_package.SBOMPackage( - name = '', - version = '', ) - ], - imported_libs = [ - '' - ], ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListSBOM( - ) - """ - - def testBaseResponseListSBOM(self): - """Test BaseResponseListSBOM""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_similar_functions_response.py b/revengai/test/test_base_response_list_similar_functions_response.py deleted file mode 100644 index 6eef5e7..0000000 --- a/revengai/test/test_base_response_list_similar_functions_response.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_similar_functions_response import BaseResponseListSimilarFunctionsResponse - -class TestBaseResponseListSimilarFunctionsResponse(unittest.TestCase): - """BaseResponseListSimilarFunctionsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListSimilarFunctionsResponse: - """Test BaseResponseListSimilarFunctionsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListSimilarFunctionsResponse` - """ - model = BaseResponseListSimilarFunctionsResponse() - if include_optional: - return BaseResponseListSimilarFunctionsResponse( - status = True, - data = [ - revengai.models.similar_functions_response.SimilarFunctionsResponse( - function_id = 56, - function_name = '', - binary_id = 56, - binary_name = '', - distance = 1.337, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - sha_256_hash = '', ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListSimilarFunctionsResponse( - ) - """ - - def testBaseResponseListSimilarFunctionsResponse(self): - """Test BaseResponseListSimilarFunctionsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py b/revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py deleted file mode 100644 index 1d48dde..0000000 --- a/revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_tag_origin_box_plot_confidence import BaseResponseListTagOriginBoxPlotConfidence - -class TestBaseResponseListTagOriginBoxPlotConfidence(unittest.TestCase): - """BaseResponseListTagOriginBoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListTagOriginBoxPlotConfidence: - """Test BaseResponseListTagOriginBoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListTagOriginBoxPlotConfidence` - """ - model = BaseResponseListTagOriginBoxPlotConfidence() - if include_optional: - return BaseResponseListTagOriginBoxPlotConfidence( - status = True, - data = [ - revengai.models.tag_origin_box_plot_confidence.TagOriginBoxPlotConfidence( - tag = revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ), - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ), ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListTagOriginBoxPlotConfidence( - ) - """ - - def testBaseResponseListTagOriginBoxPlotConfidence(self): - """Test BaseResponseListTagOriginBoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_list_user_activity_response.py b/revengai/test/test_base_response_list_user_activity_response.py deleted file mode 100644 index 6d5c4dc..0000000 --- a/revengai/test/test_base_response_list_user_activity_response.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse - -class TestBaseResponseListUserActivityResponse(unittest.TestCase): - """BaseResponseListUserActivityResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseListUserActivityResponse: - """Test BaseResponseListUserActivityResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseListUserActivityResponse` - """ - model = BaseResponseListUserActivityResponse() - if include_optional: - return BaseResponseListUserActivityResponse( - status = True, - data = [ - revengai.models.user_activity_response.UserActivityResponse( - actions = '', - activity_scope = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - message = '', - sources = '', - username = '', ) - ], - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseListUserActivityResponse( - ) - """ - - def testBaseResponseListUserActivityResponse(self): - """Test BaseResponseListUserActivityResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_login_response.py b/revengai/test/test_base_response_login_response.py deleted file mode 100644 index 53ab40e..0000000 --- a/revengai/test/test_base_response_login_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_login_response import BaseResponseLoginResponse - -class TestBaseResponseLoginResponse(unittest.TestCase): - """BaseResponseLoginResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseLoginResponse: - """Test BaseResponseLoginResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseLoginResponse` - """ - model = BaseResponseLoginResponse() - if include_optional: - return BaseResponseLoginResponse( - status = True, - data = revengai.models.login_response.LoginResponse( - token = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseLoginResponse( - ) - """ - - def testBaseResponseLoginResponse(self): - """Test BaseResponseLoginResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_logs.py b/revengai/test/test_base_response_logs.py deleted file mode 100644 index 6dd9468..0000000 --- a/revengai/test/test_base_response_logs.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_logs import BaseResponseLogs - -class TestBaseResponseLogs(unittest.TestCase): - """BaseResponseLogs unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseLogs: - """Test BaseResponseLogs - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseLogs` - """ - model = BaseResponseLogs() - if include_optional: - return BaseResponseLogs( - status = True, - data = revengai.models.logs.Logs( - logs = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseLogs( - ) - """ - - def testBaseResponseLogs(self): - """Test BaseResponseLogs""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_nearest_neighbor_analysis.py b/revengai/test/test_base_response_nearest_neighbor_analysis.py deleted file mode 100644 index b6f9263..0000000 --- a/revengai/test/test_base_response_nearest_neighbor_analysis.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_nearest_neighbor_analysis import BaseResponseNearestNeighborAnalysis - -class TestBaseResponseNearestNeighborAnalysis(unittest.TestCase): - """BaseResponseNearestNeighborAnalysis unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseNearestNeighborAnalysis: - """Test BaseResponseNearestNeighborAnalysis - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseNearestNeighborAnalysis` - """ - model = BaseResponseNearestNeighborAnalysis() - if include_optional: - return BaseResponseNearestNeighborAnalysis( - status = True, - data = { - 'key' : { - 'key' : revengai.models.nearest_neighbor.NearestNeighbor( - distance = 1.337, - nearest_neighbor_analysis_id = 56, - nearest_neighbor_analysis_name = '', - nearest_neighbor_function_name = '', - nearest_neighbor_function_name_mangled = '', - nearest_neighbor_binary_id = 56, - nearest_neighbor_sha_256_hash = '', - nearest_neighbor_debug = True, ) - } - }, - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseNearestNeighborAnalysis( - ) - """ - - def testBaseResponseNearestNeighborAnalysis(self): - """Test BaseResponseNearestNeighborAnalysis""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_network_overview_response.py b/revengai/test/test_base_response_network_overview_response.py deleted file mode 100644 index d6199b7..0000000 --- a/revengai/test/test_base_response_network_overview_response.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_network_overview_response import BaseResponseNetworkOverviewResponse - -class TestBaseResponseNetworkOverviewResponse(unittest.TestCase): - """BaseResponseNetworkOverviewResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseNetworkOverviewResponse: - """Test BaseResponseNetworkOverviewResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseNetworkOverviewResponse` - """ - model = BaseResponseNetworkOverviewResponse() - if include_optional: - return BaseResponseNetworkOverviewResponse( - status = True, - data = revengai.models.network_overview_response.NetworkOverviewResponse( - dns = [ - revengai.models.network_overview_dns.NetworkOverviewDns( - host = '', - type = '', - answers = [ - revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ], ) - ], - metadata = [ - revengai.models.network_overview_metadata.NetworkOverviewMetadata( - host = '', - country_code = '', - asn = '', - type = 'metadata', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseNetworkOverviewResponse( - ) - """ - - def testBaseResponseNetworkOverviewResponse(self): - """Test BaseResponseNetworkOverviewResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_params.py b/revengai/test/test_base_response_params.py deleted file mode 100644 index 402e163..0000000 --- a/revengai/test/test_base_response_params.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_params import BaseResponseParams - -class TestBaseResponseParams(unittest.TestCase): - """BaseResponseParams unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseParams: - """Test BaseResponseParams - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseParams` - """ - model = BaseResponseParams() - if include_optional: - return BaseResponseParams( - status = True, - data = revengai.models.params.Params( - debug_hash = '', - binary_size = 56, - architecture = '', - binary_type = '', - binary_format = '', - binary_dynamic = True, - model_name = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseParams( - ) - """ - - def testBaseResponseParams(self): - """Test BaseResponseParams""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_process_dumps.py b/revengai/test/test_base_response_process_dumps.py deleted file mode 100644 index 226a0ec..0000000 --- a/revengai/test/test_base_response_process_dumps.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_process_dumps import BaseResponseProcessDumps - -class TestBaseResponseProcessDumps(unittest.TestCase): - """BaseResponseProcessDumps unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseProcessDumps: - """Test BaseResponseProcessDumps - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseProcessDumps` - """ - model = BaseResponseProcessDumps() - if include_optional: - return BaseResponseProcessDumps( - status = True, - data = revengai.models.process_dumps.ProcessDumps( - success = True, - data = revengai.models.process_dumps_data.ProcessDumpsData( - count = 56, - dumps = [ - revengai.models.process_dump.ProcessDump( - base_address = 56, - actual_filename = '', - filename_friendly = '', - extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56, ), ) - ], ), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseProcessDumps( - ) - """ - - def testBaseResponseProcessDumps(self): - """Test BaseResponseProcessDumps""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_process_registry.py b/revengai/test/test_base_response_process_registry.py deleted file mode 100644 index 6ce7709..0000000 --- a/revengai/test/test_base_response_process_registry.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_process_registry import BaseResponseProcessRegistry - -class TestBaseResponseProcessRegistry(unittest.TestCase): - """BaseResponseProcessRegistry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseProcessRegistry: - """Test BaseResponseProcessRegistry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseProcessRegistry` - """ - model = BaseResponseProcessRegistry() - if include_optional: - return BaseResponseProcessRegistry( - status = True, - data = revengai.models.process_registry.ProcessRegistry( - success = True, - data = { - 'key' : [ - revengai.models.registry.Registry( - method = '', - key = '', - value_name = '', - value = '', ) - ] - }, ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseProcessRegistry( - ) - """ - - def testBaseResponseProcessRegistry(self): - """Test BaseResponseProcessRegistry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_process_tree.py b/revengai/test/test_base_response_process_tree.py deleted file mode 100644 index 26ebf38..0000000 --- a/revengai/test/test_base_response_process_tree.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_process_tree import BaseResponseProcessTree - -class TestBaseResponseProcessTree(unittest.TestCase): - """BaseResponseProcessTree unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseProcessTree: - """Test BaseResponseProcessTree - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseProcessTree` - """ - model = BaseResponseProcessTree() - if include_optional: - return BaseResponseProcessTree( - status = True, - data = revengai.models.process_tree.ProcessTree( - success = True, - data = [ - revengai.models.process.Process( - pid = 56, - procname = '', - executable_name = '', - args = [ - '' - ], - ts_from = 1.337, - ts_to = 1.337, - children = [ - null - ], ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseProcessTree( - ) - """ - - def testBaseResponseProcessTree(self): - """Test BaseResponseProcessTree""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_queued_security_checks_task_response.py b/revengai/test/test_base_response_queued_security_checks_task_response.py deleted file mode 100644 index e5689ad..0000000 --- a/revengai/test/test_base_response_queued_security_checks_task_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_queued_security_checks_task_response import BaseResponseQueuedSecurityChecksTaskResponse - -class TestBaseResponseQueuedSecurityChecksTaskResponse(unittest.TestCase): - """BaseResponseQueuedSecurityChecksTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseQueuedSecurityChecksTaskResponse: - """Test BaseResponseQueuedSecurityChecksTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseQueuedSecurityChecksTaskResponse` - """ - model = BaseResponseQueuedSecurityChecksTaskResponse() - if include_optional: - return BaseResponseQueuedSecurityChecksTaskResponse( - status = True, - data = revengai.models.queued_security_checks_task_response.QueuedSecurityChecksTaskResponse( - task_id = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseQueuedSecurityChecksTaskResponse( - ) - """ - - def testBaseResponseQueuedSecurityChecksTaskResponse(self): - """Test BaseResponseQueuedSecurityChecksTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_recent.py b/revengai/test/test_base_response_recent.py deleted file mode 100644 index a8c0f72..0000000 --- a/revengai/test/test_base_response_recent.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_recent import BaseResponseRecent - -class TestBaseResponseRecent(unittest.TestCase): - """BaseResponseRecent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseRecent: - """Test BaseResponseRecent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseRecent` - """ - model = BaseResponseRecent() - if include_optional: - return BaseResponseRecent( - status = True, - data = revengai.models.recent.Recent( - results = [ - revengai.models.analysis_record.AnalysisRecord( - analysis_id = 56, - analysis_scope = '', - binary_id = 56, - model_id = 56, - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, - binary_name = '', - sha_256_hash = '', - binary_size = 56, - username = '', - dynamic_execution_status = 'PENDING', - dynamic_execution_task_id = 56, ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseRecent( - ) - """ - - def testBaseResponseRecent(self): - """Test BaseResponseRecent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_security_checks_response.py b/revengai/test/test_base_response_security_checks_response.py deleted file mode 100644 index a1773ec..0000000 --- a/revengai/test/test_base_response_security_checks_response.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse - -class TestBaseResponseSecurityChecksResponse(unittest.TestCase): - """BaseResponseSecurityChecksResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseSecurityChecksResponse: - """Test BaseResponseSecurityChecksResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseSecurityChecksResponse` - """ - model = BaseResponseSecurityChecksResponse() - if include_optional: - return BaseResponseSecurityChecksResponse( - status = True, - data = revengai.models.security_checks_response.SecurityChecksResponse( - binary_id = 56, - total_results = 56, - results = [ - revengai.models.security_checks_result.SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseSecurityChecksResponse( - ) - """ - - def testBaseResponseSecurityChecksResponse(self): - """Test BaseResponseSecurityChecksResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_status.py b/revengai/test/test_base_response_status.py deleted file mode 100644 index c6765a7..0000000 --- a/revengai/test/test_base_response_status.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_status import BaseResponseStatus - -class TestBaseResponseStatus(unittest.TestCase): - """BaseResponseStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseStatus: - """Test BaseResponseStatus - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseStatus` - """ - model = BaseResponseStatus() - if include_optional: - return BaseResponseStatus( - status = True, - data = revengai.models.status.Status( - analysis_id = 56, - analysis_status = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseStatus( - ) - """ - - def testBaseResponseStatus(self): - """Test BaseResponseStatus""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_str.py b/revengai/test/test_base_response_str.py deleted file mode 100644 index d337696..0000000 --- a/revengai/test/test_base_response_str.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_str import BaseResponseStr - -class TestBaseResponseStr(unittest.TestCase): - """BaseResponseStr unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseStr: - """Test BaseResponseStr - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseStr` - """ - model = BaseResponseStr() - if include_optional: - return BaseResponseStr( - status = True, - data = '', - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseStr( - ) - """ - - def testBaseResponseStr(self): - """Test BaseResponseStr""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_symbols_info.py b/revengai/test/test_base_response_symbols_info.py deleted file mode 100644 index c57c370..0000000 --- a/revengai/test/test_base_response_symbols_info.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_symbols_info import BaseResponseSymbolsInfo - -class TestBaseResponseSymbolsInfo(unittest.TestCase): - """BaseResponseSymbolsInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseSymbolsInfo: - """Test BaseResponseSymbolsInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseSymbolsInfo` - """ - model = BaseResponseSymbolsInfo() - if include_optional: - return BaseResponseSymbolsInfo( - status = True, - data = revengai.models.symbols_info.SymbolsInfo( - base_addr = 56, - provided_boundaries = revengai.models.boundary.Boundary( - start_addr = 56, - end_addr = 56, - name = '', ), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseSymbolsInfo( - ) - """ - - def testBaseResponseSymbolsInfo(self): - """Test BaseResponseSymbolsInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_tag_search_response.py b/revengai/test/test_base_response_tag_search_response.py deleted file mode 100644 index bdc9147..0000000 --- a/revengai/test/test_base_response_tag_search_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse - -class TestBaseResponseTagSearchResponse(unittest.TestCase): - """BaseResponseTagSearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseTagSearchResponse: - """Test BaseResponseTagSearchResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseTagSearchResponse` - """ - model = BaseResponseTagSearchResponse() - if include_optional: - return BaseResponseTagSearchResponse( - status = True, - data = revengai.models.tag_search_response.TagSearchResponse( - results = [ - revengai.models.tag_search_result.TagSearchResult( - tag_id = 56, - tag = '', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseTagSearchResponse( - ) - """ - - def testBaseResponseTagSearchResponse(self): - """Test BaseResponseTagSearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_task_response.py b/revengai/test/test_base_response_task_response.py deleted file mode 100644 index 34b6c69..0000000 --- a/revengai/test/test_base_response_task_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_task_response import BaseResponseTaskResponse - -class TestBaseResponseTaskResponse(unittest.TestCase): - """BaseResponseTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseTaskResponse: - """Test BaseResponseTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseTaskResponse` - """ - model = BaseResponseTaskResponse() - if include_optional: - return BaseResponseTaskResponse( - status = True, - data = revengai.models.task_response.TaskResponse( - status = 'UNINITIALISED', - error_message = '', ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseTaskResponse( - ) - """ - - def testBaseResponseTaskResponse(self): - """Test BaseResponseTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_ttps.py b/revengai/test/test_base_response_ttps.py deleted file mode 100644 index ef00a70..0000000 --- a/revengai/test/test_base_response_ttps.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_ttps import BaseResponseTTPS - -class TestBaseResponseTTPS(unittest.TestCase): - """BaseResponseTTPS unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseTTPS: - """Test BaseResponseTTPS - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseTTPS` - """ - model = BaseResponseTTPS() - if include_optional: - return BaseResponseTTPS( - status = True, - data = revengai.models.ttps.TTPS( - success = True, - data = revengai.models.ttps_data.TTPS_Data( - score = 56, - ttps = [ - revengai.models.ttps_element.TTPS_Element( - name = '', - attack = [ - revengai.models.ttps_attack.TTPS_Attack( - id = '', - name = '', ) - ], - occurrences = [ - revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) - ], - score = 56, ) - ], ), ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseTTPS( - ) - """ - - def testBaseResponseTTPS(self): - """Test BaseResponseTTPS""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_base_response_vulnerabilities.py b/revengai/test/test_base_response_vulnerabilities.py deleted file mode 100644 index f8dffc6..0000000 --- a/revengai/test/test_base_response_vulnerabilities.py +++ /dev/null @@ -1,77 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.base_response_vulnerabilities import BaseResponseVulnerabilities - -class TestBaseResponseVulnerabilities(unittest.TestCase): - """BaseResponseVulnerabilities unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponseVulnerabilities: - """Test BaseResponseVulnerabilities - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponseVulnerabilities` - """ - model = BaseResponseVulnerabilities() - if include_optional: - return BaseResponseVulnerabilities( - status = True, - data = revengai.models.vulnerabilities.Vulnerabilities( - vulnerabilities = [ - revengai.models.vulnerability.Vulnerability( - vendor = '', - product = '', - version = '', - cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', - cvss_vector = '', - remarks = '', - score = 1.337, - is_unknown = True, ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return BaseResponseVulnerabilities( - ) - """ - - def testBaseResponseVulnerabilities(self): - """Test BaseResponseVulnerabilities""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_basic.py b/revengai/test/test_basic.py deleted file mode 100644 index 567ba50..0000000 --- a/revengai/test/test_basic.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.basic import Basic - -class TestBasic(unittest.TestCase): - """Basic unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Basic: - """Test Basic - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Basic` - """ - model = Basic() - if include_optional: - return Basic( - binary_name = '', - binary_size = 56, - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - sha_256_hash = '', - model_name = '', - owner_username = '', - analysis_scope = '', - is_owner = True, - debug = True, - function_count = 56, - is_advanced = True - ) - else: - return Basic( - binary_name = '', - binary_size = 56, - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - sha_256_hash = '', - model_name = '', - owner_username = '', - analysis_scope = '', - is_owner = True, - debug = True, - function_count = 56, - is_advanced = True, - ) - """ - - def testBasic(self): - """Test Basic""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_batch_ann.py b/revengai/test/test_batch_ann.py deleted file mode 100644 index f5a921c..0000000 --- a/revengai/test/test_batch_ann.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.batch_ann import BatchAnn - -class TestBatchAnn(unittest.TestCase): - """BatchAnn unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BatchAnn: - """Test BatchAnn - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BatchAnn` - """ - model = BatchAnn() - if include_optional: - return BatchAnn( - success = None, - settings = None, - function_matches = None - ) - else: - return BatchAnn( - settings = None, - function_matches = None, - ) - """ - - def testBatchAnn(self): - """Test BatchAnn""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_batch_function_rename.py b/revengai/test/test_batch_function_rename.py deleted file mode 100644 index e68f7e9..0000000 --- a/revengai/test/test_batch_function_rename.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.batch_function_rename import BatchFunctionRename - -class TestBatchFunctionRename(unittest.TestCase): - """BatchFunctionRename unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BatchFunctionRename: - """Test BatchFunctionRename - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BatchFunctionRename` - """ - model = BatchFunctionRename() - if include_optional: - return BatchFunctionRename( - new_name_mapping = [ - revengai.models.batch_function_rename_record.BatchFunctionRenameRecord( - function_id = 56, - function_name = '0', ) - ] - ) - else: - return BatchFunctionRename( - new_name_mapping = [ - revengai.models.batch_function_rename_record.BatchFunctionRenameRecord( - function_id = 56, - function_name = '0', ) - ], - ) - """ - - def testBatchFunctionRename(self): - """Test BatchFunctionRename""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_batch_function_rename_record.py b/revengai/test/test_batch_function_rename_record.py deleted file mode 100644 index 488f366..0000000 --- a/revengai/test/test_batch_function_rename_record.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.batch_function_rename_record import BatchFunctionRenameRecord - -class TestBatchFunctionRenameRecord(unittest.TestCase): - """BatchFunctionRenameRecord unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BatchFunctionRenameRecord: - """Test BatchFunctionRenameRecord - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BatchFunctionRenameRecord` - """ - model = BatchFunctionRenameRecord() - if include_optional: - return BatchFunctionRenameRecord( - function_id = 56, - function_name = '0' - ) - else: - return BatchFunctionRenameRecord( - function_id = 56, - function_name = '0', - ) - """ - - def testBatchFunctionRenameRecord(self): - """Test BatchFunctionRenameRecord""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binaries_api.py b/revengai/test/test_binaries_api.py deleted file mode 100644 index b3d0479..0000000 --- a/revengai/test/test_binaries_api.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.binaries_api import BinariesApi - - -class TestBinariesApi(unittest.TestCase): - """BinariesApi unit test stubs""" - - def setUp(self) -> None: - self.api = BinariesApi() - - def tearDown(self) -> None: - pass - - def test_download_zipped_binary(self) -> None: - """Test case for download_zipped_binary - - Downloads a zipped binary with password protection - """ - pass - - def test_get_binary_additional_details(self) -> None: - """Test case for get_binary_additional_details - - Gets the additional details of a binary - """ - pass - - def test_get_binary_details(self) -> None: - """Test case for get_binary_details - - Gets the details of a binary - """ - pass - - def test_get_binary_die_info(self) -> None: - """Test case for get_binary_die_info - - Gets the die info of a binary - """ - pass - - def test_get_binary_externals(self) -> None: - """Test case for get_binary_externals - - Gets the external details of a binary - """ - pass - - def test_get_related_binaries(self) -> None: - """Test case for get_related_binaries - - Gets the related binaries of a binary. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_additional_details_data_response.py b/revengai/test/test_binary_additional_details_data_response.py deleted file mode 100644 index bc025a1..0000000 --- a/revengai/test/test_binary_additional_details_data_response.py +++ /dev/null @@ -1,256 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_additional_details_data_response import BinaryAdditionalDetailsDataResponse - -class TestBinaryAdditionalDetailsDataResponse(unittest.TestCase): - """BinaryAdditionalDetailsDataResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryAdditionalDetailsDataResponse: - """Test BinaryAdditionalDetailsDataResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryAdditionalDetailsDataResponse` - """ - model = BinaryAdditionalDetailsDataResponse() - if include_optional: - return BinaryAdditionalDetailsDataResponse( - file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', - entropy = 1.337, - hashes = revengai.models.file_hashes.FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '', ), ), - pe = revengai.models.pe_model.PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), - architecture = '', - checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, - debug_info = revengai.models.pdb_debug_model.PDBDebugModel( - debug_entries = [ - revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', - age = 56, - path = '', ) - ], ), - number_of_resources = 56, - entry_point = revengai.models.entrypoint_model.EntrypointModel( - address = 56, - first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', - export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ), ), - elf = revengai.models.elf_model.ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', - import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = 56, - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, - version_info = { - 'key' : null - }, ) - ) - else: - return BinaryAdditionalDetailsDataResponse( - file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', - entropy = 1.337, - hashes = revengai.models.file_hashes.FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '', ), ), - ) - """ - - def testBinaryAdditionalDetailsDataResponse(self): - """Test BinaryAdditionalDetailsDataResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_additional_response.py b/revengai/test/test_binary_additional_response.py deleted file mode 100644 index a22b7ff..0000000 --- a/revengai/test/test_binary_additional_response.py +++ /dev/null @@ -1,441 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_additional_response import BinaryAdditionalResponse - -class TestBinaryAdditionalResponse(unittest.TestCase): - """BinaryAdditionalResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryAdditionalResponse: - """Test BinaryAdditionalResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryAdditionalResponse` - """ - model = BinaryAdditionalResponse() - if include_optional: - return BinaryAdditionalResponse( - binary_id = 56, - details = revengai.models.binary_additional_details_data_response.BinaryAdditionalDetailsDataResponse( - file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', - entropy = 1.337, - hashes = revengai.models.file_hashes.FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '', ), ), - pe = revengai.models.pe_model.PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), - architecture = '', - checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, - debug_info = revengai.models.pdb_debug_model.PDBDebugModel( - debug_entries = [ - revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', - age = 56, - path = '', ) - ], ), - number_of_resources = 56, - entry_point = revengai.models.entrypoint_model.EntrypointModel( - address = 56, - first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', - export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ), ), - elf = revengai.models.elf_model.ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', - import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = 56, - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, - version_info = { - 'key' : null - }, ), ), - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return BinaryAdditionalResponse( - binary_id = 56, - details = revengai.models.binary_additional_details_data_response.BinaryAdditionalDetailsDataResponse( - file = revengai.models.file_metadata.FileMetadata( - size = 56, - friendly_size = '', - entropy = 1.337, - hashes = revengai.models.file_hashes.FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '', ), ), - pe = revengai.models.pe_model.PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), - architecture = '', - checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, - debug_info = revengai.models.pdb_debug_model.PDBDebugModel( - debug_entries = [ - revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', - age = 56, - path = '', ) - ], ), - number_of_resources = 56, - entry_point = revengai.models.entrypoint_model.EntrypointModel( - address = 56, - first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', - export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ), ), - elf = revengai.models.elf_model.ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', - import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = 56, - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, - version_info = { - 'key' : null - }, ), ), - ) - """ - - def testBinaryAdditionalResponse(self): - """Test BinaryAdditionalResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_ann_form.py b/revengai/test/test_binary_ann_form.py deleted file mode 100644 index 9e3b73f..0000000 --- a/revengai/test/test_binary_ann_form.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_ann_form import BinaryAnnForm - -class TestBinaryAnnForm(unittest.TestCase): - """BinaryAnnForm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryAnnForm: - """Test BinaryAnnForm - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryAnnForm` - """ - model = BinaryAnnForm() - if include_optional: - return BinaryAnnForm( - confidence = 0.0, - nns = 1.0, - collection_ids = [ - 56 - ], - binary_ids = [ - 56 - ] - ) - else: - return BinaryAnnForm( - ) - """ - - def testBinaryAnnForm(self): - """Test BinaryAnnForm""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_ann_list_response.py b/revengai/test/test_binary_ann_list_response.py deleted file mode 100644 index d135445..0000000 --- a/revengai/test/test_binary_ann_list_response.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_ann_list_response import BinaryAnnListResponse - -class TestBinaryAnnListResponse(unittest.TestCase): - """BinaryAnnListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryAnnListResponse: - """Test BinaryAnnListResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryAnnListResponse` - """ - model = BinaryAnnListResponse() - if include_optional: - return BinaryAnnListResponse( - list = [ - revengai.models.exported_binary_ann_result.ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - tags = [ - revengai.models.tag_item.TagItem( - tag = '', - origin = '', ) - ], ) - ] - ) - else: - return BinaryAnnListResponse( - list = [ - revengai.models.exported_binary_ann_result.ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - tags = [ - revengai.models.tag_item.TagItem( - tag = '', - origin = '', ) - ], ) - ], - ) - """ - - def testBinaryAnnListResponse(self): - """Test BinaryAnnListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_config.py b/revengai/test/test_binary_config.py deleted file mode 100644 index 065660f..0000000 --- a/revengai/test/test_binary_config.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_config import BinaryConfig - -class TestBinaryConfig(unittest.TestCase): - """BinaryConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryConfig: - """Test BinaryConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryConfig` - """ - model = BinaryConfig() - if include_optional: - return BinaryConfig( - isa = 'x86', - platform = 'linux', - file_format = 'pe' - ) - else: - return BinaryConfig( - ) - """ - - def testBinaryConfig(self): - """Test BinaryConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_details_response.py b/revengai/test/test_binary_details_response.py deleted file mode 100644 index 04671a3..0000000 --- a/revengai/test/test_binary_details_response.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_details_response import BinaryDetailsResponse - -class TestBinaryDetailsResponse(unittest.TestCase): - """BinaryDetailsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryDetailsResponse: - """Test BinaryDetailsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryDetailsResponse` - """ - model = BinaryDetailsResponse() - if include_optional: - return BinaryDetailsResponse( - arch = '', - bits = 56, - crc32 = '', - var_class = '', - entropy = 1.337, - file_size = 56, - language = '', - md5 = '', - machine = '', - os = '', - sha1 = '', - sha256 = '', - ssdeep = '', - static = True, - stripped = True, - sub_sys = '', - tlsh = '', - type = '', - debug = True, - first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return BinaryDetailsResponse( - arch = '', - bits = 56, - crc32 = '', - var_class = '', - entropy = 1.337, - file_size = 56, - language = '', - md5 = '', - machine = '', - os = '', - sha1 = '', - sha256 = '', - ssdeep = '', - static = True, - stripped = True, - sub_sys = '', - tlsh = '', - type = '', - debug = True, - first_seen = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testBinaryDetailsResponse(self): - """Test BinaryDetailsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_externals_response.py b/revengai/test/test_binary_externals_response.py deleted file mode 100644 index 42eeb7c..0000000 --- a/revengai/test/test_binary_externals_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_externals_response import BinaryExternalsResponse - -class TestBinaryExternalsResponse(unittest.TestCase): - """BinaryExternalsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinaryExternalsResponse: - """Test BinaryExternalsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinaryExternalsResponse` - """ - model = BinaryExternalsResponse() - if include_optional: - return BinaryExternalsResponse( - sha_256_hash = '', - vt = { - 'key' : null - }, - vt_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - mb = { - 'key' : null - }, - mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return BinaryExternalsResponse( - sha_256_hash = '', - vt = { - 'key' : null - }, - vt_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - mb = { - 'key' : null - }, - mb_last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testBinaryExternalsResponse(self): - """Test BinaryExternalsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_search_response.py b/revengai/test/test_binary_search_response.py deleted file mode 100644 index 8b4fd8d..0000000 --- a/revengai/test/test_binary_search_response.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_search_response import BinarySearchResponse - -class TestBinarySearchResponse(unittest.TestCase): - """BinarySearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinarySearchResponse: - """Test BinarySearchResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinarySearchResponse` - """ - model = BinarySearchResponse() - if include_optional: - return BinarySearchResponse( - results = [ - revengai.models.binary_search_result.BinarySearchResult( - binary_id = 56, - binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', ) - ] - ) - else: - return BinarySearchResponse( - results = [ - revengai.models.binary_search_result.BinarySearchResult( - binary_id = 56, - binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', ) - ], - ) - """ - - def testBinarySearchResponse(self): - """Test BinarySearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_search_result.py b/revengai/test/test_binary_search_result.py deleted file mode 100644 index 30dea69..0000000 --- a/revengai/test/test_binary_search_result.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_search_result import BinarySearchResult - -class TestBinarySearchResult(unittest.TestCase): - """BinarySearchResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BinarySearchResult: - """Test BinarySearchResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BinarySearchResult` - """ - model = BinarySearchResult() - if include_optional: - return BinarySearchResult( - binary_id = 56, - binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '' - ) - else: - return BinarySearchResult( - binary_id = 56, - binary_name = '', - analysis_id = 56, - sha_256_hash = '', - tags = [ - '' - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', - ) - """ - - def testBinarySearchResult(self): - """Test BinarySearchResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_binary_task_status.py b/revengai/test/test_binary_task_status.py deleted file mode 100644 index 8e3c417..0000000 --- a/revengai/test/test_binary_task_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.binary_task_status import BinaryTaskStatus - -class TestBinaryTaskStatus(unittest.TestCase): - """BinaryTaskStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testBinaryTaskStatus(self): - """Test BinaryTaskStatus""" - # inst = BinaryTaskStatus() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_block.py b/revengai/test/test_block.py deleted file mode 100644 index 2d2d433..0000000 --- a/revengai/test/test_block.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.block import Block - -class TestBlock(unittest.TestCase): - """Block unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Block: - """Test Block - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Block` - """ - model = Block() - if include_optional: - return Block( - virtual_address = 56 - ) - else: - return Block( - virtual_address = 56, - ) - """ - - def testBlock(self): - """Test Block""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_block_comments_generation_for_function_response.py b/revengai/test/test_block_comments_generation_for_function_response.py deleted file mode 100644 index 87e8921..0000000 --- a/revengai/test/test_block_comments_generation_for_function_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.block_comments_generation_for_function_response import BlockCommentsGenerationForFunctionResponse - -class TestBlockCommentsGenerationForFunctionResponse(unittest.TestCase): - """BlockCommentsGenerationForFunctionResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BlockCommentsGenerationForFunctionResponse: - """Test BlockCommentsGenerationForFunctionResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BlockCommentsGenerationForFunctionResponse` - """ - model = BlockCommentsGenerationForFunctionResponse() - if include_optional: - return BlockCommentsGenerationForFunctionResponse( - updated_blocks = 56 - ) - else: - return BlockCommentsGenerationForFunctionResponse( - updated_blocks = 56, - ) - """ - - def testBlockCommentsGenerationForFunctionResponse(self): - """Test BlockCommentsGenerationForFunctionResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_boundary.py b/revengai/test/test_boundary.py deleted file mode 100644 index 79d4075..0000000 --- a/revengai/test/test_boundary.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.boundary import Boundary - -class TestBoundary(unittest.TestCase): - """Boundary unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Boundary: - """Test Boundary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Boundary` - """ - model = Boundary() - if include_optional: - return Boundary( - start_addr = 56, - end_addr = 56, - name = '' - ) - else: - return Boundary( - start_addr = 56, - end_addr = 56, - name = '', - ) - """ - - def testBoundary(self): - """Test Boundary""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_box_plot_confidence.py b/revengai/test/test_box_plot_confidence.py deleted file mode 100644 index 5b2f4aa..0000000 --- a/revengai/test/test_box_plot_confidence.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.box_plot_confidence import BoxPlotConfidence - -class TestBoxPlotConfidence(unittest.TestCase): - """BoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BoxPlotConfidence: - """Test BoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BoxPlotConfidence` - """ - model = BoxPlotConfidence() - if include_optional: - return BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56 - ) - else: - return BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, - ) - """ - - def testBoxPlotConfidence(self): - """Test BoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_callee_function_info.py b/revengai/test/test_callee_function_info.py deleted file mode 100644 index f8d195e..0000000 --- a/revengai/test/test_callee_function_info.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.callee_function_info import CalleeFunctionInfo - -class TestCalleeFunctionInfo(unittest.TestCase): - """CalleeFunctionInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CalleeFunctionInfo: - """Test CalleeFunctionInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CalleeFunctionInfo` - """ - model = CalleeFunctionInfo() - if include_optional: - return CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056' - ) - else: - return CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056', - ) - """ - - def testCalleeFunctionInfo(self): - """Test CalleeFunctionInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_callees_caller_functions_response.py b/revengai/test/test_callees_caller_functions_response.py deleted file mode 100644 index 06ce377..0000000 --- a/revengai/test/test_callees_caller_functions_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse - -class TestCalleesCallerFunctionsResponse(unittest.TestCase): - """CalleesCallerFunctionsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CalleesCallerFunctionsResponse: - """Test CalleesCallerFunctionsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CalleesCallerFunctionsResponse` - """ - model = CalleesCallerFunctionsResponse() - if include_optional: - return CalleesCallerFunctionsResponse( - base_address = 56, - callees = [ - revengai.models.callee_function_info.CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056', ) - ], - callers = [ - revengai.models.caller_function_info.CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528', ) - ] - ) - else: - return CalleesCallerFunctionsResponse( - callees = [ - revengai.models.callee_function_info.CalleeFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - is_external = True, - callee_name = 'FUN_001e1370', - callee_vaddr = '1971056', ) - ], - callers = [ - revengai.models.caller_function_info.CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528', ) - ], - ) - """ - - def testCalleesCallerFunctionsResponse(self): - """Test CalleesCallerFunctionsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_caller_function_info.py b/revengai/test/test_caller_function_info.py deleted file mode 100644 index 6d78e8c..0000000 --- a/revengai/test/test_caller_function_info.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.caller_function_info import CallerFunctionInfo - -class TestCallerFunctionInfo(unittest.TestCase): - """CallerFunctionInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CallerFunctionInfo: - """Test CallerFunctionInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CallerFunctionInfo` - """ - model = CallerFunctionInfo() - if include_optional: - return CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - is_external = True, - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528' - ) - else: - return CallerFunctionInfo( - function_id = 56, - matched_function_id = 56, - dashboard_url = '', - caller_name = 'FUN_0002a5d8', - caller_vaddr = '173528', - ) - """ - - def testCallerFunctionInfo(self): - """Test CallerFunctionInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_capabilities.py b/revengai/test/test_capabilities.py deleted file mode 100644 index 7ed7ea9..0000000 --- a/revengai/test/test_capabilities.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.capabilities import Capabilities - -class TestCapabilities(unittest.TestCase): - """Capabilities unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Capabilities: - """Test Capabilities - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Capabilities` - """ - model = Capabilities() - if include_optional: - return Capabilities( - capabilities = [ - revengai.models.capability.Capability( - function_name = '', - function_vaddr = 56, - capabilities = [ - '' - ], ) - ] - ) - else: - return Capabilities( - capabilities = [ - revengai.models.capability.Capability( - function_name = '', - function_vaddr = 56, - capabilities = [ - '' - ], ) - ], - ) - """ - - def testCapabilities(self): - """Test Capabilities""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_check_security_checks_task_response.py b/revengai/test/test_check_security_checks_task_response.py deleted file mode 100644 index 6a9f620..0000000 --- a/revengai/test/test_check_security_checks_task_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse - -class TestCheckSecurityChecksTaskResponse(unittest.TestCase): - """CheckSecurityChecksTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CheckSecurityChecksTaskResponse: - """Test CheckSecurityChecksTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CheckSecurityChecksTaskResponse` - """ - model = CheckSecurityChecksTaskResponse() - if include_optional: - return CheckSecurityChecksTaskResponse( - status = 'UNINITIALISED' - ) - else: - return CheckSecurityChecksTaskResponse( - status = 'UNINITIALISED', - ) - """ - - def testCheckSecurityChecksTaskResponse(self): - """Test CheckSecurityChecksTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_child_binaries_response.py b/revengai/test/test_child_binaries_response.py deleted file mode 100644 index f8630e2..0000000 --- a/revengai/test/test_child_binaries_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.child_binaries_response import ChildBinariesResponse - -class TestChildBinariesResponse(unittest.TestCase): - """ChildBinariesResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChildBinariesResponse: - """Test ChildBinariesResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChildBinariesResponse` - """ - model = ChildBinariesResponse() - if include_optional: - return ChildBinariesResponse( - children = [ - revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, - name = '', - sha256 = '', ) - ], - parent = revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, - name = '', - sha256 = '', ) - ) - else: - return ChildBinariesResponse( - children = [ - revengai.models.relative_binary_response.RelativeBinaryResponse( - binary_id = 56, - name = '', - sha256 = '', ) - ], - ) - """ - - def testChildBinariesResponse(self): - """Test ChildBinariesResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_code_signature_model.py b/revengai/test/test_code_signature_model.py deleted file mode 100644 index 6b994e8..0000000 --- a/revengai/test/test_code_signature_model.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.code_signature_model import CodeSignatureModel - -class TestCodeSignatureModel(unittest.TestCase): - """CodeSignatureModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CodeSignatureModel: - """Test CodeSignatureModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CodeSignatureModel` - """ - model = CodeSignatureModel() - if include_optional: - return CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ] - ) - else: - return CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], - ) - """ - - def testCodeSignatureModel(self): - """Test CodeSignatureModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_binaries_update_request.py b/revengai/test/test_collection_binaries_update_request.py deleted file mode 100644 index bc97fdd..0000000 --- a/revengai/test/test_collection_binaries_update_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_binaries_update_request import CollectionBinariesUpdateRequest - -class TestCollectionBinariesUpdateRequest(unittest.TestCase): - """CollectionBinariesUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionBinariesUpdateRequest: - """Test CollectionBinariesUpdateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionBinariesUpdateRequest` - """ - model = CollectionBinariesUpdateRequest() - if include_optional: - return CollectionBinariesUpdateRequest( - binaries = [ - 56 - ] - ) - else: - return CollectionBinariesUpdateRequest( - binaries = [ - 56 - ], - ) - """ - - def testCollectionBinariesUpdateRequest(self): - """Test CollectionBinariesUpdateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_binaries_update_response.py b/revengai/test/test_collection_binaries_update_response.py deleted file mode 100644 index c20708a..0000000 --- a/revengai/test/test_collection_binaries_update_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_binaries_update_response import CollectionBinariesUpdateResponse - -class TestCollectionBinariesUpdateResponse(unittest.TestCase): - """CollectionBinariesUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionBinariesUpdateResponse: - """Test CollectionBinariesUpdateResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionBinariesUpdateResponse` - """ - model = CollectionBinariesUpdateResponse() - if include_optional: - return CollectionBinariesUpdateResponse( - binaries = [ - revengai.models.collection_binary_response.CollectionBinaryResponse( - analysis_id = 56, - binary_id = 56, - binary_name = '', - owner_id = 56, - sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ] - ) - else: - return CollectionBinariesUpdateResponse( - binaries = [ - revengai.models.collection_binary_response.CollectionBinaryResponse( - analysis_id = 56, - binary_id = 56, - binary_name = '', - owner_id = 56, - sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - ) - """ - - def testCollectionBinariesUpdateResponse(self): - """Test CollectionBinariesUpdateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_binary_response.py b/revengai/test/test_collection_binary_response.py deleted file mode 100644 index 142b414..0000000 --- a/revengai/test/test_collection_binary_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_binary_response import CollectionBinaryResponse - -class TestCollectionBinaryResponse(unittest.TestCase): - """CollectionBinaryResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionBinaryResponse: - """Test CollectionBinaryResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionBinaryResponse` - """ - model = CollectionBinaryResponse() - if include_optional: - return CollectionBinaryResponse( - analysis_id = 56, - binary_id = 56, - binary_name = '', - owner_id = 56, - sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return CollectionBinaryResponse( - analysis_id = 56, - binary_id = 56, - binary_name = '', - owner_id = 56, - sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testCollectionBinaryResponse(self): - """Test CollectionBinaryResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_count.py b/revengai/test/test_collection_count.py deleted file mode 100644 index 245e211..0000000 --- a/revengai/test/test_collection_count.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_count import CollectionCount - -class TestCollectionCount(unittest.TestCase): - """CollectionCount unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionCount: - """Test CollectionCount - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionCount` - """ - model = CollectionCount() - if include_optional: - return CollectionCount( - success = None, - count = None - ) - else: - return CollectionCount( - count = None, - ) - """ - - def testCollectionCount(self): - """Test CollectionCount""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_create_request.py b/revengai/test/test_collection_create_request.py deleted file mode 100644 index 74b0e04..0000000 --- a/revengai/test/test_collection_create_request.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_create_request import CollectionCreateRequest - -class TestCollectionCreateRequest(unittest.TestCase): - """CollectionCreateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionCreateRequest: - """Test CollectionCreateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionCreateRequest` - """ - model = CollectionCreateRequest() - if include_optional: - return CollectionCreateRequest( - collection_name = '', - description = '', - collection_scope = 'PRIVATE', - tags = [ - '' - ], - binaries = [ - 56 - ], - model_id = 56 - ) - else: - return CollectionCreateRequest( - collection_name = '', - description = '', - model_id = 56, - ) - """ - - def testCollectionCreateRequest(self): - """Test CollectionCreateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_list_item.py b/revengai/test/test_collection_list_item.py deleted file mode 100644 index dc34d4b..0000000 --- a/revengai/test/test_collection_list_item.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_list_item import CollectionListItem - -class TestCollectionListItem(unittest.TestCase): - """CollectionListItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionListItem: - """Test CollectionListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionListItem` - """ - model = CollectionListItem() - if include_optional: - return CollectionListItem( - collection_name = '', - description = '', - collection_scope = '', - collection_owner = '', - official_collection = True, - collection_tags = [ - '' - ], - collection_size = 56, - collection_id = 56, - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_name = '', - team_id = 56 - ) - else: - return CollectionListItem( - collection_name = '', - description = '', - collection_scope = '', - collection_owner = '', - official_collection = True, - collection_size = 56, - collection_id = 56, - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_name = '', - ) - """ - - def testCollectionListItem(self): - """Test CollectionListItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_response.py b/revengai/test/test_collection_response.py deleted file mode 100644 index 8b5508d..0000000 --- a/revengai/test/test_collection_response.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_response import CollectionResponse - -class TestCollectionResponse(unittest.TestCase): - """CollectionResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionResponse: - """Test CollectionResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionResponse` - """ - model = CollectionResponse() - if include_optional: - return CollectionResponse( - collection_id = 56, - collection_name = '', - description = '', - model_id = 56, - user_id = 56, - team_id = 56, - collection_scope = 'PRIVATE', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tags = [ - '' - ], - binaries = [ - null - ] - ) - else: - return CollectionResponse( - collection_id = 56, - collection_name = '', - description = '', - model_id = 56, - user_id = 56, - collection_scope = 'PRIVATE', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testCollectionResponse(self): - """Test CollectionResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_response_binaries_inner.py b/revengai/test/test_collection_response_binaries_inner.py deleted file mode 100644 index b52c699..0000000 --- a/revengai/test/test_collection_response_binaries_inner.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_response_binaries_inner import CollectionResponseBinariesInner - -class TestCollectionResponseBinariesInner(unittest.TestCase): - """CollectionResponseBinariesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionResponseBinariesInner: - """Test CollectionResponseBinariesInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionResponseBinariesInner` - """ - model = CollectionResponseBinariesInner() - if include_optional: - return CollectionResponseBinariesInner( - analysis_id = 56, - binary_id = 56, - binary_name = '', - owner_id = 56, - sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return CollectionResponseBinariesInner( - analysis_id = 56, - binary_id = 56, - binary_name = '', - owner_id = 56, - sha_256_hash = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testCollectionResponseBinariesInner(self): - """Test CollectionResponseBinariesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_scope.py b/revengai/test/test_collection_scope.py deleted file mode 100644 index f914793..0000000 --- a/revengai/test/test_collection_scope.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_scope import CollectionScope - -class TestCollectionScope(unittest.TestCase): - """CollectionScope unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCollectionScope(self): - """Test CollectionScope""" - # inst = CollectionScope() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_search_response.py b/revengai/test/test_collection_search_response.py deleted file mode 100644 index afbdb35..0000000 --- a/revengai/test/test_collection_search_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_search_response import CollectionSearchResponse - -class TestCollectionSearchResponse(unittest.TestCase): - """CollectionSearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionSearchResponse: - """Test CollectionSearchResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionSearchResponse` - """ - model = CollectionSearchResponse() - if include_optional: - return CollectionSearchResponse( - results = [ - revengai.models.collection_search_result.CollectionSearchResult( - collection_id = 56, - collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', - tags = [ - '' - ], - size = 56, - description = '', - team_id = 56, ) - ] - ) - else: - return CollectionSearchResponse( - results = [ - revengai.models.collection_search_result.CollectionSearchResult( - collection_id = 56, - collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', - tags = [ - '' - ], - size = 56, - description = '', - team_id = 56, ) - ], - ) - """ - - def testCollectionSearchResponse(self): - """Test CollectionSearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_search_result.py b/revengai/test/test_collection_search_result.py deleted file mode 100644 index f5d5b30..0000000 --- a/revengai/test/test_collection_search_result.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_search_result import CollectionSearchResult - -class TestCollectionSearchResult(unittest.TestCase): - """CollectionSearchResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionSearchResult: - """Test CollectionSearchResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionSearchResult` - """ - model = CollectionSearchResult() - if include_optional: - return CollectionSearchResult( - collection_id = 56, - collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', - tags = [ - '' - ], - size = 56, - description = '', - team_id = 56 - ) - else: - return CollectionSearchResult( - collection_id = 56, - collection_name = '', - scope = '', - last_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', - description = '', - ) - """ - - def testCollectionSearchResult(self): - """Test CollectionSearchResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_tags_update_request.py b/revengai/test/test_collection_tags_update_request.py deleted file mode 100644 index 7775747..0000000 --- a/revengai/test/test_collection_tags_update_request.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_tags_update_request import CollectionTagsUpdateRequest - -class TestCollectionTagsUpdateRequest(unittest.TestCase): - """CollectionTagsUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionTagsUpdateRequest: - """Test CollectionTagsUpdateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionTagsUpdateRequest` - """ - model = CollectionTagsUpdateRequest() - if include_optional: - return CollectionTagsUpdateRequest( - tags = [ - '' - ] - ) - else: - return CollectionTagsUpdateRequest( - tags = [ - '' - ], - ) - """ - - def testCollectionTagsUpdateRequest(self): - """Test CollectionTagsUpdateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_tags_update_response.py b/revengai/test/test_collection_tags_update_response.py deleted file mode 100644 index a0c6f7c..0000000 --- a/revengai/test/test_collection_tags_update_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_tags_update_response import CollectionTagsUpdateResponse - -class TestCollectionTagsUpdateResponse(unittest.TestCase): - """CollectionTagsUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionTagsUpdateResponse: - """Test CollectionTagsUpdateResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionTagsUpdateResponse` - """ - model = CollectionTagsUpdateResponse() - if include_optional: - return CollectionTagsUpdateResponse( - tags = [ - '' - ] - ) - else: - return CollectionTagsUpdateResponse( - tags = [ - '' - ], - ) - """ - - def testCollectionTagsUpdateResponse(self): - """Test CollectionTagsUpdateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collection_update_request.py b/revengai/test/test_collection_update_request.py deleted file mode 100644 index 4900098..0000000 --- a/revengai/test/test_collection_update_request.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collection_update_request import CollectionUpdateRequest - -class TestCollectionUpdateRequest(unittest.TestCase): - """CollectionUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionUpdateRequest: - """Test CollectionUpdateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionUpdateRequest` - """ - model = CollectionUpdateRequest() - if include_optional: - return CollectionUpdateRequest( - collection_name = '', - description = '', - collection_scope = 'PRIVATE' - ) - else: - return CollectionUpdateRequest( - ) - """ - - def testCollectionUpdateRequest(self): - """Test CollectionUpdateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collections_api.py b/revengai/test/test_collections_api.py deleted file mode 100644 index 31a2095..0000000 --- a/revengai/test/test_collections_api.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.collections_api import CollectionsApi - - -class TestCollectionsApi(unittest.TestCase): - """CollectionsApi unit test stubs""" - - def setUp(self) -> None: - self.api = CollectionsApi() - - def tearDown(self) -> None: - pass - - def test_create_collection(self) -> None: - """Test case for create_collection - - Creates new collection information - """ - pass - - def test_delete_collection(self) -> None: - """Test case for delete_collection - - Deletes a collection - """ - pass - - def test_get_collection(self) -> None: - """Test case for get_collection - - Returns a collection - """ - pass - - def test_list_collections(self) -> None: - """Test case for list_collections - - Gets basic collections information - """ - pass - - def test_update_collection(self) -> None: - """Test case for update_collection - - Updates a collection - """ - pass - - def test_update_collection_binaries(self) -> None: - """Test case for update_collection_binaries - - Updates a collection binaries - """ - pass - - def test_update_collection_tags(self) -> None: - """Test case for update_collection_tags - - Updates a collection tags - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_collections_count_form.py b/revengai/test/test_collections_count_form.py deleted file mode 100644 index d12f6f4..0000000 --- a/revengai/test/test_collections_count_form.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.collections_count_form import CollectionsCountForm - -class TestCollectionsCountForm(unittest.TestCase): - """CollectionsCountForm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CollectionsCountForm: - """Test CollectionsCountForm - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CollectionsCountForm` - """ - model = CollectionsCountForm() - if include_optional: - return CollectionsCountForm( - scope = 'PRIVATE' - ) - else: - return CollectionsCountForm( - scope = 'PRIVATE', - ) - """ - - def testCollectionsCountForm(self): - """Test CollectionsCountForm""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_comment_response.py b/revengai/test/test_comment_response.py deleted file mode 100644 index b5226c0..0000000 --- a/revengai/test/test_comment_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.comment_response import CommentResponse - -class TestCommentResponse(unittest.TestCase): - """CommentResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CommentResponse: - """Test CommentResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CommentResponse` - """ - model = CommentResponse() - if include_optional: - return CommentResponse( - content = '', - id = 56, - user_id = 56, - resource_type = '', - resource_id = '', - context = None, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return CommentResponse( - content = '', - id = 56, - user_id = 56, - resource_type = '', - resource_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testCommentResponse(self): - """Test CommentResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_comment_update_request.py b/revengai/test/test_comment_update_request.py deleted file mode 100644 index 0ea500b..0000000 --- a/revengai/test/test_comment_update_request.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.comment_update_request import CommentUpdateRequest - -class TestCommentUpdateRequest(unittest.TestCase): - """CommentUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CommentUpdateRequest: - """Test CommentUpdateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CommentUpdateRequest` - """ - model = CommentUpdateRequest() - if include_optional: - return CommentUpdateRequest( - content = '' - ) - else: - return CommentUpdateRequest( - content = '', - ) - """ - - def testCommentUpdateRequest(self): - """Test CommentUpdateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_communities.py b/revengai/test/test_communities.py deleted file mode 100644 index 288ebbc..0000000 --- a/revengai/test/test_communities.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.communities import Communities - -class TestCommunities(unittest.TestCase): - """Communities unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Communities: - """Test Communities - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Communities` - """ - model = Communities() - if include_optional: - return Communities( - total_functions = 56, - total_matched_functions = 56, - direct_community_match_percentages = [ - revengai.models.community_match_percentages.CommunityMatchPercentages( - binary_name = '', - binary_id = 56, - matched_communities_percent = 1.337, - unmatched_communities_percent = 1.337, ) - ], - top_components = [ - { - 'key' : null - } - ] - ) - else: - return Communities( - total_functions = 56, - total_matched_functions = 56, - direct_community_match_percentages = [ - revengai.models.community_match_percentages.CommunityMatchPercentages( - binary_name = '', - binary_id = 56, - matched_communities_percent = 1.337, - unmatched_communities_percent = 1.337, ) - ], - top_components = [ - { - 'key' : null - } - ], - ) - """ - - def testCommunities(self): - """Test Communities""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_community_match_percentages.py b/revengai/test/test_community_match_percentages.py deleted file mode 100644 index c4cdb82..0000000 --- a/revengai/test/test_community_match_percentages.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.community_match_percentages import CommunityMatchPercentages - -class TestCommunityMatchPercentages(unittest.TestCase): - """CommunityMatchPercentages unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CommunityMatchPercentages: - """Test CommunityMatchPercentages - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CommunityMatchPercentages` - """ - model = CommunityMatchPercentages() - if include_optional: - return CommunityMatchPercentages( - binary_name = '', - binary_id = 56, - matched_communities_percent = 1.337, - unmatched_communities_percent = 1.337 - ) - else: - return CommunityMatchPercentages( - binary_name = '', - binary_id = 56, - matched_communities_percent = 1.337, - unmatched_communities_percent = 1.337, - ) - """ - - def testCommunityMatchPercentages(self): - """Test CommunityMatchPercentages""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_confidence_api.py b/revengai/test/test_confidence_api.py deleted file mode 100644 index 8283414..0000000 --- a/revengai/test/test_confidence_api.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.confidence_api import ConfidenceApi - - -class TestConfidenceApi(unittest.TestCase): - """ConfidenceApi unit test stubs""" - - def setUp(self) -> None: - self.api = ConfidenceApi() - - def tearDown(self) -> None: - pass - - def test_get_analysis_tag_score(self) -> None: - """Test case for get_analysis_tag_score - - Calculate Tag Confidence Score for an Analysis - """ - pass - - def test_get_analysis_threat_score(self) -> None: - """Test case for get_analysis_threat_score - - Calculate Threat Score for Binary - """ - pass - - def test_get_functions_name_score(self) -> None: - """Test case for get_functions_name_score - - Calculate function name confidence for a set of Functions - """ - pass - - def test_get_functions_threat_score(self) -> None: - """Test case for get_functions_threat_score - - Calculate Threat Score for a set of Functions - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_confidence_type.py b/revengai/test/test_confidence_type.py deleted file mode 100644 index 8cfbed2..0000000 --- a/revengai/test/test_confidence_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.confidence_type import ConfidenceType - -class TestConfidenceType(unittest.TestCase): - """ConfidenceType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConfidenceType(self): - """Test ConfidenceType""" - # inst = ConfidenceType() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_config_settings.py b/revengai/test/test_config_settings.py deleted file mode 100644 index 7a9015c..0000000 --- a/revengai/test/test_config_settings.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.config_settings import ConfigSettings - -class TestConfigSettings(unittest.TestCase): - """ConfigSettings unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigSettings: - """Test ConfigSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigSettings` - """ - model = ConfigSettings() - if include_optional: - return ConfigSettings( - success = True, - max_file_size = 56, - valid_models = [ - '' - ], - isa_options = [ - '' - ], - file_options = [ - '' - ], - platform_options = [ - '' - ], - analysis_status_conditions = [ - '' - ], - analysis_scope_conditions = [ - '' - ] - ) - else: - return ConfigSettings( - ) - """ - - def testConfigSettings(self): - """Test ConfigSettings""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_context.py b/revengai/test/test_context.py deleted file mode 100644 index 00e45d9..0000000 --- a/revengai/test/test_context.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.context import Context - -class TestContext(unittest.TestCase): - """Context unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Context: - """Test Context - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Context` - """ - model = Context() - if include_optional: - return Context( - start_line = 56, - end_line = 56 - ) - else: - return Context( - start_line = 56, - end_line = 56, - ) - """ - - def testContext(self): - """Test Context""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_create_ai_decompilation_request.py b/revengai/test/test_create_ai_decompilation_request.py deleted file mode 100644 index b80692b..0000000 --- a/revengai/test/test_create_ai_decompilation_request.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.create_ai_decompilation_request import CreateAiDecompilationRequest - -class TestCreateAiDecompilationRequest(unittest.TestCase): - """CreateAiDecompilationRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateAiDecompilationRequest: - """Test CreateAiDecompilationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateAiDecompilationRequest` - """ - model = CreateAiDecompilationRequest() - if include_optional: - return CreateAiDecompilationRequest( - function_id = 56 - ) - else: - return CreateAiDecompilationRequest( - function_id = 56, - ) - """ - - def testCreateAiDecompilationRequest(self): - """Test CreateAiDecompilationRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_created.py b/revengai/test/test_created.py deleted file mode 100644 index ba4455b..0000000 --- a/revengai/test/test_created.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.created import Created - -class TestCreated(unittest.TestCase): - """Created unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Created: - """Test Created - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Created` - """ - model = Created() - if include_optional: - return Created( - analysis_id = 56, - binary_id = 56, - reference = '' - ) - else: - return Created( - analysis_id = 56, - binary_id = 56, - reference = '', - ) - """ - - def testCreated(self): - """Test Created""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_decompilation_comment_context.py b/revengai/test/test_decompilation_comment_context.py deleted file mode 100644 index 355d06c..0000000 --- a/revengai/test/test_decompilation_comment_context.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.decompilation_comment_context import DecompilationCommentContext - -class TestDecompilationCommentContext(unittest.TestCase): - """DecompilationCommentContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DecompilationCommentContext: - """Test DecompilationCommentContext - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DecompilationCommentContext` - """ - model = DecompilationCommentContext() - if include_optional: - return DecompilationCommentContext( - start_line = 56, - end_line = 56 - ) - else: - return DecompilationCommentContext( - start_line = 56, - end_line = 56, - ) - """ - - def testDecompilationCommentContext(self): - """Test DecompilationCommentContext""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_decompilation_response.py b/revengai/test/test_decompilation_response.py deleted file mode 100644 index 679e849..0000000 --- a/revengai/test/test_decompilation_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.decompilation_response import DecompilationResponse - -class TestDecompilationResponse(unittest.TestCase): - """DecompilationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DecompilationResponse: - """Test DecompilationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DecompilationResponse` - """ - model = DecompilationResponse() - if include_optional: - return DecompilationResponse( - function_id = 56, - decompilation = '', - calling_convention = '' - ) - else: - return DecompilationResponse( - function_id = 56, - decompilation = '', - calling_convention = '', - ) - """ - - def testDecompilationResponse(self): - """Test DecompilationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_deleted_analysis.py b/revengai/test/test_deleted_analysis.py deleted file mode 100644 index 97c8eb3..0000000 --- a/revengai/test/test_deleted_analysis.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.deleted_analysis import DeletedAnalysis - -class TestDeletedAnalysis(unittest.TestCase): - """DeletedAnalysis unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeletedAnalysis: - """Test DeletedAnalysis - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeletedAnalysis` - """ - model = DeletedAnalysis() - if include_optional: - return DeletedAnalysis( - success = None, - msg = None - ) - else: - return DeletedAnalysis( - ) - """ - - def testDeletedAnalysis(self): - """Test DeletedAnalysis""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_die_match.py b/revengai/test/test_die_match.py deleted file mode 100644 index bffea0e..0000000 --- a/revengai/test/test_die_match.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.die_match import DieMatch - -class TestDieMatch(unittest.TestCase): - """DieMatch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DieMatch: - """Test DieMatch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DieMatch` - """ - model = DieMatch() - if include_optional: - return DieMatch( - name = '', - type = '', - display = '', - version = '' - ) - else: - return DieMatch( - name = '', - type = '', - display = '', - version = '', - ) - """ - - def testDieMatch(self): - """Test DieMatch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_dynamic_execution_status_input.py b/revengai/test/test_dynamic_execution_status_input.py deleted file mode 100644 index 4b5ce74..0000000 --- a/revengai/test/test_dynamic_execution_status_input.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.dynamic_execution_status_input import DynamicExecutionStatusInput - -class TestDynamicExecutionStatusInput(unittest.TestCase): - """DynamicExecutionStatusInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDynamicExecutionStatusInput(self): - """Test DynamicExecutionStatusInput""" - # inst = DynamicExecutionStatusInput() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_elf_dynamic_entry.py b/revengai/test/test_elf_dynamic_entry.py deleted file mode 100644 index 59d6c1b..0000000 --- a/revengai/test/test_elf_dynamic_entry.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.elf_dynamic_entry import ElfDynamicEntry - -class TestElfDynamicEntry(unittest.TestCase): - """ElfDynamicEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ElfDynamicEntry: - """Test ElfDynamicEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ElfDynamicEntry` - """ - model = ElfDynamicEntry() - if include_optional: - return ElfDynamicEntry( - tag = '', - value = 56 - ) - else: - return ElfDynamicEntry( - tag = '', - value = 56, - ) - """ - - def testElfDynamicEntry(self): - """Test ElfDynamicEntry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_elf_import_model.py b/revengai/test/test_elf_import_model.py deleted file mode 100644 index 20e2976..0000000 --- a/revengai/test/test_elf_import_model.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.elf_import_model import ELFImportModel - -class TestELFImportModel(unittest.TestCase): - """ELFImportModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ELFImportModel: - """Test ELFImportModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ELFImportModel` - """ - model = ELFImportModel() - if include_optional: - return ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ] - ) - else: - return ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], - ) - """ - - def testELFImportModel(self): - """Test ELFImportModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_elf_model.py b/revengai/test/test_elf_model.py deleted file mode 100644 index 3bd431c..0000000 --- a/revengai/test/test_elf_model.py +++ /dev/null @@ -1,236 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.elf_model import ELFModel - -class TestELFModel(unittest.TestCase): - """ELFModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ELFModel: - """Test ELFModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ELFModel` - """ - model = ELFModel() - if include_optional: - return ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', - import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = 56, - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, - version_info = { - 'key' : null - } - ) - else: - return ELFModel( - file_type = '', - architecture = '', - endianness = '', - entry_point = 56, - entry_point_bytes = '', - import_hash = '', - export_hash = '', - build_id = '', - security = revengai.models.elf_security.ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, ), - sections = [ - revengai.models.elf_section.ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, ) - ], - segments = [ - revengai.models.elf_segment.ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, ) - ], - symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - dynamic_symbols = [ - revengai.models.elf_symbol.ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, ) - ], - relocations = [ - revengai.models.elf_relocation.ELFRelocation( - address = 56, - type = 56, - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, ) - ], - imports = revengai.models.elf_import_model.ELFImportModel( - number_of_imports = 56, - imports = [ - '' - ], ), - exported_functions = [ - '' - ], - dynamic_entries = [ - revengai.models.elf_dynamic_entry.ElfDynamicEntry( - tag = '', - value = 56, ) - ], - notes = [ - { - 'key' : null - } - ], - debug_info = { - 'key' : null - }, - version_info = { - 'key' : null - }, - ) - """ - - def testELFModel(self): - """Test ELFModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_elf_relocation.py b/revengai/test/test_elf_relocation.py deleted file mode 100644 index 67356bd..0000000 --- a/revengai/test/test_elf_relocation.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.elf_relocation import ELFRelocation - -class TestELFRelocation(unittest.TestCase): - """ELFRelocation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ELFRelocation: - """Test ELFRelocation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ELFRelocation` - """ - model = ELFRelocation() - if include_optional: - return ELFRelocation( - address = 56, - type = 56, - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True - ) - else: - return ELFRelocation( - address = 56, - type = 56, - size = 56, - addend = 56, - symbol_name = '', - is_dynamic = True, - is_pltgot = True, - ) - """ - - def testELFRelocation(self): - """Test ELFRelocation""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_elf_section.py b/revengai/test/test_elf_section.py deleted file mode 100644 index a79fe77..0000000 --- a/revengai/test/test_elf_section.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.elf_section import ELFSection - -class TestELFSection(unittest.TestCase): - """ELFSection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ELFSection: - """Test ELFSection - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ELFSection` - """ - model = ELFSection() - if include_optional: - return ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56 - ) - else: - return ELFSection( - name = '', - type = '', - virtual_address = 56, - virtual_size = 56, - raw_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - entropy = 1.337, - alignment = 56, - ) - """ - - def testELFSection(self): - """Test ELFSection""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_elf_security.py b/revengai/test/test_elf_security.py deleted file mode 100644 index c293c3d..0000000 --- a/revengai/test/test_elf_security.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.elf_security import ELFSecurity - -class TestELFSecurity(unittest.TestCase): - """ELFSecurity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ELFSecurity: - """Test ELFSecurity - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ELFSecurity` - """ - model = ELFSecurity() - if include_optional: - return ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True - ) - else: - return ELFSecurity( - pie = True, - stripped = True, - canary = True, - nx = True, - relo = True, - ) - """ - - def testELFSecurity(self): - """Test ELFSecurity""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_elf_segment.py b/revengai/test/test_elf_segment.py deleted file mode 100644 index 41cff76..0000000 --- a/revengai/test/test_elf_segment.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.elf_segment import ELFSegment - -class TestELFSegment(unittest.TestCase): - """ELFSegment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ELFSegment: - """Test ELFSegment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ELFSegment` - """ - model = ELFSegment() - if include_optional: - return ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56 - ) - else: - return ELFSegment( - type = '', - virtual_address = 56, - virtual_size = 56, - physical_address = 56, - physical_size = 56, - file_offset = 56, - flags = '', - flags_raw = 56, - alignment = 56, - ) - """ - - def testELFSegment(self): - """Test ELFSegment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_elf_symbol.py b/revengai/test/test_elf_symbol.py deleted file mode 100644 index 6d7d00f..0000000 --- a/revengai/test/test_elf_symbol.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.elf_symbol import ELFSymbol - -class TestELFSymbol(unittest.TestCase): - """ELFSymbol unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ELFSymbol: - """Test ELFSymbol - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ELFSymbol` - """ - model = ELFSymbol() - if include_optional: - return ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56 - ) - else: - return ELFSymbol( - name = '', - value = 56, - size = 56, - type = '', - binding = '', - visibility = '', - section_index = 56, - ) - """ - - def testELFSymbol(self): - """Test ELFSymbol""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_entrypoint_model.py b/revengai/test/test_entrypoint_model.py deleted file mode 100644 index aa25e22..0000000 --- a/revengai/test/test_entrypoint_model.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.entrypoint_model import EntrypointModel - -class TestEntrypointModel(unittest.TestCase): - """EntrypointModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EntrypointModel: - """Test EntrypointModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EntrypointModel` - """ - model = EntrypointModel() - if include_optional: - return EntrypointModel( - address = 56, - first_bytes = '' - ) - else: - return EntrypointModel( - address = 56, - first_bytes = '', - ) - """ - - def testEntrypointModel(self): - """Test EntrypointModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_enumeration.py b/revengai/test/test_enumeration.py deleted file mode 100644 index cf7f6af..0000000 --- a/revengai/test/test_enumeration.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.enumeration import Enumeration - -class TestEnumeration(unittest.TestCase): - """Enumeration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Enumeration: - """Test Enumeration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Enumeration` - """ - model = Enumeration() - if include_optional: - return Enumeration( - last_change = '', - name = '', - members = { - 'key' : 56 - }, - artifact_type = '' - ) - else: - return Enumeration( - name = '', - members = { - 'key' : 56 - }, - ) - """ - - def testEnumeration(self): - """Test Enumeration""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_error_model.py b/revengai/test/test_error_model.py deleted file mode 100644 index 95c99a9..0000000 --- a/revengai/test/test_error_model.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.error_model import ErrorModel - -class TestErrorModel(unittest.TestCase): - """ErrorModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ErrorModel: - """Test ErrorModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ErrorModel` - """ - model = ErrorModel() - if include_optional: - return ErrorModel( - code = '', - message = '' - ) - else: - return ErrorModel( - code = '', - message = '', - ) - """ - - def testErrorModel(self): - """Test ErrorModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_export_model.py b/revengai/test/test_export_model.py deleted file mode 100644 index 9b027b2..0000000 --- a/revengai/test/test_export_model.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.export_model import ExportModel - -class TestExportModel(unittest.TestCase): - """ExportModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportModel: - """Test ExportModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportModel` - """ - model = ExportModel() - if include_optional: - return ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ] - ) - else: - return ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], - ) - """ - - def testExportModel(self): - """Test ExportModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_exported_binary_ann_result.py b/revengai/test/test_exported_binary_ann_result.py deleted file mode 100644 index 459a66e..0000000 --- a/revengai/test/test_exported_binary_ann_result.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.exported_binary_ann_result import ExportedBinaryAnnResult - -class TestExportedBinaryAnnResult(unittest.TestCase): - """ExportedBinaryAnnResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExportedBinaryAnnResult: - """Test ExportedBinaryAnnResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExportedBinaryAnnResult` - """ - model = ExportedBinaryAnnResult() - if include_optional: - return ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - tags = [ - revengai.models.tag_item.TagItem( - tag = '', - origin = '', ) - ] - ) - else: - return ExportedBinaryAnnResult( - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - analysis_scope = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - confidence = 1.337, - ) - """ - - def testExportedBinaryAnnResult(self): - """Test ExportedBinaryAnnResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_external_response.py b/revengai/test/test_external_response.py deleted file mode 100644 index 6f8f229..0000000 --- a/revengai/test/test_external_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.external_response import ExternalResponse - -class TestExternalResponse(unittest.TestCase): - """ExternalResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExternalResponse: - """Test ExternalResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExternalResponse` - """ - model = ExternalResponse() - if include_optional: - return ExternalResponse( - sha_256_hash = '', - data = { - 'key' : null - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') - ) - else: - return ExternalResponse( - sha_256_hash = '', - data = { - 'key' : null - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ) - """ - - def testExternalResponse(self): - """Test ExternalResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_external_sources_api.py b/revengai/test/test_external_sources_api.py deleted file mode 100644 index 5e8d9f9..0000000 --- a/revengai/test/test_external_sources_api.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.external_sources_api import ExternalSourcesApi - - -class TestExternalSourcesApi(unittest.TestCase): - """ExternalSourcesApi unit test stubs""" - - def setUp(self) -> None: - self.api = ExternalSourcesApi() - - def tearDown(self) -> None: - pass - - def test_create_external_task_mb(self) -> None: - """Test case for create_external_task_mb - - Pulls data from VirusTotal - """ - pass - - def test_create_external_task_vt(self) -> None: - """Test case for create_external_task_vt - - Pulls data from VirusTotal - """ - pass - - def test_get_mb_data(self) -> None: - """Test case for get_mb_data - - Get MalwareBazaar data - """ - pass - - def test_get_mb_task_status(self) -> None: - """Test case for get_mb_task_status - - Check the status of MalwareBazaar data retrieval - """ - pass - - def test_get_vt_data(self) -> None: - """Test case for get_vt_data - - Get VirusTotal data - """ - pass - - def test_get_vt_task_status(self) -> None: - """Test case for get_vt_task_status - - Check the status of VirusTotal data retrieval - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_file_hashes.py b/revengai/test/test_file_hashes.py deleted file mode 100644 index 942f573..0000000 --- a/revengai/test/test_file_hashes.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.file_hashes import FileHashes - -class TestFileHashes(unittest.TestCase): - """FileHashes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FileHashes: - """Test FileHashes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FileHashes` - """ - model = FileHashes() - if include_optional: - return FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '' - ) - else: - return FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '', - ) - """ - - def testFileHashes(self): - """Test FileHashes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_file_metadata.py b/revengai/test/test_file_metadata.py deleted file mode 100644 index d28b8bd..0000000 --- a/revengai/test/test_file_metadata.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.file_metadata import FileMetadata - -class TestFileMetadata(unittest.TestCase): - """FileMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FileMetadata: - """Test FileMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FileMetadata` - """ - model = FileMetadata() - if include_optional: - return FileMetadata( - size = 56, - friendly_size = '', - entropy = 1.337, - hashes = revengai.models.file_hashes.FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '', ) - ) - else: - return FileMetadata( - size = 56, - friendly_size = '', - entropy = 1.337, - hashes = revengai.models.file_hashes.FileHashes( - md5 = '', - sha1 = '', - sha256 = '', - sha512 = '', - sha3_224 = '', - sha3_256 = '', - sha3_384 = '', - sha3_512 = '', ), - ) - """ - - def testFileMetadata(self): - """Test FileMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_file_options.py b/revengai/test/test_file_options.py deleted file mode 100644 index b1b56ef..0000000 --- a/revengai/test/test_file_options.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.file_options import FileOptions - -class TestFileOptions(unittest.TestCase): - """FileOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFileOptions(self): - """Test FileOptions""" - # inst = FileOptions() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_filters.py b/revengai/test/test_filters.py deleted file mode 100644 index 0b27961..0000000 --- a/revengai/test/test_filters.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.filters import Filters - -class TestFilters(unittest.TestCase): - """Filters unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFilters(self): - """Test Filters""" - # inst = Filters() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_firmware_api.py b/revengai/test/test_firmware_api.py deleted file mode 100644 index 6194c05..0000000 --- a/revengai/test/test_firmware_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.firmware_api import FirmwareApi - - -class TestFirmwareApi(unittest.TestCase): - """FirmwareApi unit test stubs""" - - def setUp(self) -> None: - self.api = FirmwareApi() - - def tearDown(self) -> None: - pass - - def test_get_binaries_for_firmware_task(self) -> None: - """Test case for get_binaries_for_firmware_task - - Upload firmware for unpacking - """ - pass - - def test_upload_firmware(self) -> None: - """Test case for upload_firmware - - Upload firmware for unpacking - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_analysis_threat_score_data.py b/revengai/test/test_function_analysis_threat_score_data.py deleted file mode 100644 index d3a717a..0000000 --- a/revengai/test/test_function_analysis_threat_score_data.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_analysis_threat_score_data import FunctionAnalysisThreatScoreData - -class TestFunctionAnalysisThreatScoreData(unittest.TestCase): - """FunctionAnalysisThreatScoreData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionAnalysisThreatScoreData: - """Test FunctionAnalysisThreatScoreData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionAnalysisThreatScoreData` - """ - model = FunctionAnalysisThreatScoreData() - if include_optional: - return FunctionAnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56 - ) - else: - return FunctionAnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56, - ) - """ - - def testFunctionAnalysisThreatScoreData(self): - """Test FunctionAnalysisThreatScoreData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_batch_ann.py b/revengai/test/test_function_batch_ann.py deleted file mode 100644 index 0f448d0..0000000 --- a/revengai/test/test_function_batch_ann.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_batch_ann import FunctionBatchAnn - -class TestFunctionBatchAnn(unittest.TestCase): - """FunctionBatchAnn unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionBatchAnn: - """Test FunctionBatchAnn - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionBatchAnn` - """ - model = FunctionBatchAnn() - if include_optional: - return FunctionBatchAnn( - success = None, - settings = None, - function_matches = None - ) - else: - return FunctionBatchAnn( - settings = None, - function_matches = None, - ) - """ - - def testFunctionBatchAnn(self): - """Test FunctionBatchAnn""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_block_destination_response.py b/revengai/test/test_function_block_destination_response.py deleted file mode 100644 index 9aa73ad..0000000 --- a/revengai/test/test_function_block_destination_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_block_destination_response import FunctionBlockDestinationResponse - -class TestFunctionBlockDestinationResponse(unittest.TestCase): - """FunctionBlockDestinationResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionBlockDestinationResponse: - """Test FunctionBlockDestinationResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionBlockDestinationResponse` - """ - model = FunctionBlockDestinationResponse() - if include_optional: - return FunctionBlockDestinationResponse( - destination_block_id = 56, - flowtype = '', - vaddr = '' - ) - else: - return FunctionBlockDestinationResponse( - destination_block_id = 56, - flowtype = '', - vaddr = '', - ) - """ - - def testFunctionBlockDestinationResponse(self): - """Test FunctionBlockDestinationResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_block_response.py b/revengai/test/test_function_block_response.py deleted file mode 100644 index bbf7506..0000000 --- a/revengai/test/test_function_block_response.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_block_response import FunctionBlockResponse - -class TestFunctionBlockResponse(unittest.TestCase): - """FunctionBlockResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionBlockResponse: - """Test FunctionBlockResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionBlockResponse` - """ - model = FunctionBlockResponse() - if include_optional: - return FunctionBlockResponse( - asm = [ - '' - ], - id = 56, - min_addr = 56, - max_addr = 56, - destinations = [ - revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( - destination_block_id = 56, - flowtype = '', - vaddr = '', ) - ], - comment = '' - ) - else: - return FunctionBlockResponse( - asm = [ - '' - ], - id = 56, - min_addr = 56, - max_addr = 56, - destinations = [ - revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( - destination_block_id = 56, - flowtype = '', - vaddr = '', ) - ], - ) - """ - - def testFunctionBlockResponse(self): - """Test FunctionBlockResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_blocks_response.py b/revengai/test/test_function_blocks_response.py deleted file mode 100644 index 9e1bd58..0000000 --- a/revengai/test/test_function_blocks_response.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_blocks_response import FunctionBlocksResponse - -class TestFunctionBlocksResponse(unittest.TestCase): - """FunctionBlocksResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionBlocksResponse: - """Test FunctionBlocksResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionBlocksResponse` - """ - model = FunctionBlocksResponse() - if include_optional: - return FunctionBlocksResponse( - blocks = [ - revengai.models.function_block_response.FunctionBlockResponse( - asm = [ - '' - ], - id = 56, - min_addr = 56, - max_addr = 56, - destinations = [ - revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( - destination_block_id = 56, - flowtype = '', - vaddr = '', ) - ], - comment = '', ) - ], - local_variables = [ - revengai.models.function_local_variable_response.FunctionLocalVariableResponse( - address = '', - d_type = '', - size = 56, - loc = '', - name = '', ) - ], - params = [ - revengai.models.function_param_response.FunctionParamResponse( - d_type = '', - loc = '', - addr = '', - length = 56, - name = '', ) - ], - overview_comment = '' - ) - else: - return FunctionBlocksResponse( - blocks = [ - revengai.models.function_block_response.FunctionBlockResponse( - asm = [ - '' - ], - id = 56, - min_addr = 56, - max_addr = 56, - destinations = [ - revengai.models.function_block_destination_response.FunctionBlockDestinationResponse( - destination_block_id = 56, - flowtype = '', - vaddr = '', ) - ], - comment = '', ) - ], - local_variables = [ - revengai.models.function_local_variable_response.FunctionLocalVariableResponse( - address = '', - d_type = '', - size = 56, - loc = '', - name = '', ) - ], - params = [ - revengai.models.function_param_response.FunctionParamResponse( - d_type = '', - loc = '', - addr = '', - length = 56, - name = '', ) - ], - overview_comment = '', - ) - """ - - def testFunctionBlocksResponse(self): - """Test FunctionBlocksResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_boundary.py b/revengai/test/test_function_boundary.py deleted file mode 100644 index 932116e..0000000 --- a/revengai/test/test_function_boundary.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_boundary import FunctionBoundary - -class TestFunctionBoundary(unittest.TestCase): - """FunctionBoundary unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionBoundary: - """Test FunctionBoundary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionBoundary` - """ - model = FunctionBoundary() - if include_optional: - return FunctionBoundary( - name = '', - start_address = 56, - end_address = 56 - ) - else: - return FunctionBoundary( - name = '', - start_address = 56, - end_address = 56, - ) - """ - - def testFunctionBoundary(self): - """Test FunctionBoundary""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_box_plot_confidence.py b/revengai/test/test_function_box_plot_confidence.py deleted file mode 100644 index fd485d2..0000000 --- a/revengai/test/test_function_box_plot_confidence.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_box_plot_confidence import FunctionBoxPlotConfidence - -class TestFunctionBoxPlotConfidence(unittest.TestCase): - """FunctionBoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionBoxPlotConfidence: - """Test FunctionBoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionBoxPlotConfidence` - """ - model = FunctionBoxPlotConfidence() - if include_optional: - return FunctionBoxPlotConfidence( - function_id = 56, - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ) - ) - else: - return FunctionBoxPlotConfidence( - function_id = 56, - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ), - ) - """ - - def testFunctionBoxPlotConfidence(self): - """Test FunctionBoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_capability_response.py b/revengai/test/test_function_capability_response.py deleted file mode 100644 index cfb908d..0000000 --- a/revengai/test/test_function_capability_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_capability_response import FunctionCapabilityResponse - -class TestFunctionCapabilityResponse(unittest.TestCase): - """FunctionCapabilityResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionCapabilityResponse: - """Test FunctionCapabilityResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionCapabilityResponse` - """ - model = FunctionCapabilityResponse() - if include_optional: - return FunctionCapabilityResponse( - capabilities = [ - '' - ] - ) - else: - return FunctionCapabilityResponse( - capabilities = [ - '' - ], - ) - """ - - def testFunctionCapabilityResponse(self): - """Test FunctionCapabilityResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_comment_create_request.py b/revengai/test/test_function_comment_create_request.py deleted file mode 100644 index 91666be..0000000 --- a/revengai/test/test_function_comment_create_request.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_comment_create_request import FunctionCommentCreateRequest - -class TestFunctionCommentCreateRequest(unittest.TestCase): - """FunctionCommentCreateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionCommentCreateRequest: - """Test FunctionCommentCreateRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionCommentCreateRequest` - """ - model = FunctionCommentCreateRequest() - if include_optional: - return FunctionCommentCreateRequest( - content = '', - context = revengai.models.decompilation_comment_context.DecompilationCommentContext( - start_line = 56, - end_line = 56, ) - ) - else: - return FunctionCommentCreateRequest( - content = '', - ) - """ - - def testFunctionCommentCreateRequest(self): - """Test FunctionCommentCreateRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_data_types.py b/revengai/test/test_function_data_types.py deleted file mode 100644 index 9fe6903..0000000 --- a/revengai/test/test_function_data_types.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_data_types import FunctionDataTypes - -class TestFunctionDataTypes(unittest.TestCase): - """FunctionDataTypes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionDataTypes: - """Test FunctionDataTypes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionDataTypes` - """ - model = FunctionDataTypes() - if include_optional: - return FunctionDataTypes( - completed = True, - status = '', - data_types = revengai.models.function_info.FunctionInfo( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - data_types_version = 56 - ) - else: - return FunctionDataTypes( - completed = True, - status = '', - ) - """ - - def testFunctionDataTypes(self): - """Test FunctionDataTypes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_data_types_list.py b/revengai/test/test_function_data_types_list.py deleted file mode 100644 index f60ce6a..0000000 --- a/revengai/test/test_function_data_types_list.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_data_types_list import FunctionDataTypesList - -class TestFunctionDataTypesList(unittest.TestCase): - """FunctionDataTypesList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionDataTypesList: - """Test FunctionDataTypesList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionDataTypesList` - """ - model = FunctionDataTypesList() - if include_optional: - return FunctionDataTypesList( - total_count = 56, - total_data_types_count = 56, - items = [ - revengai.models.function_data_types_list_item.FunctionDataTypesListItem( - completed = True, - status = '', - data_types = revengai.models.function_info.FunctionInfo( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - data_types_version = 56, - function_id = 56, ) - ] - ) - else: - return FunctionDataTypesList( - items = [ - revengai.models.function_data_types_list_item.FunctionDataTypesListItem( - completed = True, - status = '', - data_types = revengai.models.function_info.FunctionInfo( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - data_types_version = 56, - function_id = 56, ) - ], - ) - """ - - def testFunctionDataTypesList(self): - """Test FunctionDataTypesList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_data_types_list_item.py b/revengai/test/test_function_data_types_list_item.py deleted file mode 100644 index d3283fd..0000000 --- a/revengai/test/test_function_data_types_list_item.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_data_types_list_item import FunctionDataTypesListItem - -class TestFunctionDataTypesListItem(unittest.TestCase): - """FunctionDataTypesListItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionDataTypesListItem: - """Test FunctionDataTypesListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionDataTypesListItem` - """ - model = FunctionDataTypesListItem() - if include_optional: - return FunctionDataTypesListItem( - completed = True, - status = '', - data_types = revengai.models.function_info.FunctionInfo( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - data_types_version = 56, - function_id = 56 - ) - else: - return FunctionDataTypesListItem( - completed = True, - status = '', - function_id = 56, - ) - """ - - def testFunctionDataTypesListItem(self): - """Test FunctionDataTypesListItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_data_types_params.py b/revengai/test/test_function_data_types_params.py deleted file mode 100644 index 65a245c..0000000 --- a/revengai/test/test_function_data_types_params.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_data_types_params import FunctionDataTypesParams - -class TestFunctionDataTypesParams(unittest.TestCase): - """FunctionDataTypesParams unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionDataTypesParams: - """Test FunctionDataTypesParams - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionDataTypesParams` - """ - model = FunctionDataTypesParams() - if include_optional: - return FunctionDataTypesParams( - function_ids = [ - 56 - ] - ) - else: - return FunctionDataTypesParams( - function_ids = [ - 56 - ], - ) - """ - - def testFunctionDataTypesParams(self): - """Test FunctionDataTypesParams""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_data_types_status.py b/revengai/test/test_function_data_types_status.py deleted file mode 100644 index d1efb07..0000000 --- a/revengai/test/test_function_data_types_status.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_data_types_status import FunctionDataTypesStatus - -class TestFunctionDataTypesStatus(unittest.TestCase): - """FunctionDataTypesStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionDataTypesStatus: - """Test FunctionDataTypesStatus - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionDataTypesStatus` - """ - model = FunctionDataTypesStatus() - if include_optional: - return FunctionDataTypesStatus( - function_id = 56, - completed = True, - status = '' - ) - else: - return FunctionDataTypesStatus( - function_id = 56, - completed = True, - status = '', - ) - """ - - def testFunctionDataTypesStatus(self): - """Test FunctionDataTypesStatus""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_dump.py b/revengai/test/test_function_dump.py deleted file mode 100644 index 619d468..0000000 --- a/revengai/test/test_function_dump.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_dump import FunctionDump - -class TestFunctionDump(unittest.TestCase): - """FunctionDump unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionDump: - """Test FunctionDump - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionDump` - """ - model = FunctionDump() - if include_optional: - return FunctionDump( - success = None, - functions = None, - invalid_functions = None - ) - else: - return FunctionDump( - functions = None, - invalid_functions = None, - ) - """ - - def testFunctionDump(self): - """Test FunctionDump""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_header.py b/revengai/test/test_function_header.py deleted file mode 100644 index 385a477..0000000 --- a/revengai/test/test_function_header.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_header import FunctionHeader - -class TestFunctionHeader(unittest.TestCase): - """FunctionHeader unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionHeader: - """Test FunctionHeader - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionHeader` - """ - model = FunctionHeader() - if include_optional: - return FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - } - ) - else: - return FunctionHeader( - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, - ) - """ - - def testFunctionHeader(self): - """Test FunctionHeader""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_info_input.py b/revengai/test/test_function_info_input.py deleted file mode 100644 index 4852a26..0000000 --- a/revengai/test/test_function_info_input.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_info_input import FunctionInfoInput - -class TestFunctionInfoInput(unittest.TestCase): - """FunctionInfoInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionInfoInput: - """Test FunctionInfoInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionInfoInput` - """ - model = FunctionInfoInput() - if include_optional: - return FunctionInfoInput( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ] - ) - else: - return FunctionInfoInput( - func_deps = [ - null - ], - ) - """ - - def testFunctionInfoInput(self): - """Test FunctionInfoInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_info_input_func_deps_inner.py b/revengai/test/test_function_info_input_func_deps_inner.py deleted file mode 100644 index 7952375..0000000 --- a/revengai/test/test_function_info_input_func_deps_inner.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_info_input_func_deps_inner import FunctionInfoInputFuncDepsInner - -class TestFunctionInfoInputFuncDepsInner(unittest.TestCase): - """FunctionInfoInputFuncDepsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionInfoInputFuncDepsInner: - """Test FunctionInfoInputFuncDepsInner - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionInfoInputFuncDepsInner` - """ - model = FunctionInfoInputFuncDepsInner() - if include_optional: - return FunctionInfoInputFuncDepsInner( - last_change = '', - name = '', - size = 56, - members = { - 'key' : 56 - }, - artifact_type = '', - type = '', - addr = 56 - ) - else: - return FunctionInfoInputFuncDepsInner( - name = '', - size = 56, - members = { - 'key' : 56 - }, - type = '', - addr = 56, - ) - """ - - def testFunctionInfoInputFuncDepsInner(self): - """Test FunctionInfoInputFuncDepsInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_info_output.py b/revengai/test/test_function_info_output.py deleted file mode 100644 index d70b019..0000000 --- a/revengai/test/test_function_info_output.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_info_output import FunctionInfoOutput - -class TestFunctionInfoOutput(unittest.TestCase): - """FunctionInfoOutput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionInfoOutput: - """Test FunctionInfoOutput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionInfoOutput` - """ - model = FunctionInfoOutput() - if include_optional: - return FunctionInfoOutput( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ] - ) - else: - return FunctionInfoOutput( - func_deps = [ - null - ], - ) - """ - - def testFunctionInfoOutput(self): - """Test FunctionInfoOutput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_list.py b/revengai/test/test_function_list.py deleted file mode 100644 index 99a8de6..0000000 --- a/revengai/test/test_function_list.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_list import FunctionList - -class TestFunctionList(unittest.TestCase): - """FunctionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionList: - """Test FunctionList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionList` - """ - model = FunctionList() - if include_optional: - return FunctionList( - function_id_list = [ - 56 - ] - ) - else: - return FunctionList( - function_id_list = [ - 56 - ], - ) - """ - - def testFunctionList(self): - """Test FunctionList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_list_basic.py b/revengai/test/test_function_list_basic.py deleted file mode 100644 index d77bb16..0000000 --- a/revengai/test/test_function_list_basic.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_list_basic import FunctionListBasic - -class TestFunctionListBasic(unittest.TestCase): - """FunctionListBasic unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionListBasic: - """Test FunctionListBasic - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionListBasic` - """ - model = FunctionListBasic() - if include_optional: - return FunctionListBasic( - success = None, - functions = None - ) - else: - return FunctionListBasic( - functions = None, - ) - """ - - def testFunctionListBasic(self): - """Test FunctionListBasic""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_local_variable_response.py b/revengai/test/test_function_local_variable_response.py deleted file mode 100644 index a4e6ea4..0000000 --- a/revengai/test/test_function_local_variable_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_local_variable_response import FunctionLocalVariableResponse - -class TestFunctionLocalVariableResponse(unittest.TestCase): - """FunctionLocalVariableResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionLocalVariableResponse: - """Test FunctionLocalVariableResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionLocalVariableResponse` - """ - model = FunctionLocalVariableResponse() - if include_optional: - return FunctionLocalVariableResponse( - address = '', - d_type = '', - size = 56, - loc = '', - name = '' - ) - else: - return FunctionLocalVariableResponse( - address = '', - d_type = '', - size = 56, - loc = '', - name = '', - ) - """ - - def testFunctionLocalVariableResponse(self): - """Test FunctionLocalVariableResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_mapping_full.py b/revengai/test/test_function_mapping_full.py deleted file mode 100644 index b2a96c4..0000000 --- a/revengai/test/test_function_mapping_full.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_mapping_full import FunctionMappingFull - -class TestFunctionMappingFull(unittest.TestCase): - """FunctionMappingFull unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionMappingFull: - """Test FunctionMappingFull - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionMappingFull` - """ - model = FunctionMappingFull() - if include_optional: - return FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) - }, - inverse_function_map = { - 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', - addr = null, - is_external = True, ) - }, - unmatched_functions = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_external_vars = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_custom_types = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_strings = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_vars = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_go_to_labels = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_custom_function_pointers = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_variadic_lists = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - fields = { - 'key' : { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - } - } - ) - else: - return FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) - }, - inverse_function_map = { - 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', - addr = null, - is_external = True, ) - }, - unmatched_functions = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_external_vars = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_custom_types = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_strings = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_vars = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_go_to_labels = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_custom_function_pointers = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_variadic_lists = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - fields = { - 'key' : { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - } - }, - ) - """ - - def testFunctionMappingFull(self): - """Test FunctionMappingFull""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_name_confidence_body.py b/revengai/test/test_function_name_confidence_body.py deleted file mode 100644 index 086fbdc..0000000 --- a/revengai/test/test_function_name_confidence_body.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_name_confidence_body import FunctionNameConfidenceBody - -class TestFunctionNameConfidenceBody(unittest.TestCase): - """FunctionNameConfidenceBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionNameConfidenceBody: - """Test FunctionNameConfidenceBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionNameConfidenceBody` - """ - model = FunctionNameConfidenceBody() - if include_optional: - return FunctionNameConfidenceBody( - functions = [ - revengai.models.function_name_input.FunctionNameInput( - function_id = 56, - function_name = '', ) - ], - is_debug = True - ) - else: - return FunctionNameConfidenceBody( - ) - """ - - def testFunctionNameConfidenceBody(self): - """Test FunctionNameConfidenceBody""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_name_history.py b/revengai/test/test_function_name_history.py deleted file mode 100644 index 4bce715..0000000 --- a/revengai/test/test_function_name_history.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_name_history import FunctionNameHistory - -class TestFunctionNameHistory(unittest.TestCase): - """FunctionNameHistory unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionNameHistory: - """Test FunctionNameHistory - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionNameHistory` - """ - model = FunctionNameHistory() - if include_optional: - return FunctionNameHistory( - history_id = 56, - change_made_by = '', - function_name = '', - is_debug = True, - source_type = '', - created_at = '' - ) - else: - return FunctionNameHistory( - history_id = 56, - change_made_by = '', - function_name = '', - is_debug = True, - source_type = '', - created_at = '', - ) - """ - - def testFunctionNameHistory(self): - """Test FunctionNameHistory""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_name_input.py b/revengai/test/test_function_name_input.py deleted file mode 100644 index 83d0cb9..0000000 --- a/revengai/test/test_function_name_input.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_name_input import FunctionNameInput - -class TestFunctionNameInput(unittest.TestCase): - """FunctionNameInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionNameInput: - """Test FunctionNameInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionNameInput` - """ - model = FunctionNameInput() - if include_optional: - return FunctionNameInput( - function_id = 56, - function_name = '' - ) - else: - return FunctionNameInput( - function_id = 56, - function_name = '', - ) - """ - - def testFunctionNameInput(self): - """Test FunctionNameInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_param_mapping.py b/revengai/test/test_function_param_mapping.py deleted file mode 100644 index f606f39..0000000 --- a/revengai/test/test_function_param_mapping.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_param_mapping import FunctionParamMapping - -class TestFunctionParamMapping(unittest.TestCase): - """FunctionParamMapping unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionParamMapping: - """Test FunctionParamMapping - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionParamMapping` - """ - model = FunctionParamMapping() - if include_optional: - return FunctionParamMapping( - function_id = 56, - vaddr = 56 - ) - else: - return FunctionParamMapping( - function_id = 56, - vaddr = 56, - ) - """ - - def testFunctionParamMapping(self): - """Test FunctionParamMapping""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_param_response.py b/revengai/test/test_function_param_response.py deleted file mode 100644 index 793bda4..0000000 --- a/revengai/test/test_function_param_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_param_response import FunctionParamResponse - -class TestFunctionParamResponse(unittest.TestCase): - """FunctionParamResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionParamResponse: - """Test FunctionParamResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionParamResponse` - """ - model = FunctionParamResponse() - if include_optional: - return FunctionParamResponse( - d_type = '', - loc = '', - addr = '', - length = 56, - name = '' - ) - else: - return FunctionParamResponse( - d_type = '', - loc = '', - addr = '', - length = 56, - name = '', - ) - """ - - def testFunctionParamResponse(self): - """Test FunctionParamResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_params.py b/revengai/test/test_function_params.py deleted file mode 100644 index e293ebd..0000000 --- a/revengai/test/test_function_params.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_params import FunctionParams - -class TestFunctionParams(unittest.TestCase): - """FunctionParams unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionParams: - """Test FunctionParams - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionParams` - """ - model = FunctionParams() - if include_optional: - return FunctionParams( - function_id_list = [ - revengai.models.function_param_mapping.FunctionParamMapping( - function_id = 56, - vaddr = 56, ) - ] - ) - else: - return FunctionParams( - function_id_list = [ - revengai.models.function_param_mapping.FunctionParamMapping( - function_id = 56, - vaddr = 56, ) - ], - ) - """ - - def testFunctionParams(self): - """Test FunctionParams""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_rename.py b/revengai/test/test_function_rename.py deleted file mode 100644 index dfe1c29..0000000 --- a/revengai/test/test_function_rename.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_rename import FunctionRename - -class TestFunctionRename(unittest.TestCase): - """FunctionRename unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionRename: - """Test FunctionRename - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionRename` - """ - model = FunctionRename() - if include_optional: - return FunctionRename( - new_name = '', - new_mangled_name = '' - ) - else: - return FunctionRename( - ) - """ - - def testFunctionRename(self): - """Test FunctionRename""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_rename_map.py b/revengai/test/test_function_rename_map.py deleted file mode 100644 index f3e2982..0000000 --- a/revengai/test/test_function_rename_map.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_rename_map import FunctionRenameMap - -class TestFunctionRenameMap(unittest.TestCase): - """FunctionRenameMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionRenameMap: - """Test FunctionRenameMap - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionRenameMap` - """ - model = FunctionRenameMap() - if include_optional: - return FunctionRenameMap( - function_id = 56, - new_name = '', - new_mangled_name = '' - ) - else: - return FunctionRenameMap( - function_id = 56, - new_name = '', - ) - """ - - def testFunctionRenameMap(self): - """Test FunctionRenameMap""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_search_response.py b/revengai/test/test_function_search_response.py deleted file mode 100644 index b8ea411..0000000 --- a/revengai/test/test_function_search_response.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_search_response import FunctionSearchResponse - -class TestFunctionSearchResponse(unittest.TestCase): - """FunctionSearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionSearchResponse: - """Test FunctionSearchResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionSearchResponse` - """ - model = FunctionSearchResponse() - if include_optional: - return FunctionSearchResponse( - results = [ - revengai.models.function_search_result.FunctionSearchResult( - function_id = 56, - function_name = '', - binary_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', ) - ] - ) - else: - return FunctionSearchResponse( - results = [ - revengai.models.function_search_result.FunctionSearchResult( - function_id = 56, - function_name = '', - binary_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', ) - ], - ) - """ - - def testFunctionSearchResponse(self): - """Test FunctionSearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_search_result.py b/revengai/test/test_function_search_result.py deleted file mode 100644 index 185d31f..0000000 --- a/revengai/test/test_function_search_result.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_search_result import FunctionSearchResult - -class TestFunctionSearchResult(unittest.TestCase): - """FunctionSearchResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionSearchResult: - """Test FunctionSearchResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionSearchResult` - """ - model = FunctionSearchResult() - if include_optional: - return FunctionSearchResult( - function_id = 56, - function_name = '', - binary_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '' - ) - else: - return FunctionSearchResult( - function_id = 56, - function_name = '', - binary_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_id = 56, - model_name = '', - owned_by = '', - ) - """ - - def testFunctionSearchResult(self): - """Test FunctionSearchResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_string.py b/revengai/test/test_function_string.py deleted file mode 100644 index a861c34..0000000 --- a/revengai/test/test_function_string.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_string import FunctionString - -class TestFunctionString(unittest.TestCase): - """FunctionString unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionString: - """Test FunctionString - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionString` - """ - model = FunctionString() - if include_optional: - return FunctionString( - value = '', - vaddr = 56 - ) - else: - return FunctionString( - value = '', - vaddr = 56, - ) - """ - - def testFunctionString(self): - """Test FunctionString""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_strings_response.py b/revengai/test/test_function_strings_response.py deleted file mode 100644 index 5bab6de..0000000 --- a/revengai/test/test_function_strings_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_strings_response import FunctionStringsResponse - -class TestFunctionStringsResponse(unittest.TestCase): - """FunctionStringsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionStringsResponse: - """Test FunctionStringsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionStringsResponse` - """ - model = FunctionStringsResponse() - if include_optional: - return FunctionStringsResponse( - strings = [ - revengai.models.function_string.FunctionString( - value = '', - vaddr = 56, ) - ], - total_strings = 56 - ) - else: - return FunctionStringsResponse( - strings = [ - revengai.models.function_string.FunctionString( - value = '', - vaddr = 56, ) - ], - total_strings = 56, - ) - """ - - def testFunctionStringsResponse(self): - """Test FunctionStringsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_task_response.py b/revengai/test/test_function_task_response.py deleted file mode 100644 index 4d41ec3..0000000 --- a/revengai/test/test_function_task_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_task_response import FunctionTaskResponse - -class TestFunctionTaskResponse(unittest.TestCase): - """FunctionTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionTaskResponse: - """Test FunctionTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionTaskResponse` - """ - model = FunctionTaskResponse() - if include_optional: - return FunctionTaskResponse( - status = 'UNINITIALISED', - error_message = '' - ) - else: - return FunctionTaskResponse( - ) - """ - - def testFunctionTaskResponse(self): - """Test FunctionTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_task_status.py b/revengai/test/test_function_task_status.py deleted file mode 100644 index 7dc4cc9..0000000 --- a/revengai/test/test_function_task_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_task_status import FunctionTaskStatus - -class TestFunctionTaskStatus(unittest.TestCase): - """FunctionTaskStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFunctionTaskStatus(self): - """Test FunctionTaskStatus""" - # inst = FunctionTaskStatus() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_threat_score.py b/revengai/test/test_function_threat_score.py deleted file mode 100644 index 9065970..0000000 --- a/revengai/test/test_function_threat_score.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_threat_score import FunctionThreatScore - -class TestFunctionThreatScore(unittest.TestCase): - """FunctionThreatScore unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionThreatScore: - """Test FunctionThreatScore - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionThreatScore` - """ - model = FunctionThreatScore() - if include_optional: - return FunctionThreatScore( - results = { - 'key' : revengai.models.function_analysis_threat_score_data.FunctionAnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56, ) - } - ) - else: - return FunctionThreatScore( - results = { - 'key' : revengai.models.function_analysis_threat_score_data.FunctionAnalysisThreatScoreData( - min = 1.337, - max = 1.337, - average = 1.337, - upper = 1.337, - lower = 1.337, - malware_count = 56, - benign_count = 56, ) - }, - ) - """ - - def testFunctionThreatScore(self): - """Test FunctionThreatScore""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_type_input.py b/revengai/test/test_function_type_input.py deleted file mode 100644 index 64a65d9..0000000 --- a/revengai/test/test_function_type_input.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_type_input import FunctionTypeInput - -class TestFunctionTypeInput(unittest.TestCase): - """FunctionTypeInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionTypeInput: - """Test FunctionTypeInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionTypeInput` - """ - model = FunctionTypeInput() - if include_optional: - return FunctionTypeInput( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function' - ) - else: - return FunctionTypeInput( - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - name = '', - type = '', - ) - """ - - def testFunctionTypeInput(self): - """Test FunctionTypeInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_function_type_output.py b/revengai/test/test_function_type_output.py deleted file mode 100644 index 763d805..0000000 --- a/revengai/test/test_function_type_output.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.function_type_output import FunctionTypeOutput - -class TestFunctionTypeOutput(unittest.TestCase): - """FunctionTypeOutput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionTypeOutput: - """Test FunctionTypeOutput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionTypeOutput` - """ - model = FunctionTypeOutput() - if include_optional: - return FunctionTypeOutput( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function' - ) - else: - return FunctionTypeOutput( - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - name = '', - type = '', - ) - """ - - def testFunctionTypeOutput(self): - """Test FunctionTypeOutput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_ai_decompilation_api.py b/revengai/test/test_functions_ai_decompilation_api.py deleted file mode 100644 index 5e718cc..0000000 --- a/revengai/test/test_functions_ai_decompilation_api.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.functions_ai_decompilation_api import FunctionsAIDecompilationApi - - -class TestFunctionsAIDecompilationApi(unittest.TestCase): - """FunctionsAIDecompilationApi unit test stubs""" - - def setUp(self) -> None: - self.api = FunctionsAIDecompilationApi() - - def tearDown(self) -> None: - pass - - def test_create_ai_decompilation_comment(self) -> None: - """Test case for create_ai_decompilation_comment - - Create a comment for this function - """ - pass - - def test_create_ai_decompilation_task(self) -> None: - """Test case for create_ai_decompilation_task - - Begins AI Decompilation Process - """ - pass - - def test_create_ai_decompilation_task_deprecated(self) -> None: - """Test case for create_ai_decompilation_task_deprecated - - Begins AI Decompilation Process - """ - pass - - def test_delete_ai_decompilation_comment(self) -> None: - """Test case for delete_ai_decompilation_comment - - Delete a comment - """ - pass - - def test_get_ai_decompilation_comments(self) -> None: - """Test case for get_ai_decompilation_comments - - Get comments for this function - """ - pass - - def test_get_ai_decompilation_rating(self) -> None: - """Test case for get_ai_decompilation_rating - - Get rating for AI decompilation - """ - pass - - def test_get_ai_decompilation_task_result(self) -> None: - """Test case for get_ai_decompilation_task_result - - Polls AI Decompilation Process - """ - pass - - def test_get_ai_decompilation_task_result_deprecated(self) -> None: - """Test case for get_ai_decompilation_task_result_deprecated - - Polls AI Decompilation Process - """ - pass - - def test_get_ai_decompilation_task_status(self) -> None: - """Test case for get_ai_decompilation_task_status - - Check the status of a function ai decompilation - """ - pass - - def test_update_ai_decompilation_comment(self) -> None: - """Test case for update_ai_decompilation_comment - - Update a comment - """ - pass - - def test_upsert_ai_decompilation_rating(self) -> None: - """Test case for upsert_ai_decompilation_rating - - Upsert rating for AI decompilation - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_block_comments_api.py b/revengai/test/test_functions_block_comments_api.py deleted file mode 100644 index 346eb84..0000000 --- a/revengai/test/test_functions_block_comments_api.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.functions_block_comments_api import FunctionsBlockCommentsApi - - -class TestFunctionsBlockCommentsApi(unittest.TestCase): - """FunctionsBlockCommentsApi unit test stubs""" - - def setUp(self) -> None: - self.api = FunctionsBlockCommentsApi() - - def tearDown(self) -> None: - pass - - def test_generate_block_comments_for_block_in_function(self) -> None: - """Test case for generate_block_comments_for_block_in_function - - Generate block comments for a specific block in a function - """ - pass - - def test_generate_block_comments_for_block_in_function_deprecated(self) -> None: - """Test case for generate_block_comments_for_block_in_function_deprecated - - Generate block comments for a specific block in a function - """ - pass - - def test_generate_block_comments_for_function(self) -> None: - """Test case for generate_block_comments_for_function - - Generate block comments for a function - """ - pass - - def test_generate_block_comments_for_function_deprecated(self) -> None: - """Test case for generate_block_comments_for_function_deprecated - - Generate block comments for a function - """ - pass - - def test_generate_overview_comment_for_function(self) -> None: - """Test case for generate_overview_comment_for_function - - Generate overview comment for a function - """ - pass - - def test_generate_overview_comment_for_function_deprecated(self) -> None: - """Test case for generate_overview_comment_for_function_deprecated - - Generate overview comment for a function - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_core_api.py b/revengai/test/test_functions_core_api.py deleted file mode 100644 index c86a581..0000000 --- a/revengai/test/test_functions_core_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.functions_core_api import FunctionsCoreApi - - -class TestFunctionsCoreApi(unittest.TestCase): - """FunctionsCoreApi unit test stubs""" - - def setUp(self) -> None: - self.api = FunctionsCoreApi() - - def tearDown(self) -> None: - pass - - def test_get_analysis_strings(self) -> None: - """Test case for get_analysis_strings - - Get string information found in the Analysis - """ - pass - - def test_get_analysis_strings_deprecated(self) -> None: - """Test case for get_analysis_strings_deprecated - - Get string information found in the Analysis - """ - pass - - def test_get_function_blocks(self) -> None: - """Test case for get_function_blocks - - Get disassembly blocks related to the function - """ - pass - - def test_get_function_callees_callers(self) -> None: - """Test case for get_function_callees_callers - - Get list of functions that call or are called by the specified function - """ - pass - - def test_get_function_capabilities(self) -> None: - """Test case for get_function_capabilities - - Retrieve a functions capabilities - """ - pass - - def test_get_function_details(self) -> None: - """Test case for get_function_details - - Get function details - """ - pass - - def test_get_function_strings(self) -> None: - """Test case for get_function_strings - - Get string information found in the function - """ - pass - - def test_get_similar_functions(self) -> None: - """Test case for get_similar_functions - - Get list of similar functions - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_data_types_api.py b/revengai/test/test_functions_data_types_api.py deleted file mode 100644 index 09b8bbb..0000000 --- a/revengai/test/test_functions_data_types_api.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.functions_data_types_api import FunctionsDataTypesApi - - -class TestFunctionsDataTypesApi(unittest.TestCase): - """FunctionsDataTypesApi unit test stubs""" - - def setUp(self) -> None: - self.api = FunctionsDataTypesApi() - - def tearDown(self) -> None: - pass - - def test_generate_function_datatypes_analysis_v2_analyses_analysis_id_functions_data_types_post(self) -> None: - """Test case for generate_function_datatypes_analysis_v2_analyses_analysis_id_functions_data_types_post - - Generate Function Data Types - """ - pass - - def test_generate_function_datatypes_analysis_v2_analyses_analysis_id_info_functions_data_types_post(self) -> None: - """Test case for generate_function_datatypes_analysis_v2_analyses_analysis_id_info_functions_data_types_post - - Generate Function Data Types - """ - pass - - def test_generate_function_datatypes_v2_functions_data_types_post(self) -> None: - """Test case for generate_function_datatypes_v2_functions_data_types_post - - Generate Function Data Types for an arbitrary list of functions - """ - pass - - def test_get_function_data_types_v2_analyses_analysis_id_functions_function_id_data_types_get(self) -> None: - """Test case for get_function_data_types_v2_analyses_analysis_id_functions_function_id_data_types_get - - Get Function Data Types - """ - pass - - def test_get_function_data_types_v2_analyses_analysis_id_info_functions_function_id_data_types_get(self) -> None: - """Test case for get_function_data_types_v2_analyses_analysis_id_info_functions_function_id_data_types_get - - Get Function Data Types - """ - pass - - def test_list_function_data_types_analysis_v2_analyses_analysis_id_functions_data_types_get(self) -> None: - """Test case for list_function_data_types_analysis_v2_analyses_analysis_id_functions_data_types_get - - List Function Data Types - """ - pass - - def test_list_function_data_types_analysis_v2_analyses_analysis_id_info_functions_data_types_get(self) -> None: - """Test case for list_function_data_types_analysis_v2_analyses_analysis_id_info_functions_data_types_get - - List Function Data Types - """ - pass - - def test_list_function_data_types_v2_functions_data_types_get(self) -> None: - """Test case for list_function_data_types_v2_functions_data_types_get - - List Function Data Types - """ - pass - - def test_update_function_data_types_v2_analyses_analysis_id_functions_function_id_data_types_put(self) -> None: - """Test case for update_function_data_types_v2_analyses_analysis_id_functions_function_id_data_types_put - - Update Function Data Types - """ - pass - - def test_update_function_data_types_v2_analyses_analysis_id_info_functions_function_id_data_types_put(self) -> None: - """Test case for update_function_data_types_v2_analyses_analysis_id_info_functions_function_id_data_types_put - - Update Function Data Types - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_decompilation_api.py b/revengai/test/test_functions_decompilation_api.py deleted file mode 100644 index 04f425b..0000000 --- a/revengai/test/test_functions_decompilation_api.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.functions_decompilation_api import FunctionsDecompilationApi - - -class TestFunctionsDecompilationApi(unittest.TestCase): - """FunctionsDecompilationApi unit test stubs""" - - def setUp(self) -> None: - self.api = FunctionsDecompilationApi() - - def tearDown(self) -> None: - pass - - def test_check_decompilation_task_v2_functions_function_id_decompilation_status_get(self) -> None: - """Test case for check_decompilation_task_v2_functions_function_id_decompilation_status_get - - Check the status of a function decompilation - """ - pass - - def test_create_decompilation_comment(self) -> None: - """Test case for create_decompilation_comment - - Create a comment for this function - """ - pass - - def test_create_decompilation_task_v2_functions_function_id_decompilation_post(self) -> None: - """Test case for create_decompilation_task_v2_functions_function_id_decompilation_post - - Queues a function decompilation - """ - pass - - def test_delete_decompilation_comment(self) -> None: - """Test case for delete_decompilation_comment - - Delete a comment - """ - pass - - def test_get_decompilation_comments(self) -> None: - """Test case for get_decompilation_comments - - Get comments for this function - """ - pass - - def test_get_decompilation_v2_functions_function_id_decompilation_get(self) -> None: - """Test case for get_decompilation_v2_functions_function_id_decompilation_get - - Get decompilation result - """ - pass - - def test_update_decompilation_comment(self) -> None: - """Test case for update_decompilation_comment - - Update a comment - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_detail_response.py b/revengai/test/test_functions_detail_response.py deleted file mode 100644 index 072ee81..0000000 --- a/revengai/test/test_functions_detail_response.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.functions_detail_response import FunctionsDetailResponse - -class TestFunctionsDetailResponse(unittest.TestCase): - """FunctionsDetailResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionsDetailResponse: - """Test FunctionsDetailResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionsDetailResponse` - """ - model = FunctionsDetailResponse() - if include_optional: - return FunctionsDetailResponse( - function_id = 56, - function_name = '', - function_vaddr = 56, - function_size = 56, - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - debug_hash = '', - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ] - ) - else: - return FunctionsDetailResponse( - function_id = 56, - function_name = '', - function_vaddr = 56, - function_size = 56, - analysis_id = 56, - binary_id = 56, - binary_name = '', - sha_256_hash = '', - debug_hash = '', - ) - """ - - def testFunctionsDetailResponse(self): - """Test FunctionsDetailResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_list_rename.py b/revengai/test/test_functions_list_rename.py deleted file mode 100644 index ce19f21..0000000 --- a/revengai/test/test_functions_list_rename.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.functions_list_rename import FunctionsListRename - -class TestFunctionsListRename(unittest.TestCase): - """FunctionsListRename unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FunctionsListRename: - """Test FunctionsListRename - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FunctionsListRename` - """ - model = FunctionsListRename() - if include_optional: - return FunctionsListRename( - functions = [ - revengai.models.function_rename_map.FunctionRenameMap( - function_id = 56, - new_name = '', - new_mangled_name = '', ) - ] - ) - else: - return FunctionsListRename( - functions = [ - revengai.models.function_rename_map.FunctionRenameMap( - function_id = 56, - new_name = '', - new_mangled_name = '', ) - ], - ) - """ - - def testFunctionsListRename(self): - """Test FunctionsListRename""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_renaming_history_api.py b/revengai/test/test_functions_renaming_history_api.py deleted file mode 100644 index 259f3d4..0000000 --- a/revengai/test/test_functions_renaming_history_api.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.functions_renaming_history_api import FunctionsRenamingHistoryApi - - -class TestFunctionsRenamingHistoryApi(unittest.TestCase): - """FunctionsRenamingHistoryApi unit test stubs""" - - def setUp(self) -> None: - self.api = FunctionsRenamingHistoryApi() - - def tearDown(self) -> None: - pass - - def test_batch_rename_function_v2_functions_rename_batch_post(self) -> None: - """Test case for batch_rename_function_v2_functions_rename_batch_post - - Batch Rename Functions - """ - pass - - def test_rename_function_id_v2_functions_history_function_id_get(self) -> None: - """Test case for rename_function_id_v2_functions_history_function_id_get - - Get Function Name History - """ - pass - - def test_rename_function_id_v2_functions_rename_function_id_post(self) -> None: - """Test case for rename_function_id_v2_functions_rename_function_id_post - - Rename Function - """ - pass - - def test_revert_function_name_v2_functions_history_function_id_history_id_post(self) -> None: - """Test case for revert_function_name_v2_functions_history_function_id_history_id_post - - Revert the function name - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_functions_threat_score_api.py b/revengai/test/test_functions_threat_score_api.py deleted file mode 100644 index 73dbcd6..0000000 --- a/revengai/test/test_functions_threat_score_api.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.functions_threat_score_api import FunctionsThreatScoreApi - - -class TestFunctionsThreatScoreApi(unittest.TestCase): - """FunctionsThreatScoreApi unit test stubs""" - - def setUp(self) -> None: - self.api = FunctionsThreatScoreApi() - - def tearDown(self) -> None: - pass - - def test_get_function_threat_score_v2_analyses_analysis_id_functions_threat_score_get(self) -> None: - """Test case for get_function_threat_score_v2_analyses_analysis_id_functions_threat_score_get - - Gets the threat score for all functions - """ - pass - - def test_get_function_threat_score_v2_analyses_analysis_id_info_functions_threat_score_get(self) -> None: - """Test case for get_function_threat_score_v2_analyses_analysis_id_info_functions_threat_score_get - - Gets the threat score for all functions - """ - pass - - def test_get_individual_function_threat_score_v2_analyses_analysis_id_functions_function_id_threat_score_get(self) -> None: - """Test case for get_individual_function_threat_score_v2_analyses_analysis_id_functions_function_id_threat_score_get - - Gets the threat score analysis - """ - pass - - def test_get_individual_function_threat_score_v2_analyses_analysis_id_info_functions_function_id_threat_score_get(self) -> None: - """Test case for get_individual_function_threat_score_v2_analyses_analysis_id_info_functions_function_id_threat_score_get - - Gets the threat score analysis - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_generate_function_data_types.py b/revengai/test/test_generate_function_data_types.py deleted file mode 100644 index be66e0f..0000000 --- a/revengai/test/test_generate_function_data_types.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.generate_function_data_types import GenerateFunctionDataTypes - -class TestGenerateFunctionDataTypes(unittest.TestCase): - """GenerateFunctionDataTypes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerateFunctionDataTypes: - """Test GenerateFunctionDataTypes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenerateFunctionDataTypes` - """ - model = GenerateFunctionDataTypes() - if include_optional: - return GenerateFunctionDataTypes( - queued = True, - reference = '', - data_types_list = revengai.models.generation_status_list.GenerationStatusList( - total_count = 56, - total_data_types_count = 56, - items = [ - revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, - completed = True, - status = '', ) - ], ) - ) - else: - return GenerateFunctionDataTypes( - queued = True, - reference = '', - data_types_list = revengai.models.generation_status_list.GenerationStatusList( - total_count = 56, - total_data_types_count = 56, - items = [ - revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, - completed = True, - status = '', ) - ], ), - ) - """ - - def testGenerateFunctionDataTypes(self): - """Test GenerateFunctionDataTypes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_generation_status_list.py b/revengai/test/test_generation_status_list.py deleted file mode 100644 index 311e320..0000000 --- a/revengai/test/test_generation_status_list.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.generation_status_list import GenerationStatusList - -class TestGenerationStatusList(unittest.TestCase): - """GenerationStatusList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GenerationStatusList: - """Test GenerationStatusList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GenerationStatusList` - """ - model = GenerationStatusList() - if include_optional: - return GenerationStatusList( - total_count = 56, - total_data_types_count = 56, - items = [ - revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, - completed = True, - status = '', ) - ] - ) - else: - return GenerationStatusList( - items = [ - revengai.models.function_data_types_status.FunctionDataTypesStatus( - function_id = 56, - completed = True, - status = '', ) - ], - ) - """ - - def testGenerationStatusList(self): - """Test GenerationStatusList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_get_ai_decompilation_rating_response.py b/revengai/test/test_get_ai_decompilation_rating_response.py deleted file mode 100644 index 223783b..0000000 --- a/revengai/test/test_get_ai_decompilation_rating_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.get_ai_decompilation_rating_response import GetAiDecompilationRatingResponse - -class TestGetAiDecompilationRatingResponse(unittest.TestCase): - """GetAiDecompilationRatingResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAiDecompilationRatingResponse: - """Test GetAiDecompilationRatingResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAiDecompilationRatingResponse` - """ - model = GetAiDecompilationRatingResponse() - if include_optional: - return GetAiDecompilationRatingResponse( - rating = 'POSITIVE' - ) - else: - return GetAiDecompilationRatingResponse( - rating = 'POSITIVE', - ) - """ - - def testGetAiDecompilationRatingResponse(self): - """Test GetAiDecompilationRatingResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_get_ai_decompilation_task.py b/revengai/test/test_get_ai_decompilation_task.py deleted file mode 100644 index 0b94f24..0000000 --- a/revengai/test/test_get_ai_decompilation_task.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.get_ai_decompilation_task import GetAiDecompilationTask - -class TestGetAiDecompilationTask(unittest.TestCase): - """GetAiDecompilationTask unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAiDecompilationTask: - """Test GetAiDecompilationTask - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAiDecompilationTask` - """ - model = GetAiDecompilationTask() - if include_optional: - return GetAiDecompilationTask( - status = '', - decompilation = '', - raw_decompilation = '', - function_mapping = { - 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', - addr = null, - is_external = True, ) - }, - function_mapping_full = revengai.models.function_mapping_full.FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) - }, - inverse_function_map = { - 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', - addr = null, - is_external = True, ) - }, - unmatched_functions = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_external_vars = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_custom_types = { - 'key' : - }, - unmatched_strings = { - 'key' : - }, - unmatched_vars = { - 'key' : - }, - unmatched_go_to_labels = { - 'key' : - }, - unmatched_custom_function_pointers = { - 'key' : - }, - unmatched_variadic_lists = { - 'key' : - }, - fields = { - 'key' : { - 'key' : - } - }, ), - summary = '', - ai_summary = '', - raw_ai_summary = '' - ) - else: - return GetAiDecompilationTask( - status = '', - decompilation = '', - raw_decompilation = '', - function_mapping = { - 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', - addr = null, - is_external = True, ) - }, - function_mapping_full = revengai.models.function_mapping_full.FunctionMappingFull( - inverse_string_map = { - 'key' : revengai.models.inverse_string_map_item.InverseStringMapItem( - string = '', - addr = 56, ) - }, - inverse_function_map = { - 'key' : revengai.models.inverse_function_map_item.InverseFunctionMapItem( - name = '', - addr = null, - is_external = True, ) - }, - unmatched_functions = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_external_vars = { - 'key' : revengai.models.inverse_value.InverseValue( - value = '', ) - }, - unmatched_custom_types = { - 'key' : - }, - unmatched_strings = { - 'key' : - }, - unmatched_vars = { - 'key' : - }, - unmatched_go_to_labels = { - 'key' : - }, - unmatched_custom_function_pointers = { - 'key' : - }, - unmatched_variadic_lists = { - 'key' : - }, - fields = { - 'key' : { - 'key' : - } - }, ), - ) - """ - - def testGetAiDecompilationTask(self): - """Test GetAiDecompilationTask""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_get_public_user_response.py b/revengai/test/test_get_public_user_response.py deleted file mode 100644 index adfd42e..0000000 --- a/revengai/test/test_get_public_user_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.get_public_user_response import GetPublicUserResponse - -class TestGetPublicUserResponse(unittest.TestCase): - """GetPublicUserResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPublicUserResponse: - """Test GetPublicUserResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPublicUserResponse` - """ - model = GetPublicUserResponse() - if include_optional: - return GetPublicUserResponse( - username = '', - user_id = 56 - ) - else: - return GetPublicUserResponse( - username = '', - user_id = 56, - ) - """ - - def testGetPublicUserResponse(self): - """Test GetPublicUserResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_get_user_response.py b/revengai/test/test_get_user_response.py deleted file mode 100644 index ee204d8..0000000 --- a/revengai/test/test_get_user_response.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.get_user_response import GetUserResponse - -class TestGetUserResponse(unittest.TestCase): - """GetUserResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserResponse: - """Test GetUserResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserResponse` - """ - model = GetUserResponse() - if include_optional: - return GetUserResponse( - username = '', - user_id = 56, - first_name = '', - last_name = '', - email = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tutorial_seen = True - ) - else: - return GetUserResponse( - username = '', - user_id = 56, - first_name = '', - last_name = '', - email = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tutorial_seen = True, - ) - """ - - def testGetUserResponse(self): - """Test GetUserResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_global_variable.py b/revengai/test/test_global_variable.py deleted file mode 100644 index 3a72e15..0000000 --- a/revengai/test/test_global_variable.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.global_variable import GlobalVariable - -class TestGlobalVariable(unittest.TestCase): - """GlobalVariable unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GlobalVariable: - """Test GlobalVariable - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GlobalVariable` - """ - model = GlobalVariable() - if include_optional: - return GlobalVariable( - last_change = '', - addr = 56, - name = '', - type = '', - size = 56, - artifact_type = '' - ) - else: - return GlobalVariable( - addr = 56, - name = '', - type = '', - size = 56, - ) - """ - - def testGlobalVariable(self): - """Test GlobalVariable""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_icon_model.py b/revengai/test/test_icon_model.py deleted file mode 100644 index c29b42c..0000000 --- a/revengai/test/test_icon_model.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.icon_model import IconModel - -class TestIconModel(unittest.TestCase): - """IconModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IconModel: - """Test IconModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IconModel` - """ - model = IconModel() - if include_optional: - return IconModel( - content = '' - ) - else: - return IconModel( - content = '', - ) - """ - - def testIconModel(self): - """Test IconModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_import_model.py b/revengai/test/test_import_model.py deleted file mode 100644 index c507a8b..0000000 --- a/revengai/test/test_import_model.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.import_model import ImportModel - -class TestImportModel(unittest.TestCase): - """ImportModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ImportModel: - """Test ImportModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ImportModel` - """ - model = ImportModel() - if include_optional: - return ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ] - ) - else: - return ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], - ) - """ - - def testImportModel(self): - """Test ImportModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_inverse_function_map_item.py b/revengai/test/test_inverse_function_map_item.py deleted file mode 100644 index 7395252..0000000 --- a/revengai/test/test_inverse_function_map_item.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.inverse_function_map_item import InverseFunctionMapItem - -class TestInverseFunctionMapItem(unittest.TestCase): - """InverseFunctionMapItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InverseFunctionMapItem: - """Test InverseFunctionMapItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `InverseFunctionMapItem` - """ - model = InverseFunctionMapItem() - if include_optional: - return InverseFunctionMapItem( - name = '', - addr = None, - is_external = True - ) - else: - return InverseFunctionMapItem( - name = '', - addr = None, - ) - """ - - def testInverseFunctionMapItem(self): - """Test InverseFunctionMapItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_inverse_string_map_item.py b/revengai/test/test_inverse_string_map_item.py deleted file mode 100644 index f3cd03c..0000000 --- a/revengai/test/test_inverse_string_map_item.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.inverse_string_map_item import InverseStringMapItem - -class TestInverseStringMapItem(unittest.TestCase): - """InverseStringMapItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InverseStringMapItem: - """Test InverseStringMapItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `InverseStringMapItem` - """ - model = InverseStringMapItem() - if include_optional: - return InverseStringMapItem( - string = '', - addr = 56 - ) - else: - return InverseStringMapItem( - string = '', - addr = 56, - ) - """ - - def testInverseStringMapItem(self): - """Test InverseStringMapItem""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_inverse_value.py b/revengai/test/test_inverse_value.py deleted file mode 100644 index 994db33..0000000 --- a/revengai/test/test_inverse_value.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.inverse_value import InverseValue - -class TestInverseValue(unittest.TestCase): - """InverseValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> InverseValue: - """Test InverseValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `InverseValue` - """ - model = InverseValue() - if include_optional: - return InverseValue( - value = '' - ) - else: - return InverseValue( - value = '', - ) - """ - - def testInverseValue(self): - """Test InverseValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_isa.py b/revengai/test/test_isa.py deleted file mode 100644 index f781a70..0000000 --- a/revengai/test/test_isa.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.isa import ISA - -class TestISA(unittest.TestCase): - """ISA unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testISA(self): - """Test ISA""" - # inst = ISA() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_isa_options.py b/revengai/test/test_isa_options.py deleted file mode 100644 index f9b0c50..0000000 --- a/revengai/test/test_isa_options.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.isa_options import IsaOptions - -class TestIsaOptions(unittest.TestCase): - """IsaOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIsaOptions(self): - """Test IsaOptions""" - # inst = IsaOptions() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_list_collection_results.py b/revengai/test/test_list_collection_results.py deleted file mode 100644 index c88ade4..0000000 --- a/revengai/test/test_list_collection_results.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.list_collection_results import ListCollectionResults - -class TestListCollectionResults(unittest.TestCase): - """ListCollectionResults unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ListCollectionResults: - """Test ListCollectionResults - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ListCollectionResults` - """ - model = ListCollectionResults() - if include_optional: - return ListCollectionResults( - results = [ - revengai.models.collection_list_item.CollectionListItem( - collection_name = '', - description = '', - collection_scope = '', - collection_owner = '', - official_collection = True, - collection_tags = [ - '' - ], - collection_size = 56, - collection_id = 56, - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_name = '', - team_id = 56, ) - ] - ) - else: - return ListCollectionResults( - results = [ - revengai.models.collection_list_item.CollectionListItem( - collection_name = '', - description = '', - collection_scope = '', - collection_owner = '', - official_collection = True, - collection_tags = [ - '' - ], - collection_size = 56, - collection_id = 56, - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - model_name = '', - team_id = 56, ) - ], - ) - """ - - def testListCollectionResults(self): - """Test ListCollectionResults""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_login_request.py b/revengai/test/test_login_request.py deleted file mode 100644 index d1a501f..0000000 --- a/revengai/test/test_login_request.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.login_request import LoginRequest - -class TestLoginRequest(unittest.TestCase): - """LoginRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LoginRequest: - """Test LoginRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LoginRequest` - """ - model = LoginRequest() - if include_optional: - return LoginRequest( - username = '0', - password = '0123456789' - ) - else: - return LoginRequest( - username = '0', - password = '0123456789', - ) - """ - - def testLoginRequest(self): - """Test LoginRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_login_response.py b/revengai/test/test_login_response.py deleted file mode 100644 index 6dffb35..0000000 --- a/revengai/test/test_login_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.login_response import LoginResponse - -class TestLoginResponse(unittest.TestCase): - """LoginResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LoginResponse: - """Test LoginResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LoginResponse` - """ - model = LoginResponse() - if include_optional: - return LoginResponse( - token = '' - ) - else: - return LoginResponse( - token = '', - ) - """ - - def testLoginResponse(self): - """Test LoginResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_logs.py b/revengai/test/test_logs.py deleted file mode 100644 index 9106af5..0000000 --- a/revengai/test/test_logs.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.logs import Logs - -class TestLogs(unittest.TestCase): - """Logs unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Logs: - """Test Logs - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Logs` - """ - model = Logs() - if include_optional: - return Logs( - logs = '' - ) - else: - return Logs( - logs = '', - ) - """ - - def testLogs(self): - """Test Logs""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_meta_model.py b/revengai/test/test_meta_model.py deleted file mode 100644 index 7a3ee12..0000000 --- a/revengai/test/test_meta_model.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.meta_model import MetaModel - -class TestMetaModel(unittest.TestCase): - """MetaModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MetaModel: - """Test MetaModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MetaModel` - """ - model = MetaModel() - if include_optional: - return MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ) - ) - else: - return MetaModel( - ) - """ - - def testMetaModel(self): - """Test MetaModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_model_list.py b/revengai/test/test_model_list.py deleted file mode 100644 index 2fa9a27..0000000 --- a/revengai/test/test_model_list.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.model_list import ModelList - -class TestModelList(unittest.TestCase): - """ModelList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ModelList: - """Test ModelList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ModelList` - """ - model = ModelList() - if include_optional: - return ModelList( - success = None, - models = None - ) - else: - return ModelList( - models = None, - ) - """ - - def testModelList(self): - """Test ModelList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_model_name.py b/revengai/test/test_model_name.py deleted file mode 100644 index fe6ac5a..0000000 --- a/revengai/test/test_model_name.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.model_name import ModelName - -class TestModelName(unittest.TestCase): - """ModelName unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testModelName(self): - """Test ModelName""" - # inst = ModelName() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_models_api.py b/revengai/test/test_models_api.py deleted file mode 100644 index 6f1841d..0000000 --- a/revengai/test/test_models_api.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.models_api import ModelsApi - - -class TestModelsApi(unittest.TestCase): - """ModelsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ModelsApi() - - def tearDown(self) -> None: - pass - - def test_get_analysis_params_v2_models_get(self) -> None: - """Test case for get_analysis_params_v2_models_get - - Gets models - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_models_response.py b/revengai/test/test_models_response.py deleted file mode 100644 index 46c6848..0000000 --- a/revengai/test/test_models_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.models_response import ModelsResponse - -class TestModelsResponse(unittest.TestCase): - """ModelsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ModelsResponse: - """Test ModelsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ModelsResponse` - """ - model = ModelsResponse() - if include_optional: - return ModelsResponse( - models = [ - '' - ] - ) - else: - return ModelsResponse( - models = [ - '' - ], - ) - """ - - def testModelsResponse(self): - """Test ModelsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_nearest_neighbor.py b/revengai/test/test_nearest_neighbor.py deleted file mode 100644 index 52243c6..0000000 --- a/revengai/test/test_nearest_neighbor.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.nearest_neighbor import NearestNeighbor - -class TestNearestNeighbor(unittest.TestCase): - """NearestNeighbor unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NearestNeighbor: - """Test NearestNeighbor - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NearestNeighbor` - """ - model = NearestNeighbor() - if include_optional: - return NearestNeighbor( - distance = 1.337, - nearest_neighbor_analysis_id = 56, - nearest_neighbor_analysis_name = '', - nearest_neighbor_function_name = '', - nearest_neighbor_function_name_mangled = '', - nearest_neighbor_binary_id = 56, - nearest_neighbor_sha_256_hash = '', - nearest_neighbor_debug = True - ) - else: - return NearestNeighbor( - distance = 1.337, - nearest_neighbor_analysis_id = 56, - nearest_neighbor_analysis_name = '', - nearest_neighbor_function_name = '', - nearest_neighbor_function_name_mangled = '', - nearest_neighbor_binary_id = 56, - nearest_neighbor_sha_256_hash = '', - nearest_neighbor_debug = True, - ) - """ - - def testNearestNeighbor(self): - """Test NearestNeighbor""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_network_overview_dns.py b/revengai/test/test_network_overview_dns.py deleted file mode 100644 index efc6dc4..0000000 --- a/revengai/test/test_network_overview_dns.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.network_overview_dns import NetworkOverviewDns - -class TestNetworkOverviewDns(unittest.TestCase): - """NetworkOverviewDns unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkOverviewDns: - """Test NetworkOverviewDns - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkOverviewDns` - """ - model = NetworkOverviewDns() - if include_optional: - return NetworkOverviewDns( - host = '', - type = '', - answers = [ - revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ] - ) - else: - return NetworkOverviewDns( - host = '', - type = '', - answers = [ - revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ], - ) - """ - - def testNetworkOverviewDns(self): - """Test NetworkOverviewDns""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_network_overview_dns_answer.py b/revengai/test/test_network_overview_dns_answer.py deleted file mode 100644 index 69a1ee9..0000000 --- a/revengai/test/test_network_overview_dns_answer.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.network_overview_dns_answer import NetworkOverviewDnsAnswer - -class TestNetworkOverviewDnsAnswer(unittest.TestCase): - """NetworkOverviewDnsAnswer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkOverviewDnsAnswer: - """Test NetworkOverviewDnsAnswer - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkOverviewDnsAnswer` - """ - model = NetworkOverviewDnsAnswer() - if include_optional: - return NetworkOverviewDnsAnswer( - type = '', - data = '' - ) - else: - return NetworkOverviewDnsAnswer( - type = '', - data = '', - ) - """ - - def testNetworkOverviewDnsAnswer(self): - """Test NetworkOverviewDnsAnswer""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_network_overview_metadata.py b/revengai/test/test_network_overview_metadata.py deleted file mode 100644 index a515647..0000000 --- a/revengai/test/test_network_overview_metadata.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.network_overview_metadata import NetworkOverviewMetadata - -class TestNetworkOverviewMetadata(unittest.TestCase): - """NetworkOverviewMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkOverviewMetadata: - """Test NetworkOverviewMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkOverviewMetadata` - """ - model = NetworkOverviewMetadata() - if include_optional: - return NetworkOverviewMetadata( - host = '', - country_code = '', - asn = '', - type = 'metadata' - ) - else: - return NetworkOverviewMetadata( - host = '', - country_code = '', - asn = '', - type = 'metadata', - ) - """ - - def testNetworkOverviewMetadata(self): - """Test NetworkOverviewMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_network_overview_response.py b/revengai/test/test_network_overview_response.py deleted file mode 100644 index 651c5a4..0000000 --- a/revengai/test/test_network_overview_response.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.network_overview_response import NetworkOverviewResponse - -class TestNetworkOverviewResponse(unittest.TestCase): - """NetworkOverviewResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> NetworkOverviewResponse: - """Test NetworkOverviewResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `NetworkOverviewResponse` - """ - model = NetworkOverviewResponse() - if include_optional: - return NetworkOverviewResponse( - dns = [ - revengai.models.network_overview_dns.NetworkOverviewDns( - host = '', - type = '', - answers = [ - revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ], ) - ], - metadata = [ - revengai.models.network_overview_metadata.NetworkOverviewMetadata( - host = '', - country_code = '', - asn = '', - type = 'metadata', ) - ] - ) - else: - return NetworkOverviewResponse( - dns = [ - revengai.models.network_overview_dns.NetworkOverviewDns( - host = '', - type = '', - answers = [ - revengai.models.network_overview_dns_answer.NetworkOverviewDnsAnswer( - type = '', - data = '', ) - ], ) - ], - metadata = [ - revengai.models.network_overview_metadata.NetworkOverviewMetadata( - host = '', - country_code = '', - asn = '', - type = 'metadata', ) - ], - ) - """ - - def testNetworkOverviewResponse(self): - """Test NetworkOverviewResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_order.py b/revengai/test/test_order.py deleted file mode 100644 index 4630275..0000000 --- a/revengai/test/test_order.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.order import Order - -class TestOrder(unittest.TestCase): - """Order unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrder(self): - """Test Order""" - # inst = Order() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_origin.py b/revengai/test/test_origin.py deleted file mode 100644 index 89ed3eb..0000000 --- a/revengai/test/test_origin.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.origin import Origin - -class TestOrigin(unittest.TestCase): - """Origin unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrigin(self): - """Test Origin""" - # inst = Origin() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_pagination_model.py b/revengai/test/test_pagination_model.py deleted file mode 100644 index 4c276ee..0000000 --- a/revengai/test/test_pagination_model.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.pagination_model import PaginationModel - -class TestPaginationModel(unittest.TestCase): - """PaginationModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PaginationModel: - """Test PaginationModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PaginationModel` - """ - model = PaginationModel() - if include_optional: - return PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True - ) - else: - return PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, - ) - """ - - def testPaginationModel(self): - """Test PaginationModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_params.py b/revengai/test/test_params.py deleted file mode 100644 index 9488f16..0000000 --- a/revengai/test/test_params.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.params import Params - -class TestParams(unittest.TestCase): - """Params unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Params: - """Test Params - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Params` - """ - model = Params() - if include_optional: - return Params( - debug_hash = '', - binary_size = 56, - architecture = '', - binary_type = '', - binary_format = '', - binary_dynamic = True, - model_name = '' - ) - else: - return Params( - debug_hash = '', - binary_size = 56, - architecture = '', - binary_type = '', - binary_format = '', - binary_dynamic = True, - model_name = '', - ) - """ - - def testParams(self): - """Test Params""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_pdb_debug_model.py b/revengai/test/test_pdb_debug_model.py deleted file mode 100644 index aefa4fc..0000000 --- a/revengai/test/test_pdb_debug_model.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.pdb_debug_model import PDBDebugModel - -class TestPDBDebugModel(unittest.TestCase): - """PDBDebugModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PDBDebugModel: - """Test PDBDebugModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PDBDebugModel` - """ - model = PDBDebugModel() - if include_optional: - return PDBDebugModel( - debug_entries = [ - revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', - age = 56, - path = '', ) - ] - ) - else: - return PDBDebugModel( - debug_entries = [ - revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', - age = 56, - path = '', ) - ], - ) - """ - - def testPDBDebugModel(self): - """Test PDBDebugModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_pe_model.py b/revengai/test/test_pe_model.py deleted file mode 100644 index 4298bad..0000000 --- a/revengai/test/test_pe_model.py +++ /dev/null @@ -1,220 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.pe_model import PEModel - -class TestPEModel(unittest.TestCase): - """PEModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PEModel: - """Test PEModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PEModel` - """ - model = PEModel() - if include_optional: - return PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), - architecture = '', - checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, - debug_info = revengai.models.pdb_debug_model.PDBDebugModel( - debug_entries = [ - revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', - age = 56, - path = '', ) - ], ), - number_of_resources = 56, - entry_point = revengai.models.entrypoint_model.EntrypointModel( - address = 56, - first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', - export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ) - ) - else: - return PEModel( - type = '', - timestamps = revengai.models.timestamp_model.TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, ), - architecture = '', - checksum = 56, - image_base = 56, - security = revengai.models.security_model.SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, ), - version_info = { - 'key' : null - }, - debug_info = revengai.models.pdb_debug_model.PDBDebugModel( - debug_entries = [ - revengai.models.single_pdb_entry_model.SinglePDBEntryModel( - guid = '', - age = 56, - path = '', ) - ], ), - number_of_resources = 56, - entry_point = revengai.models.entrypoint_model.EntrypointModel( - address = 56, - first_bytes = '', ), - signature = revengai.models.code_signature_model.CodeSignatureModel( - signed = True, - valid_signature = True, - signatures = [ - revengai.models.single_code_signature_model.SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', ) - ], ), - dotnet = True, - debug_stripped = True, - import_hash = '', - export_hash = '', - rich_header_hash = '', - sections = revengai.models.section_model.SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], ), - imports = revengai.models.import_model.ImportModel( - number_of_imports = 56, - imports = [ - { - 'key' : { - 'key' : 56 - } - } - ], ), - exports = revengai.models.export_model.ExportModel( - number_of_exports = 56, - exports = [ - { - 'key' : 56 - } - ], ), - icon_data = revengai.models.icon_model.IconModel( - content = '', ), - ) - """ - - def testPEModel(self): - """Test PEModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_platform.py b/revengai/test/test_platform.py deleted file mode 100644 index 0a990c9..0000000 --- a/revengai/test/test_platform.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.platform import Platform - -class TestPlatform(unittest.TestCase): - """Platform unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPlatform(self): - """Test Platform""" - # inst = Platform() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_platform_options.py b/revengai/test/test_platform_options.py deleted file mode 100644 index 64f0ef6..0000000 --- a/revengai/test/test_platform_options.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.platform_options import PlatformOptions - -class TestPlatformOptions(unittest.TestCase): - """PlatformOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPlatformOptions(self): - """Test PlatformOptions""" - # inst = PlatformOptions() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_process.py b/revengai/test/test_process.py deleted file mode 100644 index 38081ba..0000000 --- a/revengai/test/test_process.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.process import Process - -class TestProcess(unittest.TestCase): - """Process unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Process: - """Test Process - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Process` - """ - model = Process() - if include_optional: - return Process( - pid = 56, - procname = '', - executable_name = '', - args = [ - '' - ], - ts_from = 1.337, - ts_to = 1.337, - children = [ - null - ] - ) - else: - return Process( - pid = 56, - procname = '', - executable_name = '', - args = [ - '' - ], - ts_from = 1.337, - ts_to = 1.337, - children = [ - null - ], - ) - """ - - def testProcess(self): - """Test Process""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_process_dump.py b/revengai/test/test_process_dump.py deleted file mode 100644 index 9644cfe..0000000 --- a/revengai/test/test_process_dump.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.process_dump import ProcessDump - -class TestProcessDump(unittest.TestCase): - """ProcessDump unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessDump: - """Test ProcessDump - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProcessDump` - """ - model = ProcessDump() - if include_optional: - return ProcessDump( - base_address = 56, - actual_filename = '', - filename_friendly = '', - extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56, ) - ) - else: - return ProcessDump( - base_address = 56, - actual_filename = '', - filename_friendly = '', - extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56, ), - ) - """ - - def testProcessDump(self): - """Test ProcessDump""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_process_dump_metadata.py b/revengai/test/test_process_dump_metadata.py deleted file mode 100644 index b2978b6..0000000 --- a/revengai/test/test_process_dump_metadata.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.process_dump_metadata import ProcessDumpMetadata - -class TestProcessDumpMetadata(unittest.TestCase): - """ProcessDumpMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessDumpMetadata: - """Test ProcessDumpMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProcessDumpMetadata` - """ - model = ProcessDumpMetadata() - if include_optional: - return ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56 - ) - else: - return ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56, - ) - """ - - def testProcessDumpMetadata(self): - """Test ProcessDumpMetadata""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_process_dumps.py b/revengai/test/test_process_dumps.py deleted file mode 100644 index 62eb0c7..0000000 --- a/revengai/test/test_process_dumps.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.process_dumps import ProcessDumps - -class TestProcessDumps(unittest.TestCase): - """ProcessDumps unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessDumps: - """Test ProcessDumps - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProcessDumps` - """ - model = ProcessDumps() - if include_optional: - return ProcessDumps( - success = True, - data = revengai.models.process_dumps_data.ProcessDumpsData( - count = 56, - dumps = [ - revengai.models.process_dump.ProcessDump( - base_address = 56, - actual_filename = '', - filename_friendly = '', - extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56, ), ) - ], ) - ) - else: - return ProcessDumps( - success = True, - data = revengai.models.process_dumps_data.ProcessDumpsData( - count = 56, - dumps = [ - revengai.models.process_dump.ProcessDump( - base_address = 56, - actual_filename = '', - filename_friendly = '', - extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56, ), ) - ], ), - ) - """ - - def testProcessDumps(self): - """Test ProcessDumps""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_process_dumps_data.py b/revengai/test/test_process_dumps_data.py deleted file mode 100644 index 79d438c..0000000 --- a/revengai/test/test_process_dumps_data.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.process_dumps_data import ProcessDumpsData - -class TestProcessDumpsData(unittest.TestCase): - """ProcessDumpsData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessDumpsData: - """Test ProcessDumpsData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProcessDumpsData` - """ - model = ProcessDumpsData() - if include_optional: - return ProcessDumpsData( - count = 56, - dumps = [ - revengai.models.process_dump.ProcessDump( - base_address = 56, - actual_filename = '', - filename_friendly = '', - extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56, ), ) - ] - ) - else: - return ProcessDumpsData( - count = 56, - dumps = [ - revengai.models.process_dump.ProcessDump( - base_address = 56, - actual_filename = '', - filename_friendly = '', - extended_metadata = revengai.models.process_dump_metadata.ProcessDumpMetadata( - sha256 = '', - type = '', - size = 56, ), ) - ], - ) - """ - - def testProcessDumpsData(self): - """Test ProcessDumpsData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_process_registry.py b/revengai/test/test_process_registry.py deleted file mode 100644 index ef1ed84..0000000 --- a/revengai/test/test_process_registry.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.process_registry import ProcessRegistry - -class TestProcessRegistry(unittest.TestCase): - """ProcessRegistry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessRegistry: - """Test ProcessRegistry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProcessRegistry` - """ - model = ProcessRegistry() - if include_optional: - return ProcessRegistry( - success = True, - data = { - 'key' : [ - revengai.models.registry.Registry( - method = '', - key = '', - value_name = '', - value = '', ) - ] - } - ) - else: - return ProcessRegistry( - success = True, - data = { - 'key' : [ - revengai.models.registry.Registry( - method = '', - key = '', - value_name = '', - value = '', ) - ] - }, - ) - """ - - def testProcessRegistry(self): - """Test ProcessRegistry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_process_tree.py b/revengai/test/test_process_tree.py deleted file mode 100644 index 1bc8a71..0000000 --- a/revengai/test/test_process_tree.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.process_tree import ProcessTree - -class TestProcessTree(unittest.TestCase): - """ProcessTree unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProcessTree: - """Test ProcessTree - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProcessTree` - """ - model = ProcessTree() - if include_optional: - return ProcessTree( - success = True, - data = [ - revengai.models.process.Process( - pid = 56, - procname = '', - executable_name = '', - args = [ - '' - ], - ts_from = 1.337, - ts_to = 1.337, - children = [ - null - ], ) - ] - ) - else: - return ProcessTree( - success = True, - data = [ - revengai.models.process.Process( - pid = 56, - procname = '', - executable_name = '', - args = [ - '' - ], - ts_from = 1.337, - ts_to = 1.337, - children = [ - null - ], ) - ], - ) - """ - - def testProcessTree(self): - """Test ProcessTree""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_queued_security_checks_task_response.py b/revengai/test/test_queued_security_checks_task_response.py deleted file mode 100644 index ab74069..0000000 --- a/revengai/test/test_queued_security_checks_task_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse - -class TestQueuedSecurityChecksTaskResponse(unittest.TestCase): - """QueuedSecurityChecksTaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QueuedSecurityChecksTaskResponse: - """Test QueuedSecurityChecksTaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QueuedSecurityChecksTaskResponse` - """ - model = QueuedSecurityChecksTaskResponse() - if include_optional: - return QueuedSecurityChecksTaskResponse( - task_id = '' - ) - else: - return QueuedSecurityChecksTaskResponse( - task_id = '', - ) - """ - - def testQueuedSecurityChecksTaskResponse(self): - """Test QueuedSecurityChecksTaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_quick_search.py b/revengai/test/test_quick_search.py deleted file mode 100644 index 62ef89c..0000000 --- a/revengai/test/test_quick_search.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.quick_search import QuickSearch - -class TestQuickSearch(unittest.TestCase): - """QuickSearch unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QuickSearch: - """Test QuickSearch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QuickSearch` - """ - model = QuickSearch() - if include_optional: - return QuickSearch( - success = None, - collections = None - ) - else: - return QuickSearch( - collections = None, - ) - """ - - def testQuickSearch(self): - """Test QuickSearch""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_re_analysis_form.py b/revengai/test/test_re_analysis_form.py deleted file mode 100644 index 5ff19c4..0000000 --- a/revengai/test/test_re_analysis_form.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.re_analysis_form import ReAnalysisForm - -class TestReAnalysisForm(unittest.TestCase): - """ReAnalysisForm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReAnalysisForm: - """Test ReAnalysisForm - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReAnalysisForm` - """ - model = ReAnalysisForm() - if include_optional: - return ReAnalysisForm( - tags = [ - '' - ], - command_line_args = '', - priority = 56, - essential = True, - model_name = '', - no_cache = True - ) - else: - return ReAnalysisForm( - ) - """ - - def testReAnalysisForm(self): - """Test ReAnalysisForm""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_recent.py b/revengai/test/test_recent.py deleted file mode 100644 index 82d13c9..0000000 --- a/revengai/test/test_recent.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.recent import Recent - -class TestRecent(unittest.TestCase): - """Recent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Recent: - """Test Recent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Recent` - """ - model = Recent() - if include_optional: - return Recent( - results = [ - revengai.models.analysis_record.AnalysisRecord( - analysis_id = 56, - analysis_scope = '', - binary_id = 56, - model_id = 56, - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, - binary_name = '', - sha_256_hash = '', - binary_size = 56, - username = '', - dynamic_execution_status = 'PENDING', - dynamic_execution_task_id = 56, ) - ] - ) - else: - return Recent( - results = [ - revengai.models.analysis_record.AnalysisRecord( - analysis_id = 56, - analysis_scope = '', - binary_id = 56, - model_id = 56, - status = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - is_owner = True, - binary_name = '', - sha_256_hash = '', - binary_size = 56, - username = '', - dynamic_execution_status = 'PENDING', - dynamic_execution_task_id = 56, ) - ], - ) - """ - - def testRecent(self): - """Test Recent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_recent_analysis.py b/revengai/test/test_recent_analysis.py deleted file mode 100644 index e5e6eb5..0000000 --- a/revengai/test/test_recent_analysis.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.recent_analysis import RecentAnalysis - -class TestRecentAnalysis(unittest.TestCase): - """RecentAnalysis unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RecentAnalysis: - """Test RecentAnalysis - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RecentAnalysis` - """ - model = RecentAnalysis() - if include_optional: - return RecentAnalysis( - success = None, - analysis = None - ) - else: - return RecentAnalysis( - analysis = None, - ) - """ - - def testRecentAnalysis(self): - """Test RecentAnalysis""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_recent_analysis_form.py b/revengai/test/test_recent_analysis_form.py deleted file mode 100644 index 7565f11..0000000 --- a/revengai/test/test_recent_analysis_form.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.recent_analysis_form import RecentAnalysisForm - -class TestRecentAnalysisForm(unittest.TestCase): - """RecentAnalysisForm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RecentAnalysisForm: - """Test RecentAnalysisForm - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RecentAnalysisForm` - """ - model = RecentAnalysisForm() - if include_optional: - return RecentAnalysisForm( - status = 'Queued', - scope = 'ALL', - n = 56 - ) - else: - return RecentAnalysisForm( - ) - """ - - def testRecentAnalysisForm(self): - """Test RecentAnalysisForm""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_registry.py b/revengai/test/test_registry.py deleted file mode 100644 index 99cda52..0000000 --- a/revengai/test/test_registry.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.registry import Registry - -class TestRegistry(unittest.TestCase): - """Registry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Registry: - """Test Registry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Registry` - """ - model = Registry() - if include_optional: - return Registry( - method = '', - key = '', - value_name = '', - value = '' - ) - else: - return Registry( - method = '', - key = '', - value_name = '', - value = '', - ) - """ - - def testRegistry(self): - """Test Registry""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_relative_binary_response.py b/revengai/test/test_relative_binary_response.py deleted file mode 100644 index 0f6a20f..0000000 --- a/revengai/test/test_relative_binary_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.relative_binary_response import RelativeBinaryResponse - -class TestRelativeBinaryResponse(unittest.TestCase): - """RelativeBinaryResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RelativeBinaryResponse: - """Test RelativeBinaryResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RelativeBinaryResponse` - """ - model = RelativeBinaryResponse() - if include_optional: - return RelativeBinaryResponse( - binary_id = 56, - name = '', - sha256 = '' - ) - else: - return RelativeBinaryResponse( - binary_id = 56, - name = '', - sha256 = '', - ) - """ - - def testRelativeBinaryResponse(self): - """Test RelativeBinaryResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_rename.py b/revengai/test/test_rename.py deleted file mode 100644 index 183ec28..0000000 --- a/revengai/test/test_rename.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.rename import Rename - -class TestRename(unittest.TestCase): - """Rename unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Rename: - """Test Rename - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Rename` - """ - model = Rename() - if include_optional: - return Rename( - success = None, - msg = None - ) - else: - return Rename( - msg = None, - ) - """ - - def testRename(self): - """Test Rename""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_sandbox_options.py b/revengai/test/test_sandbox_options.py deleted file mode 100644 index 8b609e4..0000000 --- a/revengai/test/test_sandbox_options.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.sandbox_options import SandboxOptions - -class TestSandboxOptions(unittest.TestCase): - """SandboxOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SandboxOptions: - """Test SandboxOptions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SandboxOptions` - """ - model = SandboxOptions() - if include_optional: - return SandboxOptions( - enabled = True, - command_line_args = '' - ) - else: - return SandboxOptions( - ) - """ - - def testSandboxOptions(self): - """Test SandboxOptions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_sbom.py b/revengai/test/test_sbom.py deleted file mode 100644 index 719aad6..0000000 --- a/revengai/test/test_sbom.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.sbom import SBOM - -class TestSBOM(unittest.TestCase): - """SBOM unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SBOM: - """Test SBOM - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SBOM` - """ - model = SBOM() - if include_optional: - return SBOM( - packages = [ - revengai.models.sbom_package.SBOMPackage( - name = '', - version = '', ) - ], - imported_libs = [ - '' - ] - ) - else: - return SBOM( - packages = [ - revengai.models.sbom_package.SBOMPackage( - name = '', - version = '', ) - ], - imported_libs = [ - '' - ], - ) - """ - - def testSBOM(self): - """Test SBOM""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_sbom_package.py b/revengai/test/test_sbom_package.py deleted file mode 100644 index 33d9e7a..0000000 --- a/revengai/test/test_sbom_package.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.sbom_package import SBOMPackage - -class TestSBOMPackage(unittest.TestCase): - """SBOMPackage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SBOMPackage: - """Test SBOMPackage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SBOMPackage` - """ - model = SBOMPackage() - if include_optional: - return SBOMPackage( - name = '', - version = '' - ) - else: - return SBOMPackage( - name = '', - version = '', - ) - """ - - def testSBOMPackage(self): - """Test SBOMPackage""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_scope.py b/revengai/test/test_scope.py deleted file mode 100644 index 67e6d8c..0000000 --- a/revengai/test/test_scope.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.scope import Scope - -class TestScope(unittest.TestCase): - """Scope unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testScope(self): - """Test Scope""" - # inst = Scope() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_scrape_third_party_config.py b/revengai/test/test_scrape_third_party_config.py deleted file mode 100644 index 4af47bd..0000000 --- a/revengai/test/test_scrape_third_party_config.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.scrape_third_party_config import ScrapeThirdPartyConfig - -class TestScrapeThirdPartyConfig(unittest.TestCase): - """ScrapeThirdPartyConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ScrapeThirdPartyConfig: - """Test ScrapeThirdPartyConfig - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ScrapeThirdPartyConfig` - """ - model = ScrapeThirdPartyConfig() - if include_optional: - return ScrapeThirdPartyConfig( - enabled = True - ) - else: - return ScrapeThirdPartyConfig( - ) - """ - - def testScrapeThirdPartyConfig(self): - """Test ScrapeThirdPartyConfig""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_search_api.py b/revengai/test/test_search_api.py deleted file mode 100644 index 219ed50..0000000 --- a/revengai/test/test_search_api.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.search_api import SearchApi - - -class TestSearchApi(unittest.TestCase): - """SearchApi unit test stubs""" - - def setUp(self) -> None: - self.api = SearchApi() - - def tearDown(self) -> None: - pass - - def test_search_binaries_v2_search_binaries_get(self) -> None: - """Test case for search_binaries_v2_search_binaries_get - - Binaries search - """ - pass - - def test_search_collections_v2_search_collections_get(self) -> None: - """Test case for search_collections_v2_search_collections_get - - Collections search - """ - pass - - def test_search_functions_v2_search_functions_get(self) -> None: - """Test case for search_functions_v2_search_functions_get - - Functions search - """ - pass - - def test_search_tags_v2_search_tags_get(self) -> None: - """Test case for search_tags_v2_search_tags_get - - Tags search - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_search_binary_ids.py b/revengai/test/test_search_binary_ids.py deleted file mode 100644 index cad8013..0000000 --- a/revengai/test/test_search_binary_ids.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.search_binary_ids import SearchBinaryIds - -class TestSearchBinaryIds(unittest.TestCase): - """SearchBinaryIds unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchBinaryIds: - """Test SearchBinaryIds - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SearchBinaryIds` - """ - model = SearchBinaryIds() - if include_optional: - return SearchBinaryIds( - ) - else: - return SearchBinaryIds( - ) - """ - - def testSearchBinaryIds(self): - """Test SearchBinaryIds""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_search_function_ids.py b/revengai/test/test_search_function_ids.py deleted file mode 100644 index 6834242..0000000 --- a/revengai/test/test_search_function_ids.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.search_function_ids import SearchFunctionIds - -class TestSearchFunctionIds(unittest.TestCase): - """SearchFunctionIds unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchFunctionIds: - """Test SearchFunctionIds - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SearchFunctionIds` - """ - model = SearchFunctionIds() - if include_optional: - return SearchFunctionIds( - ) - else: - return SearchFunctionIds( - ) - """ - - def testSearchFunctionIds(self): - """Test SearchFunctionIds""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_search_query.py b/revengai/test/test_search_query.py deleted file mode 100644 index 98bf9c9..0000000 --- a/revengai/test/test_search_query.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.search_query import SearchQuery - -class TestSearchQuery(unittest.TestCase): - """SearchQuery unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchQuery: - """Test SearchQuery - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SearchQuery` - """ - model = SearchQuery() - if include_optional: - return SearchQuery( - success = None, - query_results = None - ) - else: - return SearchQuery( - ) - """ - - def testSearchQuery(self): - """Test SearchQuery""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_section_model.py b/revengai/test/test_section_model.py deleted file mode 100644 index 4cd5eab..0000000 --- a/revengai/test/test_section_model.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.section_model import SectionModel - -class TestSectionModel(unittest.TestCase): - """SectionModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SectionModel: - """Test SectionModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SectionModel` - """ - model = SectionModel() - if include_optional: - return SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ] - ) - else: - return SectionModel( - number_of_sections = 56, - sections = [ - revengai.models.single_section_model.SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', ) - ], - ) - """ - - def testSectionModel(self): - """Test SectionModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_security_checks_response.py b/revengai/test/test_security_checks_response.py deleted file mode 100644 index b229c29..0000000 --- a/revengai/test/test_security_checks_response.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.security_checks_response import SecurityChecksResponse - -class TestSecurityChecksResponse(unittest.TestCase): - """SecurityChecksResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecurityChecksResponse: - """Test SecurityChecksResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SecurityChecksResponse` - """ - model = SecurityChecksResponse() - if include_optional: - return SecurityChecksResponse( - binary_id = 56, - total_results = 56, - results = [ - revengai.models.security_checks_result.SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) - ] - ) - else: - return SecurityChecksResponse( - binary_id = 56, - total_results = 56, - results = [ - revengai.models.security_checks_result.SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', ) - ], - ) - """ - - def testSecurityChecksResponse(self): - """Test SecurityChecksResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_security_checks_result.py b/revengai/test/test_security_checks_result.py deleted file mode 100644 index 195c005..0000000 --- a/revengai/test/test_security_checks_result.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.security_checks_result import SecurityChecksResult - -class TestSecurityChecksResult(unittest.TestCase): - """SecurityChecksResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecurityChecksResult: - """Test SecurityChecksResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SecurityChecksResult` - """ - model = SecurityChecksResult() - if include_optional: - return SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL' - ) - else: - return SecurityChecksResult( - function_id = 56, - function_name = '', - name = '', - vuln_class = 'UNSAFE_FUNCTIONS', - description = '', - remediation = '', - confidence = 'FALSE_POSITIVE', - severity = 'CRITICAL', - ) - """ - - def testSecurityChecksResult(self): - """Test SecurityChecksResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_security_model.py b/revengai/test/test_security_model.py deleted file mode 100644 index 2b4aeb6..0000000 --- a/revengai/test/test_security_model.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.security_model import SecurityModel - -class TestSecurityModel(unittest.TestCase): - """SecurityModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SecurityModel: - """Test SecurityModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SecurityModel` - """ - model = SecurityModel() - if include_optional: - return SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True - ) - else: - return SecurityModel( - aslr = True, - dep = True, - cfg = True, - driver_model = True, - app_container = True, - terminal_server_aware = True, - image_isolation = True, - code_integrity = True, - high_entropy = True, - seh = True, - bound_image = True, - ) - """ - - def testSecurityModel(self): - """Test SecurityModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_severity_type.py b/revengai/test/test_severity_type.py deleted file mode 100644 index c5e74df..0000000 --- a/revengai/test/test_severity_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.severity_type import SeverityType - -class TestSeverityType(unittest.TestCase): - """SeverityType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSeverityType(self): - """Test SeverityType""" - # inst = SeverityType() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_similar_functions_response.py b/revengai/test/test_similar_functions_response.py deleted file mode 100644 index f40eaf3..0000000 --- a/revengai/test/test_similar_functions_response.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.similar_functions_response import SimilarFunctionsResponse - -class TestSimilarFunctionsResponse(unittest.TestCase): - """SimilarFunctionsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SimilarFunctionsResponse: - """Test SimilarFunctionsResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SimilarFunctionsResponse` - """ - model = SimilarFunctionsResponse() - if include_optional: - return SimilarFunctionsResponse( - function_id = 56, - function_name = '', - binary_id = 56, - binary_name = '', - distance = 1.337, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - sha_256_hash = '' - ) - else: - return SimilarFunctionsResponse( - function_id = 56, - function_name = '', - binary_id = 56, - binary_name = '', - distance = 1.337, - embedding_3d = [ - 1.337 - ], - embedding_1d = [ - 1.337 - ], - sha_256_hash = '', - ) - """ - - def testSimilarFunctionsResponse(self): - """Test SimilarFunctionsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_single_code_certificate_model.py b/revengai/test/test_single_code_certificate_model.py deleted file mode 100644 index 0f187b5..0000000 --- a/revengai/test/test_single_code_certificate_model.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.single_code_certificate_model import SingleCodeCertificateModel - -class TestSingleCodeCertificateModel(unittest.TestCase): - """SingleCodeCertificateModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SingleCodeCertificateModel: - """Test SingleCodeCertificateModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SingleCodeCertificateModel` - """ - model = SingleCodeCertificateModel() - if include_optional: - return SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '' - ) - else: - return SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', - ) - """ - - def testSingleCodeCertificateModel(self): - """Test SingleCodeCertificateModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_single_code_signature_model.py b/revengai/test/test_single_code_signature_model.py deleted file mode 100644 index d064098..0000000 --- a/revengai/test/test_single_code_signature_model.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.single_code_signature_model import SingleCodeSignatureModel - -class TestSingleCodeSignatureModel(unittest.TestCase): - """SingleCodeSignatureModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SingleCodeSignatureModel: - """Test SingleCodeSignatureModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SingleCodeSignatureModel` - """ - model = SingleCodeSignatureModel() - if include_optional: - return SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '' - ) - else: - return SingleCodeSignatureModel( - certificates = [ - revengai.models.single_code_certificate_model.SingleCodeCertificateModel( - version = 56, - issued_on = '', - expires_on = '', - issuer_name = '', - serial_number = '', - subject_name = '', ) - ], - authenticode_digest = '', - ) - """ - - def testSingleCodeSignatureModel(self): - """Test SingleCodeSignatureModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_single_pdb_entry_model.py b/revengai/test/test_single_pdb_entry_model.py deleted file mode 100644 index b1c76b7..0000000 --- a/revengai/test/test_single_pdb_entry_model.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.single_pdb_entry_model import SinglePDBEntryModel - -class TestSinglePDBEntryModel(unittest.TestCase): - """SinglePDBEntryModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SinglePDBEntryModel: - """Test SinglePDBEntryModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SinglePDBEntryModel` - """ - model = SinglePDBEntryModel() - if include_optional: - return SinglePDBEntryModel( - guid = '', - age = 56, - path = '' - ) - else: - return SinglePDBEntryModel( - guid = '', - age = 56, - path = '', - ) - """ - - def testSinglePDBEntryModel(self): - """Test SinglePDBEntryModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_single_section_model.py b/revengai/test/test_single_section_model.py deleted file mode 100644 index 05169c8..0000000 --- a/revengai/test/test_single_section_model.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.single_section_model import SingleSectionModel - -class TestSingleSectionModel(unittest.TestCase): - """SingleSectionModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SingleSectionModel: - """Test SingleSectionModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SingleSectionModel` - """ - model = SingleSectionModel() - if include_optional: - return SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '' - ) - else: - return SingleSectionModel( - name = '', - virtual_address = 56, - virtual_size = 56, - characteristics = '', - raw_size = 56, - entropy = 1.337, - sha3_256 = '', - ) - """ - - def testSingleSectionModel(self): - """Test SingleSectionModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_stack_variable.py b/revengai/test/test_stack_variable.py deleted file mode 100644 index 8799787..0000000 --- a/revengai/test/test_stack_variable.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.stack_variable import StackVariable - -class TestStackVariable(unittest.TestCase): - """StackVariable unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StackVariable: - """Test StackVariable - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StackVariable` - """ - model = StackVariable() - if include_optional: - return StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56 - ) - else: - return StackVariable( - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, - ) - """ - - def testStackVariable(self): - """Test StackVariable""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_status_input.py b/revengai/test/test_status_input.py deleted file mode 100644 index df39dde..0000000 --- a/revengai/test/test_status_input.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.status_input import StatusInput - -class TestStatusInput(unittest.TestCase): - """StatusInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStatusInput(self): - """Test StatusInput""" - # inst = StatusInput() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_status_output.py b/revengai/test/test_status_output.py deleted file mode 100644 index 901ceeb..0000000 --- a/revengai/test/test_status_output.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.status_output import StatusOutput - -class TestStatusOutput(unittest.TestCase): - """StatusOutput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StatusOutput: - """Test StatusOutput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StatusOutput` - """ - model = StatusOutput() - if include_optional: - return StatusOutput( - analysis_id = 56, - analysis_status = '' - ) - else: - return StatusOutput( - analysis_id = 56, - analysis_status = '', - ) - """ - - def testStatusOutput(self): - """Test StatusOutput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_string_functions.py b/revengai/test/test_string_functions.py deleted file mode 100644 index e7dca13..0000000 --- a/revengai/test/test_string_functions.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.string_functions import StringFunctions - -class TestStringFunctions(unittest.TestCase): - """StringFunctions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StringFunctions: - """Test StringFunctions - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StringFunctions` - """ - model = StringFunctions() - if include_optional: - return StringFunctions( - value = '', - functions = [ - revengai.models.function.Function( - function_id = 56, - function_vaddr = 56, ) - ] - ) - else: - return StringFunctions( - value = '', - functions = [ - revengai.models.function.Function( - function_id = 56, - function_vaddr = 56, ) - ], - ) - """ - - def testStringFunctions(self): - """Test StringFunctions""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_structure.py b/revengai/test/test_structure.py deleted file mode 100644 index 0decd45..0000000 --- a/revengai/test/test_structure.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.structure import Structure - -class TestStructure(unittest.TestCase): - """Structure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Structure: - """Test Structure - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Structure` - """ - model = Structure() - if include_optional: - return Structure( - last_change = '', - name = '', - size = 56, - members = { - 'key' : revengai.models.structure_member.StructureMember( - last_change = '', - name = '', - offset = 56, - type = '', - size = 56, ) - }, - artifact_type = '' - ) - else: - return Structure( - name = '', - members = { - 'key' : revengai.models.structure_member.StructureMember( - last_change = '', - name = '', - offset = 56, - type = '', - size = 56, ) - }, - ) - """ - - def testStructure(self): - """Test Structure""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_structure_member.py b/revengai/test/test_structure_member.py deleted file mode 100644 index 7d678de..0000000 --- a/revengai/test/test_structure_member.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.structure_member import StructureMember - -class TestStructureMember(unittest.TestCase): - """StructureMember unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> StructureMember: - """Test StructureMember - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `StructureMember` - """ - model = StructureMember() - if include_optional: - return StructureMember( - last_change = '', - name = '', - offset = 56, - type = '', - size = 56 - ) - else: - return StructureMember( - name = '', - offset = 56, - type = '', - size = 56, - ) - """ - - def testStructureMember(self): - """Test StructureMember""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_symbols.py b/revengai/test/test_symbols.py deleted file mode 100644 index afc4a05..0000000 --- a/revengai/test/test_symbols.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.symbols import Symbols - -class TestSymbols(unittest.TestCase): - """Symbols unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Symbols: - """Test Symbols - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Symbols` - """ - model = Symbols() - if include_optional: - return Symbols( - base_address = 56, - function_boundaries = [ - revengai.models.function_boundary.FunctionBoundary( - name = '', - start_address = 56, - end_address = 56, ) - ] - ) - else: - return Symbols( - ) - """ - - def testSymbols(self): - """Test Symbols""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_symbols_info.py b/revengai/test/test_symbols_info.py deleted file mode 100644 index c6122f2..0000000 --- a/revengai/test/test_symbols_info.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.symbols_info import SymbolsInfo - -class TestSymbolsInfo(unittest.TestCase): - """SymbolsInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SymbolsInfo: - """Test SymbolsInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SymbolsInfo` - """ - model = SymbolsInfo() - if include_optional: - return SymbolsInfo( - base_addr = 56, - provided_boundaries = revengai.models.boundary.Boundary( - start_addr = 56, - end_addr = 56, - name = '', ) - ) - else: - return SymbolsInfo( - ) - """ - - def testSymbolsInfo(self): - """Test SymbolsInfo""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_tag_confidence_body.py b/revengai/test/test_tag_confidence_body.py deleted file mode 100644 index c9dd74f..0000000 --- a/revengai/test/test_tag_confidence_body.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_confidence_body import TagConfidenceBody - -class TestTagConfidenceBody(unittest.TestCase): - """TagConfidenceBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagConfidenceBody: - """Test TagConfidenceBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagConfidenceBody` - """ - model = TagConfidenceBody() - if include_optional: - return TagConfidenceBody( - tags = [ - revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ) - ] - ) - else: - return TagConfidenceBody( - tags = [ - revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ) - ], - ) - """ - - def testTagConfidenceBody(self): - """Test TagConfidenceBody""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_tag_input.py b/revengai/test/test_tag_input.py deleted file mode 100644 index 4cf10ed..0000000 --- a/revengai/test/test_tag_input.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_input import TagInput - -class TestTagInput(unittest.TestCase): - """TagInput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagInput: - """Test TagInput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagInput` - """ - model = TagInput() - if include_optional: - return TagInput( - name = '' - ) - else: - return TagInput( - name = '', - ) - """ - - def testTagInput(self): - """Test TagInput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_tag_origin_box_plot_confidence.py b/revengai/test/test_tag_origin_box_plot_confidence.py deleted file mode 100644 index 91f4a6c..0000000 --- a/revengai/test/test_tag_origin_box_plot_confidence.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_origin_box_plot_confidence import TagOriginBoxPlotConfidence - -class TestTagOriginBoxPlotConfidence(unittest.TestCase): - """TagOriginBoxPlotConfidence unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagOriginBoxPlotConfidence: - """Test TagOriginBoxPlotConfidence - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagOriginBoxPlotConfidence` - """ - model = TagOriginBoxPlotConfidence() - if include_optional: - return TagOriginBoxPlotConfidence( - tag = revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ), - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ) - ) - else: - return TagOriginBoxPlotConfidence( - tag = revengai.models.tags.Tags( - tag = '', - origin = 'RevEng-Malware', ), - box_plot = revengai.models.box_plot_confidence.BoxPlotConfidence( - min = 1.337, - max = 1.337, - average = 1.337, - upper_quartile = 1.337, - lower_quartile = 1.337, - positive_count = 56, - negative_count = 56, ), - ) - """ - - def testTagOriginBoxPlotConfidence(self): - """Test TagOriginBoxPlotConfidence""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_tag_output.py b/revengai/test/test_tag_output.py deleted file mode 100644 index 475edd7..0000000 --- a/revengai/test/test_tag_output.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_output import TagOutput - -class TestTagOutput(unittest.TestCase): - """TagOutput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagOutput: - """Test TagOutput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagOutput` - """ - model = TagOutput() - if include_optional: - return TagOutput( - tag = '', - origin = '' - ) - else: - return TagOutput( - tag = '', - origin = '', - ) - """ - - def testTagOutput(self): - """Test TagOutput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_tag_response.py b/revengai/test/test_tag_response.py deleted file mode 100644 index 4f9fca1..0000000 --- a/revengai/test/test_tag_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_response import TagResponse - -class TestTagResponse(unittest.TestCase): - """TagResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagResponse: - """Test TagResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagResponse` - """ - model = TagResponse() - if include_optional: - return TagResponse( - name = '', - origin = '' - ) - else: - return TagResponse( - name = '', - origin = '', - ) - """ - - def testTagResponse(self): - """Test TagResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_tag_search_response.py b/revengai/test/test_tag_search_response.py deleted file mode 100644 index d74085e..0000000 --- a/revengai/test/test_tag_search_response.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_search_response import TagSearchResponse - -class TestTagSearchResponse(unittest.TestCase): - """TagSearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagSearchResponse: - """Test TagSearchResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagSearchResponse` - """ - model = TagSearchResponse() - if include_optional: - return TagSearchResponse( - results = [ - revengai.models.tag_search_result.TagSearchResult( - tag_id = 56, - tag = '', ) - ] - ) - else: - return TagSearchResponse( - results = [ - revengai.models.tag_search_result.TagSearchResult( - tag_id = 56, - tag = '', ) - ], - ) - """ - - def testTagSearchResponse(self): - """Test TagSearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_tag_search_result.py b/revengai/test/test_tag_search_result.py deleted file mode 100644 index 82b8277..0000000 --- a/revengai/test/test_tag_search_result.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_search_result import TagSearchResult - -class TestTagSearchResult(unittest.TestCase): - """TagSearchResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagSearchResult: - """Test TagSearchResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagSearchResult` - """ - model = TagSearchResult() - if include_optional: - return TagSearchResult( - tag_id = 56, - tag = '' - ) - else: - return TagSearchResult( - tag_id = 56, - tag = '', - ) - """ - - def testTagSearchResult(self): - """Test TagSearchResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_tags.py b/revengai/test/test_tags.py deleted file mode 100644 index 8a94590..0000000 --- a/revengai/test/test_tags.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tags import Tags - -class TestTags(unittest.TestCase): - """Tags unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Tags: - """Test Tags - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Tags` - """ - model = Tags() - if include_optional: - return Tags( - tag = '', - origin = 'RevEng-Malware' - ) - else: - return Tags( - tag = '', - origin = 'RevEng-Malware', - ) - """ - - def testTags(self): - """Test Tags""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_task_response.py b/revengai/test/test_task_response.py deleted file mode 100644 index 816c54e..0000000 --- a/revengai/test/test_task_response.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.task_response import TaskResponse - -class TestTaskResponse(unittest.TestCase): - """TaskResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TaskResponse: - """Test TaskResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TaskResponse` - """ - model = TaskResponse() - if include_optional: - return TaskResponse( - status = 'UNINITIALISED', - error_message = '' - ) - else: - return TaskResponse( - ) - """ - - def testTaskResponse(self): - """Test TaskResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_task_status.py b/revengai/test/test_task_status.py deleted file mode 100644 index 9583fc3..0000000 --- a/revengai/test/test_task_status.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.task_status import TaskStatus - -class TestTaskStatus(unittest.TestCase): - """TaskStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTaskStatus(self): - """Test TaskStatus""" - # inst = TaskStatus() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_threat_score_function_body.py b/revengai/test/test_threat_score_function_body.py deleted file mode 100644 index 2080812..0000000 --- a/revengai/test/test_threat_score_function_body.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.threat_score_function_body import ThreatScoreFunctionBody - -class TestThreatScoreFunctionBody(unittest.TestCase): - """ThreatScoreFunctionBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ThreatScoreFunctionBody: - """Test ThreatScoreFunctionBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ThreatScoreFunctionBody` - """ - model = ThreatScoreFunctionBody() - if include_optional: - return ThreatScoreFunctionBody( - function_ids = [ - 56 - ] - ) - else: - return ThreatScoreFunctionBody( - ) - """ - - def testThreatScoreFunctionBody(self): - """Test ThreatScoreFunctionBody""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_timestamp_model.py b/revengai/test/test_timestamp_model.py deleted file mode 100644 index 83f0678..0000000 --- a/revengai/test/test_timestamp_model.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.timestamp_model import TimestampModel - -class TestTimestampModel(unittest.TestCase): - """TimestampModel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TimestampModel: - """Test TimestampModel - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TimestampModel` - """ - model = TimestampModel() - if include_optional: - return TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56 - ) - else: - return TimestampModel( - pe_timestamp = 56, - export_timestamp = 56, - debug_timestamp = 56, - ) - """ - - def testTimestampModel(self): - """Test TimestampModel""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_ttps.py b/revengai/test/test_ttps.py deleted file mode 100644 index 29d2d7c..0000000 --- a/revengai/test/test_ttps.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.ttps import TTPS - -class TestTTPS(unittest.TestCase): - """TTPS unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TTPS: - """Test TTPS - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TTPS` - """ - model = TTPS() - if include_optional: - return TTPS( - success = True, - data = revengai.models.ttps_data.TTPS_Data( - score = 56, - ttps = [ - revengai.models.ttps_element.TTPS_Element( - name = '', - attack = [ - revengai.models.ttps_attack.TTPS_Attack( - id = '', - name = '', ) - ], - occurrences = [ - revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) - ], - score = 56, ) - ], ) - ) - else: - return TTPS( - success = True, - data = revengai.models.ttps_data.TTPS_Data( - score = 56, - ttps = [ - revengai.models.ttps_element.TTPS_Element( - name = '', - attack = [ - revengai.models.ttps_attack.TTPS_Attack( - id = '', - name = '', ) - ], - occurrences = [ - revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) - ], - score = 56, ) - ], ), - ) - """ - - def testTTPS(self): - """Test TTPS""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_ttps_attack.py b/revengai/test/test_ttps_attack.py deleted file mode 100644 index 9466ed5..0000000 --- a/revengai/test/test_ttps_attack.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.ttps_attack import TTPSAttack - -class TestTTPSAttack(unittest.TestCase): - """TTPSAttack unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TTPSAttack: - """Test TTPSAttack - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TTPSAttack` - """ - model = TTPSAttack() - if include_optional: - return TTPSAttack( - id = '', - name = '' - ) - else: - return TTPSAttack( - id = '', - name = '', - ) - """ - - def testTTPSAttack(self): - """Test TTPSAttack""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_ttps_data.py b/revengai/test/test_ttps_data.py deleted file mode 100644 index f1d5c94..0000000 --- a/revengai/test/test_ttps_data.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.ttps_data import TTPSData - -class TestTTPSData(unittest.TestCase): - """TTPSData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TTPSData: - """Test TTPSData - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TTPSData` - """ - model = TTPSData() - if include_optional: - return TTPSData( - score = 56, - ttps = [ - revengai.models.ttps_element.TTPS_Element( - name = '', - attack = [ - revengai.models.ttps_attack.TTPS_Attack( - id = '', - name = '', ) - ], - occurrences = [ - revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) - ], - score = 56, ) - ] - ) - else: - return TTPSData( - score = 56, - ttps = [ - revengai.models.ttps_element.TTPS_Element( - name = '', - attack = [ - revengai.models.ttps_attack.TTPS_Attack( - id = '', - name = '', ) - ], - occurrences = [ - revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) - ], - score = 56, ) - ], - ) - """ - - def testTTPSData(self): - """Test TTPSData""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_ttps_element.py b/revengai/test/test_ttps_element.py deleted file mode 100644 index 4a4a092..0000000 --- a/revengai/test/test_ttps_element.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.ttps_element import TTPSElement - -class TestTTPSElement(unittest.TestCase): - """TTPSElement unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TTPSElement: - """Test TTPSElement - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TTPSElement` - """ - model = TTPSElement() - if include_optional: - return TTPSElement( - name = '', - attack = [ - revengai.models.ttps_attack.TTPS_Attack( - id = '', - name = '', ) - ], - occurrences = [ - revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) - ], - score = 56 - ) - else: - return TTPSElement( - name = '', - attack = [ - revengai.models.ttps_attack.TTPS_Attack( - id = '', - name = '', ) - ], - occurrences = [ - revengai.models.ttps_occurance.TTPS_Occurance( - ppid = 56, - pid = 56, ) - ], - score = 56, - ) - """ - - def testTTPSElement(self): - """Test TTPSElement""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_ttps_occurance.py b/revengai/test/test_ttps_occurance.py deleted file mode 100644 index d78473f..0000000 --- a/revengai/test/test_ttps_occurance.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.ttps_occurance import TTPSOccurance - -class TestTTPSOccurance(unittest.TestCase): - """TTPSOccurance unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TTPSOccurance: - """Test TTPSOccurance - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TTPSOccurance` - """ - model = TTPSOccurance() - if include_optional: - return TTPSOccurance( - ppid = 56, - pid = 56 - ) - else: - return TTPSOccurance( - ppid = 56, - pid = 56, - ) - """ - - def testTTPSOccurance(self): - """Test TTPSOccurance""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_type_definition.py b/revengai/test/test_type_definition.py deleted file mode 100644 index 8019f9d..0000000 --- a/revengai/test/test_type_definition.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.type_definition import TypeDefinition - -class TestTypeDefinition(unittest.TestCase): - """TypeDefinition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TypeDefinition: - """Test TypeDefinition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TypeDefinition` - """ - model = TypeDefinition() - if include_optional: - return TypeDefinition( - last_change = '', - name = '', - type = '', - artifact_type = '' - ) - else: - return TypeDefinition( - name = '', - type = '', - ) - """ - - def testTypeDefinition(self): - """Test TypeDefinition""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_update_function_data_types.py b/revengai/test/test_update_function_data_types.py deleted file mode 100644 index 76f968d..0000000 --- a/revengai/test/test_update_function_data_types.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.update_function_data_types import UpdateFunctionDataTypes - -class TestUpdateFunctionDataTypes(unittest.TestCase): - """UpdateFunctionDataTypes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdateFunctionDataTypes: - """Test UpdateFunctionDataTypes - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdateFunctionDataTypes` - """ - model = UpdateFunctionDataTypes() - if include_optional: - return UpdateFunctionDataTypes( - data_types_version = 56, - data_types = revengai.models.function_info.FunctionInfo( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ) - ) - else: - return UpdateFunctionDataTypes( - data_types_version = 56, - data_types = revengai.models.function_info.FunctionInfo( - func_types = revengai.models.function_type.FunctionType( - last_change = '', - addr = 56, - size = 56, - header = revengai.models.function_header.FunctionHeader( - last_change = '', - name = '', - addr = 56, - type = '', - args = { - 'key' : revengai.models.argument.Argument( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, ) - }, ), - stack_vars = { - 'key' : revengai.models.stack_variable.StackVariable( - last_change = '', - offset = 56, - name = '', - type = '', - size = 56, - addr = 56, ) - }, - name = '', - type = '', - artifact_type = 'Function', ), - func_deps = [ - null - ], ), - ) - """ - - def testUpdateFunctionDataTypes(self): - """Test UpdateFunctionDataTypes""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_upload_success.py b/revengai/test/test_upload_success.py deleted file mode 100644 index ebc9d01..0000000 --- a/revengai/test/test_upload_success.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.upload_success import UploadSuccess - -class TestUploadSuccess(unittest.TestCase): - """UploadSuccess unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UploadSuccess: - """Test UploadSuccess - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UploadSuccess` - """ - model = UploadSuccess() - if include_optional: - return UploadSuccess( - success = None, - message = None, - sha_256_hash = None - ) - else: - return UploadSuccess( - sha_256_hash = None, - ) - """ - - def testUploadSuccess(self): - """Test UploadSuccess""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_upsert_ai_decomplation_rating_request.py b/revengai/test/test_upsert_ai_decomplation_rating_request.py deleted file mode 100644 index 5c4a422..0000000 --- a/revengai/test/test_upsert_ai_decomplation_rating_request.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.upsert_ai_decomplation_rating_request import UpsertAiDecomplationRatingRequest - -class TestUpsertAiDecomplationRatingRequest(unittest.TestCase): - """UpsertAiDecomplationRatingRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpsertAiDecomplationRatingRequest: - """Test UpsertAiDecomplationRatingRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpsertAiDecomplationRatingRequest` - """ - model = UpsertAiDecomplationRatingRequest() - if include_optional: - return UpsertAiDecomplationRatingRequest( - rating = 'POSITIVE' - ) - else: - return UpsertAiDecomplationRatingRequest( - rating = 'POSITIVE', - ) - """ - - def testUpsertAiDecomplationRatingRequest(self): - """Test UpsertAiDecomplationRatingRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_user_activity_response.py b/revengai/test/test_user_activity_response.py deleted file mode 100644 index 799c8bc..0000000 --- a/revengai/test/test_user_activity_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.user_activity_response import UserActivityResponse - -class TestUserActivityResponse(unittest.TestCase): - """UserActivityResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserActivityResponse: - """Test UserActivityResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UserActivityResponse` - """ - model = UserActivityResponse() - if include_optional: - return UserActivityResponse( - actions = '', - activity_scope = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - message = '', - sources = '', - username = '' - ) - else: - return UserActivityResponse( - actions = '', - activity_scope = '', - creation = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - message = '', - sources = '', - username = '', - ) - """ - - def testUserActivityResponse(self): - """Test UserActivityResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_user_boundaries.py b/revengai/test/test_user_boundaries.py deleted file mode 100644 index 7e9814f..0000000 --- a/revengai/test/test_user_boundaries.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.user_boundaries import UserBoundaries - -class TestUserBoundaries(unittest.TestCase): - """UserBoundaries unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserBoundaries: - """Test UserBoundaries - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UserBoundaries` - """ - model = UserBoundaries() - if include_optional: - return UserBoundaries( - name = '', - start_addr = 56, - end_addr = 56 - ) - else: - return UserBoundaries( - name = '', - start_addr = 56, - end_addr = 56, - ) - """ - - def testUserBoundaries(self): - """Test UserBoundaries""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_v1_api.py b/revengai/test/test_v1_api.py deleted file mode 100644 index 8819990..0000000 --- a/revengai/test/test_v1_api.py +++ /dev/null @@ -1,185 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.api.v1_api import V1Api - - -class TestV1Api(unittest.TestCase): - """V1Api unit test stubs""" - - def setUp(self) -> None: - self.api = V1Api() - - def tearDown(self) -> None: - pass - - def test_batch_function_ann_v1_ann_symbol_binary_id_post(self) -> None: - """Test case for batch_function_ann_v1_ann_symbol_binary_id_post - - Batch Symbol ANN using binary ID - """ - pass - - def test_batch_rename_function_v1_functions_batch_rename_post(self) -> None: - """Test case for batch_rename_function_v1_functions_batch_rename_post - - Batch Renames Functions - """ - pass - - def test_check_authentication_v1_authenticate_get(self) -> None: - """Test case for check_authentication_v1_authenticate_get - - API key check - """ - pass - - def test_collections_count_v1_collections_count_get(self) -> None: - """Test case for collections_count_v1_collections_count_get - - Get Collections Count - """ - pass - - def test_collections_quick_search_v1_collections_quick_search_get(self) -> None: - """Test case for collections_quick_search_v1_collections_quick_search_get - - Collection Quick Search - """ - pass - - def test_custom_function_ann_v1_ann_symbol_batch_post(self) -> None: - """Test case for custom_function_ann_v1_ann_symbol_batch_post - - Batch Symbol ANN using function IDs - """ - pass - - def test_delete_binary_id_v1_analyse_binary_id_delete(self) -> None: - """Test case for delete_binary_id_v1_analyse_binary_id_delete - - Delete Analysis - """ - pass - - def test_generate_function_params_v1_functions_generate_params_post(self) -> None: - """Test case for generate_function_params_v1_functions_generate_params_post - - Get Function params - """ - pass - - def test_get_analysis_status_v1_analyse_status_binary_id_get(self) -> None: - """Test case for get_analysis_status_v1_analyse_status_binary_id_get - - Analysis Status - """ - pass - - def test_get_analysis_status_v1_logs_binary_id_get(self) -> None: - """Test case for get_analysis_status_v1_logs_binary_id_get - - Get Analysis Logs - """ - pass - - def test_get_basic_function_info_v1_analyse_functions_binary_id_get(self) -> None: - """Test case for get_basic_function_info_v1_analyse_functions_binary_id_get - - Get Basic Function Info - """ - pass - - def test_get_config_v1_config_get(self) -> None: - """Test case for get_config_v1_config_get - - Get the configuration settings - """ - pass - - def test_get_function_disassembly_dump_v1_functions_dump_get(self) -> None: - """Test case for get_function_disassembly_dump_v1_functions_dump_get - - Get Function Disassembly Dumps - """ - pass - - def test_get_models_v1_models_get(self) -> None: - """Test case for get_models_v1_models_get - - Get available models - """ - pass - - def test_get_recent_analysis_v1_analyse_recent_get(self) -> None: - """Test case for get_recent_analysis_v1_analyse_recent_get - - Recent Analysis - """ - pass - - def test_queue_analysis_v1_analyse_post(self) -> None: - """Test case for queue_analysis_v1_analyse_post - - Create Analysis - """ - pass - - def test_read_root_v1_get(self) -> None: - """Test case for read_root_v1_get - - RevEng.AI Health Check - """ - pass - - def test_rename_function_id_v1_functions_rename_function_id_post(self) -> None: - """Test case for rename_function_id_v1_functions_rename_function_id_post - - Rename Function - """ - pass - - def test_search_post_v1_search_post(self) -> None: - """Test case for search_post_v1_search_post - - Performs a search for binaries and collections - """ - pass - - def test_search_v1_search_get(self) -> None: - """Test case for search_v1_search_get - - Performs a search for binaries and collections - """ - pass - - def test_upload_debug_file_v1_upload_debug_post(self) -> None: - """Test case for upload_debug_file_v1_upload_debug_post - - Upload a debug file - """ - pass - - def test_upload_file_v1_upload_post(self) -> None: - """Test case for upload_file_v1_upload_post - - Upload a file - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_vulnerabilities.py b/revengai/test/test_vulnerabilities.py deleted file mode 100644 index 3bff9da..0000000 --- a/revengai/test/test_vulnerabilities.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.vulnerabilities import Vulnerabilities - -class TestVulnerabilities(unittest.TestCase): - """Vulnerabilities unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Vulnerabilities: - """Test Vulnerabilities - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Vulnerabilities` - """ - model = Vulnerabilities() - if include_optional: - return Vulnerabilities( - vulnerabilities = [ - revengai.models.vulnerability.Vulnerability( - vendor = '', - product = '', - version = '', - cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', - cvss_vector = '', - remarks = '', - score = 1.337, - is_unknown = True, ) - ] - ) - else: - return Vulnerabilities( - vulnerabilities = [ - revengai.models.vulnerability.Vulnerability( - vendor = '', - product = '', - version = '', - cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', - cvss_vector = '', - remarks = '', - score = 1.337, - is_unknown = True, ) - ], - ) - """ - - def testVulnerabilities(self): - """Test Vulnerabilities""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_vulnerability.py b/revengai/test/test_vulnerability.py deleted file mode 100644 index 7de1bfb..0000000 --- a/revengai/test/test_vulnerability.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.vulnerability import Vulnerability - -class TestVulnerability(unittest.TestCase): - """Vulnerability unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Vulnerability: - """Test Vulnerability - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Vulnerability` - """ - model = Vulnerability() - if include_optional: - return Vulnerability( - vendor = '', - product = '', - version = '', - cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', - cvss_vector = '', - remarks = '', - score = 1.337, - is_unknown = True - ) - else: - return Vulnerability( - vendor = '', - product = '', - version = '', - cve_number = '', - severity = 'CRITICAL', - source = '', - cvss_version = '', - cvss_vector = '', - remarks = '', - score = 1.337, - ) - """ - - def testVulnerability(self): - """Test Vulnerability""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_vulnerability_type.py b/revengai/test/test_vulnerability_type.py deleted file mode 100644 index d6cdd6c..0000000 --- a/revengai/test/test_vulnerability_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.vulnerability_type import VulnerabilityType - -class TestVulnerabilityType(unittest.TestCase): - """VulnerabilityType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testVulnerabilityType(self): - """Test VulnerabilityType""" - # inst = VulnerabilityType() - -if __name__ == '__main__': - unittest.main() diff --git a/revengai/test/test_workspace.py b/revengai/test/test_workspace.py deleted file mode 100644 index 4d779dd..0000000 --- a/revengai/test/test_workspace.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.workspace import Workspace - -class TestWorkspace(unittest.TestCase): - """Workspace unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testWorkspace(self): - """Test Workspace""" - # inst = Workspace() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_addr.py b/test/test_addr.py index 5c7353f..3618751 100644 --- a/test/test_addr.py +++ b/test/test_addr.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ai_decompilation_rating.py b/test/test_ai_decompilation_rating.py index 7ecfceb..a347d26 100644 --- a/test/test_ai_decompilation_rating.py +++ b/test/test_ai_decompilation_rating.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/test/test_addr.py b/test/test_ai_unstrip_request.py similarity index 57% rename from revengai/test/test_addr.py rename to test/test_ai_unstrip_request.py index 5c7353f..44c92ab 100644 --- a/revengai/test/test_addr.py +++ b/test/test_ai_unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.addr import Addr +from revengai.models.ai_unstrip_request import AiUnstripRequest -class TestAddr(unittest.TestCase): - """Addr unit test stubs""" +class TestAiUnstripRequest(unittest.TestCase): + """AiUnstripRequest unit test stubs""" def setUp(self): pass @@ -25,24 +25,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Addr: - """Test Addr + def make_instance(self, include_optional) -> AiUnstripRequest: + """Test AiUnstripRequest include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Addr` + # uncomment below to create an instance of `AiUnstripRequest` """ - model = Addr() + model = AiUnstripRequest() if include_optional: - return Addr( + return AiUnstripRequest( + apply = True ) else: - return Addr( + return AiUnstripRequest( ) """ - def testAddr(self): - """Test Addr""" + def testAiUnstripRequest(self): + """Test AiUnstripRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_analyses_comments_api.py b/test/test_analyses_comments_api.py index fd2c276..93f0d43 100644 --- a/test/test_analyses_comments_api.py +++ b/test/test_analyses_comments_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analyses_core_api.py b/test/test_analyses_core_api.py index f4b3cb7..d8df056 100644 --- a/test/test_analyses_core_api.py +++ b/test/test_analyses_core_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -124,6 +124,13 @@ def test_update_analysis_tags(self) -> None: """ pass + def test_upload_file(self) -> None: + """Test case for upload_file + + Upload File + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_analyses_dynamic_execution_api.py b/test/test_analyses_dynamic_execution_api.py index 62730d7..0fca2ae 100644 --- a/test/test_analyses_dynamic_execution_api.py +++ b/test/test_analyses_dynamic_execution_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analyses_results_metadata_api.py b/test/test_analyses_results_metadata_api.py index d565eb7..f4eed2e 100644 --- a/test/test_analyses_results_metadata_api.py +++ b/test/test_analyses_results_metadata_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analyses_security_checks_api.py b/test/test_analyses_security_checks_api.py index 91a91da..4916713 100644 --- a/test/test_analyses_security_checks_api.py +++ b/test/test_analyses_security_checks_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_access_info.py b/test/test_analysis_access_info.py index 7d837bc..f0dde34 100644 --- a/test/test_analysis_access_info.py +++ b/test/test_analysis_access_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_config.py b/test/test_analysis_config.py index 98a36b1..9b90547 100644 --- a/test/test_analysis_config.py +++ b/test/test_analysis_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_create_request.py b/test/test_analysis_create_request.py index 832ea75..ad9e15d 100644 --- a/test/test_analysis_create_request.py +++ b/test/test_analysis_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_create_response.py b/test/test_analysis_create_response.py index 0a93361..b8f133a 100644 --- a/test/test_analysis_create_response.py +++ b/test/test_analysis_create_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_detail_response.py b/test/test_analysis_detail_response.py index f9bbf95..9caea02 100644 --- a/test/test_analysis_detail_response.py +++ b/test/test_analysis_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_functions.py b/test/test_analysis_functions.py index b542901..6b54a66 100644 --- a/test/test_analysis_functions.py +++ b/test/test_analysis_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_record.py b/test/test_analysis_record.py index bd48a9e..5f17ad8 100644 --- a/test/test_analysis_record.py +++ b/test/test_analysis_record.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_scope.py b/test/test_analysis_scope.py index cea9e3f..e5f465a 100644 --- a/test/test_analysis_scope.py +++ b/test/test_analysis_scope.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_strings_response.py b/test/test_analysis_strings_response.py index 7a2c54a..c602630 100644 --- a/test/test_analysis_strings_response.py +++ b/test/test_analysis_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py b/test/test_analysis_tags.py similarity index 66% rename from test/test_app_api_rest_v2_analyses_responses_analysis_tags.py rename to test/test_analysis_tags.py index e9f94d7..dc17442 100644 --- a/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py +++ b/test/test_analysis_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.app_api_rest_v2_analyses_responses_analysis_tags import AppApiRestV2AnalysesResponsesAnalysisTags +from revengai.models.analysis_tags import AnalysisTags -class TestAppApiRestV2AnalysesResponsesAnalysisTags(unittest.TestCase): - """AppApiRestV2AnalysesResponsesAnalysisTags unit test stubs""" +class TestAnalysisTags(unittest.TestCase): + """AnalysisTags unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesAnalysisTags: - """Test AppApiRestV2AnalysesResponsesAnalysisTags + def make_instance(self, include_optional) -> AnalysisTags: + """Test AnalysisTags include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `AppApiRestV2AnalysesResponsesAnalysisTags` + # uncomment below to create an instance of `AnalysisTags` """ - model = AppApiRestV2AnalysesResponsesAnalysisTags() + model = AnalysisTags() if include_optional: - return AppApiRestV2AnalysesResponsesAnalysisTags( + return AnalysisTags( analysis_tags = [ revengai.models.tag_item.TagItem( name = '', @@ -49,7 +49,7 @@ def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesAnalys ] ) else: - return AppApiRestV2AnalysesResponsesAnalysisTags( + return AnalysisTags( analysis_tags = [ revengai.models.tag_item.TagItem( name = '', @@ -65,8 +65,8 @@ def make_instance(self, include_optional) -> AppApiRestV2AnalysesResponsesAnalys ) """ - def testAppApiRestV2AnalysesResponsesAnalysisTags(self): - """Test AppApiRestV2AnalysesResponsesAnalysisTags""" + def testAnalysisTags(self): + """Test AnalysisTags""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_analysis_threat_score_data.py b/test/test_analysis_threat_score_data.py index 2aa34a3..04e6bff 100644 --- a/test/test_analysis_threat_score_data.py +++ b/test/test_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_update_request.py b/test/test_analysis_update_request.py index 2952100..82800e8 100644 --- a/test/test_analysis_update_request.py +++ b/test/test_analysis_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_update_tags_request.py b/test/test_analysis_update_tags_request.py index 314d98e..3483e2f 100644 --- a/test/test_analysis_update_tags_request.py +++ b/test/test_analysis_update_tags_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_analysis_update_tags_response.py b/test/test_analysis_update_tags_response.py index 86d4134..ac0de1d 100644 --- a/test/test_analysis_update_tags_response.py +++ b/test/test_analysis_update_tags_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ann_function.py b/test/test_ann_function.py index 8dc685b..faf68e7 100644 --- a/test/test_ann_function.py +++ b/test/test_ann_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py b/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py index 649f4e1..82ea7b7 100644 --- a/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py +++ b/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_analyses_enums_order_by.py b/test/test_app_api_rest_v2_analyses_enums_order_by.py index 9055862..a86cc21 100644 --- a/test/test_app_api_rest_v2_analyses_enums_order_by.py +++ b/test/test_app_api_rest_v2_analyses_enums_order_by.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_analyses_responses_tag_item.py b/test/test_app_api_rest_v2_analyses_responses_tag_item.py index 540b069..3a83cc5 100644 --- a/test/test_app_api_rest_v2_analyses_responses_tag_item.py +++ b/test/test_app_api_rest_v2_analyses_responses_tag_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_collections_enums_order_by.py b/test/test_app_api_rest_v2_collections_enums_order_by.py index da54c1c..575841c 100644 --- a/test/test_app_api_rest_v2_collections_enums_order_by.py +++ b/test/test_app_api_rest_v2_collections_enums_order_by.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_functions_responses_function.py b/test/test_app_api_rest_v2_functions_responses_function.py index 6cb11da..d8835a3 100644 --- a/test/test_app_api_rest_v2_functions_responses_function.py +++ b/test/test_app_api_rest_v2_functions_responses_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_functions_types_function.py b/test/test_app_api_rest_v2_functions_types_function.py index 4aee4bf..5311215 100644 --- a/test/test_app_api_rest_v2_functions_types_function.py +++ b/test/test_app_api_rest_v2_functions_types_function.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_api_rest_v2_info_responses_analysis_tags.py b/test/test_app_api_rest_v2_info_responses_analysis_tags.py deleted file mode 100644 index 332692f..0000000 --- a/test/test_app_api_rest_v2_info_responses_analysis_tags.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_api_rest_v2_info_responses_analysis_tags import AppApiRestV2InfoResponsesAnalysisTags - -class TestAppApiRestV2InfoResponsesAnalysisTags(unittest.TestCase): - """AppApiRestV2InfoResponsesAnalysisTags unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppApiRestV2InfoResponsesAnalysisTags: - """Test AppApiRestV2InfoResponsesAnalysisTags - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppApiRestV2InfoResponsesAnalysisTags` - """ - model = AppApiRestV2InfoResponsesAnalysisTags() - if include_optional: - return AppApiRestV2InfoResponsesAnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ] - ) - else: - return AppApiRestV2InfoResponsesAnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - ) - """ - - def testAppApiRestV2InfoResponsesAnalysisTags(self): - """Test AppApiRestV2InfoResponsesAnalysisTags""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_core_responses_base_base_response_analysis_tags1.py b/test/test_app_core_responses_base_base_response_analysis_tags1.py deleted file mode 100644 index 8173fa1..0000000 --- a/test/test_app_core_responses_base_base_response_analysis_tags1.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.app_core_responses_base_base_response_analysis_tags1 import AppCoreResponsesBaseBaseResponseAnalysisTags1 - -class TestAppCoreResponsesBaseBaseResponseAnalysisTags1(unittest.TestCase): - """AppCoreResponsesBaseBaseResponseAnalysisTags1 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AppCoreResponsesBaseBaseResponseAnalysisTags1: - """Test AppCoreResponsesBaseBaseResponseAnalysisTags1 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AppCoreResponsesBaseBaseResponseAnalysisTags1` - """ - model = AppCoreResponsesBaseBaseResponseAnalysisTags1() - if include_optional: - return AppCoreResponsesBaseBaseResponseAnalysisTags1( - status = True, - data = revengai.models.analysis_tags.AnalysisTags( - analysis_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], - suggested_tags = [ - revengai.models.tag.Tag( - tag = '', - origin = '', ) - ], ), - message = '', - errors = [ - revengai.models.error_model.ErrorModel( - code = '', - message = '', ) - ], - meta = revengai.models.meta_model.MetaModel( - pagination = revengai.models.pagination_model.PaginationModel( - page_size = 56, - page_number = 56, - has_next_page = True, ), ) - ) - else: - return AppCoreResponsesBaseBaseResponseAnalysisTags1( - ) - """ - - def testAppCoreResponsesBaseBaseResponseAnalysisTags1(self): - """Test AppCoreResponsesBaseBaseResponseAnalysisTags1""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_app_services_binary_ann_schema_tag_item.py b/test/test_app_services_binary_ann_schema_tag_item.py index f28b2cd..1229af5 100644 --- a/test/test_app_services_binary_ann_schema_tag_item.py +++ b/test/test_app_services_binary_ann_schema_tag_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py b/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py index 1313f52..30f6b5b 100644 --- a/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py +++ b/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_argument.py b/test/test_argument.py index f4d7c4e..dec5529 100644 --- a/test/test_argument.py +++ b/test/test_argument.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_authentication_users_api.py b/test/test_authentication_users_api.py index 50ce589..978c549 100644 --- a/test/test_authentication_users_api.py +++ b/test/test_authentication_users_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_auto_unstrip_by_group_response.py b/test/test_auto_unstrip_by_group_response.py new file mode 100644 index 0000000..df42b38 --- /dev/null +++ b/test/test_auto_unstrip_by_group_response.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse + +class TestAutoUnstripByGroupResponse(unittest.TestCase): + """AutoUnstripByGroupResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AutoUnstripByGroupResponse: + """Test AutoUnstripByGroupResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AutoUnstripByGroupResponse` + """ + model = AutoUnstripByGroupResponse() + if include_optional: + return AutoUnstripByGroupResponse( + progress = 56, + status = '', + total_time = 56, + matches_map = { + 'key' : [ + revengai.models.matched_function_group.MatchedFunctionGroup( + function_group_name = '', + similarity = 1.337, ) + ] + }, + applied = True + ) + else: + return AutoUnstripByGroupResponse( + ) + """ + + def testAutoUnstripByGroupResponse(self): + """Test AutoUnstripByGroupResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/revengai/test/test_analysis_status.py b/test/test_auto_unstrip_request.py similarity index 54% rename from revengai/test/test_analysis_status.py rename to test/test_auto_unstrip_request.py index ede719b..862b607 100644 --- a/revengai/test/test_analysis_status.py +++ b/test/test_auto_unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.analysis_status import AnalysisStatus +from revengai.models.auto_unstrip_request import AutoUnstripRequest -class TestAnalysisStatus(unittest.TestCase): - """AnalysisStatus unit test stubs""" +class TestAutoUnstripRequest(unittest.TestCase): + """AutoUnstripRequest unit test stubs""" def setUp(self): pass @@ -25,27 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AnalysisStatus: - """Test AnalysisStatus + def make_instance(self, include_optional) -> AutoUnstripRequest: + """Test AutoUnstripRequest include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `AnalysisStatus` + # uncomment below to create an instance of `AutoUnstripRequest` """ - model = AnalysisStatus() + model = AutoUnstripRequest() if include_optional: - return AnalysisStatus( - success = None, - status = '' + return AutoUnstripRequest( + min_similarity = 0.0, + apply = True ) else: - return AnalysisStatus( - status = '', + return AutoUnstripRequest( ) """ - def testAnalysisStatus(self): - """Test AnalysisStatus""" + def testAutoUnstripRequest(self): + """Test AutoUnstripRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_auto_unstrip_response.py b/test/test_auto_unstrip_response.py new file mode 100644 index 0000000..87fa68a --- /dev/null +++ b/test/test_auto_unstrip_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + RevEng.AI API + + RevEng.AI is Similarity Search Engine for executable binaries + + The version of the OpenAPI document: v1.72.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from revengai.models.auto_unstrip_response import AutoUnstripResponse + +class TestAutoUnstripResponse(unittest.TestCase): + """AutoUnstripResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AutoUnstripResponse: + """Test AutoUnstripResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AutoUnstripResponse` + """ + model = AutoUnstripResponse() + if include_optional: + return AutoUnstripResponse( + progress = 56, + status = '', + total_time = 56, + matches = [ + revengai.models.matched_function_suggestion.MatchedFunctionSuggestion( + function_id = 56, + function_vaddr = 56, + suggested_name = '', ) + ], + applied = True + ) + else: + return AutoUnstripResponse( + ) + """ + + def testAutoUnstripResponse(self): + """Test AutoUnstripResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_base_response.py b/test/test_base_response.py index 802e1fe..e543c33 100644 --- a/test/test_base_response.py +++ b/test/test_base_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_create_response.py b/test/test_base_response_analysis_create_response.py index d775542..d9302a0 100644 --- a/test/test_base_response_analysis_create_response.py +++ b/test/test_base_response_analysis_create_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_detail_response.py b/test/test_base_response_analysis_detail_response.py index 424a228..e9b928d 100644 --- a/test/test_base_response_analysis_detail_response.py +++ b/test/test_base_response_analysis_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_functions.py b/test/test_base_response_analysis_functions.py index 5b5f9c6..9e246fe 100644 --- a/test/test_base_response_analysis_functions.py +++ b/test/test_base_response_analysis_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_strings_response.py b/test/test_base_response_analysis_strings_response.py index fdb5fde..6ff10ab 100644 --- a/test/test_base_response_analysis_strings_response.py +++ b/test/test_base_response_analysis_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_app_core_responses_base_base_response_analysis_tags2.py b/test/test_base_response_analysis_tags.py similarity index 67% rename from test/test_app_core_responses_base_base_response_analysis_tags2.py rename to test/test_base_response_analysis_tags.py index 0325527..b2be45b 100644 --- a/test/test_app_core_responses_base_base_response_analysis_tags2.py +++ b/test/test_base_response_analysis_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.app_core_responses_base_base_response_analysis_tags2 import AppCoreResponsesBaseBaseResponseAnalysisTags2 +from revengai.models.base_response_analysis_tags import BaseResponseAnalysisTags -class TestAppCoreResponsesBaseBaseResponseAnalysisTags2(unittest.TestCase): - """AppCoreResponsesBaseBaseResponseAnalysisTags2 unit test stubs""" +class TestBaseResponseAnalysisTags(unittest.TestCase): + """BaseResponseAnalysisTags unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AppCoreResponsesBaseBaseResponseAnalysisTags2: - """Test AppCoreResponsesBaseBaseResponseAnalysisTags2 + def make_instance(self, include_optional) -> BaseResponseAnalysisTags: + """Test BaseResponseAnalysisTags include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `AppCoreResponsesBaseBaseResponseAnalysisTags2` + # uncomment below to create an instance of `BaseResponseAnalysisTags` """ - model = AppCoreResponsesBaseBaseResponseAnalysisTags2() + model = BaseResponseAnalysisTags() if include_optional: - return AppCoreResponsesBaseBaseResponseAnalysisTags2( + return BaseResponseAnalysisTags( status = True, data = revengai.models.analysis_tags.AnalysisTags( analysis_tags = [ @@ -62,12 +62,12 @@ def make_instance(self, include_optional) -> AppCoreResponsesBaseBaseResponseAna has_next_page = True, ), ) ) else: - return AppCoreResponsesBaseBaseResponseAnalysisTags2( + return BaseResponseAnalysisTags( ) """ - def testAppCoreResponsesBaseBaseResponseAnalysisTags2(self): - """Test AppCoreResponsesBaseBaseResponseAnalysisTags2""" + def testBaseResponseAnalysisTags(self): + """Test BaseResponseAnalysisTags""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_base_response_analysis_threat_score_data.py b/test/test_base_response_analysis_threat_score_data.py index 94e9fa3..1ce8ba6 100644 --- a/test/test_base_response_analysis_threat_score_data.py +++ b/test/test_base_response_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_analysis_update_tags_response.py b/test/test_base_response_analysis_update_tags_response.py index b20673f..1f8b74f 100644 --- a/test/test_base_response_analysis_update_tags_response.py +++ b/test/test_base_response_analysis_update_tags_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_basic.py b/test/test_base_response_basic.py index 7935b45..403939d 100644 --- a/test/test_base_response_basic.py +++ b/test/test_base_response_basic.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_additional_response.py b/test/test_base_response_binary_additional_response.py index 78af3ad..dc8fccc 100644 --- a/test/test_base_response_binary_additional_response.py +++ b/test/test_base_response_binary_additional_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_ann_list_response.py b/test/test_base_response_binary_ann_list_response.py index 7008af2..852378b 100644 --- a/test/test_base_response_binary_ann_list_response.py +++ b/test/test_base_response_binary_ann_list_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_details_response.py b/test/test_base_response_binary_details_response.py index f2810c8..1aa5068 100644 --- a/test/test_base_response_binary_details_response.py +++ b/test/test_base_response_binary_details_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_externals_response.py b/test/test_base_response_binary_externals_response.py index 2035c3f..a6d2248 100644 --- a/test/test_base_response_binary_externals_response.py +++ b/test/test_base_response_binary_externals_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_binary_search_response.py b/test/test_base_response_binary_search_response.py index 026f0be..15a4fb3 100644 --- a/test/test_base_response_binary_search_response.py +++ b/test/test_base_response_binary_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_block_comments_generation_for_function_response.py b/test/test_base_response_block_comments_generation_for_function_response.py index 7125814..7ace6aa 100644 --- a/test/test_base_response_block_comments_generation_for_function_response.py +++ b/test/test_base_response_block_comments_generation_for_function_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_block_comments_overview_generation_response.py b/test/test_base_response_block_comments_overview_generation_response.py index 3d31f1b..1e31a0d 100644 --- a/test/test_base_response_block_comments_overview_generation_response.py +++ b/test/test_base_response_block_comments_overview_generation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_bool.py b/test/test_base_response_bool.py index d8e74f2..f9a24d1 100644 --- a/test/test_base_response_bool.py +++ b/test/test_base_response_bool.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_box_plot_confidence.py b/test/test_base_response_box_plot_confidence.py index dcdd901..8a96b13 100644 --- a/test/test_base_response_box_plot_confidence.py +++ b/test/test_base_response_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_callees_caller_functions_response.py b/test/test_base_response_callees_caller_functions_response.py index e5c5910..c7a95f8 100644 --- a/test/test_base_response_callees_caller_functions_response.py +++ b/test/test_base_response_callees_caller_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_capabilities.py b/test/test_base_response_capabilities.py index e2a9233..daa159a 100644 --- a/test/test_base_response_capabilities.py +++ b/test/test_base_response_capabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_check_security_checks_task_response.py b/test/test_base_response_check_security_checks_task_response.py index c84011b..19f6f8a 100644 --- a/test/test_base_response_check_security_checks_task_response.py +++ b/test/test_base_response_check_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_child_binaries_response.py b/test/test_base_response_child_binaries_response.py index 786e486..54b1f32 100644 --- a/test/test_base_response_child_binaries_response.py +++ b/test/test_base_response_child_binaries_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_collection_binaries_update_response.py b/test/test_base_response_collection_binaries_update_response.py index 983b436..8cc74fe 100644 --- a/test/test_base_response_collection_binaries_update_response.py +++ b/test/test_base_response_collection_binaries_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_collection_response.py b/test/test_base_response_collection_response.py index 990d2c8..f02be10 100644 --- a/test/test_base_response_collection_response.py +++ b/test/test_base_response_collection_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_collection_search_response.py b/test/test_base_response_collection_search_response.py index 6bf4c4f..f8f16fc 100644 --- a/test/test_base_response_collection_search_response.py +++ b/test/test_base_response_collection_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_collection_tags_update_response.py b/test/test_base_response_collection_tags_update_response.py index 499e32f..40b17a8 100644 --- a/test/test_base_response_collection_tags_update_response.py +++ b/test/test_base_response_collection_tags_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_comment_response.py b/test/test_base_response_comment_response.py index 381e78a..d966406 100644 --- a/test/test_base_response_comment_response.py +++ b/test/test_base_response_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_communities.py b/test/test_base_response_communities.py index 6758b67..22b7c6d 100644 --- a/test/test_base_response_communities.py +++ b/test/test_base_response_communities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_created.py b/test/test_base_response_created.py index 125fa98..db9e080 100644 --- a/test/test_base_response_created.py +++ b/test/test_base_response_created.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_decompilation_response.py b/test/test_base_response_decompilation_response.py index 3460a36..2459c5b 100644 --- a/test/test_base_response_decompilation_response.py +++ b/test/test_base_response_decompilation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_dict.py b/test/test_base_response_dict.py index 6f8dabd..d192d4c 100644 --- a/test/test_base_response_dict.py +++ b/test/test_base_response_dict.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_dynamic_execution_status.py b/test/test_base_response_dynamic_execution_status.py index 10d76b4..15334e1 100644 --- a/test/test_base_response_dynamic_execution_status.py +++ b/test/test_base_response_dynamic_execution_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_external_response.py b/test/test_base_response_external_response.py index 362a31b..d4733b5 100644 --- a/test/test_base_response_external_response.py +++ b/test/test_base_response_external_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_analysis_threat_score_data.py b/test/test_base_response_function_analysis_threat_score_data.py index 23afdf4..3241cfb 100644 --- a/test/test_base_response_function_analysis_threat_score_data.py +++ b/test/test_base_response_function_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_blocks_response.py b/test/test_base_response_function_blocks_response.py index 8562c9c..4b3e152 100644 --- a/test/test_base_response_function_blocks_response.py +++ b/test/test_base_response_function_blocks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_capability_response.py b/test/test_base_response_function_capability_response.py index 181e69c..d39ea90 100644 --- a/test/test_base_response_function_capability_response.py +++ b/test/test_base_response_function_capability_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_data_types.py b/test/test_base_response_function_data_types.py index e33bfa5..a084b4b 100644 --- a/test/test_base_response_function_data_types.py +++ b/test/test_base_response_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_data_types_list.py b/test/test_base_response_function_data_types_list.py index 49bab9a..c78c639 100644 --- a/test/test_base_response_function_data_types_list.py +++ b/test/test_base_response_function_data_types_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_search_response.py b/test/test_base_response_function_search_response.py index 901584d..38afae3 100644 --- a/test/test_base_response_function_search_response.py +++ b/test/test_base_response_function_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_strings_response.py b/test/test_base_response_function_strings_response.py index 7513ef1..76548f8 100644 --- a/test/test_base_response_function_strings_response.py +++ b/test/test_base_response_function_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_task_response.py b/test/test_base_response_function_task_response.py index 5397394..f7c3ff2 100644 --- a/test/test_base_response_function_task_response.py +++ b/test/test_base_response_function_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_function_threat_score.py b/test/test_base_response_function_threat_score.py index f7c49a6..fdf7890 100644 --- a/test/test_base_response_function_threat_score.py +++ b/test/test_base_response_function_threat_score.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_functions_detail_response.py b/test/test_base_response_functions_detail_response.py index f5841c3..4cd3bf8 100644 --- a/test/test_base_response_functions_detail_response.py +++ b/test/test_base_response_functions_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_generate_function_data_types.py b/test/test_base_response_generate_function_data_types.py index f082721..81e47c6 100644 --- a/test/test_base_response_generate_function_data_types.py +++ b/test/test_base_response_generate_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_generation_status_list.py b/test/test_base_response_generation_status_list.py index 2d8b02d..4f76e18 100644 --- a/test/test_base_response_generation_status_list.py +++ b/test/test_base_response_generation_status_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_get_ai_decompilation_rating_response.py b/test/test_base_response_get_ai_decompilation_rating_response.py index 2b2008e..4f0234d 100644 --- a/test/test_base_response_get_ai_decompilation_rating_response.py +++ b/test/test_base_response_get_ai_decompilation_rating_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_get_ai_decompilation_task.py b/test/test_base_response_get_ai_decompilation_task.py index 916b0f5..379f2d2 100644 --- a/test/test_base_response_get_ai_decompilation_task.py +++ b/test/test_base_response_get_ai_decompilation_task.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_get_public_user_response.py b/test/test_base_response_get_public_user_response.py index be52f97..5ed9655 100644 --- a/test/test_base_response_get_public_user_response.py +++ b/test/test_base_response_get_public_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_get_user_response.py b/test/test_base_response_get_user_response.py index 0aae9c8..9d3eb4b 100644 --- a/test/test_base_response_get_user_response.py +++ b/test/test_base_response_get_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_collection_results.py b/test/test_base_response_list_collection_results.py index fb28df3..dd079b9 100644 --- a/test/test_base_response_list_collection_results.py +++ b/test/test_base_response_list_collection_results.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_comment_response.py b/test/test_base_response_list_comment_response.py index 4097bf2..00c286f 100644 --- a/test/test_base_response_list_comment_response.py +++ b/test/test_base_response_list_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_die_match.py b/test/test_base_response_list_die_match.py index a1f0e92..8536932 100644 --- a/test/test_base_response_list_die_match.py +++ b/test/test_base_response_list_die_match.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_function_box_plot_confidence.py b/test/test_base_response_list_function_box_plot_confidence.py index cf5a979..1cc85bd 100644 --- a/test/test_base_response_list_function_box_plot_confidence.py +++ b/test/test_base_response_list_function_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_function_name_history.py b/test/test_base_response_list_function_name_history.py index 08eedfa..64a3e83 100644 --- a/test/test_base_response_list_function_name_history.py +++ b/test/test_base_response_list_function_name_history.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_sbom.py b/test/test_base_response_list_sbom.py index e6f3219..a12e367 100644 --- a/test/test_base_response_list_sbom.py +++ b/test/test_base_response_list_sbom.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_similar_functions_response.py b/test/test_base_response_list_similar_functions_response.py index 6eef5e7..2dd3b5a 100644 --- a/test/test_base_response_list_similar_functions_response.py +++ b/test/test_base_response_list_similar_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_tag_origin_box_plot_confidence.py b/test/test_base_response_list_tag_origin_box_plot_confidence.py index 1d48dde..7744940 100644 --- a/test/test_base_response_list_tag_origin_box_plot_confidence.py +++ b/test/test_base_response_list_tag_origin_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_list_user_activity_response.py b/test/test_base_response_list_user_activity_response.py index 6d5c4dc..7242909 100644 --- a/test/test_base_response_list_user_activity_response.py +++ b/test/test_base_response_list_user_activity_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_login_response.py b/test/test_base_response_login_response.py index 53ab40e..eb58e6d 100644 --- a/test/test_base_response_login_response.py +++ b/test/test_base_response_login_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_logs.py b/test/test_base_response_logs.py index 6dd9468..d3013f5 100644 --- a/test/test_base_response_logs.py +++ b/test/test_base_response_logs.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_models_response.py b/test/test_base_response_models_response.py index f15df5a..c995f98 100644 --- a/test/test_base_response_models_response.py +++ b/test/test_base_response_models_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_nearest_neighbor_analysis.py b/test/test_base_response_nearest_neighbor_analysis.py index b6f9263..2cf50df 100644 --- a/test/test_base_response_nearest_neighbor_analysis.py +++ b/test/test_base_response_nearest_neighbor_analysis.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_network_overview_response.py b/test/test_base_response_network_overview_response.py index d6199b7..c2d1965 100644 --- a/test/test_base_response_network_overview_response.py +++ b/test/test_base_response_network_overview_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_params.py b/test/test_base_response_params.py index 402e163..c160f36 100644 --- a/test/test_base_response_params.py +++ b/test/test_base_response_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_process_dumps.py b/test/test_base_response_process_dumps.py index 226a0ec..b689525 100644 --- a/test/test_base_response_process_dumps.py +++ b/test/test_base_response_process_dumps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_process_registry.py b/test/test_base_response_process_registry.py index 6ce7709..e0a4f96 100644 --- a/test/test_base_response_process_registry.py +++ b/test/test_base_response_process_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_process_tree.py b/test/test_base_response_process_tree.py index 26ebf38..1e5c56c 100644 --- a/test/test_base_response_process_tree.py +++ b/test/test_base_response_process_tree.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_queued_security_checks_task_response.py b/test/test_base_response_queued_security_checks_task_response.py index e5689ad..e744b28 100644 --- a/test/test_base_response_queued_security_checks_task_response.py +++ b/test/test_base_response_queued_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_recent.py b/test/test_base_response_recent.py index a8c0f72..6b60a87 100644 --- a/test/test_base_response_recent.py +++ b/test/test_base_response_recent.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_security_checks_response.py b/test/test_base_response_security_checks_response.py index a1773ec..7b227d8 100644 --- a/test/test_base_response_security_checks_response.py +++ b/test/test_base_response_security_checks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_status.py b/test/test_base_response_status.py index c6765a7..c143cea 100644 --- a/test/test_base_response_status.py +++ b/test/test_base_response_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_str.py b/test/test_base_response_str.py index d337696..f87d743 100644 --- a/test/test_base_response_str.py +++ b/test/test_base_response_str.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_symbols_info.py b/test/test_base_response_symbols_info.py index c57c370..6c9c467 100644 --- a/test/test_base_response_symbols_info.py +++ b/test/test_base_response_symbols_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_tag_search_response.py b/test/test_base_response_tag_search_response.py index bdc9147..3ab0804 100644 --- a/test/test_base_response_tag_search_response.py +++ b/test/test_base_response_tag_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_task_response.py b/test/test_base_response_task_response.py index 34b6c69..1f23d94 100644 --- a/test/test_base_response_task_response.py +++ b/test/test_base_response_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_base_response_ttps.py b/test/test_base_response_ttps.py index ef00a70..719eb69 100644 --- a/test/test_base_response_ttps.py +++ b/test/test_base_response_ttps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/test/test_base_response_models_response.py b/test/test_base_response_upload_response.py similarity index 63% rename from revengai/test/test_base_response_models_response.py rename to test/test_base_response_upload_response.py index f15df5a..54f4ed7 100644 --- a/revengai/test/test_base_response_models_response.py +++ b/test/test_base_response_upload_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.base_response_models_response import BaseResponseModelsResponse +from revengai.models.base_response_upload_response import BaseResponseUploadResponse -class TestBaseResponseModelsResponse(unittest.TestCase): - """BaseResponseModelsResponse unit test stubs""" +class TestBaseResponseUploadResponse(unittest.TestCase): + """BaseResponseUploadResponse unit test stubs""" def setUp(self): pass @@ -25,21 +25,21 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> BaseResponseModelsResponse: - """Test BaseResponseModelsResponse + def make_instance(self, include_optional) -> BaseResponseUploadResponse: + """Test BaseResponseUploadResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `BaseResponseModelsResponse` + # uncomment below to create an instance of `BaseResponseUploadResponse` """ - model = BaseResponseModelsResponse() + model = BaseResponseUploadResponse() if include_optional: - return BaseResponseModelsResponse( + return BaseResponseUploadResponse( status = True, - data = revengai.models.models_response.ModelsResponse( - models = [ - '' - ], ), + data = revengai.models.upload_response.UploadResponse( + sha_256_hash = '', + file_type = 'BINARY', + filename = '', ), message = '', errors = [ revengai.models.error_model.ErrorModel( @@ -53,12 +53,12 @@ def make_instance(self, include_optional) -> BaseResponseModelsResponse: has_next_page = True, ), ) ) else: - return BaseResponseModelsResponse( + return BaseResponseUploadResponse( ) """ - def testBaseResponseModelsResponse(self): - """Test BaseResponseModelsResponse""" + def testBaseResponseUploadResponse(self): + """Test BaseResponseUploadResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_base_response_vulnerabilities.py b/test/test_base_response_vulnerabilities.py index f8dffc6..4caf040 100644 --- a/test/test_base_response_vulnerabilities.py +++ b/test/test_base_response_vulnerabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_basic.py b/test/test_basic.py index 567ba50..2a7c7fe 100644 --- a/test/test_basic.py +++ b/test/test_basic.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binaries_api.py b/test/test_binaries_api.py index b3d0479..9bac202 100644 --- a/test/test_binaries_api.py +++ b/test/test_binaries_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_additional_details_data_response.py b/test/test_binary_additional_details_data_response.py index bc025a1..a220ad3 100644 --- a/test/test_binary_additional_details_data_response.py +++ b/test/test_binary_additional_details_data_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_additional_response.py b/test/test_binary_additional_response.py index a22b7ff..315551c 100644 --- a/test/test_binary_additional_response.py +++ b/test/test_binary_additional_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_ann_form.py b/test/test_binary_ann_form.py index 9e3b73f..42ee4be 100644 --- a/test/test_binary_ann_form.py +++ b/test/test_binary_ann_form.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_ann_list_response.py b/test/test_binary_ann_list_response.py index d135445..c316273 100644 --- a/test/test_binary_ann_list_response.py +++ b/test/test_binary_ann_list_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_config.py b/test/test_binary_config.py index 065660f..3a7a786 100644 --- a/test/test_binary_config.py +++ b/test/test_binary_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_details_response.py b/test/test_binary_details_response.py index 04671a3..1b924e3 100644 --- a/test/test_binary_details_response.py +++ b/test/test_binary_details_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_externals_response.py b/test/test_binary_externals_response.py index 42eeb7c..45c73be 100644 --- a/test/test_binary_externals_response.py +++ b/test/test_binary_externals_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_search_response.py b/test/test_binary_search_response.py index 8b4fd8d..9bedab0 100644 --- a/test/test_binary_search_response.py +++ b/test/test_binary_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_search_result.py b/test/test_binary_search_result.py index 30dea69..8084c23 100644 --- a/test/test_binary_search_result.py +++ b/test/test_binary_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_binary_task_status.py b/test/test_binary_task_status.py index 8e3c417..45016c7 100644 --- a/test/test_binary_task_status.py +++ b/test/test_binary_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_block.py b/test/test_block.py index 2d2d433..cb0114a 100644 --- a/test/test_block.py +++ b/test/test_block.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_block_comments_generation_for_function_response.py b/test/test_block_comments_generation_for_function_response.py index 87e8921..48b7907 100644 --- a/test/test_block_comments_generation_for_function_response.py +++ b/test/test_block_comments_generation_for_function_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_boundary.py b/test/test_boundary.py index 79d4075..d5c1000 100644 --- a/test/test_boundary.py +++ b/test/test_boundary.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_box_plot_confidence.py b/test/test_box_plot_confidence.py index 5b2f4aa..a04e9e6 100644 --- a/test/test_box_plot_confidence.py +++ b/test/test_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_callee_function_info.py b/test/test_callee_function_info.py index f8d195e..14c4bd6 100644 --- a/test/test_callee_function_info.py +++ b/test/test_callee_function_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_callees_caller_functions_response.py b/test/test_callees_caller_functions_response.py index 06ce377..8303384 100644 --- a/test/test_callees_caller_functions_response.py +++ b/test/test_callees_caller_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_caller_function_info.py b/test/test_caller_function_info.py index 6d78e8c..27e0207 100644 --- a/test/test_caller_function_info.py +++ b/test/test_caller_function_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_capabilities.py b/test/test_capabilities.py index 7ed7ea9..860f298 100644 --- a/test/test_capabilities.py +++ b/test/test_capabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_capability.py b/test/test_capability.py index e01ae72..7dd055b 100644 --- a/test/test_capability.py +++ b/test/test_capability.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_check_security_checks_task_response.py b/test/test_check_security_checks_task_response.py index 6a9f620..a7d4645 100644 --- a/test/test_check_security_checks_task_response.py +++ b/test/test_check_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_child_binaries_response.py b/test/test_child_binaries_response.py index f8630e2..07025bf 100644 --- a/test/test_child_binaries_response.py +++ b/test/test_child_binaries_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_code_signature_model.py b/test/test_code_signature_model.py index 6b994e8..c0ae8a2 100644 --- a/test/test_code_signature_model.py +++ b/test/test_code_signature_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_binaries_update_request.py b/test/test_collection_binaries_update_request.py index bc97fdd..3a32365 100644 --- a/test/test_collection_binaries_update_request.py +++ b/test/test_collection_binaries_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_binaries_update_response.py b/test/test_collection_binaries_update_response.py index c20708a..64d3735 100644 --- a/test/test_collection_binaries_update_response.py +++ b/test/test_collection_binaries_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_binary_response.py b/test/test_collection_binary_response.py index 142b414..be10d05 100644 --- a/test/test_collection_binary_response.py +++ b/test/test_collection_binary_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_create_request.py b/test/test_collection_create_request.py index 74b0e04..2a1698c 100644 --- a/test/test_collection_create_request.py +++ b/test/test_collection_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_list_item.py b/test/test_collection_list_item.py index dc34d4b..aa384bc 100644 --- a/test/test_collection_list_item.py +++ b/test/test_collection_list_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_response.py b/test/test_collection_response.py index 8b5508d..7b064c5 100644 --- a/test/test_collection_response.py +++ b/test/test_collection_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_response_binaries_inner.py b/test/test_collection_response_binaries_inner.py index b52c699..9599763 100644 --- a/test/test_collection_response_binaries_inner.py +++ b/test/test_collection_response_binaries_inner.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_scope.py b/test/test_collection_scope.py index f914793..52b4c7d 100644 --- a/test/test_collection_scope.py +++ b/test/test_collection_scope.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_search_response.py b/test/test_collection_search_response.py index afbdb35..ad4fbd8 100644 --- a/test/test_collection_search_response.py +++ b/test/test_collection_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_search_result.py b/test/test_collection_search_result.py index f5d5b30..94170a1 100644 --- a/test/test_collection_search_result.py +++ b/test/test_collection_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_tags_update_request.py b/test/test_collection_tags_update_request.py index 7775747..58e48a1 100644 --- a/test/test_collection_tags_update_request.py +++ b/test/test_collection_tags_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_tags_update_response.py b/test/test_collection_tags_update_response.py index a0c6f7c..d71d5d3 100644 --- a/test/test_collection_tags_update_response.py +++ b/test/test_collection_tags_update_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collection_update_request.py b/test/test_collection_update_request.py index 4900098..2e47c82 100644 --- a/test/test_collection_update_request.py +++ b/test/test_collection_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_collections_api.py b/test/test_collections_api.py index 31a2095..ff900b8 100644 --- a/test/test_collections_api.py +++ b/test/test_collections_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_comment_base.py b/test/test_comment_base.py index 31b56f0..f2ce330 100644 --- a/test/test_comment_base.py +++ b/test/test_comment_base.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_comment_response.py b/test/test_comment_response.py index b5226c0..1711c83 100644 --- a/test/test_comment_response.py +++ b/test/test_comment_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_comment_update_request.py b/test/test_comment_update_request.py index 0ea500b..49d5945 100644 --- a/test/test_comment_update_request.py +++ b/test/test_comment_update_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_communities.py b/test/test_communities.py index 288ebbc..a4bdfaf 100644 --- a/test/test_communities.py +++ b/test/test_communities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_community_match_percentages.py b/test/test_community_match_percentages.py index c4cdb82..0fd92d6 100644 --- a/test/test_community_match_percentages.py +++ b/test/test_community_match_percentages.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_confidence_api.py b/test/test_confidence_api.py index 8283414..40a6e37 100644 --- a/test/test_confidence_api.py +++ b/test/test_confidence_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_confidence_type.py b/test/test_confidence_type.py index 8cfbed2..679a723 100644 --- a/test/test_confidence_type.py +++ b/test/test_confidence_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_context.py b/test/test_context.py index 00e45d9..688ee3e 100644 --- a/test/test_context.py +++ b/test/test_context.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_created.py b/test/test_created.py index ba4455b..cb183d6 100644 --- a/test/test_created.py +++ b/test/test_created.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_decompilation_comment_context.py b/test/test_decompilation_comment_context.py index 355d06c..9176534 100644 --- a/test/test_decompilation_comment_context.py +++ b/test/test_decompilation_comment_context.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_decompilation_response.py b/test/test_decompilation_response.py index 679e849..9515327 100644 --- a/test/test_decompilation_response.py +++ b/test/test_decompilation_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_die_match.py b/test/test_die_match.py index bffea0e..fa0362a 100644 --- a/test/test_die_match.py +++ b/test/test_die_match.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dynamic_execution_status_input.py b/test/test_dynamic_execution_status_input.py index 4b5ce74..135a195 100644 --- a/test/test_dynamic_execution_status_input.py +++ b/test/test_dynamic_execution_status_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_dynamic_entry.py b/test/test_elf_dynamic_entry.py index 59d6c1b..803bdda 100644 --- a/test/test_elf_dynamic_entry.py +++ b/test/test_elf_dynamic_entry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_import_model.py b/test/test_elf_import_model.py index 20e2976..2a41934 100644 --- a/test/test_elf_import_model.py +++ b/test/test_elf_import_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_model.py b/test/test_elf_model.py index 3bd431c..0ca7b59 100644 --- a/test/test_elf_model.py +++ b/test/test_elf_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_relocation.py b/test/test_elf_relocation.py index 67356bd..de96cb6 100644 --- a/test/test_elf_relocation.py +++ b/test/test_elf_relocation.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_section.py b/test/test_elf_section.py index a79fe77..31f2e0b 100644 --- a/test/test_elf_section.py +++ b/test/test_elf_section.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_security.py b/test/test_elf_security.py index c293c3d..acff890 100644 --- a/test/test_elf_security.py +++ b/test/test_elf_security.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_segment.py b/test/test_elf_segment.py index 41cff76..5567ade 100644 --- a/test/test_elf_segment.py +++ b/test/test_elf_segment.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_elf_symbol.py b/test/test_elf_symbol.py index 6d7d00f..89baf6d 100644 --- a/test/test_elf_symbol.py +++ b/test/test_elf_symbol.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_entrypoint_model.py b/test/test_entrypoint_model.py index aa25e22..e9b82c9 100644 --- a/test/test_entrypoint_model.py +++ b/test/test_entrypoint_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_enumeration.py b/test/test_enumeration.py index cf7f6af..a29d317 100644 --- a/test/test_enumeration.py +++ b/test/test_enumeration.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_error_model.py b/test/test_error_model.py index 95c99a9..5a1583f 100644 --- a/test/test_error_model.py +++ b/test/test_error_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_export_model.py b/test/test_export_model.py index 9b027b2..c90cc38 100644 --- a/test/test_export_model.py +++ b/test/test_export_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_exported_binary_ann_result.py b/test/test_exported_binary_ann_result.py index 459a66e..f26c2a5 100644 --- a/test/test_exported_binary_ann_result.py +++ b/test/test_exported_binary_ann_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_external_response.py b/test/test_external_response.py index 6f8f229..9118abc 100644 --- a/test/test_external_response.py +++ b/test/test_external_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_external_sources_api.py b/test/test_external_sources_api.py index 5e8d9f9..ab7de71 100644 --- a/test/test_external_sources_api.py +++ b/test/test_external_sources_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_file_format.py b/test/test_file_format.py index 34e9ec6..27f1f4f 100644 --- a/test/test_file_format.py +++ b/test/test_file_format.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_file_hashes.py b/test/test_file_hashes.py index 942f573..68edbba 100644 --- a/test/test_file_hashes.py +++ b/test/test_file_hashes.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_file_metadata.py b/test/test_file_metadata.py index d28b8bd..2e8dffc 100644 --- a/test/test_file_metadata.py +++ b/test/test_file_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_filters.py b/test/test_filters.py index 0b27961..7bc7898 100644 --- a/test/test_filters.py +++ b/test/test_filters.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_firmware_api.py b/test/test_firmware_api.py index 6194c05..2045784 100644 --- a/test/test_firmware_api.py +++ b/test/test_firmware_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_analysis_threat_score_data.py b/test/test_function_analysis_threat_score_data.py index d3a717a..8219d51 100644 --- a/test/test_function_analysis_threat_score_data.py +++ b/test/test_function_analysis_threat_score_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_block_destination_response.py b/test/test_function_block_destination_response.py index 9aa73ad..41ddbbd 100644 --- a/test/test_function_block_destination_response.py +++ b/test/test_function_block_destination_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_block_response.py b/test/test_function_block_response.py index bbf7506..732dccc 100644 --- a/test/test_function_block_response.py +++ b/test/test_function_block_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_blocks_response.py b/test/test_function_blocks_response.py index 9e1bd58..9a24809 100644 --- a/test/test_function_blocks_response.py +++ b/test/test_function_blocks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_boundary.py b/test/test_function_boundary.py index 932116e..07cb72d 100644 --- a/test/test_function_boundary.py +++ b/test/test_function_boundary.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_box_plot_confidence.py b/test/test_function_box_plot_confidence.py index fd485d2..54f0875 100644 --- a/test/test_function_box_plot_confidence.py +++ b/test/test_function_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_capability_response.py b/test/test_function_capability_response.py index cfb908d..5054c19 100644 --- a/test/test_function_capability_response.py +++ b/test/test_function_capability_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_comment_create_request.py b/test/test_function_comment_create_request.py index 91666be..b0e9de9 100644 --- a/test/test_function_comment_create_request.py +++ b/test/test_function_comment_create_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types.py b/test/test_function_data_types.py index 9fe6903..580a5dc 100644 --- a/test/test_function_data_types.py +++ b/test/test_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types_list.py b/test/test_function_data_types_list.py index f60ce6a..ff11497 100644 --- a/test/test_function_data_types_list.py +++ b/test/test_function_data_types_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types_list_item.py b/test/test_function_data_types_list_item.py index d3283fd..b8c369e 100644 --- a/test/test_function_data_types_list_item.py +++ b/test/test_function_data_types_list_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types_params.py b/test/test_function_data_types_params.py index 65a245c..7d71387 100644 --- a/test/test_function_data_types_params.py +++ b/test/test_function_data_types_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_data_types_status.py b/test/test_function_data_types_status.py index d1efb07..76b2612 100644 --- a/test/test_function_data_types_status.py +++ b/test/test_function_data_types_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_header.py b/test/test_function_header.py index 385a477..6447206 100644 --- a/test/test_function_header.py +++ b/test/test_function_header.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_info_input.py b/test/test_function_info_input.py index 4852a26..da8514b 100644 --- a/test/test_function_info_input.py +++ b/test/test_function_info_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_info_input_func_deps_inner.py b/test/test_function_info_input_func_deps_inner.py index 7952375..d10fa30 100644 --- a/test/test_function_info_input_func_deps_inner.py +++ b/test/test_function_info_input_func_deps_inner.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_info_output.py b/test/test_function_info_output.py index d70b019..ea3a7da 100644 --- a/test/test_function_info_output.py +++ b/test/test_function_info_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_local_variable_response.py b/test/test_function_local_variable_response.py index a4e6ea4..dc5776f 100644 --- a/test/test_function_local_variable_response.py +++ b/test/test_function_local_variable_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_mapping_full.py b/test/test_function_mapping_full.py index b2a96c4..cac82a1 100644 --- a/test/test_function_mapping_full.py +++ b/test/test_function_mapping_full.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_name_confidence_body.py b/test/test_function_name_confidence_body.py index 086fbdc..c5e5dbd 100644 --- a/test/test_function_name_confidence_body.py +++ b/test/test_function_name_confidence_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_name_history.py b/test/test_function_name_history.py index 4bce715..8457478 100644 --- a/test/test_function_name_history.py +++ b/test/test_function_name_history.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_name_input.py b/test/test_function_name_input.py index 83d0cb9..4e0667c 100644 --- a/test/test_function_name_input.py +++ b/test/test_function_name_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_param_response.py b/test/test_function_param_response.py index 793bda4..43e3354 100644 --- a/test/test_function_param_response.py +++ b/test/test_function_param_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_rename.py b/test/test_function_rename.py index dfe1c29..8169849 100644 --- a/test/test_function_rename.py +++ b/test/test_function_rename.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_rename_map.py b/test/test_function_rename_map.py index f3e2982..a21be2b 100644 --- a/test/test_function_rename_map.py +++ b/test/test_function_rename_map.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,7 +42,6 @@ def make_instance(self, include_optional) -> FunctionRenameMap: else: return FunctionRenameMap( function_id = 56, - new_name = '', ) """ diff --git a/test/test_function_search_response.py b/test/test_function_search_response.py index b8ea411..0ccc722 100644 --- a/test/test_function_search_response.py +++ b/test/test_function_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_search_result.py b/test/test_function_search_result.py index 185d31f..0cbb475 100644 --- a/test/test_function_search_result.py +++ b/test/test_function_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_string.py b/test/test_function_string.py index a861c34..a8f668a 100644 --- a/test/test_function_string.py +++ b/test/test_function_string.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_strings_response.py b/test/test_function_strings_response.py index 5bab6de..a0ca6f3 100644 --- a/test/test_function_strings_response.py +++ b/test/test_function_strings_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_task_response.py b/test/test_function_task_response.py index 4d41ec3..e246c98 100644 --- a/test/test_function_task_response.py +++ b/test/test_function_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_task_status.py b/test/test_function_task_status.py index 7dc4cc9..675643d 100644 --- a/test/test_function_task_status.py +++ b/test/test_function_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_threat_score.py b/test/test_function_threat_score.py index 9065970..e90c761 100644 --- a/test/test_function_threat_score.py +++ b/test/test_function_threat_score.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_type_input.py b/test/test_function_type_input.py index 64a65d9..051b5f9 100644 --- a/test/test_function_type_input.py +++ b/test/test_function_type_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_type_output.py b/test/test_function_type_output.py index 763d805..944c355 100644 --- a/test/test_function_type_output.py +++ b/test/test_function_type_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_ai_decompilation_api.py b/test/test_functions_ai_decompilation_api.py index 07993fa..9bf5ee7 100644 --- a/test/test_functions_ai_decompilation_api.py +++ b/test/test_functions_ai_decompilation_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_block_comments_api.py b/test/test_functions_block_comments_api.py index 4e82ef1..cc4ec01 100644 --- a/test/test_functions_block_comments_api.py +++ b/test/test_functions_block_comments_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_core_api.py b/test/test_functions_core_api.py index 5057541..4fedc5a 100644 --- a/test/test_functions_core_api.py +++ b/test/test_functions_core_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,6 +26,34 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_ai_unstrip(self) -> None: + """Test case for ai_unstrip + + Performs matching and auto-unstrip for an analysis and its functions + """ + pass + + def test_auto_unstrip(self) -> None: + """Test case for auto_unstrip + + Performs matching and auto-unstrip for an analysis and its functions + """ + pass + + def test_cancel_ai_unstrip(self) -> None: + """Test case for cancel_ai_unstrip + + Cancels a running ai-unstrip + """ + pass + + def test_cancel_auto_unstrip(self) -> None: + """Test case for cancel_auto_unstrip + + Cancels a running auto-unstrip + """ + pass + def test_get_analysis_strings(self) -> None: """Test case for get_analysis_strings @@ -75,6 +103,13 @@ def test_get_similar_functions(self) -> None: """ pass + def test_unstrip(self) -> None: + """Test case for unstrip + + Performs matching and auto-unstrip for an analysis and its functions + """ + pass + if __name__ == '__main__': unittest.main() diff --git a/test/test_functions_data_types_api.py b/test/test_functions_data_types_api.py index fa131cf..e305f42 100644 --- a/test/test_functions_data_types_api.py +++ b/test/test_functions_data_types_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_decompilation_api.py b/test/test_functions_decompilation_api.py index 8f54f2e..82f79be 100644 --- a/test/test_functions_decompilation_api.py +++ b/test/test_functions_decompilation_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_detail_response.py b/test/test_functions_detail_response.py index 072ee81..f5dc26b 100644 --- a/test/test_functions_detail_response.py +++ b/test/test_functions_detail_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_list_rename.py b/test/test_functions_list_rename.py index ce19f21..b75190d 100644 --- a/test/test_functions_list_rename.py +++ b/test/test_functions_list_rename.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_renaming_history_api.py b/test/test_functions_renaming_history_api.py index 6e506b1..8193bbb 100644 --- a/test/test_functions_renaming_history_api.py +++ b/test/test_functions_renaming_history_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_functions_threat_score_api.py b/test/test_functions_threat_score_api.py index 08cce70..fb12f7c 100644 --- a/test/test_functions_threat_score_api.py +++ b/test/test_functions_threat_score_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_generate_function_data_types.py b/test/test_generate_function_data_types.py index be66e0f..e064cae 100644 --- a/test/test_generate_function_data_types.py +++ b/test/test_generate_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_generation_status_list.py b/test/test_generation_status_list.py index 311e320..1226e20 100644 --- a/test/test_generation_status_list.py +++ b/test/test_generation_status_list.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_decompilation_rating_response.py b/test/test_get_ai_decompilation_rating_response.py index 223783b..64d93fc 100644 --- a/test/test_get_ai_decompilation_rating_response.py +++ b/test/test_get_ai_decompilation_rating_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_ai_decompilation_task.py b/test/test_get_ai_decompilation_task.py index 0b94f24..1b16425 100644 --- a/test/test_get_ai_decompilation_task.py +++ b/test/test_get_ai_decompilation_task.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_public_user_response.py b/test/test_get_public_user_response.py index adfd42e..e4599ae 100644 --- a/test/test_get_public_user_response.py +++ b/test/test_get_public_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_get_user_response.py b/test/test_get_user_response.py index ee204d8..cb42261 100644 --- a/test/test_get_user_response.py +++ b/test/test_get_user_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_global_variable.py b/test/test_global_variable.py index 3a72e15..0144b49 100644 --- a/test/test_global_variable.py +++ b/test/test_global_variable.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_icon_model.py b/test/test_icon_model.py index c29b42c..7172246 100644 --- a/test/test_icon_model.py +++ b/test/test_icon_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_import_model.py b/test/test_import_model.py index c507a8b..0f2d6ef 100644 --- a/test/test_import_model.py +++ b/test/test_import_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_inverse_function_map_item.py b/test/test_inverse_function_map_item.py index 7395252..4db836d 100644 --- a/test/test_inverse_function_map_item.py +++ b/test/test_inverse_function_map_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_inverse_string_map_item.py b/test/test_inverse_string_map_item.py index f3cd03c..46b5726 100644 --- a/test/test_inverse_string_map_item.py +++ b/test/test_inverse_string_map_item.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_inverse_value.py b/test/test_inverse_value.py index 994db33..c8d867f 100644 --- a/test/test_inverse_value.py +++ b/test/test_inverse_value.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_isa.py b/test/test_isa.py index f781a70..7f98f3a 100644 --- a/test/test_isa.py +++ b/test/test_isa.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_list_collection_results.py b/test/test_list_collection_results.py index c88ade4..ed91f64 100644 --- a/test/test_list_collection_results.py +++ b/test/test_list_collection_results.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_request.py b/test/test_login_request.py index d1a501f..dce892b 100644 --- a/test/test_login_request.py +++ b/test/test_login_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_login_response.py b/test/test_login_response.py index 6dffb35..35180ae 100644 --- a/test/test_login_response.py +++ b/test/test_login_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_logs.py b/test/test_logs.py index 9106af5..df0849f 100644 --- a/test/test_logs.py +++ b/test/test_logs.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/test/test_analyse_created.py b/test/test_matched_function_group.py similarity index 50% rename from revengai/test/test_analyse_created.py rename to test/test_matched_function_group.py index b8202e0..c3b0dec 100644 --- a/revengai/test/test_analyse_created.py +++ b/test/test_matched_function_group.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.analyse_created import AnalyseCreated +from revengai.models.matched_function_group import MatchedFunctionGroup -class TestAnalyseCreated(unittest.TestCase): - """AnalyseCreated unit test stubs""" +class TestMatchedFunctionGroup(unittest.TestCase): + """MatchedFunctionGroup unit test stubs""" def setUp(self): pass @@ -25,27 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AnalyseCreated: - """Test AnalyseCreated + def make_instance(self, include_optional) -> MatchedFunctionGroup: + """Test MatchedFunctionGroup include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `AnalyseCreated` + # uncomment below to create an instance of `MatchedFunctionGroup` """ - model = AnalyseCreated() + model = MatchedFunctionGroup() if include_optional: - return AnalyseCreated( - success = None, - binary_id = None + return MatchedFunctionGroup( + function_group_name = '', + similarity = 1.337 ) else: - return AnalyseCreated( - binary_id = None, + return MatchedFunctionGroup( + function_group_name = '', + similarity = 1.337, ) """ - def testAnalyseCreated(self): - """Test AnalyseCreated""" + def testMatchedFunctionGroup(self): + """Test MatchedFunctionGroup""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/revengai/test/test_capability.py b/test/test_matched_function_suggestion.py similarity index 51% rename from revengai/test/test_capability.py rename to test/test_matched_function_suggestion.py index e01ae72..3a7c922 100644 --- a/revengai/test/test_capability.py +++ b/test/test_matched_function_suggestion.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.capability import Capability +from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion -class TestCapability(unittest.TestCase): - """Capability unit test stubs""" +class TestMatchedFunctionSuggestion(unittest.TestCase): + """MatchedFunctionSuggestion unit test stubs""" def setUp(self): pass @@ -25,34 +25,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Capability: - """Test Capability + def make_instance(self, include_optional) -> MatchedFunctionSuggestion: + """Test MatchedFunctionSuggestion include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Capability` + # uncomment below to create an instance of `MatchedFunctionSuggestion` """ - model = Capability() + model = MatchedFunctionSuggestion() if include_optional: - return Capability( - function_name = '', + return MatchedFunctionSuggestion( + function_id = 56, function_vaddr = 56, - capabilities = [ - '' - ] + suggested_name = '' ) else: - return Capability( - function_name = '', + return MatchedFunctionSuggestion( + function_id = 56, function_vaddr = 56, - capabilities = [ - '' - ], + suggested_name = '', ) """ - def testCapability(self): - """Test Capability""" + def testMatchedFunctionSuggestion(self): + """Test MatchedFunctionSuggestion""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_meta_model.py b/test/test_meta_model.py index 7a3ee12..8b65a24 100644 --- a/test/test_meta_model.py +++ b/test/test_meta_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_model_name.py b/test/test_model_name.py index fe6ac5a..994a17c 100644 --- a/test/test_model_name.py +++ b/test/test_model_name.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_models_api.py b/test/test_models_api.py index b7c8a72..111fa8e 100644 --- a/test/test_models_api.py +++ b/test/test_models_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_models_response.py b/test/test_models_response.py index 46c6848..d0100d7 100644 --- a/test/test_models_response.py +++ b/test/test_models_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_nearest_neighbor.py b/test/test_nearest_neighbor.py index 52243c6..cf0dc25 100644 --- a/test/test_nearest_neighbor.py +++ b/test/test_nearest_neighbor.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_network_overview_dns.py b/test/test_network_overview_dns.py index efc6dc4..f8f6487 100644 --- a/test/test_network_overview_dns.py +++ b/test/test_network_overview_dns.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_network_overview_dns_answer.py b/test/test_network_overview_dns_answer.py index 69a1ee9..55e5e3f 100644 --- a/test/test_network_overview_dns_answer.py +++ b/test/test_network_overview_dns_answer.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_network_overview_metadata.py b/test/test_network_overview_metadata.py index a515647..8381e64 100644 --- a/test/test_network_overview_metadata.py +++ b/test/test_network_overview_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_network_overview_response.py b/test/test_network_overview_response.py index 651c5a4..ecc7896 100644 --- a/test/test_network_overview_response.py +++ b/test/test_network_overview_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_order.py b/test/test_order.py index 4630275..0db2c35 100644 --- a/test/test_order.py +++ b/test/test_order.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_origin.py b/test/test_origin.py index 89ed3eb..55d3eb0 100644 --- a/test/test_origin.py +++ b/test/test_origin.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_pagination_model.py b/test/test_pagination_model.py index 4c276ee..a81e39e 100644 --- a/test/test_pagination_model.py +++ b/test/test_pagination_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_params.py b/test/test_params.py index 9488f16..00970b3 100644 --- a/test/test_params.py +++ b/test/test_params.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_pdb_debug_model.py b/test/test_pdb_debug_model.py index aefa4fc..7353ae4 100644 --- a/test/test_pdb_debug_model.py +++ b/test/test_pdb_debug_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_pe_model.py b/test/test_pe_model.py index 4298bad..27b2242 100644 --- a/test/test_pe_model.py +++ b/test/test_pe_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_platform.py b/test/test_platform.py index 0a990c9..1efd483 100644 --- a/test/test_platform.py +++ b/test/test_platform.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process.py b/test/test_process.py index 38081ba..6a97605 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_dump.py b/test/test_process_dump.py index 9644cfe..ea01fc8 100644 --- a/test/test_process_dump.py +++ b/test/test_process_dump.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_dump_metadata.py b/test/test_process_dump_metadata.py index b2978b6..645ce0e 100644 --- a/test/test_process_dump_metadata.py +++ b/test/test_process_dump_metadata.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_dumps.py b/test/test_process_dumps.py index 62eb0c7..76d8af1 100644 --- a/test/test_process_dumps.py +++ b/test/test_process_dumps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_dumps_data.py b/test/test_process_dumps_data.py index 79d438c..ef5003e 100644 --- a/test/test_process_dumps_data.py +++ b/test/test_process_dumps_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_registry.py b/test/test_process_registry.py index ef1ed84..d99fae6 100644 --- a/test/test_process_registry.py +++ b/test/test_process_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_process_tree.py b/test/test_process_tree.py index 1bc8a71..60da834 100644 --- a/test/test_process_tree.py +++ b/test/test_process_tree.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_queued_security_checks_task_response.py b/test/test_queued_security_checks_task_response.py index ab74069..6be4f0c 100644 --- a/test/test_queued_security_checks_task_response.py +++ b/test/test_queued_security_checks_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_re_analysis_form.py b/test/test_re_analysis_form.py index 5ff19c4..7500a62 100644 --- a/test/test_re_analysis_form.py +++ b/test/test_re_analysis_form.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_recent.py b/test/test_recent.py index 82d13c9..9de58bc 100644 --- a/test/test_recent.py +++ b/test/test_recent.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_registry.py b/test/test_registry.py index 99cda52..f83451e 100644 --- a/test/test_registry.py +++ b/test/test_registry.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_relative_binary_response.py b/test/test_relative_binary_response.py index 0f6a20f..1c8871d 100644 --- a/test/test_relative_binary_response.py +++ b/test/test_relative_binary_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sandbox_options.py b/test/test_sandbox_options.py index 8b609e4..b189177 100644 --- a/test/test_sandbox_options.py +++ b/test/test_sandbox_options.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sbom.py b/test/test_sbom.py index 719aad6..8fc96e2 100644 --- a/test/test_sbom.py +++ b/test/test_sbom.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_sbom_package.py b/test/test_sbom_package.py index 33d9e7a..7e0ca88 100644 --- a/test/test_sbom_package.py +++ b/test/test_sbom_package.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_scrape_third_party_config.py b/test/test_scrape_third_party_config.py index 4af47bd..5149a2e 100644 --- a/test/test_scrape_third_party_config.py +++ b/test/test_scrape_third_party_config.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_search_api.py b/test/test_search_api.py index 4e3839a..3b50b3f 100644 --- a/test/test_search_api.py +++ b/test/test_search_api.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_search_binary_ids.py b/test/test_search_binary_ids.py index cad8013..664c2f2 100644 --- a/test/test_search_binary_ids.py +++ b/test/test_search_binary_ids.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_search_function_ids.py b/test/test_search_function_ids.py index 6834242..d7dac9e 100644 --- a/test/test_search_function_ids.py +++ b/test/test_search_function_ids.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_section_model.py b/test/test_section_model.py index 4cd5eab..a44bec3 100644 --- a/test/test_section_model.py +++ b/test/test_section_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_security_checks_response.py b/test/test_security_checks_response.py index b229c29..5b3adf9 100644 --- a/test/test_security_checks_response.py +++ b/test/test_security_checks_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_security_checks_result.py b/test/test_security_checks_result.py index 195c005..04dc0cc 100644 --- a/test/test_security_checks_result.py +++ b/test/test_security_checks_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_security_model.py b/test/test_security_model.py index 2b4aeb6..915319f 100644 --- a/test/test_security_model.py +++ b/test/test_security_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_severity_type.py b/test/test_severity_type.py index c5e74df..a455ef5 100644 --- a/test/test_severity_type.py +++ b/test/test_severity_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_similar_functions_response.py b/test/test_similar_functions_response.py index f40eaf3..f994035 100644 --- a/test/test_similar_functions_response.py +++ b/test/test_similar_functions_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_single_code_certificate_model.py b/test/test_single_code_certificate_model.py index 0f187b5..b0a5aaf 100644 --- a/test/test_single_code_certificate_model.py +++ b/test/test_single_code_certificate_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_single_code_signature_model.py b/test/test_single_code_signature_model.py index d064098..93d1167 100644 --- a/test/test_single_code_signature_model.py +++ b/test/test_single_code_signature_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_single_pdb_entry_model.py b/test/test_single_pdb_entry_model.py index b1c76b7..f403714 100644 --- a/test/test_single_pdb_entry_model.py +++ b/test/test_single_pdb_entry_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_single_section_model.py b/test/test_single_section_model.py index 05169c8..59569fa 100644 --- a/test/test_single_section_model.py +++ b/test/test_single_section_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_stack_variable.py b/test/test_stack_variable.py index 8799787..706d803 100644 --- a/test/test_stack_variable.py +++ b/test/test_stack_variable.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_status_input.py b/test/test_status_input.py index df39dde..cb24544 100644 --- a/test/test_status_input.py +++ b/test/test_status_input.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_status_output.py b/test/test_status_output.py index 901ceeb..b106d6d 100644 --- a/test/test_status_output.py +++ b/test/test_status_output.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_string_functions.py b/test/test_string_functions.py index e7dca13..88b1102 100644 --- a/test/test_string_functions.py +++ b/test/test_string_functions.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_structure.py b/test/test_structure.py index 0decd45..d2aa5a6 100644 --- a/test/test_structure.py +++ b/test/test_structure.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_structure_member.py b/test/test_structure_member.py index 7d678de..0fff26e 100644 --- a/test/test_structure_member.py +++ b/test/test_structure_member.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_symbols.py b/test/test_symbols.py index afc4a05..aed1958 100644 --- a/test/test_symbols.py +++ b/test/test_symbols.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_symbols_info.py b/test/test_symbols_info.py index c6122f2..5577392 100644 --- a/test/test_symbols_info.py +++ b/test/test_symbols_info.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_input.py b/test/test_tag.py similarity index 64% rename from test/test_tag_input.py rename to test/test_tag.py index 4cf10ed..5b381ff 100644 --- a/test/test_tag_input.py +++ b/test/test_tag.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.tag_input import TagInput +from revengai.models.tag import Tag -class TestTagInput(unittest.TestCase): - """TagInput unit test stubs""" +class TestTag(unittest.TestCase): + """Tag unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TagInput: - """Test TagInput + def make_instance(self, include_optional) -> Tag: + """Test Tag include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `TagInput` + # uncomment below to create an instance of `Tag` """ - model = TagInput() + model = Tag() if include_optional: - return TagInput( + return Tag( name = '' ) else: - return TagInput( + return Tag( name = '', ) """ - def testTagInput(self): - """Test TagInput""" + def testTag(self): + """Test Tag""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_tag_confidence_body.py b/test/test_tag_confidence_body.py index c9dd74f..978d072 100644 --- a/test/test_tag_confidence_body.py +++ b/test/test_tag_confidence_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_origin_box_plot_confidence.py b/test/test_tag_origin_box_plot_confidence.py index 91f4a6c..c0f55c4 100644 --- a/test/test_tag_origin_box_plot_confidence.py +++ b/test/test_tag_origin_box_plot_confidence.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_output.py b/test/test_tag_output.py deleted file mode 100644 index 475edd7..0000000 --- a/test/test_tag_output.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - RevEng.AI API - - RevEng.AI is Similarity Search Engine for executable binaries - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from revengai.models.tag_output import TagOutput - -class TestTagOutput(unittest.TestCase): - """TagOutput unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagOutput: - """Test TagOutput - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagOutput` - """ - model = TagOutput() - if include_optional: - return TagOutput( - tag = '', - origin = '' - ) - else: - return TagOutput( - tag = '', - origin = '', - ) - """ - - def testTagOutput(self): - """Test TagOutput""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_tag_response.py b/test/test_tag_response.py index 4f9fca1..c8ca434 100644 --- a/test/test_tag_response.py +++ b/test/test_tag_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_search_response.py b/test/test_tag_search_response.py index d74085e..5046861 100644 --- a/test/test_tag_search_response.py +++ b/test/test_tag_search_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tag_search_result.py b/test/test_tag_search_result.py index 82b8277..e90c135 100644 --- a/test/test_tag_search_result.py +++ b/test/test_tag_search_result.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_tags.py b/test/test_tags.py index 8a94590..335ab3e 100644 --- a/test/test_tags.py +++ b/test/test_tags.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_task_response.py b/test/test_task_response.py index 816c54e..3c0e4ec 100644 --- a/test/test_task_response.py +++ b/test/test_task_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_task_status.py b/test/test_task_status.py index 9583fc3..9b5771d 100644 --- a/test/test_task_status.py +++ b/test/test_task_status.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_threat_score_function_body.py b/test/test_threat_score_function_body.py index 2080812..3e7bba6 100644 --- a/test/test_threat_score_function_body.py +++ b/test/test_threat_score_function_body.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_timestamp_model.py b/test/test_timestamp_model.py index 83f0678..7b46fde 100644 --- a/test/test_timestamp_model.py +++ b/test/test_timestamp_model.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps.py b/test/test_ttps.py index 29d2d7c..1533f6a 100644 --- a/test/test_ttps.py +++ b/test/test_ttps.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps_attack.py b/test/test_ttps_attack.py index 9466ed5..1090968 100644 --- a/test/test_ttps_attack.py +++ b/test/test_ttps_attack.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps_data.py b/test/test_ttps_data.py index f1d5c94..3806858 100644 --- a/test/test_ttps_data.py +++ b/test/test_ttps_data.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps_element.py b/test/test_ttps_element.py index 4a4a092..4abba5d 100644 --- a/test/test_ttps_element.py +++ b/test/test_ttps_element.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_ttps_occurance.py b/test/test_ttps_occurance.py index d78473f..34ebcf4 100644 --- a/test/test_ttps_occurance.py +++ b/test/test_ttps_occurance.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_type_definition.py b/test/test_type_definition.py index 8019f9d..0b6371d 100644 --- a/test/test_type_definition.py +++ b/test/test_type_definition.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/test/test_comment_base.py b/test/test_unstrip_request.py similarity index 55% rename from revengai/test/test_comment_base.py rename to test/test_unstrip_request.py index 31b56f0..9be130a 100644 --- a/revengai/test/test_comment_base.py +++ b/test/test_unstrip_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.comment_base import CommentBase +from revengai.models.unstrip_request import UnstripRequest -class TestCommentBase(unittest.TestCase): - """CommentBase unit test stubs""" +class TestUnstripRequest(unittest.TestCase): + """UnstripRequest unit test stubs""" def setUp(self): pass @@ -25,26 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CommentBase: - """Test CommentBase + def make_instance(self, include_optional) -> UnstripRequest: + """Test UnstripRequest include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `CommentBase` + # uncomment below to create an instance of `UnstripRequest` """ - model = CommentBase() + model = UnstripRequest() if include_optional: - return CommentBase( - content = '' + return UnstripRequest( + min_similarity = 0.0, + limit = 1.0, + apply = True ) else: - return CommentBase( - content = '', + return UnstripRequest( ) """ - def testCommentBase(self): - """Test CommentBase""" + def testUnstripRequest(self): + """Test UnstripRequest""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_update_function_data_types.py b/test/test_update_function_data_types.py index 76f968d..fc6c8b9 100644 --- a/test/test_update_function_data_types.py +++ b/test/test_update_function_data_types.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/revengai/test/test_file_format.py b/test/test_upload_file_type.py similarity index 55% rename from revengai/test/test_file_format.py rename to test/test_upload_file_type.py index 34e9ec6..66ac61d 100644 --- a/revengai/test/test_file_format.py +++ b/test/test_upload_file_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.file_format import FileFormat +from revengai.models.upload_file_type import UploadFileType -class TestFileFormat(unittest.TestCase): - """FileFormat unit test stubs""" +class TestUploadFileType(unittest.TestCase): + """UploadFileType unit test stubs""" def setUp(self): pass @@ -25,9 +25,9 @@ def setUp(self): def tearDown(self): pass - def testFileFormat(self): - """Test FileFormat""" - # inst = FileFormat() + def testUploadFileType(self): + """Test UploadFileType""" + # inst = UploadFileType() if __name__ == '__main__': unittest.main() diff --git a/revengai/test/test_search_form.py b/test/test_upload_response.py similarity index 53% rename from revengai/test/test_search_form.py rename to test/test_upload_response.py index 13abd03..192a82e 100644 --- a/revengai/test/test_search_form.py +++ b/test/test_upload_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,10 @@ import unittest -from revengai.models.search_form import SearchForm +from revengai.models.upload_response import UploadResponse -class TestSearchForm(unittest.TestCase): - """SearchForm unit test stubs""" +class TestUploadResponse(unittest.TestCase): + """UploadResponse unit test stubs""" def setUp(self): pass @@ -25,30 +25,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SearchForm: - """Test SearchForm + def make_instance(self, include_optional) -> UploadResponse: + """Test UploadResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `SearchForm` + # uncomment below to create an instance of `UploadResponse` """ - model = SearchForm() + model = UploadResponse() if include_optional: - return SearchForm( + return UploadResponse( sha_256_hash = '', - binary_name = '', - collection_name = '', - status = '', - scope = '', - limit = '50' + file_type = 'BINARY', + filename = '' ) else: - return SearchForm( + return UploadResponse( + sha_256_hash = '', + file_type = 'BINARY', + filename = '', ) """ - def testSearchForm(self): - """Test SearchForm""" + def testUploadResponse(self): + """Test UploadResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_upsert_ai_decomplation_rating_request.py b/test/test_upsert_ai_decomplation_rating_request.py index 5c4a422..55b8826 100644 --- a/test/test_upsert_ai_decomplation_rating_request.py +++ b/test/test_upsert_ai_decomplation_rating_request.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_user_activity_response.py b/test/test_user_activity_response.py index 799c8bc..c045e16 100644 --- a/test/test_user_activity_response.py +++ b/test/test_user_activity_response.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_vulnerabilities.py b/test/test_vulnerabilities.py index 3bff9da..0fb9163 100644 --- a/test/test_vulnerabilities.py +++ b/test/test_vulnerabilities.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_vulnerability.py b/test/test_vulnerability.py index 7de1bfb..16e6720 100644 --- a/test/test_vulnerability.py +++ b/test/test_vulnerability.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_vulnerability_type.py b/test/test_vulnerability_type.py index d6cdd6c..05a31e6 100644 --- a/test/test_vulnerability_type.py +++ b/test/test_vulnerability_type.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_workspace.py b/test/test_workspace.py index 4d779dd..bb3d34b 100644 --- a/test/test_workspace.py +++ b/test/test_workspace.py @@ -5,7 +5,7 @@ RevEng.AI is Similarity Search Engine for executable binaries - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: v1.72.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.