revengai 1.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- revengai/__init__.py +1035 -0
- revengai/api/__init__.py +58 -0
- revengai/api/analyses_comments_api.py +1260 -0
- revengai/api/analyses_core_api.py +4305 -0
- revengai/api/analyses_dynamic_execution_api.py +1991 -0
- revengai/api/analyses_results_metadata_api.py +2324 -0
- revengai/api/analyses_security_checks_api.py +909 -0
- revengai/api/authentication_users_api.py +1386 -0
- revengai/api/binaries_api.py +1702 -0
- revengai/api/collections_api.py +2222 -0
- revengai/api/confidence_api.py +1214 -0
- revengai/api/external_sources_api.py +1709 -0
- revengai/api/firmware_api.py +624 -0
- revengai/api/functions_ai_decompilation_api.py +2728 -0
- revengai/api/functions_block_comments_api.py +897 -0
- revengai/api/functions_core_api.py +2216 -0
- revengai/api/functions_data_types_api.py +1838 -0
- revengai/api/functions_decompilation_api.py +2097 -0
- revengai/api/functions_renaming_history_api.py +1214 -0
- revengai/api/functions_threat_score_api.py +610 -0
- revengai/api/models_api.py +303 -0
- revengai/api/search_api.py +1483 -0
- revengai/api/v1_api.py +6373 -0
- revengai/api_client.py +804 -0
- revengai/api_response.py +21 -0
- revengai/configuration.py +602 -0
- revengai/exceptions.py +216 -0
- revengai/models/__init__.py +631 -0
- revengai/models/addr.py +144 -0
- revengai/models/ai_decompilation_rating.py +37 -0
- revengai/models/analyse_created.py +99 -0
- revengai/models/analysis_access_info.py +89 -0
- revengai/models/analysis_config.py +107 -0
- revengai/models/analysis_create_request.py +132 -0
- revengai/models/analysis_create_response.py +89 -0
- revengai/models/analysis_detail_response.py +122 -0
- revengai/models/analysis_form.py +138 -0
- revengai/models/analysis_functions.py +95 -0
- revengai/models/analysis_record.py +123 -0
- revengai/models/analysis_scope.py +37 -0
- revengai/models/analysis_status.py +94 -0
- revengai/models/analysis_strings_response.py +97 -0
- revengai/models/analysis_threat_score_data.py +99 -0
- revengai/models/analysis_update_request.py +109 -0
- revengai/models/analysis_update_tags_request.py +87 -0
- revengai/models/analysis_update_tags_response.py +95 -0
- revengai/models/ann_function.py +121 -0
- revengai/models/ann_input.py +108 -0
- revengai/models/app_api_rest_v1_analyse_schema_model_name.py +44 -0
- revengai/models/app_api_rest_v1_analyse_schema_status.py +40 -0
- revengai/models/app_api_rest_v1_analyse_schema_symbols.py +97 -0
- revengai/models/app_api_rest_v1_analysis_info_responses_logs.py +99 -0
- revengai/models/app_api_rest_v1_analysis_info_schema_function_rename.py +88 -0
- revengai/models/app_api_rest_v1_ann_schema_ann_function.py +135 -0
- revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py +39 -0
- revengai/models/app_api_rest_v2_analyses_enums_model_name.py +43 -0
- revengai/models/app_api_rest_v2_analyses_enums_order_by.py +38 -0
- revengai/models/app_api_rest_v2_analyses_enums_status.py +41 -0
- revengai/models/app_api_rest_v2_analyses_responses_analysis_tags.py +104 -0
- revengai/models/app_api_rest_v2_analyses_responses_logs.py +87 -0
- revengai/models/app_api_rest_v2_analyses_responses_tag_item.py +96 -0
- revengai/models/app_api_rest_v2_analyses_schemas_symbols.py +97 -0
- revengai/models/app_api_rest_v2_collections_enums_order_by.py +41 -0
- revengai/models/app_api_rest_v2_functions_rename_schema_function_rename.py +94 -0
- revengai/models/app_api_rest_v2_functions_responses_function.py +89 -0
- revengai/models/app_api_rest_v2_functions_types_function.py +109 -0
- revengai/models/app_api_rest_v2_info_responses_analysis_tags.py +104 -0
- revengai/models/app_api_rest_v2_similarity_schema_ann_function.py +121 -0
- revengai/models/app_core_responses_base_base_response_analysis_tags1.py +126 -0
- revengai/models/app_core_responses_base_base_response_analysis_tags2.py +126 -0
- revengai/models/app_services_binary_ann_schema_tag_item.py +99 -0
- revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py +87 -0
- revengai/models/argument.py +100 -0
- revengai/models/base_response.py +125 -0
- revengai/models/base_response_analysis_create_response.py +126 -0
- revengai/models/base_response_analysis_detail_response.py +126 -0
- revengai/models/base_response_analysis_functions.py +126 -0
- revengai/models/base_response_analysis_strings_response.py +126 -0
- revengai/models/base_response_analysis_threat_score_data.py +126 -0
- revengai/models/base_response_analysis_update_tags_response.py +126 -0
- revengai/models/base_response_basic.py +126 -0
- revengai/models/base_response_binary_additional_response.py +126 -0
- revengai/models/base_response_binary_ann_list_response.py +126 -0
- revengai/models/base_response_binary_details_response.py +126 -0
- revengai/models/base_response_binary_externals_response.py +126 -0
- revengai/models/base_response_binary_search_response.py +126 -0
- revengai/models/base_response_block_comments_generation_for_function_response.py +126 -0
- revengai/models/base_response_block_comments_overview_generation_response.py +117 -0
- revengai/models/base_response_bool.py +122 -0
- revengai/models/base_response_box_plot_confidence.py +126 -0
- revengai/models/base_response_callees_caller_functions_response.py +126 -0
- revengai/models/base_response_capabilities.py +126 -0
- revengai/models/base_response_check_security_checks_task_response.py +126 -0
- revengai/models/base_response_child_binaries_response.py +126 -0
- revengai/models/base_response_collection_binaries_update_response.py +126 -0
- revengai/models/base_response_collection_response.py +126 -0
- revengai/models/base_response_collection_search_response.py +126 -0
- revengai/models/base_response_collection_tags_update_response.py +126 -0
- revengai/models/base_response_comment_response.py +126 -0
- revengai/models/base_response_communities.py +126 -0
- revengai/models/base_response_created.py +126 -0
- revengai/models/base_response_decompilation_response.py +126 -0
- revengai/models/base_response_dict.py +122 -0
- revengai/models/base_response_dynamic_execution_status.py +126 -0
- revengai/models/base_response_external_response.py +126 -0
- revengai/models/base_response_function_analysis_threat_score_data.py +126 -0
- revengai/models/base_response_function_blocks_response.py +126 -0
- revengai/models/base_response_function_capability_response.py +126 -0
- revengai/models/base_response_function_data_types.py +126 -0
- revengai/models/base_response_function_data_types_list.py +126 -0
- revengai/models/base_response_function_search_response.py +126 -0
- revengai/models/base_response_function_strings_response.py +126 -0
- revengai/models/base_response_function_task_response.py +126 -0
- revengai/models/base_response_function_threat_score.py +126 -0
- revengai/models/base_response_functions_detail_response.py +126 -0
- revengai/models/base_response_generate_function_data_types.py +126 -0
- revengai/models/base_response_generation_status_list.py +126 -0
- revengai/models/base_response_get_ai_decompilation_rating_response.py +126 -0
- revengai/models/base_response_get_ai_decompilation_task.py +126 -0
- revengai/models/base_response_get_public_user_response.py +126 -0
- revengai/models/base_response_get_user_response.py +126 -0
- revengai/models/base_response_list_collection_results.py +126 -0
- revengai/models/base_response_list_comment_response.py +130 -0
- revengai/models/base_response_list_die_match.py +130 -0
- revengai/models/base_response_list_function_box_plot_confidence.py +130 -0
- revengai/models/base_response_list_function_name_history.py +130 -0
- revengai/models/base_response_list_sbom.py +130 -0
- revengai/models/base_response_list_similar_functions_response.py +130 -0
- revengai/models/base_response_list_tag_origin_box_plot_confidence.py +130 -0
- revengai/models/base_response_list_user_activity_response.py +130 -0
- revengai/models/base_response_login_response.py +126 -0
- revengai/models/base_response_logs.py +126 -0
- revengai/models/base_response_models_response.py +126 -0
- revengai/models/base_response_nearest_neighbor_analysis.py +136 -0
- revengai/models/base_response_network_overview_response.py +126 -0
- revengai/models/base_response_params.py +126 -0
- revengai/models/base_response_process_dumps.py +126 -0
- revengai/models/base_response_process_registry.py +126 -0
- revengai/models/base_response_process_tree.py +126 -0
- revengai/models/base_response_queued_security_checks_task_response.py +126 -0
- revengai/models/base_response_recent.py +126 -0
- revengai/models/base_response_security_checks_response.py +126 -0
- revengai/models/base_response_status.py +126 -0
- revengai/models/base_response_str.py +122 -0
- revengai/models/base_response_symbols_info.py +126 -0
- revengai/models/base_response_tag_search_response.py +126 -0
- revengai/models/base_response_task_response.py +126 -0
- revengai/models/base_response_ttps.py +126 -0
- revengai/models/base_response_vulnerabilities.py +126 -0
- revengai/models/basic.py +108 -0
- revengai/models/batch_ann.py +106 -0
- revengai/models/batch_function_rename.py +95 -0
- revengai/models/batch_function_rename_record.py +90 -0
- revengai/models/binary_additional_details_data_response.py +113 -0
- revengai/models/binary_additional_response.py +106 -0
- revengai/models/binary_ann_form.py +94 -0
- revengai/models/binary_ann_list_response.py +95 -0
- revengai/models/binary_config.py +109 -0
- revengai/models/binary_details_response.py +126 -0
- revengai/models/binary_externals_response.py +96 -0
- revengai/models/binary_search_response.py +95 -0
- revengai/models/binary_search_result.py +109 -0
- revengai/models/binary_task_status.py +40 -0
- revengai/models/block.py +87 -0
- revengai/models/block_comments_generation_for_function_response.py +87 -0
- revengai/models/boundary.py +91 -0
- revengai/models/box_plot_confidence.py +99 -0
- revengai/models/callee_function_info.py +107 -0
- revengai/models/callees_caller_functions_response.py +107 -0
- revengai/models/caller_function_info.py +107 -0
- revengai/models/capabilities.py +95 -0
- revengai/models/capability.py +91 -0
- revengai/models/check_security_checks_task_response.py +88 -0
- revengai/models/child_binaries_response.py +105 -0
- revengai/models/code_signature_model.py +99 -0
- revengai/models/collection_binaries_update_request.py +87 -0
- revengai/models/collection_binaries_update_response.py +95 -0
- revengai/models/collection_binary_response.py +98 -0
- revengai/models/collection_count.py +99 -0
- revengai/models/collection_create_request.py +108 -0
- revengai/models/collection_list_item.py +113 -0
- revengai/models/collection_response.py +132 -0
- revengai/models/collection_response_binaries_inner.py +136 -0
- revengai/models/collection_scope.py +39 -0
- revengai/models/collection_search_response.py +95 -0
- revengai/models/collection_search_result.py +125 -0
- revengai/models/collection_tags_update_request.py +87 -0
- revengai/models/collection_tags_update_response.py +87 -0
- revengai/models/collection_update_request.py +107 -0
- revengai/models/collections_count_form.py +88 -0
- revengai/models/comment_base.py +87 -0
- revengai/models/comment_response.py +111 -0
- revengai/models/comment_update_request.py +87 -0
- revengai/models/communities.py +101 -0
- revengai/models/community_match_percentages.py +93 -0
- revengai/models/confidence_type.py +40 -0
- revengai/models/config_settings.py +101 -0
- revengai/models/context.py +142 -0
- revengai/models/create_ai_decompilation_request.py +87 -0
- revengai/models/created.py +91 -0
- revengai/models/decompilation_comment_context.py +99 -0
- revengai/models/decompilation_response.py +91 -0
- revengai/models/deleted_analysis.py +99 -0
- revengai/models/die_match.py +93 -0
- revengai/models/dynamic_execution_status_input.py +39 -0
- revengai/models/elf_dynamic_entry.py +89 -0
- revengai/models/elf_import_model.py +89 -0
- revengai/models/elf_model.py +180 -0
- revengai/models/elf_relocation.py +99 -0
- revengai/models/elf_section.py +105 -0
- revengai/models/elf_security.py +95 -0
- revengai/models/elf_segment.py +103 -0
- revengai/models/elf_symbol.py +99 -0
- revengai/models/entrypoint_model.py +89 -0
- revengai/models/enumeration.py +98 -0
- revengai/models/error_model.py +89 -0
- revengai/models/export_model.py +89 -0
- revengai/models/exported_binary_ann_result.py +111 -0
- revengai/models/external_response.py +92 -0
- revengai/models/file_format.py +38 -0
- revengai/models/file_hashes.py +141 -0
- revengai/models/file_metadata.py +97 -0
- revengai/models/file_options.py +41 -0
- revengai/models/filters.py +40 -0
- revengai/models/function_analysis_threat_score_data.py +99 -0
- revengai/models/function_batch_ann.py +106 -0
- revengai/models/function_block_destination_response.py +96 -0
- revengai/models/function_block_response.py +110 -0
- revengai/models/function_blocks_response.py +122 -0
- revengai/models/function_boundary.py +91 -0
- revengai/models/function_box_plot_confidence.py +93 -0
- revengai/models/function_capability_response.py +87 -0
- revengai/models/function_comment_create_request.py +93 -0
- revengai/models/function_data_types.py +107 -0
- revengai/models/function_data_types_list.py +99 -0
- revengai/models/function_data_types_list_item.py +109 -0
- revengai/models/function_data_types_params.py +87 -0
- revengai/models/function_data_types_status.py +91 -0
- revengai/models/function_dump.py +106 -0
- revengai/models/function_header.py +113 -0
- revengai/models/function_info_input.py +106 -0
- revengai/models/function_info_input_func_deps_inner.py +164 -0
- revengai/models/function_info_output.py +106 -0
- revengai/models/function_list.py +87 -0
- revengai/models/function_list_basic.py +99 -0
- revengai/models/function_local_variable_response.py +95 -0
- revengai/models/function_mapping_full.py +248 -0
- revengai/models/function_name_confidence_body.py +98 -0
- revengai/models/function_name_history.py +97 -0
- revengai/models/function_name_input.py +89 -0
- revengai/models/function_param_mapping.py +89 -0
- revengai/models/function_param_response.py +95 -0
- revengai/models/function_params.py +95 -0
- revengai/models/function_rename.py +94 -0
- revengai/models/function_rename_map.py +96 -0
- revengai/models/function_search_response.py +95 -0
- revengai/models/function_search_result.py +100 -0
- revengai/models/function_string.py +89 -0
- revengai/models/function_strings_response.py +97 -0
- revengai/models/function_task_response.py +95 -0
- revengai/models/function_task_status.py +40 -0
- revengai/models/function_threat_score.py +100 -0
- revengai/models/function_type_input.py +128 -0
- revengai/models/function_type_output.py +128 -0
- revengai/models/functions_detail_response.py +122 -0
- revengai/models/functions_list_rename.py +95 -0
- revengai/models/generate_function_data_types.py +95 -0
- revengai/models/generation_status_list.py +99 -0
- revengai/models/get_ai_decompilation_rating_response.py +88 -0
- revengai/models/get_ai_decompilation_task.py +153 -0
- revengai/models/get_public_user_response.py +89 -0
- revengai/models/get_user_response.py +100 -0
- revengai/models/global_variable.py +102 -0
- revengai/models/icon_model.py +92 -0
- revengai/models/import_model.py +89 -0
- revengai/models/inverse_function_map_item.py +100 -0
- revengai/models/inverse_string_map_item.py +94 -0
- revengai/models/inverse_value.py +87 -0
- revengai/models/isa.py +38 -0
- revengai/models/isa_options.py +39 -0
- revengai/models/list_collection_results.py +95 -0
- revengai/models/login_request.py +90 -0
- revengai/models/login_response.py +87 -0
- revengai/models/logs.py +87 -0
- revengai/models/meta_model.py +96 -0
- revengai/models/model_list.py +99 -0
- revengai/models/model_name.py +43 -0
- revengai/models/models_response.py +87 -0
- revengai/models/nearest_neighbor.py +106 -0
- revengai/models/network_overview_dns.py +99 -0
- revengai/models/network_overview_dns_answer.py +89 -0
- revengai/models/network_overview_metadata.py +100 -0
- revengai/models/network_overview_response.py +105 -0
- revengai/models/order.py +37 -0
- revengai/models/origin.py +43 -0
- revengai/models/pagination_model.py +91 -0
- revengai/models/params.py +104 -0
- revengai/models/pdb_debug_model.py +95 -0
- revengai/models/pe_model.py +216 -0
- revengai/models/platform.py +37 -0
- revengai/models/platform_options.py +40 -0
- revengai/models/process.py +104 -0
- revengai/models/process_dump.py +97 -0
- revengai/models/process_dump_metadata.py +91 -0
- revengai/models/process_dumps.py +93 -0
- revengai/models/process_dumps_data.py +97 -0
- revengai/models/process_registry.py +106 -0
- revengai/models/process_tree.py +97 -0
- revengai/models/queued_security_checks_task_response.py +87 -0
- revengai/models/quick_search.py +99 -0
- revengai/models/re_analysis_form.py +102 -0
- revengai/models/recent.py +95 -0
- revengai/models/recent_analysis.py +99 -0
- revengai/models/recent_analysis_form.py +92 -0
- revengai/models/registry.py +103 -0
- revengai/models/relative_binary_response.py +91 -0
- revengai/models/rename.py +99 -0
- revengai/models/sandbox_options.py +89 -0
- revengai/models/sbom.py +97 -0
- revengai/models/sbom_package.py +89 -0
- revengai/models/scope.py +39 -0
- revengai/models/scrape_third_party_config.py +87 -0
- revengai/models/search_binary_ids.py +138 -0
- revengai/models/search_form.py +97 -0
- revengai/models/search_function_ids.py +138 -0
- revengai/models/search_query.py +99 -0
- revengai/models/section_model.py +97 -0
- revengai/models/security_checks_response.py +99 -0
- revengai/models/security_checks_result.py +104 -0
- revengai/models/security_model.py +107 -0
- revengai/models/severity_type.py +41 -0
- revengai/models/similar_functions_response.py +101 -0
- revengai/models/single_code_certificate_model.py +97 -0
- revengai/models/single_code_signature_model.py +97 -0
- revengai/models/single_pdb_entry_model.py +91 -0
- revengai/models/single_section_model.py +99 -0
- revengai/models/stack_variable.py +102 -0
- revengai/models/status_input.py +41 -0
- revengai/models/status_output.py +89 -0
- revengai/models/string_functions.py +97 -0
- revengai/models/structure.py +118 -0
- revengai/models/structure_member.py +100 -0
- revengai/models/symbols.py +97 -0
- revengai/models/symbols_info.py +103 -0
- revengai/models/tag_confidence_body.py +96 -0
- revengai/models/tag_input.py +87 -0
- revengai/models/tag_origin_box_plot_confidence.py +97 -0
- revengai/models/tag_output.py +89 -0
- revengai/models/tag_response.py +89 -0
- revengai/models/tag_search_response.py +95 -0
- revengai/models/tag_search_result.py +89 -0
- revengai/models/tags.py +90 -0
- revengai/models/task_response.py +95 -0
- revengai/models/task_status.py +40 -0
- revengai/models/threat_score_function_body.py +88 -0
- revengai/models/timestamp_model.py +91 -0
- revengai/models/ttps.py +93 -0
- revengai/models/ttps_attack.py +89 -0
- revengai/models/ttps_data.py +97 -0
- revengai/models/ttps_element.py +109 -0
- revengai/models/ttps_occurance.py +89 -0
- revengai/models/type_definition.py +98 -0
- revengai/models/update_function_data_types.py +93 -0
- revengai/models/upload_success.py +106 -0
- revengai/models/upsert_ai_decomplation_rating_request.py +88 -0
- revengai/models/user_activity_response.py +98 -0
- revengai/models/user_boundaries.py +91 -0
- revengai/models/vulnerabilities.py +95 -0
- revengai/models/vulnerability.py +114 -0
- revengai/models/vulnerability_type.py +41 -0
- revengai/models/workspace.py +38 -0
- revengai/py.typed +0 -0
- revengai/rest.py +258 -0
- revengai/test/__init__.py +0 -0
- revengai/test/test_addr.py +50 -0
- revengai/test/test_ai_decompilation_rating.py +33 -0
- revengai/test/test_analyse_created.py +53 -0
- revengai/test/test_analyses_comments_api.py +59 -0
- revengai/test/test_analyses_core_api.py +136 -0
- revengai/test/test_analyses_dynamic_execution_api.py +80 -0
- revengai/test/test_analyses_results_metadata_api.py +143 -0
- revengai/test/test_analyses_security_checks_api.py +52 -0
- revengai/test/test_analysis_access_info.py +54 -0
- revengai/test/test_analysis_config.py +60 -0
- revengai/test/test_analysis_create_request.py +83 -0
- revengai/test/test_analysis_create_response.py +54 -0
- revengai/test/test_analysis_detail_response.py +83 -0
- revengai/test/test_analysis_form.py +81 -0
- revengai/test/test_analysis_functions.py +78 -0
- revengai/test/test_analysis_record.py +74 -0
- revengai/test/test_analysis_scope.py +33 -0
- revengai/test/test_analysis_status.py +53 -0
- revengai/test/test_analysis_strings_response.py +70 -0
- revengai/test/test_analysis_threat_score_data.py +64 -0
- revengai/test/test_analysis_update_request.py +52 -0
- revengai/test/test_analysis_update_tags_request.py +56 -0
- revengai/test/test_analysis_update_tags_response.py +60 -0
- revengai/test/test_ann_function.py +61 -0
- revengai/test/test_ann_input.py +56 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_model_name.py +33 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_status.py +33 -0
- revengai/test/test_app_api_rest_v1_analyse_schema_symbols.py +57 -0
- revengai/test/test_app_api_rest_v1_analysis_info_responses_logs.py +53 -0
- revengai/test/test_app_api_rest_v1_analysis_info_schema_function_rename.py +52 -0
- revengai/test/test_app_api_rest_v1_ann_schema_ann_function.py +74 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_dynamic_execution_status.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_model_name.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_order_by.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_enums_status.py +33 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_analysis_tags.py +74 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_logs.py +52 -0
- revengai/test/test_app_api_rest_v2_analyses_responses_tag_item.py +55 -0
- revengai/test/test_app_api_rest_v2_analyses_schemas_symbols.py +57 -0
- revengai/test/test_app_api_rest_v2_collections_enums_order_by.py +33 -0
- revengai/test/test_app_api_rest_v2_functions_rename_schema_function_rename.py +52 -0
- revengai/test/test_app_api_rest_v2_functions_responses_function.py +54 -0
- revengai/test/test_app_api_rest_v2_functions_types_function.py +72 -0
- revengai/test/test_app_api_rest_v2_info_responses_analysis_tags.py +70 -0
- revengai/test/test_app_api_rest_v2_similarity_schema_ann_function.py +61 -0
- revengai/test/test_app_core_responses_base_base_response_analysis_tags1.py +73 -0
- revengai/test/test_app_core_responses_base_base_response_analysis_tags2.py +75 -0
- revengai/test/test_app_services_binary_ann_schema_tag_item.py +52 -0
- revengai/test/test_app_services_dynamic_execution_schemas_dynamic_execution_status.py +52 -0
- revengai/test/test_argument.py +59 -0
- revengai/test/test_authentication_users_api.py +66 -0
- revengai/test/test_base_response.py +63 -0
- revengai/test/test_base_response_analysis_create_response.py +65 -0
- revengai/test/test_base_response_analysis_detail_response.py +81 -0
- revengai/test/test_base_response_analysis_functions.py +77 -0
- revengai/test/test_base_response_analysis_strings_response.py +73 -0
- revengai/test/test_base_response_analysis_threat_score_data.py +70 -0
- revengai/test/test_base_response_analysis_update_tags_response.py +68 -0
- revengai/test/test_base_response_basic.py +74 -0
- revengai/test/test_base_response_binary_additional_response.py +259 -0
- revengai/test/test_base_response_binary_ann_list_response.py +83 -0
- revengai/test/test_base_response_binary_details_response.py +83 -0
- revengai/test/test_base_response_binary_externals_response.py +72 -0
- revengai/test/test_base_response_binary_search_response.py +77 -0
- revengai/test/test_base_response_block_comments_generation_for_function_response.py +64 -0
- revengai/test/test_base_response_block_comments_overview_generation_response.py +63 -0
- revengai/test/test_base_response_bool.py +63 -0
- revengai/test/test_base_response_box_plot_confidence.py +70 -0
- revengai/test/test_base_response_callees_caller_functions_response.py +82 -0
- revengai/test/test_base_response_capabilities.py +71 -0
- revengai/test/test_base_response_check_security_checks_task_response.py +64 -0
- revengai/test/test_base_response_child_binaries_response.py +73 -0
- revengai/test/test_base_response_collection_binaries_update_response.py +72 -0
- revengai/test/test_base_response_collection_response.py +78 -0
- revengai/test/test_base_response_collection_search_response.py +80 -0
- revengai/test/test_base_response_collection_tags_update_response.py +66 -0
- revengai/test/test_base_response_comment_response.py +71 -0
- revengai/test/test_base_response_communities.py +77 -0
- revengai/test/test_base_response_created.py +66 -0
- revengai/test/test_base_response_decompilation_response.py +66 -0
- revengai/test/test_base_response_dict.py +65 -0
- revengai/test/test_base_response_dynamic_execution_status.py +64 -0
- revengai/test/test_base_response_external_response.py +68 -0
- revengai/test/test_base_response_function_analysis_threat_score_data.py +70 -0
- revengai/test/test_base_response_function_blocks_response.py +96 -0
- revengai/test/test_base_response_function_capability_response.py +66 -0
- revengai/test/test_base_response_function_data_types.py +99 -0
- revengai/test/test_base_response_function_data_types_list.py +105 -0
- revengai/test/test_base_response_function_search_response.py +73 -0
- revengai/test/test_base_response_function_strings_response.py +69 -0
- revengai/test/test_base_response_function_task_response.py +65 -0
- revengai/test/test_base_response_function_threat_score.py +73 -0
- revengai/test/test_base_response_functions_detail_response.py +78 -0
- revengai/test/test_base_response_generate_function_data_types.py +74 -0
- revengai/test/test_base_response_generation_status_list.py +71 -0
- revengai/test/test_base_response_get_ai_decompilation_rating_response.py +64 -0
- revengai/test/test_base_response_get_ai_decompilation_task.py +118 -0
- revengai/test/test_base_response_get_public_user_response.py +65 -0
- revengai/test/test_base_response_get_user_response.py +70 -0
- revengai/test/test_base_response_list_collection_results.py +79 -0
- revengai/test/test_base_response_list_comment_response.py +73 -0
- revengai/test/test_base_response_list_die_match.py +69 -0
- revengai/test/test_base_response_list_function_box_plot_confidence.py +74 -0
- revengai/test/test_base_response_list_function_name_history.py +71 -0
- revengai/test/test_base_response_list_sbom.py +73 -0
- revengai/test/test_base_response_list_similar_functions_response.py +77 -0
- revengai/test/test_base_response_list_tag_origin_box_plot_confidence.py +76 -0
- revengai/test/test_base_response_list_user_activity_response.py +71 -0
- revengai/test/test_base_response_login_response.py +64 -0
- revengai/test/test_base_response_logs.py +64 -0
- revengai/test/test_base_response_models_response.py +66 -0
- revengai/test/test_base_response_nearest_neighbor_analysis.py +75 -0
- revengai/test/test_base_response_network_overview_response.py +80 -0
- revengai/test/test_base_response_params.py +70 -0
- revengai/test/test_base_response_process_dumps.py +76 -0
- revengai/test/test_base_response_process_registry.py +73 -0
- revengai/test/test_base_response_process_tree.py +78 -0
- revengai/test/test_base_response_queued_security_checks_task_response.py +64 -0
- revengai/test/test_base_response_recent.py +79 -0
- revengai/test/test_base_response_security_checks_response.py +76 -0
- revengai/test/test_base_response_status.py +65 -0
- revengai/test/test_base_response_str.py +63 -0
- revengai/test/test_base_response_symbols_info.py +68 -0
- revengai/test/test_base_response_tag_search_response.py +68 -0
- revengai/test/test_base_response_task_response.py +65 -0
- revengai/test/test_base_response_ttps.py +81 -0
- revengai/test/test_base_response_vulnerabilities.py +77 -0
- revengai/test/test_basic.py +72 -0
- revengai/test/test_batch_ann.py +55 -0
- revengai/test/test_batch_function_rename.py +60 -0
- revengai/test/test_batch_function_rename_record.py +54 -0
- revengai/test/test_binaries_api.py +73 -0
- revengai/test/test_binary_additional_details_data_response.py +256 -0
- revengai/test/test_binary_additional_response.py +441 -0
- revengai/test/test_binary_ann_form.py +58 -0
- revengai/test/test_binary_ann_list_response.py +90 -0
- revengai/test/test_binary_config.py +53 -0
- revengai/test/test_binary_details_response.py +90 -0
- revengai/test/test_binary_externals_response.py +68 -0
- revengai/test/test_binary_search_response.py +78 -0
- revengai/test/test_binary_search_result.py +72 -0
- revengai/test/test_binary_task_status.py +33 -0
- revengai/test/test_block.py +52 -0
- revengai/test/test_block_comments_generation_for_function_response.py +52 -0
- revengai/test/test_boundary.py +56 -0
- revengai/test/test_box_plot_confidence.py +64 -0
- revengai/test/test_callee_function_info.py +61 -0
- revengai/test/test_callees_caller_functions_response.py +87 -0
- revengai/test/test_caller_function_info.py +61 -0
- revengai/test/test_capabilities.py +66 -0
- revengai/test/test_capability.py +60 -0
- revengai/test/test_check_security_checks_task_response.py +52 -0
- revengai/test/test_child_binaries_response.py +66 -0
- revengai/test/test_code_signature_model.py +80 -0
- revengai/test/test_collection_binaries_update_request.py +56 -0
- revengai/test/test_collection_binaries_update_response.py +68 -0
- revengai/test/test_collection_binary_response.py +62 -0
- revengai/test/test_collection_count.py +53 -0
- revengai/test/test_collection_create_request.py +63 -0
- revengai/test/test_collection_list_item.py +72 -0
- revengai/test/test_collection_response.py +73 -0
- revengai/test/test_collection_response_binaries_inner.py +62 -0
- revengai/test/test_collection_scope.py +33 -0
- revengai/test/test_collection_search_response.py +84 -0
- revengai/test/test_collection_search_result.py +73 -0
- revengai/test/test_collection_tags_update_request.py +56 -0
- revengai/test/test_collection_tags_update_response.py +56 -0
- revengai/test/test_collection_update_request.py +53 -0
- revengai/test/test_collections_api.py +80 -0
- revengai/test/test_collections_count_form.py +52 -0
- revengai/test/test_comment_base.py +52 -0
- revengai/test/test_comment_response.py +65 -0
- revengai/test/test_comment_update_request.py +52 -0
- revengai/test/test_communities.py +78 -0
- revengai/test/test_community_match_percentages.py +58 -0
- revengai/test/test_confidence_api.py +59 -0
- revengai/test/test_confidence_type.py +33 -0
- revengai/test/test_config_settings.py +70 -0
- revengai/test/test_context.py +54 -0
- revengai/test/test_create_ai_decompilation_request.py +52 -0
- revengai/test/test_created.py +56 -0
- revengai/test/test_decompilation_comment_context.py +54 -0
- revengai/test/test_decompilation_response.py +56 -0
- revengai/test/test_deleted_analysis.py +52 -0
- revengai/test/test_die_match.py +58 -0
- revengai/test/test_dynamic_execution_status_input.py +33 -0
- revengai/test/test_elf_dynamic_entry.py +54 -0
- revengai/test/test_elf_import_model.py +58 -0
- revengai/test/test_elf_model.py +236 -0
- revengai/test/test_elf_relocation.py +64 -0
- revengai/test/test_elf_section.py +70 -0
- revengai/test/test_elf_security.py +60 -0
- revengai/test/test_elf_segment.py +68 -0
- revengai/test/test_elf_symbol.py +64 -0
- revengai/test/test_entrypoint_model.py +54 -0
- revengai/test/test_enumeration.py +60 -0
- revengai/test/test_error_model.py +54 -0
- revengai/test/test_export_model.py +62 -0
- revengai/test/test_exported_binary_ann_result.py +79 -0
- revengai/test/test_external_response.py +60 -0
- revengai/test/test_external_sources_api.py +73 -0
- revengai/test/test_file_format.py +33 -0
- revengai/test/test_file_hashes.py +66 -0
- revengai/test/test_file_metadata.py +74 -0
- revengai/test/test_file_options.py +33 -0
- revengai/test/test_filters.py +33 -0
- revengai/test/test_firmware_api.py +45 -0
- revengai/test/test_function_analysis_threat_score_data.py +64 -0
- revengai/test/test_function_batch_ann.py +55 -0
- revengai/test/test_function_block_destination_response.py +56 -0
- revengai/test/test_function_block_response.py +75 -0
- revengai/test/test_function_blocks_response.py +116 -0
- revengai/test/test_function_boundary.py +56 -0
- revengai/test/test_function_box_plot_confidence.py +68 -0
- revengai/test/test_function_capability_response.py +56 -0
- revengai/test/test_function_comment_create_request.py +55 -0
- revengai/test/test_function_data_types.py +88 -0
- revengai/test/test_function_data_types_list.py +132 -0
- revengai/test/test_function_data_types_list_item.py +90 -0
- revengai/test/test_function_data_types_params.py +56 -0
- revengai/test/test_function_data_types_status.py +56 -0
- revengai/test/test_function_dump.py +55 -0
- revengai/test/test_function_header.py +73 -0
- revengai/test/test_function_info_input.py +85 -0
- revengai/test/test_function_info_input_func_deps_inner.py +66 -0
- revengai/test/test_function_info_output.py +85 -0
- revengai/test/test_function_list.py +56 -0
- revengai/test/test_function_list_basic.py +53 -0
- revengai/test/test_function_local_variable_response.py +60 -0
- revengai/test/test_function_mapping_full.py +148 -0
- revengai/test/test_function_name_confidence_body.py +56 -0
- revengai/test/test_function_name_history.py +62 -0
- revengai/test/test_function_name_input.py +54 -0
- revengai/test/test_function_param_mapping.py +54 -0
- revengai/test/test_function_param_response.py +60 -0
- revengai/test/test_function_params.py +60 -0
- revengai/test/test_function_rename.py +52 -0
- revengai/test/test_function_rename_map.py +55 -0
- revengai/test/test_function_search_response.py +70 -0
- revengai/test/test_function_search_result.py +64 -0
- revengai/test/test_function_string.py +54 -0
- revengai/test/test_function_strings_response.py +62 -0
- revengai/test/test_function_task_response.py +52 -0
- revengai/test/test_function_task_status.py +33 -0
- revengai/test/test_function_threat_score.py +70 -0
- revengai/test/test_function_type_input.py +95 -0
- revengai/test/test_function_type_output.py +95 -0
- revengai/test/test_functions_ai_decompilation_api.py +108 -0
- revengai/test/test_functions_block_comments_api.py +73 -0
- revengai/test/test_functions_core_api.py +87 -0
- revengai/test/test_functions_data_types_api.py +101 -0
- revengai/test/test_functions_decompilation_api.py +80 -0
- revengai/test/test_functions_detail_response.py +74 -0
- revengai/test/test_functions_list_rename.py +62 -0
- revengai/test/test_functions_renaming_history_api.py +59 -0
- revengai/test/test_functions_threat_score_api.py +59 -0
- revengai/test/test_generate_function_data_types.py +72 -0
- revengai/test/test_generation_status_list.py +64 -0
- revengai/test/test_get_ai_decompilation_rating_response.py +52 -0
- revengai/test/test_get_ai_decompilation_task.py +157 -0
- revengai/test/test_get_public_user_response.py +54 -0
- revengai/test/test_get_user_response.py +64 -0
- revengai/test/test_global_variable.py +60 -0
- revengai/test/test_icon_model.py +52 -0
- revengai/test/test_import_model.py +66 -0
- revengai/test/test_inverse_function_map_item.py +55 -0
- revengai/test/test_inverse_string_map_item.py +54 -0
- revengai/test/test_inverse_value.py +52 -0
- revengai/test/test_isa.py +33 -0
- revengai/test/test_isa_options.py +33 -0
- revengai/test/test_list_collection_results.py +82 -0
- revengai/test/test_login_request.py +54 -0
- revengai/test/test_login_response.py +52 -0
- revengai/test/test_logs.py +52 -0
- revengai/test/test_meta_model.py +54 -0
- revengai/test/test_model_list.py +53 -0
- revengai/test/test_model_name.py +33 -0
- revengai/test/test_models_api.py +38 -0
- revengai/test/test_models_response.py +56 -0
- revengai/test/test_nearest_neighbor.py +66 -0
- revengai/test/test_network_overview_dns.py +64 -0
- revengai/test/test_network_overview_dns_answer.py +54 -0
- revengai/test/test_network_overview_metadata.py +58 -0
- revengai/test/test_network_overview_response.py +84 -0
- revengai/test/test_order.py +33 -0
- revengai/test/test_origin.py +33 -0
- revengai/test/test_pagination_model.py +56 -0
- revengai/test/test_params.py +64 -0
- revengai/test/test_pdb_debug_model.py +62 -0
- revengai/test/test_pe_model.py +220 -0
- revengai/test/test_platform.py +33 -0
- revengai/test/test_platform_options.py +33 -0
- revengai/test/test_process.py +72 -0
- revengai/test/test_process_dump.py +64 -0
- revengai/test/test_process_dump_metadata.py +56 -0
- revengai/test/test_process_dumps.py +76 -0
- revengai/test/test_process_dumps_data.py +72 -0
- revengai/test/test_process_registry.py +70 -0
- revengai/test/test_process_tree.py +80 -0
- revengai/test/test_queued_security_checks_task_response.py +52 -0
- revengai/test/test_quick_search.py +53 -0
- revengai/test/test_re_analysis_form.py +58 -0
- revengai/test/test_recent.py +82 -0
- revengai/test/test_recent_analysis.py +53 -0
- revengai/test/test_recent_analysis_form.py +53 -0
- revengai/test/test_registry.py +58 -0
- revengai/test/test_relative_binary_response.py +56 -0
- revengai/test/test_rename.py +53 -0
- revengai/test/test_sandbox_options.py +52 -0
- revengai/test/test_sbom.py +66 -0
- revengai/test/test_sbom_package.py +54 -0
- revengai/test/test_scope.py +33 -0
- revengai/test/test_scrape_third_party_config.py +51 -0
- revengai/test/test_search_api.py +59 -0
- revengai/test/test_search_binary_ids.py +50 -0
- revengai/test/test_search_form.py +56 -0
- revengai/test/test_search_function_ids.py +50 -0
- revengai/test/test_search_query.py +52 -0
- revengai/test/test_section_model.py +72 -0
- revengai/test/test_security_checks_response.py +76 -0
- revengai/test/test_security_checks_result.py +66 -0
- revengai/test/test_security_model.py +72 -0
- revengai/test/test_severity_type.py +33 -0
- revengai/test/test_similar_functions_response.py +74 -0
- revengai/test/test_single_code_certificate_model.py +62 -0
- revengai/test/test_single_code_signature_model.py +70 -0
- revengai/test/test_single_pdb_entry_model.py +56 -0
- revengai/test/test_single_section_model.py +64 -0
- revengai/test/test_stack_variable.py +61 -0
- revengai/test/test_status_input.py +33 -0
- revengai/test/test_status_output.py +54 -0
- revengai/test/test_string_functions.py +62 -0
- revengai/test/test_structure.py +71 -0
- revengai/test/test_structure_member.py +59 -0
- revengai/test/test_symbols.py +57 -0
- revengai/test/test_symbols_info.py +55 -0
- revengai/test/test_tag_confidence_body.py +60 -0
- revengai/test/test_tag_input.py +52 -0
- revengai/test/test_tag_origin_box_plot_confidence.py +72 -0
- revengai/test/test_tag_output.py +54 -0
- revengai/test/test_tag_response.py +54 -0
- revengai/test/test_tag_search_response.py +60 -0
- revengai/test/test_tag_search_result.py +54 -0
- revengai/test/test_tags.py +54 -0
- revengai/test/test_task_response.py +52 -0
- revengai/test/test_task_status.py +33 -0
- revengai/test/test_threat_score_function_body.py +53 -0
- revengai/test/test_timestamp_model.py +56 -0
- revengai/test/test_ttps.py +86 -0
- revengai/test/test_ttps_attack.py +54 -0
- revengai/test/test_ttps_data.py +82 -0
- revengai/test/test_ttps_element.py +74 -0
- revengai/test/test_ttps_occurance.py +54 -0
- revengai/test/test_type_definition.py +56 -0
- revengai/test/test_update_function_data_types.py +118 -0
- revengai/test/test_upload_success.py +54 -0
- revengai/test/test_upsert_ai_decomplation_rating_request.py +52 -0
- revengai/test/test_user_activity_response.py +62 -0
- revengai/test/test_user_boundaries.py +56 -0
- revengai/test/test_v1_api.py +185 -0
- revengai/test/test_vulnerabilities.py +78 -0
- revengai/test/test_vulnerability.py +71 -0
- revengai/test/test_vulnerability_type.py +33 -0
- revengai/test/test_workspace.py +33 -0
- revengai-1.1.1.dist-info/METADATA +470 -0
- revengai-1.1.1.dist-info/RECORD +741 -0
- revengai-1.1.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,909 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
RevEng.AI API
|
5
|
+
|
6
|
+
RevEng.AI is Similarity Search Engine for executable binaries
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.0.1
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
import warnings
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
|
+
from typing_extensions import Annotated
|
18
|
+
|
19
|
+
from pydantic import Field, StrictInt, StrictStr
|
20
|
+
from typing import Optional
|
21
|
+
from typing_extensions import Annotated
|
22
|
+
from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse
|
23
|
+
from revengai.models.check_security_checks_task_response import CheckSecurityChecksTaskResponse
|
24
|
+
from revengai.models.queued_security_checks_task_response import QueuedSecurityChecksTaskResponse
|
25
|
+
|
26
|
+
from revengai.api_client import ApiClient, RequestSerialized
|
27
|
+
from revengai.api_response import ApiResponse
|
28
|
+
from revengai.rest import RESTResponseType
|
29
|
+
|
30
|
+
|
31
|
+
class AnalysesSecurityChecksApi:
|
32
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
33
|
+
Ref: https://openapi-generator.tech
|
34
|
+
|
35
|
+
Do not edit the class manually.
|
36
|
+
"""
|
37
|
+
|
38
|
+
def __init__(self, api_client=None) -> None:
|
39
|
+
if api_client is None:
|
40
|
+
api_client = ApiClient.get_default()
|
41
|
+
self.api_client = api_client
|
42
|
+
|
43
|
+
|
44
|
+
@validate_call
|
45
|
+
def create_scurity_checks_task(
|
46
|
+
self,
|
47
|
+
analysis_id: StrictInt,
|
48
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
49
|
+
_request_timeout: Union[
|
50
|
+
None,
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
52
|
+
Tuple[
|
53
|
+
Annotated[StrictFloat, Field(gt=0)],
|
54
|
+
Annotated[StrictFloat, Field(gt=0)]
|
55
|
+
]
|
56
|
+
] = None,
|
57
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
58
|
+
_content_type: Optional[StrictStr] = None,
|
59
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
60
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
61
|
+
) -> QueuedSecurityChecksTaskResponse:
|
62
|
+
"""Queues a security check process
|
63
|
+
|
64
|
+
|
65
|
+
:param analysis_id: (required)
|
66
|
+
:type analysis_id: int
|
67
|
+
:param authorization: API Key bearer token
|
68
|
+
:type authorization: str
|
69
|
+
:param _request_timeout: timeout setting for this request. If one
|
70
|
+
number provided, it will be total request
|
71
|
+
timeout. It can also be a pair (tuple) of
|
72
|
+
(connection, read) timeouts.
|
73
|
+
:type _request_timeout: int, tuple(int, int), optional
|
74
|
+
:param _request_auth: set to override the auth_settings for an a single
|
75
|
+
request; this effectively ignores the
|
76
|
+
authentication in the spec for a single request.
|
77
|
+
:type _request_auth: dict, optional
|
78
|
+
:param _content_type: force content-type for the request.
|
79
|
+
:type _content_type: str, Optional
|
80
|
+
:param _headers: set to override the headers for a single
|
81
|
+
request; this effectively ignores the headers
|
82
|
+
in the spec for a single request.
|
83
|
+
:type _headers: dict, optional
|
84
|
+
:param _host_index: set to override the host_index for a single
|
85
|
+
request; this effectively ignores the host_index
|
86
|
+
in the spec for a single request.
|
87
|
+
:type _host_index: int, optional
|
88
|
+
:return: Returns the result object.
|
89
|
+
""" # noqa: E501
|
90
|
+
|
91
|
+
_param = self._create_scurity_checks_task_serialize(
|
92
|
+
analysis_id=analysis_id,
|
93
|
+
authorization=authorization,
|
94
|
+
_request_auth=_request_auth,
|
95
|
+
_content_type=_content_type,
|
96
|
+
_headers=_headers,
|
97
|
+
_host_index=_host_index
|
98
|
+
)
|
99
|
+
|
100
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
101
|
+
'202': "QueuedSecurityChecksTaskResponse",
|
102
|
+
'422': "BaseResponse",
|
103
|
+
'409': "ErrorModel",
|
104
|
+
}
|
105
|
+
response_data = self.api_client.call_api(
|
106
|
+
*_param,
|
107
|
+
_request_timeout=_request_timeout
|
108
|
+
)
|
109
|
+
response_data.read()
|
110
|
+
return self.api_client.response_deserialize(
|
111
|
+
response_data=response_data,
|
112
|
+
response_types_map=_response_types_map,
|
113
|
+
).data
|
114
|
+
|
115
|
+
|
116
|
+
@validate_call
|
117
|
+
def create_scurity_checks_task_with_http_info(
|
118
|
+
self,
|
119
|
+
analysis_id: StrictInt,
|
120
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
121
|
+
_request_timeout: Union[
|
122
|
+
None,
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
124
|
+
Tuple[
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
127
|
+
]
|
128
|
+
] = None,
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
133
|
+
) -> ApiResponse[QueuedSecurityChecksTaskResponse]:
|
134
|
+
"""Queues a security check process
|
135
|
+
|
136
|
+
|
137
|
+
:param analysis_id: (required)
|
138
|
+
:type analysis_id: int
|
139
|
+
:param authorization: API Key bearer token
|
140
|
+
:type authorization: str
|
141
|
+
:param _request_timeout: timeout setting for this request. If one
|
142
|
+
number provided, it will be total request
|
143
|
+
timeout. It can also be a pair (tuple) of
|
144
|
+
(connection, read) timeouts.
|
145
|
+
:type _request_timeout: int, tuple(int, int), optional
|
146
|
+
:param _request_auth: set to override the auth_settings for an a single
|
147
|
+
request; this effectively ignores the
|
148
|
+
authentication in the spec for a single request.
|
149
|
+
:type _request_auth: dict, optional
|
150
|
+
:param _content_type: force content-type for the request.
|
151
|
+
:type _content_type: str, Optional
|
152
|
+
:param _headers: set to override the headers for a single
|
153
|
+
request; this effectively ignores the headers
|
154
|
+
in the spec for a single request.
|
155
|
+
:type _headers: dict, optional
|
156
|
+
:param _host_index: set to override the host_index for a single
|
157
|
+
request; this effectively ignores the host_index
|
158
|
+
in the spec for a single request.
|
159
|
+
:type _host_index: int, optional
|
160
|
+
:return: Returns the result object.
|
161
|
+
""" # noqa: E501
|
162
|
+
|
163
|
+
_param = self._create_scurity_checks_task_serialize(
|
164
|
+
analysis_id=analysis_id,
|
165
|
+
authorization=authorization,
|
166
|
+
_request_auth=_request_auth,
|
167
|
+
_content_type=_content_type,
|
168
|
+
_headers=_headers,
|
169
|
+
_host_index=_host_index
|
170
|
+
)
|
171
|
+
|
172
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
173
|
+
'202': "QueuedSecurityChecksTaskResponse",
|
174
|
+
'422': "BaseResponse",
|
175
|
+
'409': "ErrorModel",
|
176
|
+
}
|
177
|
+
response_data = self.api_client.call_api(
|
178
|
+
*_param,
|
179
|
+
_request_timeout=_request_timeout
|
180
|
+
)
|
181
|
+
response_data.read()
|
182
|
+
return self.api_client.response_deserialize(
|
183
|
+
response_data=response_data,
|
184
|
+
response_types_map=_response_types_map,
|
185
|
+
)
|
186
|
+
|
187
|
+
|
188
|
+
@validate_call
|
189
|
+
def create_scurity_checks_task_without_preload_content(
|
190
|
+
self,
|
191
|
+
analysis_id: StrictInt,
|
192
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
193
|
+
_request_timeout: Union[
|
194
|
+
None,
|
195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
196
|
+
Tuple[
|
197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
198
|
+
Annotated[StrictFloat, Field(gt=0)]
|
199
|
+
]
|
200
|
+
] = None,
|
201
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
202
|
+
_content_type: Optional[StrictStr] = None,
|
203
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
204
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
205
|
+
) -> RESTResponseType:
|
206
|
+
"""Queues a security check process
|
207
|
+
|
208
|
+
|
209
|
+
:param analysis_id: (required)
|
210
|
+
:type analysis_id: int
|
211
|
+
:param authorization: API Key bearer token
|
212
|
+
:type authorization: str
|
213
|
+
:param _request_timeout: timeout setting for this request. If one
|
214
|
+
number provided, it will be total request
|
215
|
+
timeout. It can also be a pair (tuple) of
|
216
|
+
(connection, read) timeouts.
|
217
|
+
:type _request_timeout: int, tuple(int, int), optional
|
218
|
+
:param _request_auth: set to override the auth_settings for an a single
|
219
|
+
request; this effectively ignores the
|
220
|
+
authentication in the spec for a single request.
|
221
|
+
:type _request_auth: dict, optional
|
222
|
+
:param _content_type: force content-type for the request.
|
223
|
+
:type _content_type: str, Optional
|
224
|
+
:param _headers: set to override the headers for a single
|
225
|
+
request; this effectively ignores the headers
|
226
|
+
in the spec for a single request.
|
227
|
+
:type _headers: dict, optional
|
228
|
+
:param _host_index: set to override the host_index for a single
|
229
|
+
request; this effectively ignores the host_index
|
230
|
+
in the spec for a single request.
|
231
|
+
:type _host_index: int, optional
|
232
|
+
:return: Returns the result object.
|
233
|
+
""" # noqa: E501
|
234
|
+
|
235
|
+
_param = self._create_scurity_checks_task_serialize(
|
236
|
+
analysis_id=analysis_id,
|
237
|
+
authorization=authorization,
|
238
|
+
_request_auth=_request_auth,
|
239
|
+
_content_type=_content_type,
|
240
|
+
_headers=_headers,
|
241
|
+
_host_index=_host_index
|
242
|
+
)
|
243
|
+
|
244
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
245
|
+
'202': "QueuedSecurityChecksTaskResponse",
|
246
|
+
'422': "BaseResponse",
|
247
|
+
'409': "ErrorModel",
|
248
|
+
}
|
249
|
+
response_data = self.api_client.call_api(
|
250
|
+
*_param,
|
251
|
+
_request_timeout=_request_timeout
|
252
|
+
)
|
253
|
+
return response_data.response
|
254
|
+
|
255
|
+
|
256
|
+
def _create_scurity_checks_task_serialize(
|
257
|
+
self,
|
258
|
+
analysis_id,
|
259
|
+
authorization,
|
260
|
+
_request_auth,
|
261
|
+
_content_type,
|
262
|
+
_headers,
|
263
|
+
_host_index,
|
264
|
+
) -> RequestSerialized:
|
265
|
+
|
266
|
+
_host = None
|
267
|
+
|
268
|
+
_collection_formats: Dict[str, str] = {
|
269
|
+
}
|
270
|
+
|
271
|
+
_path_params: Dict[str, str] = {}
|
272
|
+
_query_params: List[Tuple[str, str]] = []
|
273
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
274
|
+
_form_params: List[Tuple[str, str]] = []
|
275
|
+
_files: Dict[
|
276
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
277
|
+
] = {}
|
278
|
+
_body_params: Optional[bytes] = None
|
279
|
+
|
280
|
+
# process the path parameters
|
281
|
+
if analysis_id is not None:
|
282
|
+
_path_params['analysis_id'] = analysis_id
|
283
|
+
# process the query parameters
|
284
|
+
# process the header parameters
|
285
|
+
if authorization is not None:
|
286
|
+
_header_params['authorization'] = authorization
|
287
|
+
# process the form parameters
|
288
|
+
# process the body parameter
|
289
|
+
|
290
|
+
|
291
|
+
# set the HTTP header `Accept`
|
292
|
+
if 'Accept' not in _header_params:
|
293
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
294
|
+
[
|
295
|
+
'application/json'
|
296
|
+
]
|
297
|
+
)
|
298
|
+
|
299
|
+
|
300
|
+
# authentication setting
|
301
|
+
_auth_settings: List[str] = [
|
302
|
+
'APIKey'
|
303
|
+
]
|
304
|
+
|
305
|
+
return self.api_client.param_serialize(
|
306
|
+
method='POST',
|
307
|
+
resource_path='/v2/analyses/{analysis_id}/security-checks',
|
308
|
+
path_params=_path_params,
|
309
|
+
query_params=_query_params,
|
310
|
+
header_params=_header_params,
|
311
|
+
body=_body_params,
|
312
|
+
post_params=_form_params,
|
313
|
+
files=_files,
|
314
|
+
auth_settings=_auth_settings,
|
315
|
+
collection_formats=_collection_formats,
|
316
|
+
_host=_host,
|
317
|
+
_request_auth=_request_auth
|
318
|
+
)
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
@validate_call
|
324
|
+
def get_security_checks(
|
325
|
+
self,
|
326
|
+
analysis_id: StrictInt,
|
327
|
+
page: Annotated[int, Field(le=100000, strict=True, ge=1, description="The page number to retrieve.")],
|
328
|
+
page_size: Annotated[int, Field(strict=True, ge=1, description="Number of items per page.")],
|
329
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
330
|
+
_request_timeout: Union[
|
331
|
+
None,
|
332
|
+
Annotated[StrictFloat, Field(gt=0)],
|
333
|
+
Tuple[
|
334
|
+
Annotated[StrictFloat, Field(gt=0)],
|
335
|
+
Annotated[StrictFloat, Field(gt=0)]
|
336
|
+
]
|
337
|
+
] = None,
|
338
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
339
|
+
_content_type: Optional[StrictStr] = None,
|
340
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
341
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
342
|
+
) -> BaseResponseSecurityChecksResponse:
|
343
|
+
"""Get Security Checks
|
344
|
+
|
345
|
+
Retrieve security checks results with pagination.
|
346
|
+
|
347
|
+
:param analysis_id: (required)
|
348
|
+
:type analysis_id: int
|
349
|
+
:param page: The page number to retrieve. (required)
|
350
|
+
:type page: int
|
351
|
+
:param page_size: Number of items per page. (required)
|
352
|
+
:type page_size: int
|
353
|
+
:param authorization: API Key bearer token
|
354
|
+
:type authorization: str
|
355
|
+
:param _request_timeout: timeout setting for this request. If one
|
356
|
+
number provided, it will be total request
|
357
|
+
timeout. It can also be a pair (tuple) of
|
358
|
+
(connection, read) timeouts.
|
359
|
+
:type _request_timeout: int, tuple(int, int), optional
|
360
|
+
:param _request_auth: set to override the auth_settings for an a single
|
361
|
+
request; this effectively ignores the
|
362
|
+
authentication in the spec for a single request.
|
363
|
+
:type _request_auth: dict, optional
|
364
|
+
:param _content_type: force content-type for the request.
|
365
|
+
:type _content_type: str, Optional
|
366
|
+
:param _headers: set to override the headers for a single
|
367
|
+
request; this effectively ignores the headers
|
368
|
+
in the spec for a single request.
|
369
|
+
:type _headers: dict, optional
|
370
|
+
:param _host_index: set to override the host_index for a single
|
371
|
+
request; this effectively ignores the host_index
|
372
|
+
in the spec for a single request.
|
373
|
+
:type _host_index: int, optional
|
374
|
+
:return: Returns the result object.
|
375
|
+
""" # noqa: E501
|
376
|
+
|
377
|
+
_param = self._get_security_checks_serialize(
|
378
|
+
analysis_id=analysis_id,
|
379
|
+
page=page,
|
380
|
+
page_size=page_size,
|
381
|
+
authorization=authorization,
|
382
|
+
_request_auth=_request_auth,
|
383
|
+
_content_type=_content_type,
|
384
|
+
_headers=_headers,
|
385
|
+
_host_index=_host_index
|
386
|
+
)
|
387
|
+
|
388
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
389
|
+
'200': "BaseResponseSecurityChecksResponse",
|
390
|
+
'422': "BaseResponse",
|
391
|
+
}
|
392
|
+
response_data = self.api_client.call_api(
|
393
|
+
*_param,
|
394
|
+
_request_timeout=_request_timeout
|
395
|
+
)
|
396
|
+
response_data.read()
|
397
|
+
return self.api_client.response_deserialize(
|
398
|
+
response_data=response_data,
|
399
|
+
response_types_map=_response_types_map,
|
400
|
+
).data
|
401
|
+
|
402
|
+
|
403
|
+
@validate_call
|
404
|
+
def get_security_checks_with_http_info(
|
405
|
+
self,
|
406
|
+
analysis_id: StrictInt,
|
407
|
+
page: Annotated[int, Field(le=100000, strict=True, ge=1, description="The page number to retrieve.")],
|
408
|
+
page_size: Annotated[int, Field(strict=True, ge=1, description="Number of items per page.")],
|
409
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
410
|
+
_request_timeout: Union[
|
411
|
+
None,
|
412
|
+
Annotated[StrictFloat, Field(gt=0)],
|
413
|
+
Tuple[
|
414
|
+
Annotated[StrictFloat, Field(gt=0)],
|
415
|
+
Annotated[StrictFloat, Field(gt=0)]
|
416
|
+
]
|
417
|
+
] = None,
|
418
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
419
|
+
_content_type: Optional[StrictStr] = None,
|
420
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
421
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
422
|
+
) -> ApiResponse[BaseResponseSecurityChecksResponse]:
|
423
|
+
"""Get Security Checks
|
424
|
+
|
425
|
+
Retrieve security checks results with pagination.
|
426
|
+
|
427
|
+
:param analysis_id: (required)
|
428
|
+
:type analysis_id: int
|
429
|
+
:param page: The page number to retrieve. (required)
|
430
|
+
:type page: int
|
431
|
+
:param page_size: Number of items per page. (required)
|
432
|
+
:type page_size: int
|
433
|
+
:param authorization: API Key bearer token
|
434
|
+
:type authorization: str
|
435
|
+
:param _request_timeout: timeout setting for this request. If one
|
436
|
+
number provided, it will be total request
|
437
|
+
timeout. It can also be a pair (tuple) of
|
438
|
+
(connection, read) timeouts.
|
439
|
+
:type _request_timeout: int, tuple(int, int), optional
|
440
|
+
:param _request_auth: set to override the auth_settings for an a single
|
441
|
+
request; this effectively ignores the
|
442
|
+
authentication in the spec for a single request.
|
443
|
+
:type _request_auth: dict, optional
|
444
|
+
:param _content_type: force content-type for the request.
|
445
|
+
:type _content_type: str, Optional
|
446
|
+
:param _headers: set to override the headers for a single
|
447
|
+
request; this effectively ignores the headers
|
448
|
+
in the spec for a single request.
|
449
|
+
:type _headers: dict, optional
|
450
|
+
:param _host_index: set to override the host_index for a single
|
451
|
+
request; this effectively ignores the host_index
|
452
|
+
in the spec for a single request.
|
453
|
+
:type _host_index: int, optional
|
454
|
+
:return: Returns the result object.
|
455
|
+
""" # noqa: E501
|
456
|
+
|
457
|
+
_param = self._get_security_checks_serialize(
|
458
|
+
analysis_id=analysis_id,
|
459
|
+
page=page,
|
460
|
+
page_size=page_size,
|
461
|
+
authorization=authorization,
|
462
|
+
_request_auth=_request_auth,
|
463
|
+
_content_type=_content_type,
|
464
|
+
_headers=_headers,
|
465
|
+
_host_index=_host_index
|
466
|
+
)
|
467
|
+
|
468
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
469
|
+
'200': "BaseResponseSecurityChecksResponse",
|
470
|
+
'422': "BaseResponse",
|
471
|
+
}
|
472
|
+
response_data = self.api_client.call_api(
|
473
|
+
*_param,
|
474
|
+
_request_timeout=_request_timeout
|
475
|
+
)
|
476
|
+
response_data.read()
|
477
|
+
return self.api_client.response_deserialize(
|
478
|
+
response_data=response_data,
|
479
|
+
response_types_map=_response_types_map,
|
480
|
+
)
|
481
|
+
|
482
|
+
|
483
|
+
@validate_call
|
484
|
+
def get_security_checks_without_preload_content(
|
485
|
+
self,
|
486
|
+
analysis_id: StrictInt,
|
487
|
+
page: Annotated[int, Field(le=100000, strict=True, ge=1, description="The page number to retrieve.")],
|
488
|
+
page_size: Annotated[int, Field(strict=True, ge=1, description="Number of items per page.")],
|
489
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
490
|
+
_request_timeout: Union[
|
491
|
+
None,
|
492
|
+
Annotated[StrictFloat, Field(gt=0)],
|
493
|
+
Tuple[
|
494
|
+
Annotated[StrictFloat, Field(gt=0)],
|
495
|
+
Annotated[StrictFloat, Field(gt=0)]
|
496
|
+
]
|
497
|
+
] = None,
|
498
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
499
|
+
_content_type: Optional[StrictStr] = None,
|
500
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
501
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
502
|
+
) -> RESTResponseType:
|
503
|
+
"""Get Security Checks
|
504
|
+
|
505
|
+
Retrieve security checks results with pagination.
|
506
|
+
|
507
|
+
:param analysis_id: (required)
|
508
|
+
:type analysis_id: int
|
509
|
+
:param page: The page number to retrieve. (required)
|
510
|
+
:type page: int
|
511
|
+
:param page_size: Number of items per page. (required)
|
512
|
+
:type page_size: int
|
513
|
+
:param authorization: API Key bearer token
|
514
|
+
:type authorization: str
|
515
|
+
:param _request_timeout: timeout setting for this request. If one
|
516
|
+
number provided, it will be total request
|
517
|
+
timeout. It can also be a pair (tuple) of
|
518
|
+
(connection, read) timeouts.
|
519
|
+
:type _request_timeout: int, tuple(int, int), optional
|
520
|
+
:param _request_auth: set to override the auth_settings for an a single
|
521
|
+
request; this effectively ignores the
|
522
|
+
authentication in the spec for a single request.
|
523
|
+
:type _request_auth: dict, optional
|
524
|
+
:param _content_type: force content-type for the request.
|
525
|
+
:type _content_type: str, Optional
|
526
|
+
:param _headers: set to override the headers for a single
|
527
|
+
request; this effectively ignores the headers
|
528
|
+
in the spec for a single request.
|
529
|
+
:type _headers: dict, optional
|
530
|
+
:param _host_index: set to override the host_index for a single
|
531
|
+
request; this effectively ignores the host_index
|
532
|
+
in the spec for a single request.
|
533
|
+
:type _host_index: int, optional
|
534
|
+
:return: Returns the result object.
|
535
|
+
""" # noqa: E501
|
536
|
+
|
537
|
+
_param = self._get_security_checks_serialize(
|
538
|
+
analysis_id=analysis_id,
|
539
|
+
page=page,
|
540
|
+
page_size=page_size,
|
541
|
+
authorization=authorization,
|
542
|
+
_request_auth=_request_auth,
|
543
|
+
_content_type=_content_type,
|
544
|
+
_headers=_headers,
|
545
|
+
_host_index=_host_index
|
546
|
+
)
|
547
|
+
|
548
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
549
|
+
'200': "BaseResponseSecurityChecksResponse",
|
550
|
+
'422': "BaseResponse",
|
551
|
+
}
|
552
|
+
response_data = self.api_client.call_api(
|
553
|
+
*_param,
|
554
|
+
_request_timeout=_request_timeout
|
555
|
+
)
|
556
|
+
return response_data.response
|
557
|
+
|
558
|
+
|
559
|
+
def _get_security_checks_serialize(
|
560
|
+
self,
|
561
|
+
analysis_id,
|
562
|
+
page,
|
563
|
+
page_size,
|
564
|
+
authorization,
|
565
|
+
_request_auth,
|
566
|
+
_content_type,
|
567
|
+
_headers,
|
568
|
+
_host_index,
|
569
|
+
) -> RequestSerialized:
|
570
|
+
|
571
|
+
_host = None
|
572
|
+
|
573
|
+
_collection_formats: Dict[str, str] = {
|
574
|
+
}
|
575
|
+
|
576
|
+
_path_params: Dict[str, str] = {}
|
577
|
+
_query_params: List[Tuple[str, str]] = []
|
578
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
579
|
+
_form_params: List[Tuple[str, str]] = []
|
580
|
+
_files: Dict[
|
581
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
582
|
+
] = {}
|
583
|
+
_body_params: Optional[bytes] = None
|
584
|
+
|
585
|
+
# process the path parameters
|
586
|
+
if analysis_id is not None:
|
587
|
+
_path_params['analysis_id'] = analysis_id
|
588
|
+
# process the query parameters
|
589
|
+
if page is not None:
|
590
|
+
|
591
|
+
_query_params.append(('page', page))
|
592
|
+
|
593
|
+
if page_size is not None:
|
594
|
+
|
595
|
+
_query_params.append(('page_size', page_size))
|
596
|
+
|
597
|
+
# process the header parameters
|
598
|
+
if authorization is not None:
|
599
|
+
_header_params['authorization'] = authorization
|
600
|
+
# process the form parameters
|
601
|
+
# process the body parameter
|
602
|
+
|
603
|
+
|
604
|
+
# set the HTTP header `Accept`
|
605
|
+
if 'Accept' not in _header_params:
|
606
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
607
|
+
[
|
608
|
+
'application/json'
|
609
|
+
]
|
610
|
+
)
|
611
|
+
|
612
|
+
|
613
|
+
# authentication setting
|
614
|
+
_auth_settings: List[str] = [
|
615
|
+
'APIKey'
|
616
|
+
]
|
617
|
+
|
618
|
+
return self.api_client.param_serialize(
|
619
|
+
method='GET',
|
620
|
+
resource_path='/v2/analyses/{analysis_id}/security-checks',
|
621
|
+
path_params=_path_params,
|
622
|
+
query_params=_query_params,
|
623
|
+
header_params=_header_params,
|
624
|
+
body=_body_params,
|
625
|
+
post_params=_form_params,
|
626
|
+
files=_files,
|
627
|
+
auth_settings=_auth_settings,
|
628
|
+
collection_formats=_collection_formats,
|
629
|
+
_host=_host,
|
630
|
+
_request_auth=_request_auth
|
631
|
+
)
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
@validate_call
|
637
|
+
def get_security_checks_task_status(
|
638
|
+
self,
|
639
|
+
analysis_id: StrictInt,
|
640
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
641
|
+
_request_timeout: Union[
|
642
|
+
None,
|
643
|
+
Annotated[StrictFloat, Field(gt=0)],
|
644
|
+
Tuple[
|
645
|
+
Annotated[StrictFloat, Field(gt=0)],
|
646
|
+
Annotated[StrictFloat, Field(gt=0)]
|
647
|
+
]
|
648
|
+
] = None,
|
649
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
650
|
+
_content_type: Optional[StrictStr] = None,
|
651
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
652
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
653
|
+
) -> CheckSecurityChecksTaskResponse:
|
654
|
+
"""Check the status of a security check process
|
655
|
+
|
656
|
+
|
657
|
+
:param analysis_id: (required)
|
658
|
+
:type analysis_id: int
|
659
|
+
:param authorization: API Key bearer token
|
660
|
+
:type authorization: str
|
661
|
+
:param _request_timeout: timeout setting for this request. If one
|
662
|
+
number provided, it will be total request
|
663
|
+
timeout. It can also be a pair (tuple) of
|
664
|
+
(connection, read) timeouts.
|
665
|
+
:type _request_timeout: int, tuple(int, int), optional
|
666
|
+
:param _request_auth: set to override the auth_settings for an a single
|
667
|
+
request; this effectively ignores the
|
668
|
+
authentication in the spec for a single request.
|
669
|
+
:type _request_auth: dict, optional
|
670
|
+
:param _content_type: force content-type for the request.
|
671
|
+
:type _content_type: str, Optional
|
672
|
+
:param _headers: set to override the headers for a single
|
673
|
+
request; this effectively ignores the headers
|
674
|
+
in the spec for a single request.
|
675
|
+
:type _headers: dict, optional
|
676
|
+
:param _host_index: set to override the host_index for a single
|
677
|
+
request; this effectively ignores the host_index
|
678
|
+
in the spec for a single request.
|
679
|
+
:type _host_index: int, optional
|
680
|
+
:return: Returns the result object.
|
681
|
+
""" # noqa: E501
|
682
|
+
|
683
|
+
_param = self._get_security_checks_task_status_serialize(
|
684
|
+
analysis_id=analysis_id,
|
685
|
+
authorization=authorization,
|
686
|
+
_request_auth=_request_auth,
|
687
|
+
_content_type=_content_type,
|
688
|
+
_headers=_headers,
|
689
|
+
_host_index=_host_index
|
690
|
+
)
|
691
|
+
|
692
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
693
|
+
'200': "CheckSecurityChecksTaskResponse",
|
694
|
+
'422': "BaseResponse",
|
695
|
+
}
|
696
|
+
response_data = self.api_client.call_api(
|
697
|
+
*_param,
|
698
|
+
_request_timeout=_request_timeout
|
699
|
+
)
|
700
|
+
response_data.read()
|
701
|
+
return self.api_client.response_deserialize(
|
702
|
+
response_data=response_data,
|
703
|
+
response_types_map=_response_types_map,
|
704
|
+
).data
|
705
|
+
|
706
|
+
|
707
|
+
@validate_call
|
708
|
+
def get_security_checks_task_status_with_http_info(
|
709
|
+
self,
|
710
|
+
analysis_id: StrictInt,
|
711
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
712
|
+
_request_timeout: Union[
|
713
|
+
None,
|
714
|
+
Annotated[StrictFloat, Field(gt=0)],
|
715
|
+
Tuple[
|
716
|
+
Annotated[StrictFloat, Field(gt=0)],
|
717
|
+
Annotated[StrictFloat, Field(gt=0)]
|
718
|
+
]
|
719
|
+
] = None,
|
720
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
721
|
+
_content_type: Optional[StrictStr] = None,
|
722
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
723
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
724
|
+
) -> ApiResponse[CheckSecurityChecksTaskResponse]:
|
725
|
+
"""Check the status of a security check process
|
726
|
+
|
727
|
+
|
728
|
+
:param analysis_id: (required)
|
729
|
+
:type analysis_id: int
|
730
|
+
:param authorization: API Key bearer token
|
731
|
+
:type authorization: str
|
732
|
+
:param _request_timeout: timeout setting for this request. If one
|
733
|
+
number provided, it will be total request
|
734
|
+
timeout. It can also be a pair (tuple) of
|
735
|
+
(connection, read) timeouts.
|
736
|
+
:type _request_timeout: int, tuple(int, int), optional
|
737
|
+
:param _request_auth: set to override the auth_settings for an a single
|
738
|
+
request; this effectively ignores the
|
739
|
+
authentication in the spec for a single request.
|
740
|
+
:type _request_auth: dict, optional
|
741
|
+
:param _content_type: force content-type for the request.
|
742
|
+
:type _content_type: str, Optional
|
743
|
+
:param _headers: set to override the headers for a single
|
744
|
+
request; this effectively ignores the headers
|
745
|
+
in the spec for a single request.
|
746
|
+
:type _headers: dict, optional
|
747
|
+
:param _host_index: set to override the host_index for a single
|
748
|
+
request; this effectively ignores the host_index
|
749
|
+
in the spec for a single request.
|
750
|
+
:type _host_index: int, optional
|
751
|
+
:return: Returns the result object.
|
752
|
+
""" # noqa: E501
|
753
|
+
|
754
|
+
_param = self._get_security_checks_task_status_serialize(
|
755
|
+
analysis_id=analysis_id,
|
756
|
+
authorization=authorization,
|
757
|
+
_request_auth=_request_auth,
|
758
|
+
_content_type=_content_type,
|
759
|
+
_headers=_headers,
|
760
|
+
_host_index=_host_index
|
761
|
+
)
|
762
|
+
|
763
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
764
|
+
'200': "CheckSecurityChecksTaskResponse",
|
765
|
+
'422': "BaseResponse",
|
766
|
+
}
|
767
|
+
response_data = self.api_client.call_api(
|
768
|
+
*_param,
|
769
|
+
_request_timeout=_request_timeout
|
770
|
+
)
|
771
|
+
response_data.read()
|
772
|
+
return self.api_client.response_deserialize(
|
773
|
+
response_data=response_data,
|
774
|
+
response_types_map=_response_types_map,
|
775
|
+
)
|
776
|
+
|
777
|
+
|
778
|
+
@validate_call
|
779
|
+
def get_security_checks_task_status_without_preload_content(
|
780
|
+
self,
|
781
|
+
analysis_id: StrictInt,
|
782
|
+
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
783
|
+
_request_timeout: Union[
|
784
|
+
None,
|
785
|
+
Annotated[StrictFloat, Field(gt=0)],
|
786
|
+
Tuple[
|
787
|
+
Annotated[StrictFloat, Field(gt=0)],
|
788
|
+
Annotated[StrictFloat, Field(gt=0)]
|
789
|
+
]
|
790
|
+
] = None,
|
791
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
792
|
+
_content_type: Optional[StrictStr] = None,
|
793
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
794
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
795
|
+
) -> RESTResponseType:
|
796
|
+
"""Check the status of a security check process
|
797
|
+
|
798
|
+
|
799
|
+
:param analysis_id: (required)
|
800
|
+
:type analysis_id: int
|
801
|
+
:param authorization: API Key bearer token
|
802
|
+
:type authorization: str
|
803
|
+
:param _request_timeout: timeout setting for this request. If one
|
804
|
+
number provided, it will be total request
|
805
|
+
timeout. It can also be a pair (tuple) of
|
806
|
+
(connection, read) timeouts.
|
807
|
+
:type _request_timeout: int, tuple(int, int), optional
|
808
|
+
:param _request_auth: set to override the auth_settings for an a single
|
809
|
+
request; this effectively ignores the
|
810
|
+
authentication in the spec for a single request.
|
811
|
+
:type _request_auth: dict, optional
|
812
|
+
:param _content_type: force content-type for the request.
|
813
|
+
:type _content_type: str, Optional
|
814
|
+
:param _headers: set to override the headers for a single
|
815
|
+
request; this effectively ignores the headers
|
816
|
+
in the spec for a single request.
|
817
|
+
:type _headers: dict, optional
|
818
|
+
:param _host_index: set to override the host_index for a single
|
819
|
+
request; this effectively ignores the host_index
|
820
|
+
in the spec for a single request.
|
821
|
+
:type _host_index: int, optional
|
822
|
+
:return: Returns the result object.
|
823
|
+
""" # noqa: E501
|
824
|
+
|
825
|
+
_param = self._get_security_checks_task_status_serialize(
|
826
|
+
analysis_id=analysis_id,
|
827
|
+
authorization=authorization,
|
828
|
+
_request_auth=_request_auth,
|
829
|
+
_content_type=_content_type,
|
830
|
+
_headers=_headers,
|
831
|
+
_host_index=_host_index
|
832
|
+
)
|
833
|
+
|
834
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
835
|
+
'200': "CheckSecurityChecksTaskResponse",
|
836
|
+
'422': "BaseResponse",
|
837
|
+
}
|
838
|
+
response_data = self.api_client.call_api(
|
839
|
+
*_param,
|
840
|
+
_request_timeout=_request_timeout
|
841
|
+
)
|
842
|
+
return response_data.response
|
843
|
+
|
844
|
+
|
845
|
+
def _get_security_checks_task_status_serialize(
|
846
|
+
self,
|
847
|
+
analysis_id,
|
848
|
+
authorization,
|
849
|
+
_request_auth,
|
850
|
+
_content_type,
|
851
|
+
_headers,
|
852
|
+
_host_index,
|
853
|
+
) -> RequestSerialized:
|
854
|
+
|
855
|
+
_host = None
|
856
|
+
|
857
|
+
_collection_formats: Dict[str, str] = {
|
858
|
+
}
|
859
|
+
|
860
|
+
_path_params: Dict[str, str] = {}
|
861
|
+
_query_params: List[Tuple[str, str]] = []
|
862
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
863
|
+
_form_params: List[Tuple[str, str]] = []
|
864
|
+
_files: Dict[
|
865
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
866
|
+
] = {}
|
867
|
+
_body_params: Optional[bytes] = None
|
868
|
+
|
869
|
+
# process the path parameters
|
870
|
+
if analysis_id is not None:
|
871
|
+
_path_params['analysis_id'] = analysis_id
|
872
|
+
# process the query parameters
|
873
|
+
# process the header parameters
|
874
|
+
if authorization is not None:
|
875
|
+
_header_params['authorization'] = authorization
|
876
|
+
# process the form parameters
|
877
|
+
# process the body parameter
|
878
|
+
|
879
|
+
|
880
|
+
# set the HTTP header `Accept`
|
881
|
+
if 'Accept' not in _header_params:
|
882
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
883
|
+
[
|
884
|
+
'application/json'
|
885
|
+
]
|
886
|
+
)
|
887
|
+
|
888
|
+
|
889
|
+
# authentication setting
|
890
|
+
_auth_settings: List[str] = [
|
891
|
+
'APIKey'
|
892
|
+
]
|
893
|
+
|
894
|
+
return self.api_client.param_serialize(
|
895
|
+
method='GET',
|
896
|
+
resource_path='/v2/analyses/{analysis_id}/security-checks/status',
|
897
|
+
path_params=_path_params,
|
898
|
+
query_params=_query_params,
|
899
|
+
header_params=_header_params,
|
900
|
+
body=_body_params,
|
901
|
+
post_params=_form_params,
|
902
|
+
files=_files,
|
903
|
+
auth_settings=_auth_settings,
|
904
|
+
collection_formats=_collection_formats,
|
905
|
+
_host=_host,
|
906
|
+
_request_auth=_request_auth
|
907
|
+
)
|
908
|
+
|
909
|
+
|