From 20b8c544f79e17aa37449f297851bfcad2d4ebfa Mon Sep 17 00:00:00 2001 From: ramanan-ravi Date: Thu, 21 Nov 2024 23:55:55 +0530 Subject: [PATCH] Update sdk to v2.5.0 --- openapi_config.yaml | 2 +- pyproject.toml | 2 +- .../attach_agent_filesystem_config.py | 16 +- .../attach_agent_network_config.py | 16 +- .../attach_agent_policy_config.py | 16 +- .../attach_agent_process_config.py | 16 +- .../attach_agent_quarantine_config.py | 16 +- .../get_agent_filesystem_config.py | 8 +- .../agent_config/get_agent_network_config.py | 8 +- .../agent_config/get_agent_policy_config.py | 8 +- .../agent_config/get_agent_process_config.py | 8 +- .../get_agent_quarantine_config.py | 8 +- .../get_agent_threat_intel_config.py | 8 +- .../register_agent_filesystem_config.py | 20 +- .../register_agent_network_config.py | 28 +- .../register_agent_policy_config.py | 44 +- .../register_agent_process_config.py | 40 +- .../register_agent_quarantine_config.py | 32 +- .../register_threat_intel_config.py | 36 +- .../disable_filesystem_tracer.py | 16 +- .../enable_filesystem_tracer.py | 16 +- .../disable_cloud_network_tracer.py | 16 +- .../agent_network/disable_network_tracer.py | 16 +- .../enable_cloud_network_tracer.py | 20 +- .../agent_network/enable_network_tracer.py | 16 +- .../agent_process/disable_process_tracer.py | 16 +- .../agent_process/enable_process_tracer.py | 16 +- threatstryker/api/alert/delete_alert.py | 8 +- .../api/alert/get_mitre_attack_matrix.py | 8 +- threatstryker/api/alert/mask_alert.py | 8 +- threatstryker/api/alert/notify_alert.py | 8 +- threatstryker/api/alert/unmask_alert.py | 8 +- .../api/authentication/auth_token.py | 8 +- .../api/authentication/create_sso_provider.py | 16 +- threatstryker/api/authentication/login.py | 8 +- .../api/authentication/update_sso_provider.py | 16 +- .../api/authentication/verify_sso_auth.py | 12 +- .../cloud_nodes/delete_cloud_node_account.py | 8 +- .../cloud_nodes/list_cloud_node_account.py | 12 +- .../cloud_nodes/refresh_cloud_node_account.py | 8 +- .../register_cloud_node_account.py | 36 +- .../count_results_cloud_compliance_scan.py | 40 +- .../list_cloud_compliance_scan.py | 44 +- .../results_cloud_compliance_scan.py | 40 +- .../status_cloud_compliance_scan.py | 12 +- .../completion/complete_api_endpoints_info.py | 44 +- .../api/completion/complete_cloud_account.py | 44 +- .../completion/complete_cloud_compliance.py | 44 +- .../completion/complete_cloud_resources.py | 44 +- .../completion/complete_compliance_info.py | 44 +- .../api/completion/complete_container_info.py | 44 +- .../api/completion/complete_host_info.py | 44 +- .../api/completion/complete_pod_info.py | 44 +- .../api/completion/complete_process_info.py | 44 +- .../completion/complete_vulnerability_info.py | 44 +- .../count_results_compliance_scan.py | 40 +- .../group_results_cloud_compliance.py | 40 +- .../compliance/group_results_compliance.py | 40 +- .../api/compliance/list_compliance_scan.py | 44 +- .../api/compliance/results_compliance_scan.py | 40 +- .../api/compliance/start_compliance_scan.py | 32 +- .../api/compliance/status_compliance_scan.py | 12 +- .../api/compliance/stop_compliance_scan.py | 12 +- .../api/controls/disable_agent_plugin.py | 12 +- .../controls/disable_cloud_node_controls.py | 12 +- .../api/controls/enable_agent_plugin.py | 12 +- .../controls/enable_cloud_node_controls.py | 12 +- .../api/controls/get_agent_controls.py | 12 +- .../api/controls/get_agent_init_controls.py | 12 +- .../api/controls/get_cloud_node_controls.py | 12 +- .../get_kubernetes_cluster_controls.py | 12 +- .../api/controls/install_agent_over_cloud.py | 20 +- .../controls/uninstall_agent_over_cloud.py | 20 +- .../api/controls/upgrade_agent_version.py | 12 +- .../generate_agent_diagnostic_logs.py | 16 +- .../generate_cloud_scanner_diagnostic_logs.py | 16 +- .../generate_console_diagnostic_logs.py | 8 +- .../update_agent_diagnostic_logs_status.py | 12 +- .../api/diff_add/diff_add_cloud_compliance.py | 44 +- .../api/diff_add/diff_add_compliance.py | 44 +- .../api/diff_add/diff_add_malware.py | 44 +- threatstryker/api/diff_add/diff_add_secret.py | 44 +- .../api/diff_add/diff_add_vulnerability.py | 44 +- .../add_generative_ai_integration_bedrock.py | 16 +- .../add_generative_ai_integration_open_ai.py | 12 +- ...tive_ai_integration_cloud_posture_query.py | 20 +- ...ai_integration_kubernetes_posture_query.py | 16 +- ...tive_ai_integration_linux_posture_query.py | 16 +- ...generative_ai_integration_malware_query.py | 12 +- ...e_ai_integration_runtime_incident_query.py | 16 +- .../generative_ai_integration_secret_query.py | 12 +- ...tive_ai_integration_vulnerability_query.py | 16 +- .../api/integration/add_integration.py | 56 +- .../api/integration/delete_integrations.py | 8 +- .../api/integration/update_integration.py | 56 +- threatstryker/api/lookup/get_api_endpoints.py | 16 +- .../api/lookup/get_cloud_compliances.py | 16 +- .../api/lookup/get_cloud_resources.py | 16 +- .../api/lookup/get_compliance_controls.py | 16 +- threatstryker/api/lookup/get_compliances.py | 16 +- .../api/lookup/get_container_images.py | 16 +- threatstryker/api/lookup/get_containers.py | 16 +- .../api/lookup/get_exploitable_alerts.py | 201 ++++++ threatstryker/api/lookup/get_file_alerts.py | 16 +- .../api/lookup/get_filesystem_alert_rules.py | 16 +- threatstryker/api/lookup/get_hosts.py | 16 +- .../api/lookup/get_kubernetes_clusters.py | 16 +- threatstryker/api/lookup/get_malware_rules.py | 201 ++++++ threatstryker/api/lookup/get_malwares.py | 16 +- .../api/lookup/get_network_alert_rules.py | 16 +- .../api/lookup/get_network_alerts.py | 16 +- .../api/lookup/get_network_violations.py | 16 +- threatstryker/api/lookup/get_pods.py | 16 +- .../api/lookup/get_process_alert_rules.py | 16 +- .../api/lookup/get_process_alerts.py | 16 +- threatstryker/api/lookup/get_processes.py | 16 +- .../api/lookup/get_quarantine_violations.py | 16 +- .../api/lookup/get_registry_account.py | 16 +- threatstryker/api/lookup/get_secret_rules.py | 201 ++++++ threatstryker/api/lookup/get_secrets.py | 16 +- .../api/lookup/get_vulnerabilities.py | 16 +- .../get_vulnerability_rules.py} | 46 +- .../count_results_malware_scan.py | 40 +- .../api/malware_scan/list_malware_scan.py | 44 +- .../results_class_malware_scan.py | 40 +- .../api/malware_scan/results_malware_scan.py | 40 +- .../results_rules_malware_scan.py | 40 +- .../api/malware_scan/start_malware_scan.py | 32 +- .../api/malware_scan/status_malware_scan.py | 12 +- .../api/malware_scan/stop_malware_scan.py | 12 +- threatstryker/api/registry/add_registry.py | 12 +- .../api/registry/count_image_stubs.py | 40 +- threatstryker/api/registry/count_images.py | 72 ++- .../api/registry/delete_registry_bulk.py | 12 +- .../api/registry/list_image_stubs.py | 40 +- threatstryker/api/registry/list_images.py | 72 ++- threatstryker/api/registry/update_registry.py | 12 +- .../api/reports/bulk_delete_reports.py | 8 +- threatstryker/api/reports/generate_report.py | 48 +- threatstryker/api/rules/__init__.py | 0 threatstryker/api/rules/mask_rules.py | 186 ++++++ threatstryker/api/rules/unmask_rules.py | 186 ++++++ .../api/scan_results/bulk_delete_scans.py | 40 +- .../api/scan_results/delete_scan_result.py | 16 +- .../get_all_nodes_in_scan_results.py | 12 +- .../api/scan_results/mask_scan_result.py | 12 +- .../api/scan_results/notify_scan_result.py | 16 +- .../api/scan_results/unmask_scan_result.py | 12 +- threatstryker/api/search/count_alerts.py | 120 +++- .../api/search/count_api_endpoints.py | 120 +++- .../api/search/count_cloud_accounts.py | 120 +++- .../search/count_cloud_compliance_scans.py | 120 +++- .../api/search/count_cloud_compliances.py | 120 +++- .../api/search/count_cloud_resources.py | 120 +++- .../api/search/count_compliance_rules.py | 120 +++- .../api/search/count_compliance_scans.py | 120 +++- threatstryker/api/search/count_compliances.py | 120 +++- .../api/search/count_container_images.py | 120 +++- threatstryker/api/search/count_containers.py | 120 +++- .../api/search/count_exploitable_alerts.py | 300 +++++++++ threatstryker/api/search/count_file_alerts.py | 120 +++- .../search/count_filesystem_alert_rules.py | 120 +++- threatstryker/api/search/count_hosts.py | 120 +++- .../api/search/count_kubernetes_clusters.py | 120 +++- .../api/search/count_malware_rules.py | 120 +++- .../api/search/count_malware_scans.py | 120 +++- threatstryker/api/search/count_malwares.py | 120 +++- .../search/count_most_exploitable_malwares.py | 159 +++++ .../search/count_most_exploitable_secrets.py | 159 +++++ .../count_most_exploitable_vulnerabilities.py | 159 +++++ .../api/search/count_network_alert_rules.py | 120 +++- .../api/search/count_network_alerts.py | 120 +++- .../api/search/count_network_violations.py | 120 +++- threatstryker/api/search/count_pods.py | 120 +++- threatstryker/api/search/count_policy_logs.py | 120 +++- .../api/search/count_process_alert_rules.py | 120 +++- .../api/search/count_process_alerts.py | 120 +++- .../api/search/count_quarantine_violations.py | 120 +++- .../api/search/count_registry_accounts.py | 120 +++- .../api/search/count_secret_rules.py | 120 +++- threatstryker/api/search/count_secrets.py | 120 +++- .../api/search/count_secrets_scans.py | 120 +++- .../api/search/count_vulnerabilities.py | 120 +++- .../api/search/count_vulnerability_rules.py | 120 +++- .../api/search/count_vulnerability_scans.py | 120 +++- .../search/get_cloud_compliance_filters.py | 12 +- .../api/search/get_compliance_filters.py | 12 +- threatstryker/api/search/search_alerts.py | 120 +++- .../api/search/search_api_endpoints.py | 120 +++- .../api/search/search_cloud_accounts.py | 120 +++- .../search/search_cloud_compliance_scans.py | 120 +++- .../api/search/search_cloud_compliances.py | 120 +++- .../api/search/search_cloud_resources.py | 120 +++- .../api/search/search_compliance_rules.py | 120 +++- .../api/search/search_compliance_scans.py | 120 +++- .../api/search/search_compliances.py | 120 +++- .../api/search/search_container_images.py | 120 +++- threatstryker/api/search/search_containers.py | 120 +++- .../api/search/search_exploitable_alerts.py | 305 +++++++++ .../api/search/search_file_alerts.py | 120 +++- .../search/search_filesystem_alert_rules.py | 120 +++- threatstryker/api/search/search_hosts.py | 120 +++- .../api/search/search_kubernetes_clusters.py | 120 +++- .../api/search/search_malware_rules.py | 120 +++- .../api/search/search_malware_scans.py | 120 +++- threatstryker/api/search/search_malwares.py | 120 +++- .../api/search/search_network_alert_rules.py | 120 +++- .../api/search/search_network_alerts.py | 120 +++- .../search/search_network_violation_stubs.py | 120 +++- .../api/search/search_network_violations.py | 120 +++- threatstryker/api/search/search_pods.py | 120 +++- .../api/search/search_policy_logs.py | 120 +++- .../api/search/search_process_alert_rules.py | 120 +++- .../api/search/search_process_alerts.py | 120 +++- .../search/search_quarantine_violations.py | 120 +++- .../api/search/search_registry_accounts.py | 120 +++- .../api/search/search_secret_rules.py | 120 +++- threatstryker/api/search/search_secrets.py | 120 +++- .../api/search/search_secrets_scans.py | 120 +++- .../api/search/search_vulnerabilities.py | 120 +++- .../api/search/search_vulnerability_rules.py | 305 +++++++++ .../api/search/search_vulnerability_scans.py | 120 +++- .../secret_scan/count_results_secret_scan.py | 40 +- .../api/secret_scan/list_secret_scan.py | 44 +- .../secret_scan/results_rules_secret_scan.py | 40 +- .../api/secret_scan/results_secret_scan.py | 40 +- .../api/secret_scan/start_secret_scan.py | 32 +- .../api/secret_scan/status_secret_scan.py | 12 +- .../api/secret_scan/stop_secret_scan.py | 12 +- .../api/settings/add_email_configuration.py | 20 +- .../api/settings/add_scheduled_task.py | 40 +- .../api/settings/generate_license.py | 12 +- .../api/settings/get_user_audit_logs.py | 8 +- .../api/settings/register_license.py | 12 +- .../settings/set_cloud_waf_configuration.py | 12 +- .../api/settings/test_unconfigured_email.py | 20 +- .../settings/update_notification_threshold.py | 12 +- .../api/settings/update_scheduled_task.py | 8 +- threatstryker/api/settings/update_setting.py | 8 +- .../api/threat/get_individual_threat_graph.py | 16 +- threatstryker/api/threat/get_threat_graph.py | 20 +- .../topology/get_containers_topology_graph.py | 52 +- .../api/topology/get_hosts_topology_graph.py | 52 +- .../topology/get_kubernetes_topology_graph.py | 52 +- .../api/topology/get_pods_topology_graph.py | 52 +- .../api/topology/get_topology_delta.py | 16 +- .../api/topology/get_topology_graph.py | 52 +- .../api/topology/ingest_agent_report.py | 8 +- .../api/topology/ingest_sync_agent_report.py | 48 +- threatstryker/api/user/invite_user.py | 12 +- .../api/user/register_invited_user.py | 16 +- threatstryker/api/user/register_user.py | 16 +- .../api/user/reset_password_request.py | 8 +- threatstryker/api/user/update_current_user.py | 12 +- threatstryker/api/user/update_password.py | 12 +- threatstryker/api/user/update_user.py | 12 +- .../api/user/verify_reset_password_request.py | 12 +- .../violations/delete_network_violations.py | 8 +- .../delete_quarantine_violations.py | 8 +- .../count_results_vulnerability_scans.py | 40 +- .../api/vulnerability/download_sbom.py | 8 +- threatstryker/api/vulnerability/get_sbom.py | 8 +- .../api/vulnerability/ingest_sbom.py | 24 +- .../vulnerability/list_vulnerability_scans.py | 44 +- .../results_vulnerability_scans.py | 40 +- .../vulnerability/start_vulnerability_scan.py | 32 +- .../status_vulnerability_scan.py | 12 +- .../vulnerability/stop_vulnerability_scan.py | 12 +- threatstryker/models/__init__.py | 12 + .../models/api_docs_bad_request_response.py | 4 + .../models/api_docs_failure_response.py | 3 + .../completion_completion_node_field_req.py | 19 +- .../completion_completion_node_field_res.py | 3 + threatstryker/models/controls_action.py | 3 + threatstryker/models/controls_agent_beat.py | 3 + .../models/controls_agent_controls.py | 4 + .../controls_filesystem_tracer_config.py | 5 + .../models/controls_monitored_files_config.py | 3 + .../models/controls_network_policy.py | 7 +- .../models/controls_network_rules.py | 3 + .../models/controls_network_tracer_config.py | 15 +- .../models/controls_policy_alert_matcher.py | 3 + .../models/controls_policy_filter_config.py | 9 + .../models/controls_process_event_entry.py | 5 + .../models/controls_process_tracer_config.py | 9 + .../models/controls_quarantine_config.py | 7 + threatstryker/models/controls_runc_policy.py | 7 +- .../models/controls_threat_intel_info.py | 8 + .../models/detailed_connection_summary.py | 3 + threatstryker/models/detailed_node_summary.py | 64 +- .../models/diagnosis_diagnostic_logs_link.py | 3 + .../diagnosis_diagnostic_logs_status.py | 3 + .../diagnosis_diagnostic_notification.py | 4 + ..._generate_agent_diagnostic_logs_request.py | 4 + ...e_cloud_scanner_diagnostic_logs_request.py | 4 + ...enerate_console_diagnostic_logs_request.py | 3 + .../diagnosis_get_diagnostic_logs_response.py | 7 + .../models/diagnosis_node_identifier.py | 3 + .../models/graph_cloud_provider_filter.py | 3 + .../models/graph_individual_threat_graph.py | 4 + .../graph_individual_threat_graph_request.py | 4 + threatstryker/models/graph_threat_filters.py | 11 +- .../models/graph_topology_filters.py | 19 +- threatstryker/models/ingesters_aws_waf_arn.py | 3 + .../models/ingesters_cloud_compliance.py | 7 + .../ingesters_cloud_compliance_scan_status.py | 10 +- .../models/ingesters_cloud_resource.py | 34 + .../models/ingesters_cloud_waf_config.py | 4 + threatstryker/models/ingesters_compliance.py | 7 + .../ingesters_compliance_scan_status.py | 3 + .../models/ingesters_compliance_stats.py | 3 + threatstryker/models/ingesters_malware.py | 13 +- .../models/ingesters_malware_scan_status.py | 4 + threatstryker/models/ingesters_meta_rules.py | 5 + threatstryker/models/ingesters_policy_log.py | 5 + .../models/ingesters_report_ingestion_data.py | 10 + threatstryker/models/ingesters_secret.py | 14 +- .../models/ingesters_secret_match.py | 4 + threatstryker/models/ingesters_secret_rule.py | 3 + .../models/ingesters_secret_scan_status.py | 3 + .../models/ingesters_secret_severity.py | 3 + .../models/ingesters_vulnerability.py | 36 ++ .../ingesters_vulnerability_scan_status.py | 3 + threatstryker/models/ingesters_waf_rule.py | 3 + threatstryker/models/lookup_lookup_filter.py | 6 +- ...l_add_generative_ai_bedrock_integration.py | 4 + ...l_add_generative_ai_open_ai_integration.py | 3 + .../model_add_scheduled_task_request.py | 14 +- threatstryker/models/model_agent_id.py | 3 + threatstryker/models/model_agent_install.py | 8 +- .../models/model_agent_plugin_config_names.py | 4 + .../models/model_agent_plugin_disable.py | 3 + .../models/model_agent_plugin_enable.py | 3 + .../models/model_agent_plugins_status.py | 19 +- threatstryker/models/model_agent_upgrade.py | 3 + .../models/model_alerts_action_request.py | 3 + .../models/model_api_auth_request.py | 3 + threatstryker/models/model_api_endpoint.py | 5 + .../models/model_api_token_response.py | 4 + .../models/model_attach_agent_config_req.py | 4 + threatstryker/models/model_basic_node.py | 85 ++- .../models/model_bulk_delete_report_req.py | 3 + .../models/model_bulk_delete_scans_request.py | 16 +- .../models/model_cloud_account_delete_req.py | 3 + .../models/model_cloud_account_refresh_req.py | 3 + .../models/model_cloud_compliance.py | 11 + .../models/model_cloud_compliance_control.py | 7 + .../model_cloud_compliance_scan_result.py | 25 + .../models/model_cloud_node_account_info.py | 20 +- .../model_cloud_node_account_register_req.py | 34 + .../model_cloud_node_accounts_list_req.py | 5 +- .../model_cloud_node_accounts_list_resp.py | 13 + .../model_cloud_node_compliance_control.py | 5 + .../models/model_cloud_node_control_req.py | 3 + .../models/model_cloud_node_control_resp.py | 9 + .../model_cloud_node_enable_disable_req.py | 3 + .../model_cloud_node_monitored_account.py | 3 + .../model_cloud_node_providers_list_resp.py | 6 + threatstryker/models/model_cloud_resource.py | 7 + threatstryker/models/model_common_alert.py | 7 + threatstryker/models/model_compliance.py | 12 + threatstryker/models/model_compliance_rule.py | 5 + .../models/model_compliance_scan_info.py | 5 + .../models/model_compliance_scan_result.py | 26 + ...el_compliance_scan_result_control_group.py | 4 + ...odel_compliance_scan_results_group_resp.py | 4 + .../model_compliance_scan_status_resp.py | 9 + .../model_compliance_scan_trigger_req.py | 12 +- ...model_complinace_scan_results_group_req.py | 17 +- threatstryker/models/model_connection.py | 3 + threatstryker/models/model_container.py | 76 ++- threatstryker/models/model_container_image.py | 53 ++ threatstryker/models/model_delete_filter.py | 3 + .../models/model_delete_integration_req.py | 3 + .../models/model_delete_registry_bulk_req.py | 3 + .../models/model_disable_cloud_tracer_req.py | 4 + .../models/model_disable_tracer_req.py | 4 + .../models/model_download_report_response.py | 3 + .../model_download_scan_results_response.py | 11 +- .../models/model_email_configuration_add.py | 5 + .../models/model_email_configuration_resp.py | 4 + .../models/model_enable_cloud_tracer_req.py | 5 + .../models/model_enable_tracer_req.py | 4 + .../models/model_exploitable_alert.py | 93 +++ threatstryker/models/model_export_report.py | 5 + threatstryker/models/model_fetch_window.py | 3 + threatstryker/models/model_file_alert.py | 10 + .../models/model_filesystem_alert_rule.py | 4 + threatstryker/models/model_filters_req.py | 3 + threatstryker/models/model_filters_result.py | 3 + .../models/model_generate_license_request.py | 4 + .../models/model_generate_license_response.py | 3 + .../models/model_generate_report_req.py | 30 +- .../models/model_generate_report_resp.py | 3 + ...ve_ai_integration_cloud_posture_request.py | 5 + ..._integration_kubernetes_posture_request.py | 4 + ...ve_ai_integration_linux_posture_request.py | 4 + ...generative_ai_integration_list_response.py | 4 + ...nerative_ai_integration_malware_request.py | 3 + ...ai_integration_runtime_incident_request.py | 4 + ...enerative_ai_integration_secret_request.py | 3 + ...ve_ai_integration_vulnerability_request.py | 4 + ..._get_agent_binary_download_url_response.py | 5 + .../models/model_get_agent_config_req.py | 3 + .../models/model_get_attached_nodes_resp.py | 3 + .../models/model_get_audit_logs_request.py | 5 +- threatstryker/models/model_graph_result.py | 53 +- .../models/model_graph_result_edges.py | 56 ++ .../models/model_graph_result_nodes.py | 56 ++ threatstryker/models/model_host.py | 311 ++++++++- threatstryker/models/model_image_stub.py | 3 + threatstryker/models/model_init_agent_req.py | 3 + .../models/model_integration_add_req.py | 22 +- .../models/model_integration_filters.py | 27 +- .../models/model_integration_list_resp.py | 22 +- .../models/model_integration_update_req.py | 22 +- .../models/model_invite_user_request.py | 3 + .../models/model_invite_user_response.py | 3 + .../models/model_kubernetes_cluster.py | 601 ++++++++++++++++++ threatstryker/models/model_license.py | 11 +- .../models/model_list_agent_version_resp.py | 3 + threatstryker/models/model_login_request.py | 3 + threatstryker/models/model_login_response.py | 5 + threatstryker/models/model_malware.py | 30 + threatstryker/models/model_malware_rule.py | 30 + .../models/model_malware_scan_result.py | 25 + .../models/model_malware_scan_result_class.py | 3 + .../models/model_malware_scan_result_rules.py | 3 + .../models/model_malware_scan_trigger_req.py | 12 +- .../models/model_message_response.py | 3 + .../models/model_mitre_attack_matrix.py | 3 + .../model_mitre_attack_matrix_request.py | 3 + .../models/model_mitre_technique_summary.py | 3 + threatstryker/models/model_network_alert.py | 19 + .../models/model_network_alert_rule.py | 13 + .../models/model_network_violation.py | 8 + .../models/model_network_violation_stub.py | 3 + threatstryker/models/model_node_identifier.py | 3 + .../model_nodes_in_scan_result_request.py | 3 + ...l_notification_threshold_update_request.py | 3 + .../models/model_password_reset_request.py | 3 + .../model_password_reset_verify_request.py | 3 + threatstryker/models/model_plugin_status.py | 3 + threatstryker/models/model_pod.py | 58 ++ .../models/model_posture_provider.py | 4 + threatstryker/models/model_process.py | 87 ++- threatstryker/models/model_process_alert.py | 11 + .../models/model_process_alert_rule.py | 4 + .../models/model_quarantine_violation.py | 5 + threatstryker/models/model_region_i_ds.py | 3 + .../model_register_invited_user_request.py | 4 + .../models/model_register_license_request.py | 3 + .../models/model_register_license_response.py | 3 + .../models/model_registry_account.py | 106 +++ .../models/model_registry_add_req.py | 4 + .../models/model_registry_count_resp.py | 3 + .../models/model_registry_image_stubs_req.py | 19 +- .../models/model_registry_images_req.py | 33 +- .../models/model_registry_list_resp.py | 4 + .../models/model_registry_update_req.py | 4 + .../models/model_response_access_token.py | 3 + .../models/model_rules_action_request.py | 80 +++ threatstryker/models/model_sbom_request.py | 3 + threatstryker/models/model_sbom_response.py | 4 + .../models/model_scan_compare_req.py | 19 +- ...deepfence_server_model_cloud_compliance.py | 20 + ...apper_deepfence_server_model_compliance.py | 21 + ...t_mapper_deepfence_server_model_malware.py | 21 + ...at_mapper_deepfence_server_model_secret.py | 17 + ...er_deepfence_server_model_vulnerability.py | 27 + threatstryker/models/model_scan_filter.py | 15 +- threatstryker/models/model_scan_info.py | 4 + threatstryker/models/model_scan_list_req.py | 20 +- threatstryker/models/model_scan_list_resp.py | 7 + .../model_scan_report_fields_response.py | 4 + .../models/model_scan_result_basic_node.py | 7 + .../model_scan_results_action_request.py | 4 + .../models/model_scan_results_common.py | 6 + .../models/model_scan_results_mask_request.py | 4 + .../models/model_scan_results_req.py | 19 +- threatstryker/models/model_scan_status_req.py | 3 + .../models/model_scan_status_resp.py | 5 + .../models/model_scan_trigger_resp.py | 3 + threatstryker/models/model_secret.py | 44 +- threatstryker/models/model_secret_rule.py | 51 +- .../models/model_secret_scan_result.py | 20 + .../models/model_secret_scan_result_rules.py | 3 + .../models/model_secret_scan_trigger_req.py | 12 +- .../models/model_stop_scan_request.py | 3 + threatstryker/models/model_summary.py | 3 + .../models/model_topology_delta_req.py | 4 + .../models/model_topology_delta_response.py | 5 + .../model_update_scheduled_task_request.py | 3 + .../models/model_update_user_id_request.py | 3 + .../model_update_user_password_request.py | 3 + .../models/model_update_user_request.py | 3 + threatstryker/models/model_user.py | 5 + .../models/model_user_register_request.py | 4 + threatstryker/models/model_vulnerability.py | 56 ++ .../models/model_vulnerability_rule.py | 394 ++++++++++-- ...odel_vulnerability_scan_config_language.py | 3 + .../models/model_vulnerability_scan_result.py | 30 + .../model_vulnerability_scan_trigger_req.py | 13 +- .../postgresql_db_get_audit_logs_row.py | 5 + .../models/postgresql_db_scheduler.py | 19 +- .../postgresql_db_scheduler_last_ran_at.py | 43 ++ threatstryker/models/report_metadata.py | 64 ++ threatstryker/models/report_raw_report.py | 3 + .../models/reporters_compare_filter.py | 3 + .../models/reporters_contains_filter.py | 3 + .../models/reporters_daily_sev_counts.py | 3 + .../models/reporters_fields_filters.py | 21 +- .../models/reporters_match_filter.py | 3 + .../models/reporters_order_filter.py | 4 + threatstryker/models/reporters_order_spec.py | 3 + threatstryker/models/reporters_sev_counts.py | 3 + .../models/search_chained_search_filter.py | 28 +- .../search_most_exploitable_count_resp.py | 77 +++ .../models/search_node_count_resp.py | 4 + threatstryker/models/search_result_group.py | 3 + .../models/search_result_group_resp.py | 4 + .../models/search_search_count_resp.py | 3 + threatstryker/models/search_search_filter.py | 19 +- .../models/search_search_node_req.py | 53 +- .../models/search_search_scan_req.py | 53 +- .../models/setting_setting_update_request.py | 3 + .../models/setting_settings_response.py | 3 + ...inglesignon_get_single_sign_on_response.py | 19 +- ...glesignon_sso_configuration_instruction.py | 3 + ...lesignon_sso_configuration_instructions.py | 5 + .../singlesignon_sso_provider_config.py | 14 + .../models/singlesignon_sso_response.py | 15 + ...singlesignon_update_sso_provider_config.py | 13 + .../singlesignon_verify_sso_auth_request.py | 3 + .../threatintel_rules_with_direction.py | 3 + .../models/utils_advanced_report_filters.py | 17 + .../models/utils_registry_credentials.py | 3 + threatstryker/models/utils_report_filters.py | 24 +- threatstryker/models/utils_report_options.py | 3 + .../models/utils_scan_sbom_request.py | 6 + 540 files changed, 17953 insertions(+), 1223 deletions(-) create mode 100644 threatstryker/api/lookup/get_exploitable_alerts.py create mode 100644 threatstryker/api/lookup/get_malware_rules.py create mode 100644 threatstryker/api/lookup/get_secret_rules.py rename threatstryker/api/{search/search_vulerability_rules.py => lookup/get_vulnerability_rules.py} (79%) create mode 100644 threatstryker/api/rules/__init__.py create mode 100644 threatstryker/api/rules/mask_rules.py create mode 100644 threatstryker/api/rules/unmask_rules.py create mode 100644 threatstryker/api/search/count_exploitable_alerts.py create mode 100644 threatstryker/api/search/count_most_exploitable_malwares.py create mode 100644 threatstryker/api/search/count_most_exploitable_secrets.py create mode 100644 threatstryker/api/search/count_most_exploitable_vulnerabilities.py create mode 100644 threatstryker/api/search/search_exploitable_alerts.py create mode 100644 threatstryker/api/search/search_vulnerability_rules.py create mode 100644 threatstryker/models/model_exploitable_alert.py create mode 100644 threatstryker/models/model_graph_result_edges.py create mode 100644 threatstryker/models/model_graph_result_nodes.py create mode 100644 threatstryker/models/model_rules_action_request.py create mode 100644 threatstryker/models/postgresql_db_scheduler_last_ran_at.py create mode 100644 threatstryker/models/search_most_exploitable_count_resp.py diff --git a/openapi_config.yaml b/openapi_config.yaml index b687d0e..4b3ab16 100644 --- a/openapi_config.yaml +++ b/openapi_config.yaml @@ -1,3 +1,3 @@ package_name_override: "threatstryker" project_name_override: "threatstryker" -package_version_override: "2.3.1" +package_version_override: "2.5.0" diff --git a/pyproject.toml b/pyproject.toml index 004a4d6..b75ef70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "threatstryker" -version = "2.3.1" +version = "2.5.0" description = "A client library for accessing Deepfence ThreatStryker" authors = [] readme = "README.md" diff --git a/threatstryker/api/agent_config/attach_agent_filesystem_config.py b/threatstryker/api/agent_config/attach_agent_filesystem_config.py index 00a186e..65a5dce 100644 --- a/threatstryker/api/agent_config/attach_agent_filesystem_config.py +++ b/threatstryker/api/agent_config/attach_agent_filesystem_config.py @@ -82,7 +82,9 @@ def sync_detailed( Attach Agent Filesystem config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Attach Agent Filesystem config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Attach Agent Filesystem config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Attach Agent Filesystem config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/attach_agent_network_config.py b/threatstryker/api/agent_config/attach_agent_network_config.py index cda83ba..2b8609b 100644 --- a/threatstryker/api/agent_config/attach_agent_network_config.py +++ b/threatstryker/api/agent_config/attach_agent_network_config.py @@ -82,7 +82,9 @@ def sync_detailed( Attach Agent Network config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Attach Agent Network config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Attach Agent Network config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Attach Agent Network config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/attach_agent_policy_config.py b/threatstryker/api/agent_config/attach_agent_policy_config.py index 06e5373..6a78eb6 100644 --- a/threatstryker/api/agent_config/attach_agent_policy_config.py +++ b/threatstryker/api/agent_config/attach_agent_policy_config.py @@ -82,7 +82,9 @@ def sync_detailed( Attach Agent Policy config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Attach Agent Policy config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Attach Agent Policy config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Attach Agent Policy config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/attach_agent_process_config.py b/threatstryker/api/agent_config/attach_agent_process_config.py index 914fc3b..a5c2829 100644 --- a/threatstryker/api/agent_config/attach_agent_process_config.py +++ b/threatstryker/api/agent_config/attach_agent_process_config.py @@ -82,7 +82,9 @@ def sync_detailed( Attach Agent Process config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Attach Agent Process config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Attach Agent Process config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Attach Agent Process config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/attach_agent_quarantine_config.py b/threatstryker/api/agent_config/attach_agent_quarantine_config.py index 10e3fd8..31f6d4e 100644 --- a/threatstryker/api/agent_config/attach_agent_quarantine_config.py +++ b/threatstryker/api/agent_config/attach_agent_quarantine_config.py @@ -82,7 +82,9 @@ def sync_detailed( Attach Agent Quarantine config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Attach Agent Quarantine config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Attach Agent Quarantine config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Attach Agent Quarantine config Args: - body (ModelAttachAgentConfigReq): + body (ModelAttachAgentConfigReq): Example: {'config_id': 'config_id', 'agent_ids': + [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/get_agent_filesystem_config.py b/threatstryker/api/agent_config/get_agent_filesystem_config.py index 1ac5290..365a856 100644 --- a/threatstryker/api/agent_config/get_agent_filesystem_config.py +++ b/threatstryker/api/agent_config/get_agent_filesystem_config.py @@ -89,7 +89,7 @@ def sync_detailed( Get Agent Filesystem config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get Agent Filesystem config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get Agent Filesystem config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get Agent Filesystem config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/get_agent_network_config.py b/threatstryker/api/agent_config/get_agent_network_config.py index 983e7a4..57401d6 100644 --- a/threatstryker/api/agent_config/get_agent_network_config.py +++ b/threatstryker/api/agent_config/get_agent_network_config.py @@ -89,7 +89,7 @@ def sync_detailed( Get Agent Network config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get Agent Network config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get Agent Network config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get Agent Network config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/get_agent_policy_config.py b/threatstryker/api/agent_config/get_agent_policy_config.py index 41debff..429d393 100644 --- a/threatstryker/api/agent_config/get_agent_policy_config.py +++ b/threatstryker/api/agent_config/get_agent_policy_config.py @@ -89,7 +89,7 @@ def sync_detailed( Get Agent Policy config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get Agent Policy config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get Agent Policy config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get Agent Policy config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/get_agent_process_config.py b/threatstryker/api/agent_config/get_agent_process_config.py index 9bb1f3d..ae6f9ff 100644 --- a/threatstryker/api/agent_config/get_agent_process_config.py +++ b/threatstryker/api/agent_config/get_agent_process_config.py @@ -89,7 +89,7 @@ def sync_detailed( Get Agent Process config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get Agent Process config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get Agent Process config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get Agent Process config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/get_agent_quarantine_config.py b/threatstryker/api/agent_config/get_agent_quarantine_config.py index c43e7a9..b31dd84 100644 --- a/threatstryker/api/agent_config/get_agent_quarantine_config.py +++ b/threatstryker/api/agent_config/get_agent_quarantine_config.py @@ -89,7 +89,7 @@ def sync_detailed( Get Agent Quarantine config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get Agent Quarantine config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get Agent Quarantine config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get Agent Quarantine config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/get_agent_threat_intel_config.py b/threatstryker/api/agent_config/get_agent_threat_intel_config.py index 0bc2e29..7b17508 100644 --- a/threatstryker/api/agent_config/get_agent_threat_intel_config.py +++ b/threatstryker/api/agent_config/get_agent_threat_intel_config.py @@ -89,7 +89,7 @@ def sync_detailed( Get Agent threat intel config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get Agent threat intel config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get Agent threat intel config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get Agent threat intel config Args: - body (ModelGetAgentConfigReq): + body (ModelGetAgentConfigReq): Example: {'config_ids': ['config_ids', 'config_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/register_agent_filesystem_config.py b/threatstryker/api/agent_config/register_agent_filesystem_config.py index 4fbd9dd..7665d2c 100644 --- a/threatstryker/api/agent_config/register_agent_filesystem_config.py +++ b/threatstryker/api/agent_config/register_agent_filesystem_config.py @@ -82,7 +82,10 @@ def sync_detailed( Register Agent Filesystem config Args: - body (ControlsFilesystemTracerConfig): + body (ControlsFilesystemTracerConfig): Example: {'updated_at': 0, 'watchedentries': + [{'severity': 'severity', 'accesstypes': ['accesstypes', 'accesstypes'], 'root': 'root', + 'recursive': True}, {'severity': 'severity', 'accesstypes': ['accesstypes', + 'accesstypes'], 'root': 'root', 'recursive': True}], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +116,10 @@ def sync( Register Agent Filesystem config Args: - body (ControlsFilesystemTracerConfig): + body (ControlsFilesystemTracerConfig): Example: {'updated_at': 0, 'watchedentries': + [{'severity': 'severity', 'accesstypes': ['accesstypes', 'accesstypes'], 'root': 'root', + 'recursive': True}, {'severity': 'severity', 'accesstypes': ['accesstypes', + 'accesstypes'], 'root': 'root', 'recursive': True}], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +145,10 @@ async def asyncio_detailed( Register Agent Filesystem config Args: - body (ControlsFilesystemTracerConfig): + body (ControlsFilesystemTracerConfig): Example: {'updated_at': 0, 'watchedentries': + [{'severity': 'severity', 'accesstypes': ['accesstypes', 'accesstypes'], 'root': 'root', + 'recursive': True}, {'severity': 'severity', 'accesstypes': ['accesstypes', + 'accesstypes'], 'root': 'root', 'recursive': True}], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +177,10 @@ async def asyncio( Register Agent Filesystem config Args: - body (ControlsFilesystemTracerConfig): + body (ControlsFilesystemTracerConfig): Example: {'updated_at': 0, 'watchedentries': + [{'severity': 'severity', 'accesstypes': ['accesstypes', 'accesstypes'], 'root': 'root', + 'recursive': True}, {'severity': 'severity', 'accesstypes': ['accesstypes', + 'accesstypes'], 'root': 'root', 'recursive': True}], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/register_agent_network_config.py b/threatstryker/api/agent_config/register_agent_network_config.py index 61576da..16139fb 100644 --- a/threatstryker/api/agent_config/register_agent_network_config.py +++ b/threatstryker/api/agent_config/register_agent_network_config.py @@ -82,7 +82,12 @@ def sync_detailed( Register Agent Network config Args: - body (ControlsNetworkTracerConfig): + body (ControlsNetworkTracerConfig): Example: {'mode': 'all', 'process_names': + ['process_names', 'process_names'], 'tcp_rules': {'inbound': ['inbound', 'inbound'], + 'outbound': ['outbound', 'outbound']}, 'http_rules': {'inbound': ['inbound', 'inbound'], + 'outbound': ['outbound', 'outbound']}, 'updated_at': 0, 'ignored_rule_ids': + ['ignored_rule_ids', 'ignored_rule_ids'], 'https_rules': {'inbound': ['inbound', + 'inbound'], 'outbound': ['outbound', 'outbound']}, 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +118,12 @@ def sync( Register Agent Network config Args: - body (ControlsNetworkTracerConfig): + body (ControlsNetworkTracerConfig): Example: {'mode': 'all', 'process_names': + ['process_names', 'process_names'], 'tcp_rules': {'inbound': ['inbound', 'inbound'], + 'outbound': ['outbound', 'outbound']}, 'http_rules': {'inbound': ['inbound', 'inbound'], + 'outbound': ['outbound', 'outbound']}, 'updated_at': 0, 'ignored_rule_ids': + ['ignored_rule_ids', 'ignored_rule_ids'], 'https_rules': {'inbound': ['inbound', + 'inbound'], 'outbound': ['outbound', 'outbound']}, 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +149,12 @@ async def asyncio_detailed( Register Agent Network config Args: - body (ControlsNetworkTracerConfig): + body (ControlsNetworkTracerConfig): Example: {'mode': 'all', 'process_names': + ['process_names', 'process_names'], 'tcp_rules': {'inbound': ['inbound', 'inbound'], + 'outbound': ['outbound', 'outbound']}, 'http_rules': {'inbound': ['inbound', 'inbound'], + 'outbound': ['outbound', 'outbound']}, 'updated_at': 0, 'ignored_rule_ids': + ['ignored_rule_ids', 'ignored_rule_ids'], 'https_rules': {'inbound': ['inbound', + 'inbound'], 'outbound': ['outbound', 'outbound']}, 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +183,12 @@ async def asyncio( Register Agent Network config Args: - body (ControlsNetworkTracerConfig): + body (ControlsNetworkTracerConfig): Example: {'mode': 'all', 'process_names': + ['process_names', 'process_names'], 'tcp_rules': {'inbound': ['inbound', 'inbound'], + 'outbound': ['outbound', 'outbound']}, 'http_rules': {'inbound': ['inbound', 'inbound'], + 'outbound': ['outbound', 'outbound']}, 'updated_at': 0, 'ignored_rule_ids': + ['ignored_rule_ids', 'ignored_rule_ids'], 'https_rules': {'inbound': ['inbound', + 'inbound'], 'outbound': ['outbound', 'outbound']}, 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/register_agent_policy_config.py b/threatstryker/api/agent_config/register_agent_policy_config.py index 56788e1..68b2d9a 100644 --- a/threatstryker/api/agent_config/register_agent_policy_config.py +++ b/threatstryker/api/agent_config/register_agent_policy_config.py @@ -82,7 +82,16 @@ def sync_detailed( Register Agent Policy config Args: - body (ControlsPolicyFilterConfig): + body (ControlsPolicyFilterConfig): Example: {'ignored_remote_hosts': + ['ignored_remote_hosts', 'ignored_remote_hosts'], 'updated_at': 5, 'use_waf': True, + 'policies': [{'policy_id': 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': + 'block', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}, {'policy_id': + 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': 'block', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}], 'ignored_remote_ips': + ['ignored_remote_ips', 'ignored_remote_ips'], 'enable_policy_logs': True, 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +122,16 @@ def sync( Register Agent Policy config Args: - body (ControlsPolicyFilterConfig): + body (ControlsPolicyFilterConfig): Example: {'ignored_remote_hosts': + ['ignored_remote_hosts', 'ignored_remote_hosts'], 'updated_at': 5, 'use_waf': True, + 'policies': [{'policy_id': 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': + 'block', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}, {'policy_id': + 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': 'block', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}], 'ignored_remote_ips': + ['ignored_remote_ips', 'ignored_remote_ips'], 'enable_policy_logs': True, 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +157,16 @@ async def asyncio_detailed( Register Agent Policy config Args: - body (ControlsPolicyFilterConfig): + body (ControlsPolicyFilterConfig): Example: {'ignored_remote_hosts': + ['ignored_remote_hosts', 'ignored_remote_hosts'], 'updated_at': 5, 'use_waf': True, + 'policies': [{'policy_id': 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': + 'block', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}, {'policy_id': + 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': 'block', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}], 'ignored_remote_ips': + ['ignored_remote_ips', 'ignored_remote_ips'], 'enable_policy_logs': True, 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +195,16 @@ async def asyncio( Register Agent Policy config Args: - body (ControlsPolicyFilterConfig): + body (ControlsPolicyFilterConfig): Example: {'ignored_remote_hosts': + ['ignored_remote_hosts', 'ignored_remote_hosts'], 'updated_at': 5, 'use_waf': True, + 'policies': [{'policy_id': 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': + 'block', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}, {'policy_id': + 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': 'block', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}], 'ignored_remote_ips': + ['ignored_remote_ips', 'ignored_remote_ips'], 'enable_policy_logs': True, 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/register_agent_process_config.py b/threatstryker/api/agent_config/register_agent_process_config.py index 9b2848b..b289e31 100644 --- a/threatstryker/api/agent_config/register_agent_process_config.py +++ b/threatstryker/api/agent_config/register_agent_process_config.py @@ -82,7 +82,15 @@ def sync_detailed( Register Agent Process config Args: - body (ControlsProcessTracerConfig): + body (ControlsProcessTracerConfig): Example: {'updated_at': 0, 'monitoredprocessevents': + [{'skip_path_list': ['skip_path_list', 'skip_path_list'], 'failure_severity': + 'failure_severity', 'skip_user_list': ['skip_user_list', 'skip_user_list'], + 'success_severity': 'success_severity', 'event': 'bin-execution', 'skip_comm_list': + ['skip_comm_list', 'skip_comm_list']}, {'skip_path_list': ['skip_path_list', + 'skip_path_list'], 'failure_severity': 'failure_severity', 'skip_user_list': + ['skip_user_list', 'skip_user_list'], 'success_severity': 'success_severity', 'event': + 'bin-execution', 'skip_comm_list': ['skip_comm_list', 'skip_comm_list']}], 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +121,15 @@ def sync( Register Agent Process config Args: - body (ControlsProcessTracerConfig): + body (ControlsProcessTracerConfig): Example: {'updated_at': 0, 'monitoredprocessevents': + [{'skip_path_list': ['skip_path_list', 'skip_path_list'], 'failure_severity': + 'failure_severity', 'skip_user_list': ['skip_user_list', 'skip_user_list'], + 'success_severity': 'success_severity', 'event': 'bin-execution', 'skip_comm_list': + ['skip_comm_list', 'skip_comm_list']}, {'skip_path_list': ['skip_path_list', + 'skip_path_list'], 'failure_severity': 'failure_severity', 'skip_user_list': + ['skip_user_list', 'skip_user_list'], 'success_severity': 'success_severity', 'event': + 'bin-execution', 'skip_comm_list': ['skip_comm_list', 'skip_comm_list']}], 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +155,15 @@ async def asyncio_detailed( Register Agent Process config Args: - body (ControlsProcessTracerConfig): + body (ControlsProcessTracerConfig): Example: {'updated_at': 0, 'monitoredprocessevents': + [{'skip_path_list': ['skip_path_list', 'skip_path_list'], 'failure_severity': + 'failure_severity', 'skip_user_list': ['skip_user_list', 'skip_user_list'], + 'success_severity': 'success_severity', 'event': 'bin-execution', 'skip_comm_list': + ['skip_comm_list', 'skip_comm_list']}, {'skip_path_list': ['skip_path_list', + 'skip_path_list'], 'failure_severity': 'failure_severity', 'skip_user_list': + ['skip_user_list', 'skip_user_list'], 'success_severity': 'success_severity', 'event': + 'bin-execution', 'skip_comm_list': ['skip_comm_list', 'skip_comm_list']}], 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +192,15 @@ async def asyncio( Register Agent Process config Args: - body (ControlsProcessTracerConfig): + body (ControlsProcessTracerConfig): Example: {'updated_at': 0, 'monitoredprocessevents': + [{'skip_path_list': ['skip_path_list', 'skip_path_list'], 'failure_severity': + 'failure_severity', 'skip_user_list': ['skip_user_list', 'skip_user_list'], + 'success_severity': 'success_severity', 'event': 'bin-execution', 'skip_comm_list': + ['skip_comm_list', 'skip_comm_list']}, {'skip_path_list': ['skip_path_list', + 'skip_path_list'], 'failure_severity': 'failure_severity', 'skip_user_list': + ['skip_user_list', 'skip_user_list'], 'success_severity': 'success_severity', 'event': + 'bin-execution', 'skip_comm_list': ['skip_comm_list', 'skip_comm_list']}], 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/register_agent_quarantine_config.py b/threatstryker/api/agent_config/register_agent_quarantine_config.py index 83d1b79..c7ebdcf 100644 --- a/threatstryker/api/agent_config/register_agent_quarantine_config.py +++ b/threatstryker/api/agent_config/register_agent_quarantine_config.py @@ -82,7 +82,13 @@ def sync_detailed( Register Agent Quarantine config Args: - body (ControlsQuarantineConfig): + body (ControlsQuarantineConfig): Example: {'updated_at': 5, 'policies': [{'node_type': + 'container', 'policy_id': 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': + 'restart', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}}, {'node_type': 'container', 'policy_id': + 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': 'restart', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}}], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +119,13 @@ def sync( Register Agent Quarantine config Args: - body (ControlsQuarantineConfig): + body (ControlsQuarantineConfig): Example: {'updated_at': 5, 'policies': [{'node_type': + 'container', 'policy_id': 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': + 'restart', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}}, {'node_type': 'container', 'policy_id': + 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': 'restart', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}}], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +151,13 @@ async def asyncio_detailed( Register Agent Quarantine config Args: - body (ControlsQuarantineConfig): + body (ControlsQuarantineConfig): Example: {'updated_at': 5, 'policies': [{'node_type': + 'container', 'policy_id': 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': + 'restart', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}}, {'node_type': 'container', 'policy_id': + 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': 'restart', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}}], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +186,13 @@ async def asyncio( Register Agent Quarantine config Args: - body (ControlsQuarantineConfig): + body (ControlsQuarantineConfig): Example: {'updated_at': 5, 'policies': [{'node_type': + 'container', 'policy_id': 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': + 'restart', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}}, {'node_type': 'container', 'policy_id': + 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': 'restart', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}}], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_config/register_threat_intel_config.py b/threatstryker/api/agent_config/register_threat_intel_config.py index b8a182a..385b4a8 100644 --- a/threatstryker/api/agent_config/register_threat_intel_config.py +++ b/threatstryker/api/agent_config/register_threat_intel_config.py @@ -82,7 +82,14 @@ def sync_detailed( Register threat intel config Args: - body (ControlsThreatIntelInfo): + body (ControlsThreatIntelInfo): Example: {'cloud_posture_controls_hash': + 'cloud_posture_controls_hash', 'cloud_posture_controls_url': 'cloud_posture_controls_url', + 'updated_at': 0, 'network_alert_rules_url': 'network_alert_rules_url', + 'ignored_alert_rule_ids': ['ignored_alert_rule_ids', 'ignored_alert_rule_ids'], + 'internal_ips': ['internal_ips', 'internal_ips'], 'secret_scanner_rules_hash': + 'secret_scanner_rules_hash', 'secret_scanner_rules_url': 'secret_scanner_rules_url', + 'malware_scanner_rules_hash': 'malware_scanner_rules_hash', 'malware_scanner_rules_url': + 'malware_scanner_rules_url', 'rules_hash': 'rules_hash'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +120,14 @@ def sync( Register threat intel config Args: - body (ControlsThreatIntelInfo): + body (ControlsThreatIntelInfo): Example: {'cloud_posture_controls_hash': + 'cloud_posture_controls_hash', 'cloud_posture_controls_url': 'cloud_posture_controls_url', + 'updated_at': 0, 'network_alert_rules_url': 'network_alert_rules_url', + 'ignored_alert_rule_ids': ['ignored_alert_rule_ids', 'ignored_alert_rule_ids'], + 'internal_ips': ['internal_ips', 'internal_ips'], 'secret_scanner_rules_hash': + 'secret_scanner_rules_hash', 'secret_scanner_rules_url': 'secret_scanner_rules_url', + 'malware_scanner_rules_hash': 'malware_scanner_rules_hash', 'malware_scanner_rules_url': + 'malware_scanner_rules_url', 'rules_hash': 'rules_hash'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +153,14 @@ async def asyncio_detailed( Register threat intel config Args: - body (ControlsThreatIntelInfo): + body (ControlsThreatIntelInfo): Example: {'cloud_posture_controls_hash': + 'cloud_posture_controls_hash', 'cloud_posture_controls_url': 'cloud_posture_controls_url', + 'updated_at': 0, 'network_alert_rules_url': 'network_alert_rules_url', + 'ignored_alert_rule_ids': ['ignored_alert_rule_ids', 'ignored_alert_rule_ids'], + 'internal_ips': ['internal_ips', 'internal_ips'], 'secret_scanner_rules_hash': + 'secret_scanner_rules_hash', 'secret_scanner_rules_url': 'secret_scanner_rules_url', + 'malware_scanner_rules_hash': 'malware_scanner_rules_hash', 'malware_scanner_rules_url': + 'malware_scanner_rules_url', 'rules_hash': 'rules_hash'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +189,14 @@ async def asyncio( Register threat intel config Args: - body (ControlsThreatIntelInfo): + body (ControlsThreatIntelInfo): Example: {'cloud_posture_controls_hash': + 'cloud_posture_controls_hash', 'cloud_posture_controls_url': 'cloud_posture_controls_url', + 'updated_at': 0, 'network_alert_rules_url': 'network_alert_rules_url', + 'ignored_alert_rule_ids': ['ignored_alert_rule_ids', 'ignored_alert_rule_ids'], + 'internal_ips': ['internal_ips', 'internal_ips'], 'secret_scanner_rules_hash': + 'secret_scanner_rules_hash', 'secret_scanner_rules_url': 'secret_scanner_rules_url', + 'malware_scanner_rules_hash': 'malware_scanner_rules_hash', 'malware_scanner_rules_url': + 'malware_scanner_rules_url', 'rules_hash': 'rules_hash'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_filesystem/disable_filesystem_tracer.py b/threatstryker/api/agent_filesystem/disable_filesystem_tracer.py index d41dad7..ebcbf92 100644 --- a/threatstryker/api/agent_filesystem/disable_filesystem_tracer.py +++ b/threatstryker/api/agent_filesystem/disable_filesystem_tracer.py @@ -82,7 +82,9 @@ def sync_detailed( Disable filesystem tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Disable filesystem tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Disable filesystem tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Disable filesystem tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_filesystem/enable_filesystem_tracer.py b/threatstryker/api/agent_filesystem/enable_filesystem_tracer.py index ec18fbd..67414bb 100644 --- a/threatstryker/api/agent_filesystem/enable_filesystem_tracer.py +++ b/threatstryker/api/agent_filesystem/enable_filesystem_tracer.py @@ -82,7 +82,9 @@ def sync_detailed( Enable filesystem tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Enable filesystem tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Enable filesystem tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Enable filesystem tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_network/disable_cloud_network_tracer.py b/threatstryker/api/agent_network/disable_cloud_network_tracer.py index a6347c6..44f5744 100644 --- a/threatstryker/api/agent_network/disable_cloud_network_tracer.py +++ b/threatstryker/api/agent_network/disable_cloud_network_tracer.py @@ -82,7 +82,9 @@ def sync_detailed( Disable cloud network tracer on given agents Args: - body (ModelDisableCloudTracerReq): + body (ModelDisableCloudTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Disable cloud network tracer on given agents Args: - body (ModelDisableCloudTracerReq): + body (ModelDisableCloudTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Disable cloud network tracer on given agents Args: - body (ModelDisableCloudTracerReq): + body (ModelDisableCloudTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Disable cloud network tracer on given agents Args: - body (ModelDisableCloudTracerReq): + body (ModelDisableCloudTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_network/disable_network_tracer.py b/threatstryker/api/agent_network/disable_network_tracer.py index af28804..8201d31 100644 --- a/threatstryker/api/agent_network/disable_network_tracer.py +++ b/threatstryker/api/agent_network/disable_network_tracer.py @@ -82,7 +82,9 @@ def sync_detailed( Disable network tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Disable network tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Disable network tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Disable network tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_network/enable_cloud_network_tracer.py b/threatstryker/api/agent_network/enable_cloud_network_tracer.py index 2e1d3db..47b4a77 100644 --- a/threatstryker/api/agent_network/enable_cloud_network_tracer.py +++ b/threatstryker/api/agent_network/enable_cloud_network_tracer.py @@ -82,7 +82,10 @@ def sync_detailed( Enable cloud network tracer on given agents Args: - body (ModelEnableCloudTracerReq): + body (ModelEnableCloudTracerReq): Example: {'aws_s3_bucket': ['aws_s3_bucket', + 'aws_s3_bucket'], 'agent_ids': [{'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}, {'node_type': 'node_type', 'available_workload': 0, 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +116,10 @@ def sync( Enable cloud network tracer on given agents Args: - body (ModelEnableCloudTracerReq): + body (ModelEnableCloudTracerReq): Example: {'aws_s3_bucket': ['aws_s3_bucket', + 'aws_s3_bucket'], 'agent_ids': [{'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}, {'node_type': 'node_type', 'available_workload': 0, 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +145,10 @@ async def asyncio_detailed( Enable cloud network tracer on given agents Args: - body (ModelEnableCloudTracerReq): + body (ModelEnableCloudTracerReq): Example: {'aws_s3_bucket': ['aws_s3_bucket', + 'aws_s3_bucket'], 'agent_ids': [{'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}, {'node_type': 'node_type', 'available_workload': 0, 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +177,10 @@ async def asyncio( Enable cloud network tracer on given agents Args: - body (ModelEnableCloudTracerReq): + body (ModelEnableCloudTracerReq): Example: {'aws_s3_bucket': ['aws_s3_bucket', + 'aws_s3_bucket'], 'agent_ids': [{'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}, {'node_type': 'node_type', 'available_workload': 0, 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_network/enable_network_tracer.py b/threatstryker/api/agent_network/enable_network_tracer.py index 7005426..390675a 100644 --- a/threatstryker/api/agent_network/enable_network_tracer.py +++ b/threatstryker/api/agent_network/enable_network_tracer.py @@ -82,7 +82,9 @@ def sync_detailed( Enable network tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Enable network tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Enable network tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Enable network tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_process/disable_process_tracer.py b/threatstryker/api/agent_process/disable_process_tracer.py index f61c425..fd25e72 100644 --- a/threatstryker/api/agent_process/disable_process_tracer.py +++ b/threatstryker/api/agent_process/disable_process_tracer.py @@ -82,7 +82,9 @@ def sync_detailed( Disable process tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Disable process tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Disable process tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Disable process tracer on given agents Args: - body (ModelDisableTracerReq): + body (ModelDisableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/agent_process/enable_process_tracer.py b/threatstryker/api/agent_process/enable_process_tracer.py index a7e888d..9cfa7c8 100644 --- a/threatstryker/api/agent_process/enable_process_tracer.py +++ b/threatstryker/api/agent_process/enable_process_tracer.py @@ -82,7 +82,9 @@ def sync_detailed( Enable process tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Enable process tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Enable process tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Enable process tracer on given agents Args: - body (ModelEnableTracerReq): + body (ModelEnableTracerReq): Example: {'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/alert/delete_alert.py b/threatstryker/api/alert/delete_alert.py index 838241e..7eedf54 100644 --- a/threatstryker/api/alert/delete_alert.py +++ b/threatstryker/api/alert/delete_alert.py @@ -82,7 +82,7 @@ def sync_detailed( Delete selected alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Delete selected alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Delete selected alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Delete selected alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/alert/get_mitre_attack_matrix.py b/threatstryker/api/alert/get_mitre_attack_matrix.py index c18d7a8..20d50e6 100644 --- a/threatstryker/api/alert/get_mitre_attack_matrix.py +++ b/threatstryker/api/alert/get_mitre_attack_matrix.py @@ -89,7 +89,7 @@ def sync_detailed( Get Mitre Attack Matrix Args: - body (ModelMitreAttackMatrixRequest): + body (ModelMitreAttackMatrixRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get Mitre Attack Matrix Args: - body (ModelMitreAttackMatrixRequest): + body (ModelMitreAttackMatrixRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get Mitre Attack Matrix Args: - body (ModelMitreAttackMatrixRequest): + body (ModelMitreAttackMatrixRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get Mitre Attack Matrix Args: - body (ModelMitreAttackMatrixRequest): + body (ModelMitreAttackMatrixRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/alert/mask_alert.py b/threatstryker/api/alert/mask_alert.py index 0b78b11..3da2965 100644 --- a/threatstryker/api/alert/mask_alert.py +++ b/threatstryker/api/alert/mask_alert.py @@ -82,7 +82,7 @@ def sync_detailed( Mask alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Mask alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Mask alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Mask alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/alert/notify_alert.py b/threatstryker/api/alert/notify_alert.py index 4780953..2061468 100644 --- a/threatstryker/api/alert/notify_alert.py +++ b/threatstryker/api/alert/notify_alert.py @@ -82,7 +82,7 @@ def sync_detailed( Notify alerts in connected integration channels Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Notify alerts in connected integration channels Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Notify alerts in connected integration channels Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Notify alerts in connected integration channels Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/alert/unmask_alert.py b/threatstryker/api/alert/unmask_alert.py index 9d02aa0..2c75791 100644 --- a/threatstryker/api/alert/unmask_alert.py +++ b/threatstryker/api/alert/unmask_alert.py @@ -82,7 +82,7 @@ def sync_detailed( Unmask alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Unmask alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Unmask alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Unmask alerts Args: - body (ModelAlertsActionRequest): + body (ModelAlertsActionRequest): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/authentication/auth_token.py b/threatstryker/api/authentication/auth_token.py index 92c549e..ff699fa 100644 --- a/threatstryker/api/authentication/auth_token.py +++ b/threatstryker/api/authentication/auth_token.py @@ -84,7 +84,7 @@ def sync_detailed( Get access token for programmatic API access, by providing API Token Args: - body (ModelAPIAuthRequest): + body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +115,7 @@ def sync( Get access token for programmatic API access, by providing API Token Args: - body (ModelAPIAuthRequest): + body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +141,7 @@ async def asyncio_detailed( Get access token for programmatic API access, by providing API Token Args: - body (ModelAPIAuthRequest): + body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +170,7 @@ async def asyncio( Get access token for programmatic API access, by providing API Token Args: - body (ModelAPIAuthRequest): + body (ModelAPIAuthRequest): Example: {'api_token': 'api_token'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/authentication/create_sso_provider.py b/threatstryker/api/authentication/create_sso_provider.py index 08abe3a..b6404c2 100644 --- a/threatstryker/api/authentication/create_sso_provider.py +++ b/threatstryker/api/authentication/create_sso_provider.py @@ -82,7 +82,9 @@ def sync_detailed( Configure Single sign-on (OIDC, Google, Microsoft, Github) Args: - body (SinglesignonSSOProviderConfig): + body (SinglesignonSSOProviderConfig): Example: {'issuer_alias_url': 'issuer_alias_url', + 'issuer_url': 'issuer_url', 'sso_provider_type': 'oidc', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id', 'host_name': 'host_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Configure Single sign-on (OIDC, Google, Microsoft, Github) Args: - body (SinglesignonSSOProviderConfig): + body (SinglesignonSSOProviderConfig): Example: {'issuer_alias_url': 'issuer_alias_url', + 'issuer_url': 'issuer_url', 'sso_provider_type': 'oidc', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id', 'host_name': 'host_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Configure Single sign-on (OIDC, Google, Microsoft, Github) Args: - body (SinglesignonSSOProviderConfig): + body (SinglesignonSSOProviderConfig): Example: {'issuer_alias_url': 'issuer_alias_url', + 'issuer_url': 'issuer_url', 'sso_provider_type': 'oidc', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id', 'host_name': 'host_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Configure Single sign-on (OIDC, Google, Microsoft, Github) Args: - body (SinglesignonSSOProviderConfig): + body (SinglesignonSSOProviderConfig): Example: {'issuer_alias_url': 'issuer_alias_url', + 'issuer_url': 'issuer_url', 'sso_provider_type': 'oidc', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id', 'host_name': 'host_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/authentication/login.py b/threatstryker/api/authentication/login.py index 0c43e85..b1da43d 100644 --- a/threatstryker/api/authentication/login.py +++ b/threatstryker/api/authentication/login.py @@ -84,7 +84,7 @@ def sync_detailed( Login API Args: - body (ModelLoginRequest): + body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +115,7 @@ def sync( Login API Args: - body (ModelLoginRequest): + body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +141,7 @@ async def asyncio_detailed( Login API Args: - body (ModelLoginRequest): + body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +170,7 @@ async def asyncio( Login API Args: - body (ModelLoginRequest): + body (ModelLoginRequest): Example: {'password': 'password', 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/authentication/update_sso_provider.py b/threatstryker/api/authentication/update_sso_provider.py index 3f4019e..d8aee67 100644 --- a/threatstryker/api/authentication/update_sso_provider.py +++ b/threatstryker/api/authentication/update_sso_provider.py @@ -87,7 +87,9 @@ def sync_detailed( Args: id (int): - body (SinglesignonUpdateSSOProviderConfig): + body (SinglesignonUpdateSSOProviderConfig): Example: {'issuer_alias_url': + 'issuer_alias_url', 'issuer_url': 'issuer_url', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +123,9 @@ def sync( Args: id (int): - body (SinglesignonUpdateSSOProviderConfig): + body (SinglesignonUpdateSSOProviderConfig): Example: {'issuer_alias_url': + 'issuer_alias_url', 'issuer_url': 'issuer_url', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +154,9 @@ async def asyncio_detailed( Args: id (int): - body (SinglesignonUpdateSSOProviderConfig): + body (SinglesignonUpdateSSOProviderConfig): Example: {'issuer_alias_url': + 'issuer_alias_url', 'issuer_url': 'issuer_url', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +188,9 @@ async def asyncio( Args: id (int): - body (SinglesignonUpdateSSOProviderConfig): + body (SinglesignonUpdateSSOProviderConfig): Example: {'issuer_alias_url': + 'issuer_alias_url', 'issuer_url': 'issuer_url', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/authentication/verify_sso_auth.py b/threatstryker/api/authentication/verify_sso_auth.py index 86d985f..0249fc7 100644 --- a/threatstryker/api/authentication/verify_sso_auth.py +++ b/threatstryker/api/authentication/verify_sso_auth.py @@ -84,7 +84,8 @@ def sync_detailed( Verify code and get access token Args: - body (SinglesignonVerifySSOAuthRequest): + body (SinglesignonVerifySSOAuthRequest): Example: {'code': 'code', 'user_id': 0, + 'namespace': 'namespace'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Verify code and get access token Args: - body (SinglesignonVerifySSOAuthRequest): + body (SinglesignonVerifySSOAuthRequest): Example: {'code': 'code', 'user_id': 0, + 'namespace': 'namespace'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Verify code and get access token Args: - body (SinglesignonVerifySSOAuthRequest): + body (SinglesignonVerifySSOAuthRequest): Example: {'code': 'code', 'user_id': 0, + 'namespace': 'namespace'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Verify code and get access token Args: - body (SinglesignonVerifySSOAuthRequest): + body (SinglesignonVerifySSOAuthRequest): Example: {'code': 'code', 'user_id': 0, + 'namespace': 'namespace'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/cloud_nodes/delete_cloud_node_account.py b/threatstryker/api/cloud_nodes/delete_cloud_node_account.py index 675d765..dde956c 100644 --- a/threatstryker/api/cloud_nodes/delete_cloud_node_account.py +++ b/threatstryker/api/cloud_nodes/delete_cloud_node_account.py @@ -82,7 +82,7 @@ def sync_detailed( Delete Cloud Node Account and related resources Args: - body (ModelCloudAccountDeleteReq): + body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Delete Cloud Node Account and related resources Args: - body (ModelCloudAccountDeleteReq): + body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Delete Cloud Node Account and related resources Args: - body (ModelCloudAccountDeleteReq): + body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Delete Cloud Node Account and related resources Args: - body (ModelCloudAccountDeleteReq): + body (ModelCloudAccountDeleteReq): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/cloud_nodes/list_cloud_node_account.py b/threatstryker/api/cloud_nodes/list_cloud_node_account.py index ad3bcdf..c589deb 100644 --- a/threatstryker/api/cloud_nodes/list_cloud_node_account.py +++ b/threatstryker/api/cloud_nodes/list_cloud_node_account.py @@ -84,7 +84,8 @@ def sync_detailed( List Cloud Node Accounts registered with the console Args: - body (ModelCloudNodeAccountsListReq): + body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window': + {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( List Cloud Node Accounts registered with the console Args: - body (ModelCloudNodeAccountsListReq): + body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window': + {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( List Cloud Node Accounts registered with the console Args: - body (ModelCloudNodeAccountsListReq): + body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window': + {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( List Cloud Node Accounts registered with the console Args: - body (ModelCloudNodeAccountsListReq): + body (ModelCloudNodeAccountsListReq): Example: {'cloud_provider': 'aws', 'window': + {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/cloud_nodes/refresh_cloud_node_account.py b/threatstryker/api/cloud_nodes/refresh_cloud_node_account.py index 668ea99..08dcc23 100644 --- a/threatstryker/api/cloud_nodes/refresh_cloud_node_account.py +++ b/threatstryker/api/cloud_nodes/refresh_cloud_node_account.py @@ -82,7 +82,7 @@ def sync_detailed( Refresh the cloud resources in a Cloud Account Args: - body (ModelCloudAccountRefreshReq): + body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Refresh the cloud resources in a Cloud Account Args: - body (ModelCloudAccountRefreshReq): + body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Refresh the cloud resources in a Cloud Account Args: - body (ModelCloudAccountRefreshReq): + body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Refresh the cloud resources in a Cloud Account Args: - body (ModelCloudAccountRefreshReq): + body (ModelCloudAccountRefreshReq): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/cloud_nodes/register_cloud_node_account.py b/threatstryker/api/cloud_nodes/register_cloud_node_account.py index 4485651..2794f15 100644 --- a/threatstryker/api/cloud_nodes/register_cloud_node_account.py +++ b/threatstryker/api/cloud_nodes/register_cloud_node_account.py @@ -82,7 +82,14 @@ def sync_detailed( Register Cloud Account Args: - body (ModelCloudNodeAccountRegisterReq): + body (ModelCloudNodeAccountRegisterReq): Example: {'initial_request': True, 'account_id': + 'account_id', 'monitored_accounts': [{'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name', + 'is_organization_deployment': True, 'installation_id': 'installation_id', + 'cloud_provider': 'aws', 'persistent_volume_supported': True, 'organization_account_id': + 'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version', + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +120,14 @@ def sync( Register Cloud Account Args: - body (ModelCloudNodeAccountRegisterReq): + body (ModelCloudNodeAccountRegisterReq): Example: {'initial_request': True, 'account_id': + 'account_id', 'monitored_accounts': [{'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name', + 'is_organization_deployment': True, 'installation_id': 'installation_id', + 'cloud_provider': 'aws', 'persistent_volume_supported': True, 'organization_account_id': + 'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version', + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +153,14 @@ async def asyncio_detailed( Register Cloud Account Args: - body (ModelCloudNodeAccountRegisterReq): + body (ModelCloudNodeAccountRegisterReq): Example: {'initial_request': True, 'account_id': + 'account_id', 'monitored_accounts': [{'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name', + 'is_organization_deployment': True, 'installation_id': 'installation_id', + 'cloud_provider': 'aws', 'persistent_volume_supported': True, 'organization_account_id': + 'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version', + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +189,14 @@ async def asyncio( Register Cloud Account Args: - body (ModelCloudNodeAccountRegisterReq): + body (ModelCloudNodeAccountRegisterReq): Example: {'initial_request': True, 'account_id': + 'account_id', 'monitored_accounts': [{'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name', + 'is_organization_deployment': True, 'installation_id': 'installation_id', + 'cloud_provider': 'aws', 'persistent_volume_supported': True, 'organization_account_id': + 'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version', + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/cloud_scanner/count_results_cloud_compliance_scan.py b/threatstryker/api/cloud_scanner/count_results_cloud_compliance_scan.py index edb71e0..5288ec0 100644 --- a/threatstryker/api/cloud_scanner/count_results_cloud_compliance_scan.py +++ b/threatstryker/api/cloud_scanner/count_results_cloud_compliance_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Cloud Compliance Scan results for cloud node Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Cloud Compliance Scan results for cloud node Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Cloud Compliance Scan results for cloud node Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Cloud Compliance Scan results for cloud node Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/cloud_scanner/list_cloud_compliance_scan.py b/threatstryker/api/cloud_scanner/list_cloud_compliance_scan.py index 3cc72a4..08e327c 100644 --- a/threatstryker/api/cloud_scanner/list_cloud_compliance_scan.py +++ b/threatstryker/api/cloud_scanner/list_cloud_compliance_scan.py @@ -84,7 +84,16 @@ def sync_detailed( Get Cloud Compliance Scans list for cloud node Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Get Cloud Compliance Scans list for cloud node Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Get Cloud Compliance Scans list for cloud node Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Get Cloud Compliance Scans list for cloud node Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/cloud_scanner/results_cloud_compliance_scan.py b/threatstryker/api/cloud_scanner/results_cloud_compliance_scan.py index f1ec175..274ccf2 100644 --- a/threatstryker/api/cloud_scanner/results_cloud_compliance_scan.py +++ b/threatstryker/api/cloud_scanner/results_cloud_compliance_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Cloud Compliance Scan results for cloud node Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Cloud Compliance Scan results for cloud node Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Cloud Compliance Scan results for cloud node Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Cloud Compliance Scan results for cloud node Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/cloud_scanner/status_cloud_compliance_scan.py b/threatstryker/api/cloud_scanner/status_cloud_compliance_scan.py index c65f424..e79563d 100644 --- a/threatstryker/api/cloud_scanner/status_cloud_compliance_scan.py +++ b/threatstryker/api/cloud_scanner/status_cloud_compliance_scan.py @@ -84,7 +84,8 @@ def sync_detailed( Get Cloud Compliance Scan Status on cloud node Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Get Cloud Compliance Scan Status on cloud node Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Get Cloud Compliance Scan Status on cloud node Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Get Cloud Compliance Scan Status on cloud node Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_api_endpoints_info.py b/threatstryker/api/completion/complete_api_endpoints_info.py index ab0c76e..eb263b7 100644 --- a/threatstryker/api/completion/complete_api_endpoints_info.py +++ b/threatstryker/api/completion/complete_api_endpoints_info.py @@ -84,7 +84,16 @@ def sync_detailed( Complete api-endpoints info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete api-endpoints info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete api-endpoints info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete api-endpoints info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_cloud_account.py b/threatstryker/api/completion/complete_cloud_account.py index 9604398..595d3f8 100644 --- a/threatstryker/api/completion/complete_cloud_account.py +++ b/threatstryker/api/completion/complete_cloud_account.py @@ -84,7 +84,16 @@ def sync_detailed( Complete cloud account info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete cloud account info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete cloud account info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete cloud account info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_cloud_compliance.py b/threatstryker/api/completion/complete_cloud_compliance.py index 1ea9e6c..b16c8c4 100644 --- a/threatstryker/api/completion/complete_cloud_compliance.py +++ b/threatstryker/api/completion/complete_cloud_compliance.py @@ -84,7 +84,16 @@ def sync_detailed( Complete cloud compliance info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete cloud compliance info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete cloud compliance info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete cloud compliance info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_cloud_resources.py b/threatstryker/api/completion/complete_cloud_resources.py index d58414c..b7fce5e 100644 --- a/threatstryker/api/completion/complete_cloud_resources.py +++ b/threatstryker/api/completion/complete_cloud_resources.py @@ -84,7 +84,16 @@ def sync_detailed( Complete cloud resources info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete cloud resources info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete cloud resources info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete cloud resources info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_compliance_info.py b/threatstryker/api/completion/complete_compliance_info.py index 6e95d02..70fec6d 100644 --- a/threatstryker/api/completion/complete_compliance_info.py +++ b/threatstryker/api/completion/complete_compliance_info.py @@ -84,7 +84,16 @@ def sync_detailed( Complete compliance info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete compliance info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete compliance info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete compliance info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_container_info.py b/threatstryker/api/completion/complete_container_info.py index ae90475..0e39281 100644 --- a/threatstryker/api/completion/complete_container_info.py +++ b/threatstryker/api/completion/complete_container_info.py @@ -84,7 +84,16 @@ def sync_detailed( Complete Container info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete Container info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete Container info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete Container info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_host_info.py b/threatstryker/api/completion/complete_host_info.py index 2b71222..dca03fc 100644 --- a/threatstryker/api/completion/complete_host_info.py +++ b/threatstryker/api/completion/complete_host_info.py @@ -84,7 +84,16 @@ def sync_detailed( Complete host info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete host info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete host info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete host info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_pod_info.py b/threatstryker/api/completion/complete_pod_info.py index 4382158..1f3ed66 100644 --- a/threatstryker/api/completion/complete_pod_info.py +++ b/threatstryker/api/completion/complete_pod_info.py @@ -84,7 +84,16 @@ def sync_detailed( Complete Pod info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete Pod info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete Pod info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete Pod info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_process_info.py b/threatstryker/api/completion/complete_process_info.py index 46a036d..e50b37a 100644 --- a/threatstryker/api/completion/complete_process_info.py +++ b/threatstryker/api/completion/complete_process_info.py @@ -84,7 +84,16 @@ def sync_detailed( Complete process info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete process info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete process info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete process info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/completion/complete_vulnerability_info.py b/threatstryker/api/completion/complete_vulnerability_info.py index f7a16de..dd2c826 100644 --- a/threatstryker/api/completion/complete_vulnerability_info.py +++ b/threatstryker/api/completion/complete_vulnerability_info.py @@ -84,7 +84,16 @@ def sync_detailed( Complete vulnerability info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Complete vulnerability info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Complete vulnerability info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Complete vulnerability info Args: - body (CompletionCompletionNodeFieldReq): + body (CompletionCompletionNodeFieldReq): Example: {'completion': 'completion', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': + 'field_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/compliance/count_results_compliance_scan.py b/threatstryker/api/compliance/count_results_compliance_scan.py index 0bd90d8..ad160eb 100644 --- a/threatstryker/api/compliance/count_results_compliance_scan.py +++ b/threatstryker/api/compliance/count_results_compliance_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Compliance Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Compliance Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Compliance Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Compliance Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/compliance/group_results_cloud_compliance.py b/threatstryker/api/compliance/group_results_cloud_compliance.py index 3e6f52a..ee3f27f 100644 --- a/threatstryker/api/compliance/group_results_cloud_compliance.py +++ b/threatstryker/api/compliance/group_results_cloud_compliance.py @@ -84,7 +84,15 @@ def sync_detailed( Count Cloud Compliance Results grouped by Control ID Args: - body (ModelComplinaceScanResultsGroupReq): + body (ModelComplinaceScanResultsGroupReq): Example: {'scan_id': 'scan_id', + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Count Cloud Compliance Results grouped by Control ID Args: - body (ModelComplinaceScanResultsGroupReq): + body (ModelComplinaceScanResultsGroupReq): Example: {'scan_id': 'scan_id', + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Count Cloud Compliance Results grouped by Control ID Args: - body (ModelComplinaceScanResultsGroupReq): + body (ModelComplinaceScanResultsGroupReq): Example: {'scan_id': 'scan_id', + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Count Cloud Compliance Results grouped by Control ID Args: - body (ModelComplinaceScanResultsGroupReq): + body (ModelComplinaceScanResultsGroupReq): Example: {'scan_id': 'scan_id', + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/compliance/group_results_compliance.py b/threatstryker/api/compliance/group_results_compliance.py index eeea5e3..46fadf9 100644 --- a/threatstryker/api/compliance/group_results_compliance.py +++ b/threatstryker/api/compliance/group_results_compliance.py @@ -84,7 +84,15 @@ def sync_detailed( Count Compliance Results grouped by Control ID Args: - body (ModelComplinaceScanResultsGroupReq): + body (ModelComplinaceScanResultsGroupReq): Example: {'scan_id': 'scan_id', + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Count Compliance Results grouped by Control ID Args: - body (ModelComplinaceScanResultsGroupReq): + body (ModelComplinaceScanResultsGroupReq): Example: {'scan_id': 'scan_id', + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Count Compliance Results grouped by Control ID Args: - body (ModelComplinaceScanResultsGroupReq): + body (ModelComplinaceScanResultsGroupReq): Example: {'scan_id': 'scan_id', + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Count Compliance Results grouped by Control ID Args: - body (ModelComplinaceScanResultsGroupReq): + body (ModelComplinaceScanResultsGroupReq): Example: {'scan_id': 'scan_id', + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/compliance/list_compliance_scan.py b/threatstryker/api/compliance/list_compliance_scan.py index 02a40cc..1d04c0d 100644 --- a/threatstryker/api/compliance/list_compliance_scan.py +++ b/threatstryker/api/compliance/list_compliance_scan.py @@ -84,7 +84,16 @@ def sync_detailed( Get Compliance Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Get Compliance Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Get Compliance Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Get Compliance Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/compliance/results_compliance_scan.py b/threatstryker/api/compliance/results_compliance_scan.py index 82045e1..5cde971 100644 --- a/threatstryker/api/compliance/results_compliance_scan.py +++ b/threatstryker/api/compliance/results_compliance_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Compliance Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Compliance Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Compliance Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Compliance Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/compliance/start_compliance_scan.py b/threatstryker/api/compliance/start_compliance_scan.py index 0c3ff5e..370e2b8 100644 --- a/threatstryker/api/compliance/start_compliance_scan.py +++ b/threatstryker/api/compliance/start_compliance_scan.py @@ -84,7 +84,13 @@ def sync_detailed( Start Compliance Scan on agent or registry Args: - body (ModelComplianceScanTriggerReq): + body (ModelComplianceScanTriggerReq): Example: {'is_priority': True, 'benchmark_types': + ['hipaa', 'hipaa'], 'deepfence_system_scan': True, 'filters': {'container_scan_filter': + {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', + '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +121,13 @@ def sync( Start Compliance Scan on agent or registry Args: - body (ModelComplianceScanTriggerReq): + body (ModelComplianceScanTriggerReq): Example: {'is_priority': True, 'benchmark_types': + ['hipaa', 'hipaa'], 'deepfence_system_scan': True, 'filters': {'container_scan_filter': + {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', + '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +153,13 @@ async def asyncio_detailed( Start Compliance Scan on agent or registry Args: - body (ModelComplianceScanTriggerReq): + body (ModelComplianceScanTriggerReq): Example: {'is_priority': True, 'benchmark_types': + ['hipaa', 'hipaa'], 'deepfence_system_scan': True, 'filters': {'container_scan_filter': + {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', + '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +188,13 @@ async def asyncio( Start Compliance Scan on agent or registry Args: - body (ModelComplianceScanTriggerReq): + body (ModelComplianceScanTriggerReq): Example: {'is_priority': True, 'benchmark_types': + ['hipaa', 'hipaa'], 'deepfence_system_scan': True, 'filters': {'container_scan_filter': + {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', + '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/compliance/status_compliance_scan.py b/threatstryker/api/compliance/status_compliance_scan.py index bab4fb3..00b91ec 100644 --- a/threatstryker/api/compliance/status_compliance_scan.py +++ b/threatstryker/api/compliance/status_compliance_scan.py @@ -84,7 +84,8 @@ def sync_detailed( Get Compliance Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Get Compliance Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Get Compliance Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Get Compliance Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/compliance/stop_compliance_scan.py b/threatstryker/api/compliance/stop_compliance_scan.py index 1e15b5a..22d7b28 100644 --- a/threatstryker/api/compliance/stop_compliance_scan.py +++ b/threatstryker/api/compliance/stop_compliance_scan.py @@ -82,7 +82,8 @@ def sync_detailed( Stop Compliance Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Stop Compliance Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Stop Compliance Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Stop Compliance Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/disable_agent_plugin.py b/threatstryker/api/controls/disable_agent_plugin.py index d1c0c08..af49e41 100644 --- a/threatstryker/api/controls/disable_agent_plugin.py +++ b/threatstryker/api/controls/disable_agent_plugin.py @@ -82,7 +82,8 @@ def sync_detailed( Schedule agent plugin disable Args: - body (ModelAgentPluginDisable): + body (ModelAgentPluginDisable): Example: {'plugin_name': 'plugin_name', 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Schedule agent plugin disable Args: - body (ModelAgentPluginDisable): + body (ModelAgentPluginDisable): Example: {'plugin_name': 'plugin_name', 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Schedule agent plugin disable Args: - body (ModelAgentPluginDisable): + body (ModelAgentPluginDisable): Example: {'plugin_name': 'plugin_name', 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Schedule agent plugin disable Args: - body (ModelAgentPluginDisable): + body (ModelAgentPluginDisable): Example: {'plugin_name': 'plugin_name', 'node_id': + 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/disable_cloud_node_controls.py b/threatstryker/api/controls/disable_cloud_node_controls.py index d8f9dea..d215909 100644 --- a/threatstryker/api/controls/disable_cloud_node_controls.py +++ b/threatstryker/api/controls/disable_cloud_node_controls.py @@ -82,7 +82,8 @@ def sync_detailed( Disable controls for a cloud node Args: - body (ModelCloudNodeEnableDisableReq): + body (ModelCloudNodeEnableDisableReq): Example: {'control_ids': ['control_ids', + 'control_ids'], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Disable controls for a cloud node Args: - body (ModelCloudNodeEnableDisableReq): + body (ModelCloudNodeEnableDisableReq): Example: {'control_ids': ['control_ids', + 'control_ids'], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Disable controls for a cloud node Args: - body (ModelCloudNodeEnableDisableReq): + body (ModelCloudNodeEnableDisableReq): Example: {'control_ids': ['control_ids', + 'control_ids'], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Disable controls for a cloud node Args: - body (ModelCloudNodeEnableDisableReq): + body (ModelCloudNodeEnableDisableReq): Example: {'control_ids': ['control_ids', + 'control_ids'], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/enable_agent_plugin.py b/threatstryker/api/controls/enable_agent_plugin.py index e3b3781..73fca49 100644 --- a/threatstryker/api/controls/enable_agent_plugin.py +++ b/threatstryker/api/controls/enable_agent_plugin.py @@ -82,7 +82,8 @@ def sync_detailed( Schedule agent plugin enable Args: - body (ModelAgentPluginEnable): + body (ModelAgentPluginEnable): Example: {'plugin_name': 'plugin_name', 'version': + 'version', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Schedule agent plugin enable Args: - body (ModelAgentPluginEnable): + body (ModelAgentPluginEnable): Example: {'plugin_name': 'plugin_name', 'version': + 'version', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Schedule agent plugin enable Args: - body (ModelAgentPluginEnable): + body (ModelAgentPluginEnable): Example: {'plugin_name': 'plugin_name', 'version': + 'version', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Schedule agent plugin enable Args: - body (ModelAgentPluginEnable): + body (ModelAgentPluginEnable): Example: {'plugin_name': 'plugin_name', 'version': + 'version', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/enable_cloud_node_controls.py b/threatstryker/api/controls/enable_cloud_node_controls.py index ca14932..35d0bfb 100644 --- a/threatstryker/api/controls/enable_cloud_node_controls.py +++ b/threatstryker/api/controls/enable_cloud_node_controls.py @@ -82,7 +82,8 @@ def sync_detailed( Enable controls for a cloud node Args: - body (ModelCloudNodeEnableDisableReq): + body (ModelCloudNodeEnableDisableReq): Example: {'control_ids': ['control_ids', + 'control_ids'], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Enable controls for a cloud node Args: - body (ModelCloudNodeEnableDisableReq): + body (ModelCloudNodeEnableDisableReq): Example: {'control_ids': ['control_ids', + 'control_ids'], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Enable controls for a cloud node Args: - body (ModelCloudNodeEnableDisableReq): + body (ModelCloudNodeEnableDisableReq): Example: {'control_ids': ['control_ids', + 'control_ids'], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Enable controls for a cloud node Args: - body (ModelCloudNodeEnableDisableReq): + body (ModelCloudNodeEnableDisableReq): Example: {'control_ids': ['control_ids', + 'control_ids'], 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/get_agent_controls.py b/threatstryker/api/controls/get_agent_controls.py index 0b4ebb4..1bde238 100644 --- a/threatstryker/api/controls/get_agent_controls.py +++ b/threatstryker/api/controls/get_agent_controls.py @@ -84,7 +84,8 @@ def sync_detailed( Fetch actions for a given agent Args: - body (ModelAgentID): + body (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Fetch actions for a given agent Args: - body (ModelAgentID): + body (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Fetch actions for a given agent Args: - body (ModelAgentID): + body (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Fetch actions for a given agent Args: - body (ModelAgentID): + body (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/get_agent_init_controls.py b/threatstryker/api/controls/get_agent_init_controls.py index 2c5ba88..87db626 100644 --- a/threatstryker/api/controls/get_agent_init_controls.py +++ b/threatstryker/api/controls/get_agent_init_controls.py @@ -84,7 +84,8 @@ def sync_detailed( Fetch initial actions for a given agent after it started Args: - body (ModelInitAgentReq): + body (ModelInitAgentReq): Example: {'node_type': 'node_type', 'available_workload': 0, + 'version': 'version', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Fetch initial actions for a given agent after it started Args: - body (ModelInitAgentReq): + body (ModelInitAgentReq): Example: {'node_type': 'node_type', 'available_workload': 0, + 'version': 'version', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Fetch initial actions for a given agent after it started Args: - body (ModelInitAgentReq): + body (ModelInitAgentReq): Example: {'node_type': 'node_type', 'available_workload': 0, + 'version': 'version', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Fetch initial actions for a given agent after it started Args: - body (ModelInitAgentReq): + body (ModelInitAgentReq): Example: {'node_type': 'node_type', 'available_workload': 0, + 'version': 'version', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/get_cloud_node_controls.py b/threatstryker/api/controls/get_cloud_node_controls.py index b1fb008..a984638 100644 --- a/threatstryker/api/controls/get_cloud_node_controls.py +++ b/threatstryker/api/controls/get_cloud_node_controls.py @@ -84,7 +84,8 @@ def sync_detailed( Fetch controls for a cloud node Args: - body (ModelCloudNodeControlReq): + body (ModelCloudNodeControlReq): Example: {'cloud_provider': 'aws', 'compliance_type': + 'hipaa', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Fetch controls for a cloud node Args: - body (ModelCloudNodeControlReq): + body (ModelCloudNodeControlReq): Example: {'cloud_provider': 'aws', 'compliance_type': + 'hipaa', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Fetch controls for a cloud node Args: - body (ModelCloudNodeControlReq): + body (ModelCloudNodeControlReq): Example: {'cloud_provider': 'aws', 'compliance_type': + 'hipaa', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Fetch controls for a cloud node Args: - body (ModelCloudNodeControlReq): + body (ModelCloudNodeControlReq): Example: {'cloud_provider': 'aws', 'compliance_type': + 'hipaa', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/get_kubernetes_cluster_controls.py b/threatstryker/api/controls/get_kubernetes_cluster_controls.py index 310a8a1..6641221 100644 --- a/threatstryker/api/controls/get_kubernetes_cluster_controls.py +++ b/threatstryker/api/controls/get_kubernetes_cluster_controls.py @@ -84,7 +84,8 @@ def sync_detailed( Fetch actions for a given Kubernetes Cluster Args: - body (ModelAgentID): + body (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Fetch actions for a given Kubernetes Cluster Args: - body (ModelAgentID): + body (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Fetch actions for a given Kubernetes Cluster Args: - body (ModelAgentID): + body (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Fetch actions for a given Kubernetes Cluster Args: - body (ModelAgentID): + body (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, + 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/install_agent_over_cloud.py b/threatstryker/api/controls/install_agent_over_cloud.py index f23d15b..a825b5a 100644 --- a/threatstryker/api/controls/install_agent_over_cloud.py +++ b/threatstryker/api/controls/install_agent_over_cloud.py @@ -82,7 +82,10 @@ def sync_detailed( Control agent installation on cloud Args: - body (ModelAgentInstall): + body (ModelAgentInstall): Example: {'cloud_scanner_id': {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, 'cloud_provider': 'aws', 'region_ids': + [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], 'region': + 'region'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +116,10 @@ def sync( Control agent installation on cloud Args: - body (ModelAgentInstall): + body (ModelAgentInstall): Example: {'cloud_scanner_id': {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, 'cloud_provider': 'aws', 'region_ids': + [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], 'region': + 'region'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +145,10 @@ async def asyncio_detailed( Control agent installation on cloud Args: - body (ModelAgentInstall): + body (ModelAgentInstall): Example: {'cloud_scanner_id': {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, 'cloud_provider': 'aws', 'region_ids': + [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], 'region': + 'region'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +177,10 @@ async def asyncio( Control agent installation on cloud Args: - body (ModelAgentInstall): + body (ModelAgentInstall): Example: {'cloud_scanner_id': {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, 'cloud_provider': 'aws', 'region_ids': + [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], 'region': + 'region'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/uninstall_agent_over_cloud.py b/threatstryker/api/controls/uninstall_agent_over_cloud.py index f1503b1..047ef91 100644 --- a/threatstryker/api/controls/uninstall_agent_over_cloud.py +++ b/threatstryker/api/controls/uninstall_agent_over_cloud.py @@ -82,7 +82,10 @@ def sync_detailed( Control agent uninstallation on cloud Args: - body (ModelAgentInstall): + body (ModelAgentInstall): Example: {'cloud_scanner_id': {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, 'cloud_provider': 'aws', 'region_ids': + [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], 'region': + 'region'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +116,10 @@ def sync( Control agent uninstallation on cloud Args: - body (ModelAgentInstall): + body (ModelAgentInstall): Example: {'cloud_scanner_id': {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, 'cloud_provider': 'aws', 'region_ids': + [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], 'region': + 'region'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +145,10 @@ async def asyncio_detailed( Control agent uninstallation on cloud Args: - body (ModelAgentInstall): + body (ModelAgentInstall): Example: {'cloud_scanner_id': {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, 'cloud_provider': 'aws', 'region_ids': + [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], 'region': + 'region'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +177,10 @@ async def asyncio( Control agent uninstallation on cloud Args: - body (ModelAgentInstall): + body (ModelAgentInstall): Example: {'cloud_scanner_id': {'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, 'cloud_provider': 'aws', 'region_ids': + [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], 'region': + 'region'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/controls/upgrade_agent_version.py b/threatstryker/api/controls/upgrade_agent_version.py index 1620f31..829b197 100644 --- a/threatstryker/api/controls/upgrade_agent_version.py +++ b/threatstryker/api/controls/upgrade_agent_version.py @@ -82,7 +82,8 @@ def sync_detailed( Schedule new agent version upgrade Args: - body (ModelAgentUpgrade): + body (ModelAgentUpgrade): Example: {'version': 'version', 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Schedule new agent version upgrade Args: - body (ModelAgentUpgrade): + body (ModelAgentUpgrade): Example: {'version': 'version', 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Schedule new agent version upgrade Args: - body (ModelAgentUpgrade): + body (ModelAgentUpgrade): Example: {'version': 'version', 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Schedule new agent version upgrade Args: - body (ModelAgentUpgrade): + body (ModelAgentUpgrade): Example: {'version': 'version', 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diagnosis/generate_agent_diagnostic_logs.py b/threatstryker/api/diagnosis/generate_agent_diagnostic_logs.py index 642db95..a0bd22b 100644 --- a/threatstryker/api/diagnosis/generate_agent_diagnostic_logs.py +++ b/threatstryker/api/diagnosis/generate_agent_diagnostic_logs.py @@ -82,7 +82,9 @@ def sync_detailed( Generate Agent Diagnostic Logs Args: - body (DiagnosisGenerateAgentDiagnosticLogsRequest): + body (DiagnosisGenerateAgentDiagnosticLogsRequest): Example: {'tail': 0, 'node_ids': + [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Generate Agent Diagnostic Logs Args: - body (DiagnosisGenerateAgentDiagnosticLogsRequest): + body (DiagnosisGenerateAgentDiagnosticLogsRequest): Example: {'tail': 0, 'node_ids': + [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Generate Agent Diagnostic Logs Args: - body (DiagnosisGenerateAgentDiagnosticLogsRequest): + body (DiagnosisGenerateAgentDiagnosticLogsRequest): Example: {'tail': 0, 'node_ids': + [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Generate Agent Diagnostic Logs Args: - body (DiagnosisGenerateAgentDiagnosticLogsRequest): + body (DiagnosisGenerateAgentDiagnosticLogsRequest): Example: {'tail': 0, 'node_ids': + [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diagnosis/generate_cloud_scanner_diagnostic_logs.py b/threatstryker/api/diagnosis/generate_cloud_scanner_diagnostic_logs.py index 00c029d..c21a41d 100644 --- a/threatstryker/api/diagnosis/generate_cloud_scanner_diagnostic_logs.py +++ b/threatstryker/api/diagnosis/generate_cloud_scanner_diagnostic_logs.py @@ -84,7 +84,9 @@ def sync_detailed( Generate Cloud Scanner Diagnostic Logs Args: - body (DiagnosisGenerateCloudScannerDiagnosticLogsRequest): + body (DiagnosisGenerateCloudScannerDiagnosticLogsRequest): Example: {'tail': 0, + 'node_ids': [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( Generate Cloud Scanner Diagnostic Logs Args: - body (DiagnosisGenerateCloudScannerDiagnosticLogsRequest): + body (DiagnosisGenerateCloudScannerDiagnosticLogsRequest): Example: {'tail': 0, + 'node_ids': [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( Generate Cloud Scanner Diagnostic Logs Args: - body (DiagnosisGenerateCloudScannerDiagnosticLogsRequest): + body (DiagnosisGenerateCloudScannerDiagnosticLogsRequest): Example: {'tail': 0, + 'node_ids': [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( Generate Cloud Scanner Diagnostic Logs Args: - body (DiagnosisGenerateCloudScannerDiagnosticLogsRequest): + body (DiagnosisGenerateCloudScannerDiagnosticLogsRequest): Example: {'tail': 0, + 'node_ids': [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diagnosis/generate_console_diagnostic_logs.py b/threatstryker/api/diagnosis/generate_console_diagnostic_logs.py index 95ab96e..a6baf55 100644 --- a/threatstryker/api/diagnosis/generate_console_diagnostic_logs.py +++ b/threatstryker/api/diagnosis/generate_console_diagnostic_logs.py @@ -82,7 +82,7 @@ def sync_detailed( Generate Console Diagnostic Logs Args: - body (DiagnosisGenerateConsoleDiagnosticLogsRequest): + body (DiagnosisGenerateConsoleDiagnosticLogsRequest): Example: {'tail': 0}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Generate Console Diagnostic Logs Args: - body (DiagnosisGenerateConsoleDiagnosticLogsRequest): + body (DiagnosisGenerateConsoleDiagnosticLogsRequest): Example: {'tail': 0}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Generate Console Diagnostic Logs Args: - body (DiagnosisGenerateConsoleDiagnosticLogsRequest): + body (DiagnosisGenerateConsoleDiagnosticLogsRequest): Example: {'tail': 0}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Generate Console Diagnostic Logs Args: - body (DiagnosisGenerateConsoleDiagnosticLogsRequest): + body (DiagnosisGenerateConsoleDiagnosticLogsRequest): Example: {'tail': 0}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diagnosis/update_agent_diagnostic_logs_status.py b/threatstryker/api/diagnosis/update_agent_diagnostic_logs_status.py index fa16cb8..99bfeca 100644 --- a/threatstryker/api/diagnosis/update_agent_diagnostic_logs_status.py +++ b/threatstryker/api/diagnosis/update_agent_diagnostic_logs_status.py @@ -85,7 +85,8 @@ def sync_detailed( Args: node_id (str): - body (DiagnosisDiagnosticLogsStatus): + body (DiagnosisDiagnosticLogsStatus): Example: {'message': 'message', 'status': + 'status'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -119,7 +120,8 @@ def sync( Args: node_id (str): - body (DiagnosisDiagnosticLogsStatus): + body (DiagnosisDiagnosticLogsStatus): Example: {'message': 'message', 'status': + 'status'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -148,7 +150,8 @@ async def asyncio_detailed( Args: node_id (str): - body (DiagnosisDiagnosticLogsStatus): + body (DiagnosisDiagnosticLogsStatus): Example: {'message': 'message', 'status': + 'status'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +183,8 @@ async def asyncio( Args: node_id (str): - body (DiagnosisDiagnosticLogsStatus): + body (DiagnosisDiagnosticLogsStatus): Example: {'message': 'message', 'status': + 'status'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diff_add/diff_add_cloud_compliance.py b/threatstryker/api/diff_add/diff_add_cloud_compliance.py index 780e297..a40e55e 100644 --- a/threatstryker/api/diff_add/diff_add_cloud_compliance.py +++ b/threatstryker/api/diff_add/diff_add_cloud_compliance.py @@ -109,7 +109,16 @@ def sync_detailed( Get Cloud Compliance Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -147,7 +156,16 @@ def sync( Get Cloud Compliance Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +198,16 @@ async def asyncio_detailed( Get Cloud Compliance Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -216,7 +243,16 @@ async def asyncio( Get Cloud Compliance Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diff_add/diff_add_compliance.py b/threatstryker/api/diff_add/diff_add_compliance.py index 1926ae2..4742e32 100644 --- a/threatstryker/api/diff_add/diff_add_compliance.py +++ b/threatstryker/api/diff_add/diff_add_compliance.py @@ -109,7 +109,16 @@ def sync_detailed( Get Compliance Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -147,7 +156,16 @@ def sync( Get Compliance Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +198,16 @@ async def asyncio_detailed( Get Compliance Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -216,7 +243,16 @@ async def asyncio( Get Compliance Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diff_add/diff_add_malware.py b/threatstryker/api/diff_add/diff_add_malware.py index ded8a51..f20dc77 100644 --- a/threatstryker/api/diff_add/diff_add_malware.py +++ b/threatstryker/api/diff_add/diff_add_malware.py @@ -109,7 +109,16 @@ def sync_detailed( Get Malware Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -147,7 +156,16 @@ def sync( Get Malware Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +198,16 @@ async def asyncio_detailed( Get Malware Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -216,7 +243,16 @@ async def asyncio( Get Malware Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diff_add/diff_add_secret.py b/threatstryker/api/diff_add/diff_add_secret.py index e0aed93..404f218 100644 --- a/threatstryker/api/diff_add/diff_add_secret.py +++ b/threatstryker/api/diff_add/diff_add_secret.py @@ -109,7 +109,16 @@ def sync_detailed( Get Secret Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -147,7 +156,16 @@ def sync( Get Secret Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +198,16 @@ async def asyncio_detailed( Get Secret Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -216,7 +243,16 @@ async def asyncio( Get Secret Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/diff_add/diff_add_vulnerability.py b/threatstryker/api/diff_add/diff_add_vulnerability.py index 308708a..2d196c9 100644 --- a/threatstryker/api/diff_add/diff_add_vulnerability.py +++ b/threatstryker/api/diff_add/diff_add_vulnerability.py @@ -109,7 +109,16 @@ def sync_detailed( Get Vulnerability Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -147,7 +156,16 @@ def sync( Get Vulnerability Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +198,16 @@ async def asyncio_detailed( Get Vulnerability Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -216,7 +243,16 @@ async def asyncio( Get Vulnerability Diff between two scans Args: - body (ModelScanCompareReq): + body (ModelScanCompareReq): Example: {'to_scan_id': 'to_scan_id', 'base_scan_id': + 'base_scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/add_generative_ai_integration_bedrock.py b/threatstryker/api/generative_ai/add_generative_ai_integration_bedrock.py index 73dd42f..4ae302f 100644 --- a/threatstryker/api/generative_ai/add_generative_ai_integration_bedrock.py +++ b/threatstryker/api/generative_ai/add_generative_ai_integration_bedrock.py @@ -84,7 +84,9 @@ def sync_detailed( Add a new AWS Bedrock Generative AI Integration Args: - body (ModelAddGenerativeAiBedrockIntegration): + body (ModelAddGenerativeAiBedrockIntegration): Example: {'aws_region': 'us-east-1', + 'aws_access_key': 'aws_access_key', 'model_id': 'anthropic.claude-v2', 'aws_secret_key': + 'aws_secret_key', 'use_iam_role': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( Add a new AWS Bedrock Generative AI Integration Args: - body (ModelAddGenerativeAiBedrockIntegration): + body (ModelAddGenerativeAiBedrockIntegration): Example: {'aws_region': 'us-east-1', + 'aws_access_key': 'aws_access_key', 'model_id': 'anthropic.claude-v2', 'aws_secret_key': + 'aws_secret_key', 'use_iam_role': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( Add a new AWS Bedrock Generative AI Integration Args: - body (ModelAddGenerativeAiBedrockIntegration): + body (ModelAddGenerativeAiBedrockIntegration): Example: {'aws_region': 'us-east-1', + 'aws_access_key': 'aws_access_key', 'model_id': 'anthropic.claude-v2', 'aws_secret_key': + 'aws_secret_key', 'use_iam_role': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( Add a new AWS Bedrock Generative AI Integration Args: - body (ModelAddGenerativeAiBedrockIntegration): + body (ModelAddGenerativeAiBedrockIntegration): Example: {'aws_region': 'us-east-1', + 'aws_access_key': 'aws_access_key', 'model_id': 'anthropic.claude-v2', 'aws_secret_key': + 'aws_secret_key', 'use_iam_role': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/add_generative_ai_integration_open_ai.py b/threatstryker/api/generative_ai/add_generative_ai_integration_open_ai.py index 1f43ead..b05afbe 100644 --- a/threatstryker/api/generative_ai/add_generative_ai_integration_open_ai.py +++ b/threatstryker/api/generative_ai/add_generative_ai_integration_open_ai.py @@ -84,7 +84,8 @@ def sync_detailed( Add a new OpenAI Generative AI Integration Args: - body (ModelAddGenerativeAiOpenAIIntegration): + body (ModelAddGenerativeAiOpenAIIntegration): Example: {'api_key': 'api_key', 'model_id': + 'gpt-4'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Add a new OpenAI Generative AI Integration Args: - body (ModelAddGenerativeAiOpenAIIntegration): + body (ModelAddGenerativeAiOpenAIIntegration): Example: {'api_key': 'api_key', 'model_id': + 'gpt-4'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Add a new OpenAI Generative AI Integration Args: - body (ModelAddGenerativeAiOpenAIIntegration): + body (ModelAddGenerativeAiOpenAIIntegration): Example: {'api_key': 'api_key', 'model_id': + 'gpt-4'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Add a new OpenAI Generative AI Integration Args: - body (ModelAddGenerativeAiOpenAIIntegration): + body (ModelAddGenerativeAiOpenAIIntegration): Example: {'api_key': 'api_key', 'model_id': + 'gpt-4'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/generative_ai_integration_cloud_posture_query.py b/threatstryker/api/generative_ai/generative_ai_integration_cloud_posture_query.py index 4efcc4b..1eedd9a 100644 --- a/threatstryker/api/generative_ai/generative_ai_integration_cloud_posture_query.py +++ b/threatstryker/api/generative_ai/generative_ai_integration_cloud_posture_query.py @@ -84,7 +84,10 @@ def sync_detailed( Send Cloud Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationCloudPostureRequest): + body (ModelGenerativeAiIntegrationCloudPostureRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'service': 'service', 'cloud_provider': 'cloud_provider', + 'query_type': 'remediation', 'title': 'title', 'compliance_check_type': + 'compliance_check_type', 'group': 'group'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +118,10 @@ def sync( Send Cloud Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationCloudPostureRequest): + body (ModelGenerativeAiIntegrationCloudPostureRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'service': 'service', 'cloud_provider': 'cloud_provider', + 'query_type': 'remediation', 'title': 'title', 'compliance_check_type': + 'compliance_check_type', 'group': 'group'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +147,10 @@ async def asyncio_detailed( Send Cloud Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationCloudPostureRequest): + body (ModelGenerativeAiIntegrationCloudPostureRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'service': 'service', 'cloud_provider': 'cloud_provider', + 'query_type': 'remediation', 'title': 'title', 'compliance_check_type': + 'compliance_check_type', 'group': 'group'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +179,10 @@ async def asyncio( Send Cloud Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationCloudPostureRequest): + body (ModelGenerativeAiIntegrationCloudPostureRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'service': 'service', 'cloud_provider': 'cloud_provider', + 'query_type': 'remediation', 'title': 'title', 'compliance_check_type': + 'compliance_check_type', 'group': 'group'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/generative_ai_integration_kubernetes_posture_query.py b/threatstryker/api/generative_ai/generative_ai_integration_kubernetes_posture_query.py index 68bb171..338a148 100644 --- a/threatstryker/api/generative_ai/generative_ai_integration_kubernetes_posture_query.py +++ b/threatstryker/api/generative_ai/generative_ai_integration_kubernetes_posture_query.py @@ -84,7 +84,9 @@ def sync_detailed( Send Kubernetes Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationKubernetesPostureRequest): + body (ModelGenerativeAiIntegrationKubernetesPostureRequest): Example: {'integration_id': + 0, 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( Send Kubernetes Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationKubernetesPostureRequest): + body (ModelGenerativeAiIntegrationKubernetesPostureRequest): Example: {'integration_id': + 0, 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( Send Kubernetes Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationKubernetesPostureRequest): + body (ModelGenerativeAiIntegrationKubernetesPostureRequest): Example: {'integration_id': + 0, 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( Send Kubernetes Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationKubernetesPostureRequest): + body (ModelGenerativeAiIntegrationKubernetesPostureRequest): Example: {'integration_id': + 0, 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/generative_ai_integration_linux_posture_query.py b/threatstryker/api/generative_ai/generative_ai_integration_linux_posture_query.py index 016ff63..036902c 100644 --- a/threatstryker/api/generative_ai/generative_ai_integration_linux_posture_query.py +++ b/threatstryker/api/generative_ai/generative_ai_integration_linux_posture_query.py @@ -84,7 +84,9 @@ def sync_detailed( Send Linux Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationLinuxPostureRequest): + body (ModelGenerativeAiIntegrationLinuxPostureRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type', 'test_number': 'test_number'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( Send Linux Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationLinuxPostureRequest): + body (ModelGenerativeAiIntegrationLinuxPostureRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type', 'test_number': 'test_number'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( Send Linux Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationLinuxPostureRequest): + body (ModelGenerativeAiIntegrationLinuxPostureRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type', 'test_number': 'test_number'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( Send Linux Posture query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationLinuxPostureRequest): + body (ModelGenerativeAiIntegrationLinuxPostureRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type', 'test_number': 'test_number'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/generative_ai_integration_malware_query.py b/threatstryker/api/generative_ai/generative_ai_integration_malware_query.py index 7fa8e43..e260d8d 100644 --- a/threatstryker/api/generative_ai/generative_ai_integration_malware_query.py +++ b/threatstryker/api/generative_ai/generative_ai_integration_malware_query.py @@ -82,7 +82,8 @@ def sync_detailed( Send Malware query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationMalwareRequest): + body (ModelGenerativeAiIntegrationMalwareRequest): Example: {'integration_id': 0, + 'rule_name': 'rule_name', 'query_type': 'remediation', 'info': 'info'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Send Malware query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationMalwareRequest): + body (ModelGenerativeAiIntegrationMalwareRequest): Example: {'integration_id': 0, + 'rule_name': 'rule_name', 'query_type': 'remediation', 'info': 'info'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Send Malware query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationMalwareRequest): + body (ModelGenerativeAiIntegrationMalwareRequest): Example: {'integration_id': 0, + 'rule_name': 'rule_name', 'query_type': 'remediation', 'info': 'info'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Send Malware query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationMalwareRequest): + body (ModelGenerativeAiIntegrationMalwareRequest): Example: {'integration_id': 0, + 'rule_name': 'rule_name', 'query_type': 'remediation', 'info': 'info'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/generative_ai_integration_runtime_incident_query.py b/threatstryker/api/generative_ai/generative_ai_integration_runtime_incident_query.py index bd4fdef..7e7e578 100644 --- a/threatstryker/api/generative_ai/generative_ai_integration_runtime_incident_query.py +++ b/threatstryker/api/generative_ai/generative_ai_integration_runtime_incident_query.py @@ -84,7 +84,9 @@ def sync_detailed( Send Runtime Incident query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationRuntimeIncidentRequest): + body (ModelGenerativeAiIntegrationRuntimeIncidentRequest): Example: {'summary': + 'summary', 'event_type': 'event_type', 'integration_id': 0, 'query_type': 'remediation', + 'category': 'category'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( Send Runtime Incident query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationRuntimeIncidentRequest): + body (ModelGenerativeAiIntegrationRuntimeIncidentRequest): Example: {'summary': + 'summary', 'event_type': 'event_type', 'integration_id': 0, 'query_type': 'remediation', + 'category': 'category'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( Send Runtime Incident query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationRuntimeIncidentRequest): + body (ModelGenerativeAiIntegrationRuntimeIncidentRequest): Example: {'summary': + 'summary', 'event_type': 'event_type', 'integration_id': 0, 'query_type': 'remediation', + 'category': 'category'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( Send Runtime Incident query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationRuntimeIncidentRequest): + body (ModelGenerativeAiIntegrationRuntimeIncidentRequest): Example: {'summary': + 'summary', 'event_type': 'event_type', 'integration_id': 0, 'query_type': 'remediation', + 'category': 'category'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/generative_ai_integration_secret_query.py b/threatstryker/api/generative_ai/generative_ai_integration_secret_query.py index 171780b..cbabe0d 100644 --- a/threatstryker/api/generative_ai/generative_ai_integration_secret_query.py +++ b/threatstryker/api/generative_ai/generative_ai_integration_secret_query.py @@ -82,7 +82,8 @@ def sync_detailed( Send Secret query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationSecretRequest): + body (ModelGenerativeAiIntegrationSecretRequest): Example: {'integration_id': 0, 'name': + 'name', 'query_type': 'remediation'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Send Secret query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationSecretRequest): + body (ModelGenerativeAiIntegrationSecretRequest): Example: {'integration_id': 0, 'name': + 'name', 'query_type': 'remediation'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Send Secret query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationSecretRequest): + body (ModelGenerativeAiIntegrationSecretRequest): Example: {'integration_id': 0, 'name': + 'name', 'query_type': 'remediation'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Send Secret query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationSecretRequest): + body (ModelGenerativeAiIntegrationSecretRequest): Example: {'integration_id': 0, 'name': + 'name', 'query_type': 'remediation'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/generative_ai/generative_ai_integration_vulnerability_query.py b/threatstryker/api/generative_ai/generative_ai_integration_vulnerability_query.py index 5fab382..eb6eb2b 100644 --- a/threatstryker/api/generative_ai/generative_ai_integration_vulnerability_query.py +++ b/threatstryker/api/generative_ai/generative_ai_integration_vulnerability_query.py @@ -84,7 +84,9 @@ def sync_detailed( Send Vulnerability query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationVulnerabilityRequest): + body (ModelGenerativeAiIntegrationVulnerabilityRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'cve_id': 'cve_id', 'cve_type': 'cve_type', 'query_type': + 'remediation', 'cve_caused_by_package': 'cve_caused_by_package'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( Send Vulnerability query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationVulnerabilityRequest): + body (ModelGenerativeAiIntegrationVulnerabilityRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'cve_id': 'cve_id', 'cve_type': 'cve_type', 'query_type': + 'remediation', 'cve_caused_by_package': 'cve_caused_by_package'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( Send Vulnerability query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationVulnerabilityRequest): + body (ModelGenerativeAiIntegrationVulnerabilityRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'cve_id': 'cve_id', 'cve_type': 'cve_type', 'query_type': + 'remediation', 'cve_caused_by_package': 'cve_caused_by_package'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( Send Vulnerability query to Generative AI Integration Args: - body (ModelGenerativeAiIntegrationVulnerabilityRequest): + body (ModelGenerativeAiIntegrationVulnerabilityRequest): Example: {'integration_id': 0, + 'remediation_format': 'all', 'cve_id': 'cve_id', 'cve_type': 'cve_type', 'query_type': + 'remediation', 'cve_caused_by_package': 'cve_caused_by_package'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/integration/add_integration.py b/threatstryker/api/integration/add_integration.py index 1a04db9..3e437c3 100644 --- a/threatstryker/api/integration/add_integration.py +++ b/threatstryker/api/integration/add_integration.py @@ -84,7 +84,19 @@ def sync_detailed( Add a new supported integration Args: - body (ModelIntegrationAddReq): + body (ModelIntegrationAddReq): Example: {'notification_type': 'notification_type', + 'send_summary': True, 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, + {'node_type': 'image', 'node_id': 'node_id'}]}, 'integration_type': 'integration_type', + 'config': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +127,19 @@ def sync( Add a new supported integration Args: - body (ModelIntegrationAddReq): + body (ModelIntegrationAddReq): Example: {'notification_type': 'notification_type', + 'send_summary': True, 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, + {'node_type': 'image', 'node_id': 'node_id'}]}, 'integration_type': 'integration_type', + 'config': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +165,19 @@ async def asyncio_detailed( Add a new supported integration Args: - body (ModelIntegrationAddReq): + body (ModelIntegrationAddReq): Example: {'notification_type': 'notification_type', + 'send_summary': True, 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, + {'node_type': 'image', 'node_id': 'node_id'}]}, 'integration_type': 'integration_type', + 'config': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +206,19 @@ async def asyncio( Add a new supported integration Args: - body (ModelIntegrationAddReq): + body (ModelIntegrationAddReq): Example: {'notification_type': 'notification_type', + 'send_summary': True, 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, + {'node_type': 'image', 'node_id': 'node_id'}]}, 'integration_type': 'integration_type', + 'config': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/integration/delete_integrations.py b/threatstryker/api/integration/delete_integrations.py index 496005a..1379552 100644 --- a/threatstryker/api/integration/delete_integrations.py +++ b/threatstryker/api/integration/delete_integrations.py @@ -82,7 +82,7 @@ def sync_detailed( Delete integrations Args: - body (ModelDeleteIntegrationReq): + body (ModelDeleteIntegrationReq): Example: {'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Delete integrations Args: - body (ModelDeleteIntegrationReq): + body (ModelDeleteIntegrationReq): Example: {'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Delete integrations Args: - body (ModelDeleteIntegrationReq): + body (ModelDeleteIntegrationReq): Example: {'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Delete integrations Args: - body (ModelDeleteIntegrationReq): + body (ModelDeleteIntegrationReq): Example: {'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/integration/update_integration.py b/threatstryker/api/integration/update_integration.py index 6940aab..4777d45 100644 --- a/threatstryker/api/integration/update_integration.py +++ b/threatstryker/api/integration/update_integration.py @@ -87,7 +87,19 @@ def sync_detailed( Args: integration_id (str): - body (ModelIntegrationUpdateReq): + body (ModelIntegrationUpdateReq): Example: {'notification_type': 'notification_type', + 'send_summary': True, 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, + {'node_type': 'image', 'node_id': 'node_id'}]}, 'id': 0, 'integration_type': + 'integration_type', 'config': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +133,19 @@ def sync( Args: integration_id (str): - body (ModelIntegrationUpdateReq): + body (ModelIntegrationUpdateReq): Example: {'notification_type': 'notification_type', + 'send_summary': True, 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, + {'node_type': 'image', 'node_id': 'node_id'}]}, 'id': 0, 'integration_type': + 'integration_type', 'config': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +174,19 @@ async def asyncio_detailed( Args: integration_id (str): - body (ModelIntegrationUpdateReq): + body (ModelIntegrationUpdateReq): Example: {'notification_type': 'notification_type', + 'send_summary': True, 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, + {'node_type': 'image', 'node_id': 'node_id'}]}, 'id': 0, 'integration_type': + 'integration_type', 'config': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +218,19 @@ async def asyncio( Args: integration_id (str): - body (ModelIntegrationUpdateReq): + body (ModelIntegrationUpdateReq): Example: {'notification_type': 'notification_type', + 'send_summary': True, 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, + {'node_type': 'image', 'node_id': 'node_id'}]}, 'id': 0, 'integration_type': + 'integration_type', 'config': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_api_endpoints.py b/threatstryker/api/lookup/get_api_endpoints.py index d5d335d..36c6099 100644 --- a/threatstryker/api/lookup/get_api_endpoints.py +++ b/threatstryker/api/lookup/get_api_endpoints.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with API endpoints Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with API endpoints Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with API endpoints Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with API endpoints Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_cloud_compliances.py b/threatstryker/api/lookup/get_cloud_compliances.py index dd88674..1196974 100644 --- a/threatstryker/api/lookup/get_cloud_compliances.py +++ b/threatstryker/api/lookup/get_cloud_compliances.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with cloud-compliances Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with cloud-compliances Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with cloud-compliances Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with cloud-compliances Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_cloud_resources.py b/threatstryker/api/lookup/get_cloud_resources.py index 5028670..a9a4680 100644 --- a/threatstryker/api/lookup/get_cloud_resources.py +++ b/threatstryker/api/lookup/get_cloud_resources.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve the cloud resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve the cloud resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve the cloud resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve the cloud resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_compliance_controls.py b/threatstryker/api/lookup/get_compliance_controls.py index 2e08a89..fcb5097 100644 --- a/threatstryker/api/lookup/get_compliance_controls.py +++ b/threatstryker/api/lookup/get_compliance_controls.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with cloud compliance controls Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with cloud compliance controls Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with cloud compliance controls Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with cloud compliance controls Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_compliances.py b/threatstryker/api/lookup/get_compliances.py index b2991d4..6226bcb 100644 --- a/threatstryker/api/lookup/get_compliances.py +++ b/threatstryker/api/lookup/get_compliances.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with compliances Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with compliances Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with compliances Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with compliances Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_container_images.py b/threatstryker/api/lookup/get_container_images.py index 33697b3..7aac507 100644 --- a/threatstryker/api/lookup/get_container_images.py +++ b/threatstryker/api/lookup/get_container_images.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with images Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with images Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with images Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with images Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_containers.py b/threatstryker/api/lookup/get_containers.py index 68a0361..f600a17 100644 --- a/threatstryker/api/lookup/get_containers.py +++ b/threatstryker/api/lookup/get_containers.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with containers Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with containers Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with containers Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with containers Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_exploitable_alerts.py b/threatstryker/api/lookup/get_exploitable_alerts.py new file mode 100644 index 0000000..d096f73 --- /dev/null +++ b/threatstryker/api/lookup/get_exploitable_alerts.py @@ -0,0 +1,201 @@ +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.lookup_lookup_filter import LookupLookupFilter +from ...models.model_exploitable_alert import ModelExploitableAlert +from ...types import Response + + +def _get_kwargs( + *, + body: LookupLookupFilter, +) -> Dict[str, Any]: + headers: Dict[str, Any] = {} + + _kwargs: Dict[str, Any] = { + "method": "post", + "url": "/deepfence/lookup/exploitable-alerts", + } + + _body = body.to_dict() + + _kwargs["json"] = _body + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + if response.status_code == HTTPStatus.OK: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = ModelExploitableAlert.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + """Get Exploitable Alerts + + Retrieve exploitable alerts resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelExploitableAlert']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + """Get Exploitable Alerts + + Retrieve exploitable alerts resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelExploitableAlert']] + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + """Get Exploitable Alerts + + Retrieve exploitable alerts resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelExploitableAlert']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + """Get Exploitable Alerts + + Retrieve exploitable alerts resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelExploitableAlert']] + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/threatstryker/api/lookup/get_file_alerts.py b/threatstryker/api/lookup/get_file_alerts.py index 700de84..ad83b07 100644 --- a/threatstryker/api/lookup/get_file_alerts.py +++ b/threatstryker/api/lookup/get_file_alerts.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve file alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve file alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve file alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve file alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_filesystem_alert_rules.py b/threatstryker/api/lookup/get_filesystem_alert_rules.py index 37e9f26..ff9322a 100644 --- a/threatstryker/api/lookup/get_filesystem_alert_rules.py +++ b/threatstryker/api/lookup/get_filesystem_alert_rules.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve file alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve file alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve file alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve file alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_hosts.py b/threatstryker/api/lookup/get_hosts.py index 5d69920..2e6e899 100644 --- a/threatstryker/api/lookup/get_hosts.py +++ b/threatstryker/api/lookup/get_hosts.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with hosts Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with hosts Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with hosts Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with hosts Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_kubernetes_clusters.py b/threatstryker/api/lookup/get_kubernetes_clusters.py index 98d5a73..79c93d5 100644 --- a/threatstryker/api/lookup/get_kubernetes_clusters.py +++ b/threatstryker/api/lookup/get_kubernetes_clusters.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with k8s clusters Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with k8s clusters Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with k8s clusters Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with k8s clusters Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_malware_rules.py b/threatstryker/api/lookup/get_malware_rules.py new file mode 100644 index 0000000..0e8b3be --- /dev/null +++ b/threatstryker/api/lookup/get_malware_rules.py @@ -0,0 +1,201 @@ +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.lookup_lookup_filter import LookupLookupFilter +from ...models.model_malware_rule import ModelMalwareRule +from ...types import Response + + +def _get_kwargs( + *, + body: LookupLookupFilter, +) -> Dict[str, Any]: + headers: Dict[str, Any] = {} + + _kwargs: Dict[str, Any] = { + "method": "post", + "url": "/deepfence/lookup/malware-rules", + } + + _body = body.to_dict() + + _kwargs["json"] = _body + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelMalwareRule"]]]: + if response.status_code == HTTPStatus.OK: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = ModelMalwareRule.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelMalwareRule"]]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelMalwareRule"]]]: + """Get Malware Rules + + Retrieve malware rule resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelMalwareRule']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelMalwareRule"]]]: + """Get Malware Rules + + Retrieve malware rule resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelMalwareRule']] + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelMalwareRule"]]]: + """Get Malware Rules + + Retrieve malware rule resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelMalwareRule']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelMalwareRule"]]]: + """Get Malware Rules + + Retrieve malware rule resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelMalwareRule']] + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/threatstryker/api/lookup/get_malwares.py b/threatstryker/api/lookup/get_malwares.py index 3c245a0..124ff6e 100644 --- a/threatstryker/api/lookup/get_malwares.py +++ b/threatstryker/api/lookup/get_malwares.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with malwares Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with malwares Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with malwares Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with malwares Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_network_alert_rules.py b/threatstryker/api/lookup/get_network_alert_rules.py index fa3080e..964f1bd 100644 --- a/threatstryker/api/lookup/get_network_alert_rules.py +++ b/threatstryker/api/lookup/get_network_alert_rules.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve network alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve network alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve network alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve network alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_network_alerts.py b/threatstryker/api/lookup/get_network_alerts.py index 5939f32..3bf341f 100644 --- a/threatstryker/api/lookup/get_network_alerts.py +++ b/threatstryker/api/lookup/get_network_alerts.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve network alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve network alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve network alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve network alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_network_violations.py b/threatstryker/api/lookup/get_network_violations.py index 0312561..de7bc43 100644 --- a/threatstryker/api/lookup/get_network_violations.py +++ b/threatstryker/api/lookup/get_network_violations.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve network violations resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve network violations resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve network violations resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve network violations resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_pods.py b/threatstryker/api/lookup/get_pods.py index b9c1c16..37fb0a1 100644 --- a/threatstryker/api/lookup/get_pods.py +++ b/threatstryker/api/lookup/get_pods.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with pods Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with pods Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with pods Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with pods Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_process_alert_rules.py b/threatstryker/api/lookup/get_process_alert_rules.py index 15ba8f0..c01edc1 100644 --- a/threatstryker/api/lookup/get_process_alert_rules.py +++ b/threatstryker/api/lookup/get_process_alert_rules.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve process alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve process alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve process alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve process alert rule resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_process_alerts.py b/threatstryker/api/lookup/get_process_alerts.py index 2714919..da0d266 100644 --- a/threatstryker/api/lookup/get_process_alerts.py +++ b/threatstryker/api/lookup/get_process_alerts.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve process alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve process alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve process alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve process alerts resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_processes.py b/threatstryker/api/lookup/get_processes.py index 839bd99..52f1ec9 100644 --- a/threatstryker/api/lookup/get_processes.py +++ b/threatstryker/api/lookup/get_processes.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with processes Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with processes Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with processes Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with processes Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_quarantine_violations.py b/threatstryker/api/lookup/get_quarantine_violations.py index 9419666..b2e0516 100644 --- a/threatstryker/api/lookup/get_quarantine_violations.py +++ b/threatstryker/api/lookup/get_quarantine_violations.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve quarantine violations resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve quarantine violations resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve quarantine violations resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve quarantine violations resources Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_registry_account.py b/threatstryker/api/lookup/get_registry_account.py index 3982335..124045e 100644 --- a/threatstryker/api/lookup/get_registry_account.py +++ b/threatstryker/api/lookup/get_registry_account.py @@ -89,7 +89,9 @@ def sync_detailed( List all the images present in the given registry Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( List all the images present in the given registry Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( List all the images present in the given registry Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( List all the images present in the given registry Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_secret_rules.py b/threatstryker/api/lookup/get_secret_rules.py new file mode 100644 index 0000000..16bae43 --- /dev/null +++ b/threatstryker/api/lookup/get_secret_rules.py @@ -0,0 +1,201 @@ +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.lookup_lookup_filter import LookupLookupFilter +from ...models.model_secret_rule import ModelSecretRule +from ...types import Response + + +def _get_kwargs( + *, + body: LookupLookupFilter, +) -> Dict[str, Any]: + headers: Dict[str, Any] = {} + + _kwargs: Dict[str, Any] = { + "method": "post", + "url": "/deepfence/lookup/secret-rules", + } + + _body = body.to_dict() + + _kwargs["json"] = _body + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelSecretRule"]]]: + if response.status_code == HTTPStatus.OK: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = ModelSecretRule.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelSecretRule"]]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelSecretRule"]]]: + """Get Secret Rules + + Retrieve secret rule resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelSecretRule']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelSecretRule"]]]: + """Get Secret Rules + + Retrieve secret rule resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelSecretRule']] + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelSecretRule"]]]: + """Get Secret Rules + + Retrieve secret rule resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelSecretRule']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: LookupLookupFilter, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelSecretRule"]]]: + """Get Secret Rules + + Retrieve secret rule resources + + Args: + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelSecretRule']] + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/threatstryker/api/lookup/get_secrets.py b/threatstryker/api/lookup/get_secrets.py index d91d26c..ef23d3b 100644 --- a/threatstryker/api/lookup/get_secrets.py +++ b/threatstryker/api/lookup/get_secrets.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with secrets Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with secrets Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with secrets Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with secrets Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/lookup/get_vulnerabilities.py b/threatstryker/api/lookup/get_vulnerabilities.py index a77dccc..e5c6ecf 100644 --- a/threatstryker/api/lookup/get_vulnerabilities.py +++ b/threatstryker/api/lookup/get_vulnerabilities.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve all the data associated with vulnerabilities Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve all the data associated with vulnerabilities Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve all the data associated with vulnerabilities Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve all the data associated with vulnerabilities Args: - body (LookupLookupFilter): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_vulerability_rules.py b/threatstryker/api/lookup/get_vulnerability_rules.py similarity index 79% rename from threatstryker/api/search/search_vulerability_rules.py rename to threatstryker/api/lookup/get_vulnerability_rules.py index c77dc06..17805af 100644 --- a/threatstryker/api/search/search_vulerability_rules.py +++ b/threatstryker/api/lookup/get_vulnerability_rules.py @@ -7,20 +7,20 @@ from ...client import AuthenticatedClient, Client from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.lookup_lookup_filter import LookupLookupFilter from ...models.model_vulnerability_rule import ModelVulnerabilityRule -from ...models.search_search_node_req import SearchSearchNodeReq from ...types import Response def _get_kwargs( *, - body: SearchSearchNodeReq, + body: LookupLookupFilter, ) -> Dict[str, Any]: headers: Dict[str, Any] = {} _kwargs: Dict[str, Any] = { "method": "post", - "url": "/deepfence/search/vulnerability-rules", + "url": "/deepfence/lookup/vulnerability-rules", } _body = body.to_dict() @@ -82,14 +82,16 @@ def _build_response( def sync_detailed( *, client: AuthenticatedClient, - body: SearchSearchNodeReq, + body: LookupLookupFilter, ) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: - """Search Vulnerability Rules + """Get Vulnerability Rules - Search across all the data associated with vulnerability rules + Retrieve vulnerability rule resources Args: - body (SearchSearchNodeReq): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,14 +115,16 @@ def sync_detailed( def sync( *, client: AuthenticatedClient, - body: SearchSearchNodeReq, + body: LookupLookupFilter, ) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: - """Search Vulnerability Rules + """Get Vulnerability Rules - Search across all the data associated with vulnerability rules + Retrieve vulnerability rule resources Args: - body (SearchSearchNodeReq): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,14 +143,16 @@ def sync( async def asyncio_detailed( *, client: AuthenticatedClient, - body: SearchSearchNodeReq, + body: LookupLookupFilter, ) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: - """Search Vulnerability Rules + """Get Vulnerability Rules - Search across all the data associated with vulnerability rules + Retrieve vulnerability rule resources Args: - body (SearchSearchNodeReq): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,14 +174,16 @@ async def asyncio_detailed( async def asyncio( *, client: AuthenticatedClient, - body: SearchSearchNodeReq, + body: LookupLookupFilter, ) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: - """Search Vulnerability Rules + """Get Vulnerability Rules - Search across all the data associated with vulnerability rules + Retrieve vulnerability rule resources Args: - body (SearchSearchNodeReq): + body (LookupLookupFilter): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/malware_scan/count_results_malware_scan.py b/threatstryker/api/malware_scan/count_results_malware_scan.py index 062584b..29b9088 100644 --- a/threatstryker/api/malware_scan/count_results_malware_scan.py +++ b/threatstryker/api/malware_scan/count_results_malware_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Malware Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Malware Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Malware Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Malware Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/malware_scan/list_malware_scan.py b/threatstryker/api/malware_scan/list_malware_scan.py index ee3eb35..6ab2a04 100644 --- a/threatstryker/api/malware_scan/list_malware_scan.py +++ b/threatstryker/api/malware_scan/list_malware_scan.py @@ -84,7 +84,16 @@ def sync_detailed( Get Malware Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Get Malware Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Get Malware Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Get Malware Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/malware_scan/results_class_malware_scan.py b/threatstryker/api/malware_scan/results_class_malware_scan.py index 4158084..b832971 100644 --- a/threatstryker/api/malware_scan/results_class_malware_scan.py +++ b/threatstryker/api/malware_scan/results_class_malware_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Malware Scans detected class names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Malware Scans detected class names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Malware Scans detected class names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Malware Scans detected class names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/malware_scan/results_malware_scan.py b/threatstryker/api/malware_scan/results_malware_scan.py index c0a15d5..af80d4d 100644 --- a/threatstryker/api/malware_scan/results_malware_scan.py +++ b/threatstryker/api/malware_scan/results_malware_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Malware Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Malware Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Malware Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Malware Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/malware_scan/results_rules_malware_scan.py b/threatstryker/api/malware_scan/results_rules_malware_scan.py index 62d5dd8..24648c4 100644 --- a/threatstryker/api/malware_scan/results_rules_malware_scan.py +++ b/threatstryker/api/malware_scan/results_rules_malware_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Malware Scans detected rules names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Malware Scans detected rules names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Malware Scans detected rules names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Malware Scans detected rules names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/malware_scan/start_malware_scan.py b/threatstryker/api/malware_scan/start_malware_scan.py index 12e24bc..384ac20 100644 --- a/threatstryker/api/malware_scan/start_malware_scan.py +++ b/threatstryker/api/malware_scan/start_malware_scan.py @@ -84,7 +84,13 @@ def sync_detailed( Start Malware Scan on agent or registry Args: - body (ModelMalwareScanTriggerReq): + body (ModelMalwareScanTriggerReq): Example: {'is_priority': True, + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, + 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, + 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +121,13 @@ def sync( Start Malware Scan on agent or registry Args: - body (ModelMalwareScanTriggerReq): + body (ModelMalwareScanTriggerReq): Example: {'is_priority': True, + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, + 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, + 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +153,13 @@ async def asyncio_detailed( Start Malware Scan on agent or registry Args: - body (ModelMalwareScanTriggerReq): + body (ModelMalwareScanTriggerReq): Example: {'is_priority': True, + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, + 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, + 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +188,13 @@ async def asyncio( Start Malware Scan on agent or registry Args: - body (ModelMalwareScanTriggerReq): + body (ModelMalwareScanTriggerReq): Example: {'is_priority': True, + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, + 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, + 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/malware_scan/status_malware_scan.py b/threatstryker/api/malware_scan/status_malware_scan.py index 96daf6c..2446515 100644 --- a/threatstryker/api/malware_scan/status_malware_scan.py +++ b/threatstryker/api/malware_scan/status_malware_scan.py @@ -84,7 +84,8 @@ def sync_detailed( Get Malware Scan status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Get Malware Scan status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Get Malware Scan status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Get Malware Scan status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/malware_scan/stop_malware_scan.py b/threatstryker/api/malware_scan/stop_malware_scan.py index b9750f4..74bcf1b 100644 --- a/threatstryker/api/malware_scan/stop_malware_scan.py +++ b/threatstryker/api/malware_scan/stop_malware_scan.py @@ -82,7 +82,8 @@ def sync_detailed( Stop Malware Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Stop Malware Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Stop Malware Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Stop Malware Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/registry/add_registry.py b/threatstryker/api/registry/add_registry.py index 88e3fa6..ae6160d 100644 --- a/threatstryker/api/registry/add_registry.py +++ b/threatstryker/api/registry/add_registry.py @@ -84,7 +84,8 @@ def sync_detailed( Add a new supported registry Args: - body (ModelRegistryAddReq): + body (ModelRegistryAddReq): Example: {'non_secret': {'key': ''}, 'registry_type': + 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Add a new supported registry Args: - body (ModelRegistryAddReq): + body (ModelRegistryAddReq): Example: {'non_secret': {'key': ''}, 'registry_type': + 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Add a new supported registry Args: - body (ModelRegistryAddReq): + body (ModelRegistryAddReq): Example: {'non_secret': {'key': ''}, 'registry_type': + 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Add a new supported registry Args: - body (ModelRegistryAddReq): + body (ModelRegistryAddReq): Example: {'non_secret': {'key': ''}, 'registry_type': + 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/registry/count_image_stubs.py b/threatstryker/api/registry/count_image_stubs.py index 4256ab9..30fc3b9 100644 --- a/threatstryker/api/registry/count_image_stubs.py +++ b/threatstryker/api/registry/count_image_stubs.py @@ -84,7 +84,15 @@ def sync_detailed( count of image tags for a given image and registry Args: - body (ModelRegistryImageStubsReq): + body (ModelRegistryImageStubsReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( count of image tags for a given image and registry Args: - body (ModelRegistryImageStubsReq): + body (ModelRegistryImageStubsReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( count of image tags for a given image and registry Args: - body (ModelRegistryImageStubsReq): + body (ModelRegistryImageStubsReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( count of image tags for a given image and registry Args: - body (ModelRegistryImageStubsReq): + body (ModelRegistryImageStubsReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/registry/count_images.py b/threatstryker/api/registry/count_images.py index 856e6ba..236f1f7 100644 --- a/threatstryker/api/registry/count_images.py +++ b/threatstryker/api/registry/count_images.py @@ -84,7 +84,23 @@ def sync_detailed( count of images from a given registry Args: - body (ModelRegistryImagesReq): + body (ModelRegistryImagesReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'image_stub_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +131,23 @@ def sync( count of images from a given registry Args: - body (ModelRegistryImagesReq): + body (ModelRegistryImagesReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'image_stub_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +173,23 @@ async def asyncio_detailed( count of images from a given registry Args: - body (ModelRegistryImagesReq): + body (ModelRegistryImagesReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'image_stub_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +218,23 @@ async def asyncio( count of images from a given registry Args: - body (ModelRegistryImagesReq): + body (ModelRegistryImagesReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'image_stub_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/registry/delete_registry_bulk.py b/threatstryker/api/registry/delete_registry_bulk.py index cf0e7af..b8e4233 100644 --- a/threatstryker/api/registry/delete_registry_bulk.py +++ b/threatstryker/api/registry/delete_registry_bulk.py @@ -82,7 +82,8 @@ def sync_detailed( Batch Delete registry Args: - body (ModelDeleteRegistryBulkReq): + body (ModelDeleteRegistryBulkReq): Example: {'registry_ids': ['registry_ids', + 'registry_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Batch Delete registry Args: - body (ModelDeleteRegistryBulkReq): + body (ModelDeleteRegistryBulkReq): Example: {'registry_ids': ['registry_ids', + 'registry_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Batch Delete registry Args: - body (ModelDeleteRegistryBulkReq): + body (ModelDeleteRegistryBulkReq): Example: {'registry_ids': ['registry_ids', + 'registry_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Batch Delete registry Args: - body (ModelDeleteRegistryBulkReq): + body (ModelDeleteRegistryBulkReq): Example: {'registry_ids': ['registry_ids', + 'registry_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/registry/list_image_stubs.py b/threatstryker/api/registry/list_image_stubs.py index 2d094e4..4d0fd49 100644 --- a/threatstryker/api/registry/list_image_stubs.py +++ b/threatstryker/api/registry/list_image_stubs.py @@ -89,7 +89,15 @@ def sync_detailed( list image tags for a given image and registry Args: - body (ModelRegistryImageStubsReq): + body (ModelRegistryImageStubsReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +128,15 @@ def sync( list image tags for a given image and registry Args: - body (ModelRegistryImageStubsReq): + body (ModelRegistryImageStubsReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +162,15 @@ async def asyncio_detailed( list image tags for a given image and registry Args: - body (ModelRegistryImageStubsReq): + body (ModelRegistryImageStubsReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +199,15 @@ async def asyncio( list image tags for a given image and registry Args: - body (ModelRegistryImageStubsReq): + body (ModelRegistryImageStubsReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/registry/list_images.py b/threatstryker/api/registry/list_images.py index b8fec25..0f71078 100644 --- a/threatstryker/api/registry/list_images.py +++ b/threatstryker/api/registry/list_images.py @@ -89,7 +89,23 @@ def sync_detailed( list images from a given registry Args: - body (ModelRegistryImagesReq): + body (ModelRegistryImagesReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'image_stub_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +136,23 @@ def sync( list images from a given registry Args: - body (ModelRegistryImagesReq): + body (ModelRegistryImagesReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'image_stub_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +178,23 @@ async def asyncio_detailed( list images from a given registry Args: - body (ModelRegistryImagesReq): + body (ModelRegistryImagesReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'image_stub_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +223,23 @@ async def asyncio( list images from a given registry Args: - body (ModelRegistryImagesReq): + body (ModelRegistryImagesReq): Example: {'image_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}, 'image_stub_filter': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'registry_id': 'registry_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/registry/update_registry.py b/threatstryker/api/registry/update_registry.py index 8d4ae4b..130c3f5 100644 --- a/threatstryker/api/registry/update_registry.py +++ b/threatstryker/api/registry/update_registry.py @@ -87,7 +87,8 @@ def sync_detailed( Args: registry_id (str): - body (ModelRegistryUpdateReq): + body (ModelRegistryUpdateReq): Example: {'non_secret': {'key': ''}, 'registry_type': + 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +122,8 @@ def sync( Args: registry_id (str): - body (ModelRegistryUpdateReq): + body (ModelRegistryUpdateReq): Example: {'non_secret': {'key': ''}, 'registry_type': + 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +152,8 @@ async def asyncio_detailed( Args: registry_id (str): - body (ModelRegistryUpdateReq): + body (ModelRegistryUpdateReq): Example: {'non_secret': {'key': ''}, 'registry_type': + 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +185,8 @@ async def asyncio( Args: registry_id (str): - body (ModelRegistryUpdateReq): + body (ModelRegistryUpdateReq): Example: {'non_secret': {'key': ''}, 'registry_type': + 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': {'key': ''}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/reports/bulk_delete_reports.py b/threatstryker/api/reports/bulk_delete_reports.py index 2c6a882..544764d 100644 --- a/threatstryker/api/reports/bulk_delete_reports.py +++ b/threatstryker/api/reports/bulk_delete_reports.py @@ -82,7 +82,7 @@ def sync_detailed( Bulk Delete reports Args: - body (ModelBulkDeleteReportReq): + body (ModelBulkDeleteReportReq): Example: {'report_ids': ['report_ids', 'report_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Bulk Delete reports Args: - body (ModelBulkDeleteReportReq): + body (ModelBulkDeleteReportReq): Example: {'report_ids': ['report_ids', 'report_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Bulk Delete reports Args: - body (ModelBulkDeleteReportReq): + body (ModelBulkDeleteReportReq): Example: {'report_ids': ['report_ids', 'report_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Bulk Delete reports Args: - body (ModelBulkDeleteReportReq): + body (ModelBulkDeleteReportReq): Example: {'report_ids': ['report_ids', 'report_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/reports/generate_report.py b/threatstryker/api/reports/generate_report.py index 2b10a6b..6d81104 100644 --- a/threatstryker/api/reports/generate_report.py +++ b/threatstryker/api/reports/generate_report.py @@ -84,7 +84,17 @@ def sync_detailed( generate report for given type and filters Args: - body (ModelGenerateReportReq): + body (ModelGenerateReportReq): Example: {'to_timestamp': 1, 'options': {'sbom_format': + 'syft-json'}, 'from_timestamp': 6, 'zipped_report': True, 'filters': + {'include_dead_nodes': True, 'node_type': ['node_type', 'node_type'], + 'most_exploitable_report': True, 'advanced_report_filters': {'image_name': ['image_name', + 'image_name'], 'most_exploitable_scores': [0, 0], 'container_name': ['container_name', + 'container_name'], 'scan_status': ['scan_status', 'scan_status'], + 'kubernetes_cluster_name': ['kubernetes_cluster_name', 'kubernetes_cluster_name'], + 'masked': [True, True], 'host_name': ['host_name', 'host_name'], 'node_id': ['node_id', + 'node_id'], 'pod_name': ['pod_name', 'pod_name']}, 'include_dormant_exploitable': True, + 'scan_type': 'vulnerability', 'scan_id': 'scan_id', 'severity_or_check_type': + ['severity_or_check_type', 'severity_or_check_type']}, 'report_type': 'pdf'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +125,17 @@ def sync( generate report for given type and filters Args: - body (ModelGenerateReportReq): + body (ModelGenerateReportReq): Example: {'to_timestamp': 1, 'options': {'sbom_format': + 'syft-json'}, 'from_timestamp': 6, 'zipped_report': True, 'filters': + {'include_dead_nodes': True, 'node_type': ['node_type', 'node_type'], + 'most_exploitable_report': True, 'advanced_report_filters': {'image_name': ['image_name', + 'image_name'], 'most_exploitable_scores': [0, 0], 'container_name': ['container_name', + 'container_name'], 'scan_status': ['scan_status', 'scan_status'], + 'kubernetes_cluster_name': ['kubernetes_cluster_name', 'kubernetes_cluster_name'], + 'masked': [True, True], 'host_name': ['host_name', 'host_name'], 'node_id': ['node_id', + 'node_id'], 'pod_name': ['pod_name', 'pod_name']}, 'include_dormant_exploitable': True, + 'scan_type': 'vulnerability', 'scan_id': 'scan_id', 'severity_or_check_type': + ['severity_or_check_type', 'severity_or_check_type']}, 'report_type': 'pdf'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +161,17 @@ async def asyncio_detailed( generate report for given type and filters Args: - body (ModelGenerateReportReq): + body (ModelGenerateReportReq): Example: {'to_timestamp': 1, 'options': {'sbom_format': + 'syft-json'}, 'from_timestamp': 6, 'zipped_report': True, 'filters': + {'include_dead_nodes': True, 'node_type': ['node_type', 'node_type'], + 'most_exploitable_report': True, 'advanced_report_filters': {'image_name': ['image_name', + 'image_name'], 'most_exploitable_scores': [0, 0], 'container_name': ['container_name', + 'container_name'], 'scan_status': ['scan_status', 'scan_status'], + 'kubernetes_cluster_name': ['kubernetes_cluster_name', 'kubernetes_cluster_name'], + 'masked': [True, True], 'host_name': ['host_name', 'host_name'], 'node_id': ['node_id', + 'node_id'], 'pod_name': ['pod_name', 'pod_name']}, 'include_dormant_exploitable': True, + 'scan_type': 'vulnerability', 'scan_id': 'scan_id', 'severity_or_check_type': + ['severity_or_check_type', 'severity_or_check_type']}, 'report_type': 'pdf'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +200,17 @@ async def asyncio( generate report for given type and filters Args: - body (ModelGenerateReportReq): + body (ModelGenerateReportReq): Example: {'to_timestamp': 1, 'options': {'sbom_format': + 'syft-json'}, 'from_timestamp': 6, 'zipped_report': True, 'filters': + {'include_dead_nodes': True, 'node_type': ['node_type', 'node_type'], + 'most_exploitable_report': True, 'advanced_report_filters': {'image_name': ['image_name', + 'image_name'], 'most_exploitable_scores': [0, 0], 'container_name': ['container_name', + 'container_name'], 'scan_status': ['scan_status', 'scan_status'], + 'kubernetes_cluster_name': ['kubernetes_cluster_name', 'kubernetes_cluster_name'], + 'masked': [True, True], 'host_name': ['host_name', 'host_name'], 'node_id': ['node_id', + 'node_id'], 'pod_name': ['pod_name', 'pod_name']}, 'include_dormant_exploitable': True, + 'scan_type': 'vulnerability', 'scan_id': 'scan_id', 'severity_or_check_type': + ['severity_or_check_type', 'severity_or_check_type']}, 'report_type': 'pdf'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/rules/__init__.py b/threatstryker/api/rules/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/threatstryker/api/rules/mask_rules.py b/threatstryker/api/rules/mask_rules.py new file mode 100644 index 0000000..bb77736 --- /dev/null +++ b/threatstryker/api/rules/mask_rules.py @@ -0,0 +1,186 @@ +from http import HTTPStatus +from typing import Any, Dict, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.model_rules_action_request import ModelRulesActionRequest +from ...types import Response + + +def _get_kwargs( + *, + body: ModelRulesActionRequest, +) -> Dict[str, Any]: + headers: Dict[str, Any] = {} + + _kwargs: Dict[str, Any] = { + "method": "post", + "url": "/deepfence/rules/action/mask", + } + + _body = body.to_dict() + + _kwargs["json"] = _body + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + if response.status_code == HTTPStatus.NO_CONTENT: + response_204 = cast(Any, None) + return response_204 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: ModelRulesActionRequest, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + """mask Rules + + mask rules + + Args: + body (ModelRulesActionRequest): Example: {'rule_ids': ['rule_ids', 'rule_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: ModelRulesActionRequest, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + """mask Rules + + mask rules + + Args: + body (ModelRulesActionRequest): Example: {'rule_ids': ['rule_ids', 'rule_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse] + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: ModelRulesActionRequest, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + """mask Rules + + mask rules + + Args: + body (ModelRulesActionRequest): Example: {'rule_ids': ['rule_ids', 'rule_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: ModelRulesActionRequest, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + """mask Rules + + mask rules + + Args: + body (ModelRulesActionRequest): Example: {'rule_ids': ['rule_ids', 'rule_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse] + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/threatstryker/api/rules/unmask_rules.py b/threatstryker/api/rules/unmask_rules.py new file mode 100644 index 0000000..e8862ac --- /dev/null +++ b/threatstryker/api/rules/unmask_rules.py @@ -0,0 +1,186 @@ +from http import HTTPStatus +from typing import Any, Dict, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.model_rules_action_request import ModelRulesActionRequest +from ...types import Response + + +def _get_kwargs( + *, + body: ModelRulesActionRequest, +) -> Dict[str, Any]: + headers: Dict[str, Any] = {} + + _kwargs: Dict[str, Any] = { + "method": "post", + "url": "/deepfence/rules/action/unmask", + } + + _body = body.to_dict() + + _kwargs["json"] = _body + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + if response.status_code == HTTPStatus.NO_CONTENT: + response_204 = cast(Any, None) + return response_204 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: ModelRulesActionRequest, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + """Unmask Rules + + Unmask rules + + Args: + body (ModelRulesActionRequest): Example: {'rule_ids': ['rule_ids', 'rule_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: ModelRulesActionRequest, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + """Unmask Rules + + Unmask rules + + Args: + body (ModelRulesActionRequest): Example: {'rule_ids': ['rule_ids', 'rule_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse] + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: ModelRulesActionRequest, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + """Unmask Rules + + Unmask rules + + Args: + body (ModelRulesActionRequest): Example: {'rule_ids': ['rule_ids', 'rule_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: ModelRulesActionRequest, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse]]: + """Unmask Rules + + Unmask rules + + Args: + body (ModelRulesActionRequest): Example: {'rule_ids': ['rule_ids', 'rule_ids']}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse] + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/threatstryker/api/scan_results/bulk_delete_scans.py b/threatstryker/api/scan_results/bulk_delete_scans.py index f03562b..8938535 100644 --- a/threatstryker/api/scan_results/bulk_delete_scans.py +++ b/threatstryker/api/scan_results/bulk_delete_scans.py @@ -82,7 +82,15 @@ def sync_detailed( Bulk delete scans along with their results for a particular scan type Args: - body (ModelBulkDeleteScansRequest): + body (ModelBulkDeleteScansRequest): Example: {'scan_type': 'Secret', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +121,15 @@ def sync( Bulk delete scans along with their results for a particular scan type Args: - body (ModelBulkDeleteScansRequest): + body (ModelBulkDeleteScansRequest): Example: {'scan_type': 'Secret', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +155,15 @@ async def asyncio_detailed( Bulk delete scans along with their results for a particular scan type Args: - body (ModelBulkDeleteScansRequest): + body (ModelBulkDeleteScansRequest): Example: {'scan_type': 'Secret', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +192,15 @@ async def asyncio( Bulk delete scans along with their results for a particular scan type Args: - body (ModelBulkDeleteScansRequest): + body (ModelBulkDeleteScansRequest): Example: {'scan_type': 'Secret', 'filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/scan_results/delete_scan_result.py b/threatstryker/api/scan_results/delete_scan_result.py index c277c0b..23468a1 100644 --- a/threatstryker/api/scan_results/delete_scan_result.py +++ b/threatstryker/api/scan_results/delete_scan_result.py @@ -82,7 +82,9 @@ def sync_detailed( Delete selected scan results Args: - body (ModelScanResultsActionRequest): + body (ModelScanResultsActionRequest): Example: {'notify_individual': True, 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id', + 'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Delete selected scan results Args: - body (ModelScanResultsActionRequest): + body (ModelScanResultsActionRequest): Example: {'notify_individual': True, 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id', + 'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Delete selected scan results Args: - body (ModelScanResultsActionRequest): + body (ModelScanResultsActionRequest): Example: {'notify_individual': True, 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id', + 'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Delete selected scan results Args: - body (ModelScanResultsActionRequest): + body (ModelScanResultsActionRequest): Example: {'notify_individual': True, 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id', + 'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/scan_results/get_all_nodes_in_scan_results.py b/threatstryker/api/scan_results/get_all_nodes_in_scan_results.py index 3aba076..7e6a133 100644 --- a/threatstryker/api/scan_results/get_all_nodes_in_scan_results.py +++ b/threatstryker/api/scan_results/get_all_nodes_in_scan_results.py @@ -89,7 +89,8 @@ def sync_detailed( Get all nodes in given scan result ids Args: - body (ModelNodesInScanResultRequest): + body (ModelNodesInScanResultRequest): Example: {'result_ids': ['result_ids', + 'result_ids'], 'scan_type': 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +121,8 @@ def sync( Get all nodes in given scan result ids Args: - body (ModelNodesInScanResultRequest): + body (ModelNodesInScanResultRequest): Example: {'result_ids': ['result_ids', + 'result_ids'], 'scan_type': 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +148,8 @@ async def asyncio_detailed( Get all nodes in given scan result ids Args: - body (ModelNodesInScanResultRequest): + body (ModelNodesInScanResultRequest): Example: {'result_ids': ['result_ids', + 'result_ids'], 'scan_type': 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +178,8 @@ async def asyncio( Get all nodes in given scan result ids Args: - body (ModelNodesInScanResultRequest): + body (ModelNodesInScanResultRequest): Example: {'result_ids': ['result_ids', + 'result_ids'], 'scan_type': 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/scan_results/mask_scan_result.py b/threatstryker/api/scan_results/mask_scan_result.py index ad4a0d2..4affd36 100644 --- a/threatstryker/api/scan_results/mask_scan_result.py +++ b/threatstryker/api/scan_results/mask_scan_result.py @@ -82,7 +82,8 @@ def sync_detailed( Mask scan results Args: - body (ModelScanResultsMaskRequest): + body (ModelScanResultsMaskRequest): Example: {'mask_action': 'mask_global', 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Mask scan results Args: - body (ModelScanResultsMaskRequest): + body (ModelScanResultsMaskRequest): Example: {'mask_action': 'mask_global', 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Mask scan results Args: - body (ModelScanResultsMaskRequest): + body (ModelScanResultsMaskRequest): Example: {'mask_action': 'mask_global', 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Mask scan results Args: - body (ModelScanResultsMaskRequest): + body (ModelScanResultsMaskRequest): Example: {'mask_action': 'mask_global', 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/scan_results/notify_scan_result.py b/threatstryker/api/scan_results/notify_scan_result.py index 941cf34..3dbf4e8 100644 --- a/threatstryker/api/scan_results/notify_scan_result.py +++ b/threatstryker/api/scan_results/notify_scan_result.py @@ -82,7 +82,9 @@ def sync_detailed( Notify scan results in connected integration channels Args: - body (ModelScanResultsActionRequest): + body (ModelScanResultsActionRequest): Example: {'notify_individual': True, 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id', + 'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +115,9 @@ def sync( Notify scan results in connected integration channels Args: - body (ModelScanResultsActionRequest): + body (ModelScanResultsActionRequest): Example: {'notify_individual': True, 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id', + 'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +143,9 @@ async def asyncio_detailed( Notify scan results in connected integration channels Args: - body (ModelScanResultsActionRequest): + body (ModelScanResultsActionRequest): Example: {'notify_individual': True, 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id', + 'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +174,9 @@ async def asyncio( Notify scan results in connected integration channels Args: - body (ModelScanResultsActionRequest): + body (ModelScanResultsActionRequest): Example: {'notify_individual': True, 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id', + 'integration_ids': [0, 0]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/scan_results/unmask_scan_result.py b/threatstryker/api/scan_results/unmask_scan_result.py index 44bdca7..b2d30dc 100644 --- a/threatstryker/api/scan_results/unmask_scan_result.py +++ b/threatstryker/api/scan_results/unmask_scan_result.py @@ -82,7 +82,8 @@ def sync_detailed( Unmask scan results Args: - body (ModelScanResultsMaskRequest): + body (ModelScanResultsMaskRequest): Example: {'mask_action': 'mask_global', 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Unmask scan results Args: - body (ModelScanResultsMaskRequest): + body (ModelScanResultsMaskRequest): Example: {'mask_action': 'mask_global', 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Unmask scan results Args: - body (ModelScanResultsMaskRequest): + body (ModelScanResultsMaskRequest): Example: {'mask_action': 'mask_global', 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Unmask scan results Args: - body (ModelScanResultsMaskRequest): + body (ModelScanResultsMaskRequest): Example: {'mask_action': 'mask_global', 'result_ids': + ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_alerts.py b/threatstryker/api/search/count_alerts.py index 37132a8..454ef2d 100644 --- a/threatstryker/api/search/count_alerts.py +++ b/threatstryker/api/search/count_alerts.py @@ -84,7 +84,35 @@ def sync_detailed( Search alerts resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Search alerts resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Search alerts resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Search alerts resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_api_endpoints.py b/threatstryker/api/search/count_api_endpoints.py index 51612ac..6256e0a 100644 --- a/threatstryker/api/search/count_api_endpoints.py +++ b/threatstryker/api/search/count_api_endpoints.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with api endpoints Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with api endpoints Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with api endpoints Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with api endpoints Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_cloud_accounts.py b/threatstryker/api/search/count_cloud_accounts.py index 7711ab7..76fc827 100644 --- a/threatstryker/api/search/count_cloud_accounts.py +++ b/threatstryker/api/search/count_cloud_accounts.py @@ -84,7 +84,35 @@ def sync_detailed( Search across all the data associated with cloud nodes Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Search across all the data associated with cloud nodes Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Search across all the data associated with cloud nodes Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Search across all the data associated with cloud nodes Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_cloud_compliance_scans.py b/threatstryker/api/search/count_cloud_compliance_scans.py index 4704768..e629351 100644 --- a/threatstryker/api/search/count_cloud_compliance_scans.py +++ b/threatstryker/api/search/count_cloud_compliance_scans.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with cloud-compliance scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with cloud-compliance scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with cloud-compliance scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with cloud-compliance scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_cloud_compliances.py b/threatstryker/api/search/count_cloud_compliances.py index fcb4d94..7315e3b 100644 --- a/threatstryker/api/search/count_cloud_compliances.py +++ b/threatstryker/api/search/count_cloud_compliances.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data ssociated with cloud compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data ssociated with cloud compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data ssociated with cloud compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data ssociated with cloud compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_cloud_resources.py b/threatstryker/api/search/count_cloud_resources.py index 2863b9d..7849d95 100644 --- a/threatstryker/api/search/count_cloud_resources.py +++ b/threatstryker/api/search/count_cloud_resources.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data ssociated with cloud resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data ssociated with cloud resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data ssociated with cloud resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data ssociated with cloud resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_compliance_rules.py b/threatstryker/api/search/count_compliance_rules.py index 94b13af..3ac402b 100644 --- a/threatstryker/api/search/count_compliance_rules.py +++ b/threatstryker/api/search/count_compliance_rules.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with compliance rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with compliance rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with compliance rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with compliance rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_compliance_scans.py b/threatstryker/api/search/count_compliance_scans.py index 8f6b1ef..7a285d6 100644 --- a/threatstryker/api/search/count_compliance_scans.py +++ b/threatstryker/api/search/count_compliance_scans.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with compliance scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with compliance scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with compliance scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with compliance scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_compliances.py b/threatstryker/api/search/count_compliances.py index 897c1b0..1aa9cfe 100644 --- a/threatstryker/api/search/count_compliances.py +++ b/threatstryker/api/search/count_compliances.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_container_images.py b/threatstryker/api/search/count_container_images.py index c60198c..c5e2168 100644 --- a/threatstryker/api/search/count_container_images.py +++ b/threatstryker/api/search/count_container_images.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with container images Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with container images Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with container images Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with container images Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_containers.py b/threatstryker/api/search/count_containers.py index 0385487..45c6ddd 100644 --- a/threatstryker/api/search/count_containers.py +++ b/threatstryker/api/search/count_containers.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with containers Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with containers Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with containers Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with containers Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_exploitable_alerts.py b/threatstryker/api/search/count_exploitable_alerts.py new file mode 100644 index 0000000..8ad523e --- /dev/null +++ b/threatstryker/api/search/count_exploitable_alerts.py @@ -0,0 +1,300 @@ +from http import HTTPStatus +from typing import Any, Dict, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.search_search_count_resp import SearchSearchCountResp +from ...models.search_search_node_req import SearchSearchNodeReq +from ...types import Response + + +def _get_kwargs( + *, + body: SearchSearchNodeReq, +) -> Dict[str, Any]: + headers: Dict[str, Any] = {} + + _kwargs: Dict[str, Any] = { + "method": "post", + "url": "/deepfence/search/count/exploitable-alerts", + } + + _body = body.to_dict() + + _kwargs["json"] = _body + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp]]: + if response.status_code == HTTPStatus.OK: + response_200 = SearchSearchCountResp.from_dict(response.json()) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp]]: + """Count exploitable alerts + + Count across all data associated with exploitable alerts + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp]]: + """Count exploitable alerts + + Count across all data associated with exploitable alerts + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp] + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp]]: + """Count exploitable alerts + + Count across all data associated with exploitable alerts + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp]]: + """Count exploitable alerts + + Count across all data associated with exploitable alerts + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, SearchSearchCountResp] + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/threatstryker/api/search/count_file_alerts.py b/threatstryker/api/search/count_file_alerts.py index edc4c32..21c7b8b 100644 --- a/threatstryker/api/search/count_file_alerts.py +++ b/threatstryker/api/search/count_file_alerts.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with file alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with file alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with file alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with file alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_filesystem_alert_rules.py b/threatstryker/api/search/count_filesystem_alert_rules.py index 557488c..0640c48 100644 --- a/threatstryker/api/search/count_filesystem_alert_rules.py +++ b/threatstryker/api/search/count_filesystem_alert_rules.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with file system alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with file system alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with file system alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with file system alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_hosts.py b/threatstryker/api/search/count_hosts.py index 3c6a577..b619459 100644 --- a/threatstryker/api/search/count_hosts.py +++ b/threatstryker/api/search/count_hosts.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with hosts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with hosts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with hosts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with hosts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_kubernetes_clusters.py b/threatstryker/api/search/count_kubernetes_clusters.py index 165b2dd..70d7201 100644 --- a/threatstryker/api/search/count_kubernetes_clusters.py +++ b/threatstryker/api/search/count_kubernetes_clusters.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data ssociated with kubernetes clusters Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data ssociated with kubernetes clusters Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data ssociated with kubernetes clusters Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data ssociated with kubernetes clusters Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_malware_rules.py b/threatstryker/api/search/count_malware_rules.py index f75aa0d..04b52ec 100644 --- a/threatstryker/api/search/count_malware_rules.py +++ b/threatstryker/api/search/count_malware_rules.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with malware rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with malware rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with malware rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with malware rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_malware_scans.py b/threatstryker/api/search/count_malware_scans.py index 8ce1ea1..72be17a 100644 --- a/threatstryker/api/search/count_malware_scans.py +++ b/threatstryker/api/search/count_malware_scans.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with malware scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with malware scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with malware scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with malware scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_malwares.py b/threatstryker/api/search/count_malwares.py index dddb9c9..a43b9cc 100644 --- a/threatstryker/api/search/count_malwares.py +++ b/threatstryker/api/search/count_malwares.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with malwares Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with malwares Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with malwares Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with malwares Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_most_exploitable_malwares.py b/threatstryker/api/search/count_most_exploitable_malwares.py new file mode 100644 index 0000000..7fa4951 --- /dev/null +++ b/threatstryker/api/search/count_most_exploitable_malwares.py @@ -0,0 +1,159 @@ +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.search_most_exploitable_count_resp import SearchMostExploitableCountResp +from ...types import Response + + +def _get_kwargs() -> Dict[str, Any]: + _kwargs: Dict[str, Any] = { + "method": "get", + "url": "/deepfence/search/count/most-exploitable/malwares", + } + + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + if response.status_code == HTTPStatus.OK: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = SearchMostExploitableCountResp.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Malwares + + Count Most Exploitable Malwares + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']]] + """ + + kwargs = _get_kwargs() + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Malwares + + Count Most Exploitable Malwares + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']] + """ + + return sync_detailed( + client=client, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Malwares + + Count Most Exploitable Malwares + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']]] + """ + + kwargs = _get_kwargs() + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Malwares + + Count Most Exploitable Malwares + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']] + """ + + return ( + await asyncio_detailed( + client=client, + ) + ).parsed diff --git a/threatstryker/api/search/count_most_exploitable_secrets.py b/threatstryker/api/search/count_most_exploitable_secrets.py new file mode 100644 index 0000000..5843b27 --- /dev/null +++ b/threatstryker/api/search/count_most_exploitable_secrets.py @@ -0,0 +1,159 @@ +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.search_most_exploitable_count_resp import SearchMostExploitableCountResp +from ...types import Response + + +def _get_kwargs() -> Dict[str, Any]: + _kwargs: Dict[str, Any] = { + "method": "get", + "url": "/deepfence/search/count/most-exploitable/secrets", + } + + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + if response.status_code == HTTPStatus.OK: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = SearchMostExploitableCountResp.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Secrets + + Count Most Exploitable Secrets + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']]] + """ + + kwargs = _get_kwargs() + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Secrets + + Count Most Exploitable Secrets + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']] + """ + + return sync_detailed( + client=client, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Secrets + + Count Most Exploitable Secrets + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']]] + """ + + kwargs = _get_kwargs() + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Secrets + + Count Most Exploitable Secrets + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']] + """ + + return ( + await asyncio_detailed( + client=client, + ) + ).parsed diff --git a/threatstryker/api/search/count_most_exploitable_vulnerabilities.py b/threatstryker/api/search/count_most_exploitable_vulnerabilities.py new file mode 100644 index 0000000..6cbac58 --- /dev/null +++ b/threatstryker/api/search/count_most_exploitable_vulnerabilities.py @@ -0,0 +1,159 @@ +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.search_most_exploitable_count_resp import SearchMostExploitableCountResp +from ...types import Response + + +def _get_kwargs() -> Dict[str, Any]: + _kwargs: Dict[str, Any] = { + "method": "get", + "url": "/deepfence/search/count/most-exploitable/vulnerabilities", + } + + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + if response.status_code == HTTPStatus.OK: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = SearchMostExploitableCountResp.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Vulnerabilities + + Count Most Exploitable vulnerabilities + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']]] + """ + + kwargs = _get_kwargs() + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Vulnerabilities + + Count Most Exploitable vulnerabilities + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']] + """ + + return sync_detailed( + client=client, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Vulnerabilities + + Count Most Exploitable vulnerabilities + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']]] + """ + + kwargs = _get_kwargs() + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["SearchMostExploitableCountResp"]]]: + """Count Most Exploitable Vulnerabilities + + Count Most Exploitable vulnerabilities + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['SearchMostExploitableCountResp']] + """ + + return ( + await asyncio_detailed( + client=client, + ) + ).parsed diff --git a/threatstryker/api/search/count_network_alert_rules.py b/threatstryker/api/search/count_network_alert_rules.py index 76d3dc8..209c452 100644 --- a/threatstryker/api/search/count_network_alert_rules.py +++ b/threatstryker/api/search/count_network_alert_rules.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with network alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with network alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with network alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with network alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_network_alerts.py b/threatstryker/api/search/count_network_alerts.py index 0d364c8..f37a3f6 100644 --- a/threatstryker/api/search/count_network_alerts.py +++ b/threatstryker/api/search/count_network_alerts.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with network alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with network alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with network alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with network alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_network_violations.py b/threatstryker/api/search/count_network_violations.py index 4c513a7..8853b5e 100644 --- a/threatstryker/api/search/count_network_violations.py +++ b/threatstryker/api/search/count_network_violations.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with network violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with network violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with network violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with network violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_pods.py b/threatstryker/api/search/count_pods.py index 423eb9f..32d77da 100644 --- a/threatstryker/api/search/count_pods.py +++ b/threatstryker/api/search/count_pods.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with pods Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with pods Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with pods Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with pods Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_policy_logs.py b/threatstryker/api/search/count_policy_logs.py index 07732df..e96bbe1 100644 --- a/threatstryker/api/search/count_policy_logs.py +++ b/threatstryker/api/search/count_policy_logs.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with policy logs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with policy logs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with policy logs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with policy logs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_process_alert_rules.py b/threatstryker/api/search/count_process_alert_rules.py index b9f3bb1..36b8a15 100644 --- a/threatstryker/api/search/count_process_alert_rules.py +++ b/threatstryker/api/search/count_process_alert_rules.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with process alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with process alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with process alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with process alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_process_alerts.py b/threatstryker/api/search/count_process_alerts.py index 62bb603..a73b4f2 100644 --- a/threatstryker/api/search/count_process_alerts.py +++ b/threatstryker/api/search/count_process_alerts.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with process alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with process alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with process alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with process alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_quarantine_violations.py b/threatstryker/api/search/count_quarantine_violations.py index 3932694..81f9f32 100644 --- a/threatstryker/api/search/count_quarantine_violations.py +++ b/threatstryker/api/search/count_quarantine_violations.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all data associated with quarantine violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all data associated with quarantine violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all data associated with quarantine violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all data associated with quarantine violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_registry_accounts.py b/threatstryker/api/search/count_registry_accounts.py index 23636db..13ab64a 100644 --- a/threatstryker/api/search/count_registry_accounts.py +++ b/threatstryker/api/search/count_registry_accounts.py @@ -84,7 +84,35 @@ def sync_detailed( Search across all the data associated with registry account Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Search across all the data associated with registry account Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Search across all the data associated with registry account Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Search across all the data associated with registry account Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_secret_rules.py b/threatstryker/api/search/count_secret_rules.py index 20ad307..99e8d72 100644 --- a/threatstryker/api/search/count_secret_rules.py +++ b/threatstryker/api/search/count_secret_rules.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with secret rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with secret rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with secret rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with secret rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_secrets.py b/threatstryker/api/search/count_secrets.py index cd98747..27622a1 100644 --- a/threatstryker/api/search/count_secrets.py +++ b/threatstryker/api/search/count_secrets.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with secrets Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with secrets Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with secrets Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with secrets Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_secrets_scans.py b/threatstryker/api/search/count_secrets_scans.py index 358ffad..705583f 100644 --- a/threatstryker/api/search/count_secrets_scans.py +++ b/threatstryker/api/search/count_secrets_scans.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with secret scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with secret scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with secret scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with secret scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_vulnerabilities.py b/threatstryker/api/search/count_vulnerabilities.py index 56cf0bf..9d2ec89 100644 --- a/threatstryker/api/search/count_vulnerabilities.py +++ b/threatstryker/api/search/count_vulnerabilities.py @@ -84,7 +84,35 @@ def sync_detailed( Search across all the data associated with vulnerabilities Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Search across all the data associated with vulnerabilities Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Search across all the data associated with vulnerabilities Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Search across all the data associated with vulnerabilities Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_vulnerability_rules.py b/threatstryker/api/search/count_vulnerability_rules.py index 818f4d4..741c6b5 100644 --- a/threatstryker/api/search/count_vulnerability_rules.py +++ b/threatstryker/api/search/count_vulnerability_rules.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with vulnerability rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with vulnerability rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with vulnerability rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with vulnerability rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/count_vulnerability_scans.py b/threatstryker/api/search/count_vulnerability_scans.py index b94d47f..22b1424 100644 --- a/threatstryker/api/search/count_vulnerability_scans.py +++ b/threatstryker/api/search/count_vulnerability_scans.py @@ -84,7 +84,35 @@ def sync_detailed( Count across all the data associated with vulnerability scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +143,35 @@ def sync( Count across all the data associated with vulnerability scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +197,35 @@ async def asyncio_detailed( Count across all the data associated with vulnerability scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +254,35 @@ async def asyncio( Count across all the data associated with vulnerability scans Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/get_cloud_compliance_filters.py b/threatstryker/api/search/get_cloud_compliance_filters.py index b391ad0..b4c5500 100644 --- a/threatstryker/api/search/get_cloud_compliance_filters.py +++ b/threatstryker/api/search/get_cloud_compliance_filters.py @@ -84,7 +84,8 @@ def sync_detailed( Get all applicable filter values for cloud compliance Args: - body (ModelFiltersReq): + body (ModelFiltersReq): Example: {'having': {'key': ''}, 'filters': ['filters', + 'filters']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Get all applicable filter values for cloud compliance Args: - body (ModelFiltersReq): + body (ModelFiltersReq): Example: {'having': {'key': ''}, 'filters': ['filters', + 'filters']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Get all applicable filter values for cloud compliance Args: - body (ModelFiltersReq): + body (ModelFiltersReq): Example: {'having': {'key': ''}, 'filters': ['filters', + 'filters']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Get all applicable filter values for cloud compliance Args: - body (ModelFiltersReq): + body (ModelFiltersReq): Example: {'having': {'key': ''}, 'filters': ['filters', + 'filters']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/get_compliance_filters.py b/threatstryker/api/search/get_compliance_filters.py index ce4148d..da2ce41 100644 --- a/threatstryker/api/search/get_compliance_filters.py +++ b/threatstryker/api/search/get_compliance_filters.py @@ -84,7 +84,8 @@ def sync_detailed( Get all applicable filter values for compliance Args: - body (ModelFiltersReq): + body (ModelFiltersReq): Example: {'having': {'key': ''}, 'filters': ['filters', + 'filters']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Get all applicable filter values for compliance Args: - body (ModelFiltersReq): + body (ModelFiltersReq): Example: {'having': {'key': ''}, 'filters': ['filters', + 'filters']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Get all applicable filter values for compliance Args: - body (ModelFiltersReq): + body (ModelFiltersReq): Example: {'having': {'key': ''}, 'filters': ['filters', + 'filters']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Get all applicable filter values for compliance Args: - body (ModelFiltersReq): + body (ModelFiltersReq): Example: {'having': {'key': ''}, 'filters': ['filters', + 'filters']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_alerts.py b/threatstryker/api/search/search_alerts.py index 1ec27f8..c313793 100644 --- a/threatstryker/api/search/search_alerts.py +++ b/threatstryker/api/search/search_alerts.py @@ -89,7 +89,35 @@ def sync_detailed( Search alerts resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search alerts resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search alerts resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search alerts resources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_api_endpoints.py b/threatstryker/api/search/search_api_endpoints.py index aab6898..ce1e093 100644 --- a/threatstryker/api/search/search_api_endpoints.py +++ b/threatstryker/api/search/search_api_endpoints.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with api endpoints Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with api endpoints Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with api endpoints Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with api endpoints Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_cloud_accounts.py b/threatstryker/api/search/search_cloud_accounts.py index 1a98e26..4323944 100644 --- a/threatstryker/api/search/search_cloud_accounts.py +++ b/threatstryker/api/search/search_cloud_accounts.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with cloud nodes Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with cloud nodes Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with cloud nodes Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with cloud nodes Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_cloud_compliance_scans.py b/threatstryker/api/search/search_cloud_compliance_scans.py index 7ae4c1f..d85b930 100644 --- a/threatstryker/api/search/search_cloud_compliance_scans.py +++ b/threatstryker/api/search/search_cloud_compliance_scans.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with cloud-compliance scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with cloud-compliance scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with cloud-compliance scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with cloud-compliance scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_cloud_compliances.py b/threatstryker/api/search/search_cloud_compliances.py index c348562..8df57d1 100644 --- a/threatstryker/api/search/search_cloud_compliances.py +++ b/threatstryker/api/search/search_cloud_compliances.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with cloud-compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with cloud-compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with cloud-compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with cloud-compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_cloud_resources.py b/threatstryker/api/search/search_cloud_resources.py index c5aa45a..35d19b1 100644 --- a/threatstryker/api/search/search_cloud_resources.py +++ b/threatstryker/api/search/search_cloud_resources.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with CloudResources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with CloudResources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with CloudResources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with CloudResources Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_compliance_rules.py b/threatstryker/api/search/search_compliance_rules.py index f215122..9a27a4b 100644 --- a/threatstryker/api/search/search_compliance_rules.py +++ b/threatstryker/api/search/search_compliance_rules.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with compliance rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with compliance rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with compliance rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with compliance rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_compliance_scans.py b/threatstryker/api/search/search_compliance_scans.py index 428a301..e168d4b 100644 --- a/threatstryker/api/search/search_compliance_scans.py +++ b/threatstryker/api/search/search_compliance_scans.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with compliance scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with compliance scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with compliance scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with compliance scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_compliances.py b/threatstryker/api/search/search_compliances.py index bdf0de6..97b0caa 100644 --- a/threatstryker/api/search/search_compliances.py +++ b/threatstryker/api/search/search_compliances.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with compliances Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_container_images.py b/threatstryker/api/search/search_container_images.py index 10dbf61..227074e 100644 --- a/threatstryker/api/search/search_container_images.py +++ b/threatstryker/api/search/search_container_images.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with container images Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with container images Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with container images Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with container images Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_containers.py b/threatstryker/api/search/search_containers.py index 5e14a26..1a90bf8 100644 --- a/threatstryker/api/search/search_containers.py +++ b/threatstryker/api/search/search_containers.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with containers Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with containers Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with containers Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with containers Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_exploitable_alerts.py b/threatstryker/api/search/search_exploitable_alerts.py new file mode 100644 index 0000000..f08be33 --- /dev/null +++ b/threatstryker/api/search/search_exploitable_alerts.py @@ -0,0 +1,305 @@ +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.model_exploitable_alert import ModelExploitableAlert +from ...models.search_search_node_req import SearchSearchNodeReq +from ...types import Response + + +def _get_kwargs( + *, + body: SearchSearchNodeReq, +) -> Dict[str, Any]: + headers: Dict[str, Any] = {} + + _kwargs: Dict[str, Any] = { + "method": "post", + "url": "/deepfence/search/exploitable-alerts", + } + + _body = body.to_dict() + + _kwargs["json"] = _body + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + if response.status_code == HTTPStatus.OK: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = ModelExploitableAlert.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + """Search exploitable alerts + + Search across all data associated with exploitable alerts + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelExploitableAlert']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + """Search exploitable alerts + + Search across all data associated with exploitable alerts + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelExploitableAlert']] + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + """Search exploitable alerts + + Search across all data associated with exploitable alerts + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelExploitableAlert']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelExploitableAlert"]]]: + """Search exploitable alerts + + Search across all data associated with exploitable alerts + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelExploitableAlert']] + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/threatstryker/api/search/search_file_alerts.py b/threatstryker/api/search/search_file_alerts.py index e31fc89..00f5b38 100644 --- a/threatstryker/api/search/search_file_alerts.py +++ b/threatstryker/api/search/search_file_alerts.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with file alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with file alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with file alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with file alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_filesystem_alert_rules.py b/threatstryker/api/search/search_filesystem_alert_rules.py index 2dbb4a8..7e01d47 100644 --- a/threatstryker/api/search/search_filesystem_alert_rules.py +++ b/threatstryker/api/search/search_filesystem_alert_rules.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with file system alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with file system alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with file system alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with file system alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_hosts.py b/threatstryker/api/search/search_hosts.py index 8d414fb..dbe52ed 100644 --- a/threatstryker/api/search/search_hosts.py +++ b/threatstryker/api/search/search_hosts.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with hosts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with hosts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with hosts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with hosts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_kubernetes_clusters.py b/threatstryker/api/search/search_kubernetes_clusters.py index 42bb0a7..aabddbc 100644 --- a/threatstryker/api/search/search_kubernetes_clusters.py +++ b/threatstryker/api/search/search_kubernetes_clusters.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with kuberentes clusters Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with kuberentes clusters Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with kuberentes clusters Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with kuberentes clusters Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_malware_rules.py b/threatstryker/api/search/search_malware_rules.py index 29e923c..71fa3cc 100644 --- a/threatstryker/api/search/search_malware_rules.py +++ b/threatstryker/api/search/search_malware_rules.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with malware rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with malware rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with malware rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with malware rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_malware_scans.py b/threatstryker/api/search/search_malware_scans.py index 0acdecc..c08a886 100644 --- a/threatstryker/api/search/search_malware_scans.py +++ b/threatstryker/api/search/search_malware_scans.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with malwares scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with malwares scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with malwares scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with malwares scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_malwares.py b/threatstryker/api/search/search_malwares.py index 4e2a2ff..e0ffcf8 100644 --- a/threatstryker/api/search/search_malwares.py +++ b/threatstryker/api/search/search_malwares.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with malwares Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with malwares Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with malwares Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with malwares Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_network_alert_rules.py b/threatstryker/api/search/search_network_alert_rules.py index 77c3961..686d09b 100644 --- a/threatstryker/api/search/search_network_alert_rules.py +++ b/threatstryker/api/search/search_network_alert_rules.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with network alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with network alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with network alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with network alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_network_alerts.py b/threatstryker/api/search/search_network_alerts.py index a97f555..df64fcf 100644 --- a/threatstryker/api/search/search_network_alerts.py +++ b/threatstryker/api/search/search_network_alerts.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with network alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with network alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with network alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with network alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_network_violation_stubs.py b/threatstryker/api/search/search_network_violation_stubs.py index f7b115a..31d4410 100644 --- a/threatstryker/api/search/search_network_violation_stubs.py +++ b/threatstryker/api/search/search_network_violation_stubs.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with network violation stubs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with network violation stubs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with network violation stubs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with network violation stubs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_network_violations.py b/threatstryker/api/search/search_network_violations.py index 9609139..b49bf97 100644 --- a/threatstryker/api/search/search_network_violations.py +++ b/threatstryker/api/search/search_network_violations.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with network violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with network violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with network violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with network violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_pods.py b/threatstryker/api/search/search_pods.py index cf6f833..b1c7bac 100644 --- a/threatstryker/api/search/search_pods.py +++ b/threatstryker/api/search/search_pods.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with pods Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with pods Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with pods Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with pods Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_policy_logs.py b/threatstryker/api/search/search_policy_logs.py index 67d5e2c..47e109a 100644 --- a/threatstryker/api/search/search_policy_logs.py +++ b/threatstryker/api/search/search_policy_logs.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with polic logs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with polic logs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with polic logs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with polic logs Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_process_alert_rules.py b/threatstryker/api/search/search_process_alert_rules.py index f700636..982f115 100644 --- a/threatstryker/api/search/search_process_alert_rules.py +++ b/threatstryker/api/search/search_process_alert_rules.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with Process alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with Process alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with Process alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with Process alert rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_process_alerts.py b/threatstryker/api/search/search_process_alerts.py index 0652223..dfb3c81 100644 --- a/threatstryker/api/search/search_process_alerts.py +++ b/threatstryker/api/search/search_process_alerts.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with process alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with process alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with process alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with process alerts Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_quarantine_violations.py b/threatstryker/api/search/search_quarantine_violations.py index fc3b6a6..b6f2dc3 100644 --- a/threatstryker/api/search/search_quarantine_violations.py +++ b/threatstryker/api/search/search_quarantine_violations.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all data associated with quarantine violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all data associated with quarantine violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all data associated with quarantine violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all data associated with quarantine violations Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_registry_accounts.py b/threatstryker/api/search/search_registry_accounts.py index 0440c2d..8ce6e50 100644 --- a/threatstryker/api/search/search_registry_accounts.py +++ b/threatstryker/api/search/search_registry_accounts.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with registry account Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with registry account Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with registry account Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with registry account Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_secret_rules.py b/threatstryker/api/search/search_secret_rules.py index 660a81a..5166bed 100644 --- a/threatstryker/api/search/search_secret_rules.py +++ b/threatstryker/api/search/search_secret_rules.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with secret rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with secret rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with secret rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with secret rules Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_secrets.py b/threatstryker/api/search/search_secrets.py index 0b42f9b..ce09dc5 100644 --- a/threatstryker/api/search/search_secrets.py +++ b/threatstryker/api/search/search_secrets.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with secrets Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with secrets Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with secrets Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with secrets Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_secrets_scans.py b/threatstryker/api/search/search_secrets_scans.py index 6639087..b52f1d2 100644 --- a/threatstryker/api/search/search_secrets_scans.py +++ b/threatstryker/api/search/search_secrets_scans.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with secrets scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with secrets scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with secrets scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with secrets scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_vulnerabilities.py b/threatstryker/api/search/search_vulnerabilities.py index d81d8c5..54769ee 100644 --- a/threatstryker/api/search/search_vulnerabilities.py +++ b/threatstryker/api/search/search_vulnerabilities.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with vulnerabilities Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with vulnerabilities Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with vulnerabilities Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with vulnerabilities Args: - body (SearchSearchNodeReq): + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/search/search_vulnerability_rules.py b/threatstryker/api/search/search_vulnerability_rules.py new file mode 100644 index 0000000..2cf6f11 --- /dev/null +++ b/threatstryker/api/search/search_vulnerability_rules.py @@ -0,0 +1,305 @@ +from http import HTTPStatus +from typing import Any, Dict, List, Optional, Union, cast + +import httpx + +from ... import errors +from ...client import AuthenticatedClient, Client +from ...models.api_docs_bad_request_response import ApiDocsBadRequestResponse +from ...models.api_docs_failure_response import ApiDocsFailureResponse +from ...models.model_vulnerability_rule import ModelVulnerabilityRule +from ...models.search_search_node_req import SearchSearchNodeReq +from ...types import Response + + +def _get_kwargs( + *, + body: SearchSearchNodeReq, +) -> Dict[str, Any]: + headers: Dict[str, Any] = {} + + _kwargs: Dict[str, Any] = { + "method": "post", + "url": "/deepfence/search/vulnerability-rules", + } + + _body = body.to_dict() + + _kwargs["json"] = _body + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: + if response.status_code == HTTPStatus.OK: + response_200 = [] + _response_200 = response.json() + for response_200_item_data in _response_200: + response_200_item = ModelVulnerabilityRule.from_dict(response_200_item_data) + + response_200.append(response_200_item) + + return response_200 + if response.status_code == HTTPStatus.BAD_REQUEST: + response_400 = ApiDocsBadRequestResponse.from_dict(response.json()) + + return response_400 + if response.status_code == HTTPStatus.UNAUTHORIZED: + response_401 = cast(Any, None) + return response_401 + if response.status_code == HTTPStatus.FORBIDDEN: + response_403 = cast(Any, None) + return response_403 + if response.status_code == HTTPStatus.NOT_FOUND: + response_404 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_404 + if response.status_code == HTTPStatus.INTERNAL_SERVER_ERROR: + response_500 = ApiDocsFailureResponse.from_dict(response.json()) + + return response_500 + if client.raise_on_unexpected_status: + raise errors.UnexpectedStatus(response.status_code, response.content) + else: + return None + + +def _build_response( + *, client: Union[AuthenticatedClient, Client], response: httpx.Response +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: + return Response( + status_code=HTTPStatus(response.status_code), + content=response.content, + headers=response.headers, + parsed=_parse_response(client=client, response=response), + ) + + +def sync_detailed( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: + """Search Vulnerability Rules + + Search across all the data associated with vulnerability rules + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelVulnerabilityRule']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = client.get_httpx_client().request( + **kwargs, + ) + + return _build_response(client=client, response=response) + + +def sync( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: + """Search Vulnerability Rules + + Search across all the data associated with vulnerability rules + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelVulnerabilityRule']] + """ + + return sync_detailed( + client=client, + body=body, + ).parsed + + +async def asyncio_detailed( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: + """Search Vulnerability Rules + + Search across all the data associated with vulnerability rules + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Response[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelVulnerabilityRule']]] + """ + + kwargs = _get_kwargs( + body=body, + ) + + response = await client.get_async_httpx_client().request(**kwargs) + + return _build_response(client=client, response=response) + + +async def asyncio( + *, + client: AuthenticatedClient, + body: SearchSearchNodeReq, +) -> Optional[Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List["ModelVulnerabilityRule"]]]: + """Search Vulnerability Rules + + Search across all the data associated with vulnerability rules + + Args: + body (SearchSearchNodeReq): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. + + Raises: + errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Union[Any, ApiDocsBadRequestResponse, ApiDocsFailureResponse, List['ModelVulnerabilityRule']] + """ + + return ( + await asyncio_detailed( + client=client, + body=body, + ) + ).parsed diff --git a/threatstryker/api/search/search_vulnerability_scans.py b/threatstryker/api/search/search_vulnerability_scans.py index 611ae2b..c7bf16b 100644 --- a/threatstryker/api/search/search_vulnerability_scans.py +++ b/threatstryker/api/search/search_vulnerability_scans.py @@ -89,7 +89,35 @@ def sync_detailed( Search across all the data associated with vulnerability scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +148,35 @@ def sync( Search across all the data associated with vulnerability scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +202,35 @@ async def asyncio_detailed( Search across all the data associated with vulnerability scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +259,35 @@ async def asyncio( Search across all the data associated with vulnerability scan Args: - body (SearchSearchScanReq): + body (SearchSearchScanReq): Example: {'node_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/secret_scan/count_results_secret_scan.py b/threatstryker/api/secret_scan/count_results_secret_scan.py index 0f866a4..b6af767 100644 --- a/threatstryker/api/secret_scan/count_results_secret_scan.py +++ b/threatstryker/api/secret_scan/count_results_secret_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Secret Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Secret Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Secret Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Secret Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/secret_scan/list_secret_scan.py b/threatstryker/api/secret_scan/list_secret_scan.py index b3b7563..797d224 100644 --- a/threatstryker/api/secret_scan/list_secret_scan.py +++ b/threatstryker/api/secret_scan/list_secret_scan.py @@ -84,7 +84,16 @@ def sync_detailed( Get Secret Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Get Secret Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Get Secret Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Get Secret Scans list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/secret_scan/results_rules_secret_scan.py b/threatstryker/api/secret_scan/results_rules_secret_scan.py index 0a5ecbd..14faf8d 100644 --- a/threatstryker/api/secret_scan/results_rules_secret_scan.py +++ b/threatstryker/api/secret_scan/results_rules_secret_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Secret Scans detected rules names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Secret Scans detected rules names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Secret Scans detected rules names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Secret Scans detected rules names Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/secret_scan/results_secret_scan.py b/threatstryker/api/secret_scan/results_secret_scan.py index 01762cd..c46779a 100644 --- a/threatstryker/api/secret_scan/results_secret_scan.py +++ b/threatstryker/api/secret_scan/results_secret_scan.py @@ -84,7 +84,15 @@ def sync_detailed( Get Secret Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Secret Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Secret Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Secret Scans results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/secret_scan/start_secret_scan.py b/threatstryker/api/secret_scan/start_secret_scan.py index 7535fb5..b718202 100644 --- a/threatstryker/api/secret_scan/start_secret_scan.py +++ b/threatstryker/api/secret_scan/start_secret_scan.py @@ -84,7 +84,13 @@ def sync_detailed( Start Secret Scan on agent or registry Args: - body (ModelSecretScanTriggerReq): + body (ModelSecretScanTriggerReq): Example: {'is_priority': True, 'deepfence_system_scan': + True, 'filters': {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': + {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': + ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, 'node_ids': + [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +121,13 @@ def sync( Start Secret Scan on agent or registry Args: - body (ModelSecretScanTriggerReq): + body (ModelSecretScanTriggerReq): Example: {'is_priority': True, 'deepfence_system_scan': + True, 'filters': {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': + {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': + ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, 'node_ids': + [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +153,13 @@ async def asyncio_detailed( Start Secret Scan on agent or registry Args: - body (ModelSecretScanTriggerReq): + body (ModelSecretScanTriggerReq): Example: {'is_priority': True, 'deepfence_system_scan': + True, 'filters': {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': + {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': + ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, 'node_ids': + [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +188,13 @@ async def asyncio( Start Secret Scan on agent or registry Args: - body (ModelSecretScanTriggerReq): + body (ModelSecretScanTriggerReq): Example: {'is_priority': True, 'deepfence_system_scan': + True, 'filters': {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': + {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': + ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, 'node_ids': + [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/secret_scan/status_secret_scan.py b/threatstryker/api/secret_scan/status_secret_scan.py index 1bcec73..e422082 100644 --- a/threatstryker/api/secret_scan/status_secret_scan.py +++ b/threatstryker/api/secret_scan/status_secret_scan.py @@ -84,7 +84,8 @@ def sync_detailed( Get Secret Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Get Secret Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Get Secret Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Get Secret Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/secret_scan/stop_secret_scan.py b/threatstryker/api/secret_scan/stop_secret_scan.py index bd7dde3..7e5563d 100644 --- a/threatstryker/api/secret_scan/stop_secret_scan.py +++ b/threatstryker/api/secret_scan/stop_secret_scan.py @@ -82,7 +82,8 @@ def sync_detailed( Stop Secret Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Stop Secret Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Stop Secret Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Stop Secret Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/add_email_configuration.py b/threatstryker/api/settings/add_email_configuration.py index 87ec203..23ef811 100644 --- a/threatstryker/api/settings/add_email_configuration.py +++ b/threatstryker/api/settings/add_email_configuration.py @@ -84,7 +84,10 @@ def sync_detailed( This email configuration is used to send email notifications Args: - body (ModelEmailConfigurationAdd): + body (ModelEmailConfigurationAdd): Example: {'email_id': 'email_id', 'password': + 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', 'email_provider': + 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +118,10 @@ def sync( This email configuration is used to send email notifications Args: - body (ModelEmailConfigurationAdd): + body (ModelEmailConfigurationAdd): Example: {'email_id': 'email_id', 'password': + 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', 'email_provider': + 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +147,10 @@ async def asyncio_detailed( This email configuration is used to send email notifications Args: - body (ModelEmailConfigurationAdd): + body (ModelEmailConfigurationAdd): Example: {'email_id': 'email_id', 'password': + 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', 'email_provider': + 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +179,10 @@ async def asyncio( This email configuration is used to send email notifications Args: - body (ModelEmailConfigurationAdd): + body (ModelEmailConfigurationAdd): Example: {'email_id': 'email_id', 'password': + 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', 'email_provider': + 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/add_scheduled_task.py b/threatstryker/api/settings/add_scheduled_task.py index 4e6351c..15b1033 100644 --- a/threatstryker/api/settings/add_scheduled_task.py +++ b/threatstryker/api/settings/add_scheduled_task.py @@ -82,7 +82,15 @@ def sync_detailed( Add scheduled task Args: - body (ModelAddScheduledTaskRequest): + body (ModelAddScheduledTaskRequest): Example: {'is_priority': True, 'benchmark_types': + ['hipaa', 'hipaa'], 'scan_config': [{'language': 'base'}, {'language': 'base'}], + 'cron_expr': 'cron_expr', 'action': 'SecretScan', 'description': 'description', + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, + 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, + 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +121,15 @@ def sync( Add scheduled task Args: - body (ModelAddScheduledTaskRequest): + body (ModelAddScheduledTaskRequest): Example: {'is_priority': True, 'benchmark_types': + ['hipaa', 'hipaa'], 'scan_config': [{'language': 'base'}, {'language': 'base'}], + 'cron_expr': 'cron_expr', 'action': 'SecretScan', 'description': 'description', + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, + 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, + 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +155,15 @@ async def asyncio_detailed( Add scheduled task Args: - body (ModelAddScheduledTaskRequest): + body (ModelAddScheduledTaskRequest): Example: {'is_priority': True, 'benchmark_types': + ['hipaa', 'hipaa'], 'scan_config': [{'language': 'base'}, {'language': 'base'}], + 'cron_expr': 'cron_expr', 'action': 'SecretScan', 'description': 'description', + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, + 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, + 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +192,15 @@ async def asyncio( Add scheduled task Args: - body (ModelAddScheduledTaskRequest): + body (ModelAddScheduledTaskRequest): Example: {'is_priority': True, 'benchmark_types': + ['hipaa', 'hipaa'], 'scan_config': [{'language': 'base'}, {'language': 'base'}], + 'cron_expr': 'cron_expr', 'action': 'SecretScan', 'description': 'description', + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, + 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, + 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/generate_license.py b/threatstryker/api/settings/generate_license.py index d30a5e1..075e3c8 100644 --- a/threatstryker/api/settings/generate_license.py +++ b/threatstryker/api/settings/generate_license.py @@ -84,7 +84,8 @@ def sync_detailed( Generate a new ThreatMapper license key Args: - body (ModelGenerateLicenseRequest): + body (ModelGenerateLicenseRequest): Example: {'last_name': 'last_name', 'company': + 'company', 'resend_email': True, 'first_name': 'first_name', 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Generate a new ThreatMapper license key Args: - body (ModelGenerateLicenseRequest): + body (ModelGenerateLicenseRequest): Example: {'last_name': 'last_name', 'company': + 'company', 'resend_email': True, 'first_name': 'first_name', 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Generate a new ThreatMapper license key Args: - body (ModelGenerateLicenseRequest): + body (ModelGenerateLicenseRequest): Example: {'last_name': 'last_name', 'company': + 'company', 'resend_email': True, 'first_name': 'first_name', 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Generate a new ThreatMapper license key Args: - body (ModelGenerateLicenseRequest): + body (ModelGenerateLicenseRequest): Example: {'last_name': 'last_name', 'company': + 'company', 'resend_email': True, 'first_name': 'first_name', 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/get_user_audit_logs.py b/threatstryker/api/settings/get_user_audit_logs.py index 8f4139f..afb6d03 100644 --- a/threatstryker/api/settings/get_user_audit_logs.py +++ b/threatstryker/api/settings/get_user_audit_logs.py @@ -89,7 +89,7 @@ def sync_detailed( Get audit logs for all users Args: - body (ModelGetAuditLogsRequest): + body (ModelGetAuditLogsRequest): Example: {'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get audit logs for all users Args: - body (ModelGetAuditLogsRequest): + body (ModelGetAuditLogsRequest): Example: {'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get audit logs for all users Args: - body (ModelGetAuditLogsRequest): + body (ModelGetAuditLogsRequest): Example: {'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get audit logs for all users Args: - body (ModelGetAuditLogsRequest): + body (ModelGetAuditLogsRequest): Example: {'window': {'offset': 0, 'size': 6}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/register_license.py b/threatstryker/api/settings/register_license.py index d7089d0..68d2aa7 100644 --- a/threatstryker/api/settings/register_license.py +++ b/threatstryker/api/settings/register_license.py @@ -84,7 +84,8 @@ def sync_detailed( Register new license key to the console and activate Args: - body (ModelRegisterLicenseRequest): + body (ModelRegisterLicenseRequest): Example: {'email': 'email', 'license_key': + 'license_key'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Register new license key to the console and activate Args: - body (ModelRegisterLicenseRequest): + body (ModelRegisterLicenseRequest): Example: {'email': 'email', 'license_key': + 'license_key'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Register new license key to the console and activate Args: - body (ModelRegisterLicenseRequest): + body (ModelRegisterLicenseRequest): Example: {'email': 'email', 'license_key': + 'license_key'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Register new license key to the console and activate Args: - body (ModelRegisterLicenseRequest): + body (ModelRegisterLicenseRequest): Example: {'email': 'email', 'license_key': + 'license_key'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/set_cloud_waf_configuration.py b/threatstryker/api/settings/set_cloud_waf_configuration.py index 1480c00..01cb5b1 100644 --- a/threatstryker/api/settings/set_cloud_waf_configuration.py +++ b/threatstryker/api/settings/set_cloud_waf_configuration.py @@ -82,7 +82,8 @@ def sync_detailed( Set Cloud WAF Configuration Args: - body (IngestersCloudWafConfig): + body (IngestersCloudWafConfig): Example: {'aws_waf_arn': [{'arn': 'arn', 'region': + 'CLOUDFRONT'}, {'arn': 'arn', 'region': 'CLOUDFRONT'}], 'cloud_provider': 'aws'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Set Cloud WAF Configuration Args: - body (IngestersCloudWafConfig): + body (IngestersCloudWafConfig): Example: {'aws_waf_arn': [{'arn': 'arn', 'region': + 'CLOUDFRONT'}, {'arn': 'arn', 'region': 'CLOUDFRONT'}], 'cloud_provider': 'aws'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Set Cloud WAF Configuration Args: - body (IngestersCloudWafConfig): + body (IngestersCloudWafConfig): Example: {'aws_waf_arn': [{'arn': 'arn', 'region': + 'CLOUDFRONT'}, {'arn': 'arn', 'region': 'CLOUDFRONT'}], 'cloud_provider': 'aws'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Set Cloud WAF Configuration Args: - body (IngestersCloudWafConfig): + body (IngestersCloudWafConfig): Example: {'aws_waf_arn': [{'arn': 'arn', 'region': + 'CLOUDFRONT'}, {'arn': 'arn', 'region': 'CLOUDFRONT'}], 'cloud_provider': 'aws'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/test_unconfigured_email.py b/threatstryker/api/settings/test_unconfigured_email.py index 9671e87..320b5d1 100644 --- a/threatstryker/api/settings/test_unconfigured_email.py +++ b/threatstryker/api/settings/test_unconfigured_email.py @@ -84,7 +84,10 @@ def sync_detailed( Test Unconfigured Email Args: - body (ModelEmailConfigurationAdd): + body (ModelEmailConfigurationAdd): Example: {'email_id': 'email_id', 'password': + 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', 'email_provider': + 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +118,10 @@ def sync( Test Unconfigured Email Args: - body (ModelEmailConfigurationAdd): + body (ModelEmailConfigurationAdd): Example: {'email_id': 'email_id', 'password': + 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', 'email_provider': + 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +147,10 @@ async def asyncio_detailed( Test Unconfigured Email Args: - body (ModelEmailConfigurationAdd): + body (ModelEmailConfigurationAdd): Example: {'email_id': 'email_id', 'password': + 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', 'email_provider': + 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +179,10 @@ async def asyncio( Test Unconfigured Email Args: - body (ModelEmailConfigurationAdd): + body (ModelEmailConfigurationAdd): Example: {'email_id': 'email_id', 'password': + 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', 'email_provider': + 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/update_notification_threshold.py b/threatstryker/api/settings/update_notification_threshold.py index 9155555..1751f38 100644 --- a/threatstryker/api/settings/update_notification_threshold.py +++ b/threatstryker/api/settings/update_notification_threshold.py @@ -82,7 +82,8 @@ def sync_detailed( Update notification threshold percentage Args: - body (ModelNotificationThresholdUpdateRequest): + body (ModelNotificationThresholdUpdateRequest): Example: + {'notification_threshold_percentage': 0}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Update notification threshold percentage Args: - body (ModelNotificationThresholdUpdateRequest): + body (ModelNotificationThresholdUpdateRequest): Example: + {'notification_threshold_percentage': 0}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Update notification threshold percentage Args: - body (ModelNotificationThresholdUpdateRequest): + body (ModelNotificationThresholdUpdateRequest): Example: + {'notification_threshold_percentage': 0}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Update notification threshold percentage Args: - body (ModelNotificationThresholdUpdateRequest): + body (ModelNotificationThresholdUpdateRequest): Example: + {'notification_threshold_percentage': 0}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/update_scheduled_task.py b/threatstryker/api/settings/update_scheduled_task.py index 310d3bc..a59a335 100644 --- a/threatstryker/api/settings/update_scheduled_task.py +++ b/threatstryker/api/settings/update_scheduled_task.py @@ -85,7 +85,7 @@ def sync_detailed( Args: id (int): - body (ModelUpdateScheduledTaskRequest): + body (ModelUpdateScheduledTaskRequest): Example: {'is_enabled': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -119,7 +119,7 @@ def sync( Args: id (int): - body (ModelUpdateScheduledTaskRequest): + body (ModelUpdateScheduledTaskRequest): Example: {'is_enabled': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -148,7 +148,7 @@ async def asyncio_detailed( Args: id (int): - body (ModelUpdateScheduledTaskRequest): + body (ModelUpdateScheduledTaskRequest): Example: {'is_enabled': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +180,7 @@ async def asyncio( Args: id (int): - body (ModelUpdateScheduledTaskRequest): + body (ModelUpdateScheduledTaskRequest): Example: {'is_enabled': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/settings/update_setting.py b/threatstryker/api/settings/update_setting.py index eb288d2..568d0a4 100644 --- a/threatstryker/api/settings/update_setting.py +++ b/threatstryker/api/settings/update_setting.py @@ -85,7 +85,7 @@ def sync_detailed( Args: id (int): - body (SettingSettingUpdateRequest): + body (SettingSettingUpdateRequest): Example: {'value': 'value', 'key': 'console_url'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -119,7 +119,7 @@ def sync( Args: id (int): - body (SettingSettingUpdateRequest): + body (SettingSettingUpdateRequest): Example: {'value': 'value', 'key': 'console_url'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -148,7 +148,7 @@ async def asyncio_detailed( Args: id (int): - body (SettingSettingUpdateRequest): + body (SettingSettingUpdateRequest): Example: {'value': 'value', 'key': 'console_url'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -180,7 +180,7 @@ async def asyncio( Args: id (int): - body (SettingSettingUpdateRequest): + body (SettingSettingUpdateRequest): Example: {'value': 'value', 'key': 'console_url'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/threat/get_individual_threat_graph.py b/threatstryker/api/threat/get_individual_threat_graph.py index 76fdbd6..8af4f77 100644 --- a/threatstryker/api/threat/get_individual_threat_graph.py +++ b/threatstryker/api/threat/get_individual_threat_graph.py @@ -89,7 +89,9 @@ def sync_detailed( Retrieve threat graph associated with vulnerabilities Args: - body (GraphIndividualThreatGraphRequest): + body (GraphIndividualThreatGraphRequest): Example: {'graph_type': + 'most_vulnerable_attack_paths', 'issue_type': 'vulnerability', 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +122,9 @@ def sync( Retrieve threat graph associated with vulnerabilities Args: - body (GraphIndividualThreatGraphRequest): + body (GraphIndividualThreatGraphRequest): Example: {'graph_type': + 'most_vulnerable_attack_paths', 'issue_type': 'vulnerability', 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +150,9 @@ async def asyncio_detailed( Retrieve threat graph associated with vulnerabilities Args: - body (GraphIndividualThreatGraphRequest): + body (GraphIndividualThreatGraphRequest): Example: {'graph_type': + 'most_vulnerable_attack_paths', 'issue_type': 'vulnerability', 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +181,9 @@ async def asyncio( Retrieve threat graph associated with vulnerabilities Args: - body (GraphIndividualThreatGraphRequest): + body (GraphIndividualThreatGraphRequest): Example: {'graph_type': + 'most_vulnerable_attack_paths', 'issue_type': 'vulnerability', 'node_ids': ['node_ids', + 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/threat/get_threat_graph.py b/threatstryker/api/threat/get_threat_graph.py index c51ebbc..56455f2 100644 --- a/threatstryker/api/threat/get_threat_graph.py +++ b/threatstryker/api/threat/get_threat_graph.py @@ -98,7 +98,10 @@ def sync_detailed( Retrieve the full threat graph associated with the account Args: - body (GraphThreatFilters): + body (GraphThreatFilters): Example: {'cloud_resource_only': True, 'aws_filter': + {'account_ids': ['account_ids', 'account_ids']}, 'gcp_filter': {'account_ids': + ['account_ids', 'account_ids']}, 'type': 'all', 'azure_filter': {'account_ids': + ['account_ids', 'account_ids']}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -129,7 +132,10 @@ def sync( Retrieve the full threat graph associated with the account Args: - body (GraphThreatFilters): + body (GraphThreatFilters): Example: {'cloud_resource_only': True, 'aws_filter': + {'account_ids': ['account_ids', 'account_ids']}, 'gcp_filter': {'account_ids': + ['account_ids', 'account_ids']}, 'type': 'all', 'azure_filter': {'account_ids': + ['account_ids', 'account_ids']}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -155,7 +161,10 @@ async def asyncio_detailed( Retrieve the full threat graph associated with the account Args: - body (GraphThreatFilters): + body (GraphThreatFilters): Example: {'cloud_resource_only': True, 'aws_filter': + {'account_ids': ['account_ids', 'account_ids']}, 'gcp_filter': {'account_ids': + ['account_ids', 'account_ids']}, 'type': 'all', 'azure_filter': {'account_ids': + ['account_ids', 'account_ids']}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -184,7 +193,10 @@ async def asyncio( Retrieve the full threat graph associated with the account Args: - body (GraphThreatFilters): + body (GraphThreatFilters): Example: {'cloud_resource_only': True, 'aws_filter': + {'account_ids': ['account_ids', 'account_ids']}, 'gcp_filter': {'account_ids': + ['account_ids', 'account_ids']}, 'type': 'all', 'azure_filter': {'account_ids': + ['account_ids', 'account_ids']}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/topology/get_containers_topology_graph.py b/threatstryker/api/topology/get_containers_topology_graph.py index de363fd..0317ab7 100644 --- a/threatstryker/api/topology/get_containers_topology_graph.py +++ b/threatstryker/api/topology/get_containers_topology_graph.py @@ -84,7 +84,18 @@ def sync_detailed( Retrieve the full topology graph associated with the account from Containers Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +126,18 @@ def sync( Retrieve the full topology graph associated with the account from Containers Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +163,18 @@ async def asyncio_detailed( Retrieve the full topology graph associated with the account from Containers Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +203,18 @@ async def asyncio( Retrieve the full topology graph associated with the account from Containers Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/topology/get_hosts_topology_graph.py b/threatstryker/api/topology/get_hosts_topology_graph.py index 5796574..4811764 100644 --- a/threatstryker/api/topology/get_hosts_topology_graph.py +++ b/threatstryker/api/topology/get_hosts_topology_graph.py @@ -84,7 +84,18 @@ def sync_detailed( Retrieve the full topology graph associated with the account from Hosts Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +126,18 @@ def sync( Retrieve the full topology graph associated with the account from Hosts Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +163,18 @@ async def asyncio_detailed( Retrieve the full topology graph associated with the account from Hosts Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +203,18 @@ async def asyncio( Retrieve the full topology graph associated with the account from Hosts Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/topology/get_kubernetes_topology_graph.py b/threatstryker/api/topology/get_kubernetes_topology_graph.py index 1d44813..6a05ca5 100644 --- a/threatstryker/api/topology/get_kubernetes_topology_graph.py +++ b/threatstryker/api/topology/get_kubernetes_topology_graph.py @@ -84,7 +84,18 @@ def sync_detailed( Retrieve the full topology graph associated with the account from Kubernetes Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +126,18 @@ def sync( Retrieve the full topology graph associated with the account from Kubernetes Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +163,18 @@ async def asyncio_detailed( Retrieve the full topology graph associated with the account from Kubernetes Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +203,18 @@ async def asyncio( Retrieve the full topology graph associated with the account from Kubernetes Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/topology/get_pods_topology_graph.py b/threatstryker/api/topology/get_pods_topology_graph.py index e6ee4eb..93240a7 100644 --- a/threatstryker/api/topology/get_pods_topology_graph.py +++ b/threatstryker/api/topology/get_pods_topology_graph.py @@ -84,7 +84,18 @@ def sync_detailed( Retrieve the full topology graph associated with the account from Pods Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +126,18 @@ def sync( Retrieve the full topology graph associated with the account from Pods Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +163,18 @@ async def asyncio_detailed( Retrieve the full topology graph associated with the account from Pods Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +203,18 @@ async def asyncio( Retrieve the full topology graph associated with the account from Pods Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/topology/get_topology_delta.py b/threatstryker/api/topology/get_topology_delta.py index 77b4b13..50a7293 100644 --- a/threatstryker/api/topology/get_topology_delta.py +++ b/threatstryker/api/topology/get_topology_delta.py @@ -84,7 +84,9 @@ def sync_detailed( Retrieve addition or deletion toplogy deltas Args: - body (ModelTopologyDeltaReq): + body (ModelTopologyDeltaReq): Example: {'deletion': True, 'entity_types': + ['entity_types', 'entity_types'], 'deletion_timestamp': 6, 'addition_timestamp': 0, + 'addition': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( Retrieve addition or deletion toplogy deltas Args: - body (ModelTopologyDeltaReq): + body (ModelTopologyDeltaReq): Example: {'deletion': True, 'entity_types': + ['entity_types', 'entity_types'], 'deletion_timestamp': 6, 'addition_timestamp': 0, + 'addition': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( Retrieve addition or deletion toplogy deltas Args: - body (ModelTopologyDeltaReq): + body (ModelTopologyDeltaReq): Example: {'deletion': True, 'entity_types': + ['entity_types', 'entity_types'], 'deletion_timestamp': 6, 'addition_timestamp': 0, + 'addition': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( Retrieve addition or deletion toplogy deltas Args: - body (ModelTopologyDeltaReq): + body (ModelTopologyDeltaReq): Example: {'deletion': True, 'entity_types': + ['entity_types', 'entity_types'], 'deletion_timestamp': 6, 'addition_timestamp': 0, + 'addition': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/topology/get_topology_graph.py b/threatstryker/api/topology/get_topology_graph.py index 0ba0911..8ac8b1b 100644 --- a/threatstryker/api/topology/get_topology_graph.py +++ b/threatstryker/api/topology/get_topology_graph.py @@ -84,7 +84,18 @@ def sync_detailed( Retrieve the full topology graph associated with the account Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +126,18 @@ def sync( Retrieve the full topology graph associated with the account Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +163,18 @@ async def asyncio_detailed( Retrieve the full topology graph associated with the account Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +203,18 @@ async def asyncio( Retrieve the full topology graph associated with the account Args: - body (GraphTopologyFilters): + body (GraphTopologyFilters): Example: {'host_filter': ['host_filter', 'host_filter'], + 'field_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], + 'cloud_filter': ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': + ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': ['pod_filter', 'pod_filter'], + 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/topology/ingest_agent_report.py b/threatstryker/api/topology/ingest_agent_report.py index 104a724..5a56eff 100644 --- a/threatstryker/api/topology/ingest_agent_report.py +++ b/threatstryker/api/topology/ingest_agent_report.py @@ -84,7 +84,7 @@ def sync_detailed( Ingest data reported by one Agent Args: - body (ReportRawReport): + body (ReportRawReport): Example: {'payload': 'payload'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +115,7 @@ def sync( Ingest data reported by one Agent Args: - body (ReportRawReport): + body (ReportRawReport): Example: {'payload': 'payload'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +141,7 @@ async def asyncio_detailed( Ingest data reported by one Agent Args: - body (ReportRawReport): + body (ReportRawReport): Example: {'payload': 'payload'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +170,7 @@ async def asyncio( Ingest data reported by one Agent Args: - body (ReportRawReport): + body (ReportRawReport): Example: {'payload': 'payload'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/topology/ingest_sync_agent_report.py b/threatstryker/api/topology/ingest_sync_agent_report.py index 0cd75f3..b43be68 100644 --- a/threatstryker/api/topology/ingest_sync_agent_report.py +++ b/threatstryker/api/topology/ingest_sync_agent_report.py @@ -82,7 +82,17 @@ def sync_detailed( Ingest data reported by one Agent Args: - body (IngestersReportIngestionData): + body (IngestersReportIngestionData): Example: {'hosts': [{'key': ''}, {'key': ''}], + 'host_batch': [{'key': ''}, {'key': ''}], 'kubernetes_cluster_edge_batch': [{'key': ''}, + {'key': ''}], 'process_batch': [{'key': ''}, {'key': ''}], 'container_image_edge_batch': + [{'key': ''}, {'key': ''}], 'num_merged': 0, 'container_process_edge_batch': [{'key': ''}, + {'key': ''}], 'pod_batch': [{'key': ''}, {'key': ''}], 'process_edges_batch': [{'key': + ''}, {'key': ''}], 'container_edges_batch': [{'key': ''}, {'key': ''}], + 'api_endpoints_edge_batch': [{'key': ''}, {'key': ''}], 'container_batch': [{'key': ''}, + {'key': ''}], 'container_image_batch': [{'key': ''}, {'key': ''}], + 'kubernetes_cluster_batch': [{'key': ''}, {'key': ''}], 'api_endpoints_batch': [{'key': + ''}, {'key': ''}], 'pod_edges_batch': [{'key': ''}, {'key': ''}], 'endpoint_edges_batch': + [{'key': ''}, {'key': ''}], 'pod_host_edges_batch': [{'key': ''}, {'key': ''}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +123,17 @@ def sync( Ingest data reported by one Agent Args: - body (IngestersReportIngestionData): + body (IngestersReportIngestionData): Example: {'hosts': [{'key': ''}, {'key': ''}], + 'host_batch': [{'key': ''}, {'key': ''}], 'kubernetes_cluster_edge_batch': [{'key': ''}, + {'key': ''}], 'process_batch': [{'key': ''}, {'key': ''}], 'container_image_edge_batch': + [{'key': ''}, {'key': ''}], 'num_merged': 0, 'container_process_edge_batch': [{'key': ''}, + {'key': ''}], 'pod_batch': [{'key': ''}, {'key': ''}], 'process_edges_batch': [{'key': + ''}, {'key': ''}], 'container_edges_batch': [{'key': ''}, {'key': ''}], + 'api_endpoints_edge_batch': [{'key': ''}, {'key': ''}], 'container_batch': [{'key': ''}, + {'key': ''}], 'container_image_batch': [{'key': ''}, {'key': ''}], + 'kubernetes_cluster_batch': [{'key': ''}, {'key': ''}], 'api_endpoints_batch': [{'key': + ''}, {'key': ''}], 'pod_edges_batch': [{'key': ''}, {'key': ''}], 'endpoint_edges_batch': + [{'key': ''}, {'key': ''}], 'pod_host_edges_batch': [{'key': ''}, {'key': ''}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +159,17 @@ async def asyncio_detailed( Ingest data reported by one Agent Args: - body (IngestersReportIngestionData): + body (IngestersReportIngestionData): Example: {'hosts': [{'key': ''}, {'key': ''}], + 'host_batch': [{'key': ''}, {'key': ''}], 'kubernetes_cluster_edge_batch': [{'key': ''}, + {'key': ''}], 'process_batch': [{'key': ''}, {'key': ''}], 'container_image_edge_batch': + [{'key': ''}, {'key': ''}], 'num_merged': 0, 'container_process_edge_batch': [{'key': ''}, + {'key': ''}], 'pod_batch': [{'key': ''}, {'key': ''}], 'process_edges_batch': [{'key': + ''}, {'key': ''}], 'container_edges_batch': [{'key': ''}, {'key': ''}], + 'api_endpoints_edge_batch': [{'key': ''}, {'key': ''}], 'container_batch': [{'key': ''}, + {'key': ''}], 'container_image_batch': [{'key': ''}, {'key': ''}], + 'kubernetes_cluster_batch': [{'key': ''}, {'key': ''}], 'api_endpoints_batch': [{'key': + ''}, {'key': ''}], 'pod_edges_batch': [{'key': ''}, {'key': ''}], 'endpoint_edges_batch': + [{'key': ''}, {'key': ''}], 'pod_host_edges_batch': [{'key': ''}, {'key': ''}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +198,17 @@ async def asyncio( Ingest data reported by one Agent Args: - body (IngestersReportIngestionData): + body (IngestersReportIngestionData): Example: {'hosts': [{'key': ''}, {'key': ''}], + 'host_batch': [{'key': ''}, {'key': ''}], 'kubernetes_cluster_edge_batch': [{'key': ''}, + {'key': ''}], 'process_batch': [{'key': ''}, {'key': ''}], 'container_image_edge_batch': + [{'key': ''}, {'key': ''}], 'num_merged': 0, 'container_process_edge_batch': [{'key': ''}, + {'key': ''}], 'pod_batch': [{'key': ''}, {'key': ''}], 'process_edges_batch': [{'key': + ''}, {'key': ''}], 'container_edges_batch': [{'key': ''}, {'key': ''}], + 'api_endpoints_edge_batch': [{'key': ''}, {'key': ''}], 'container_batch': [{'key': ''}, + {'key': ''}], 'container_image_batch': [{'key': ''}, {'key': ''}], + 'kubernetes_cluster_batch': [{'key': ''}, {'key': ''}], 'api_endpoints_batch': [{'key': + ''}, {'key': ''}], 'pod_edges_batch': [{'key': ''}, {'key': ''}], 'endpoint_edges_batch': + [{'key': ''}, {'key': ''}], 'pod_host_edges_batch': [{'key': ''}, {'key': ''}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/user/invite_user.py b/threatstryker/api/user/invite_user.py index 8d7d6d0..38895db 100644 --- a/threatstryker/api/user/invite_user.py +++ b/threatstryker/api/user/invite_user.py @@ -84,7 +84,8 @@ def sync_detailed( Invite a user Args: - body (ModelInviteUserRequest): + body (ModelInviteUserRequest): Example: {'role': 'admin', 'action': 'send-invite-email', + 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Invite a user Args: - body (ModelInviteUserRequest): + body (ModelInviteUserRequest): Example: {'role': 'admin', 'action': 'send-invite-email', + 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Invite a user Args: - body (ModelInviteUserRequest): + body (ModelInviteUserRequest): Example: {'role': 'admin', 'action': 'send-invite-email', + 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Invite a user Args: - body (ModelInviteUserRequest): + body (ModelInviteUserRequest): Example: {'role': 'admin', 'action': 'send-invite-email', + 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/user/register_invited_user.py b/threatstryker/api/user/register_invited_user.py index 0dec137..b437074 100644 --- a/threatstryker/api/user/register_invited_user.py +++ b/threatstryker/api/user/register_invited_user.py @@ -84,7 +84,9 @@ def sync_detailed( Register invited user Args: - body (ModelRegisterInvitedUserRequest): + body (ModelRegisterInvitedUserRequest): Example: {'password': 'password', 'code': 'code', + 'namespace': 'namespace', 'last_name': 'last_name', 'first_name': 'first_name', + 'is_temporary_password': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( Register invited user Args: - body (ModelRegisterInvitedUserRequest): + body (ModelRegisterInvitedUserRequest): Example: {'password': 'password', 'code': 'code', + 'namespace': 'namespace', 'last_name': 'last_name', 'first_name': 'first_name', + 'is_temporary_password': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( Register invited user Args: - body (ModelRegisterInvitedUserRequest): + body (ModelRegisterInvitedUserRequest): Example: {'password': 'password', 'code': 'code', + 'namespace': 'namespace', 'last_name': 'last_name', 'first_name': 'first_name', + 'is_temporary_password': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( Register invited user Args: - body (ModelRegisterInvitedUserRequest): + body (ModelRegisterInvitedUserRequest): Example: {'password': 'password', 'code': 'code', + 'namespace': 'namespace', 'last_name': 'last_name', 'first_name': 'first_name', + 'is_temporary_password': True}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/user/register_user.py b/threatstryker/api/user/register_user.py index f708f8b..c26972d 100644 --- a/threatstryker/api/user/register_user.py +++ b/threatstryker/api/user/register_user.py @@ -84,7 +84,9 @@ def sync_detailed( First user registration. Further users needs to be invited. Args: - body (ModelUserRegisterRequest): + body (ModelUserRegisterRequest): Example: {'password': 'password', 'console_url': + 'console_url', 'namespace': 'namespace', 'last_name': 'last_name', 'company': 'company', + 'first_name': 'first_name', 'is_temporary_password': True, 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +117,9 @@ def sync( First user registration. Further users needs to be invited. Args: - body (ModelUserRegisterRequest): + body (ModelUserRegisterRequest): Example: {'password': 'password', 'console_url': + 'console_url', 'namespace': 'namespace', 'last_name': 'last_name', 'company': 'company', + 'first_name': 'first_name', 'is_temporary_password': True, 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +145,9 @@ async def asyncio_detailed( First user registration. Further users needs to be invited. Args: - body (ModelUserRegisterRequest): + body (ModelUserRegisterRequest): Example: {'password': 'password', 'console_url': + 'console_url', 'namespace': 'namespace', 'last_name': 'last_name', 'company': 'company', + 'first_name': 'first_name', 'is_temporary_password': True, 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +176,9 @@ async def asyncio( First user registration. Further users needs to be invited. Args: - body (ModelUserRegisterRequest): + body (ModelUserRegisterRequest): Example: {'password': 'password', 'console_url': + 'console_url', 'namespace': 'namespace', 'last_name': 'last_name', 'company': 'company', + 'first_name': 'first_name', 'is_temporary_password': True, 'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/user/reset_password_request.py b/threatstryker/api/user/reset_password_request.py index f156570..fa7c489 100644 --- a/threatstryker/api/user/reset_password_request.py +++ b/threatstryker/api/user/reset_password_request.py @@ -84,7 +84,7 @@ def sync_detailed( Request for resetting the password Args: - body (ModelPasswordResetRequest): + body (ModelPasswordResetRequest): Example: {'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +115,7 @@ def sync( Request for resetting the password Args: - body (ModelPasswordResetRequest): + body (ModelPasswordResetRequest): Example: {'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +141,7 @@ async def asyncio_detailed( Request for resetting the password Args: - body (ModelPasswordResetRequest): + body (ModelPasswordResetRequest): Example: {'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +170,7 @@ async def asyncio( Request for resetting the password Args: - body (ModelPasswordResetRequest): + body (ModelPasswordResetRequest): Example: {'email': 'email'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/user/update_current_user.py b/threatstryker/api/user/update_current_user.py index a22c81f..da809c4 100644 --- a/threatstryker/api/user/update_current_user.py +++ b/threatstryker/api/user/update_current_user.py @@ -84,7 +84,8 @@ def sync_detailed( Update logged in user information Args: - body (ModelUpdateUserRequest): + body (ModelUpdateUserRequest): Example: {'is_active': True, 'role': 'admin', 'last_name': + 'last_name', 'first_name': 'first_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Update logged in user information Args: - body (ModelUpdateUserRequest): + body (ModelUpdateUserRequest): Example: {'is_active': True, 'role': 'admin', 'last_name': + 'last_name', 'first_name': 'first_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Update logged in user information Args: - body (ModelUpdateUserRequest): + body (ModelUpdateUserRequest): Example: {'is_active': True, 'role': 'admin', 'last_name': + 'last_name', 'first_name': 'first_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Update logged in user information Args: - body (ModelUpdateUserRequest): + body (ModelUpdateUserRequest): Example: {'is_active': True, 'role': 'admin', 'last_name': + 'last_name', 'first_name': 'first_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/user/update_password.py b/threatstryker/api/user/update_password.py index 2c0a0f6..943bdfc 100644 --- a/threatstryker/api/user/update_password.py +++ b/threatstryker/api/user/update_password.py @@ -82,7 +82,8 @@ def sync_detailed( Update current user's password Args: - body (ModelUpdateUserPasswordRequest): + body (ModelUpdateUserPasswordRequest): Example: {'old_password': 'old_password', + 'new_password': 'new_password'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Update current user's password Args: - body (ModelUpdateUserPasswordRequest): + body (ModelUpdateUserPasswordRequest): Example: {'old_password': 'old_password', + 'new_password': 'new_password'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Update current user's password Args: - body (ModelUpdateUserPasswordRequest): + body (ModelUpdateUserPasswordRequest): Example: {'old_password': 'old_password', + 'new_password': 'new_password'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Update current user's password Args: - body (ModelUpdateUserPasswordRequest): + body (ModelUpdateUserPasswordRequest): Example: {'old_password': 'old_password', + 'new_password': 'new_password'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/user/update_user.py b/threatstryker/api/user/update_user.py index eb00fe4..9446e89 100644 --- a/threatstryker/api/user/update_user.py +++ b/threatstryker/api/user/update_user.py @@ -87,7 +87,8 @@ def sync_detailed( Args: id (int): - body (ModelUpdateUserIDRequest): + body (ModelUpdateUserIDRequest): Example: {'is_active': True, 'role': 'admin', + 'last_name': 'last_name', 'first_name': 'first_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -121,7 +122,8 @@ def sync( Args: id (int): - body (ModelUpdateUserIDRequest): + body (ModelUpdateUserIDRequest): Example: {'is_active': True, 'role': 'admin', + 'last_name': 'last_name', 'first_name': 'first_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -150,7 +152,8 @@ async def asyncio_detailed( Args: id (int): - body (ModelUpdateUserIDRequest): + body (ModelUpdateUserIDRequest): Example: {'is_active': True, 'role': 'admin', + 'last_name': 'last_name', 'first_name': 'first_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -182,7 +185,8 @@ async def asyncio( Args: id (int): - body (ModelUpdateUserIDRequest): + body (ModelUpdateUserIDRequest): Example: {'is_active': True, 'role': 'admin', + 'last_name': 'last_name', 'first_name': 'first_name'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/user/verify_reset_password_request.py b/threatstryker/api/user/verify_reset_password_request.py index 4283922..2c01974 100644 --- a/threatstryker/api/user/verify_reset_password_request.py +++ b/threatstryker/api/user/verify_reset_password_request.py @@ -82,7 +82,8 @@ def sync_detailed( Verify code and reset the password Args: - body (ModelPasswordResetVerifyRequest): + body (ModelPasswordResetVerifyRequest): Example: {'password': 'password', 'code': 'code', + 'namespace': 'namespace'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Verify code and reset the password Args: - body (ModelPasswordResetVerifyRequest): + body (ModelPasswordResetVerifyRequest): Example: {'password': 'password', 'code': 'code', + 'namespace': 'namespace'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Verify code and reset the password Args: - body (ModelPasswordResetVerifyRequest): + body (ModelPasswordResetVerifyRequest): Example: {'password': 'password', 'code': 'code', + 'namespace': 'namespace'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Verify code and reset the password Args: - body (ModelPasswordResetVerifyRequest): + body (ModelPasswordResetVerifyRequest): Example: {'password': 'password', 'code': 'code', + 'namespace': 'namespace'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/violations/delete_network_violations.py b/threatstryker/api/violations/delete_network_violations.py index 4f3073d..3f470cc 100644 --- a/threatstryker/api/violations/delete_network_violations.py +++ b/threatstryker/api/violations/delete_network_violations.py @@ -82,7 +82,7 @@ def sync_detailed( Remove network violations Args: - body (ModelDeleteFilter): + body (ModelDeleteFilter): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Remove network violations Args: - body (ModelDeleteFilter): + body (ModelDeleteFilter): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Remove network violations Args: - body (ModelDeleteFilter): + body (ModelDeleteFilter): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Remove network violations Args: - body (ModelDeleteFilter): + body (ModelDeleteFilter): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/violations/delete_quarantine_violations.py b/threatstryker/api/violations/delete_quarantine_violations.py index 12728b6..d7e6ea0 100644 --- a/threatstryker/api/violations/delete_quarantine_violations.py +++ b/threatstryker/api/violations/delete_quarantine_violations.py @@ -82,7 +82,7 @@ def sync_detailed( Remove quarantine violations Args: - body (ModelDeleteFilter): + body (ModelDeleteFilter): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +113,7 @@ def sync( Remove quarantine violations Args: - body (ModelDeleteFilter): + body (ModelDeleteFilter): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +139,7 @@ async def asyncio_detailed( Remove quarantine violations Args: - body (ModelDeleteFilter): + body (ModelDeleteFilter): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +168,7 @@ async def asyncio( Remove quarantine violations Args: - body (ModelDeleteFilter): + body (ModelDeleteFilter): Example: {'node_ids': ['node_ids', 'node_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/count_results_vulnerability_scans.py b/threatstryker/api/vulnerability/count_results_vulnerability_scans.py index 163a254..0d9b504 100644 --- a/threatstryker/api/vulnerability/count_results_vulnerability_scans.py +++ b/threatstryker/api/vulnerability/count_results_vulnerability_scans.py @@ -84,7 +84,15 @@ def sync_detailed( Get Vulnerability Scan results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Vulnerability Scan results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Vulnerability Scan results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Vulnerability Scan results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/download_sbom.py b/threatstryker/api/vulnerability/download_sbom.py index b67cf8c..d5eb678 100644 --- a/threatstryker/api/vulnerability/download_sbom.py +++ b/threatstryker/api/vulnerability/download_sbom.py @@ -84,7 +84,7 @@ def sync_detailed( Download SBOM for a node or scan id Args: - body (ModelSbomRequest): + body (ModelSbomRequest): Example: {'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +115,7 @@ def sync( Download SBOM for a node or scan id Args: - body (ModelSbomRequest): + body (ModelSbomRequest): Example: {'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +141,7 @@ async def asyncio_detailed( Download SBOM for a node or scan id Args: - body (ModelSbomRequest): + body (ModelSbomRequest): Example: {'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +170,7 @@ async def asyncio( Download SBOM for a node or scan id Args: - body (ModelSbomRequest): + body (ModelSbomRequest): Example: {'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/get_sbom.py b/threatstryker/api/vulnerability/get_sbom.py index f14cedf..3a55dbc 100644 --- a/threatstryker/api/vulnerability/get_sbom.py +++ b/threatstryker/api/vulnerability/get_sbom.py @@ -89,7 +89,7 @@ def sync_detailed( Get SBOM for a node or scan id Args: - body (ModelSbomRequest): + body (ModelSbomRequest): Example: {'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -120,7 +120,7 @@ def sync( Get SBOM for a node or scan id Args: - body (ModelSbomRequest): + body (ModelSbomRequest): Example: {'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -146,7 +146,7 @@ async def asyncio_detailed( Get SBOM for a node or scan id Args: - body (ModelSbomRequest): + body (ModelSbomRequest): Example: {'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -175,7 +175,7 @@ async def asyncio( Get SBOM for a node or scan id Args: - body (ModelSbomRequest): + body (ModelSbomRequest): Example: {'scan_id': 'scan_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/ingest_sbom.py b/threatstryker/api/vulnerability/ingest_sbom.py index cf13187..98b73ac 100644 --- a/threatstryker/api/vulnerability/ingest_sbom.py +++ b/threatstryker/api/vulnerability/ingest_sbom.py @@ -82,7 +82,11 @@ def sync_detailed( Ingest SBOM from Scan Args: - body (UtilsScanSbomRequest): + body (UtilsScanSbomRequest): Example: {'skip_scan': True, 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'scan_type': 'scan_type', 'sbom_file_path': 'sbom_file_path', + 'registry_id': 'registry_id', 'mode': 'mode', 'image_name': 'image_name', 'node_type': + 'node_type', 'container_name': 'container_name', 'sbom': 'sbom', 'scan_id': 'scan_id', + 'image_id': 'image_id', 'host_name': 'host_name', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +117,11 @@ def sync( Ingest SBOM from Scan Args: - body (UtilsScanSbomRequest): + body (UtilsScanSbomRequest): Example: {'skip_scan': True, 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'scan_type': 'scan_type', 'sbom_file_path': 'sbom_file_path', + 'registry_id': 'registry_id', 'mode': 'mode', 'image_name': 'image_name', 'node_type': + 'node_type', 'container_name': 'container_name', 'sbom': 'sbom', 'scan_id': 'scan_id', + 'image_id': 'image_id', 'host_name': 'host_name', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +147,11 @@ async def asyncio_detailed( Ingest SBOM from Scan Args: - body (UtilsScanSbomRequest): + body (UtilsScanSbomRequest): Example: {'skip_scan': True, 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'scan_type': 'scan_type', 'sbom_file_path': 'sbom_file_path', + 'registry_id': 'registry_id', 'mode': 'mode', 'image_name': 'image_name', 'node_type': + 'node_type', 'container_name': 'container_name', 'sbom': 'sbom', 'scan_id': 'scan_id', + 'image_id': 'image_id', 'host_name': 'host_name', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +180,11 @@ async def asyncio( Ingest SBOM from Scan Args: - body (UtilsScanSbomRequest): + body (UtilsScanSbomRequest): Example: {'skip_scan': True, 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'scan_type': 'scan_type', 'sbom_file_path': 'sbom_file_path', + 'registry_id': 'registry_id', 'mode': 'mode', 'image_name': 'image_name', 'node_type': + 'node_type', 'container_name': 'container_name', 'sbom': 'sbom', 'scan_id': 'scan_id', + 'image_id': 'image_id', 'host_name': 'host_name', 'node_id': 'node_id'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/list_vulnerability_scans.py b/threatstryker/api/vulnerability/list_vulnerability_scans.py index 9420a8d..50bdf0e 100644 --- a/threatstryker/api/vulnerability/list_vulnerability_scans.py +++ b/threatstryker/api/vulnerability/list_vulnerability_scans.py @@ -84,7 +84,16 @@ def sync_detailed( Get Vulnerability Scan list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +124,16 @@ def sync( Get Vulnerability Scan list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +159,16 @@ async def asyncio_detailed( Get Vulnerability Scan list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +197,16 @@ async def asyncio( Get Vulnerability Scan list on agent or registry Args: - body (ModelScanListReq): + body (ModelScanListReq): Example: {'window': {'offset': 0, 'size': 6}, 'fields_filter': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': + True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/results_vulnerability_scans.py b/threatstryker/api/vulnerability/results_vulnerability_scans.py index 829dfc7..4387b1c 100644 --- a/threatstryker/api/vulnerability/results_vulnerability_scans.py +++ b/threatstryker/api/vulnerability/results_vulnerability_scans.py @@ -84,7 +84,15 @@ def sync_detailed( Get Vulnerability Scan results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +123,15 @@ def sync( Get Vulnerability Scan results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +157,15 @@ async def asyncio_detailed( Get Vulnerability Scan results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +194,15 @@ async def asyncio( Get Vulnerability Scan results on agent or registry Args: - body (ModelScanResultsReq): + body (ModelScanResultsReq): Example: {'scan_id': 'scan_id', 'window': {'offset': 0, + 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, + 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/start_vulnerability_scan.py b/threatstryker/api/vulnerability/start_vulnerability_scan.py index 2892cfc..d4a83d1 100644 --- a/threatstryker/api/vulnerability/start_vulnerability_scan.py +++ b/threatstryker/api/vulnerability/start_vulnerability_scan.py @@ -84,7 +84,13 @@ def sync_detailed( Start Vulnerability Scan on agent or registry Args: - body (ModelVulnerabilityScanTriggerReq): + body (ModelVulnerabilityScanTriggerReq): Example: {'is_priority': True, 'scan_config': + [{'language': 'base'}, {'language': 'base'}], 'deepfence_system_scan': True, 'filters': + {'container_scan_filter': {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': + {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +121,13 @@ def sync( Start Vulnerability Scan on agent or registry Args: - body (ModelVulnerabilityScanTriggerReq): + body (ModelVulnerabilityScanTriggerReq): Example: {'is_priority': True, 'scan_config': + [{'language': 'base'}, {'language': 'base'}], 'deepfence_system_scan': True, 'filters': + {'container_scan_filter': {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': + {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +153,13 @@ async def asyncio_detailed( Start Vulnerability Scan on agent or registry Args: - body (ModelVulnerabilityScanTriggerReq): + body (ModelVulnerabilityScanTriggerReq): Example: {'is_priority': True, 'scan_config': + [{'language': 'base'}, {'language': 'base'}], 'deepfence_system_scan': True, 'filters': + {'container_scan_filter': {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': + {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +188,13 @@ async def asyncio( Start Vulnerability Scan on agent or registry Args: - body (ModelVulnerabilityScanTriggerReq): + body (ModelVulnerabilityScanTriggerReq): Example: {'is_priority': True, 'scan_config': + [{'language': 'base'}, {'language': 'base'}], 'deepfence_system_scan': True, 'filters': + {'container_scan_filter': {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': + {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/status_vulnerability_scan.py b/threatstryker/api/vulnerability/status_vulnerability_scan.py index c832093..f1afd74 100644 --- a/threatstryker/api/vulnerability/status_vulnerability_scan.py +++ b/threatstryker/api/vulnerability/status_vulnerability_scan.py @@ -84,7 +84,8 @@ def sync_detailed( Get Vulnerability Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -115,7 +116,8 @@ def sync( Get Vulnerability Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -141,7 +143,8 @@ async def asyncio_detailed( Get Vulnerability Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -170,7 +173,8 @@ async def asyncio( Get Vulnerability Scan Status on agent or registry Args: - body (ModelScanStatusReq): + body (ModelScanStatusReq): Example: {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': + ['scan_ids', 'scan_ids']}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/api/vulnerability/stop_vulnerability_scan.py b/threatstryker/api/vulnerability/stop_vulnerability_scan.py index 0d4eded..1631134 100644 --- a/threatstryker/api/vulnerability/stop_vulnerability_scan.py +++ b/threatstryker/api/vulnerability/stop_vulnerability_scan.py @@ -82,7 +82,8 @@ def sync_detailed( Stop Vulnerability Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -113,7 +114,8 @@ def sync( Stop Vulnerability Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -139,7 +141,8 @@ async def asyncio_detailed( Stop Vulnerability Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. @@ -168,7 +171,8 @@ async def asyncio( Stop Vulnerability Scan on agent or registry Args: - body (ModelStopScanRequest): + body (ModelStopScanRequest): Example: {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': + 'SecretScan'}. Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. diff --git a/threatstryker/models/__init__.py b/threatstryker/models/__init__.py index 2b9f8b3..c4de13c 100644 --- a/threatstryker/models/__init__.py +++ b/threatstryker/models/__init__.py @@ -221,6 +221,7 @@ from .model_email_configuration_resp import ModelEmailConfigurationResp from .model_enable_cloud_tracer_req import ModelEnableCloudTracerReq from .model_enable_tracer_req import ModelEnableTracerReq +from .model_exploitable_alert import ModelExploitableAlert from .model_export_report import ModelExportReport from .model_fetch_window import ModelFetchWindow from .model_file_alert import ModelFileAlert @@ -282,6 +283,8 @@ from .model_get_attached_nodes_resp import ModelGetAttachedNodesResp from .model_get_audit_logs_request import ModelGetAuditLogsRequest from .model_graph_result import ModelGraphResult +from .model_graph_result_edges import ModelGraphResultEdges +from .model_graph_result_nodes import ModelGraphResultNodes from .model_host import ModelHost from .model_host_alerts_counts_type_0 import ModelHostAlertsCountsType0 from .model_image_stub import ModelImageStub @@ -354,6 +357,7 @@ from .model_registry_update_req_non_secret_type_0 import ModelRegistryUpdateReqNonSecretType0 from .model_registry_update_req_secret_type_0 import ModelRegistryUpdateReqSecretType0 from .model_response_access_token import ModelResponseAccessToken +from .model_rules_action_request import ModelRulesActionRequest from .model_sbom_request import ModelSbomRequest from .model_sbom_response import ModelSbomResponse from .model_scan_compare_req import ModelScanCompareReq @@ -423,6 +427,7 @@ from .model_vulnerability_scan_trigger_req import ModelVulnerabilityScanTriggerReq from .postgresql_db_get_audit_logs_row import PostgresqlDbGetAuditLogsRow from .postgresql_db_scheduler import PostgresqlDbScheduler +from .postgresql_db_scheduler_last_ran_at import PostgresqlDbSchedulerLastRanAt from .report_metadata import ReportMetadata from .report_raw_report import ReportRawReport from .reporters_compare_filter import ReportersCompareFilter @@ -438,6 +443,7 @@ from .reporters_sev_counts import ReportersSevCounts from .reporters_sev_counts_counts_type_0 import ReportersSevCountsCountsType0 from .search_chained_search_filter import SearchChainedSearchFilter +from .search_most_exploitable_count_resp import SearchMostExploitableCountResp from .search_node_count_resp import SearchNodeCountResp from .search_result_group import SearchResultGroup from .search_result_group_resp import SearchResultGroupResp @@ -667,6 +673,7 @@ "ModelEmailConfigurationResp", "ModelEnableCloudTracerReq", "ModelEnableTracerReq", + "ModelExploitableAlert", "ModelExportReport", "ModelFetchWindow", "ModelFileAlert", @@ -704,6 +711,8 @@ "ModelGetAttachedNodesResp", "ModelGetAuditLogsRequest", "ModelGraphResult", + "ModelGraphResultEdges", + "ModelGraphResultNodes", "ModelHost", "ModelHostAlertsCountsType0", "ModelImageStub", @@ -776,6 +785,7 @@ "ModelRegistryUpdateReqNonSecretType0", "ModelRegistryUpdateReqSecretType0", "ModelResponseAccessToken", + "ModelRulesActionRequest", "ModelSbomRequest", "ModelSbomResponse", "ModelScanCompareReq", @@ -835,6 +845,7 @@ "ModelVulnerabilityScanTriggerReq", "PostgresqlDbGetAuditLogsRow", "PostgresqlDbScheduler", + "PostgresqlDbSchedulerLastRanAt", "ReportersCompareFilter", "ReportersContainsFilter", "ReportersContainsFilterFilterInType0", @@ -850,6 +861,7 @@ "ReportMetadata", "ReportRawReport", "SearchChainedSearchFilter", + "SearchMostExploitableCountResp", "SearchNodeCountResp", "SearchResultGroup", "SearchResultGroupResp", diff --git a/threatstryker/models/api_docs_bad_request_response.py b/threatstryker/models/api_docs_bad_request_response.py index 7d42526..234cbee 100644 --- a/threatstryker/models/api_docs_bad_request_response.py +++ b/threatstryker/models/api_docs_bad_request_response.py @@ -16,6 +16,10 @@ @_attrs_define class ApiDocsBadRequestResponse: """ + Example: + {'error_index': {'key': [0, 0]}, 'success': False, 'error_fields': {'key': 'error_fields'}, 'message': + 'message'} + Attributes: error_fields (Union['ApiDocsBadRequestResponseErrorFieldsType0', None, Unset]): error_index (Union['ApiDocsBadRequestResponseErrorIndexType0', None, Unset]): diff --git a/threatstryker/models/api_docs_failure_response.py b/threatstryker/models/api_docs_failure_response.py index 8b6819e..b9e78b5 100644 --- a/threatstryker/models/api_docs_failure_response.py +++ b/threatstryker/models/api_docs_failure_response.py @@ -11,6 +11,9 @@ @_attrs_define class ApiDocsFailureResponse: """ + Example: + {'success': False, 'message': 'message'} + Attributes: message (Union[Unset, str]): success (Union[Unset, bool]): diff --git a/threatstryker/models/completion_completion_node_field_req.py b/threatstryker/models/completion_completion_node_field_req.py index c814ce0..96b4d69 100644 --- a/threatstryker/models/completion_completion_node_field_req.py +++ b/threatstryker/models/completion_completion_node_field_req.py @@ -16,11 +16,26 @@ @_attrs_define class CompletionCompletionNodeFieldReq: """ + Example: + {'completion': 'completion', 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'field_name': 'field_name'} + Attributes: completion (str): field_name (str): - window (ModelFetchWindow): - filters (Union[Unset, ReportersFieldsFilters]): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. + filters (Union[Unset, ReportersFieldsFilters]): Example: {'compare_filter': [{'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': + {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}. scan_id (Union[Unset, str]): """ diff --git a/threatstryker/models/completion_completion_node_field_res.py b/threatstryker/models/completion_completion_node_field_res.py index e928832..ef44a17 100644 --- a/threatstryker/models/completion_completion_node_field_res.py +++ b/threatstryker/models/completion_completion_node_field_res.py @@ -9,6 +9,9 @@ @_attrs_define class CompletionCompletionNodeFieldRes: """ + Example: + {'possible_values': ['possible_values', 'possible_values']} + Attributes: possible_values (Union[List[str], None]): """ diff --git a/threatstryker/models/controls_action.py b/threatstryker/models/controls_action.py index 9d652f5..4356f19 100644 --- a/threatstryker/models/controls_action.py +++ b/threatstryker/models/controls_action.py @@ -9,6 +9,9 @@ @_attrs_define class ControlsAction: """ + Example: + {'id': 6, 'request_payload': 'request_payload'} + Attributes: id (int): request_payload (str): diff --git a/threatstryker/models/controls_agent_beat.py b/threatstryker/models/controls_agent_beat.py index d656921..c13499c 100644 --- a/threatstryker/models/controls_agent_beat.py +++ b/threatstryker/models/controls_agent_beat.py @@ -9,6 +9,9 @@ @_attrs_define class ControlsAgentBeat: """ + Example: + {'beatrate': 0} + Attributes: beatrate (int): """ diff --git a/threatstryker/models/controls_agent_controls.py b/threatstryker/models/controls_agent_controls.py index d9d59ce..bb21cc4 100644 --- a/threatstryker/models/controls_agent_controls.py +++ b/threatstryker/models/controls_agent_controls.py @@ -13,6 +13,10 @@ @_attrs_define class ControlsAgentControls: """ + Example: + {'beatrate': 0, 'commands': [{'id': 6, 'request_payload': 'request_payload'}, {'id': 6, 'request_payload': + 'request_payload'}]} + Attributes: beatrate (int): commands (Union[List['ControlsAction'], None]): diff --git a/threatstryker/models/controls_filesystem_tracer_config.py b/threatstryker/models/controls_filesystem_tracer_config.py index 6a3d2fd..ea05515 100644 --- a/threatstryker/models/controls_filesystem_tracer_config.py +++ b/threatstryker/models/controls_filesystem_tracer_config.py @@ -13,6 +13,11 @@ @_attrs_define class ControlsFilesystemTracerConfig: """ + Example: + {'updated_at': 0, 'watchedentries': [{'severity': 'severity', 'accesstypes': ['accesstypes', 'accesstypes'], + 'root': 'root', 'recursive': True}, {'severity': 'severity', 'accesstypes': ['accesstypes', 'accesstypes'], + 'root': 'root', 'recursive': True}], 'node_id': 'node_id'} + Attributes: node_id (str): updated_at (int): diff --git a/threatstryker/models/controls_monitored_files_config.py b/threatstryker/models/controls_monitored_files_config.py index 6f66260..a850711 100644 --- a/threatstryker/models/controls_monitored_files_config.py +++ b/threatstryker/models/controls_monitored_files_config.py @@ -9,6 +9,9 @@ @_attrs_define class ControlsMonitoredFilesConfig: """ + Example: + {'severity': 'severity', 'accesstypes': ['accesstypes', 'accesstypes'], 'root': 'root', 'recursive': True} + Attributes: accesstypes (Union[List[str], None]): recursive (bool): diff --git a/threatstryker/models/controls_network_policy.py b/threatstryker/models/controls_network_policy.py index a0aca00..6bd9ba3 100644 --- a/threatstryker/models/controls_network_policy.py +++ b/threatstryker/models/controls_network_policy.py @@ -16,12 +16,17 @@ @_attrs_define class ControlsNetworkPolicy: """ + Example: + {'policy_id': 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': 'block', 'duration_count_limit_sec': 6, + 'matcher': {'fields_matcher': {'key': ['fields_matcher', 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1} + Attributes: action (ControlsNetworkPolicyAction): count_limit (int): duration_count_limit_sec (int): duration_sec (int): - matcher (ControlsPolicyAlertMatcher): + matcher (ControlsPolicyAlertMatcher): Example: {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}. policy_id (str): updated_at (int): uuid (Union[Unset, str]): diff --git a/threatstryker/models/controls_network_rules.py b/threatstryker/models/controls_network_rules.py index 47f75d3..e3a439d 100644 --- a/threatstryker/models/controls_network_rules.py +++ b/threatstryker/models/controls_network_rules.py @@ -9,6 +9,9 @@ @_attrs_define class ControlsNetworkRules: """ + Example: + {'inbound': ['inbound', 'inbound'], 'outbound': ['outbound', 'outbound']} + Attributes: inbound (Union[List[str], None]): outbound (Union[List[str], None]): diff --git a/threatstryker/models/controls_network_tracer_config.py b/threatstryker/models/controls_network_tracer_config.py index c0a345a..ac26eb8 100644 --- a/threatstryker/models/controls_network_tracer_config.py +++ b/threatstryker/models/controls_network_tracer_config.py @@ -16,13 +16,22 @@ @_attrs_define class ControlsNetworkTracerConfig: """ + Example: + {'mode': 'all', 'process_names': ['process_names', 'process_names'], 'tcp_rules': {'inbound': ['inbound', + 'inbound'], 'outbound': ['outbound', 'outbound']}, 'http_rules': {'inbound': ['inbound', 'inbound'], 'outbound': + ['outbound', 'outbound']}, 'updated_at': 0, 'ignored_rule_ids': ['ignored_rule_ids', 'ignored_rule_ids'], + 'https_rules': {'inbound': ['inbound', 'inbound'], 'outbound': ['outbound', 'outbound']}, 'node_id': 'node_id'} + Attributes: - http_rules (ControlsNetworkRules): - https_rules (ControlsNetworkRules): + http_rules (ControlsNetworkRules): Example: {'inbound': ['inbound', 'inbound'], 'outbound': ['outbound', + 'outbound']}. + https_rules (ControlsNetworkRules): Example: {'inbound': ['inbound', 'inbound'], 'outbound': ['outbound', + 'outbound']}. mode (ControlsNetworkTracerConfigMode): node_id (str): process_names (Union[List[str], None]): - tcp_rules (ControlsNetworkRules): + tcp_rules (ControlsNetworkRules): Example: {'inbound': ['inbound', 'inbound'], 'outbound': ['outbound', + 'outbound']}. updated_at (int): ignored_rule_ids (Union[List[str], None, Unset]): """ diff --git a/threatstryker/models/controls_policy_alert_matcher.py b/threatstryker/models/controls_policy_alert_matcher.py index bc8bcd4..3d67a96 100644 --- a/threatstryker/models/controls_policy_alert_matcher.py +++ b/threatstryker/models/controls_policy_alert_matcher.py @@ -15,6 +15,9 @@ @_attrs_define class ControlsPolicyAlertMatcher: """ + Example: + {'fields_matcher': {'key': ['fields_matcher', 'fields_matcher']}} + Attributes: fields_matcher (Union['ControlsPolicyAlertMatcherFieldsMatcherType0', None]): """ diff --git a/threatstryker/models/controls_policy_filter_config.py b/threatstryker/models/controls_policy_filter_config.py index 3c394d0..e01216b 100644 --- a/threatstryker/models/controls_policy_filter_config.py +++ b/threatstryker/models/controls_policy_filter_config.py @@ -15,6 +15,15 @@ @_attrs_define class ControlsPolicyFilterConfig: """ + Example: + {'ignored_remote_hosts': ['ignored_remote_hosts', 'ignored_remote_hosts'], 'updated_at': 5, 'use_waf': True, + 'policies': [{'policy_id': 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': 'block', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', 'fields_matcher']}}, + 'uuid': 'uuid', 'duration_sec': 1}, {'policy_id': 'policy_id', 'updated_at': 5, 'count_limit': 0, 'action': + 'block', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}, 'uuid': 'uuid', 'duration_sec': 1}], 'ignored_remote_ips': ['ignored_remote_ips', + 'ignored_remote_ips'], 'enable_policy_logs': True, 'node_id': 'node_id'} + Attributes: ignored_remote_ips (Union[List[str], None]): node_id (str): diff --git a/threatstryker/models/controls_process_event_entry.py b/threatstryker/models/controls_process_event_entry.py index d6a02e1..1726a55 100644 --- a/threatstryker/models/controls_process_event_entry.py +++ b/threatstryker/models/controls_process_event_entry.py @@ -12,6 +12,11 @@ @_attrs_define class ControlsProcessEventEntry: """ + Example: + {'skip_path_list': ['skip_path_list', 'skip_path_list'], 'failure_severity': 'failure_severity', + 'skip_user_list': ['skip_user_list', 'skip_user_list'], 'success_severity': 'success_severity', 'event': 'bin- + execution', 'skip_comm_list': ['skip_comm_list', 'skip_comm_list']} + Attributes: event (ControlsProcessEventEntryEvent): failure_severity (str): diff --git a/threatstryker/models/controls_process_tracer_config.py b/threatstryker/models/controls_process_tracer_config.py index 6ba42cc..a3d300b 100644 --- a/threatstryker/models/controls_process_tracer_config.py +++ b/threatstryker/models/controls_process_tracer_config.py @@ -15,6 +15,15 @@ @_attrs_define class ControlsProcessTracerConfig: """ + Example: + {'updated_at': 0, 'monitoredprocessevents': [{'skip_path_list': ['skip_path_list', 'skip_path_list'], + 'failure_severity': 'failure_severity', 'skip_user_list': ['skip_user_list', 'skip_user_list'], + 'success_severity': 'success_severity', 'event': 'bin-execution', 'skip_comm_list': ['skip_comm_list', + 'skip_comm_list']}, {'skip_path_list': ['skip_path_list', 'skip_path_list'], 'failure_severity': + 'failure_severity', 'skip_user_list': ['skip_user_list', 'skip_user_list'], 'success_severity': + 'success_severity', 'event': 'bin-execution', 'skip_comm_list': ['skip_comm_list', 'skip_comm_list']}], + 'node_id': 'node_id'} + Attributes: node_id (str): updated_at (int): diff --git a/threatstryker/models/controls_quarantine_config.py b/threatstryker/models/controls_quarantine_config.py index 3f651e0..4d02121 100644 --- a/threatstryker/models/controls_quarantine_config.py +++ b/threatstryker/models/controls_quarantine_config.py @@ -13,6 +13,13 @@ @_attrs_define class ControlsQuarantineConfig: """ + Example: + {'updated_at': 5, 'policies': [{'node_type': 'container', 'policy_id': 'policy_id', 'updated_at': 1, + 'count_limit': 0, 'action': 'restart', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}}, {'node_type': 'container', 'policy_id': 'policy_id', 'updated_at': 1, + 'count_limit': 0, 'action': 'restart', 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': + ['fields_matcher', 'fields_matcher']}}}], 'node_id': 'node_id'} + Attributes: node_id (str): policies (Union[List['ControlsRuncPolicy'], None]): diff --git a/threatstryker/models/controls_runc_policy.py b/threatstryker/models/controls_runc_policy.py index a83649d..782dfd4 100644 --- a/threatstryker/models/controls_runc_policy.py +++ b/threatstryker/models/controls_runc_policy.py @@ -16,11 +16,16 @@ @_attrs_define class ControlsRuncPolicy: """ + Example: + {'node_type': 'container', 'policy_id': 'policy_id', 'updated_at': 1, 'count_limit': 0, 'action': 'restart', + 'duration_count_limit_sec': 6, 'matcher': {'fields_matcher': {'key': ['fields_matcher', 'fields_matcher']}}} + Attributes: action (ControlsRuncPolicyAction): count_limit (int): duration_count_limit_sec (int): - matcher (ControlsPolicyAlertMatcher): + matcher (ControlsPolicyAlertMatcher): Example: {'fields_matcher': {'key': ['fields_matcher', + 'fields_matcher']}}. node_type (ControlsRuncPolicyNodeType): policy_id (str): updated_at (int): diff --git a/threatstryker/models/controls_threat_intel_info.py b/threatstryker/models/controls_threat_intel_info.py index 70fd176..94d3d05 100644 --- a/threatstryker/models/controls_threat_intel_info.py +++ b/threatstryker/models/controls_threat_intel_info.py @@ -9,6 +9,14 @@ @_attrs_define class ControlsThreatIntelInfo: """ + Example: + {'cloud_posture_controls_hash': 'cloud_posture_controls_hash', 'cloud_posture_controls_url': + 'cloud_posture_controls_url', 'updated_at': 0, 'network_alert_rules_url': 'network_alert_rules_url', + 'ignored_alert_rule_ids': ['ignored_alert_rule_ids', 'ignored_alert_rule_ids'], 'internal_ips': ['internal_ips', + 'internal_ips'], 'secret_scanner_rules_hash': 'secret_scanner_rules_hash', 'secret_scanner_rules_url': + 'secret_scanner_rules_url', 'malware_scanner_rules_hash': 'malware_scanner_rules_hash', + 'malware_scanner_rules_url': 'malware_scanner_rules_url', 'rules_hash': 'rules_hash'} + Attributes: cloud_posture_controls_hash (str): cloud_posture_controls_url (str): diff --git a/threatstryker/models/detailed_connection_summary.py b/threatstryker/models/detailed_connection_summary.py index afaf449..ad20cc2 100644 --- a/threatstryker/models/detailed_connection_summary.py +++ b/threatstryker/models/detailed_connection_summary.py @@ -11,6 +11,9 @@ @_attrs_define class DetailedConnectionSummary: """ + Example: + {'source': 'source', 'target': 'target'} + Attributes: source (Union[Unset, str]): target (Union[Unset, str]): diff --git a/threatstryker/models/detailed_node_summary.py b/threatstryker/models/detailed_node_summary.py index 50c8a90..90bcf6a 100644 --- a/threatstryker/models/detailed_node_summary.py +++ b/threatstryker/models/detailed_node_summary.py @@ -15,13 +15,75 @@ @_attrs_define class DetailedNodeSummary: """ + Example: + {'immediate_parent_id': 'immediate_parent_id', 'metadata': {'docker_image_name_with_tag': + 'docker_image_name_with_tag', 'kubernetes_ip': 'kubernetes_ip', 'public_ip': ['public_ip', 'public_ip'], + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 6.027456183070403, 'pid': 7, 'kubernetes_created': 'kubernetes_created', 'kubernetes_namespace': + 'kubernetes_namespace', 'cmdline': 'cmdline', 'node_type': 'node_type', 'interface_ip_map': 'interface_ip_map', + 'pseudo': True, 'docker_container_name': 'docker_container_name', 'docker_container_created': + 'docker_container_created', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'docker_container_networks': + 'docker_container_networks', 'kubernetes_ports': ['kubernetes_ports', 'kubernetes_ports'], 'version': 'version', + 'pod_name': 'pod_name', 'ppid': 9, 'tags': ['tags', 'tags'], 'docker_container_ports': 'docker_container_ports', + 'kubernetes_is_in_host_network': True, 'instance_id': 'instance_id', 'kernel_id': 'kernel_id', 'active_cves': + ['active_cves', 'active_cves'], 'copy_of': 'copy_of', 'open_files': ['open_files', 'open_files'], 'docker_env': + 'docker_env', 'connection_count': 0, 'docker_image_size': 'docker_image_size', 'short_name': 'short_name', + 'cpu_usage': 1.4658129805029452, 'pod_id': 'pod_id', 'docker_label': 'docker_label', 'instance_type': + 'instance_type', 'docker_image_name': 'docker_image_name', 'user_defined_tags': ['user_defined_tags', + 'user_defined_tags'], 'local_networks': ['local_networks', 'local_networks'], 'cloud_region': 'cloud_region', + 'kubernetes_state': 'kubernetes_state', 'interface_names': ['interface_names', 'interface_names'], + 'memory_usage': 5, 'open_files_count': 2, 'kubernetes_public_ip': 'kubernetes_public_ip', 'private_ip': + ['private_ip', 'private_ip'], 'docker_container_network_mode': 'docker_container_network_mode', + 'cloud_account_id': 'cloud_account_id', 'kubernetes_type': 'kubernetes_type', 'active_secrets': + ['active_secrets', 'active_secrets'], 'resource_group': 'resource_group', 'docker_image_tag': + 'docker_image_tag', 'active_malwares': ['active_malwares', 'active_malwares'], 'kubernetes_labels': + 'kubernetes_labels', 'docker_container_ips': ['docker_container_ips', 'docker_container_ips'], + 'docker_image_id': 'docker_image_id', 'timestamp': 'timestamp', 'interface_ips': ['interface_ips', + 'interface_ips'], 'is_deepfence_system': True, 'availability_zone': 'availability_zone', 'is_console_vm': True, + 'os': 'os', 'local_cidr': ['local_cidr', 'local_cidr'], 'node_name': 'node_name', 'threads': 3, + 'cloud_provider': 'cloud_provider', 'docker_container_command': 'docker_container_command', 'agent_running': + True, 'uptime': 2, 'memory_max': 5, 'docker_image_created_at': 'docker_image_created_at', 'kernel_version': + 'kernel_version', 'docker_container_state_human': 'docker_container_state_human', 'docker_image_virtual_size': + 'docker_image_virtual_size', 'kubernetes_ingress_ip': ['kubernetes_ingress_ip', 'kubernetes_ingress_ip'], + 'host_name': 'host_name', 'node_id': 'node_id'}, 'adjacency': ['adjacency', 'adjacency'], 'ids': ['ids', 'ids'], + 'id': 'id', 'label': 'label', 'type': 'type'} + Attributes: adjacency (Union[Unset, List[str]]): id (Union[Unset, str]): ids (Union[Unset, List[str]]): immediate_parent_id (Union[Unset, str]): label (Union[Unset, str]): - metadata (Union[Unset, ReportMetadata]): + metadata (Union[Unset, ReportMetadata]): Example: {'docker_image_name_with_tag': 'docker_image_name_with_tag', + 'kubernetes_ip': 'kubernetes_ip', 'public_ip': ['public_ip', 'public_ip'], 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', 'cpu_max': 6.027456183070403, + 'pid': 7, 'kubernetes_created': 'kubernetes_created', 'kubernetes_namespace': 'kubernetes_namespace', 'cmdline': + 'cmdline', 'node_type': 'node_type', 'interface_ip_map': 'interface_ip_map', 'pseudo': True, + 'docker_container_name': 'docker_container_name', 'docker_container_created': 'docker_container_created', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'docker_container_networks': 'docker_container_networks', + 'kubernetes_ports': ['kubernetes_ports', 'kubernetes_ports'], 'version': 'version', 'pod_name': 'pod_name', + 'ppid': 9, 'tags': ['tags', 'tags'], 'docker_container_ports': 'docker_container_ports', + 'kubernetes_is_in_host_network': True, 'instance_id': 'instance_id', 'kernel_id': 'kernel_id', 'active_cves': + ['active_cves', 'active_cves'], 'copy_of': 'copy_of', 'open_files': ['open_files', 'open_files'], 'docker_env': + 'docker_env', 'connection_count': 0, 'docker_image_size': 'docker_image_size', 'short_name': 'short_name', + 'cpu_usage': 1.4658129805029452, 'pod_id': 'pod_id', 'docker_label': 'docker_label', 'instance_type': + 'instance_type', 'docker_image_name': 'docker_image_name', 'user_defined_tags': ['user_defined_tags', + 'user_defined_tags'], 'local_networks': ['local_networks', 'local_networks'], 'cloud_region': 'cloud_region', + 'kubernetes_state': 'kubernetes_state', 'interface_names': ['interface_names', 'interface_names'], + 'memory_usage': 5, 'open_files_count': 2, 'kubernetes_public_ip': 'kubernetes_public_ip', 'private_ip': + ['private_ip', 'private_ip'], 'docker_container_network_mode': 'docker_container_network_mode', + 'cloud_account_id': 'cloud_account_id', 'kubernetes_type': 'kubernetes_type', 'active_secrets': + ['active_secrets', 'active_secrets'], 'resource_group': 'resource_group', 'docker_image_tag': + 'docker_image_tag', 'active_malwares': ['active_malwares', 'active_malwares'], 'kubernetes_labels': + 'kubernetes_labels', 'docker_container_ips': ['docker_container_ips', 'docker_container_ips'], + 'docker_image_id': 'docker_image_id', 'timestamp': 'timestamp', 'interface_ips': ['interface_ips', + 'interface_ips'], 'is_deepfence_system': True, 'availability_zone': 'availability_zone', 'is_console_vm': True, + 'os': 'os', 'local_cidr': ['local_cidr', 'local_cidr'], 'node_name': 'node_name', 'threads': 3, + 'cloud_provider': 'cloud_provider', 'docker_container_command': 'docker_container_command', 'agent_running': + True, 'uptime': 2, 'memory_max': 5, 'docker_image_created_at': 'docker_image_created_at', 'kernel_version': + 'kernel_version', 'docker_container_state_human': 'docker_container_state_human', 'docker_image_virtual_size': + 'docker_image_virtual_size', 'kubernetes_ingress_ip': ['kubernetes_ingress_ip', 'kubernetes_ingress_ip'], + 'host_name': 'host_name', 'node_id': 'node_id'}. type (Union[Unset, str]): """ diff --git a/threatstryker/models/diagnosis_diagnostic_logs_link.py b/threatstryker/models/diagnosis_diagnostic_logs_link.py index ac2a2a8..4302b78 100644 --- a/threatstryker/models/diagnosis_diagnostic_logs_link.py +++ b/threatstryker/models/diagnosis_diagnostic_logs_link.py @@ -11,6 +11,9 @@ @_attrs_define class DiagnosisDiagnosticLogsLink: """ + Example: + {'url_link': 'url_link', 'created_at': 'created_at', 'label': 'label', 'message': 'message', 'type': 'type'} + Attributes: created_at (Union[Unset, str]): label (Union[Unset, str]): diff --git a/threatstryker/models/diagnosis_diagnostic_logs_status.py b/threatstryker/models/diagnosis_diagnostic_logs_status.py index 58d31bc..ba50aeb 100644 --- a/threatstryker/models/diagnosis_diagnostic_logs_status.py +++ b/threatstryker/models/diagnosis_diagnostic_logs_status.py @@ -11,6 +11,9 @@ @_attrs_define class DiagnosisDiagnosticLogsStatus: """ + Example: + {'message': 'message', 'status': 'status'} + Attributes: status (str): message (Union[Unset, str]): diff --git a/threatstryker/models/diagnosis_diagnostic_notification.py b/threatstryker/models/diagnosis_diagnostic_notification.py index 57e6aa1..e5c6fbe 100644 --- a/threatstryker/models/diagnosis_diagnostic_notification.py +++ b/threatstryker/models/diagnosis_diagnostic_notification.py @@ -11,6 +11,10 @@ @_attrs_define class DiagnosisDiagnosticNotification: """ + Example: + {'expiry_in_secs': '', 'follow_url': '', 'updated_at': 'updated_at', 'source_application_id': + 'source_application_id', 'content': 'content'} + Attributes: content (Union[Unset, str]): expiry_in_secs (Union[Unset, Any]): diff --git a/threatstryker/models/diagnosis_generate_agent_diagnostic_logs_request.py b/threatstryker/models/diagnosis_generate_agent_diagnostic_logs_request.py index 4cc592c..1b6d243 100644 --- a/threatstryker/models/diagnosis_generate_agent_diagnostic_logs_request.py +++ b/threatstryker/models/diagnosis_generate_agent_diagnostic_logs_request.py @@ -13,6 +13,10 @@ @_attrs_define class DiagnosisGenerateAgentDiagnosticLogsRequest: """ + Example: + {'tail': 0, 'node_ids': [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]} + Attributes: node_ids (Union[List['DiagnosisNodeIdentifier'], None]): tail (int): diff --git a/threatstryker/models/diagnosis_generate_cloud_scanner_diagnostic_logs_request.py b/threatstryker/models/diagnosis_generate_cloud_scanner_diagnostic_logs_request.py index bede71c..f52c5fe 100644 --- a/threatstryker/models/diagnosis_generate_cloud_scanner_diagnostic_logs_request.py +++ b/threatstryker/models/diagnosis_generate_cloud_scanner_diagnostic_logs_request.py @@ -13,6 +13,10 @@ @_attrs_define class DiagnosisGenerateCloudScannerDiagnosticLogsRequest: """ + Example: + {'tail': 0, 'node_ids': [{'node_type': 'host', 'node_id': 'node_id'}, {'node_type': 'host', 'node_id': + 'node_id'}]} + Attributes: node_ids (Union[List['DiagnosisNodeIdentifier'], None]): tail (int): diff --git a/threatstryker/models/diagnosis_generate_console_diagnostic_logs_request.py b/threatstryker/models/diagnosis_generate_console_diagnostic_logs_request.py index 788479a..e47f8cc 100644 --- a/threatstryker/models/diagnosis_generate_console_diagnostic_logs_request.py +++ b/threatstryker/models/diagnosis_generate_console_diagnostic_logs_request.py @@ -9,6 +9,9 @@ @_attrs_define class DiagnosisGenerateConsoleDiagnosticLogsRequest: """ + Example: + {'tail': 0} + Attributes: tail (int): """ diff --git a/threatstryker/models/diagnosis_get_diagnostic_logs_response.py b/threatstryker/models/diagnosis_get_diagnostic_logs_response.py index 8a96d1c..3b37efa 100644 --- a/threatstryker/models/diagnosis_get_diagnostic_logs_response.py +++ b/threatstryker/models/diagnosis_get_diagnostic_logs_response.py @@ -15,6 +15,13 @@ @_attrs_define class DiagnosisGetDiagnosticLogsResponse: """ + Example: + {'console_logs': [{'url_link': 'url_link', 'created_at': 'created_at', 'label': 'label', 'message': 'message', + 'type': 'type'}, {'url_link': 'url_link', 'created_at': 'created_at', 'label': 'label', 'message': 'message', + 'type': 'type'}], 'agent_logs': [{'url_link': 'url_link', 'created_at': 'created_at', 'label': 'label', + 'message': 'message', 'type': 'type'}, {'url_link': 'url_link', 'created_at': 'created_at', 'label': 'label', + 'message': 'message', 'type': 'type'}]} + Attributes: agent_logs (Union[List['DiagnosisDiagnosticLogsLink'], None, Unset]): console_logs (Union[List['DiagnosisDiagnosticLogsLink'], None, Unset]): diff --git a/threatstryker/models/diagnosis_node_identifier.py b/threatstryker/models/diagnosis_node_identifier.py index 02d2bca..f9b48c2 100644 --- a/threatstryker/models/diagnosis_node_identifier.py +++ b/threatstryker/models/diagnosis_node_identifier.py @@ -11,6 +11,9 @@ @_attrs_define class DiagnosisNodeIdentifier: """ + Example: + {'node_type': 'host', 'node_id': 'node_id'} + Attributes: node_id (str): node_type (DiagnosisNodeIdentifierNodeType): diff --git a/threatstryker/models/graph_cloud_provider_filter.py b/threatstryker/models/graph_cloud_provider_filter.py index 8bd7e09..174234b 100644 --- a/threatstryker/models/graph_cloud_provider_filter.py +++ b/threatstryker/models/graph_cloud_provider_filter.py @@ -9,6 +9,9 @@ @_attrs_define class GraphCloudProviderFilter: """ + Example: + {'account_ids': ['account_ids', 'account_ids']} + Attributes: account_ids (Union[List[str], None]): """ diff --git a/threatstryker/models/graph_individual_threat_graph.py b/threatstryker/models/graph_individual_threat_graph.py index 44aa5e4..f61bf98 100644 --- a/threatstryker/models/graph_individual_threat_graph.py +++ b/threatstryker/models/graph_individual_threat_graph.py @@ -11,6 +11,10 @@ @_attrs_define class GraphIndividualThreatGraph: """ + Example: + {'cve_id': ['cve_id', 'cve_id'], 'ports': ['', ''], 'attack_path': [['attack_path', 'attack_path'], + ['attack_path', 'attack_path']], 'cve_attack_vector': 'cve_attack_vector'} + Attributes: attack_path (Union[List[List[str]], None, Unset]): cve_attack_vector (Union[Unset, str]): diff --git a/threatstryker/models/graph_individual_threat_graph_request.py b/threatstryker/models/graph_individual_threat_graph_request.py index 64432df..9b4d49e 100644 --- a/threatstryker/models/graph_individual_threat_graph_request.py +++ b/threatstryker/models/graph_individual_threat_graph_request.py @@ -13,6 +13,10 @@ @_attrs_define class GraphIndividualThreatGraphRequest: """ + Example: + {'graph_type': 'most_vulnerable_attack_paths', 'issue_type': 'vulnerability', 'node_ids': ['node_ids', + 'node_ids']} + Attributes: graph_type (GraphIndividualThreatGraphRequestGraphType): issue_type (GraphIndividualThreatGraphRequestIssueType): diff --git a/threatstryker/models/graph_threat_filters.py b/threatstryker/models/graph_threat_filters.py index 91a82dd..04ca598 100644 --- a/threatstryker/models/graph_threat_filters.py +++ b/threatstryker/models/graph_threat_filters.py @@ -15,11 +15,16 @@ @_attrs_define class GraphThreatFilters: """ + Example: + {'cloud_resource_only': True, 'aws_filter': {'account_ids': ['account_ids', 'account_ids']}, 'gcp_filter': + {'account_ids': ['account_ids', 'account_ids']}, 'type': 'all', 'azure_filter': {'account_ids': ['account_ids', + 'account_ids']}} + Attributes: - aws_filter (GraphCloudProviderFilter): - azure_filter (GraphCloudProviderFilter): + aws_filter (GraphCloudProviderFilter): Example: {'account_ids': ['account_ids', 'account_ids']}. + azure_filter (GraphCloudProviderFilter): Example: {'account_ids': ['account_ids', 'account_ids']}. cloud_resource_only (bool): - gcp_filter (GraphCloudProviderFilter): + gcp_filter (GraphCloudProviderFilter): Example: {'account_ids': ['account_ids', 'account_ids']}. type (GraphThreatFiltersType): """ diff --git a/threatstryker/models/graph_topology_filters.py b/threatstryker/models/graph_topology_filters.py index 83bcfd1..dbc2bd4 100644 --- a/threatstryker/models/graph_topology_filters.py +++ b/threatstryker/models/graph_topology_filters.py @@ -13,10 +13,27 @@ @_attrs_define class GraphTopologyFilters: """ + Example: + {'host_filter': ['host_filter', 'host_filter'], 'field_filters': {'compare_filter': [{'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': + {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'container_filter': ['container_filter', 'container_filter'], 'cloud_filter': + ['cloud_filter', 'cloud_filter'], 'kubernetes_filter': ['kubernetes_filter', 'kubernetes_filter'], 'pod_filter': + ['pod_filter', 'pod_filter'], 'region_filter': ['region_filter', 'region_filter'], 'skip_connections': True} + Attributes: cloud_filter (Union[List[str], None]): container_filter (Union[List[str], None]): - field_filters (ReportersFieldsFilters): + field_filters (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. host_filter (Union[List[str], None]): kubernetes_filter (Union[List[str], None]): pod_filter (Union[List[str], None]): diff --git a/threatstryker/models/ingesters_aws_waf_arn.py b/threatstryker/models/ingesters_aws_waf_arn.py index 1503fd5..4f2aaec 100644 --- a/threatstryker/models/ingesters_aws_waf_arn.py +++ b/threatstryker/models/ingesters_aws_waf_arn.py @@ -11,6 +11,9 @@ @_attrs_define class IngestersAWSWafARN: """ + Example: + {'arn': 'arn', 'region': 'CLOUDFRONT'} + Attributes: arn (str): region (IngestersAWSWafARNRegion): diff --git a/threatstryker/models/ingesters_cloud_compliance.py b/threatstryker/models/ingesters_cloud_compliance.py index 521e4e2..d8f101c 100644 --- a/threatstryker/models/ingesters_cloud_compliance.py +++ b/threatstryker/models/ingesters_cloud_compliance.py @@ -11,6 +11,13 @@ @_attrs_define class IngestersCloudCompliance: """ + Example: + {'severity': 'severity', 'reason': 'reason', 'control_id': 'control_id', 'resource': 'resource', 'count': 0, + 'description': 'description', 'cloud_provider': 'cloud_provider', 'title': 'title', 'type': 'type', 'doc_id': + 'doc_id', 'compliance_check_type': 'compliance_check_type', '@timestamp': '@timestamp', 'account_id': + 'account_id', 'service': 'service', 'scan_id': 'scan_id', 'region': 'region', 'group': 'group', 'status': + 'status'} + Attributes: timestamp (Union[Unset, str]): account_id (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_cloud_compliance_scan_status.py b/threatstryker/models/ingesters_cloud_compliance_scan_status.py index 2eaa2b6..6c6b135 100644 --- a/threatstryker/models/ingesters_cloud_compliance_scan_status.py +++ b/threatstryker/models/ingesters_cloud_compliance_scan_status.py @@ -17,10 +17,18 @@ @_attrs_define class IngestersCloudComplianceScanStatus: """ + Example: + {'result': {'compliance_percentage': 6.027456183070403, 'alarm': 0, 'skip': 2, 'error': 1, 'ok': 5, 'info': 5}, + 'scan_message': 'scan_message', '@timestamp': datetime.datetime(2000, 1, 23, 4, 56, 7, + tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'total_checks': 7, 'scan_status': 'scan_status', + 'scan_id': 'scan_id', 'type': 'type', 'compliance_check_types': ['compliance_check_types', + 'compliance_check_types']} + Attributes: timestamp (Union[Unset, datetime.datetime]): compliance_check_types (Union[List[str], None, Unset]): - result (Union[Unset, IngestersComplianceStats]): + result (Union[Unset, IngestersComplianceStats]): Example: {'compliance_percentage': 6.027456183070403, 'alarm': + 0, 'skip': 2, 'error': 1, 'ok': 5, 'info': 5}. scan_id (Union[Unset, str]): scan_message (Union[Unset, str]): scan_status (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_cloud_resource.py b/threatstryker/models/ingesters_cloud_resource.py index e7cea37..b1fc8d5 100644 --- a/threatstryker/models/ingesters_cloud_resource.py +++ b/threatstryker/models/ingesters_cloud_resource.py @@ -11,6 +11,31 @@ @_attrs_define class IngestersCloudResource: """ + Example: + {'iam_instance_profile_arn': 'iam_instance_profile_arn', 'allow_blob_public_access': True, 'ingress_settings': + 'ingress_settings', 'vpc_id': 'vpc_id', 'event_notification_configuration': '', 'ip_configuration': '', + 'access_level': 'access_level', 'path': 'path', 'connectivity': 'connectivity', 'policy_std': '', + 'target_health_descriptions': '', 'iam_policy': '', 'action': 'action', 'private_ip_address': + 'private_ip_address', 'id': 'id', 'create_date': 'create_date', 'resource_vpc_config': '', 'inline_policies': + '', 'restrict_public_buckets': True, 'db_cluster_identifier': 'db_cluster_identifier', 'group': 'group', + 'target_group_arn': 'target_group_arn', 'ignore_public_acls': True, 'storage_account_name': + 'storage_account_name', 'service_name': 'service_name', 'instance_profile_arns': '', 'users': '', + 'network_interfaces': '', 'tags': '', 'security_groups': '', 'task_arn': 'task_arn', 'block_public_acls': True, + 'organization_master_account_email': 'organization_master_account_email', 'instance_id': 'instance_id', + 'public_access': 'public_access', 'task_definition': '', 'user_id': 'user_id', 'organization_id': + 'organization_id', 'name': 'name', 'resources_vpc_config': '', 'attached_policy_arns': '', + 'task_definition_arn': 'task_definition_arn', 'containers': '', 'region': 'region', 'container_definitions': '', + 'instance_type': 'instance_type', 'scheme': 'scheme', 'instances': '', 'network_mode': 'network_mode', + 'is_egress': True, 'description': 'description', 'privilege': 'privilege', 'network_configuration': '', + 'public_network_access': 'public_network_access', 'vpc_options': '', 'resource_group': 'resource_group', + 'vpc_security_group_ids': '', 'arn': 'arn', 'private_dns_name': 'private_dns_name', 'policy': '', 'public_ips': + '', 'cluster_name': 'cluster_name', 'cluster_arn': 'cluster_arn', 'public_ip_address': 'public_ip_address', + 'cidr_ipv4': 'cidr_ipv4', 'last_status': 'last_status', 'groups': '', 'user-groups': '', 'cloud_provider': + 'cloud_provider', 'vpc_security_groups': '', 'block_public_policy': True, 'account_id': 'account_id', + 'iam_instance_profile_id': 'iam_instance_profile_id', 'group_id': 'group_id', 'organization_master_account_arn': + 'organization_master_account_arn', 'resource_id': 'resource_id', 'bucket_policy_is_public': True, 'host_name': + 'host_name'} + Attributes: access_level (Union[Unset, str]): account_id (Union[Unset, str]): @@ -68,6 +93,7 @@ class IngestersCloudResource: public_ips (Union[Unset, Any]): public_network_access (Union[Unset, str]): region (Union[Unset, str]): + resource_group (Union[Unset, str]): resource_id (Union[Unset, str]): resource_vpc_config (Union[Unset, Any]): resources_vpc_config (Union[Unset, Any]): @@ -147,6 +173,7 @@ class IngestersCloudResource: public_ips: Union[Unset, Any] = UNSET public_network_access: Union[Unset, str] = UNSET region: Union[Unset, str] = UNSET + resource_group: Union[Unset, str] = UNSET resource_id: Union[Unset, str] = UNSET resource_vpc_config: Union[Unset, Any] = UNSET resources_vpc_config: Union[Unset, Any] = UNSET @@ -283,6 +310,8 @@ def to_dict(self) -> Dict[str, Any]: region = self.region + resource_group = self.resource_group + resource_id = self.resource_id resource_vpc_config = self.resource_vpc_config @@ -440,6 +469,8 @@ def to_dict(self) -> Dict[str, Any]: field_dict["public_network_access"] = public_network_access if region is not UNSET: field_dict["region"] = region + if resource_group is not UNSET: + field_dict["resource_group"] = resource_group if resource_id is not UNSET: field_dict["resource_id"] = resource_id if resource_vpc_config is not UNSET: @@ -600,6 +631,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: region = d.pop("region", UNSET) + resource_group = d.pop("resource_group", UNSET) + resource_id = d.pop("resource_id", UNSET) resource_vpc_config = d.pop("resource_vpc_config", UNSET) @@ -699,6 +732,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: public_ips=public_ips, public_network_access=public_network_access, region=region, + resource_group=resource_group, resource_id=resource_id, resource_vpc_config=resource_vpc_config, resources_vpc_config=resources_vpc_config, diff --git a/threatstryker/models/ingesters_cloud_waf_config.py b/threatstryker/models/ingesters_cloud_waf_config.py index 161e08f..1f9f789 100644 --- a/threatstryker/models/ingesters_cloud_waf_config.py +++ b/threatstryker/models/ingesters_cloud_waf_config.py @@ -15,6 +15,10 @@ @_attrs_define class IngestersCloudWafConfig: """ + Example: + {'aws_waf_arn': [{'arn': 'arn', 'region': 'CLOUDFRONT'}, {'arn': 'arn', 'region': 'CLOUDFRONT'}], + 'cloud_provider': 'aws'} + Attributes: aws_waf_arn (Union[List['IngestersAWSWafARN'], None]): cloud_provider (IngestersCloudWafConfigCloudProvider): diff --git a/threatstryker/models/ingesters_compliance.py b/threatstryker/models/ingesters_compliance.py index 391dba2..35c982a 100644 --- a/threatstryker/models/ingesters_compliance.py +++ b/threatstryker/models/ingesters_compliance.py @@ -11,6 +11,13 @@ @_attrs_define class IngestersCompliance: """ + Example: + {'resource': 'resource', 'description': 'description', 'test_category': 'test_category', 'type': 'type', + 'remediation_ansible': 'remediation_ansible', 'compliance_check_type': 'compliance_check_type', + 'test_rationale': 'test_rationale', 'test_severity': 'test_severity', 'node_type': 'node_type', + 'remediation_puppet': 'remediation_puppet', 'scan_id': 'scan_id', 'remediation_script': 'remediation_script', + 'node_id': 'node_id', 'status': 'status', 'test_desc': 'test_desc', 'test_number': 'test_number'} + Attributes: compliance_check_type (Union[Unset, str]): description (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_compliance_scan_status.py b/threatstryker/models/ingesters_compliance_scan_status.py index c0e4806..99ab72e 100644 --- a/threatstryker/models/ingesters_compliance_scan_status.py +++ b/threatstryker/models/ingesters_compliance_scan_status.py @@ -11,6 +11,9 @@ @_attrs_define class IngestersComplianceScanStatus: """ + Example: + {'scan_message': 'scan_message', 'scan_status': 'scan_status', 'scan_id': 'scan_id'} + Attributes: scan_id (Union[Unset, str]): scan_message (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_compliance_stats.py b/threatstryker/models/ingesters_compliance_stats.py index 115406e..4b53d8a 100644 --- a/threatstryker/models/ingesters_compliance_stats.py +++ b/threatstryker/models/ingesters_compliance_stats.py @@ -11,6 +11,9 @@ @_attrs_define class IngestersComplianceStats: """ + Example: + {'compliance_percentage': 6.027456183070403, 'alarm': 0, 'skip': 2, 'error': 1, 'ok': 5, 'info': 5} + Attributes: alarm (Union[Unset, int]): compliance_percentage (Union[Unset, float]): diff --git a/threatstryker/models/ingesters_malware.py b/threatstryker/models/ingesters_malware.py index 5b4de9b..88ec461 100644 --- a/threatstryker/models/ingesters_malware.py +++ b/threatstryker/models/ingesters_malware.py @@ -17,6 +17,15 @@ @_attrs_define class IngestersMalware: """ + Example: + {'summary': 'summary', 'image_layer_id': 'image_layer_id', 'rule_name': 'rule_name', 'file_sev_score': + 0.8008281904610115, 'file_severity': 'file_severity', 'strings_to_match': ['strings_to_match', + 'strings_to_match'], 'meta': ['meta', 'meta'], 'complete_filename': 'complete_filename', 'scan_id': 'scan_id', + 'class': 'class', 'meta_rules': {'date': 'date', 'reference': 'reference', 'rule_id': 'rule_id', 'filetype': + 'filetype', 'rule_name': 'rule_name', 'author': 'author', 'file_severity': 'file_severity', 'description': + 'description', 'version': 'version', 'info': 'info'}, 'severity_score': 6, 'timestamp': datetime.datetime(2000, + 1, 23, 4, 56, 7, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00'))} + Attributes: class_ (Union[Unset, str]): complete_filename (Union[Unset, str]): @@ -24,7 +33,9 @@ class IngestersMalware: file_severity (Union[Unset, str]): image_layer_id (Union[Unset, str]): meta (Union[List[str], None, Unset]): - meta_rules (Union[Unset, IngestersMetaRules]): + meta_rules (Union[Unset, IngestersMetaRules]): Example: {'date': 'date', 'reference': 'reference', 'rule_id': + 'rule_id', 'filetype': 'filetype', 'rule_name': 'rule_name', 'author': 'author', 'file_severity': + 'file_severity', 'description': 'description', 'version': 'version', 'info': 'info'}. rule_name (Union[Unset, str]): scan_id (Union[Unset, str]): severity_score (Union[Unset, int]): diff --git a/threatstryker/models/ingesters_malware_scan_status.py b/threatstryker/models/ingesters_malware_scan_status.py index fb7c2f1..8750e56 100644 --- a/threatstryker/models/ingesters_malware_scan_status.py +++ b/threatstryker/models/ingesters_malware_scan_status.py @@ -13,6 +13,10 @@ @_attrs_define class IngestersMalwareScanStatus: """ + Example: + {'scan_message': 'scan_message', '@timestamp': datetime.datetime(2000, 1, 23, 4, 56, 7, + tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'scan_status': 'scan_status', 'scan_id': 'scan_id'} + Attributes: timestamp (Union[Unset, datetime.datetime]): scan_id (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_meta_rules.py b/threatstryker/models/ingesters_meta_rules.py index 2d5c631..a8a9351 100644 --- a/threatstryker/models/ingesters_meta_rules.py +++ b/threatstryker/models/ingesters_meta_rules.py @@ -11,6 +11,11 @@ @_attrs_define class IngestersMetaRules: """ + Example: + {'date': 'date', 'reference': 'reference', 'rule_id': 'rule_id', 'filetype': 'filetype', 'rule_name': + 'rule_name', 'author': 'author', 'file_severity': 'file_severity', 'description': 'description', 'version': + 'version', 'info': 'info'} + Attributes: author (Union[Unset, str]): date (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_policy_log.py b/threatstryker/models/ingesters_policy_log.py index e4b1c9f..5c178b9 100644 --- a/threatstryker/models/ingesters_policy_log.py +++ b/threatstryker/models/ingesters_policy_log.py @@ -11,6 +11,11 @@ @_attrs_define class IngestersPolicyLog: """ + Example: + {'local_ip': 'local_ip', 'severity': 'severity', 'remote_ip': 'remote_ip', 'config_id': 'config_id', + 'local_port': 6, 'alert_id': 'alert_id', 'policy_index': 1, 'remote_port': 5, 'created_at': 0, 'incident': + 'incident', 'host_name': 'host_name', 'direction': 'inbound'} + Attributes: alert_id (str): config_id (str): diff --git a/threatstryker/models/ingesters_report_ingestion_data.py b/threatstryker/models/ingesters_report_ingestion_data.py index 32b74c9..26a6237 100644 --- a/threatstryker/models/ingesters_report_ingestion_data.py +++ b/threatstryker/models/ingesters_report_ingestion_data.py @@ -61,6 +61,16 @@ @_attrs_define class IngestersReportIngestionData: """ + Example: + {'hosts': [{'key': ''}, {'key': ''}], 'host_batch': [{'key': ''}, {'key': ''}], 'kubernetes_cluster_edge_batch': + [{'key': ''}, {'key': ''}], 'process_batch': [{'key': ''}, {'key': ''}], 'container_image_edge_batch': [{'key': + ''}, {'key': ''}], 'num_merged': 0, 'container_process_edge_batch': [{'key': ''}, {'key': ''}], 'pod_batch': + [{'key': ''}, {'key': ''}], 'process_edges_batch': [{'key': ''}, {'key': ''}], 'container_edges_batch': [{'key': + ''}, {'key': ''}], 'api_endpoints_edge_batch': [{'key': ''}, {'key': ''}], 'container_batch': [{'key': ''}, + {'key': ''}], 'container_image_batch': [{'key': ''}, {'key': ''}], 'kubernetes_cluster_batch': [{'key': ''}, + {'key': ''}], 'api_endpoints_batch': [{'key': ''}, {'key': ''}], 'pod_edges_batch': [{'key': ''}, {'key': ''}], + 'endpoint_edges_batch': [{'key': ''}, {'key': ''}], 'pod_host_edges_batch': [{'key': ''}, {'key': ''}]} + Attributes: api_endpoints_batch (Union[List['IngestersReportIngestionDataApiEndpointsBatchType0Item'], None]): api_endpoints_edge_batch (Union[List['IngestersReportIngestionDataApiEndpointsEdgeBatchType0Item'], None]): diff --git a/threatstryker/models/ingesters_secret.py b/threatstryker/models/ingesters_secret.py index eac4c6d..ea6e93b 100644 --- a/threatstryker/models/ingesters_secret.py +++ b/threatstryker/models/ingesters_secret.py @@ -17,11 +17,19 @@ @_attrs_define class IngestersSecret: """ + Example: + {'ImageLayerId': 'ImageLayerId', 'Severity': {'score': 5.637376656633329, 'level': 'level'}, 'Rule': {'part': + 'part', 'name': 'name', 'signature_to_match': 'signature_to_match', 'id': 5}, 'scan_id': 'scan_id', 'Match': + {'full_filename': 'full_filename', 'matched_content': 'matched_content', 'relative_ending_index': 0, + 'starting_index': 1, 'relative_starting_index': 6}} + Attributes: image_layer_id (Union[Unset, str]): - match (Union[Unset, IngestersSecretMatch]): - rule (Union[Unset, IngestersSecretRule]): - severity (Union[Unset, IngestersSecretSeverity]): + match (Union[Unset, IngestersSecretMatch]): Example: {'full_filename': 'full_filename', 'matched_content': + 'matched_content', 'relative_ending_index': 0, 'starting_index': 1, 'relative_starting_index': 6}. + rule (Union[Unset, IngestersSecretRule]): Example: {'part': 'part', 'name': 'name', 'signature_to_match': + 'signature_to_match', 'id': 5}. + severity (Union[Unset, IngestersSecretSeverity]): Example: {'score': 5.637376656633329, 'level': 'level'}. scan_id (Union[Unset, str]): """ diff --git a/threatstryker/models/ingesters_secret_match.py b/threatstryker/models/ingesters_secret_match.py index 1b38dd4..fe964f2 100644 --- a/threatstryker/models/ingesters_secret_match.py +++ b/threatstryker/models/ingesters_secret_match.py @@ -11,6 +11,10 @@ @_attrs_define class IngestersSecretMatch: """ + Example: + {'full_filename': 'full_filename', 'matched_content': 'matched_content', 'relative_ending_index': 0, + 'starting_index': 1, 'relative_starting_index': 6} + Attributes: full_filename (Union[Unset, str]): matched_content (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_secret_rule.py b/threatstryker/models/ingesters_secret_rule.py index c669dfb..e5e422a 100644 --- a/threatstryker/models/ingesters_secret_rule.py +++ b/threatstryker/models/ingesters_secret_rule.py @@ -11,6 +11,9 @@ @_attrs_define class IngestersSecretRule: """ + Example: + {'part': 'part', 'name': 'name', 'signature_to_match': 'signature_to_match', 'id': 5} + Attributes: id (Union[Unset, int]): name (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_secret_scan_status.py b/threatstryker/models/ingesters_secret_scan_status.py index 2638e3a..af4e3e3 100644 --- a/threatstryker/models/ingesters_secret_scan_status.py +++ b/threatstryker/models/ingesters_secret_scan_status.py @@ -11,6 +11,9 @@ @_attrs_define class IngestersSecretScanStatus: """ + Example: + {'scan_message': 'scan_message', 'scan_status': 'scan_status', 'scan_id': 'scan_id'} + Attributes: scan_id (Union[Unset, str]): scan_message (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_secret_severity.py b/threatstryker/models/ingesters_secret_severity.py index 208f0e1..525a52f 100644 --- a/threatstryker/models/ingesters_secret_severity.py +++ b/threatstryker/models/ingesters_secret_severity.py @@ -11,6 +11,9 @@ @_attrs_define class IngestersSecretSeverity: """ + Example: + {'score': 5.637376656633329, 'level': 'level'} + Attributes: level (Union[Unset, str]): score (Union[Unset, float]): diff --git a/threatstryker/models/ingesters_vulnerability.py b/threatstryker/models/ingesters_vulnerability.py index 46e9a5e..fa67d8f 100644 --- a/threatstryker/models/ingesters_vulnerability.py +++ b/threatstryker/models/ingesters_vulnerability.py @@ -11,7 +11,17 @@ @_attrs_define class IngestersVulnerability: """ + Example: + {'epss_score': 1.4658129805029452, 'parsed_attack_vector': 'parsed_attack_vector', 'cve_container_layer': + 'cve_container_layer', 'cve_description': 'cve_description', 'cve_overall_score': 6.027456183070403, + 'cve_caused_by_package': 'cve_caused_by_package', 'cve_attack_vector': 'cve_attack_vector', 'cve_cvss_score': + 0.8008281904610115, 'cisa_kev': True, 'urls': ['urls', 'urls'], 'cve_severity': 'cve_severity', + 'cve_caused_by_package_path': 'cve_caused_by_package_path', 'cve_id': 'cve_id', 'exploit_poc': 'exploit_poc', + 'namespace': 'namespace', 'cve_type': 'cve_type', 'has_live_connection': True, 'cve_fixed_in': 'cve_fixed_in', + 'init_exploitability_score': 5, 'scan_id': 'scan_id', 'cve_link': 'cve_link', 'exploitability_score': 5} + Attributes: + cisa_kev (Union[Unset, bool]): cve_attack_vector (Union[Unset, str]): cve_caused_by_package (Union[Unset, str]): cve_caused_by_package_path (Union[Unset, str]): @@ -24,15 +34,18 @@ class IngestersVulnerability: cve_overall_score (Union[Unset, float]): cve_severity (Union[Unset, str]): cve_type (Union[Unset, str]): + epss_score (Union[Unset, float]): exploit_poc (Union[Unset, str]): exploitability_score (Union[Unset, int]): has_live_connection (Union[Unset, bool]): init_exploitability_score (Union[Unset, int]): + namespace (Union[Unset, str]): parsed_attack_vector (Union[Unset, str]): scan_id (Union[Unset, str]): urls (Union[List[str], None, Unset]): """ + cisa_kev: Union[Unset, bool] = UNSET cve_attack_vector: Union[Unset, str] = UNSET cve_caused_by_package: Union[Unset, str] = UNSET cve_caused_by_package_path: Union[Unset, str] = UNSET @@ -45,16 +58,20 @@ class IngestersVulnerability: cve_overall_score: Union[Unset, float] = UNSET cve_severity: Union[Unset, str] = UNSET cve_type: Union[Unset, str] = UNSET + epss_score: Union[Unset, float] = UNSET exploit_poc: Union[Unset, str] = UNSET exploitability_score: Union[Unset, int] = UNSET has_live_connection: Union[Unset, bool] = UNSET init_exploitability_score: Union[Unset, int] = UNSET + namespace: Union[Unset, str] = UNSET parsed_attack_vector: Union[Unset, str] = UNSET scan_id: Union[Unset, str] = UNSET urls: Union[List[str], None, Unset] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: + cisa_kev = self.cisa_kev + cve_attack_vector = self.cve_attack_vector cve_caused_by_package = self.cve_caused_by_package @@ -79,6 +96,8 @@ def to_dict(self) -> Dict[str, Any]: cve_type = self.cve_type + epss_score = self.epss_score + exploit_poc = self.exploit_poc exploitability_score = self.exploitability_score @@ -87,6 +106,8 @@ def to_dict(self) -> Dict[str, Any]: init_exploitability_score = self.init_exploitability_score + namespace = self.namespace + parsed_attack_vector = self.parsed_attack_vector scan_id = self.scan_id @@ -103,6 +124,8 @@ def to_dict(self) -> Dict[str, Any]: field_dict: Dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) + if cisa_kev is not UNSET: + field_dict["cisa_kev"] = cisa_kev if cve_attack_vector is not UNSET: field_dict["cve_attack_vector"] = cve_attack_vector if cve_caused_by_package is not UNSET: @@ -127,6 +150,8 @@ def to_dict(self) -> Dict[str, Any]: field_dict["cve_severity"] = cve_severity if cve_type is not UNSET: field_dict["cve_type"] = cve_type + if epss_score is not UNSET: + field_dict["epss_score"] = epss_score if exploit_poc is not UNSET: field_dict["exploit_poc"] = exploit_poc if exploitability_score is not UNSET: @@ -135,6 +160,8 @@ def to_dict(self) -> Dict[str, Any]: field_dict["has_live_connection"] = has_live_connection if init_exploitability_score is not UNSET: field_dict["init_exploitability_score"] = init_exploitability_score + if namespace is not UNSET: + field_dict["namespace"] = namespace if parsed_attack_vector is not UNSET: field_dict["parsed_attack_vector"] = parsed_attack_vector if scan_id is not UNSET: @@ -147,6 +174,8 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: d = src_dict.copy() + cisa_kev = d.pop("cisa_kev", UNSET) + cve_attack_vector = d.pop("cve_attack_vector", UNSET) cve_caused_by_package = d.pop("cve_caused_by_package", UNSET) @@ -171,6 +200,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: cve_type = d.pop("cve_type", UNSET) + epss_score = d.pop("epss_score", UNSET) + exploit_poc = d.pop("exploit_poc", UNSET) exploitability_score = d.pop("exploitability_score", UNSET) @@ -179,6 +210,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: init_exploitability_score = d.pop("init_exploitability_score", UNSET) + namespace = d.pop("namespace", UNSET) + parsed_attack_vector = d.pop("parsed_attack_vector", UNSET) scan_id = d.pop("scan_id", UNSET) @@ -201,6 +234,7 @@ def _parse_urls(data: object) -> Union[List[str], None, Unset]: urls = _parse_urls(d.pop("urls", UNSET)) ingesters_vulnerability = cls( + cisa_kev=cisa_kev, cve_attack_vector=cve_attack_vector, cve_caused_by_package=cve_caused_by_package, cve_caused_by_package_path=cve_caused_by_package_path, @@ -213,10 +247,12 @@ def _parse_urls(data: object) -> Union[List[str], None, Unset]: cve_overall_score=cve_overall_score, cve_severity=cve_severity, cve_type=cve_type, + epss_score=epss_score, exploit_poc=exploit_poc, exploitability_score=exploitability_score, has_live_connection=has_live_connection, init_exploitability_score=init_exploitability_score, + namespace=namespace, parsed_attack_vector=parsed_attack_vector, scan_id=scan_id, urls=urls, diff --git a/threatstryker/models/ingesters_vulnerability_scan_status.py b/threatstryker/models/ingesters_vulnerability_scan_status.py index 3afc916..a83d332 100644 --- a/threatstryker/models/ingesters_vulnerability_scan_status.py +++ b/threatstryker/models/ingesters_vulnerability_scan_status.py @@ -11,6 +11,9 @@ @_attrs_define class IngestersVulnerabilityScanStatus: """ + Example: + {'scan_message': 'scan_message', 'scan_status': 'scan_status', 'scan_id': 'scan_id'} + Attributes: scan_id (Union[Unset, str]): scan_message (Union[Unset, str]): diff --git a/threatstryker/models/ingesters_waf_rule.py b/threatstryker/models/ingesters_waf_rule.py index 78ea44d..7cd58be 100644 --- a/threatstryker/models/ingesters_waf_rule.py +++ b/threatstryker/models/ingesters_waf_rule.py @@ -12,6 +12,9 @@ @_attrs_define class IngestersWAFRule: """ + Example: + {'remote_ip': 'remote_ip', 'executed_at': 0, 'remote_port': 6, 'action': 'block', 'host_name': 'host_name'} + Attributes: action (IngestersWAFRuleAction): remote_ip (str): diff --git a/threatstryker/models/lookup_lookup_filter.py b/threatstryker/models/lookup_lookup_filter.py index cd56917..0d95540 100644 --- a/threatstryker/models/lookup_lookup_filter.py +++ b/threatstryker/models/lookup_lookup_filter.py @@ -13,10 +13,14 @@ @_attrs_define class LookupLookupFilter: """ + Example: + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'window': {'offset': 0, 'size': 6}, 'node_ids': + ['node_ids', 'node_ids']} + Attributes: in_field_filter (Union[List[str], None]): node_ids (Union[List[str], None]): - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ in_field_filter: Union[List[str], None] diff --git a/threatstryker/models/model_add_generative_ai_bedrock_integration.py b/threatstryker/models/model_add_generative_ai_bedrock_integration.py index db4f405..90ee478 100644 --- a/threatstryker/models/model_add_generative_ai_bedrock_integration.py +++ b/threatstryker/models/model_add_generative_ai_bedrock_integration.py @@ -15,6 +15,10 @@ @_attrs_define class ModelAddGenerativeAiBedrockIntegration: """ + Example: + {'aws_region': 'us-east-1', 'aws_access_key': 'aws_access_key', 'model_id': 'anthropic.claude-v2', + 'aws_secret_key': 'aws_secret_key', 'use_iam_role': True} + Attributes: aws_region (ModelAddGenerativeAiBedrockIntegrationAwsRegion): model_id (ModelAddGenerativeAiBedrockIntegrationModelId): diff --git a/threatstryker/models/model_add_generative_ai_open_ai_integration.py b/threatstryker/models/model_add_generative_ai_open_ai_integration.py index 82ca606..642eb21 100644 --- a/threatstryker/models/model_add_generative_ai_open_ai_integration.py +++ b/threatstryker/models/model_add_generative_ai_open_ai_integration.py @@ -11,6 +11,9 @@ @_attrs_define class ModelAddGenerativeAiOpenAIIntegration: """ + Example: + {'api_key': 'api_key', 'model_id': 'gpt-4'} + Attributes: api_key (str): model_id (ModelAddGenerativeAiOpenAIIntegrationModelId): diff --git a/threatstryker/models/model_add_scheduled_task_request.py b/threatstryker/models/model_add_scheduled_task_request.py index 9079065..c0d602a 100644 --- a/threatstryker/models/model_add_scheduled_task_request.py +++ b/threatstryker/models/model_add_scheduled_task_request.py @@ -19,10 +19,22 @@ @_attrs_define class ModelAddScheduledTaskRequest: """ + Example: + {'is_priority': True, 'benchmark_types': ['hipaa', 'hipaa'], 'scan_config': [{'language': 'base'}, {'language': + 'base'}], 'cron_expr': 'cron_expr', 'action': 'SecretScan', 'description': 'description', + 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', + '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': + {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', + 'node_id': 'node_id'}]} + Attributes: action (ModelAddScheduledTaskRequestAction): benchmark_types (Union[List[ModelBenchmarkType], None]): - filters (ModelScanFilter): + filters (ModelScanFilter): Example: {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', + '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': + {'key': ['', '']}}}. node_ids (Union[List['ModelNodeIdentifier'], None]): scan_config (Union[List['ModelVulnerabilityScanConfigLanguage'], None]): cron_expr (Union[Unset, str]): diff --git a/threatstryker/models/model_agent_id.py b/threatstryker/models/model_agent_id.py index 77e37d1..b1a9d0b 100644 --- a/threatstryker/models/model_agent_id.py +++ b/threatstryker/models/model_agent_id.py @@ -11,6 +11,9 @@ @_attrs_define class ModelAgentID: """ + Example: + {'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'} + Attributes: available_workload (int): node_id (str): diff --git a/threatstryker/models/model_agent_install.py b/threatstryker/models/model_agent_install.py index 7b87064..9f5b2b3 100644 --- a/threatstryker/models/model_agent_install.py +++ b/threatstryker/models/model_agent_install.py @@ -16,9 +16,15 @@ @_attrs_define class ModelAgentInstall: """ + Example: + {'cloud_scanner_id': {'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, + 'cloud_provider': 'aws', 'region_ids': [{'ids': ['ids', 'ids'], 'region': 'region'}, {'ids': ['ids', 'ids'], + 'region': 'region'}]} + Attributes: cloud_provider (ModelAgentInstallCloudProvider): - cloud_scanner_id (ModelAgentID): + cloud_scanner_id (ModelAgentID): Example: {'node_type': 'node_type', 'available_workload': 0, 'node_id': + 'node_id'}. region_ids (Union[List['ModelRegionIDs'], None]): """ diff --git a/threatstryker/models/model_agent_plugin_config_names.py b/threatstryker/models/model_agent_plugin_config_names.py index e5a5973..7e4e906 100644 --- a/threatstryker/models/model_agent_plugin_config_names.py +++ b/threatstryker/models/model_agent_plugin_config_names.py @@ -9,6 +9,10 @@ @_attrs_define class ModelAgentPluginConfigNames: """ + Example: + {'policy_config_name': 'policy_config_name', 'filesystem_config_name': 'filesystem_config_name', + 'process_config_name': 'process_config_name', 'network_config_name': 'network_config_name'} + Attributes: filesystem_config_name (str): network_config_name (str): diff --git a/threatstryker/models/model_agent_plugin_disable.py b/threatstryker/models/model_agent_plugin_disable.py index caaa606..90ffefb 100644 --- a/threatstryker/models/model_agent_plugin_disable.py +++ b/threatstryker/models/model_agent_plugin_disable.py @@ -9,6 +9,9 @@ @_attrs_define class ModelAgentPluginDisable: """ + Example: + {'plugin_name': 'plugin_name', 'node_id': 'node_id'} + Attributes: node_id (str): plugin_name (str): diff --git a/threatstryker/models/model_agent_plugin_enable.py b/threatstryker/models/model_agent_plugin_enable.py index 4ea4ba3..f2d38b4 100644 --- a/threatstryker/models/model_agent_plugin_enable.py +++ b/threatstryker/models/model_agent_plugin_enable.py @@ -9,6 +9,9 @@ @_attrs_define class ModelAgentPluginEnable: """ + Example: + {'plugin_name': 'plugin_name', 'version': 'version', 'node_id': 'node_id'} + Attributes: node_id (str): plugin_name (str): diff --git a/threatstryker/models/model_agent_plugins_status.py b/threatstryker/models/model_agent_plugins_status.py index 5f20816..6c343c7 100644 --- a/threatstryker/models/model_agent_plugins_status.py +++ b/threatstryker/models/model_agent_plugins_status.py @@ -13,13 +13,20 @@ @_attrs_define class ModelAgentPluginsStatus: """ + Example: + {'network_tracer_status': {'description': 'description', 'status': 'status'}, 'network_filter_status': + {'description': 'description', 'status': 'status'}, 'cloud_network_tracer_status': {'description': + 'description', 'status': 'status'}, 'filesystem_tracer_status': {'description': 'description', 'status': + 'status'}, 'process_tracer_status': {'description': 'description', 'status': 'status'}, + 'agent_installer_tracer_status': {'description': 'description', 'status': 'status'}} + Attributes: - agent_installer_tracer_status (ModelPluginStatus): - cloud_network_tracer_status (ModelPluginStatus): - filesystem_tracer_status (ModelPluginStatus): - network_filter_status (ModelPluginStatus): - network_tracer_status (ModelPluginStatus): - process_tracer_status (ModelPluginStatus): + agent_installer_tracer_status (ModelPluginStatus): Example: {'description': 'description', 'status': 'status'}. + cloud_network_tracer_status (ModelPluginStatus): Example: {'description': 'description', 'status': 'status'}. + filesystem_tracer_status (ModelPluginStatus): Example: {'description': 'description', 'status': 'status'}. + network_filter_status (ModelPluginStatus): Example: {'description': 'description', 'status': 'status'}. + network_tracer_status (ModelPluginStatus): Example: {'description': 'description', 'status': 'status'}. + process_tracer_status (ModelPluginStatus): Example: {'description': 'description', 'status': 'status'}. """ agent_installer_tracer_status: "ModelPluginStatus" diff --git a/threatstryker/models/model_agent_upgrade.py b/threatstryker/models/model_agent_upgrade.py index b00ad6e..aa3b959 100644 --- a/threatstryker/models/model_agent_upgrade.py +++ b/threatstryker/models/model_agent_upgrade.py @@ -9,6 +9,9 @@ @_attrs_define class ModelAgentUpgrade: """ + Example: + {'version': 'version', 'node_ids': ['node_ids', 'node_ids']} + Attributes: node_ids (Union[List[str], None]): version (str): diff --git a/threatstryker/models/model_alerts_action_request.py b/threatstryker/models/model_alerts_action_request.py index 6da85c1..7c723e6 100644 --- a/threatstryker/models/model_alerts_action_request.py +++ b/threatstryker/models/model_alerts_action_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelAlertsActionRequest: """ + Example: + {'node_ids': ['node_ids', 'node_ids']} + Attributes: node_ids (Union[List[str], None]): """ diff --git a/threatstryker/models/model_api_auth_request.py b/threatstryker/models/model_api_auth_request.py index cc96985..2d30311 100644 --- a/threatstryker/models/model_api_auth_request.py +++ b/threatstryker/models/model_api_auth_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelAPIAuthRequest: """ + Example: + {'api_token': 'api_token'} + Attributes: api_token (str): """ diff --git a/threatstryker/models/model_api_endpoint.py b/threatstryker/models/model_api_endpoint.py index 85424ef..1f15a22 100644 --- a/threatstryker/models/model_api_endpoint.py +++ b/threatstryker/models/model_api_endpoint.py @@ -12,6 +12,11 @@ @_attrs_define class ModelAPIEndpoint: """ + Example: + {'host_ip': 'host_ip', 'cloud_region': 'cloud_region', 'method': 'method', 'created_at': 0, 'cloud_provider': + 'cloud_provider', 'schema_info': 'schema_info', 'path': 'path', 'cloud_type': 'cloud_type', 'source_hosts': + ['source_hosts', 'source_hosts'], 'updated_at': 1, 'port': 0, 'host': 'host', 'direction': 'ingress'} + Attributes: cloud_provider (Union[Unset, str]): cloud_region (Union[Unset, str]): diff --git a/threatstryker/models/model_api_token_response.py b/threatstryker/models/model_api_token_response.py index 31d3452..7e25bec 100644 --- a/threatstryker/models/model_api_token_response.py +++ b/threatstryker/models/model_api_token_response.py @@ -13,6 +13,10 @@ @_attrs_define class ModelAPITokenResponse: """ + Example: + {'company_id': 0, 'api_token': 'api_token', 'name': 'name', 'created_at': datetime.datetime(2000, 1, 23, 4, 56, + 7, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'id': 1, 'created_by_user_id': 6} + Attributes: api_token (Union[Unset, str]): company_id (Union[Unset, int]): diff --git a/threatstryker/models/model_attach_agent_config_req.py b/threatstryker/models/model_attach_agent_config_req.py index 433ab67..472901b 100644 --- a/threatstryker/models/model_attach_agent_config_req.py +++ b/threatstryker/models/model_attach_agent_config_req.py @@ -13,6 +13,10 @@ @_attrs_define class ModelAttachAgentConfigReq: """ + Example: + {'config_id': 'config_id', 'agent_ids': [{'node_type': 'node_type', 'available_workload': 0, 'node_id': + 'node_id'}, {'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]} + Attributes: agent_ids (Union[List['ModelAgentID'], None]): config_id (str): diff --git a/threatstryker/models/model_basic_node.py b/threatstryker/models/model_basic_node.py index 7abcdc1..49aad81 100644 --- a/threatstryker/models/model_basic_node.py +++ b/threatstryker/models/model_basic_node.py @@ -1,4 +1,4 @@ -from typing import Any, Dict, List, Type, TypeVar +from typing import Any, Dict, List, Type, TypeVar, Union, cast from attrs import define as _attrs_define from attrs import field as _attrs_field @@ -9,14 +9,25 @@ @_attrs_define class ModelBasicNode: """ + Example: + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'} + Attributes: host_name (str): + live_cves (Union[List[str], None]): + live_malwares (Union[List[str], None]): + live_secrets (Union[List[str], None]): name (str): node_id (str): node_type (str): """ host_name: str + live_cves: Union[List[str], None] + live_malwares: Union[List[str], None] + live_secrets: Union[List[str], None] name: str node_id: str node_type: str @@ -25,6 +36,27 @@ class ModelBasicNode: def to_dict(self) -> Dict[str, Any]: host_name = self.host_name + live_cves: Union[List[str], None] + if isinstance(self.live_cves, list): + live_cves = self.live_cves + + else: + live_cves = self.live_cves + + live_malwares: Union[List[str], None] + if isinstance(self.live_malwares, list): + live_malwares = self.live_malwares + + else: + live_malwares = self.live_malwares + + live_secrets: Union[List[str], None] + if isinstance(self.live_secrets, list): + live_secrets = self.live_secrets + + else: + live_secrets = self.live_secrets + name = self.name node_id = self.node_id @@ -36,6 +68,9 @@ def to_dict(self) -> Dict[str, Any]: field_dict.update( { "host_name": host_name, + "live_cves": live_cves, + "live_malwares": live_malwares, + "live_secrets": live_secrets, "name": name, "node_id": node_id, "node_type": node_type, @@ -49,6 +84,51 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: d = src_dict.copy() host_name = d.pop("host_name") + def _parse_live_cves(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + live_cves_type_0 = cast(List[str], data) + + return live_cves_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + live_cves = _parse_live_cves(d.pop("live_cves")) + + def _parse_live_malwares(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + live_malwares_type_0 = cast(List[str], data) + + return live_malwares_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + live_malwares = _parse_live_malwares(d.pop("live_malwares")) + + def _parse_live_secrets(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + live_secrets_type_0 = cast(List[str], data) + + return live_secrets_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + live_secrets = _parse_live_secrets(d.pop("live_secrets")) + name = d.pop("name") node_id = d.pop("node_id") @@ -57,6 +137,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: model_basic_node = cls( host_name=host_name, + live_cves=live_cves, + live_malwares=live_malwares, + live_secrets=live_secrets, name=name, node_id=node_id, node_type=node_type, diff --git a/threatstryker/models/model_bulk_delete_report_req.py b/threatstryker/models/model_bulk_delete_report_req.py index 105bce7..e749999 100644 --- a/threatstryker/models/model_bulk_delete_report_req.py +++ b/threatstryker/models/model_bulk_delete_report_req.py @@ -9,6 +9,9 @@ @_attrs_define class ModelBulkDeleteReportReq: """ + Example: + {'report_ids': ['report_ids', 'report_ids']} + Attributes: report_ids (Union[List[str], None]): """ diff --git a/threatstryker/models/model_bulk_delete_scans_request.py b/threatstryker/models/model_bulk_delete_scans_request.py index 750e7b0..2458423 100644 --- a/threatstryker/models/model_bulk_delete_scans_request.py +++ b/threatstryker/models/model_bulk_delete_scans_request.py @@ -15,8 +15,22 @@ @_attrs_define class ModelBulkDeleteScansRequest: """ + Example: + {'scan_type': 'Secret', 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': + {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}} + Attributes: - filters (ReportersFieldsFilters): + filters (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. scan_type (ModelBulkDeleteScansRequestScanType): """ diff --git a/threatstryker/models/model_cloud_account_delete_req.py b/threatstryker/models/model_cloud_account_delete_req.py index fbffe7d..98a3450 100644 --- a/threatstryker/models/model_cloud_account_delete_req.py +++ b/threatstryker/models/model_cloud_account_delete_req.py @@ -9,6 +9,9 @@ @_attrs_define class ModelCloudAccountDeleteReq: """ + Example: + {'node_ids': ['node_ids', 'node_ids']} + Attributes: node_ids (Union[List[str], None]): """ diff --git a/threatstryker/models/model_cloud_account_refresh_req.py b/threatstryker/models/model_cloud_account_refresh_req.py index 135fbdc..8f4bef2 100644 --- a/threatstryker/models/model_cloud_account_refresh_req.py +++ b/threatstryker/models/model_cloud_account_refresh_req.py @@ -9,6 +9,9 @@ @_attrs_define class ModelCloudAccountRefreshReq: """ + Example: + {'node_ids': ['node_ids', 'node_ids']} + Attributes: node_ids (Union[List[str], None]): """ diff --git a/threatstryker/models/model_cloud_compliance.py b/threatstryker/models/model_cloud_compliance.py index 978ae82..8cf755e 100644 --- a/threatstryker/models/model_cloud_compliance.py +++ b/threatstryker/models/model_cloud_compliance.py @@ -17,6 +17,17 @@ @_attrs_define class ModelCloudCompliance: """ + Example: + {'severity': 'severity', 'reason': 'reason', 'control_id': 'control_id', 'resource': 'resource', 'masked': True, + 'count': 0, 'node_name': 'node_name', 'description': 'description', 'resources': [{'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'cloud_provider': 'cloud_provider', 'title': 'title', 'type': 'type', + 'compliance_check_type': 'hipaa', 'account_id': 'account_id', 'updated_at': 6, 'service': 'service', 'region': + 'region', 'group': 'group', 'node_id': 'node_id', 'status': 'alarm'} + Attributes: account_id (str): cloud_provider (str): diff --git a/threatstryker/models/model_cloud_compliance_control.py b/threatstryker/models/model_cloud_compliance_control.py index b7df197..c996bfd 100644 --- a/threatstryker/models/model_cloud_compliance_control.py +++ b/threatstryker/models/model_cloud_compliance_control.py @@ -11,6 +11,13 @@ @_attrs_define class ModelCloudComplianceControl: """ + Example: + {'control_id': 'control_id', 'documentation': 'documentation', 'active': True, 'description': 'description', + 'cloud_provider': 'cloud_provider', 'title': 'title', 'category_hierarchy_short': 'category_hierarchy_short', + 'executable': True, 'category_hierarchy': ['category_hierarchy', 'category_hierarchy'], 'service': 'service', + 'parent_control_hierarchy': ['parent_control_hierarchy', 'parent_control_hierarchy'], 'compliance_type': + 'compliance_type', 'disabled': True, 'category': 'category', 'node_id': 'node_id'} + Attributes: active (Union[Unset, bool]): category (Union[Unset, str]): diff --git a/threatstryker/models/model_cloud_compliance_scan_result.py b/threatstryker/models/model_cloud_compliance_scan_result.py index f470fd8..c80b1e8 100644 --- a/threatstryker/models/model_cloud_compliance_scan_result.py +++ b/threatstryker/models/model_cloud_compliance_scan_result.py @@ -16,6 +16,31 @@ @_attrs_define class ModelCloudComplianceScanResult: """ + Example: + {'benchmark_type': ['benchmark_type', 'benchmark_type'], 'docker_container_name': 'docker_container_name', + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'node_name': 'node_name', 'created_at': 6, + 'cloud_account_id': 'cloud_account_id', 'compliances': [{'severity': 'severity', 'reason': 'reason', + 'control_id': 'control_id', 'resource': 'resource', 'masked': True, 'count': 0, 'node_name': 'node_name', + 'description': 'description', 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', + 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', + 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], + 'cloud_provider': 'cloud_provider', 'title': 'title', 'type': 'type', 'compliance_check_type': 'hipaa', + 'account_id': 'account_id', 'updated_at': 6, 'service': 'service', 'region': 'region', 'group': 'group', + 'node_id': 'node_id', 'status': 'alarm'}, {'severity': 'severity', 'reason': 'reason', 'control_id': + 'control_id', 'resource': 'resource', 'masked': True, 'count': 0, 'node_name': 'node_name', 'description': + 'description', 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], + 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': + ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': + ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': + 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'cloud_provider': + 'cloud_provider', 'title': 'title', 'type': 'type', 'compliance_check_type': 'hipaa', 'account_id': + 'account_id', 'updated_at': 6, 'service': 'service', 'region': 'region', 'group': 'group', 'node_id': 'node_id', + 'status': 'alarm'}], 'compliance_percentage': 0.8008281904610115, 'node_type': 'node_type', 'updated_at': 5, + 'scan_id': 'scan_id', 'status_counts': {'key': 1}, 'docker_image_name': 'docker_image_name', 'host_name': + 'host_name', 'node_id': 'node_id'} + Attributes: benchmark_type (Union[List[str], None]): cloud_account_id (str): diff --git a/threatstryker/models/model_cloud_node_account_info.py b/threatstryker/models/model_cloud_node_account_info.py index 5ffaf17..8fc3152 100644 --- a/threatstryker/models/model_cloud_node_account_info.py +++ b/threatstryker/models/model_cloud_node_account_info.py @@ -22,10 +22,19 @@ @_attrs_define class ModelCloudNodeAccountInfo: """ + Example: + {'last_scan_status': 'last_scan_status', 'last_scan_id': 'last_scan_id', 'refresh_message': 'refresh_message', + 'node_name': 'node_name', 'active': True, 'cloud_provider': 'aws', 'scan_status_map': {'key': 1}, + 'refresh_metadata': 'refresh_metadata', 'host_node_id': 'host_node_id', 'version': 'version', + 'refresh_status_map': {'key': 6}, 'refresh_status': 'refresh_status', 'compliance_percentage': + 0.8008281904610115, 'account_name': 'account_name', 'cloud_network_tracer_status': {'description': + 'description', 'status': 'status'}, 'node_id': 'node_id'} + Attributes: account_name (Union[Unset, str]): active (Union[Unset, bool]): - cloud_network_tracer_status (Union[Unset, ModelPluginStatus]): + cloud_network_tracer_status (Union[Unset, ModelPluginStatus]): Example: {'description': 'description', + 'status': 'status'}. cloud_provider (Union[Unset, ModelCloudNodeAccountInfoCloudProvider]): compliance_percentage (Union[Unset, float]): host_node_id (Union[Unset, str]): @@ -34,6 +43,7 @@ class ModelCloudNodeAccountInfo: node_id (Union[Unset, str]): node_name (Union[Unset, str]): refresh_message (Union[Unset, str]): + refresh_metadata (Union[Unset, str]): refresh_status (Union[Unset, str]): refresh_status_map (Union['ModelCloudNodeAccountInfoRefreshStatusMapType0', None, Unset]): scan_status_map (Union['ModelCloudNodeAccountInfoScanStatusMapType0', None, Unset]): @@ -51,6 +61,7 @@ class ModelCloudNodeAccountInfo: node_id: Union[Unset, str] = UNSET node_name: Union[Unset, str] = UNSET refresh_message: Union[Unset, str] = UNSET + refresh_metadata: Union[Unset, str] = UNSET refresh_status: Union[Unset, str] = UNSET refresh_status_map: Union["ModelCloudNodeAccountInfoRefreshStatusMapType0", None, Unset] = UNSET scan_status_map: Union["ModelCloudNodeAccountInfoScanStatusMapType0", None, Unset] = UNSET @@ -91,6 +102,8 @@ def to_dict(self) -> Dict[str, Any]: refresh_message = self.refresh_message + refresh_metadata = self.refresh_metadata + refresh_status = self.refresh_status refresh_status_map: Union[Dict[str, Any], None, Unset] @@ -136,6 +149,8 @@ def to_dict(self) -> Dict[str, Any]: field_dict["node_name"] = node_name if refresh_message is not UNSET: field_dict["refresh_message"] = refresh_message + if refresh_metadata is not UNSET: + field_dict["refresh_metadata"] = refresh_metadata if refresh_status is not UNSET: field_dict["refresh_status"] = refresh_status if refresh_status_map is not UNSET: @@ -190,6 +205,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: refresh_message = d.pop("refresh_message", UNSET) + refresh_metadata = d.pop("refresh_metadata", UNSET) + refresh_status = d.pop("refresh_status", UNSET) def _parse_refresh_status_map( @@ -242,6 +259,7 @@ def _parse_scan_status_map(data: object) -> Union["ModelCloudNodeAccountInfoScan node_id=node_id, node_name=node_name, refresh_message=refresh_message, + refresh_metadata=refresh_metadata, refresh_status=refresh_status, refresh_status_map=refresh_status_map, scan_status_map=scan_status_map, diff --git a/threatstryker/models/model_cloud_node_account_register_req.py b/threatstryker/models/model_cloud_node_account_register_req.py index 5d73c7b..0d4af1f 100644 --- a/threatstryker/models/model_cloud_node_account_register_req.py +++ b/threatstryker/models/model_cloud_node_account_register_req.py @@ -16,27 +16,41 @@ @_attrs_define class ModelCloudNodeAccountRegisterReq: """ + Example: + {'initial_request': True, 'account_id': 'account_id', 'monitored_accounts': [{'account_id': 'account_id', + 'account_name': 'account_name', 'node_id': 'node_id'}, {'account_id': 'account_id', 'account_name': + 'account_name', 'node_id': 'node_id'}], 'account_name': 'account_name', 'is_organization_deployment': True, + 'installation_id': 'installation_id', 'cloud_provider': 'aws', 'persistent_volume_supported': True, + 'organization_account_id': 'organization_account_id', 'host_node_id': 'host_node_id', 'version': 'version', + 'node_id': 'node_id'} + Attributes: account_id (str): cloud_provider (ModelCloudNodeAccountRegisterReqCloudProvider): host_node_id (str): + installation_id (str): node_id (str): version (str): account_name (Union[Unset, str]): + initial_request (Union[Unset, bool]): is_organization_deployment (Union[Unset, bool]): monitored_accounts (Union[List['ModelCloudNodeMonitoredAccount'], None, Unset]): organization_account_id (Union[Unset, str]): + persistent_volume_supported (Union[Unset, bool]): """ account_id: str cloud_provider: ModelCloudNodeAccountRegisterReqCloudProvider host_node_id: str + installation_id: str node_id: str version: str account_name: Union[Unset, str] = UNSET + initial_request: Union[Unset, bool] = UNSET is_organization_deployment: Union[Unset, bool] = UNSET monitored_accounts: Union[List["ModelCloudNodeMonitoredAccount"], None, Unset] = UNSET organization_account_id: Union[Unset, str] = UNSET + persistent_volume_supported: Union[Unset, bool] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: @@ -46,12 +60,16 @@ def to_dict(self) -> Dict[str, Any]: host_node_id = self.host_node_id + installation_id = self.installation_id + node_id = self.node_id version = self.version account_name = self.account_name + initial_request = self.initial_request + is_organization_deployment = self.is_organization_deployment monitored_accounts: Union[List[Dict[str, Any]], None, Unset] @@ -68,6 +86,8 @@ def to_dict(self) -> Dict[str, Any]: organization_account_id = self.organization_account_id + persistent_volume_supported = self.persistent_volume_supported + field_dict: Dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update( @@ -75,18 +95,23 @@ def to_dict(self) -> Dict[str, Any]: "account_id": account_id, "cloud_provider": cloud_provider, "host_node_id": host_node_id, + "installation_id": installation_id, "node_id": node_id, "version": version, } ) if account_name is not UNSET: field_dict["account_name"] = account_name + if initial_request is not UNSET: + field_dict["initial_request"] = initial_request if is_organization_deployment is not UNSET: field_dict["is_organization_deployment"] = is_organization_deployment if monitored_accounts is not UNSET: field_dict["monitored_accounts"] = monitored_accounts if organization_account_id is not UNSET: field_dict["organization_account_id"] = organization_account_id + if persistent_volume_supported is not UNSET: + field_dict["persistent_volume_supported"] = persistent_volume_supported return field_dict @@ -101,12 +126,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: host_node_id = d.pop("host_node_id") + installation_id = d.pop("installation_id") + node_id = d.pop("node_id") version = d.pop("version") account_name = d.pop("account_name", UNSET) + initial_request = d.pop("initial_request", UNSET) + is_organization_deployment = d.pop("is_organization_deployment", UNSET) def _parse_monitored_accounts(data: object) -> Union[List["ModelCloudNodeMonitoredAccount"], None, Unset]: @@ -135,16 +164,21 @@ def _parse_monitored_accounts(data: object) -> Union[List["ModelCloudNodeMonitor organization_account_id = d.pop("organization_account_id", UNSET) + persistent_volume_supported = d.pop("persistent_volume_supported", UNSET) + model_cloud_node_account_register_req = cls( account_id=account_id, cloud_provider=cloud_provider, host_node_id=host_node_id, + installation_id=installation_id, node_id=node_id, version=version, account_name=account_name, + initial_request=initial_request, is_organization_deployment=is_organization_deployment, monitored_accounts=monitored_accounts, organization_account_id=organization_account_id, + persistent_volume_supported=persistent_volume_supported, ) model_cloud_node_account_register_req.additional_properties = d diff --git a/threatstryker/models/model_cloud_node_accounts_list_req.py b/threatstryker/models/model_cloud_node_accounts_list_req.py index a8597c3..dec4b88 100644 --- a/threatstryker/models/model_cloud_node_accounts_list_req.py +++ b/threatstryker/models/model_cloud_node_accounts_list_req.py @@ -15,9 +15,12 @@ @_attrs_define class ModelCloudNodeAccountsListReq: """ + Example: + {'cloud_provider': 'aws', 'window': {'offset': 0, 'size': 6}} + Attributes: cloud_provider (ModelCloudNodeAccountsListReqCloudProvider): - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ cloud_provider: ModelCloudNodeAccountsListReqCloudProvider diff --git a/threatstryker/models/model_cloud_node_accounts_list_resp.py b/threatstryker/models/model_cloud_node_accounts_list_resp.py index d239789..0f18c63 100644 --- a/threatstryker/models/model_cloud_node_accounts_list_resp.py +++ b/threatstryker/models/model_cloud_node_accounts_list_resp.py @@ -13,6 +13,19 @@ @_attrs_define class ModelCloudNodeAccountsListResp: """ + Example: + {'total': 5, 'cloud_node_accounts_info': [{'last_scan_status': 'last_scan_status', 'last_scan_id': + 'last_scan_id', 'refresh_message': 'refresh_message', 'node_name': 'node_name', 'active': True, + 'cloud_provider': 'aws', 'scan_status_map': {'key': 1}, 'refresh_metadata': 'refresh_metadata', 'host_node_id': + 'host_node_id', 'version': 'version', 'refresh_status_map': {'key': 6}, 'refresh_status': 'refresh_status', + 'compliance_percentage': 0.8008281904610115, 'account_name': 'account_name', 'cloud_network_tracer_status': + {'description': 'description', 'status': 'status'}, 'node_id': 'node_id'}, {'last_scan_status': + 'last_scan_status', 'last_scan_id': 'last_scan_id', 'refresh_message': 'refresh_message', 'node_name': + 'node_name', 'active': True, 'cloud_provider': 'aws', 'scan_status_map': {'key': 1}, 'refresh_metadata': + 'refresh_metadata', 'host_node_id': 'host_node_id', 'version': 'version', 'refresh_status_map': {'key': 6}, + 'refresh_status': 'refresh_status', 'compliance_percentage': 0.8008281904610115, 'account_name': 'account_name', + 'cloud_network_tracer_status': {'description': 'description', 'status': 'status'}, 'node_id': 'node_id'}]} + Attributes: cloud_node_accounts_info (Union[List['ModelCloudNodeAccountInfo'], None]): total (int): diff --git a/threatstryker/models/model_cloud_node_compliance_control.py b/threatstryker/models/model_cloud_node_compliance_control.py index ef1e4c4..22b4b83 100644 --- a/threatstryker/models/model_cloud_node_compliance_control.py +++ b/threatstryker/models/model_cloud_node_compliance_control.py @@ -11,6 +11,11 @@ @_attrs_define class ModelCloudNodeComplianceControl: """ + Example: + {'category_hierarchy': ['category_hierarchy', 'category_hierarchy'], 'control_id': 'control_id', 'service': + 'service', 'description': 'description', 'compliance_type': 'compliance_type', 'problem_title': 'problem_title', + 'title': 'title', 'category_hierarchy_short': 'category_hierarchy_short', 'enabled': True, 'node_id': 'node_id'} + Attributes: category_hierarchy (Union[List[str], None, Unset]): category_hierarchy_short (Union[Unset, str]): diff --git a/threatstryker/models/model_cloud_node_control_req.py b/threatstryker/models/model_cloud_node_control_req.py index cd59395..2cf7c19 100644 --- a/threatstryker/models/model_cloud_node_control_req.py +++ b/threatstryker/models/model_cloud_node_control_req.py @@ -13,6 +13,9 @@ @_attrs_define class ModelCloudNodeControlReq: """ + Example: + {'cloud_provider': 'aws', 'compliance_type': 'hipaa', 'node_id': 'node_id'} + Attributes: cloud_provider (ModelCloudNodeControlReqCloudProvider): compliance_type (ModelCloudNodeControlReqComplianceType): diff --git a/threatstryker/models/model_cloud_node_control_resp.py b/threatstryker/models/model_cloud_node_control_resp.py index f1693fa..fc3abb3 100644 --- a/threatstryker/models/model_cloud_node_control_resp.py +++ b/threatstryker/models/model_cloud_node_control_resp.py @@ -15,6 +15,15 @@ @_attrs_define class ModelCloudNodeControlResp: """ + Example: + {'controls': [{'category_hierarchy': ['category_hierarchy', 'category_hierarchy'], 'control_id': 'control_id', + 'service': 'service', 'description': 'description', 'compliance_type': 'compliance_type', 'problem_title': + 'problem_title', 'title': 'title', 'category_hierarchy_short': 'category_hierarchy_short', 'enabled': True, + 'node_id': 'node_id'}, {'category_hierarchy': ['category_hierarchy', 'category_hierarchy'], 'control_id': + 'control_id', 'service': 'service', 'description': 'description', 'compliance_type': 'compliance_type', + 'problem_title': 'problem_title', 'title': 'title', 'category_hierarchy_short': 'category_hierarchy_short', + 'enabled': True, 'node_id': 'node_id'}]} + Attributes: controls (Union[List['ModelCloudNodeComplianceControl'], None, Unset]): """ diff --git a/threatstryker/models/model_cloud_node_enable_disable_req.py b/threatstryker/models/model_cloud_node_enable_disable_req.py index b362e5e..fd1fc7c 100644 --- a/threatstryker/models/model_cloud_node_enable_disable_req.py +++ b/threatstryker/models/model_cloud_node_enable_disable_req.py @@ -11,6 +11,9 @@ @_attrs_define class ModelCloudNodeEnableDisableReq: """ + Example: + {'control_ids': ['control_ids', 'control_ids'], 'node_id': 'node_id'} + Attributes: control_ids (Union[List[str], None, Unset]): node_id (Union[Unset, str]): diff --git a/threatstryker/models/model_cloud_node_monitored_account.py b/threatstryker/models/model_cloud_node_monitored_account.py index a4ed1be..7e1388c 100644 --- a/threatstryker/models/model_cloud_node_monitored_account.py +++ b/threatstryker/models/model_cloud_node_monitored_account.py @@ -11,6 +11,9 @@ @_attrs_define class ModelCloudNodeMonitoredAccount: """ + Example: + {'account_id': 'account_id', 'account_name': 'account_name', 'node_id': 'node_id'} + Attributes: account_id (str): node_id (str): diff --git a/threatstryker/models/model_cloud_node_providers_list_resp.py b/threatstryker/models/model_cloud_node_providers_list_resp.py index ef7503d..f656327 100644 --- a/threatstryker/models/model_cloud_node_providers_list_resp.py +++ b/threatstryker/models/model_cloud_node_providers_list_resp.py @@ -13,6 +13,12 @@ @_attrs_define class ModelCloudNodeProvidersListResp: """ + Example: + {'providers': [{'node_count_inactive': 1, 'compliance_percentage': 0.8008281904610115, 'node_label': + 'node_label', 'name': 'name', 'scan_count': 5, 'node_count': 6, 'resource_count': 5}, {'node_count_inactive': 1, + 'compliance_percentage': 0.8008281904610115, 'node_label': 'node_label', 'name': 'name', 'scan_count': 5, + 'node_count': 6, 'resource_count': 5}]} + Attributes: providers (Union[List['ModelPostureProvider'], None]): """ diff --git a/threatstryker/models/model_cloud_resource.py b/threatstryker/models/model_cloud_resource.py index 724f742..895fc27 100644 --- a/threatstryker/models/model_cloud_resource.py +++ b/threatstryker/models/model_cloud_resource.py @@ -12,6 +12,13 @@ @_attrs_define class ModelCloudResource: """ + Example: + {'cloud_compliances_count': 0, 'account_id': 'account_id', 'cloud_compliance_latest_scan_id': + 'cloud_compliance_latest_scan_id', 'node_type': 'node_type', 'cloud_compliance_scan_status': + 'cloud_compliance_scan_status', 'cloud_region': 'cloud_region', 'agent_install_availability': 'available', + 'node_name': 'node_name', 'cloud_provider': 'aws', 'type_label': 'type_label', 'cloud_warn_alarm_count': 6, + 'node_id': 'node_id'} + Attributes: account_id (str): agent_install_availability (ModelCloudResourceAgentInstallAvailability): diff --git a/threatstryker/models/model_common_alert.py b/threatstryker/models/model_common_alert.py index ab64265..28e58da 100644 --- a/threatstryker/models/model_common_alert.py +++ b/threatstryker/models/model_common_alert.py @@ -12,6 +12,13 @@ @_attrs_define class ModelCommonAlert: """ + Example: + {'severity': 'critical', 'summary': 'summary', 'geoip': 'geoip', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'masked': True, 'count': 0, 'created_at': 6, 'pod_name': 'pod_name', 'rule_id': + 'rule_id', 'event_type': 'network_anomaly', 'node_type': 'node_type', 'container_name': 'container_name', + 'updated_at': 1, 'techniques': ['techniques', 'techniques'], 'tactics': ['tactics', 'tactics'], 'matched': + 'matched', 'category': 'category', 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: category (str): container_name (str): diff --git a/threatstryker/models/model_compliance.py b/threatstryker/models/model_compliance.py index cd52d7c..31c2a95 100644 --- a/threatstryker/models/model_compliance.py +++ b/threatstryker/models/model_compliance.py @@ -17,6 +17,18 @@ @_attrs_define class ModelCompliance: """ + Example: + {'resource': 'resource', 'masked': True, 'description': 'description', 'resources': [{'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'test_category': 'test_category', 'remediation_ansible': 'remediation_ansible', + 'compliance_check_type': 'hipaa', 'rule_id': 'rule_id', 'test_rationale': 'test_rationale', 'test_severity': + 'test_severity', 'node_type': 'node_type', 'updated_at': 0, 'remediation_puppet': 'remediation_puppet', + 'remediation_script': 'remediation_script', 'node_id': 'node_id', 'status': 'pass', 'test_desc': 'test_desc', + 'test_number': 'test_number'} + Attributes: compliance_check_type (ModelComplianceComplianceCheckType): description (str): diff --git a/threatstryker/models/model_compliance_rule.py b/threatstryker/models/model_compliance_rule.py index 51d84e4..24e73fa 100644 --- a/threatstryker/models/model_compliance_rule.py +++ b/threatstryker/models/model_compliance_rule.py @@ -9,6 +9,11 @@ @_attrs_define class ModelComplianceRule: """ + Example: + {'test_rationale': 'test_rationale', 'test_severity': 'test_severity', 'updated_at': 0, 'masked': True, + 'description': 'description', 'test_category': 'test_category', 'test_desc': 'test_desc', 'test_number': + 'test_number'} + Attributes: description (str): masked (bool): diff --git a/threatstryker/models/model_compliance_scan_info.py b/threatstryker/models/model_compliance_scan_info.py index 01ada31..58f862a 100644 --- a/threatstryker/models/model_compliance_scan_info.py +++ b/threatstryker/models/model_compliance_scan_info.py @@ -15,6 +15,11 @@ @_attrs_define class ModelComplianceScanInfo: """ + Example: + {'severity_counts': {'key': 6}, 'status_message': 'status_message', 'node_type': 'node_type', 'benchmark_types': + ['benchmark_types', 'benchmark_types'], 'updated_at': 1, 'node_name': 'node_name', 'created_at': 0, + 'cloud_provider': 'cloud_provider', 'scan_id': 'scan_id', 'node_id': 'node_id', 'status': 'COMPLETE'} + Attributes: benchmark_types (Union[List[str], None]): cloud_provider (str): diff --git a/threatstryker/models/model_compliance_scan_result.py b/threatstryker/models/model_compliance_scan_result.py index 98bb981..14c8ea3 100644 --- a/threatstryker/models/model_compliance_scan_result.py +++ b/threatstryker/models/model_compliance_scan_result.py @@ -14,6 +14,32 @@ @_attrs_define class ModelComplianceScanResult: """ + Example: + {'benchmark_type': ['benchmark_type', 'benchmark_type'], 'docker_container_name': 'docker_container_name', + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'node_name': 'node_name', 'created_at': 6, + 'cloud_account_id': 'cloud_account_id', 'compliances': [{'resource': 'resource', 'masked': True, 'description': + 'description', 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], + 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': + ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': + ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': + 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'test_category': + 'test_category', 'remediation_ansible': 'remediation_ansible', 'compliance_check_type': 'hipaa', 'rule_id': + 'rule_id', 'test_rationale': 'test_rationale', 'test_severity': 'test_severity', 'node_type': 'node_type', + 'updated_at': 0, 'remediation_puppet': 'remediation_puppet', 'remediation_script': 'remediation_script', + 'node_id': 'node_id', 'status': 'pass', 'test_desc': 'test_desc', 'test_number': 'test_number'}, {'resource': + 'resource', 'masked': True, 'description': 'description', 'resources': [{'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'test_category': 'test_category', 'remediation_ansible': 'remediation_ansible', + 'compliance_check_type': 'hipaa', 'rule_id': 'rule_id', 'test_rationale': 'test_rationale', 'test_severity': + 'test_severity', 'node_type': 'node_type', 'updated_at': 0, 'remediation_puppet': 'remediation_puppet', + 'remediation_script': 'remediation_script', 'node_id': 'node_id', 'status': 'pass', 'test_desc': 'test_desc', + 'test_number': 'test_number'}], 'compliance_percentage': 0.8008281904610115, 'node_type': 'node_type', + 'updated_at': 5, 'scan_id': 'scan_id', 'status_counts': {'key': 1}, 'docker_image_name': 'docker_image_name', + 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: benchmark_type (Union[List[str], None]): cloud_account_id (str): diff --git a/threatstryker/models/model_compliance_scan_result_control_group.py b/threatstryker/models/model_compliance_scan_result_control_group.py index 9cd303e..996d85e 100644 --- a/threatstryker/models/model_compliance_scan_result_control_group.py +++ b/threatstryker/models/model_compliance_scan_result_control_group.py @@ -15,6 +15,10 @@ @_attrs_define class ModelComplianceScanResultControlGroup: """ + Example: + {'benchmark_types': ['benchmark_types', 'benchmark_types'], 'counts': {'key': 0}, 'problem_title': + 'problem_title'} + Attributes: benchmark_types (Union[Unset, List[str]]): counts (Union[Unset, ModelComplianceScanResultControlGroupCounts]): diff --git a/threatstryker/models/model_compliance_scan_results_group_resp.py b/threatstryker/models/model_compliance_scan_results_group_resp.py index e14fe59..303d1e6 100644 --- a/threatstryker/models/model_compliance_scan_results_group_resp.py +++ b/threatstryker/models/model_compliance_scan_results_group_resp.py @@ -17,6 +17,10 @@ @_attrs_define class ModelComplianceScanResultsGroupResp: """ + Example: + {'groups': {'key': {'benchmark_types': ['benchmark_types', 'benchmark_types'], 'counts': {'key': 0}, + 'problem_title': 'problem_title'}}} + Attributes: groups (Union['ModelComplianceScanResultsGroupRespGroupsType0', None, Unset]): """ diff --git a/threatstryker/models/model_compliance_scan_status_resp.py b/threatstryker/models/model_compliance_scan_status_resp.py index a1523ff..522bd2e 100644 --- a/threatstryker/models/model_compliance_scan_status_resp.py +++ b/threatstryker/models/model_compliance_scan_status_resp.py @@ -13,6 +13,15 @@ @_attrs_define class ModelComplianceScanStatusResp: """ + Example: + {'statuses': [{'severity_counts': {'key': 6}, 'status_message': 'status_message', 'node_type': 'node_type', + 'benchmark_types': ['benchmark_types', 'benchmark_types'], 'updated_at': 1, 'node_name': 'node_name', + 'created_at': 0, 'cloud_provider': 'cloud_provider', 'scan_id': 'scan_id', 'node_id': 'node_id', 'status': + 'COMPLETE'}, {'severity_counts': {'key': 6}, 'status_message': 'status_message', 'node_type': 'node_type', + 'benchmark_types': ['benchmark_types', 'benchmark_types'], 'updated_at': 1, 'node_name': 'node_name', + 'created_at': 0, 'cloud_provider': 'cloud_provider', 'scan_id': 'scan_id', 'node_id': 'node_id', 'status': + 'COMPLETE'}]} + Attributes: statuses (Union[List['ModelComplianceScanInfo'], None]): """ diff --git a/threatstryker/models/model_compliance_scan_trigger_req.py b/threatstryker/models/model_compliance_scan_trigger_req.py index a53b4b3..ef8407b 100644 --- a/threatstryker/models/model_compliance_scan_trigger_req.py +++ b/threatstryker/models/model_compliance_scan_trigger_req.py @@ -17,9 +17,19 @@ @_attrs_define class ModelComplianceScanTriggerReq: """ + Example: + {'is_priority': True, 'benchmark_types': ['hipaa', 'hipaa'], 'deepfence_system_scan': True, 'filters': + {'container_scan_filter': {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': + ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}}, 'node_ids': + [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]} + Attributes: benchmark_types (Union[List[ModelBenchmarkType], None]): - filters (ModelScanFilter): + filters (ModelScanFilter): Example: {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', + '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': + {'key': ['', '']}}}. node_ids (Union[List['ModelNodeIdentifier'], None]): deepfence_system_scan (Union[Unset, bool]): is_priority (Union[Unset, bool]): diff --git a/threatstryker/models/model_complinace_scan_results_group_req.py b/threatstryker/models/model_complinace_scan_results_group_req.py index 388a817..c86f51a 100644 --- a/threatstryker/models/model_complinace_scan_results_group_req.py +++ b/threatstryker/models/model_complinace_scan_results_group_req.py @@ -13,8 +13,23 @@ @_attrs_define class ModelComplinaceScanResultsGroupReq: """ + Example: + {'scan_id': 'scan_id', 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}} + Attributes: - fields_filter (ReportersFieldsFilters): + fields_filter (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. scan_id (str): """ diff --git a/threatstryker/models/model_connection.py b/threatstryker/models/model_connection.py index 19a5be6..6beb004 100644 --- a/threatstryker/models/model_connection.py +++ b/threatstryker/models/model_connection.py @@ -11,6 +11,9 @@ @_attrs_define class ModelConnection: """ + Example: + {'count': 4, 'node_name': 'node_name', 'ips': ['', ''], 'node_id': 'node_id'} + Attributes: count (Union[Unset, int]): ips (Union[List[Any], None, Unset]): diff --git a/threatstryker/models/model_container.py b/threatstryker/models/model_container.py index 1be9142..4344832 100644 --- a/threatstryker/models/model_container.py +++ b/threatstryker/models/model_container.py @@ -15,6 +15,29 @@ @_attrs_define class ModelContainer: """ + Example: + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: cpu_max (float): cpu_usage (float): @@ -29,7 +52,58 @@ class ModelContainer: docker_container_state_human (str): docker_labels (Union['ModelContainerDockerLabelsType0', None]): host_name (str): - image (ModelContainerImage): + image (ModelContainerImage): Example: {'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}. is_deepfence_system (bool): kubernetes_cluster_id (str): kubernetes_cluster_name (str): diff --git a/threatstryker/models/model_container_image.py b/threatstryker/models/model_container_image.py index 3be5007..d98ab44 100644 --- a/threatstryker/models/model_container_image.py +++ b/threatstryker/models/model_container_image.py @@ -16,6 +16,59 @@ @_attrs_define class ModelContainerImage: """ + Example: + {'is_deepfence_system': True, 'metadata': {'key': ''}, 'secret_scan_status': 'secret_scan_status', + 'vulnerabilities_count': 4, 'secrets_count': 1, 'malware_latest_scan_id': 'malware_latest_scan_id', + 'malwares_count': 7, 'node_name': 'node_name', 'secret_latest_scan_id': 'secret_latest_scan_id', + 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', 'docker_image_created_at': + 'docker_image_created_at', 'docker_image_tag': 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', + 'docker_image_size': 'docker_image_size', 'image_node_id': 'image_node_id', 'docker_image_virtual_size': + 'docker_image_virtual_size', 'containers': [{'vulnerabilities_count': 6, 'secrets_count': 1, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': 'secret_latest_scan_id', + 'docker_container_network_mode': 'docker_container_network_mode', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': + 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': + True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, + 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', + 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': + ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': + 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, + 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'} + Attributes: containers (Union[List['ModelContainer'], None]): docker_image_created_at (str): diff --git a/threatstryker/models/model_delete_filter.py b/threatstryker/models/model_delete_filter.py index 3f690be..8bb744c 100644 --- a/threatstryker/models/model_delete_filter.py +++ b/threatstryker/models/model_delete_filter.py @@ -9,6 +9,9 @@ @_attrs_define class ModelDeleteFilter: """ + Example: + {'node_ids': ['node_ids', 'node_ids']} + Attributes: node_ids (Union[List[str], None]): """ diff --git a/threatstryker/models/model_delete_integration_req.py b/threatstryker/models/model_delete_integration_req.py index 87d53c0..e9c9f39 100644 --- a/threatstryker/models/model_delete_integration_req.py +++ b/threatstryker/models/model_delete_integration_req.py @@ -9,6 +9,9 @@ @_attrs_define class ModelDeleteIntegrationReq: """ + Example: + {'integration_ids': [0, 0]} + Attributes: integration_ids (Union[List[int], None]): """ diff --git a/threatstryker/models/model_delete_registry_bulk_req.py b/threatstryker/models/model_delete_registry_bulk_req.py index 40f4bbd..e0c0e1f 100644 --- a/threatstryker/models/model_delete_registry_bulk_req.py +++ b/threatstryker/models/model_delete_registry_bulk_req.py @@ -9,6 +9,9 @@ @_attrs_define class ModelDeleteRegistryBulkReq: """ + Example: + {'registry_ids': ['registry_ids', 'registry_ids']} + Attributes: registry_ids (Union[List[str], None]): """ diff --git a/threatstryker/models/model_disable_cloud_tracer_req.py b/threatstryker/models/model_disable_cloud_tracer_req.py index a00bbfc..4bfb92f 100644 --- a/threatstryker/models/model_disable_cloud_tracer_req.py +++ b/threatstryker/models/model_disable_cloud_tracer_req.py @@ -13,6 +13,10 @@ @_attrs_define class ModelDisableCloudTracerReq: """ + Example: + {'agent_ids': [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]} + Attributes: agent_ids (Union[List['ModelAgentID'], None]): """ diff --git a/threatstryker/models/model_disable_tracer_req.py b/threatstryker/models/model_disable_tracer_req.py index 3ff8e1b..0cc57ca 100644 --- a/threatstryker/models/model_disable_tracer_req.py +++ b/threatstryker/models/model_disable_tracer_req.py @@ -13,6 +13,10 @@ @_attrs_define class ModelDisableTracerReq: """ + Example: + {'agent_ids': [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]} + Attributes: agent_ids (Union[List['ModelAgentID'], None]): """ diff --git a/threatstryker/models/model_download_report_response.py b/threatstryker/models/model_download_report_response.py index 730663d..e5cc128 100644 --- a/threatstryker/models/model_download_report_response.py +++ b/threatstryker/models/model_download_report_response.py @@ -11,6 +11,9 @@ @_attrs_define class ModelDownloadReportResponse: """ + Example: + {'url_link': 'url_link'} + Attributes: url_link (Union[Unset, str]): """ diff --git a/threatstryker/models/model_download_scan_results_response.py b/threatstryker/models/model_download_scan_results_response.py index aba2a9d..ef6f99f 100644 --- a/threatstryker/models/model_download_scan_results_response.py +++ b/threatstryker/models/model_download_scan_results_response.py @@ -15,8 +15,17 @@ @_attrs_define class ModelDownloadScanResultsResponse: """ + Example: + {'scan_results': ['', ''], 'scan_info': {'cloud_account_id': 'cloud_account_id', 'node_type': 'node_type', + 'docker_container_name': 'docker_container_name', 'updated_at': 6, 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'node_name': 'node_name', 'created_at': 0, 'scan_id': 'scan_id', 'docker_image_name': + 'docker_image_name', 'host_name': 'host_name', 'node_id': 'node_id'}} + Attributes: - scan_info (Union[Unset, ModelScanResultsCommon]): + scan_info (Union[Unset, ModelScanResultsCommon]): Example: {'cloud_account_id': 'cloud_account_id', + 'node_type': 'node_type', 'docker_container_name': 'docker_container_name', 'updated_at': 6, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'node_name': 'node_name', 'created_at': 0, 'scan_id': + 'scan_id', 'docker_image_name': 'docker_image_name', 'host_name': 'host_name', 'node_id': 'node_id'}. scan_results (Union[List[Any], None, Unset]): """ diff --git a/threatstryker/models/model_email_configuration_add.py b/threatstryker/models/model_email_configuration_add.py index 7517b35..8586757 100644 --- a/threatstryker/models/model_email_configuration_add.py +++ b/threatstryker/models/model_email_configuration_add.py @@ -11,6 +11,11 @@ @_attrs_define class ModelEmailConfigurationAdd: """ + Example: + {'email_id': 'email_id', 'password': 'password', 'smtp': 'smtp', 'apikey': 'apikey', 'port': 'port', + 'email_provider': 'email_provider', 'amazon_secret_key': 'amazon_secret_key', 'amazon_access_key': + 'amazon_access_key', 'created_by_user_id': 0, 'ses_region': 'ses_region'} + Attributes: amazon_access_key (Union[Unset, str]): amazon_secret_key (Union[Unset, str]): diff --git a/threatstryker/models/model_email_configuration_resp.py b/threatstryker/models/model_email_configuration_resp.py index 79ab242..6ea5d35 100644 --- a/threatstryker/models/model_email_configuration_resp.py +++ b/threatstryker/models/model_email_configuration_resp.py @@ -11,6 +11,10 @@ @_attrs_define class ModelEmailConfigurationResp: """ + Example: + {'email_id': 'email_id', 'smtp': 'smtp', 'port': 'port', 'email_provider': 'email_provider', 'id': 6, + 'created_by_user_id': 0, 'ses_region': 'ses_region'} + Attributes: created_by_user_id (Union[Unset, int]): email_id (Union[Unset, str]): diff --git a/threatstryker/models/model_enable_cloud_tracer_req.py b/threatstryker/models/model_enable_cloud_tracer_req.py index 77533da..11a5aab 100644 --- a/threatstryker/models/model_enable_cloud_tracer_req.py +++ b/threatstryker/models/model_enable_cloud_tracer_req.py @@ -13,6 +13,11 @@ @_attrs_define class ModelEnableCloudTracerReq: """ + Example: + {'aws_s3_bucket': ['aws_s3_bucket', 'aws_s3_bucket'], 'agent_ids': [{'node_type': 'node_type', + 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': 'node_type', 'available_workload': 0, 'node_id': + 'node_id'}]} + Attributes: agent_ids (Union[List['ModelAgentID'], None]): aws_s3_bucket (Union[List[str], None]): diff --git a/threatstryker/models/model_enable_tracer_req.py b/threatstryker/models/model_enable_tracer_req.py index 39e38d7..b11034e 100644 --- a/threatstryker/models/model_enable_tracer_req.py +++ b/threatstryker/models/model_enable_tracer_req.py @@ -13,6 +13,10 @@ @_attrs_define class ModelEnableTracerReq: """ + Example: + {'agent_ids': [{'node_type': 'node_type', 'available_workload': 0, 'node_id': 'node_id'}, {'node_type': + 'node_type', 'available_workload': 0, 'node_id': 'node_id'}]} + Attributes: agent_ids (Union[List['ModelAgentID'], None]): """ diff --git a/threatstryker/models/model_exploitable_alert.py b/threatstryker/models/model_exploitable_alert.py new file mode 100644 index 0000000..1f9e72a --- /dev/null +++ b/threatstryker/models/model_exploitable_alert.py @@ -0,0 +1,93 @@ +from typing import Any, Dict, List, Type, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="ModelExploitableAlert") + + +@_attrs_define +class ModelExploitableAlert: + """ + Example: + {'node': 'node', 'process': 'process', 'node_type': 'node_type', 'updated_at': 0, 'node_id': 'node_id'} + + Attributes: + node (str): + node_id (str): + node_type (str): + process (str): + updated_at (int): + """ + + node: str + node_id: str + node_type: str + process: str + updated_at: int + additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> Dict[str, Any]: + node = self.node + + node_id = self.node_id + + node_type = self.node_type + + process = self.process + + updated_at = self.updated_at + + field_dict: Dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "node": node, + "node_id": node_id, + "node_type": node_type, + "process": process, + "updated_at": updated_at, + } + ) + + return field_dict + + @classmethod + def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: + d = src_dict.copy() + node = d.pop("node") + + node_id = d.pop("node_id") + + node_type = d.pop("node_type") + + process = d.pop("process") + + updated_at = d.pop("updated_at") + + model_exploitable_alert = cls( + node=node, + node_id=node_id, + node_type=node_type, + process=process, + updated_at=updated_at, + ) + + model_exploitable_alert.additional_properties = d + return model_exploitable_alert + + @property + def additional_keys(self) -> List[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/threatstryker/models/model_export_report.py b/threatstryker/models/model_export_report.py index 334c1eb..a678813 100644 --- a/threatstryker/models/model_export_report.py +++ b/threatstryker/models/model_export_report.py @@ -11,6 +11,11 @@ @_attrs_define class ModelExportReport: """ + Example: + {'status_message': 'status_message', 'to_timestamp': 1, 'updated_at': 5, 'storage_path': 'storage_path', + 'report_id': 'report_id', 'created_at': 0, 'from_timestamp': 6, 'filters': 'filters', 'type': 'type', 'url': + 'url', 'status': 'status'} + Attributes: created_at (Union[Unset, int]): filters (Union[Unset, str]): diff --git a/threatstryker/models/model_fetch_window.py b/threatstryker/models/model_fetch_window.py index c71388f..3ae4eec 100644 --- a/threatstryker/models/model_fetch_window.py +++ b/threatstryker/models/model_fetch_window.py @@ -9,6 +9,9 @@ @_attrs_define class ModelFetchWindow: """ + Example: + {'offset': 0, 'size': 6} + Attributes: offset (int): size (int): diff --git a/threatstryker/models/model_file_alert.py b/threatstryker/models/model_file_alert.py index 623a99e..64802c4 100644 --- a/threatstryker/models/model_file_alert.py +++ b/threatstryker/models/model_file_alert.py @@ -9,6 +9,16 @@ @_attrs_define class ModelFileAlert: """ + Example: + {'container_ip': 'container_ip', 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'masked': True, + 'created_at': 6, 'pid': 1, 'event_type': 'event_type', 'node_type': 'node_type', 'filepath': 'filepath', 'top': + 'top', 'updated_at': 5, 'process_name': 'process_name', 'severity': 'severity', 'summary': 'summary', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'count': 0, 'resource_type': 'resource_type', 'fstat': + 'fstat', 'container_image': 'container_image', 'netstat': 'netstat', 'users': 'users', 'pod_name': 'pod_name', + 'rule_id': 'rule_id', 'container_name': 'container_name', 'techniques': ['techniques', 'techniques'], 'tactics': + ['tactics', 'tactics'], 'proc_status': 'proc_status', 'category': 'category', 'container_id': 'container_id', + 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: category (str): container_id (str): diff --git a/threatstryker/models/model_filesystem_alert_rule.py b/threatstryker/models/model_filesystem_alert_rule.py index 055690b..a9850f0 100644 --- a/threatstryker/models/model_filesystem_alert_rule.py +++ b/threatstryker/models/model_filesystem_alert_rule.py @@ -11,6 +11,10 @@ @_attrs_define class ModelFilesystemAlertRule: """ + Example: + {'rule_id': 'rule_id', 'severity': 'severity', 'summary': 'summary', 'anomaly': 'anomaly', 'techniques': + ['techniques', 'techniques'], 'tactics': ['tactics', 'tactics'], 'category': 'category'} + Attributes: anomaly (Union[Unset, str]): category (Union[Unset, str]): diff --git a/threatstryker/models/model_filters_req.py b/threatstryker/models/model_filters_req.py index 0a43dd7..2558464 100644 --- a/threatstryker/models/model_filters_req.py +++ b/threatstryker/models/model_filters_req.py @@ -15,6 +15,9 @@ @_attrs_define class ModelFiltersReq: """ + Example: + {'having': {'key': ''}, 'filters': ['filters', 'filters']} + Attributes: filters (Union[List[str], None]): having (Union['ModelFiltersReqHavingType0', None, Unset]): diff --git a/threatstryker/models/model_filters_result.py b/threatstryker/models/model_filters_result.py index bf3ad11..b3e7ae2 100644 --- a/threatstryker/models/model_filters_result.py +++ b/threatstryker/models/model_filters_result.py @@ -13,6 +13,9 @@ @_attrs_define class ModelFiltersResult: """ + Example: + {'filters': {'key': ['filters', 'filters']}} + Attributes: filters (Union['ModelFiltersResultFiltersType0', None]): """ diff --git a/threatstryker/models/model_generate_license_request.py b/threatstryker/models/model_generate_license_request.py index 1b27e8d..c33b032 100644 --- a/threatstryker/models/model_generate_license_request.py +++ b/threatstryker/models/model_generate_license_request.py @@ -9,6 +9,10 @@ @_attrs_define class ModelGenerateLicenseRequest: """ + Example: + {'last_name': 'last_name', 'company': 'company', 'resend_email': True, 'first_name': 'first_name', 'email': + 'email'} + Attributes: company (str): email (str): diff --git a/threatstryker/models/model_generate_license_response.py b/threatstryker/models/model_generate_license_response.py index 68d6079..07817c9 100644 --- a/threatstryker/models/model_generate_license_response.py +++ b/threatstryker/models/model_generate_license_response.py @@ -11,6 +11,9 @@ @_attrs_define class ModelGenerateLicenseResponse: """ + Example: + {'success': True, 'generate_license_link': 'generate_license_link', 'message': 'message'} + Attributes: message (str): success (bool): diff --git a/threatstryker/models/model_generate_report_req.py b/threatstryker/models/model_generate_report_req.py index 73f2e8d..7a515f3 100644 --- a/threatstryker/models/model_generate_report_req.py +++ b/threatstryker/models/model_generate_report_req.py @@ -17,12 +17,30 @@ @_attrs_define class ModelGenerateReportReq: """ + Example: + {'to_timestamp': 1, 'options': {'sbom_format': 'syft-json'}, 'from_timestamp': 6, 'zipped_report': True, + 'filters': {'include_dead_nodes': True, 'node_type': ['node_type', 'node_type'], 'most_exploitable_report': + True, 'advanced_report_filters': {'image_name': ['image_name', 'image_name'], 'most_exploitable_scores': [0, 0], + 'container_name': ['container_name', 'container_name'], 'scan_status': ['scan_status', 'scan_status'], + 'kubernetes_cluster_name': ['kubernetes_cluster_name', 'kubernetes_cluster_name'], 'masked': [True, True], + 'host_name': ['host_name', 'host_name'], 'node_id': ['node_id', 'node_id'], 'pod_name': ['pod_name', + 'pod_name']}, 'include_dormant_exploitable': True, 'scan_type': 'vulnerability', 'scan_id': 'scan_id', + 'severity_or_check_type': ['severity_or_check_type', 'severity_or_check_type']}, 'report_type': 'pdf'} + Attributes: report_type (ModelGenerateReportReqReportType): - filters (Union[Unset, UtilsReportFilters]): + filters (Union[Unset, UtilsReportFilters]): Example: {'include_dead_nodes': True, 'node_type': ['node_type', + 'node_type'], 'most_exploitable_report': True, 'advanced_report_filters': {'image_name': ['image_name', + 'image_name'], 'most_exploitable_scores': [0, 0], 'container_name': ['container_name', 'container_name'], + 'scan_status': ['scan_status', 'scan_status'], 'kubernetes_cluster_name': ['kubernetes_cluster_name', + 'kubernetes_cluster_name'], 'masked': [True, True], 'host_name': ['host_name', 'host_name'], 'node_id': + ['node_id', 'node_id'], 'pod_name': ['pod_name', 'pod_name']}, 'include_dormant_exploitable': True, 'scan_type': + 'vulnerability', 'scan_id': 'scan_id', 'severity_or_check_type': ['severity_or_check_type', + 'severity_or_check_type']}. from_timestamp (Union[Unset, int]): - options (Union[Unset, UtilsReportOptions]): + options (Union[Unset, UtilsReportOptions]): Example: {'sbom_format': 'syft-json'}. to_timestamp (Union[Unset, int]): + zipped_report (Union[Unset, bool]): """ report_type: ModelGenerateReportReqReportType @@ -30,6 +48,7 @@ class ModelGenerateReportReq: from_timestamp: Union[Unset, int] = UNSET options: Union[Unset, "UtilsReportOptions"] = UNSET to_timestamp: Union[Unset, int] = UNSET + zipped_report: Union[Unset, bool] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: @@ -47,6 +66,8 @@ def to_dict(self) -> Dict[str, Any]: to_timestamp = self.to_timestamp + zipped_report = self.zipped_report + field_dict: Dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update( @@ -62,6 +83,8 @@ def to_dict(self) -> Dict[str, Any]: field_dict["options"] = options if to_timestamp is not UNSET: field_dict["to_timestamp"] = to_timestamp + if zipped_report is not UNSET: + field_dict["zipped_report"] = zipped_report return field_dict @@ -91,12 +114,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: to_timestamp = d.pop("to_timestamp", UNSET) + zipped_report = d.pop("zipped_report", UNSET) + model_generate_report_req = cls( report_type=report_type, filters=filters, from_timestamp=from_timestamp, options=options, to_timestamp=to_timestamp, + zipped_report=zipped_report, ) model_generate_report_req.additional_properties = d diff --git a/threatstryker/models/model_generate_report_resp.py b/threatstryker/models/model_generate_report_resp.py index abdccf2..b9be5f5 100644 --- a/threatstryker/models/model_generate_report_resp.py +++ b/threatstryker/models/model_generate_report_resp.py @@ -11,6 +11,9 @@ @_attrs_define class ModelGenerateReportResp: """ + Example: + {'report_id': 'report_id'} + Attributes: report_id (Union[Unset, str]): """ diff --git a/threatstryker/models/model_generative_ai_integration_cloud_posture_request.py b/threatstryker/models/model_generative_ai_integration_cloud_posture_request.py index a9cb331..3825f16 100644 --- a/threatstryker/models/model_generative_ai_integration_cloud_posture_request.py +++ b/threatstryker/models/model_generative_ai_integration_cloud_posture_request.py @@ -17,6 +17,11 @@ @_attrs_define class ModelGenerativeAiIntegrationCloudPostureRequest: """ + Example: + {'integration_id': 0, 'remediation_format': 'all', 'service': 'service', 'cloud_provider': 'cloud_provider', + 'query_type': 'remediation', 'title': 'title', 'compliance_check_type': 'compliance_check_type', 'group': + 'group'} + Attributes: cloud_provider (str): compliance_check_type (str): diff --git a/threatstryker/models/model_generative_ai_integration_kubernetes_posture_request.py b/threatstryker/models/model_generative_ai_integration_kubernetes_posture_request.py index a5b309f..2b81e43 100644 --- a/threatstryker/models/model_generative_ai_integration_kubernetes_posture_request.py +++ b/threatstryker/models/model_generative_ai_integration_kubernetes_posture_request.py @@ -17,6 +17,10 @@ @_attrs_define class ModelGenerativeAiIntegrationKubernetesPostureRequest: """ + Example: + {'integration_id': 0, 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type'} + Attributes: compliance_check_type (str): description (str): diff --git a/threatstryker/models/model_generative_ai_integration_linux_posture_request.py b/threatstryker/models/model_generative_ai_integration_linux_posture_request.py index fa1a7f1..77efbb1 100644 --- a/threatstryker/models/model_generative_ai_integration_linux_posture_request.py +++ b/threatstryker/models/model_generative_ai_integration_linux_posture_request.py @@ -17,6 +17,10 @@ @_attrs_define class ModelGenerativeAiIntegrationLinuxPostureRequest: """ + Example: + {'integration_id': 0, 'remediation_format': 'all', 'description': 'description', 'query_type': 'remediation', + 'compliance_check_type': 'compliance_check_type', 'test_number': 'test_number'} + Attributes: compliance_check_type (str): description (str): diff --git a/threatstryker/models/model_generative_ai_integration_list_response.py b/threatstryker/models/model_generative_ai_integration_list_response.py index 8504110..3c0b918 100644 --- a/threatstryker/models/model_generative_ai_integration_list_response.py +++ b/threatstryker/models/model_generative_ai_integration_list_response.py @@ -11,6 +11,10 @@ @_attrs_define class ModelGenerativeAiIntegrationListResponse: """ + Example: + {'default_integration': True, 'id': 0, 'label': 'label', 'integration_type': 'integration_type', + 'last_error_msg': 'last_error_msg'} + Attributes: default_integration (Union[Unset, bool]): id (Union[Unset, int]): diff --git a/threatstryker/models/model_generative_ai_integration_malware_request.py b/threatstryker/models/model_generative_ai_integration_malware_request.py index c45878f..6c9d77c 100644 --- a/threatstryker/models/model_generative_ai_integration_malware_request.py +++ b/threatstryker/models/model_generative_ai_integration_malware_request.py @@ -14,6 +14,9 @@ @_attrs_define class ModelGenerativeAiIntegrationMalwareRequest: """ + Example: + {'integration_id': 0, 'rule_name': 'rule_name', 'query_type': 'remediation', 'info': 'info'} + Attributes: info (str): query_type (ModelGenerativeAiIntegrationMalwareRequestQueryType): diff --git a/threatstryker/models/model_generative_ai_integration_runtime_incident_request.py b/threatstryker/models/model_generative_ai_integration_runtime_incident_request.py index d9776bc..dcc455b 100644 --- a/threatstryker/models/model_generative_ai_integration_runtime_incident_request.py +++ b/threatstryker/models/model_generative_ai_integration_runtime_incident_request.py @@ -14,6 +14,10 @@ @_attrs_define class ModelGenerativeAiIntegrationRuntimeIncidentRequest: """ + Example: + {'summary': 'summary', 'event_type': 'event_type', 'integration_id': 0, 'query_type': 'remediation', 'category': + 'category'} + Attributes: category (str): event_type (str): diff --git a/threatstryker/models/model_generative_ai_integration_secret_request.py b/threatstryker/models/model_generative_ai_integration_secret_request.py index 9d2c321..de70713 100644 --- a/threatstryker/models/model_generative_ai_integration_secret_request.py +++ b/threatstryker/models/model_generative_ai_integration_secret_request.py @@ -14,6 +14,9 @@ @_attrs_define class ModelGenerativeAiIntegrationSecretRequest: """ + Example: + {'integration_id': 0, 'name': 'name', 'query_type': 'remediation'} + Attributes: name (str): query_type (ModelGenerativeAiIntegrationSecretRequestQueryType): diff --git a/threatstryker/models/model_generative_ai_integration_vulnerability_request.py b/threatstryker/models/model_generative_ai_integration_vulnerability_request.py index 2bda947..c3fac84 100644 --- a/threatstryker/models/model_generative_ai_integration_vulnerability_request.py +++ b/threatstryker/models/model_generative_ai_integration_vulnerability_request.py @@ -17,6 +17,10 @@ @_attrs_define class ModelGenerativeAiIntegrationVulnerabilityRequest: """ + Example: + {'integration_id': 0, 'remediation_format': 'all', 'cve_id': 'cve_id', 'cve_type': 'cve_type', 'query_type': + 'remediation', 'cve_caused_by_package': 'cve_caused_by_package'} + Attributes: cve_caused_by_package (str): cve_id (str): diff --git a/threatstryker/models/model_get_agent_binary_download_url_response.py b/threatstryker/models/model_get_agent_binary_download_url_response.py index 292052d..1c9837e 100644 --- a/threatstryker/models/model_get_agent_binary_download_url_response.py +++ b/threatstryker/models/model_get_agent_binary_download_url_response.py @@ -11,6 +11,11 @@ @_attrs_define class ModelGetAgentBinaryDownloadURLResponse: """ + Example: + {'agent_binary_arm64_download_url': 'agent_binary_arm64_download_url', 'agent_binary_amd64_download_url': + 'agent_binary_amd64_download_url', 'start_agent_script_download_url': 'start_agent_script_download_url', + 'uninstall_agent_script_download_url': 'uninstall_agent_script_download_url'} + Attributes: agent_binary_amd64_download_url (Union[Unset, str]): agent_binary_arm64_download_url (Union[Unset, str]): diff --git a/threatstryker/models/model_get_agent_config_req.py b/threatstryker/models/model_get_agent_config_req.py index 0927ed8..1eb8cfa 100644 --- a/threatstryker/models/model_get_agent_config_req.py +++ b/threatstryker/models/model_get_agent_config_req.py @@ -9,6 +9,9 @@ @_attrs_define class ModelGetAgentConfigReq: """ + Example: + {'config_ids': ['config_ids', 'config_ids']} + Attributes: config_ids (Union[List[str], None]): """ diff --git a/threatstryker/models/model_get_attached_nodes_resp.py b/threatstryker/models/model_get_attached_nodes_resp.py index 8b35ac1..e410fef 100644 --- a/threatstryker/models/model_get_attached_nodes_resp.py +++ b/threatstryker/models/model_get_attached_nodes_resp.py @@ -11,6 +11,9 @@ @_attrs_define class ModelGetAttachedNodesResp: """ + Example: + {'node_ids': ['node_ids', 'node_ids']} + Attributes: node_ids (Union[List[str], None, Unset]): """ diff --git a/threatstryker/models/model_get_audit_logs_request.py b/threatstryker/models/model_get_audit_logs_request.py index 883f5ec..17e91fc 100644 --- a/threatstryker/models/model_get_audit_logs_request.py +++ b/threatstryker/models/model_get_audit_logs_request.py @@ -13,8 +13,11 @@ @_attrs_define class ModelGetAuditLogsRequest: """ + Example: + {'window': {'offset': 0, 'size': 6}} + Attributes: - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ window: "ModelFetchWindow" diff --git a/threatstryker/models/model_graph_result.py b/threatstryker/models/model_graph_result.py index c607f73..ad6d69c 100644 --- a/threatstryker/models/model_graph_result.py +++ b/threatstryker/models/model_graph_result.py @@ -4,8 +4,8 @@ from attrs import field as _attrs_field if TYPE_CHECKING: - from ..models.detailed_node_summaries import DetailedNodeSummaries - from ..models.detailed_topology_connection_summaries import DetailedTopologyConnectionSummaries + from ..models.model_graph_result_edges import ModelGraphResultEdges + from ..models.model_graph_result_nodes import ModelGraphResultNodes T = TypeVar("T", bound="ModelGraphResult") @@ -14,13 +14,46 @@ @_attrs_define class ModelGraphResult: """ + Example: + {'nodes': {'key': {'immediate_parent_id': 'immediate_parent_id', 'metadata': {'docker_image_name_with_tag': + 'docker_image_name_with_tag', 'kubernetes_ip': 'kubernetes_ip', 'public_ip': ['public_ip', 'public_ip'], + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 6.027456183070403, 'pid': 7, 'kubernetes_created': 'kubernetes_created', 'kubernetes_namespace': + 'kubernetes_namespace', 'cmdline': 'cmdline', 'node_type': 'node_type', 'interface_ip_map': 'interface_ip_map', + 'pseudo': True, 'docker_container_name': 'docker_container_name', 'docker_container_created': + 'docker_container_created', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'docker_container_networks': + 'docker_container_networks', 'kubernetes_ports': ['kubernetes_ports', 'kubernetes_ports'], 'version': 'version', + 'pod_name': 'pod_name', 'ppid': 9, 'tags': ['tags', 'tags'], 'docker_container_ports': 'docker_container_ports', + 'kubernetes_is_in_host_network': True, 'instance_id': 'instance_id', 'kernel_id': 'kernel_id', 'active_cves': + ['active_cves', 'active_cves'], 'copy_of': 'copy_of', 'open_files': ['open_files', 'open_files'], 'docker_env': + 'docker_env', 'connection_count': 0, 'docker_image_size': 'docker_image_size', 'short_name': 'short_name', + 'cpu_usage': 1.4658129805029452, 'pod_id': 'pod_id', 'docker_label': 'docker_label', 'instance_type': + 'instance_type', 'docker_image_name': 'docker_image_name', 'user_defined_tags': ['user_defined_tags', + 'user_defined_tags'], 'local_networks': ['local_networks', 'local_networks'], 'cloud_region': 'cloud_region', + 'kubernetes_state': 'kubernetes_state', 'interface_names': ['interface_names', 'interface_names'], + 'memory_usage': 5, 'open_files_count': 2, 'kubernetes_public_ip': 'kubernetes_public_ip', 'private_ip': + ['private_ip', 'private_ip'], 'docker_container_network_mode': 'docker_container_network_mode', + 'cloud_account_id': 'cloud_account_id', 'kubernetes_type': 'kubernetes_type', 'active_secrets': + ['active_secrets', 'active_secrets'], 'resource_group': 'resource_group', 'docker_image_tag': + 'docker_image_tag', 'active_malwares': ['active_malwares', 'active_malwares'], 'kubernetes_labels': + 'kubernetes_labels', 'docker_container_ips': ['docker_container_ips', 'docker_container_ips'], + 'docker_image_id': 'docker_image_id', 'timestamp': 'timestamp', 'interface_ips': ['interface_ips', + 'interface_ips'], 'is_deepfence_system': True, 'availability_zone': 'availability_zone', 'is_console_vm': True, + 'os': 'os', 'local_cidr': ['local_cidr', 'local_cidr'], 'node_name': 'node_name', 'threads': 3, + 'cloud_provider': 'cloud_provider', 'docker_container_command': 'docker_container_command', 'agent_running': + True, 'uptime': 2, 'memory_max': 5, 'docker_image_created_at': 'docker_image_created_at', 'kernel_version': + 'kernel_version', 'docker_container_state_human': 'docker_container_state_human', 'docker_image_virtual_size': + 'docker_image_virtual_size', 'kubernetes_ingress_ip': ['kubernetes_ingress_ip', 'kubernetes_ingress_ip'], + 'host_name': 'host_name', 'node_id': 'node_id'}, 'adjacency': ['adjacency', 'adjacency'], 'ids': ['ids', 'ids'], + 'id': 'id', 'label': 'label', 'type': 'type'}}, 'edges': {'key': {'source': 'source', 'target': 'target'}}} + Attributes: - edges (DetailedTopologyConnectionSummaries): - nodes (DetailedNodeSummaries): + edges (ModelGraphResultEdges): + nodes (ModelGraphResultNodes): """ - edges: "DetailedTopologyConnectionSummaries" - nodes: "DetailedNodeSummaries" + edges: "ModelGraphResultEdges" + nodes: "ModelGraphResultNodes" additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: @@ -41,13 +74,13 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.detailed_node_summaries import DetailedNodeSummaries - from ..models.detailed_topology_connection_summaries import DetailedTopologyConnectionSummaries + from ..models.model_graph_result_edges import ModelGraphResultEdges + from ..models.model_graph_result_nodes import ModelGraphResultNodes d = src_dict.copy() - edges = DetailedTopologyConnectionSummaries.from_dict(d.pop("edges")) + edges = ModelGraphResultEdges.from_dict(d.pop("edges")) - nodes = DetailedNodeSummaries.from_dict(d.pop("nodes")) + nodes = ModelGraphResultNodes.from_dict(d.pop("nodes")) model_graph_result = cls( edges=edges, diff --git a/threatstryker/models/model_graph_result_edges.py b/threatstryker/models/model_graph_result_edges.py new file mode 100644 index 0000000..d42d835 --- /dev/null +++ b/threatstryker/models/model_graph_result_edges.py @@ -0,0 +1,56 @@ +from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +if TYPE_CHECKING: + from ..models.detailed_connection_summary import DetailedConnectionSummary + + +T = TypeVar("T", bound="ModelGraphResultEdges") + + +@_attrs_define +class ModelGraphResultEdges: + """ """ + + additional_properties: Dict[str, "DetailedConnectionSummary"] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> Dict[str, Any]: + field_dict: Dict[str, Any] = {} + for prop_name, prop in self.additional_properties.items(): + field_dict[prop_name] = prop.to_dict() + + return field_dict + + @classmethod + def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: + from ..models.detailed_connection_summary import DetailedConnectionSummary + + d = src_dict.copy() + model_graph_result_edges = cls() + + additional_properties = {} + for prop_name, prop_dict in d.items(): + additional_property = DetailedConnectionSummary.from_dict(prop_dict) + + additional_properties[prop_name] = additional_property + + model_graph_result_edges.additional_properties = additional_properties + return model_graph_result_edges + + @property + def additional_keys(self) -> List[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> "DetailedConnectionSummary": + return self.additional_properties[key] + + def __setitem__(self, key: str, value: "DetailedConnectionSummary") -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/threatstryker/models/model_graph_result_nodes.py b/threatstryker/models/model_graph_result_nodes.py new file mode 100644 index 0000000..db61609 --- /dev/null +++ b/threatstryker/models/model_graph_result_nodes.py @@ -0,0 +1,56 @@ +from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +if TYPE_CHECKING: + from ..models.detailed_node_summary import DetailedNodeSummary + + +T = TypeVar("T", bound="ModelGraphResultNodes") + + +@_attrs_define +class ModelGraphResultNodes: + """ """ + + additional_properties: Dict[str, "DetailedNodeSummary"] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> Dict[str, Any]: + field_dict: Dict[str, Any] = {} + for prop_name, prop in self.additional_properties.items(): + field_dict[prop_name] = prop.to_dict() + + return field_dict + + @classmethod + def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: + from ..models.detailed_node_summary import DetailedNodeSummary + + d = src_dict.copy() + model_graph_result_nodes = cls() + + additional_properties = {} + for prop_name, prop_dict in d.items(): + additional_property = DetailedNodeSummary.from_dict(prop_dict) + + additional_properties[prop_name] = additional_property + + model_graph_result_nodes.additional_properties = additional_properties + return model_graph_result_nodes + + @property + def additional_keys(self) -> List[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> "DetailedNodeSummary": + return self.additional_properties[key] + + def __setitem__(self, key: str, value: "DetailedNodeSummary") -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/threatstryker/models/model_host.py b/threatstryker/models/model_host.py index ece1368..1f045bc 100644 --- a/threatstryker/models/model_host.py +++ b/threatstryker/models/model_host.py @@ -23,6 +23,307 @@ @_attrs_define class ModelHost: """ + Example: + {'public_ip': ['', ''], 'container_images': [{'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}, {'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}], 'cpu_max': 5.637376656633329, 'alerts_counts': {'key': 6}, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'config_names': {'policy_config_name': 'policy_config_name', + 'filesystem_config_name': 'filesystem_config_name', 'process_config_name': 'process_config_name', + 'network_config_name': 'network_config_name'}, 'network_tracer_status': 'network_tracer_status', + 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', 'api_endpoints': [{'host_ip': 'host_ip', + 'cloud_region': 'cloud_region', 'method': 'method', 'created_at': 0, 'cloud_provider': 'cloud_provider', + 'schema_info': 'schema_info', 'path': 'path', 'cloud_type': 'cloud_type', 'source_hosts': ['source_hosts', + 'source_hosts'], 'updated_at': 1, 'port': 0, 'host': 'host', 'direction': 'ingress'}, {'host_ip': 'host_ip', + 'cloud_region': 'cloud_region', 'method': 'method', 'created_at': 0, 'cloud_provider': 'cloud_provider', + 'schema_info': 'schema_info', 'path': 'path', 'cloud_type': 'cloud_type', 'source_hosts': ['source_hosts', + 'source_hosts'], 'updated_at': 1, 'port': 0, 'host': 'host', 'direction': 'ingress'}], 'plugin_status': + {'network_tracer_status': {'description': 'description', 'status': 'status'}, 'network_filter_status': + {'description': 'description', 'status': 'status'}, 'cloud_network_tracer_status': {'description': + 'description', 'status': 'status'}, 'filesystem_tracer_status': {'description': 'description', 'status': + 'status'}, 'process_tracer_status': {'description': 'description', 'status': 'status'}, + 'agent_installer_tracer_status': {'description': 'description', 'status': 'status'}}, + 'agent_installer_tracer_status': 'agent_installer_tracer_status', 'malware_latest_scan_id': + 'malware_latest_scan_id', 'version': 'version', 'instance_id': 'instance_id', 'kernel_id': 'kernel_id', + 'compliance_latest_scan_id': 'compliance_latest_scan_id', 'containers': [{'vulnerabilities_count': 6, + 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': + 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': + 'secret_latest_scan_id', 'docker_container_network_mode': 'docker_container_network_mode', + 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', + 'malware_scan_status': 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, + 'is_deepfence_system': True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': + 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, + 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', + 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': 'short_name', + 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', + 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': + ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], + 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': + 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': 'secret_scan_status', 'docker_container_name': + 'docker_container_name', 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': + 'malware_latest_scan_id', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': + 'node_name', 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'cpu_usage': 2.3021358869347655, 'instance_type': 'instance_type', 'local_networks': ['', ''], + 'vulnerabilities_count': 4, 'secrets_count': 7, 'cloud_region': 'cloud_region', + 'network_tracer_status_updated_at': 1, 'network_filter_status': 'network_filter_status', 'memory_usage': 1, + 'private_ip': ['', ''], 'exploitable_vulnerabilities_count': 3, 'cloud_account_id': 'cloud_account_id', + 'resource_group': 'resource_group', 'malware_scan_status': 'malware_scan_status', 'exploitable_malwares_count': + 7, 'agent_installer_tracer_status_updated_at': 0, 'filesystem_tracer_status_updated_at': 2, + 'filesystem_tracer_status': 'filesystem_tracer_status', 'inbound_connections': [{'count': 4, 'node_name': + 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}, {'count': 4, 'node_name': 'node_name', 'ips': ['', ''], + 'node_id': 'node_id'}], 'availability_zone': 'availability_zone', 'is_console_vm': True, 'processes': + [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'compliance_scan_status': 'compliance_scan_status', + 'outbound_connections': [{'count': 4, 'node_name': 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}, + {'count': 4, 'node_name': 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}], 'os': 'os', 'local_cidr': ['', + ''], 'malwares_count': 7, 'node_name': 'node_name', 'cloud_provider': 'cloud_provider', 'process_tracer_status': + 'process_tracer_status', 'agent_running': True, 'cloud_warn_alarm_count': 1, 'exploitable_secrets_count': 9, + 'process_tracer_status_updated_at': 6, 'uptime': 1, 'memory_max': 1, 'account_id': 'account_id', + 'compliances_count': 5, 'kernel_version': 'kernel_version', 'warn_alarm_count': 5, 'pods': + [{'is_deepfence_system': True, 'kubernetes_ip': 'kubernetes_ip', 'processes': [{'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': + 'secret_scan_status', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'kubernetes_state': 'kubernetes_state', 'node_name': 'node_name', + 'kubernetes_created': 'kubernetes_created', 'pod_name': 'pod_name', 'kubernetes_namespace': + 'kubernetes_namespace', 'kubernetes_is_in_host_network': True, 'malware_scan_status': 'malware_scan_status', + 'kubernetes_labels': {'key': ''}, 'containers': [{'vulnerabilities_count': 6, 'secrets_count': 1, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': 'secret_latest_scan_id', + 'docker_container_network_mode': 'docker_container_network_mode', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': + 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': + True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, + 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', + 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': + ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': + 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, + 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'is_deepfence_system': True, 'kubernetes_ip': 'kubernetes_ip', 'processes': [{'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': + 'secret_scan_status', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'kubernetes_state': 'kubernetes_state', 'node_name': 'node_name', + 'kubernetes_created': 'kubernetes_created', 'pod_name': 'pod_name', 'kubernetes_namespace': + 'kubernetes_namespace', 'kubernetes_is_in_host_network': True, 'malware_scan_status': 'malware_scan_status', + 'kubernetes_labels': {'key': ''}, 'containers': [{'vulnerabilities_count': 6, 'secrets_count': 1, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': 'secret_latest_scan_id', + 'docker_container_network_mode': 'docker_container_network_mode', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': + 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': + True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, + 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', + 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': + ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': + 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, + 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: agent_installer_tracer_status (str): agent_installer_tracer_status_updated_at (int): @@ -37,7 +338,9 @@ class ModelHost: compliance_latest_scan_id (str): compliance_scan_status (str): compliances_count (int): - config_names (ModelAgentPluginConfigNames): + config_names (ModelAgentPluginConfigNames): Example: {'policy_config_name': 'policy_config_name', + 'filesystem_config_name': 'filesystem_config_name', 'process_config_name': 'process_config_name', + 'network_config_name': 'network_config_name'}. container_images (Union[List['ModelContainerImage'], None]): containers (Union[List['ModelContainer'], None]): cpu_max (float): @@ -68,7 +371,11 @@ class ModelHost: node_name (str): os (str): outbound_connections (Union[List['ModelConnection'], None]): - plugin_status (ModelAgentPluginsStatus): + plugin_status (ModelAgentPluginsStatus): Example: {'network_tracer_status': {'description': 'description', + 'status': 'status'}, 'network_filter_status': {'description': 'description', 'status': 'status'}, + 'cloud_network_tracer_status': {'description': 'description', 'status': 'status'}, 'filesystem_tracer_status': + {'description': 'description', 'status': 'status'}, 'process_tracer_status': {'description': 'description', + 'status': 'status'}, 'agent_installer_tracer_status': {'description': 'description', 'status': 'status'}}. pods (Union[List['ModelPod'], None]): private_ip (Union[List[Any], None]): process_tracer_status (str): diff --git a/threatstryker/models/model_image_stub.py b/threatstryker/models/model_image_stub.py index ad4f853..63c60af 100644 --- a/threatstryker/models/model_image_stub.py +++ b/threatstryker/models/model_image_stub.py @@ -11,6 +11,9 @@ @_attrs_define class ModelImageStub: """ + Example: + {'images': 0, 'name': 'name', 'id': 'id', 'tags': ['tags', 'tags']} + Attributes: id (Union[Unset, str]): images (Union[Unset, int]): diff --git a/threatstryker/models/model_init_agent_req.py b/threatstryker/models/model_init_agent_req.py index 9d58b45..4a9fa94 100644 --- a/threatstryker/models/model_init_agent_req.py +++ b/threatstryker/models/model_init_agent_req.py @@ -9,6 +9,9 @@ @_attrs_define class ModelInitAgentReq: """ + Example: + {'node_type': 'node_type', 'available_workload': 0, 'version': 'version', 'node_id': 'node_id'} + Attributes: available_workload (int): node_id (str): diff --git a/threatstryker/models/model_integration_add_req.py b/threatstryker/models/model_integration_add_req.py index f398fe0..161ecca 100644 --- a/threatstryker/models/model_integration_add_req.py +++ b/threatstryker/models/model_integration_add_req.py @@ -16,11 +16,31 @@ @_attrs_define class ModelIntegrationAddReq: """ + Example: + {'notification_type': 'notification_type', 'send_summary': True, 'filters': {'fields_filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, + 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, + 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'cloud_provider': 'cloud_provider', + 'container_names': ['container_names', 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}, 'integration_type': 'integration_type', 'config': + {'key': ''}} + Attributes: integration_type (str): notification_type (str): config (Union['ModelIntegrationAddReqConfigType0', None, Unset]): - filters (Union[Unset, ModelIntegrationFilters]): + filters (Union[Unset, ModelIntegrationFilters]): Example: {'fields_filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': + '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': + {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': + {'filter_in': {'key': ['', '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]}. send_summary (Union[Unset, bool]): """ diff --git a/threatstryker/models/model_integration_filters.py b/threatstryker/models/model_integration_filters.py index 246aaca..04c85b1 100644 --- a/threatstryker/models/model_integration_filters.py +++ b/threatstryker/models/model_integration_filters.py @@ -16,13 +16,31 @@ @_attrs_define class ModelIntegrationFilters: """ + Example: + {'fields_filters': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': + {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'cloud_provider': + 'cloud_provider', 'container_names': ['container_names', 'container_names'], 'node_ids': [{'node_type': 'image', + 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]} + Attributes: node_ids (Union[List['ModelNodeIdentifier'], None]): + cloud_provider (Union[Unset, str]): container_names (Union[List[str], None, Unset]): - fields_filters (Union[Unset, ReportersFieldsFilters]): + fields_filters (Union[Unset, ReportersFieldsFilters]): Example: {'compare_filter': [{'greater_than': True, + 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': + {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}. """ node_ids: Union[List["ModelNodeIdentifier"], None] + cloud_provider: Union[Unset, str] = UNSET container_names: Union[List[str], None, Unset] = UNSET fields_filters: Union[Unset, "ReportersFieldsFilters"] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -38,6 +56,8 @@ def to_dict(self) -> Dict[str, Any]: else: node_ids = self.node_ids + cloud_provider = self.cloud_provider + container_names: Union[List[str], None, Unset] if isinstance(self.container_names, Unset): container_names = UNSET @@ -58,6 +78,8 @@ def to_dict(self) -> Dict[str, Any]: "node_ids": node_ids, } ) + if cloud_provider is not UNSET: + field_dict["cloud_provider"] = cloud_provider if container_names is not UNSET: field_dict["container_names"] = container_names if fields_filters is not UNSET: @@ -92,6 +114,8 @@ def _parse_node_ids(data: object) -> Union[List["ModelNodeIdentifier"], None]: node_ids = _parse_node_ids(d.pop("node_ids")) + cloud_provider = d.pop("cloud_provider", UNSET) + def _parse_container_names(data: object) -> Union[List[str], None, Unset]: if data is None: return data @@ -118,6 +142,7 @@ def _parse_container_names(data: object) -> Union[List[str], None, Unset]: model_integration_filters = cls( node_ids=node_ids, + cloud_provider=cloud_provider, container_names=container_names, fields_filters=fields_filters, ) diff --git a/threatstryker/models/model_integration_list_resp.py b/threatstryker/models/model_integration_list_resp.py index 768ab8f..3715390 100644 --- a/threatstryker/models/model_integration_list_resp.py +++ b/threatstryker/models/model_integration_list_resp.py @@ -16,9 +16,29 @@ @_attrs_define class ModelIntegrationListResp: """ + Example: + {'notification_type': 'notification_type', 'filters': {'fields_filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': + {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]}, 'id': 0, 'integration_type': 'integration_type', 'config': {'key': ''}, 'last_error_msg': + 'last_error_msg'} + Attributes: config (Union['ModelIntegrationListRespConfigType0', None, Unset]): - filters (Union[Unset, ModelIntegrationFilters]): + filters (Union[Unset, ModelIntegrationFilters]): Example: {'fields_filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': + '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': + {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': + {'filter_in': {'key': ['', '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]}. id (Union[Unset, int]): integration_type (Union[Unset, str]): last_error_msg (Union[Unset, str]): diff --git a/threatstryker/models/model_integration_update_req.py b/threatstryker/models/model_integration_update_req.py index 1f8bece..1db8af8 100644 --- a/threatstryker/models/model_integration_update_req.py +++ b/threatstryker/models/model_integration_update_req.py @@ -16,9 +16,29 @@ @_attrs_define class ModelIntegrationUpdateReq: """ + Example: + {'notification_type': 'notification_type', 'send_summary': True, 'filters': {'fields_filters': + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, + 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, + 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'cloud_provider': 'cloud_provider', + 'container_names': ['container_names', 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': + 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}]}, 'id': 0, 'integration_type': 'integration_type', + 'config': {'key': ''}} + Attributes: config (Union['ModelIntegrationUpdateReqConfigType0', None, Unset]): - filters (Union[Unset, ModelIntegrationFilters]): + filters (Union[Unset, ModelIntegrationFilters]): Example: {'fields_filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': + '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': + {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': + {'filter_in': {'key': ['', '']}}}, 'cloud_provider': 'cloud_provider', 'container_names': ['container_names', + 'container_names'], 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]}. id (Union[Unset, int]): integration_type (Union[Unset, str]): notification_type (Union[Unset, str]): diff --git a/threatstryker/models/model_invite_user_request.py b/threatstryker/models/model_invite_user_request.py index 788611c..871807f 100644 --- a/threatstryker/models/model_invite_user_request.py +++ b/threatstryker/models/model_invite_user_request.py @@ -12,6 +12,9 @@ @_attrs_define class ModelInviteUserRequest: """ + Example: + {'role': 'admin', 'action': 'send-invite-email', 'email': 'email'} + Attributes: action (ModelInviteUserRequestAction): email (str): diff --git a/threatstryker/models/model_invite_user_response.py b/threatstryker/models/model_invite_user_response.py index e661f5a..765e869 100644 --- a/threatstryker/models/model_invite_user_response.py +++ b/threatstryker/models/model_invite_user_response.py @@ -11,6 +11,9 @@ @_attrs_define class ModelInviteUserResponse: """ + Example: + {'invite_expiry_hours': 0, 'invite_url': 'invite_url', 'message': 'message'} + Attributes: invite_expiry_hours (Union[Unset, int]): invite_url (Union[Unset, str]): diff --git a/threatstryker/models/model_kubernetes_cluster.py b/threatstryker/models/model_kubernetes_cluster.py index 5e9afbb..7973142 100644 --- a/threatstryker/models/model_kubernetes_cluster.py +++ b/threatstryker/models/model_kubernetes_cluster.py @@ -13,6 +13,607 @@ @_attrs_define class ModelKubernetesCluster: """ + Example: + {'hosts': [{'public_ip': ['', ''], 'container_images': [{'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}, {'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}], 'cpu_max': 5.637376656633329, 'alerts_counts': {'key': 6}, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'config_names': {'policy_config_name': 'policy_config_name', + 'filesystem_config_name': 'filesystem_config_name', 'process_config_name': 'process_config_name', + 'network_config_name': 'network_config_name'}, 'network_tracer_status': 'network_tracer_status', + 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', 'api_endpoints': [{'host_ip': 'host_ip', + 'cloud_region': 'cloud_region', 'method': 'method', 'created_at': 0, 'cloud_provider': 'cloud_provider', + 'schema_info': 'schema_info', 'path': 'path', 'cloud_type': 'cloud_type', 'source_hosts': ['source_hosts', + 'source_hosts'], 'updated_at': 1, 'port': 0, 'host': 'host', 'direction': 'ingress'}, {'host_ip': 'host_ip', + 'cloud_region': 'cloud_region', 'method': 'method', 'created_at': 0, 'cloud_provider': 'cloud_provider', + 'schema_info': 'schema_info', 'path': 'path', 'cloud_type': 'cloud_type', 'source_hosts': ['source_hosts', + 'source_hosts'], 'updated_at': 1, 'port': 0, 'host': 'host', 'direction': 'ingress'}], 'plugin_status': + {'network_tracer_status': {'description': 'description', 'status': 'status'}, 'network_filter_status': + {'description': 'description', 'status': 'status'}, 'cloud_network_tracer_status': {'description': + 'description', 'status': 'status'}, 'filesystem_tracer_status': {'description': 'description', 'status': + 'status'}, 'process_tracer_status': {'description': 'description', 'status': 'status'}, + 'agent_installer_tracer_status': {'description': 'description', 'status': 'status'}}, + 'agent_installer_tracer_status': 'agent_installer_tracer_status', 'malware_latest_scan_id': + 'malware_latest_scan_id', 'version': 'version', 'instance_id': 'instance_id', 'kernel_id': 'kernel_id', + 'compliance_latest_scan_id': 'compliance_latest_scan_id', 'containers': [{'vulnerabilities_count': 6, + 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': + 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': + 'secret_latest_scan_id', 'docker_container_network_mode': 'docker_container_network_mode', + 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', + 'malware_scan_status': 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, + 'is_deepfence_system': True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': + 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, + 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', + 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': 'short_name', + 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', + 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': + ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], + 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': + 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': 'secret_scan_status', 'docker_container_name': + 'docker_container_name', 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': + 'malware_latest_scan_id', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': + 'node_name', 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'cpu_usage': 2.3021358869347655, 'instance_type': 'instance_type', 'local_networks': ['', ''], + 'vulnerabilities_count': 4, 'secrets_count': 7, 'cloud_region': 'cloud_region', + 'network_tracer_status_updated_at': 1, 'network_filter_status': 'network_filter_status', 'memory_usage': 1, + 'private_ip': ['', ''], 'exploitable_vulnerabilities_count': 3, 'cloud_account_id': 'cloud_account_id', + 'resource_group': 'resource_group', 'malware_scan_status': 'malware_scan_status', 'exploitable_malwares_count': + 7, 'agent_installer_tracer_status_updated_at': 0, 'filesystem_tracer_status_updated_at': 2, + 'filesystem_tracer_status': 'filesystem_tracer_status', 'inbound_connections': [{'count': 4, 'node_name': + 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}, {'count': 4, 'node_name': 'node_name', 'ips': ['', ''], + 'node_id': 'node_id'}], 'availability_zone': 'availability_zone', 'is_console_vm': True, 'processes': + [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'compliance_scan_status': 'compliance_scan_status', + 'outbound_connections': [{'count': 4, 'node_name': 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}, + {'count': 4, 'node_name': 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}], 'os': 'os', 'local_cidr': ['', + ''], 'malwares_count': 7, 'node_name': 'node_name', 'cloud_provider': 'cloud_provider', 'process_tracer_status': + 'process_tracer_status', 'agent_running': True, 'cloud_warn_alarm_count': 1, 'exploitable_secrets_count': 9, + 'process_tracer_status_updated_at': 6, 'uptime': 1, 'memory_max': 1, 'account_id': 'account_id', + 'compliances_count': 5, 'kernel_version': 'kernel_version', 'warn_alarm_count': 5, 'pods': + [{'is_deepfence_system': True, 'kubernetes_ip': 'kubernetes_ip', 'processes': [{'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': + 'secret_scan_status', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'kubernetes_state': 'kubernetes_state', 'node_name': 'node_name', + 'kubernetes_created': 'kubernetes_created', 'pod_name': 'pod_name', 'kubernetes_namespace': + 'kubernetes_namespace', 'kubernetes_is_in_host_network': True, 'malware_scan_status': 'malware_scan_status', + 'kubernetes_labels': {'key': ''}, 'containers': [{'vulnerabilities_count': 6, 'secrets_count': 1, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': 'secret_latest_scan_id', + 'docker_container_network_mode': 'docker_container_network_mode', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': + 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': + True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, + 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', + 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': + ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': + 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, + 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'is_deepfence_system': True, 'kubernetes_ip': 'kubernetes_ip', 'processes': [{'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': + 'secret_scan_status', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'kubernetes_state': 'kubernetes_state', 'node_name': 'node_name', + 'kubernetes_created': 'kubernetes_created', 'pod_name': 'pod_name', 'kubernetes_namespace': + 'kubernetes_namespace', 'kubernetes_is_in_host_network': True, 'malware_scan_status': 'malware_scan_status', + 'kubernetes_labels': {'key': ''}, 'containers': [{'vulnerabilities_count': 6, 'secrets_count': 1, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': 'secret_latest_scan_id', + 'docker_container_network_mode': 'docker_container_network_mode', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': + 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': + True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, + 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', + 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': + ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': + 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, + 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'public_ip': ['', ''], 'container_images': [{'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}, {'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}], 'cpu_max': 5.637376656633329, 'alerts_counts': {'key': 6}, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'config_names': {'policy_config_name': 'policy_config_name', + 'filesystem_config_name': 'filesystem_config_name', 'process_config_name': 'process_config_name', + 'network_config_name': 'network_config_name'}, 'network_tracer_status': 'network_tracer_status', + 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', 'api_endpoints': [{'host_ip': 'host_ip', + 'cloud_region': 'cloud_region', 'method': 'method', 'created_at': 0, 'cloud_provider': 'cloud_provider', + 'schema_info': 'schema_info', 'path': 'path', 'cloud_type': 'cloud_type', 'source_hosts': ['source_hosts', + 'source_hosts'], 'updated_at': 1, 'port': 0, 'host': 'host', 'direction': 'ingress'}, {'host_ip': 'host_ip', + 'cloud_region': 'cloud_region', 'method': 'method', 'created_at': 0, 'cloud_provider': 'cloud_provider', + 'schema_info': 'schema_info', 'path': 'path', 'cloud_type': 'cloud_type', 'source_hosts': ['source_hosts', + 'source_hosts'], 'updated_at': 1, 'port': 0, 'host': 'host', 'direction': 'ingress'}], 'plugin_status': + {'network_tracer_status': {'description': 'description', 'status': 'status'}, 'network_filter_status': + {'description': 'description', 'status': 'status'}, 'cloud_network_tracer_status': {'description': + 'description', 'status': 'status'}, 'filesystem_tracer_status': {'description': 'description', 'status': + 'status'}, 'process_tracer_status': {'description': 'description', 'status': 'status'}, + 'agent_installer_tracer_status': {'description': 'description', 'status': 'status'}}, + 'agent_installer_tracer_status': 'agent_installer_tracer_status', 'malware_latest_scan_id': + 'malware_latest_scan_id', 'version': 'version', 'instance_id': 'instance_id', 'kernel_id': 'kernel_id', + 'compliance_latest_scan_id': 'compliance_latest_scan_id', 'containers': [{'vulnerabilities_count': 6, + 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': + 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': + 'secret_latest_scan_id', 'docker_container_network_mode': 'docker_container_network_mode', + 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', + 'malware_scan_status': 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, + 'is_deepfence_system': True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': + 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, + 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', + 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': 'short_name', + 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', + 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': + ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], + 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': + 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': 'secret_scan_status', 'docker_container_name': + 'docker_container_name', 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': + 'malware_latest_scan_id', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': + 'node_name', 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'cpu_usage': 2.3021358869347655, 'instance_type': 'instance_type', 'local_networks': ['', ''], + 'vulnerabilities_count': 4, 'secrets_count': 7, 'cloud_region': 'cloud_region', + 'network_tracer_status_updated_at': 1, 'network_filter_status': 'network_filter_status', 'memory_usage': 1, + 'private_ip': ['', ''], 'exploitable_vulnerabilities_count': 3, 'cloud_account_id': 'cloud_account_id', + 'resource_group': 'resource_group', 'malware_scan_status': 'malware_scan_status', 'exploitable_malwares_count': + 7, 'agent_installer_tracer_status_updated_at': 0, 'filesystem_tracer_status_updated_at': 2, + 'filesystem_tracer_status': 'filesystem_tracer_status', 'inbound_connections': [{'count': 4, 'node_name': + 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}, {'count': 4, 'node_name': 'node_name', 'ips': ['', ''], + 'node_id': 'node_id'}], 'availability_zone': 'availability_zone', 'is_console_vm': True, 'processes': + [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'compliance_scan_status': 'compliance_scan_status', + 'outbound_connections': [{'count': 4, 'node_name': 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}, + {'count': 4, 'node_name': 'node_name', 'ips': ['', ''], 'node_id': 'node_id'}], 'os': 'os', 'local_cidr': ['', + ''], 'malwares_count': 7, 'node_name': 'node_name', 'cloud_provider': 'cloud_provider', 'process_tracer_status': + 'process_tracer_status', 'agent_running': True, 'cloud_warn_alarm_count': 1, 'exploitable_secrets_count': 9, + 'process_tracer_status_updated_at': 6, 'uptime': 1, 'memory_max': 1, 'account_id': 'account_id', + 'compliances_count': 5, 'kernel_version': 'kernel_version', 'warn_alarm_count': 5, 'pods': + [{'is_deepfence_system': True, 'kubernetes_ip': 'kubernetes_ip', 'processes': [{'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': + 'secret_scan_status', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'kubernetes_state': 'kubernetes_state', 'node_name': 'node_name', + 'kubernetes_created': 'kubernetes_created', 'pod_name': 'pod_name', 'kubernetes_namespace': + 'kubernetes_namespace', 'kubernetes_is_in_host_network': True, 'malware_scan_status': 'malware_scan_status', + 'kubernetes_labels': {'key': ''}, 'containers': [{'vulnerabilities_count': 6, 'secrets_count': 1, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': 'secret_latest_scan_id', + 'docker_container_network_mode': 'docker_container_network_mode', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': + 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': + True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, + 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', + 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': + ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': + 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, + 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'is_deepfence_system': True, 'kubernetes_ip': 'kubernetes_ip', 'processes': [{'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': + 'secret_scan_status', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'kubernetes_state': 'kubernetes_state', 'node_name': 'node_name', + 'kubernetes_created': 'kubernetes_created', 'pod_name': 'pod_name', 'kubernetes_namespace': + 'kubernetes_namespace', 'kubernetes_is_in_host_network': True, 'malware_scan_status': 'malware_scan_status', + 'kubernetes_labels': {'key': ''}, 'containers': [{'vulnerabilities_count': 6, 'secrets_count': 1, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': 'secret_latest_scan_id', + 'docker_container_network_mode': 'docker_container_network_mode', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': + 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': + True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, + 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', + 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': + ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': + 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, + 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'node_name': 'node_name', 'agent_running': True, 'node_id': 'node_id'} + Attributes: agent_running (bool): hosts (Union[List['ModelHost'], None]): diff --git a/threatstryker/models/model_license.py b/threatstryker/models/model_license.py index 9fec0c0..a370fa5 100644 --- a/threatstryker/models/model_license.py +++ b/threatstryker/models/model_license.py @@ -15,6 +15,14 @@ @_attrs_define class ModelLicense: """ + Example: + {'end_date': 'end_date', 'no_of_registries': 5, 'notification_threshold_percentage': 2, 'current_hosts': 0, + 'is_active': True, 'license_type': 'license_type', 'notification_threshold_updated_at': 7, + 'registry_credentials': {'registry_url': 'registry_url', 'password': 'password', 'username': 'username'}, + 'description': 'description', 'no_of_hosts': 1, 'no_of_images_in_registry': 5, 'message': 'message', + 'deepfence_support_email': 'deepfence_support_email', 'license_email': 'license_email', 'no_of_cloud_accounts': + 6, 'license_email_domain': 'license_email_domain', 'key': 'key', 'start_date': 'start_date'} + Attributes: current_hosts (Union[Unset, int]): deepfence_support_email (Union[Unset, str]): @@ -32,7 +40,8 @@ class ModelLicense: no_of_registries (Union[Unset, int]): notification_threshold_percentage (Union[Unset, int]): notification_threshold_updated_at (Union[Unset, int]): - registry_credentials (Union[Unset, UtilsRegistryCredentials]): + registry_credentials (Union[Unset, UtilsRegistryCredentials]): Example: {'registry_url': 'registry_url', + 'password': 'password', 'username': 'username'}. start_date (Union[Unset, str]): """ diff --git a/threatstryker/models/model_list_agent_version_resp.py b/threatstryker/models/model_list_agent_version_resp.py index ab3a6cb..fbc013a 100644 --- a/threatstryker/models/model_list_agent_version_resp.py +++ b/threatstryker/models/model_list_agent_version_resp.py @@ -9,6 +9,9 @@ @_attrs_define class ModelListAgentVersionResp: """ + Example: + {'versions': ['versions', 'versions']} + Attributes: versions (Union[List[str], None]): """ diff --git a/threatstryker/models/model_login_request.py b/threatstryker/models/model_login_request.py index 09463a8..d758a91 100644 --- a/threatstryker/models/model_login_request.py +++ b/threatstryker/models/model_login_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelLoginRequest: """ + Example: + {'password': 'password', 'email': 'email'} + Attributes: email (str): password (str): diff --git a/threatstryker/models/model_login_response.py b/threatstryker/models/model_login_response.py index d4667e2..9e1e85d 100644 --- a/threatstryker/models/model_login_response.py +++ b/threatstryker/models/model_login_response.py @@ -9,6 +9,11 @@ @_attrs_define class ModelLoginResponse: """ + Example: + {'access_token': 'access_token', 'refresh_token': 'refresh_token', 'email_domain': 'email_domain', + 'license_registered': True, 'onboarding_required': True, 'password_invalidated': True, 'license_key': + 'license_key'} + Attributes: access_token (str): email_domain (str): diff --git a/threatstryker/models/model_malware.py b/threatstryker/models/model_malware.py index 5889257..29a9780 100644 --- a/threatstryker/models/model_malware.py +++ b/threatstryker/models/model_malware.py @@ -16,6 +16,18 @@ @_attrs_define class ModelMalware: """ + Example: + {'date': 'date', 'summary': 'summary', 'filetype': 'filetype', 'image_layer_id': 'image_layer_id', 'rule_name': + 'rule_name', 'author': 'author', 'masked': True, 'file_sev_score': 6, 'file_severity': 'critical', + 'strings_to_match': ['', ''], 'description': 'description', 'resources': [{'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'version': 'version', 'rule_id': 'rule_id', 'complete_filename': 'complete_filename', + 'class': 'class', 'exploitability_score': 0, 'max_exploitability_score': 1, 'info': 'info', 'node_id': + 'node_id', 'severity_score': 5} + Attributes: class_ (str): complete_filename (str): @@ -29,8 +41,10 @@ class ModelMalware: author (Union[Unset, str]): date (Union[Unset, str]): description (Union[Unset, str]): + exploitability_score (Union[Unset, int]): filetype (Union[Unset, str]): info (Union[Unset, str]): + max_exploitability_score (Union[Unset, int]): resources (Union[List['ModelBasicNode'], None, Unset]): severity_score (Union[Unset, int]): strings_to_match (Union[List[Any], None, Unset]): @@ -50,8 +64,10 @@ class ModelMalware: author: Union[Unset, str] = UNSET date: Union[Unset, str] = UNSET description: Union[Unset, str] = UNSET + exploitability_score: Union[Unset, int] = UNSET filetype: Union[Unset, str] = UNSET info: Union[Unset, str] = UNSET + max_exploitability_score: Union[Unset, int] = UNSET resources: Union[List["ModelBasicNode"], None, Unset] = UNSET severity_score: Union[Unset, int] = UNSET strings_to_match: Union[List[Any], None, Unset] = UNSET @@ -84,10 +100,14 @@ def to_dict(self) -> Dict[str, Any]: description = self.description + exploitability_score = self.exploitability_score + filetype = self.filetype info = self.info + max_exploitability_score = self.max_exploitability_score + resources: Union[List[Dict[str, Any]], None, Unset] if isinstance(self.resources, Unset): resources = UNSET @@ -136,10 +156,14 @@ def to_dict(self) -> Dict[str, Any]: field_dict["date"] = date if description is not UNSET: field_dict["description"] = description + if exploitability_score is not UNSET: + field_dict["exploitability_score"] = exploitability_score if filetype is not UNSET: field_dict["filetype"] = filetype if info is not UNSET: field_dict["info"] = info + if max_exploitability_score is not UNSET: + field_dict["max_exploitability_score"] = max_exploitability_score if resources is not UNSET: field_dict["resources"] = resources if severity_score is not UNSET: @@ -182,10 +206,14 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: description = d.pop("description", UNSET) + exploitability_score = d.pop("exploitability_score", UNSET) + filetype = d.pop("filetype", UNSET) info = d.pop("info", UNSET) + max_exploitability_score = d.pop("max_exploitability_score", UNSET) + def _parse_resources(data: object) -> Union[List["ModelBasicNode"], None, Unset]: if data is None: return data @@ -244,8 +272,10 @@ def _parse_strings_to_match(data: object) -> Union[List[Any], None, Unset]: author=author, date=date, description=description, + exploitability_score=exploitability_score, filetype=filetype, info=info, + max_exploitability_score=max_exploitability_score, resources=resources, severity_score=severity_score, strings_to_match=strings_to_match, diff --git a/threatstryker/models/model_malware_rule.py b/threatstryker/models/model_malware_rule.py index 6d08029..d3f8404 100644 --- a/threatstryker/models/model_malware_rule.py +++ b/threatstryker/models/model_malware_rule.py @@ -11,8 +11,17 @@ @_attrs_define class ModelMalwareRule: """ + Example: + {'date': 'date', 'severity': 'severity', 'summary': 'summary', 'filetype': 'filetype', 'rule_name': 'rule_name', + 'author': 'author', 'masked': True, 'file_severity': 'file_severity', 'description': 'description', 'version': + 'version', 'reference': 'reference', 'rule_id': 'rule_id', 'updated_at': 0, 'payload': 'payload', 'info': + 'info'} + Attributes: masked (bool): + payload (str): + severity (str): + summary (str): updated_at (int): author (Union[Unset, str]): date (Union[Unset, str]): @@ -27,6 +36,9 @@ class ModelMalwareRule: """ masked: bool + payload: str + severity: str + summary: str updated_at: int author: Union[Unset, str] = UNSET date: Union[Unset, str] = UNSET @@ -43,6 +55,12 @@ class ModelMalwareRule: def to_dict(self) -> Dict[str, Any]: masked = self.masked + payload = self.payload + + severity = self.severity + + summary = self.summary + updated_at = self.updated_at author = self.author @@ -70,6 +88,9 @@ def to_dict(self) -> Dict[str, Any]: field_dict.update( { "masked": masked, + "payload": payload, + "severity": severity, + "summary": summary, "updated_at": updated_at, } ) @@ -101,6 +122,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: d = src_dict.copy() masked = d.pop("masked") + payload = d.pop("payload") + + severity = d.pop("severity") + + summary = d.pop("summary") + updated_at = d.pop("updated_at") author = d.pop("author", UNSET) @@ -125,6 +152,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: model_malware_rule = cls( masked=masked, + payload=payload, + severity=severity, + summary=summary, updated_at=updated_at, author=author, date=date, diff --git a/threatstryker/models/model_malware_scan_result.py b/threatstryker/models/model_malware_scan_result.py index 3f16761..8b38eb2 100644 --- a/threatstryker/models/model_malware_scan_result.py +++ b/threatstryker/models/model_malware_scan_result.py @@ -14,6 +14,31 @@ @_attrs_define class ModelMalwareScanResult: """ + Example: + {'severity_counts': {'key': 6}, 'docker_container_name': 'docker_container_name', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'node_name': 'node_name', 'created_at': 0, 'cloud_account_id': 'cloud_account_id', + 'node_type': 'node_type', 'updated_at': 1, 'scan_id': 'scan_id', 'malwares': [{'date': 'date', 'summary': + 'summary', 'filetype': 'filetype', 'image_layer_id': 'image_layer_id', 'rule_name': 'rule_name', 'author': + 'author', 'masked': True, 'file_sev_score': 6, 'file_severity': 'critical', 'strings_to_match': ['', ''], + 'description': 'description', 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', + 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', + 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], + 'version': 'version', 'rule_id': 'rule_id', 'complete_filename': 'complete_filename', 'class': 'class', + 'exploitability_score': 0, 'max_exploitability_score': 1, 'info': 'info', 'node_id': 'node_id', + 'severity_score': 5}, {'date': 'date', 'summary': 'summary', 'filetype': 'filetype', 'image_layer_id': + 'image_layer_id', 'rule_name': 'rule_name', 'author': 'author', 'masked': True, 'file_sev_score': 6, + 'file_severity': 'critical', 'strings_to_match': ['', ''], 'description': 'description', 'resources': + [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': + ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', + 'live_malwares'], 'node_id': 'node_id'}], 'version': 'version', 'rule_id': 'rule_id', 'complete_filename': + 'complete_filename', 'class': 'class', 'exploitability_score': 0, 'max_exploitability_score': 1, 'info': 'info', + 'node_id': 'node_id', 'severity_score': 5}], 'docker_image_name': 'docker_image_name', 'host_name': 'host_name', + 'node_id': 'node_id'} + Attributes: cloud_account_id (str): created_at (int): diff --git a/threatstryker/models/model_malware_scan_result_class.py b/threatstryker/models/model_malware_scan_result_class.py index 2dd13ba..6c29b94 100644 --- a/threatstryker/models/model_malware_scan_result_class.py +++ b/threatstryker/models/model_malware_scan_result_class.py @@ -9,6 +9,9 @@ @_attrs_define class ModelMalwareScanResultClass: """ + Example: + {'class': ['class', 'class']} + Attributes: class_ (Union[List[str], None]): """ diff --git a/threatstryker/models/model_malware_scan_result_rules.py b/threatstryker/models/model_malware_scan_result_rules.py index f3c70b2..fe7c195 100644 --- a/threatstryker/models/model_malware_scan_result_rules.py +++ b/threatstryker/models/model_malware_scan_result_rules.py @@ -9,6 +9,9 @@ @_attrs_define class ModelMalwareScanResultRules: """ + Example: + {'rules': ['rules', 'rules']} + Attributes: rules (Union[List[str], None]): """ diff --git a/threatstryker/models/model_malware_scan_trigger_req.py b/threatstryker/models/model_malware_scan_trigger_req.py index 5054e69..95b96b6 100644 --- a/threatstryker/models/model_malware_scan_trigger_req.py +++ b/threatstryker/models/model_malware_scan_trigger_req.py @@ -16,8 +16,18 @@ @_attrs_define class ModelMalwareScanTriggerReq: """ + Example: + {'is_priority': True, 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': + {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': + 'image', 'node_id': 'node_id'}]} + Attributes: - filters (ModelScanFilter): + filters (ModelScanFilter): Example: {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', + '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': + {'key': ['', '']}}}. node_ids (Union[List['ModelNodeIdentifier'], None]): deepfence_system_scan (Union[Unset, bool]): is_priority (Union[Unset, bool]): diff --git a/threatstryker/models/model_message_response.py b/threatstryker/models/model_message_response.py index 9773b00..be57e24 100644 --- a/threatstryker/models/model_message_response.py +++ b/threatstryker/models/model_message_response.py @@ -9,6 +9,9 @@ @_attrs_define class ModelMessageResponse: """ + Example: + {'message': 'message'} + Attributes: message (str): """ diff --git a/threatstryker/models/model_mitre_attack_matrix.py b/threatstryker/models/model_mitre_attack_matrix.py index 6db1b32..287ff3c 100644 --- a/threatstryker/models/model_mitre_attack_matrix.py +++ b/threatstryker/models/model_mitre_attack_matrix.py @@ -13,6 +13,9 @@ @_attrs_define class ModelMitreAttackMatrix: """ + Example: + {'count': 0, 'technique_summary': {'key': {'severity': 'severity', 'count': 6}}, 'tactic': 'tactic'} + Attributes: count (int): tactic (str): diff --git a/threatstryker/models/model_mitre_attack_matrix_request.py b/threatstryker/models/model_mitre_attack_matrix_request.py index f6cacc4..13ba48f 100644 --- a/threatstryker/models/model_mitre_attack_matrix_request.py +++ b/threatstryker/models/model_mitre_attack_matrix_request.py @@ -11,6 +11,9 @@ @_attrs_define class ModelMitreAttackMatrixRequest: """ + Example: + {'node_ids': ['node_ids', 'node_ids']} + Attributes: node_ids (Union[List[str], None, Unset]): """ diff --git a/threatstryker/models/model_mitre_technique_summary.py b/threatstryker/models/model_mitre_technique_summary.py index cecee4e..f7079d9 100644 --- a/threatstryker/models/model_mitre_technique_summary.py +++ b/threatstryker/models/model_mitre_technique_summary.py @@ -9,6 +9,9 @@ @_attrs_define class ModelMitreTechniqueSummary: """ + Example: + {'severity': 'severity', 'count': 6} + Attributes: count (int): severity (str): diff --git a/threatstryker/models/model_network_alert.py b/threatstryker/models/model_network_alert.py index 4e6303b..b0616c1 100644 --- a/threatstryker/models/model_network_alert.py +++ b/threatstryker/models/model_network_alert.py @@ -11,6 +11,17 @@ @_attrs_define class ModelNetworkAlert: """ + Example: + {'request': 'request', 'references': 'references', 'destination_port': 1, 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'masked': True, 'created_at': 6, 'source_ip': 'source_ip', 'protocol': 'protocol', + 'base_64_payload': 'base_64_payload', 'destination_ip': 'destination_ip', 'event_type': 'event_type', + 'node_type': 'node_type', 'updated_at': 5, 'payload': 'payload', 'source_port': 5, 'direction': 'direction', + 'severity': 'severity', 'summary': 'summary', 'headers': 'headers', 'kubernetes_cluster_id': + 'kubernetes_cluster_id', 'count': 0, 'http_type': 'http_type', 'url': 'url', 'pod_name': 'pod_name', 'tags': + 'tags', 'rule_id': 'rule_id', 'container_name': 'container_name', 'encrypted': True, 'response': 'response', + 'techniques': ['techniques', 'techniques'], 'tactics': ['tactics', 'tactics'], 'category': 'category', + 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: base_64_payload (str): category (str): @@ -30,6 +41,7 @@ class ModelNetworkAlert: masked (bool): node_id (str): node_type (str): + payload (str): pod_name (str): protocol (str): references (str): @@ -65,6 +77,7 @@ class ModelNetworkAlert: masked: bool node_id: str node_type: str + payload: str pod_name: str protocol: str references: str @@ -119,6 +132,8 @@ def to_dict(self) -> Dict[str, Any]: node_type = self.node_type + payload = self.payload + pod_name = self.pod_name protocol = self.protocol @@ -181,6 +196,7 @@ def to_dict(self) -> Dict[str, Any]: "masked": masked, "node_id": node_id, "node_type": node_type, + "payload": payload, "pod_name": pod_name, "protocol": protocol, "references": references, @@ -242,6 +258,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: node_type = d.pop("node_type") + payload = d.pop("payload") + pod_name = d.pop("pod_name") protocol = d.pop("protocol") @@ -317,6 +335,7 @@ def _parse_techniques(data: object) -> Union[List[str], None]: masked=masked, node_id=node_id, node_type=node_type, + payload=payload, pod_name=pod_name, protocol=protocol, references=references, diff --git a/threatstryker/models/model_network_alert_rule.py b/threatstryker/models/model_network_alert_rule.py index 15230f5..e92c2a8 100644 --- a/threatstryker/models/model_network_alert_rule.py +++ b/threatstryker/models/model_network_alert_rule.py @@ -9,11 +9,17 @@ @_attrs_define class ModelNetworkAlertRule: """ + Example: + {'rule_id': 'rule_id', 'severity': 'severity', 'summary': 'summary', 'updated_at': 0, 'payload': 'payload', + 'masked': True, 'techniques': ['techniques', 'techniques'], 'description': 'description', 'tactics': ['tactics', + 'tactics'], 'category': 'category', 'node_id': 'node_id'} + Attributes: category (str): description (str): masked (bool): node_id (str): + payload (str): rule_id (str): severity (str): summary (str): @@ -26,6 +32,7 @@ class ModelNetworkAlertRule: description: str masked: bool node_id: str + payload: str rule_id: str severity: str summary: str @@ -43,6 +50,8 @@ def to_dict(self) -> Dict[str, Any]: node_id = self.node_id + payload = self.payload + rule_id = self.rule_id severity = self.severity @@ -73,6 +82,7 @@ def to_dict(self) -> Dict[str, Any]: "description": description, "masked": masked, "node_id": node_id, + "payload": payload, "rule_id": rule_id, "severity": severity, "summary": summary, @@ -95,6 +105,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: node_id = d.pop("node_id") + payload = d.pop("payload") + rule_id = d.pop("rule_id") severity = d.pop("severity") @@ -138,6 +150,7 @@ def _parse_techniques(data: object) -> Union[List[str], None]: description=description, masked=masked, node_id=node_id, + payload=payload, rule_id=rule_id, severity=severity, summary=summary, diff --git a/threatstryker/models/model_network_violation.py b/threatstryker/models/model_network_violation.py index 52ddfa7..3899433 100644 --- a/threatstryker/models/model_network_violation.py +++ b/threatstryker/models/model_network_violation.py @@ -12,6 +12,14 @@ @_attrs_define class ModelNetworkViolation: """ + Example: + {'severity': 'severity', 'defenderd': 'defenderd', 'executed_at': 6, 'local_port': 1, 'policy_index': 5, + 'remote_port': 5, 'created_at': 0, 'node_policy_type': 'node_policy_type', 'applied_by': 'applied_by', 'ttl': 2, + 'local_ip': 'local_ip', 'event_type': 'event_type', 'remote_ip': 'remote_ip', 'config_id': 'config_id', + 'alert_id': 'alert_id', 'action': 'action', 'block_ip': 'block_ip', 'pod_id': 'pod_id', 'packet_direction': + 'packet_direction', 'container_id': 'container_id', 'host_name': 'host_name', 'direction': 'inbound', 'node_id': + 'node_id', 'status': 'status'} + Attributes: action (Union[Unset, str]): alert_id (Union[Unset, str]): diff --git a/threatstryker/models/model_network_violation_stub.py b/threatstryker/models/model_network_violation_stub.py index 569e359..3b9d4b3 100644 --- a/threatstryker/models/model_network_violation_stub.py +++ b/threatstryker/models/model_network_violation_stub.py @@ -9,6 +9,9 @@ @_attrs_define class ModelNetworkViolationStub: """ + Example: + {'node_id': 'node_id'} + Attributes: node_id (str): """ diff --git a/threatstryker/models/model_node_identifier.py b/threatstryker/models/model_node_identifier.py index aa0ff6a..63d068a 100644 --- a/threatstryker/models/model_node_identifier.py +++ b/threatstryker/models/model_node_identifier.py @@ -11,6 +11,9 @@ @_attrs_define class ModelNodeIdentifier: """ + Example: + {'node_type': 'image', 'node_id': 'node_id'} + Attributes: node_id (str): node_type (ModelNodeIdentifierNodeType): diff --git a/threatstryker/models/model_nodes_in_scan_result_request.py b/threatstryker/models/model_nodes_in_scan_result_request.py index 9ccfeed..222da07 100644 --- a/threatstryker/models/model_nodes_in_scan_result_request.py +++ b/threatstryker/models/model_nodes_in_scan_result_request.py @@ -11,6 +11,9 @@ @_attrs_define class ModelNodesInScanResultRequest: """ + Example: + {'result_ids': ['result_ids', 'result_ids'], 'scan_type': 'SecretScan'} + Attributes: result_ids (Union[List[str], None]): scan_type (ModelNodesInScanResultRequestScanType): diff --git a/threatstryker/models/model_notification_threshold_update_request.py b/threatstryker/models/model_notification_threshold_update_request.py index 8d44765..08ff397 100644 --- a/threatstryker/models/model_notification_threshold_update_request.py +++ b/threatstryker/models/model_notification_threshold_update_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelNotificationThresholdUpdateRequest: """ + Example: + {'notification_threshold_percentage': 0} + Attributes: notification_threshold_percentage (int): """ diff --git a/threatstryker/models/model_password_reset_request.py b/threatstryker/models/model_password_reset_request.py index 916c9d9..3e8b434 100644 --- a/threatstryker/models/model_password_reset_request.py +++ b/threatstryker/models/model_password_reset_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelPasswordResetRequest: """ + Example: + {'email': 'email'} + Attributes: email (str): """ diff --git a/threatstryker/models/model_password_reset_verify_request.py b/threatstryker/models/model_password_reset_verify_request.py index 34fac9a..02fb370 100644 --- a/threatstryker/models/model_password_reset_verify_request.py +++ b/threatstryker/models/model_password_reset_verify_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelPasswordResetVerifyRequest: """ + Example: + {'password': 'password', 'code': 'code', 'namespace': 'namespace'} + Attributes: code (str): namespace (str): diff --git a/threatstryker/models/model_plugin_status.py b/threatstryker/models/model_plugin_status.py index 9fb2176..d2b0885 100644 --- a/threatstryker/models/model_plugin_status.py +++ b/threatstryker/models/model_plugin_status.py @@ -9,6 +9,9 @@ @_attrs_define class ModelPluginStatus: """ + Example: + {'description': 'description', 'status': 'status'} + Attributes: description (str): status (str): diff --git a/threatstryker/models/model_pod.py b/threatstryker/models/model_pod.py index 53d2fa6..8d28da7 100644 --- a/threatstryker/models/model_pod.py +++ b/threatstryker/models/model_pod.py @@ -15,6 +15,64 @@ @_attrs_define class ModelPod: """ + Example: + {'is_deepfence_system': True, 'kubernetes_ip': 'kubernetes_ip', 'processes': [{'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, {'cpu_max': 2.3021358869347655, + 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, + 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': + ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', 'active_malwares'], 'short_name': + 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], 'secret_scan_status': + 'secret_scan_status', 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'kubernetes_state': 'kubernetes_state', 'node_name': 'node_name', + 'kubernetes_created': 'kubernetes_created', 'pod_name': 'pod_name', 'kubernetes_namespace': + 'kubernetes_namespace', 'kubernetes_is_in_host_network': True, 'malware_scan_status': 'malware_scan_status', + 'kubernetes_labels': {'key': ''}, 'containers': [{'vulnerabilities_count': 6, 'secrets_count': 1, + 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': 'docker_container_state', + 'cpu_max': 0.8008281904610115, 'memory_usage': 5, 'secret_latest_scan_id': 'secret_latest_scan_id', + 'docker_container_network_mode': 'docker_container_network_mode', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': + 'malware_scan_status', 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': + True, 'image': None, 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, + 'open_files_count': 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', + 'active_secrets'], 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': + ['active_malwares', 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': + 'node_id'}, {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, + 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: containers (Union[List['ModelContainer'], None]): host_name (str): diff --git a/threatstryker/models/model_posture_provider.py b/threatstryker/models/model_posture_provider.py index c1996e2..3d225aa 100644 --- a/threatstryker/models/model_posture_provider.py +++ b/threatstryker/models/model_posture_provider.py @@ -11,6 +11,10 @@ @_attrs_define class ModelPostureProvider: """ + Example: + {'node_count_inactive': 1, 'compliance_percentage': 0.8008281904610115, 'node_label': 'node_label', 'name': + 'name', 'scan_count': 5, 'node_count': 6, 'resource_count': 5} + Attributes: compliance_percentage (Union[Unset, float]): name (Union[Unset, str]): diff --git a/threatstryker/models/model_process.py b/threatstryker/models/model_process.py index 2e668b9..31da0b2 100644 --- a/threatstryker/models/model_process.py +++ b/threatstryker/models/model_process.py @@ -1,4 +1,4 @@ -from typing import Any, Dict, List, Type, TypeVar +from typing import Any, Dict, List, Type, TypeVar, Union, cast from attrs import define as _attrs_define from attrs import field as _attrs_field @@ -9,7 +9,16 @@ @_attrs_define class ModelProcess: """ + Example: + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'} + Attributes: + active_cves (Union[List[str], None]): + active_malwares (Union[List[str], None]): + active_secrets (Union[List[str], None]): cmdline (str): cpu_max (float): cpu_usage (float): @@ -24,6 +33,9 @@ class ModelProcess: threads (int): """ + active_cves: Union[List[str], None] + active_malwares: Union[List[str], None] + active_secrets: Union[List[str], None] cmdline: str cpu_max: float cpu_usage: float @@ -39,6 +51,27 @@ class ModelProcess: additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: + active_cves: Union[List[str], None] + if isinstance(self.active_cves, list): + active_cves = self.active_cves + + else: + active_cves = self.active_cves + + active_malwares: Union[List[str], None] + if isinstance(self.active_malwares, list): + active_malwares = self.active_malwares + + else: + active_malwares = self.active_malwares + + active_secrets: Union[List[str], None] + if isinstance(self.active_secrets, list): + active_secrets = self.active_secrets + + else: + active_secrets = self.active_secrets + cmdline = self.cmdline cpu_max = self.cpu_max @@ -67,6 +100,9 @@ def to_dict(self) -> Dict[str, Any]: field_dict.update(self.additional_properties) field_dict.update( { + "active_cves": active_cves, + "active_malwares": active_malwares, + "active_secrets": active_secrets, "cmdline": cmdline, "cpu_max": cpu_max, "cpu_usage": cpu_usage, @@ -87,6 +123,52 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: d = src_dict.copy() + + def _parse_active_cves(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + active_cves_type_0 = cast(List[str], data) + + return active_cves_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + active_cves = _parse_active_cves(d.pop("active_cves")) + + def _parse_active_malwares(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + active_malwares_type_0 = cast(List[str], data) + + return active_malwares_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + active_malwares = _parse_active_malwares(d.pop("active_malwares")) + + def _parse_active_secrets(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + active_secrets_type_0 = cast(List[str], data) + + return active_secrets_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + active_secrets = _parse_active_secrets(d.pop("active_secrets")) + cmdline = d.pop("cmdline") cpu_max = d.pop("cpu_max") @@ -112,6 +194,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: threads = d.pop("threads") model_process = cls( + active_cves=active_cves, + active_malwares=active_malwares, + active_secrets=active_secrets, cmdline=cmdline, cpu_max=cpu_max, cpu_usage=cpu_usage, diff --git a/threatstryker/models/model_process_alert.py b/threatstryker/models/model_process_alert.py index 8bb0701..62f11e9 100644 --- a/threatstryker/models/model_process_alert.py +++ b/threatstryker/models/model_process_alert.py @@ -9,6 +9,17 @@ @_attrs_define class ModelProcessAlert: """ + Example: + {'container_ip': 'container_ip', 'vsize': 0, 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'masked': + True, 'session': 3, 'user_name': 'user_name', 'created_at': 1, 'pid': 5, 'exec_path': 'exec_path', 'event_type': + 'event_type', 'node_type': 'node_type', 'rss': 9, 'top': 'top', 'updated_at': 2, 'state': 'state', 'group': + 'group', 'severity': 'severity', 'summary': 'summary', 'cpu_time': 6.027456183070403, 'kubernetes_cluster_id': + 'kubernetes_cluster_id', 'count': 0, 'priority': 2, 'command': 'command', 'container_image': 'container_image', + 'netstat': 'netstat', 'users': 'users', 'pod_name': 'pod_name', 'rule_id': 'rule_id', 'container_name': + 'container_name', 'techniques': ['techniques', 'techniques'], 'num_threads': 5, 'tactics': ['tactics', + 'tactics'], 'proc_status': 'proc_status', 'category': 'category', 'user': 'user', 'container_id': + 'container_id', 'return': 7, 'node_id': 'node_id'} + Attributes: category (str): command (str): diff --git a/threatstryker/models/model_process_alert_rule.py b/threatstryker/models/model_process_alert_rule.py index 9166a9e..816b481 100644 --- a/threatstryker/models/model_process_alert_rule.py +++ b/threatstryker/models/model_process_alert_rule.py @@ -11,6 +11,10 @@ @_attrs_define class ModelProcessAlertRule: """ + Example: + {'rule_id': 'rule_id', 'severity': 'severity', 'summary': 'summary', 'anomaly': 'anomaly', 'techniques': + ['techniques', 'techniques'], 'tactics': ['tactics', 'tactics'], 'category': 'category'} + Attributes: anomaly (Union[Unset, str]): category (Union[Unset, str]): diff --git a/threatstryker/models/model_quarantine_violation.py b/threatstryker/models/model_quarantine_violation.py index c4bd56a..b3d645b 100644 --- a/threatstryker/models/model_quarantine_violation.py +++ b/threatstryker/models/model_quarantine_violation.py @@ -9,6 +9,11 @@ @_attrs_define class ModelQuarantineViolation: """ + Example: + {'severity': 'severity', 'executed_at': 6, 'policy_index': 1, 'created_at': 0, 'type': 'type', 'ttl': 5, + 'config_id': 'config_id', 'alert_id': 'alert_id', 'action': 'action', 'pod_id': 'pod_id', 'container_id': + 'container_id', 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: action (str): alert_id (str): diff --git a/threatstryker/models/model_region_i_ds.py b/threatstryker/models/model_region_i_ds.py index f0b6410..4edef11 100644 --- a/threatstryker/models/model_region_i_ds.py +++ b/threatstryker/models/model_region_i_ds.py @@ -9,6 +9,9 @@ @_attrs_define class ModelRegionIDs: """ + Example: + {'ids': ['ids', 'ids'], 'region': 'region'} + Attributes: ids (Union[List[str], None]): region (str): diff --git a/threatstryker/models/model_register_invited_user_request.py b/threatstryker/models/model_register_invited_user_request.py index 06da5f7..57c5cb9 100644 --- a/threatstryker/models/model_register_invited_user_request.py +++ b/threatstryker/models/model_register_invited_user_request.py @@ -11,6 +11,10 @@ @_attrs_define class ModelRegisterInvitedUserRequest: """ + Example: + {'password': 'password', 'code': 'code', 'namespace': 'namespace', 'last_name': 'last_name', 'first_name': + 'first_name', 'is_temporary_password': True} + Attributes: code (str): first_name (str): diff --git a/threatstryker/models/model_register_license_request.py b/threatstryker/models/model_register_license_request.py index 67a78ca..ab68c5b 100644 --- a/threatstryker/models/model_register_license_request.py +++ b/threatstryker/models/model_register_license_request.py @@ -11,6 +11,9 @@ @_attrs_define class ModelRegisterLicenseRequest: """ + Example: + {'email': 'email', 'license_key': 'license_key'} + Attributes: license_key (str): email (Union[Unset, str]): diff --git a/threatstryker/models/model_register_license_response.py b/threatstryker/models/model_register_license_response.py index 5f68ccf..9f0158d 100644 --- a/threatstryker/models/model_register_license_response.py +++ b/threatstryker/models/model_register_license_response.py @@ -9,6 +9,9 @@ @_attrs_define class ModelRegisterLicenseResponse: """ + Example: + {'email_domain': 'email_domain', 'license_key': 'license_key'} + Attributes: email_domain (str): license_key (str): diff --git a/threatstryker/models/model_registry_account.py b/threatstryker/models/model_registry_account.py index d3e2958..8603949 100644 --- a/threatstryker/models/model_registry_account.py +++ b/threatstryker/models/model_registry_account.py @@ -13,6 +13,112 @@ @_attrs_define class ModelRegistryAccount: """ + Example: + {'syncing': True, 'container_images': [{'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}, {'is_deepfence_system': True, 'metadata': {'key': ''}, + 'secret_scan_status': 'secret_scan_status', 'vulnerabilities_count': 4, 'secrets_count': 1, + 'malware_latest_scan_id': 'malware_latest_scan_id', 'malwares_count': 7, 'node_name': 'node_name', + 'secret_latest_scan_id': 'secret_latest_scan_id', 'vulnerability_latest_scan_id': + 'vulnerability_latest_scan_id', 'docker_image_created_at': 'docker_image_created_at', 'docker_image_tag': + 'docker_image_tag', 'malware_scan_status': 'malware_scan_status', 'docker_image_size': 'docker_image_size', + 'image_node_id': 'image_node_id', 'docker_image_virtual_size': 'docker_image_virtual_size', 'containers': + [{'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}, + {'vulnerabilities_count': 6, 'secrets_count': 1, 'kubernetes_cluster_name': 'kubernetes_cluster_name', + 'docker_container_state': 'docker_container_state', 'cpu_max': 0.8008281904610115, 'memory_usage': 5, + 'secret_latest_scan_id': 'secret_latest_scan_id', 'docker_container_network_mode': + 'docker_container_network_mode', 'vulnerability_latest_scan_id': 'vulnerability_latest_scan_id', + 'kubernetes_namespace': 'kubernetes_namespace', 'malware_scan_status': 'malware_scan_status', + 'docker_container_ips': ['', ''], 'docker_labels': {'key': ''}, 'is_deepfence_system': True, 'image': None, + 'processes': [{'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': + 2, 'threads': 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], + 'cmdline': 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}, + {'cpu_max': 2.3021358869347655, 'node_name': 'node_name', 'memory_usage': 3, 'open_files_count': 2, 'threads': + 1, 'pid': 4, 'ppid': 7, 'memory_max': 9, 'active_secrets': ['active_secrets', 'active_secrets'], 'cmdline': + 'cmdline', 'active_cves': ['active_cves', 'active_cves'], 'active_malwares': ['active_malwares', + 'active_malwares'], 'short_name': 'short_name', 'cpu_usage': 7.061401241503109, 'node_id': 'node_id'}], + 'secret_scan_status': 'secret_scan_status', 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'malware_latest_scan_id': 'malware_latest_scan_id', + 'kubernetes_cluster_id': 'kubernetes_cluster_id', 'malwares_count': 1, 'node_name': 'node_name', + 'docker_container_networks': 'docker_container_networks', 'docker_container_command': + 'docker_container_command', 'uptime': 1, 'memory_max': 5, 'docker_container_ports': 'docker_container_ports', + 'docker_container_state_human': 'docker_container_state_human', 'cpu_usage': 6.027456183070403, + 'vulnerability_scan_status': 'vulnerability_scan_status', 'host_name': 'host_name', 'node_id': 'node_id'}], + 'docker_image_id': 'docker_image_id', 'vulnerability_scan_status': 'vulnerability_scan_status', + 'docker_image_name': 'docker_image_name', 'docker_image_tag_list': ['docker_image_tag_list', + 'docker_image_tag_list'], 'node_id': 'node_id'}], 'registry_type': 'registry_type', 'name': 'name', 'node_id': + 'node_id'} + Attributes: container_images (Union[List['ModelContainerImage'], None]): name (str): diff --git a/threatstryker/models/model_registry_add_req.py b/threatstryker/models/model_registry_add_req.py index 183b98a..21b8b2f 100644 --- a/threatstryker/models/model_registry_add_req.py +++ b/threatstryker/models/model_registry_add_req.py @@ -17,6 +17,10 @@ @_attrs_define class ModelRegistryAddReq: """ + Example: + {'non_secret': {'key': ''}, 'registry_type': 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': + {'key': ''}} + Attributes: name (str): registry_type (str): diff --git a/threatstryker/models/model_registry_count_resp.py b/threatstryker/models/model_registry_count_resp.py index 9230266..e612fb4 100644 --- a/threatstryker/models/model_registry_count_resp.py +++ b/threatstryker/models/model_registry_count_resp.py @@ -11,6 +11,9 @@ @_attrs_define class ModelRegistryCountResp: """ + Example: + {'count': 0} + Attributes: count (Union[Unset, int]): """ diff --git a/threatstryker/models/model_registry_image_stubs_req.py b/threatstryker/models/model_registry_image_stubs_req.py index 76b8322..75dd5c2 100644 --- a/threatstryker/models/model_registry_image_stubs_req.py +++ b/threatstryker/models/model_registry_image_stubs_req.py @@ -14,10 +14,25 @@ @_attrs_define class ModelRegistryImageStubsReq: """ + Example: + {'image_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': + {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': + 6}, 'registry_id': 'registry_id'} + Attributes: - image_filter (ReportersFieldsFilters): + image_filter (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. registry_id (str): - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ image_filter: "ReportersFieldsFilters" diff --git a/threatstryker/models/model_registry_images_req.py b/threatstryker/models/model_registry_images_req.py index 33b8e50..c674842 100644 --- a/threatstryker/models/model_registry_images_req.py +++ b/threatstryker/models/model_registry_images_req.py @@ -14,11 +14,38 @@ @_attrs_define class ModelRegistryImagesReq: """ + Example: + {'image_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': + {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': + 6}, 'image_stub_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': + {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'registry_id': + 'registry_id'} + Attributes: - image_filter (ReportersFieldsFilters): - image_stub_filter (ReportersFieldsFilters): + image_filter (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. + image_stub_filter (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': + '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. registry_id (str): - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ image_filter: "ReportersFieldsFilters" diff --git a/threatstryker/models/model_registry_list_resp.py b/threatstryker/models/model_registry_list_resp.py index 701cda2..b248cb2 100644 --- a/threatstryker/models/model_registry_list_resp.py +++ b/threatstryker/models/model_registry_list_resp.py @@ -11,6 +11,10 @@ @_attrs_define class ModelRegistryListResp: """ + Example: + {'is_syncing': True, 'updated_at': 1, 'non_secret': '', 'registry_type': 'registry_type', 'name': 'name', + 'created_at': 0, 'id': 6, 'node_id': 'node_id'} + Attributes: created_at (Union[Unset, int]): id (Union[Unset, int]): diff --git a/threatstryker/models/model_registry_update_req.py b/threatstryker/models/model_registry_update_req.py index b03f915..e598f75 100644 --- a/threatstryker/models/model_registry_update_req.py +++ b/threatstryker/models/model_registry_update_req.py @@ -17,6 +17,10 @@ @_attrs_define class ModelRegistryUpdateReq: """ + Example: + {'non_secret': {'key': ''}, 'registry_type': 'registry_type', 'name': 'name', 'extras': {'key': ''}, 'secret': + {'key': ''}} + Attributes: name (str): registry_type (str): diff --git a/threatstryker/models/model_response_access_token.py b/threatstryker/models/model_response_access_token.py index c83aefc..e94d0ad 100644 --- a/threatstryker/models/model_response_access_token.py +++ b/threatstryker/models/model_response_access_token.py @@ -9,6 +9,9 @@ @_attrs_define class ModelResponseAccessToken: """ + Example: + {'access_token': 'access_token', 'refresh_token': 'refresh_token'} + Attributes: access_token (str): refresh_token (str): diff --git a/threatstryker/models/model_rules_action_request.py b/threatstryker/models/model_rules_action_request.py new file mode 100644 index 0000000..6de083c --- /dev/null +++ b/threatstryker/models/model_rules_action_request.py @@ -0,0 +1,80 @@ +from typing import Any, Dict, List, Type, TypeVar, Union, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="ModelRulesActionRequest") + + +@_attrs_define +class ModelRulesActionRequest: + """ + Example: + {'rule_ids': ['rule_ids', 'rule_ids']} + + Attributes: + rule_ids (Union[List[str], None]): + """ + + rule_ids: Union[List[str], None] + additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> Dict[str, Any]: + rule_ids: Union[List[str], None] + if isinstance(self.rule_ids, list): + rule_ids = self.rule_ids + + else: + rule_ids = self.rule_ids + + field_dict: Dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "rule_ids": rule_ids, + } + ) + + return field_dict + + @classmethod + def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: + d = src_dict.copy() + + def _parse_rule_ids(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + rule_ids_type_0 = cast(List[str], data) + + return rule_ids_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + rule_ids = _parse_rule_ids(d.pop("rule_ids")) + + model_rules_action_request = cls( + rule_ids=rule_ids, + ) + + model_rules_action_request.additional_properties = d + return model_rules_action_request + + @property + def additional_keys(self) -> List[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/threatstryker/models/model_sbom_request.py b/threatstryker/models/model_sbom_request.py index 5dd59e2..cf53a1b 100644 --- a/threatstryker/models/model_sbom_request.py +++ b/threatstryker/models/model_sbom_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelSbomRequest: """ + Example: + {'scan_id': 'scan_id'} + Attributes: scan_id (str): """ diff --git a/threatstryker/models/model_sbom_response.py b/threatstryker/models/model_sbom_response.py index 63722a1..73c4a47 100644 --- a/threatstryker/models/model_sbom_response.py +++ b/threatstryker/models/model_sbom_response.py @@ -11,6 +11,10 @@ @_attrs_define class ModelSbomResponse: """ + Example: + {'severity': 'severity', 'licenses': ['licenses', 'licenses'], 'cve_id': 'cve_id', 'package_name': + 'package_name', 'cve_node_id': 'cve_node_id', 'locations': ['locations', 'locations'], 'version': 'version'} + Attributes: cve_id (Union[Unset, str]): cve_node_id (Union[Unset, str]): diff --git a/threatstryker/models/model_scan_compare_req.py b/threatstryker/models/model_scan_compare_req.py index c87ff1c..9497c8c 100644 --- a/threatstryker/models/model_scan_compare_req.py +++ b/threatstryker/models/model_scan_compare_req.py @@ -14,11 +14,26 @@ @_attrs_define class ModelScanCompareReq: """ + Example: + {'to_scan_id': 'to_scan_id', 'base_scan_id': 'base_scan_id', 'window': {'offset': 0, 'size': 6}, + 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': + {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}} + Attributes: base_scan_id (str): - fields_filter (ReportersFieldsFilters): + fields_filter (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. to_scan_id (str): - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ base_scan_id: str diff --git a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_cloud_compliance.py b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_cloud_compliance.py index 92df36c..8a1d2b9 100644 --- a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_cloud_compliance.py +++ b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_cloud_compliance.py @@ -13,6 +13,26 @@ @_attrs_define class ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelCloudCompliance: """ + Example: + {'new': [{'severity': 'severity', 'reason': 'reason', 'control_id': 'control_id', 'resource': 'resource', + 'masked': True, 'count': 0, 'node_name': 'node_name', 'description': 'description', 'resources': [{'node_type': + 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': + 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'cloud_provider': 'cloud_provider', 'title': 'title', 'type': 'type', + 'compliance_check_type': 'hipaa', 'account_id': 'account_id', 'updated_at': 6, 'service': 'service', 'region': + 'region', 'group': 'group', 'node_id': 'node_id', 'status': 'alarm'}, {'severity': 'severity', 'reason': + 'reason', 'control_id': 'control_id', 'resource': 'resource', 'masked': True, 'count': 0, 'node_name': + 'node_name', 'description': 'description', 'resources': [{'node_type': 'node_type', 'live_secrets': + ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': + 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': + 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': + 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], + 'cloud_provider': 'cloud_provider', 'title': 'title', 'type': 'type', 'compliance_check_type': 'hipaa', + 'account_id': 'account_id', 'updated_at': 6, 'service': 'service', 'region': 'region', 'group': 'group', + 'node_id': 'node_id', 'status': 'alarm'}]} + Attributes: new (Union[List['ModelCloudCompliance'], None]): """ diff --git a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_compliance.py b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_compliance.py index 0d36ab5..c135482 100644 --- a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_compliance.py +++ b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_compliance.py @@ -13,6 +13,27 @@ @_attrs_define class ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelCompliance: """ + Example: + {'new': [{'resource': 'resource', 'masked': True, 'description': 'description', 'resources': [{'node_type': + 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': + 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'test_category': 'test_category', 'remediation_ansible': 'remediation_ansible', + 'compliance_check_type': 'hipaa', 'rule_id': 'rule_id', 'test_rationale': 'test_rationale', 'test_severity': + 'test_severity', 'node_type': 'node_type', 'updated_at': 0, 'remediation_puppet': 'remediation_puppet', + 'remediation_script': 'remediation_script', 'node_id': 'node_id', 'status': 'pass', 'test_desc': 'test_desc', + 'test_number': 'test_number'}, {'resource': 'resource', 'masked': True, 'description': 'description', + 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': + ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', + 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': ['live_secrets', + 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', + 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'test_category': 'test_category', + 'remediation_ansible': 'remediation_ansible', 'compliance_check_type': 'hipaa', 'rule_id': 'rule_id', + 'test_rationale': 'test_rationale', 'test_severity': 'test_severity', 'node_type': 'node_type', 'updated_at': 0, + 'remediation_puppet': 'remediation_puppet', 'remediation_script': 'remediation_script', 'node_id': 'node_id', + 'status': 'pass', 'test_desc': 'test_desc', 'test_number': 'test_number'}]} + Attributes: new (Union[List['ModelCompliance'], None]): """ diff --git a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_malware.py b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_malware.py index 2950911..7bc901f 100644 --- a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_malware.py +++ b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_malware.py @@ -13,6 +13,27 @@ @_attrs_define class ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelMalware: """ + Example: + {'new': [{'date': 'date', 'summary': 'summary', 'filetype': 'filetype', 'image_layer_id': 'image_layer_id', + 'rule_name': 'rule_name', 'author': 'author', 'masked': True, 'file_sev_score': 6, 'file_severity': 'critical', + 'strings_to_match': ['', ''], 'description': 'description', 'resources': [{'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'version': 'version', 'rule_id': 'rule_id', 'complete_filename': 'complete_filename', + 'class': 'class', 'exploitability_score': 0, 'max_exploitability_score': 1, 'info': 'info', 'node_id': + 'node_id', 'severity_score': 5}, {'date': 'date', 'summary': 'summary', 'filetype': 'filetype', + 'image_layer_id': 'image_layer_id', 'rule_name': 'rule_name', 'author': 'author', 'masked': True, + 'file_sev_score': 6, 'file_severity': 'critical', 'strings_to_match': ['', ''], 'description': 'description', + 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': + ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', + 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': ['live_secrets', + 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', + 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'version': 'version', 'rule_id': + 'rule_id', 'complete_filename': 'complete_filename', 'class': 'class', 'exploitability_score': 0, + 'max_exploitability_score': 1, 'info': 'info', 'node_id': 'node_id', 'severity_score': 5}]} + Attributes: new (Union[List['ModelMalware'], None]): """ diff --git a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_secret.py b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_secret.py index d7fced3..3b35745 100644 --- a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_secret.py +++ b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_secret.py @@ -13,6 +13,23 @@ @_attrs_define class ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelSecret: """ + Example: + {'new': [{'rule_id': 'rule_id', 'score': 1.4658129805029452, 'full_filename': 'full_filename', + 'matched_content': 'matched_content', 'updated_at': 5, 'level': 'critical', 'masked': True, 'starting_index': 5, + 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': + ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', + 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': ['live_secrets', + 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', + 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'exploitability_score': 0, + 'max_exploitability_score': 6, 'node_id': 'node_id'}, {'rule_id': 'rule_id', 'score': 1.4658129805029452, + 'full_filename': 'full_filename', 'matched_content': 'matched_content', 'updated_at': 5, 'level': 'critical', + 'masked': True, 'starting_index': 5, 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', + 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', + 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], + 'exploitability_score': 0, 'max_exploitability_score': 6, 'node_id': 'node_id'}]} + Attributes: new (Union[List['ModelSecret'], None]): """ diff --git a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_vulnerability.py b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_vulnerability.py index d0476d5..77133c5 100644 --- a/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_vulnerability.py +++ b/threatstryker/models/model_scan_compare_res_github_com_deepfence_threat_mapper_deepfence_server_model_vulnerability.py @@ -13,6 +13,33 @@ @_attrs_define class ModelScanCompareResGithubComDeepfenceThreatMapperDeepfenceServerModelVulnerability: """ + Example: + {'new': [{'epss_score': 1.4658129805029452, 'parsed_attack_vector': 'parsed_attack_vector', + 'cve_container_layer': 'cve_container_layer', 'masked': True, 'cve_caused_by_package': 'cve_caused_by_package', + 'cisa_kev': True, 'urls': ['', ''], 'cve_severity': 'critical', 'cve_caused_by_package_path': + 'cve_caused_by_package_path', 'updated_at': 2, 'max_exploitability_score': 5, 'cve_description': + 'cve_description', 'cve_overall_score': 6.027456183070403, 'resources': [{'node_type': 'node_type', + 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', + 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'cve_attack_vector': 'cve_attack_vector', 'cve_cvss_score': 0.8008281904610115, + 'rule_id': 'rule_id', 'cve_id': 'cve_id', 'exploit_poc': 'exploit_poc', 'namespace': 'namespace', 'cve_type': + 'cve_type', 'has_live_connection': True, 'cve_fixed_in': 'cve_fixed_in', 'cve_link': 'cve_link', + 'exploitability_score': 5, 'node_id': 'node_id'}, {'epss_score': 1.4658129805029452, 'parsed_attack_vector': + 'parsed_attack_vector', 'cve_container_layer': 'cve_container_layer', 'masked': True, 'cve_caused_by_package': + 'cve_caused_by_package', 'cisa_kev': True, 'urls': ['', ''], 'cve_severity': 'critical', + 'cve_caused_by_package_path': 'cve_caused_by_package_path', 'updated_at': 2, 'max_exploitability_score': 5, + 'cve_description': 'cve_description', 'cve_overall_score': 6.027456183070403, 'resources': [{'node_type': + 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': + 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'cve_attack_vector': 'cve_attack_vector', 'cve_cvss_score': 0.8008281904610115, + 'rule_id': 'rule_id', 'cve_id': 'cve_id', 'exploit_poc': 'exploit_poc', 'namespace': 'namespace', 'cve_type': + 'cve_type', 'has_live_connection': True, 'cve_fixed_in': 'cve_fixed_in', 'cve_link': 'cve_link', + 'exploitability_score': 5, 'node_id': 'node_id'}]} + Attributes: new (Union[List['ModelVulnerability'], None]): """ diff --git a/threatstryker/models/model_scan_filter.py b/threatstryker/models/model_scan_filter.py index 30debeb..e0dd7f7 100644 --- a/threatstryker/models/model_scan_filter.py +++ b/threatstryker/models/model_scan_filter.py @@ -13,12 +13,17 @@ @_attrs_define class ModelScanFilter: """ + Example: + {'container_scan_filter': {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': + ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': + {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': ['', '']}}} + Attributes: - cloud_account_scan_filter (ReportersContainsFilter): - container_scan_filter (ReportersContainsFilter): - host_scan_filter (ReportersContainsFilter): - image_scan_filter (ReportersContainsFilter): - kubernetes_cluster_scan_filter (ReportersContainsFilter): + cloud_account_scan_filter (ReportersContainsFilter): Example: {'filter_in': {'key': ['', '']}}. + container_scan_filter (ReportersContainsFilter): Example: {'filter_in': {'key': ['', '']}}. + host_scan_filter (ReportersContainsFilter): Example: {'filter_in': {'key': ['', '']}}. + image_scan_filter (ReportersContainsFilter): Example: {'filter_in': {'key': ['', '']}}. + kubernetes_cluster_scan_filter (ReportersContainsFilter): Example: {'filter_in': {'key': ['', '']}}. """ cloud_account_scan_filter: "ReportersContainsFilter" diff --git a/threatstryker/models/model_scan_info.py b/threatstryker/models/model_scan_info.py index d831a23..9312d45 100644 --- a/threatstryker/models/model_scan_info.py +++ b/threatstryker/models/model_scan_info.py @@ -15,6 +15,10 @@ @_attrs_define class ModelScanInfo: """ + Example: + {'severity_counts': {'key': 6}, 'status_message': 'status_message', 'node_type': 'node_type', 'updated_at': 1, + 'node_name': 'node_name', 'created_at': 0, 'scan_id': 'scan_id', 'node_id': 'node_id', 'status': 'COMPLETE'} + Attributes: created_at (int): node_id (str): diff --git a/threatstryker/models/model_scan_list_req.py b/threatstryker/models/model_scan_list_req.py index 3ef5711..d2012ab 100644 --- a/threatstryker/models/model_scan_list_req.py +++ b/threatstryker/models/model_scan_list_req.py @@ -15,10 +15,26 @@ @_attrs_define class ModelScanListReq: """ + Example: + {'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': True, 'field_value': + '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]} + Attributes: - fields_filter (ReportersFieldsFilters): + fields_filter (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. node_ids (Union[List['ModelNodeIdentifier'], None]): - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ fields_filter: "ReportersFieldsFilters" diff --git a/threatstryker/models/model_scan_list_resp.py b/threatstryker/models/model_scan_list_resp.py index 1a7f4aa..43ce0ad 100644 --- a/threatstryker/models/model_scan_list_resp.py +++ b/threatstryker/models/model_scan_list_resp.py @@ -13,6 +13,13 @@ @_attrs_define class ModelScanListResp: """ + Example: + {'scans_info': [{'severity_counts': {'key': 6}, 'status_message': 'status_message', 'node_type': 'node_type', + 'updated_at': 1, 'node_name': 'node_name', 'created_at': 0, 'scan_id': 'scan_id', 'node_id': 'node_id', + 'status': 'COMPLETE'}, {'severity_counts': {'key': 6}, 'status_message': 'status_message', 'node_type': + 'node_type', 'updated_at': 1, 'node_name': 'node_name', 'created_at': 0, 'scan_id': 'scan_id', 'node_id': + 'node_id', 'status': 'COMPLETE'}]} + Attributes: scans_info (Union[List['ModelScanInfo'], None]): """ diff --git a/threatstryker/models/model_scan_report_fields_response.py b/threatstryker/models/model_scan_report_fields_response.py index d79731e..f8bd79a 100644 --- a/threatstryker/models/model_scan_report_fields_response.py +++ b/threatstryker/models/model_scan_report_fields_response.py @@ -11,6 +11,10 @@ @_attrs_define class ModelScanReportFieldsResponse: """ + Example: + {'malware': ['malware', 'malware'], 'compliance': ['compliance', 'compliance'], 'secret': ['secret', 'secret'], + 'vulnerability': ['vulnerability', 'vulnerability']} + Attributes: compliance (Union[List[str], None, Unset]): malware (Union[List[str], None, Unset]): diff --git a/threatstryker/models/model_scan_result_basic_node.py b/threatstryker/models/model_scan_result_basic_node.py index ed2876f..3180160 100644 --- a/threatstryker/models/model_scan_result_basic_node.py +++ b/threatstryker/models/model_scan_result_basic_node.py @@ -13,6 +13,13 @@ @_attrs_define class ModelScanResultBasicNode: """ + Example: + {'basic_nodes': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': + ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', + 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': ['live_secrets', + 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', + 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'result_id': 'result_id'} + Attributes: basic_nodes (Union[List['ModelBasicNode'], None]): result_id (str): diff --git a/threatstryker/models/model_scan_results_action_request.py b/threatstryker/models/model_scan_results_action_request.py index 542e4a5..3cb2525 100644 --- a/threatstryker/models/model_scan_results_action_request.py +++ b/threatstryker/models/model_scan_results_action_request.py @@ -12,6 +12,10 @@ @_attrs_define class ModelScanResultsActionRequest: """ + Example: + {'notify_individual': True, 'result_ids': ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': + 'scan_id', 'integration_ids': [0, 0]} + Attributes: result_ids (Union[List[str], None]): scan_id (str): diff --git a/threatstryker/models/model_scan_results_common.py b/threatstryker/models/model_scan_results_common.py index c28e93e..681acd8 100644 --- a/threatstryker/models/model_scan_results_common.py +++ b/threatstryker/models/model_scan_results_common.py @@ -9,6 +9,12 @@ @_attrs_define class ModelScanResultsCommon: """ + Example: + {'cloud_account_id': 'cloud_account_id', 'node_type': 'node_type', 'docker_container_name': + 'docker_container_name', 'updated_at': 6, 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'node_name': + 'node_name', 'created_at': 0, 'scan_id': 'scan_id', 'docker_image_name': 'docker_image_name', 'host_name': + 'host_name', 'node_id': 'node_id'} + Attributes: cloud_account_id (str): created_at (int): diff --git a/threatstryker/models/model_scan_results_mask_request.py b/threatstryker/models/model_scan_results_mask_request.py index c917063..7532bc0 100644 --- a/threatstryker/models/model_scan_results_mask_request.py +++ b/threatstryker/models/model_scan_results_mask_request.py @@ -12,6 +12,10 @@ @_attrs_define class ModelScanResultsMaskRequest: """ + Example: + {'mask_action': 'mask_global', 'result_ids': ['result_ids', 'result_ids'], 'scan_type': 'SecretScan', 'scan_id': + 'scan_id'} + Attributes: mask_action (ModelScanResultsMaskRequestMaskAction): result_ids (Union[List[str], None]): diff --git a/threatstryker/models/model_scan_results_req.py b/threatstryker/models/model_scan_results_req.py index 91d6ee0..8cfa461 100644 --- a/threatstryker/models/model_scan_results_req.py +++ b/threatstryker/models/model_scan_results_req.py @@ -14,10 +14,25 @@ @_attrs_define class ModelScanResultsReq: """ + Example: + {'scan_id': 'scan_id', 'window': {'offset': 0, 'size': 6}, 'fields_filter': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': + {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}} + Attributes: - fields_filter (ReportersFieldsFilters): + fields_filter (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. scan_id (str): - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ fields_filter: "ReportersFieldsFilters" diff --git a/threatstryker/models/model_scan_status_req.py b/threatstryker/models/model_scan_status_req.py index fabab65..1e05cb2 100644 --- a/threatstryker/models/model_scan_status_req.py +++ b/threatstryker/models/model_scan_status_req.py @@ -9,6 +9,9 @@ @_attrs_define class ModelScanStatusReq: """ + Example: + {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': ['scan_ids', 'scan_ids']} + Attributes: bulk_scan_id (str): scan_ids (Union[List[str], None]): diff --git a/threatstryker/models/model_scan_status_resp.py b/threatstryker/models/model_scan_status_resp.py index 91c9c3b..75242e9 100644 --- a/threatstryker/models/model_scan_status_resp.py +++ b/threatstryker/models/model_scan_status_resp.py @@ -13,6 +13,11 @@ @_attrs_define class ModelScanStatusResp: """ + Example: + {'statuses': {'key': {'severity_counts': {'key': 6}, 'status_message': 'status_message', 'node_type': + 'node_type', 'updated_at': 1, 'node_name': 'node_name', 'created_at': 0, 'scan_id': 'scan_id', 'node_id': + 'node_id', 'status': 'COMPLETE'}}} + Attributes: statuses (Union['ModelScanStatusRespStatusesType0', None]): """ diff --git a/threatstryker/models/model_scan_trigger_resp.py b/threatstryker/models/model_scan_trigger_resp.py index 9a05ad7..6d06f25 100644 --- a/threatstryker/models/model_scan_trigger_resp.py +++ b/threatstryker/models/model_scan_trigger_resp.py @@ -9,6 +9,9 @@ @_attrs_define class ModelScanTriggerResp: """ + Example: + {'bulk_scan_id': 'bulk_scan_id', 'scan_ids': ['scan_ids', 'scan_ids']} + Attributes: bulk_scan_id (str): scan_ids (Union[List[str], None]): diff --git a/threatstryker/models/model_secret.py b/threatstryker/models/model_secret.py index b00ea03..791ce4e 100644 --- a/threatstryker/models/model_secret.py +++ b/threatstryker/models/model_secret.py @@ -16,16 +16,28 @@ @_attrs_define class ModelSecret: """ + Example: + {'rule_id': 'rule_id', 'score': 1.4658129805029452, 'full_filename': 'full_filename', 'matched_content': + 'matched_content', 'updated_at': 5, 'level': 'critical', 'masked': True, 'starting_index': 5, 'resources': + [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': + ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', + 'live_malwares'], 'node_id': 'node_id'}], 'exploitability_score': 0, 'max_exploitability_score': 6, 'node_id': + 'node_id'} + Attributes: full_filename (str): level (ModelSecretLevel): masked (bool): matched_content (str): - name (str): node_id (str): + rule_id (str): score (float): starting_index (int): updated_at (int): + exploitability_score (Union[Unset, int]): + max_exploitability_score (Union[Unset, int]): resources (Union[List['ModelBasicNode'], None, Unset]): """ @@ -33,11 +45,13 @@ class ModelSecret: level: ModelSecretLevel masked: bool matched_content: str - name: str node_id: str + rule_id: str score: float starting_index: int updated_at: int + exploitability_score: Union[Unset, int] = UNSET + max_exploitability_score: Union[Unset, int] = UNSET resources: Union[List["ModelBasicNode"], None, Unset] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -50,16 +64,20 @@ def to_dict(self) -> Dict[str, Any]: matched_content = self.matched_content - name = self.name - node_id = self.node_id + rule_id = self.rule_id + score = self.score starting_index = self.starting_index updated_at = self.updated_at + exploitability_score = self.exploitability_score + + max_exploitability_score = self.max_exploitability_score + resources: Union[List[Dict[str, Any]], None, Unset] if isinstance(self.resources, Unset): resources = UNSET @@ -80,13 +98,17 @@ def to_dict(self) -> Dict[str, Any]: "level": level, "masked": masked, "matched_content": matched_content, - "name": name, "node_id": node_id, + "rule_id": rule_id, "score": score, "starting_index": starting_index, "updated_at": updated_at, } ) + if exploitability_score is not UNSET: + field_dict["exploitability_score"] = exploitability_score + if max_exploitability_score is not UNSET: + field_dict["max_exploitability_score"] = max_exploitability_score if resources is not UNSET: field_dict["resources"] = resources @@ -105,16 +127,20 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: matched_content = d.pop("matched_content") - name = d.pop("name") - node_id = d.pop("node_id") + rule_id = d.pop("rule_id") + score = d.pop("score") starting_index = d.pop("starting_index") updated_at = d.pop("updated_at") + exploitability_score = d.pop("exploitability_score", UNSET) + + max_exploitability_score = d.pop("max_exploitability_score", UNSET) + def _parse_resources(data: object) -> Union[List["ModelBasicNode"], None, Unset]: if data is None: return data @@ -142,11 +168,13 @@ def _parse_resources(data: object) -> Union[List["ModelBasicNode"], None, Unset] level=level, masked=masked, matched_content=matched_content, - name=name, node_id=node_id, + rule_id=rule_id, score=score, starting_index=starting_index, updated_at=updated_at, + exploitability_score=exploitability_score, + max_exploitability_score=max_exploitability_score, resources=resources, ) diff --git a/threatstryker/models/model_secret_rule.py b/threatstryker/models/model_secret_rule.py index b00fa11..419ffad 100644 --- a/threatstryker/models/model_secret_rule.py +++ b/threatstryker/models/model_secret_rule.py @@ -11,22 +11,30 @@ @_attrs_define class ModelSecretRule: """ + Example: + {'rule_id': 'rule_id', 'severity': 'severity', 'summary': 'summary', 'updated_at': 0, 'level': 'level', + 'payload': 'payload', 'masked': True, 'part': 'part', 'signature_to_match': 'signature_to_match'} + Attributes: level (str): masked (bool): + payload (str): + severity (str): + summary (str): updated_at (int): - id (Union[Unset, int]): - name (Union[Unset, str]): part (Union[Unset, str]): + rule_id (Union[Unset, str]): signature_to_match (Union[Unset, str]): """ level: str masked: bool + payload: str + severity: str + summary: str updated_at: int - id: Union[Unset, int] = UNSET - name: Union[Unset, str] = UNSET part: Union[Unset, str] = UNSET + rule_id: Union[Unset, str] = UNSET signature_to_match: Union[Unset, str] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -35,14 +43,18 @@ def to_dict(self) -> Dict[str, Any]: masked = self.masked - updated_at = self.updated_at + payload = self.payload - id = self.id + severity = self.severity - name = self.name + summary = self.summary + + updated_at = self.updated_at part = self.part + rule_id = self.rule_id + signature_to_match = self.signature_to_match field_dict: Dict[str, Any] = {} @@ -51,15 +63,16 @@ def to_dict(self) -> Dict[str, Any]: { "level": level, "masked": masked, + "payload": payload, + "severity": severity, + "summary": summary, "updated_at": updated_at, } ) - if id is not UNSET: - field_dict["id"] = id - if name is not UNSET: - field_dict["name"] = name if part is not UNSET: field_dict["part"] = part + if rule_id is not UNSET: + field_dict["rule_id"] = rule_id if signature_to_match is not UNSET: field_dict["signature_to_match"] = signature_to_match @@ -72,23 +85,29 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: masked = d.pop("masked") - updated_at = d.pop("updated_at") + payload = d.pop("payload") + + severity = d.pop("severity") - id = d.pop("id", UNSET) + summary = d.pop("summary") - name = d.pop("name", UNSET) + updated_at = d.pop("updated_at") part = d.pop("part", UNSET) + rule_id = d.pop("rule_id", UNSET) + signature_to_match = d.pop("signature_to_match", UNSET) model_secret_rule = cls( level=level, masked=masked, + payload=payload, + severity=severity, + summary=summary, updated_at=updated_at, - id=id, - name=name, part=part, + rule_id=rule_id, signature_to_match=signature_to_match, ) diff --git a/threatstryker/models/model_secret_scan_result.py b/threatstryker/models/model_secret_scan_result.py index ab57e3e..f097215 100644 --- a/threatstryker/models/model_secret_scan_result.py +++ b/threatstryker/models/model_secret_scan_result.py @@ -14,6 +14,26 @@ @_attrs_define class ModelSecretScanResult: """ + Example: + {'severity_counts': {'key': 6}, 'docker_container_name': 'docker_container_name', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'node_name': 'node_name', 'created_at': 0, 'secrets': [{'rule_id': 'rule_id', + 'score': 1.4658129805029452, 'full_filename': 'full_filename', 'matched_content': 'matched_content', + 'updated_at': 5, 'level': 'critical', 'masked': True, 'starting_index': 5, 'resources': [{'node_type': + 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': + 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, + {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}], 'exploitability_score': 0, 'max_exploitability_score': 6, 'node_id': 'node_id'}, + {'rule_id': 'rule_id', 'score': 1.4658129805029452, 'full_filename': 'full_filename', 'matched_content': + 'matched_content', 'updated_at': 5, 'level': 'critical', 'masked': True, 'starting_index': 5, 'resources': + [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', + 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], + 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': + ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', + 'live_malwares'], 'node_id': 'node_id'}], 'exploitability_score': 0, 'max_exploitability_score': 6, 'node_id': + 'node_id'}], 'cloud_account_id': 'cloud_account_id', 'node_type': 'node_type', 'updated_at': 1, 'scan_id': + 'scan_id', 'docker_image_name': 'docker_image_name', 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: cloud_account_id (str): created_at (int): diff --git a/threatstryker/models/model_secret_scan_result_rules.py b/threatstryker/models/model_secret_scan_result_rules.py index 7383870..9d1a489 100644 --- a/threatstryker/models/model_secret_scan_result_rules.py +++ b/threatstryker/models/model_secret_scan_result_rules.py @@ -9,6 +9,9 @@ @_attrs_define class ModelSecretScanResultRules: """ + Example: + {'rules': ['rules', 'rules']} + Attributes: rules (Union[List[str], None]): """ diff --git a/threatstryker/models/model_secret_scan_trigger_req.py b/threatstryker/models/model_secret_scan_trigger_req.py index 17eb00a..20b9646 100644 --- a/threatstryker/models/model_secret_scan_trigger_req.py +++ b/threatstryker/models/model_secret_scan_trigger_req.py @@ -16,8 +16,18 @@ @_attrs_define class ModelSecretScanTriggerReq: """ + Example: + {'is_priority': True, 'deepfence_system_scan': True, 'filters': {'container_scan_filter': {'filter_in': {'key': + ['', '']}}, 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': + {'key': ['', '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': + {'filter_in': {'key': ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': + 'image', 'node_id': 'node_id'}]} + Attributes: - filters (ModelScanFilter): + filters (ModelScanFilter): Example: {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', + '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': + {'key': ['', '']}}}. node_ids (Union[List['ModelNodeIdentifier'], None]): deepfence_system_scan (Union[Unset, bool]): is_priority (Union[Unset, bool]): diff --git a/threatstryker/models/model_stop_scan_request.py b/threatstryker/models/model_stop_scan_request.py index 7dcfcdf..a62e9fc 100644 --- a/threatstryker/models/model_stop_scan_request.py +++ b/threatstryker/models/model_stop_scan_request.py @@ -11,6 +11,9 @@ @_attrs_define class ModelStopScanRequest: """ + Example: + {'scan_ids': ['scan_ids', 'scan_ids'], 'scan_type': 'SecretScan'} + Attributes: scan_ids (Union[List[str], None]): scan_type (ModelStopScanRequestScanType): diff --git a/threatstryker/models/model_summary.py b/threatstryker/models/model_summary.py index 6cd6b43..825060d 100644 --- a/threatstryker/models/model_summary.py +++ b/threatstryker/models/model_summary.py @@ -11,6 +11,9 @@ @_attrs_define class ModelSummary: """ + Example: + {'images': 0, 'repositories': 1, 'scans_total': 2, 'registries': 6, 'scans_complete': 5, 'scans_in_progress': 5} + Attributes: images (Union[Unset, int]): registries (Union[Unset, int]): diff --git a/threatstryker/models/model_topology_delta_req.py b/threatstryker/models/model_topology_delta_req.py index 231f95c..ed71064 100644 --- a/threatstryker/models/model_topology_delta_req.py +++ b/threatstryker/models/model_topology_delta_req.py @@ -9,6 +9,10 @@ @_attrs_define class ModelTopologyDeltaReq: """ + Example: + {'deletion': True, 'entity_types': ['entity_types', 'entity_types'], 'deletion_timestamp': 6, + 'addition_timestamp': 0, 'addition': True} + Attributes: addition (bool): addition_timestamp (int): diff --git a/threatstryker/models/model_topology_delta_response.py b/threatstryker/models/model_topology_delta_response.py index 4e96cf5..a548e14 100644 --- a/threatstryker/models/model_topology_delta_response.py +++ b/threatstryker/models/model_topology_delta_response.py @@ -15,6 +15,11 @@ @_attrs_define class ModelTopologyDeltaResponse: """ + Example: + {'deletions': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}], + 'additons': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': 'node_id'}], + 'deletion_timestamp': 6, 'addition_timestamp': 0} + Attributes: addition_timestamp (Union[Unset, int]): additons (Union[List['ModelNodeIdentifier'], None, Unset]): diff --git a/threatstryker/models/model_update_scheduled_task_request.py b/threatstryker/models/model_update_scheduled_task_request.py index 9744e7f..cb0c51a 100644 --- a/threatstryker/models/model_update_scheduled_task_request.py +++ b/threatstryker/models/model_update_scheduled_task_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelUpdateScheduledTaskRequest: """ + Example: + {'is_enabled': True} + Attributes: is_enabled (bool): """ diff --git a/threatstryker/models/model_update_user_id_request.py b/threatstryker/models/model_update_user_id_request.py index 90f3b27..3d5b45e 100644 --- a/threatstryker/models/model_update_user_id_request.py +++ b/threatstryker/models/model_update_user_id_request.py @@ -12,6 +12,9 @@ @_attrs_define class ModelUpdateUserIDRequest: """ + Example: + {'is_active': True, 'role': 'admin', 'last_name': 'last_name', 'first_name': 'first_name'} + Attributes: first_name (Union[Unset, str]): is_active (Union[Unset, bool]): diff --git a/threatstryker/models/model_update_user_password_request.py b/threatstryker/models/model_update_user_password_request.py index 00cb2bc..e74b5ce 100644 --- a/threatstryker/models/model_update_user_password_request.py +++ b/threatstryker/models/model_update_user_password_request.py @@ -9,6 +9,9 @@ @_attrs_define class ModelUpdateUserPasswordRequest: """ + Example: + {'old_password': 'old_password', 'new_password': 'new_password'} + Attributes: new_password (str): old_password (str): diff --git a/threatstryker/models/model_update_user_request.py b/threatstryker/models/model_update_user_request.py index 4366bec..3599f0e 100644 --- a/threatstryker/models/model_update_user_request.py +++ b/threatstryker/models/model_update_user_request.py @@ -12,6 +12,9 @@ @_attrs_define class ModelUpdateUserRequest: """ + Example: + {'is_active': True, 'role': 'admin', 'last_name': 'last_name', 'first_name': 'first_name'} + Attributes: first_name (Union[Unset, str]): is_active (Union[Unset, bool]): diff --git a/threatstryker/models/model_user.py b/threatstryker/models/model_user.py index ca5bb52..324bbba 100644 --- a/threatstryker/models/model_user.py +++ b/threatstryker/models/model_user.py @@ -16,6 +16,11 @@ @_attrs_define class ModelUser: """ + Example: + {'is_active': True, 'role': 'admin', 'company_id': 0, 'role_id': 1, 'groups': {'key': 'groups'}, 'last_name': + 'last_name', 'company': 'company', 'id': 6, 'password_invalidated': True, 'first_name': 'first_name', 'email': + 'email', 'current_user': True} + Attributes: company (str): email (str): diff --git a/threatstryker/models/model_user_register_request.py b/threatstryker/models/model_user_register_request.py index 9f7eb32..2dfb4fb 100644 --- a/threatstryker/models/model_user_register_request.py +++ b/threatstryker/models/model_user_register_request.py @@ -11,6 +11,10 @@ @_attrs_define class ModelUserRegisterRequest: """ + Example: + {'password': 'password', 'console_url': 'console_url', 'namespace': 'namespace', 'last_name': 'last_name', + 'company': 'company', 'first_name': 'first_name', 'is_temporary_password': True, 'email': 'email'} + Attributes: company (str): console_url (str): diff --git a/threatstryker/models/model_vulnerability.py b/threatstryker/models/model_vulnerability.py index 0988a60..b7e2ca0 100644 --- a/threatstryker/models/model_vulnerability.py +++ b/threatstryker/models/model_vulnerability.py @@ -16,7 +16,22 @@ @_attrs_define class ModelVulnerability: """ + Example: + {'epss_score': 1.4658129805029452, 'parsed_attack_vector': 'parsed_attack_vector', 'cve_container_layer': + 'cve_container_layer', 'masked': True, 'cve_caused_by_package': 'cve_caused_by_package', 'cisa_kev': True, + 'urls': ['', ''], 'cve_severity': 'critical', 'cve_caused_by_package_path': 'cve_caused_by_package_path', + 'updated_at': 2, 'max_exploitability_score': 5, 'cve_description': 'cve_description', 'cve_overall_score': + 6.027456183070403, 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], + 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': + ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': + ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': + 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'cve_attack_vector': + 'cve_attack_vector', 'cve_cvss_score': 0.8008281904610115, 'rule_id': 'rule_id', 'cve_id': 'cve_id', + 'exploit_poc': 'exploit_poc', 'namespace': 'namespace', 'cve_type': 'cve_type', 'has_live_connection': True, + 'cve_fixed_in': 'cve_fixed_in', 'cve_link': 'cve_link', 'exploitability_score': 5, 'node_id': 'node_id'} + Attributes: + cisa_kev (bool): cve_attack_vector (str): cve_caused_by_package (str): cve_caused_by_package_path (str): @@ -29,17 +44,22 @@ class ModelVulnerability: cve_overall_score (float): cve_severity (ModelVulnerabilityCveSeverity): cve_type (str): + epss_score (float): exploit_poc (str): has_live_connection (bool): masked (bool): + namespace (str): node_id (str): parsed_attack_vector (str): rule_id (str): updated_at (int): urls (Union[List[Any], None]): + exploitability_score (Union[Unset, int]): + max_exploitability_score (Union[Unset, int]): resources (Union[List['ModelBasicNode'], None, Unset]): """ + cisa_kev: bool cve_attack_vector: str cve_caused_by_package: str cve_caused_by_package_path: str @@ -52,18 +72,24 @@ class ModelVulnerability: cve_overall_score: float cve_severity: ModelVulnerabilityCveSeverity cve_type: str + epss_score: float exploit_poc: str has_live_connection: bool masked: bool + namespace: str node_id: str parsed_attack_vector: str rule_id: str updated_at: int urls: Union[List[Any], None] + exploitability_score: Union[Unset, int] = UNSET + max_exploitability_score: Union[Unset, int] = UNSET resources: Union[List["ModelBasicNode"], None, Unset] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: + cisa_kev = self.cisa_kev + cve_attack_vector = self.cve_attack_vector cve_caused_by_package = self.cve_caused_by_package @@ -88,12 +114,16 @@ def to_dict(self) -> Dict[str, Any]: cve_type = self.cve_type + epss_score = self.epss_score + exploit_poc = self.exploit_poc has_live_connection = self.has_live_connection masked = self.masked + namespace = self.namespace + node_id = self.node_id parsed_attack_vector = self.parsed_attack_vector @@ -109,6 +139,10 @@ def to_dict(self) -> Dict[str, Any]: else: urls = self.urls + exploitability_score = self.exploitability_score + + max_exploitability_score = self.max_exploitability_score + resources: Union[List[Dict[str, Any]], None, Unset] if isinstance(self.resources, Unset): resources = UNSET @@ -125,6 +159,7 @@ def to_dict(self) -> Dict[str, Any]: field_dict.update(self.additional_properties) field_dict.update( { + "cisa_kev": cisa_kev, "cve_attack_vector": cve_attack_vector, "cve_caused_by_package": cve_caused_by_package, "cve_caused_by_package_path": cve_caused_by_package_path, @@ -137,9 +172,11 @@ def to_dict(self) -> Dict[str, Any]: "cve_overall_score": cve_overall_score, "cve_severity": cve_severity, "cve_type": cve_type, + "epss_score": epss_score, "exploit_poc": exploit_poc, "has_live_connection": has_live_connection, "masked": masked, + "namespace": namespace, "node_id": node_id, "parsed_attack_vector": parsed_attack_vector, "rule_id": rule_id, @@ -147,6 +184,10 @@ def to_dict(self) -> Dict[str, Any]: "urls": urls, } ) + if exploitability_score is not UNSET: + field_dict["exploitability_score"] = exploitability_score + if max_exploitability_score is not UNSET: + field_dict["max_exploitability_score"] = max_exploitability_score if resources is not UNSET: field_dict["resources"] = resources @@ -157,6 +198,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: from ..models.model_basic_node import ModelBasicNode d = src_dict.copy() + cisa_kev = d.pop("cisa_kev") + cve_attack_vector = d.pop("cve_attack_vector") cve_caused_by_package = d.pop("cve_caused_by_package") @@ -181,12 +224,16 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: cve_type = d.pop("cve_type") + epss_score = d.pop("epss_score") + exploit_poc = d.pop("exploit_poc") has_live_connection = d.pop("has_live_connection") masked = d.pop("masked") + namespace = d.pop("namespace") + node_id = d.pop("node_id") parsed_attack_vector = d.pop("parsed_attack_vector") @@ -210,6 +257,10 @@ def _parse_urls(data: object) -> Union[List[Any], None]: urls = _parse_urls(d.pop("urls")) + exploitability_score = d.pop("exploitability_score", UNSET) + + max_exploitability_score = d.pop("max_exploitability_score", UNSET) + def _parse_resources(data: object) -> Union[List["ModelBasicNode"], None, Unset]: if data is None: return data @@ -233,6 +284,7 @@ def _parse_resources(data: object) -> Union[List["ModelBasicNode"], None, Unset] resources = _parse_resources(d.pop("resources", UNSET)) model_vulnerability = cls( + cisa_kev=cisa_kev, cve_attack_vector=cve_attack_vector, cve_caused_by_package=cve_caused_by_package, cve_caused_by_package_path=cve_caused_by_package_path, @@ -245,14 +297,18 @@ def _parse_resources(data: object) -> Union[List["ModelBasicNode"], None, Unset] cve_overall_score=cve_overall_score, cve_severity=cve_severity, cve_type=cve_type, + epss_score=epss_score, exploit_poc=exploit_poc, has_live_connection=has_live_connection, masked=masked, + namespace=namespace, node_id=node_id, parsed_attack_vector=parsed_attack_vector, rule_id=rule_id, updated_at=updated_at, urls=urls, + exploitability_score=exploitability_score, + max_exploitability_score=max_exploitability_score, resources=resources, ) diff --git a/threatstryker/models/model_vulnerability_rule.py b/threatstryker/models/model_vulnerability_rule.py index 1524638..9d551c1 100644 --- a/threatstryker/models/model_vulnerability_rule.py +++ b/threatstryker/models/model_vulnerability_rule.py @@ -15,73 +15,163 @@ @_attrs_define class ModelVulnerabilityRule: """ + Example: + {'cve_descriptions': ['cve_descriptions', 'cve_descriptions'], 'cve_types': ['cve_types', 'cve_types'], + 'epss_score': 0.8008281904610115, 'masked': True, 'resources': [{'node_type': 'node_type', 'live_secrets': + ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': + 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': + 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': + 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], + 'cve_fixed_ins': ['cve_fixed_ins', 'cve_fixed_ins'], 'cve_severities': ['cve_severities', 'cve_severities'], + 'cisa_kev': True, 'urls': ['urls', 'urls'], 'cve_overall_scores': ['', ''], 'parsed_attack_vectors': + ['parsed_attack_vectors', 'parsed_attack_vectors'], 'updated_at': 6, 'cve_id': 'cve_id', 'package_names': + ['package_names', 'package_names'], 'cve_attack_vectors': ['cve_attack_vectors', 'cve_attack_vectors'], + 'cve_cvss_scores': ['', ''], 'cve_links': ['cve_links', 'cve_links'], 'exploit_pocs': ['exploit_pocs', + 'exploit_pocs'], 'namespaces': ['namespaces', 'namespaces'], 'node_id': 'node_id'} + Attributes: - cve_attack_vector (str): - cve_cvss_score (float): - cve_description (str): - cve_fixed_in (str): + cisa_kev (bool): + cve_attack_vectors (Union[List[str], None]): + cve_cvss_scores (Union[List[Any], None]): + cve_descriptions (Union[List[str], None]): + cve_fixed_ins (Union[List[str], None]): cve_id (str): - cve_link (str): - cve_overall_score (float): - cve_severity (str): - cve_type (str): - exploit_poc (str): + cve_links (Union[List[str], None]): + cve_overall_scores (Union[List[Any], None]): + cve_severities (Union[List[str], None]): + cve_types (Union[List[str], None]): + epss_score (float): + exploit_pocs (Union[List[str], None]): masked (bool): + namespaces (Union[List[str], None]): node_id (str): - parsed_attack_vector (str): + package_names (Union[List[str], None]): + parsed_attack_vectors (Union[List[str], None]): updated_at (int): - urls (Union[List[Any], None]): + urls (Union[List[str], None]): resources (Union[List['ModelBasicNode'], None, Unset]): """ - cve_attack_vector: str - cve_cvss_score: float - cve_description: str - cve_fixed_in: str + cisa_kev: bool + cve_attack_vectors: Union[List[str], None] + cve_cvss_scores: Union[List[Any], None] + cve_descriptions: Union[List[str], None] + cve_fixed_ins: Union[List[str], None] cve_id: str - cve_link: str - cve_overall_score: float - cve_severity: str - cve_type: str - exploit_poc: str + cve_links: Union[List[str], None] + cve_overall_scores: Union[List[Any], None] + cve_severities: Union[List[str], None] + cve_types: Union[List[str], None] + epss_score: float + exploit_pocs: Union[List[str], None] masked: bool + namespaces: Union[List[str], None] node_id: str - parsed_attack_vector: str + package_names: Union[List[str], None] + parsed_attack_vectors: Union[List[str], None] updated_at: int - urls: Union[List[Any], None] + urls: Union[List[str], None] resources: Union[List["ModelBasicNode"], None, Unset] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: - cve_attack_vector = self.cve_attack_vector + cisa_kev = self.cisa_kev + + cve_attack_vectors: Union[List[str], None] + if isinstance(self.cve_attack_vectors, list): + cve_attack_vectors = self.cve_attack_vectors + + else: + cve_attack_vectors = self.cve_attack_vectors + + cve_cvss_scores: Union[List[Any], None] + if isinstance(self.cve_cvss_scores, list): + cve_cvss_scores = self.cve_cvss_scores - cve_cvss_score = self.cve_cvss_score + else: + cve_cvss_scores = self.cve_cvss_scores + + cve_descriptions: Union[List[str], None] + if isinstance(self.cve_descriptions, list): + cve_descriptions = self.cve_descriptions + + else: + cve_descriptions = self.cve_descriptions - cve_description = self.cve_description + cve_fixed_ins: Union[List[str], None] + if isinstance(self.cve_fixed_ins, list): + cve_fixed_ins = self.cve_fixed_ins - cve_fixed_in = self.cve_fixed_in + else: + cve_fixed_ins = self.cve_fixed_ins cve_id = self.cve_id - cve_link = self.cve_link + cve_links: Union[List[str], None] + if isinstance(self.cve_links, list): + cve_links = self.cve_links + + else: + cve_links = self.cve_links + + cve_overall_scores: Union[List[Any], None] + if isinstance(self.cve_overall_scores, list): + cve_overall_scores = self.cve_overall_scores + + else: + cve_overall_scores = self.cve_overall_scores + + cve_severities: Union[List[str], None] + if isinstance(self.cve_severities, list): + cve_severities = self.cve_severities + + else: + cve_severities = self.cve_severities + + cve_types: Union[List[str], None] + if isinstance(self.cve_types, list): + cve_types = self.cve_types - cve_overall_score = self.cve_overall_score + else: + cve_types = self.cve_types - cve_severity = self.cve_severity + epss_score = self.epss_score - cve_type = self.cve_type + exploit_pocs: Union[List[str], None] + if isinstance(self.exploit_pocs, list): + exploit_pocs = self.exploit_pocs - exploit_poc = self.exploit_poc + else: + exploit_pocs = self.exploit_pocs masked = self.masked + namespaces: Union[List[str], None] + if isinstance(self.namespaces, list): + namespaces = self.namespaces + + else: + namespaces = self.namespaces + node_id = self.node_id - parsed_attack_vector = self.parsed_attack_vector + package_names: Union[List[str], None] + if isinstance(self.package_names, list): + package_names = self.package_names + + else: + package_names = self.package_names + + parsed_attack_vectors: Union[List[str], None] + if isinstance(self.parsed_attack_vectors, list): + parsed_attack_vectors = self.parsed_attack_vectors + + else: + parsed_attack_vectors = self.parsed_attack_vectors updated_at = self.updated_at - urls: Union[List[Any], None] + urls: Union[List[str], None] if isinstance(self.urls, list): urls = self.urls @@ -104,19 +194,23 @@ def to_dict(self) -> Dict[str, Any]: field_dict.update(self.additional_properties) field_dict.update( { - "cve_attack_vector": cve_attack_vector, - "cve_cvss_score": cve_cvss_score, - "cve_description": cve_description, - "cve_fixed_in": cve_fixed_in, + "cisa_kev": cisa_kev, + "cve_attack_vectors": cve_attack_vectors, + "cve_cvss_scores": cve_cvss_scores, + "cve_descriptions": cve_descriptions, + "cve_fixed_ins": cve_fixed_ins, "cve_id": cve_id, - "cve_link": cve_link, - "cve_overall_score": cve_overall_score, - "cve_severity": cve_severity, - "cve_type": cve_type, - "exploit_poc": exploit_poc, + "cve_links": cve_links, + "cve_overall_scores": cve_overall_scores, + "cve_severities": cve_severities, + "cve_types": cve_types, + "epss_score": epss_score, + "exploit_pocs": exploit_pocs, "masked": masked, + "namespaces": namespaces, "node_id": node_id, - "parsed_attack_vector": parsed_attack_vector, + "package_names": package_names, + "parsed_attack_vectors": parsed_attack_vectors, "updated_at": updated_at, "urls": urls, } @@ -131,46 +225,210 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: from ..models.model_basic_node import ModelBasicNode d = src_dict.copy() - cve_attack_vector = d.pop("cve_attack_vector") + cisa_kev = d.pop("cisa_kev") + + def _parse_cve_attack_vectors(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + cve_attack_vectors_type_0 = cast(List[str], data) + + return cve_attack_vectors_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + cve_attack_vectors = _parse_cve_attack_vectors(d.pop("cve_attack_vectors")) + + def _parse_cve_cvss_scores(data: object) -> Union[List[Any], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + cve_cvss_scores_type_0 = cast(List[Any], data) + + return cve_cvss_scores_type_0 + except: # noqa: E722 + pass + return cast(Union[List[Any], None], data) + + cve_cvss_scores = _parse_cve_cvss_scores(d.pop("cve_cvss_scores")) + + def _parse_cve_descriptions(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + cve_descriptions_type_0 = cast(List[str], data) + + return cve_descriptions_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) - cve_cvss_score = d.pop("cve_cvss_score") + cve_descriptions = _parse_cve_descriptions(d.pop("cve_descriptions")) + + def _parse_cve_fixed_ins(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + cve_fixed_ins_type_0 = cast(List[str], data) - cve_description = d.pop("cve_description") + return cve_fixed_ins_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) - cve_fixed_in = d.pop("cve_fixed_in") + cve_fixed_ins = _parse_cve_fixed_ins(d.pop("cve_fixed_ins")) cve_id = d.pop("cve_id") - cve_link = d.pop("cve_link") + def _parse_cve_links(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + cve_links_type_0 = cast(List[str], data) + + return cve_links_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + cve_links = _parse_cve_links(d.pop("cve_links")) + + def _parse_cve_overall_scores(data: object) -> Union[List[Any], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + cve_overall_scores_type_0 = cast(List[Any], data) + + return cve_overall_scores_type_0 + except: # noqa: E722 + pass + return cast(Union[List[Any], None], data) + + cve_overall_scores = _parse_cve_overall_scores(d.pop("cve_overall_scores")) + + def _parse_cve_severities(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + cve_severities_type_0 = cast(List[str], data) + + return cve_severities_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + cve_severities = _parse_cve_severities(d.pop("cve_severities")) + + def _parse_cve_types(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + cve_types_type_0 = cast(List[str], data) + + return cve_types_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) - cve_overall_score = d.pop("cve_overall_score") + cve_types = _parse_cve_types(d.pop("cve_types")) - cve_severity = d.pop("cve_severity") + epss_score = d.pop("epss_score") + + def _parse_exploit_pocs(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + exploit_pocs_type_0 = cast(List[str], data) - cve_type = d.pop("cve_type") + return exploit_pocs_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) - exploit_poc = d.pop("exploit_poc") + exploit_pocs = _parse_exploit_pocs(d.pop("exploit_pocs")) masked = d.pop("masked") + def _parse_namespaces(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + namespaces_type_0 = cast(List[str], data) + + return namespaces_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + namespaces = _parse_namespaces(d.pop("namespaces")) + node_id = d.pop("node_id") - parsed_attack_vector = d.pop("parsed_attack_vector") + def _parse_package_names(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + package_names_type_0 = cast(List[str], data) + + return package_names_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + package_names = _parse_package_names(d.pop("package_names")) + + def _parse_parsed_attack_vectors(data: object) -> Union[List[str], None]: + if data is None: + return data + try: + if not isinstance(data, list): + raise TypeError() + parsed_attack_vectors_type_0 = cast(List[str], data) + + return parsed_attack_vectors_type_0 + except: # noqa: E722 + pass + return cast(Union[List[str], None], data) + + parsed_attack_vectors = _parse_parsed_attack_vectors(d.pop("parsed_attack_vectors")) updated_at = d.pop("updated_at") - def _parse_urls(data: object) -> Union[List[Any], None]: + def _parse_urls(data: object) -> Union[List[str], None]: if data is None: return data try: if not isinstance(data, list): raise TypeError() - urls_type_0 = cast(List[Any], data) + urls_type_0 = cast(List[str], data) return urls_type_0 except: # noqa: E722 pass - return cast(Union[List[Any], None], data) + return cast(Union[List[str], None], data) urls = _parse_urls(d.pop("urls")) @@ -197,19 +455,23 @@ def _parse_resources(data: object) -> Union[List["ModelBasicNode"], None, Unset] resources = _parse_resources(d.pop("resources", UNSET)) model_vulnerability_rule = cls( - cve_attack_vector=cve_attack_vector, - cve_cvss_score=cve_cvss_score, - cve_description=cve_description, - cve_fixed_in=cve_fixed_in, + cisa_kev=cisa_kev, + cve_attack_vectors=cve_attack_vectors, + cve_cvss_scores=cve_cvss_scores, + cve_descriptions=cve_descriptions, + cve_fixed_ins=cve_fixed_ins, cve_id=cve_id, - cve_link=cve_link, - cve_overall_score=cve_overall_score, - cve_severity=cve_severity, - cve_type=cve_type, - exploit_poc=exploit_poc, + cve_links=cve_links, + cve_overall_scores=cve_overall_scores, + cve_severities=cve_severities, + cve_types=cve_types, + epss_score=epss_score, + exploit_pocs=exploit_pocs, masked=masked, + namespaces=namespaces, node_id=node_id, - parsed_attack_vector=parsed_attack_vector, + package_names=package_names, + parsed_attack_vectors=parsed_attack_vectors, updated_at=updated_at, urls=urls, resources=resources, diff --git a/threatstryker/models/model_vulnerability_scan_config_language.py b/threatstryker/models/model_vulnerability_scan_config_language.py index 57ada3d..826735b 100644 --- a/threatstryker/models/model_vulnerability_scan_config_language.py +++ b/threatstryker/models/model_vulnerability_scan_config_language.py @@ -11,6 +11,9 @@ @_attrs_define class ModelVulnerabilityScanConfigLanguage: """ + Example: + {'language': 'base'} + Attributes: language (ModelVulnerabilityScanConfigLanguageLanguage): """ diff --git a/threatstryker/models/model_vulnerability_scan_result.py b/threatstryker/models/model_vulnerability_scan_result.py index 1ef8e8d..0aaf333 100644 --- a/threatstryker/models/model_vulnerability_scan_result.py +++ b/threatstryker/models/model_vulnerability_scan_result.py @@ -16,6 +16,36 @@ @_attrs_define class ModelVulnerabilityScanResult: """ + Example: + {'severity_counts': {'key': 6}, 'docker_container_name': 'docker_container_name', 'kubernetes_cluster_name': + 'kubernetes_cluster_name', 'node_name': 'node_name', 'created_at': 0, 'cloud_account_id': 'cloud_account_id', + 'node_type': 'node_type', 'updated_at': 1, 'vulnerabilities': [{'epss_score': 1.4658129805029452, + 'parsed_attack_vector': 'parsed_attack_vector', 'cve_container_layer': 'cve_container_layer', 'masked': True, + 'cve_caused_by_package': 'cve_caused_by_package', 'cisa_kev': True, 'urls': ['', ''], 'cve_severity': + 'critical', 'cve_caused_by_package_path': 'cve_caused_by_package_path', 'updated_at': 2, + 'max_exploitability_score': 5, 'cve_description': 'cve_description', 'cve_overall_score': 6.027456183070403, + 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], 'live_cves': + ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': ['live_malwares', + 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': ['live_secrets', + 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', + 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'cve_attack_vector': + 'cve_attack_vector', 'cve_cvss_score': 0.8008281904610115, 'rule_id': 'rule_id', 'cve_id': 'cve_id', + 'exploit_poc': 'exploit_poc', 'namespace': 'namespace', 'cve_type': 'cve_type', 'has_live_connection': True, + 'cve_fixed_in': 'cve_fixed_in', 'cve_link': 'cve_link', 'exploitability_score': 5, 'node_id': 'node_id'}, + {'epss_score': 1.4658129805029452, 'parsed_attack_vector': 'parsed_attack_vector', 'cve_container_layer': + 'cve_container_layer', 'masked': True, 'cve_caused_by_package': 'cve_caused_by_package', 'cisa_kev': True, + 'urls': ['', ''], 'cve_severity': 'critical', 'cve_caused_by_package_path': 'cve_caused_by_package_path', + 'updated_at': 2, 'max_exploitability_score': 5, 'cve_description': 'cve_description', 'cve_overall_score': + 6.027456183070403, 'resources': [{'node_type': 'node_type', 'live_secrets': ['live_secrets', 'live_secrets'], + 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': 'host_name', 'live_malwares': + ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}, {'node_type': 'node_type', 'live_secrets': + ['live_secrets', 'live_secrets'], 'live_cves': ['live_cves', 'live_cves'], 'name': 'name', 'host_name': + 'host_name', 'live_malwares': ['live_malwares', 'live_malwares'], 'node_id': 'node_id'}], 'cve_attack_vector': + 'cve_attack_vector', 'cve_cvss_score': 0.8008281904610115, 'rule_id': 'rule_id', 'cve_id': 'cve_id', + 'exploit_poc': 'exploit_poc', 'namespace': 'namespace', 'cve_type': 'cve_type', 'has_live_connection': True, + 'cve_fixed_in': 'cve_fixed_in', 'cve_link': 'cve_link', 'exploitability_score': 5, 'node_id': 'node_id'}], + 'scan_id': 'scan_id', 'docker_image_name': 'docker_image_name', 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: cloud_account_id (str): created_at (int): diff --git a/threatstryker/models/model_vulnerability_scan_trigger_req.py b/threatstryker/models/model_vulnerability_scan_trigger_req.py index 9807a76..a26595f 100644 --- a/threatstryker/models/model_vulnerability_scan_trigger_req.py +++ b/threatstryker/models/model_vulnerability_scan_trigger_req.py @@ -17,8 +17,19 @@ @_attrs_define class ModelVulnerabilityScanTriggerReq: """ + Example: + {'is_priority': True, 'scan_config': [{'language': 'base'}, {'language': 'base'}], 'deepfence_system_scan': + True, 'filters': {'container_scan_filter': {'filter_in': {'key': ['', '']}}, 'cloud_account_scan_filter': + {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', '']}}, + 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': {'key': + ['', '']}}}, 'node_ids': [{'node_type': 'image', 'node_id': 'node_id'}, {'node_type': 'image', 'node_id': + 'node_id'}]} + Attributes: - filters (ModelScanFilter): + filters (ModelScanFilter): Example: {'container_scan_filter': {'filter_in': {'key': ['', '']}}, + 'cloud_account_scan_filter': {'filter_in': {'key': ['', '']}}, 'image_scan_filter': {'filter_in': {'key': ['', + '']}}, 'kubernetes_cluster_scan_filter': {'filter_in': {'key': ['', '']}}, 'host_scan_filter': {'filter_in': + {'key': ['', '']}}}. node_ids (Union[List['ModelNodeIdentifier'], None]): scan_config (Union[List['ModelVulnerabilityScanConfigLanguage'], None]): deepfence_system_scan (Union[Unset, bool]): diff --git a/threatstryker/models/postgresql_db_get_audit_logs_row.py b/threatstryker/models/postgresql_db_get_audit_logs_row.py index 6dcfcec..f93c0b5 100644 --- a/threatstryker/models/postgresql_db_get_audit_logs_row.py +++ b/threatstryker/models/postgresql_db_get_audit_logs_row.py @@ -13,6 +13,11 @@ @_attrs_define class PostgresqlDbGetAuditLogsRow: """ + Example: + {'role': 'role', 'success': True, 'action': 'action', 'created_at': datetime.datetime(2000, 1, 23, 4, 56, 7, + tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'resources': 'resources', 'event': 'event', 'email': + 'email'} + Attributes: action (Union[Unset, str]): created_at (Union[Unset, datetime.datetime]): diff --git a/threatstryker/models/postgresql_db_scheduler.py b/threatstryker/models/postgresql_db_scheduler.py index 76c6c78..a62a3fa 100644 --- a/threatstryker/models/postgresql_db_scheduler.py +++ b/threatstryker/models/postgresql_db_scheduler.py @@ -8,7 +8,7 @@ from ..types import UNSET, Unset if TYPE_CHECKING: - from ..models.sql_null_time import SqlNullTime + from ..models.postgresql_db_scheduler_last_ran_at import PostgresqlDbSchedulerLastRanAt T = TypeVar("T", bound="PostgresqlDbScheduler") @@ -17,6 +17,13 @@ @_attrs_define class PostgresqlDbScheduler: """ + Example: + {'is_enabled': True, 'is_system': True, 'last_ran_at': '{}', 'updated_at': datetime.datetime(2000, 1, 23, 4, 56, + 7, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'payload': '', 'cron_expr': 'cron_expr', + 'action': 'action', 'created_at': datetime.datetime(2000, 1, 23, 4, 56, 7, + tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'description': 'description', 'id': 0, 'status': + 'status'} + Attributes: action (Union[Unset, str]): created_at (Union[Unset, datetime.datetime]): @@ -25,7 +32,7 @@ class PostgresqlDbScheduler: id (Union[Unset, int]): is_enabled (Union[Unset, bool]): is_system (Union[Unset, bool]): - last_ran_at (Union[Unset, SqlNullTime]): + last_ran_at (Union[Unset, PostgresqlDbSchedulerLastRanAt]): payload (Union[Unset, Any]): status (Union[Unset, str]): updated_at (Union[Unset, datetime.datetime]): @@ -38,7 +45,7 @@ class PostgresqlDbScheduler: id: Union[Unset, int] = UNSET is_enabled: Union[Unset, bool] = UNSET is_system: Union[Unset, bool] = UNSET - last_ran_at: Union[Unset, "SqlNullTime"] = UNSET + last_ran_at: Union[Unset, "PostgresqlDbSchedulerLastRanAt"] = UNSET payload: Union[Unset, Any] = UNSET status: Union[Unset, str] = UNSET updated_at: Union[Unset, datetime.datetime] = UNSET @@ -103,7 +110,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: - from ..models.sql_null_time import SqlNullTime + from ..models.postgresql_db_scheduler_last_ran_at import PostgresqlDbSchedulerLastRanAt d = src_dict.copy() action = d.pop("action", UNSET) @@ -126,11 +133,11 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: is_system = d.pop("is_system", UNSET) _last_ran_at = d.pop("last_ran_at", UNSET) - last_ran_at: Union[Unset, SqlNullTime] + last_ran_at: Union[Unset, PostgresqlDbSchedulerLastRanAt] if isinstance(_last_ran_at, Unset): last_ran_at = UNSET else: - last_ran_at = SqlNullTime.from_dict(_last_ran_at) + last_ran_at = PostgresqlDbSchedulerLastRanAt.from_dict(_last_ran_at) payload = d.pop("payload", UNSET) diff --git a/threatstryker/models/postgresql_db_scheduler_last_ran_at.py b/threatstryker/models/postgresql_db_scheduler_last_ran_at.py new file mode 100644 index 0000000..1fa7402 --- /dev/null +++ b/threatstryker/models/postgresql_db_scheduler_last_ran_at.py @@ -0,0 +1,43 @@ +from typing import Any, Dict, List, Type, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="PostgresqlDbSchedulerLastRanAt") + + +@_attrs_define +class PostgresqlDbSchedulerLastRanAt: + """ """ + + additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> Dict[str, Any]: + field_dict: Dict[str, Any] = {} + field_dict.update(self.additional_properties) + + return field_dict + + @classmethod + def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: + d = src_dict.copy() + postgresql_db_scheduler_last_ran_at = cls() + + postgresql_db_scheduler_last_ran_at.additional_properties = d + return postgresql_db_scheduler_last_ran_at + + @property + def additional_keys(self) -> List[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/threatstryker/models/report_metadata.py b/threatstryker/models/report_metadata.py index 6b65118..53c937e 100644 --- a/threatstryker/models/report_metadata.py +++ b/threatstryker/models/report_metadata.py @@ -11,7 +11,41 @@ @_attrs_define class ReportMetadata: """ + Example: + {'docker_image_name_with_tag': 'docker_image_name_with_tag', 'kubernetes_ip': 'kubernetes_ip', 'public_ip': + ['public_ip', 'public_ip'], 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'docker_container_state': + 'docker_container_state', 'cpu_max': 6.027456183070403, 'pid': 7, 'kubernetes_created': 'kubernetes_created', + 'kubernetes_namespace': 'kubernetes_namespace', 'cmdline': 'cmdline', 'node_type': 'node_type', + 'interface_ip_map': 'interface_ip_map', 'pseudo': True, 'docker_container_name': 'docker_container_name', + 'docker_container_created': 'docker_container_created', 'kubernetes_cluster_id': 'kubernetes_cluster_id', + 'docker_container_networks': 'docker_container_networks', 'kubernetes_ports': ['kubernetes_ports', + 'kubernetes_ports'], 'version': 'version', 'pod_name': 'pod_name', 'ppid': 9, 'tags': ['tags', 'tags'], + 'docker_container_ports': 'docker_container_ports', 'kubernetes_is_in_host_network': True, 'instance_id': + 'instance_id', 'kernel_id': 'kernel_id', 'active_cves': ['active_cves', 'active_cves'], 'copy_of': 'copy_of', + 'open_files': ['open_files', 'open_files'], 'docker_env': 'docker_env', 'connection_count': 0, + 'docker_image_size': 'docker_image_size', 'short_name': 'short_name', 'cpu_usage': 1.4658129805029452, 'pod_id': + 'pod_id', 'docker_label': 'docker_label', 'instance_type': 'instance_type', 'docker_image_name': + 'docker_image_name', 'user_defined_tags': ['user_defined_tags', 'user_defined_tags'], 'local_networks': + ['local_networks', 'local_networks'], 'cloud_region': 'cloud_region', 'kubernetes_state': 'kubernetes_state', + 'interface_names': ['interface_names', 'interface_names'], 'memory_usage': 5, 'open_files_count': 2, + 'kubernetes_public_ip': 'kubernetes_public_ip', 'private_ip': ['private_ip', 'private_ip'], + 'docker_container_network_mode': 'docker_container_network_mode', 'cloud_account_id': 'cloud_account_id', + 'kubernetes_type': 'kubernetes_type', 'active_secrets': ['active_secrets', 'active_secrets'], 'resource_group': + 'resource_group', 'docker_image_tag': 'docker_image_tag', 'active_malwares': ['active_malwares', + 'active_malwares'], 'kubernetes_labels': 'kubernetes_labels', 'docker_container_ips': ['docker_container_ips', + 'docker_container_ips'], 'docker_image_id': 'docker_image_id', 'timestamp': 'timestamp', 'interface_ips': + ['interface_ips', 'interface_ips'], 'is_deepfence_system': True, 'availability_zone': 'availability_zone', + 'is_console_vm': True, 'os': 'os', 'local_cidr': ['local_cidr', 'local_cidr'], 'node_name': 'node_name', + 'threads': 3, 'cloud_provider': 'cloud_provider', 'docker_container_command': 'docker_container_command', + 'agent_running': True, 'uptime': 2, 'memory_max': 5, 'docker_image_created_at': 'docker_image_created_at', + 'kernel_version': 'kernel_version', 'docker_container_state_human': 'docker_container_state_human', + 'docker_image_virtual_size': 'docker_image_virtual_size', 'kubernetes_ingress_ip': ['kubernetes_ingress_ip', + 'kubernetes_ingress_ip'], 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: + active_cves (Union[Unset, List[str]]): + active_malwares (Union[Unset, List[str]]): + active_secrets (Union[Unset, List[str]]): agent_running (Union[Unset, bool]): availability_zone (Union[Unset, str]): cloud_account_id (Union[Unset, str]): @@ -89,6 +123,9 @@ class ReportMetadata: version (Union[Unset, str]): """ + active_cves: Union[Unset, List[str]] = UNSET + active_malwares: Union[Unset, List[str]] = UNSET + active_secrets: Union[Unset, List[str]] = UNSET agent_running: Union[Unset, bool] = UNSET availability_zone: Union[Unset, str] = UNSET cloud_account_id: Union[Unset, str] = UNSET @@ -167,6 +204,18 @@ class ReportMetadata: additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> Dict[str, Any]: + active_cves: Union[Unset, List[str]] = UNSET + if not isinstance(self.active_cves, Unset): + active_cves = self.active_cves + + active_malwares: Union[Unset, List[str]] = UNSET + if not isinstance(self.active_malwares, Unset): + active_malwares = self.active_malwares + + active_secrets: Union[Unset, List[str]] = UNSET + if not isinstance(self.active_secrets, Unset): + active_secrets = self.active_secrets + agent_running = self.agent_running availability_zone = self.availability_zone @@ -344,6 +393,12 @@ def to_dict(self) -> Dict[str, Any]: field_dict: Dict[str, Any] = {} field_dict.update(self.additional_properties) field_dict.update({}) + if active_cves is not UNSET: + field_dict["active_cves"] = active_cves + if active_malwares is not UNSET: + field_dict["active_malwares"] = active_malwares + if active_secrets is not UNSET: + field_dict["active_secrets"] = active_secrets if agent_running is not UNSET: field_dict["agent_running"] = agent_running if availability_zone is not UNSET: @@ -500,6 +555,12 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: d = src_dict.copy() + active_cves = cast(List[str], d.pop("active_cves", UNSET)) + + active_malwares = cast(List[str], d.pop("active_malwares", UNSET)) + + active_secrets = cast(List[str], d.pop("active_secrets", UNSET)) + agent_running = d.pop("agent_running", UNSET) availability_zone = d.pop("availability_zone", UNSET) @@ -651,6 +712,9 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: version = d.pop("version", UNSET) report_metadata = cls( + active_cves=active_cves, + active_malwares=active_malwares, + active_secrets=active_secrets, agent_running=agent_running, availability_zone=availability_zone, cloud_account_id=cloud_account_id, diff --git a/threatstryker/models/report_raw_report.py b/threatstryker/models/report_raw_report.py index a92a01c..0b82b20 100644 --- a/threatstryker/models/report_raw_report.py +++ b/threatstryker/models/report_raw_report.py @@ -9,6 +9,9 @@ @_attrs_define class ReportRawReport: """ + Example: + {'payload': 'payload'} + Attributes: payload (str): """ diff --git a/threatstryker/models/reporters_compare_filter.py b/threatstryker/models/reporters_compare_filter.py index 6afd25f..43e7364 100644 --- a/threatstryker/models/reporters_compare_filter.py +++ b/threatstryker/models/reporters_compare_filter.py @@ -9,6 +9,9 @@ @_attrs_define class ReportersCompareFilter: """ + Example: + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'} + Attributes: field_name (str): field_value (Any): diff --git a/threatstryker/models/reporters_contains_filter.py b/threatstryker/models/reporters_contains_filter.py index 656be77..ba314e7 100644 --- a/threatstryker/models/reporters_contains_filter.py +++ b/threatstryker/models/reporters_contains_filter.py @@ -13,6 +13,9 @@ @_attrs_define class ReportersContainsFilter: """ + Example: + {'filter_in': {'key': ['', '']}} + Attributes: filter_in (Union['ReportersContainsFilterFilterInType0', None]): """ diff --git a/threatstryker/models/reporters_daily_sev_counts.py b/threatstryker/models/reporters_daily_sev_counts.py index fdbe24c..427a87a 100644 --- a/threatstryker/models/reporters_daily_sev_counts.py +++ b/threatstryker/models/reporters_daily_sev_counts.py @@ -15,6 +15,9 @@ @_attrs_define class ReportersDailySevCounts: """ + Example: + {'days_to_sev_counts': {'key': {'counts': {'key': 0}}}} + Attributes: days_to_sev_counts (Union['ReportersDailySevCountsDaysToSevCountsType0', None]): """ diff --git a/threatstryker/models/reporters_fields_filters.py b/threatstryker/models/reporters_fields_filters.py index 3642445..0603a22 100644 --- a/threatstryker/models/reporters_fields_filters.py +++ b/threatstryker/models/reporters_fields_filters.py @@ -18,14 +18,23 @@ @_attrs_define class ReportersFieldsFilters: """ + Example: + {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, + 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, + 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, + 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, + 'match_in_array_filter': {'filter_in': {'key': ['', '']}}} + Attributes: compare_filter (Union[List['ReportersCompareFilter'], None]): - contains_filter (ReportersContainsFilter): - match_filter (ReportersMatchFilter): - order_filter (ReportersOrderFilter): - contains_in_array_filter (Union[Unset, ReportersContainsFilter]): - match_in_array_filter (Union[Unset, ReportersMatchFilter]): - not_contains_filter (Union[Unset, ReportersContainsFilter]): + contains_filter (ReportersContainsFilter): Example: {'filter_in': {'key': ['', '']}}. + match_filter (ReportersMatchFilter): Example: {'filter_in': {'key': ['', '']}}. + order_filter (ReportersOrderFilter): Example: {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}. + contains_in_array_filter (Union[Unset, ReportersContainsFilter]): Example: {'filter_in': {'key': ['', '']}}. + match_in_array_filter (Union[Unset, ReportersMatchFilter]): Example: {'filter_in': {'key': ['', '']}}. + not_contains_filter (Union[Unset, ReportersContainsFilter]): Example: {'filter_in': {'key': ['', '']}}. """ compare_filter: Union[List["ReportersCompareFilter"], None] diff --git a/threatstryker/models/reporters_match_filter.py b/threatstryker/models/reporters_match_filter.py index 510f898..dcde136 100644 --- a/threatstryker/models/reporters_match_filter.py +++ b/threatstryker/models/reporters_match_filter.py @@ -13,6 +13,9 @@ @_attrs_define class ReportersMatchFilter: """ + Example: + {'filter_in': {'key': ['', '']}} + Attributes: filter_in (Union['ReportersMatchFilterFilterInType0', None]): """ diff --git a/threatstryker/models/reporters_order_filter.py b/threatstryker/models/reporters_order_filter.py index 9e34401..8b28324 100644 --- a/threatstryker/models/reporters_order_filter.py +++ b/threatstryker/models/reporters_order_filter.py @@ -13,6 +13,10 @@ @_attrs_define class ReportersOrderFilter: """ + Example: + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]} + Attributes: order_fields (Union[List['ReportersOrderSpec'], None]): """ diff --git a/threatstryker/models/reporters_order_spec.py b/threatstryker/models/reporters_order_spec.py index 72ab50a..55237b8 100644 --- a/threatstryker/models/reporters_order_spec.py +++ b/threatstryker/models/reporters_order_spec.py @@ -11,6 +11,9 @@ @_attrs_define class ReportersOrderSpec: """ + Example: + {'size': 0, 'descending': True, 'field_name': 'field_name'} + Attributes: descending (bool): field_name (str): diff --git a/threatstryker/models/reporters_sev_counts.py b/threatstryker/models/reporters_sev_counts.py index 090c1c7..d6afe6e 100644 --- a/threatstryker/models/reporters_sev_counts.py +++ b/threatstryker/models/reporters_sev_counts.py @@ -13,6 +13,9 @@ @_attrs_define class ReportersSevCounts: """ + Example: + {'counts': {'key': 0}} + Attributes: counts (Union['ReportersSevCountsCountsType0', None]): """ diff --git a/threatstryker/models/search_chained_search_filter.py b/threatstryker/models/search_chained_search_filter.py index 380dff2..9c5831e 100644 --- a/threatstryker/models/search_chained_search_filter.py +++ b/threatstryker/models/search_chained_search_filter.py @@ -15,10 +15,34 @@ @_attrs_define class SearchChainedSearchFilter: """ + Example: + {'node_filter': {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': + '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': + {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': + {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'} + Attributes: - node_filter (SearchSearchFilter): + node_filter (SearchSearchFilter): Example: {'in_field_filter': ['in_field_filter', 'in_field_filter'], + 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': + {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': + 6}}. relation_ship (str): - next_filter (Union[Unset, SearchChainedSearchFilter]): + next_filter (Union[Unset, SearchChainedSearchFilter]): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': 'relation_ship'}. """ node_filter: "SearchSearchFilter" diff --git a/threatstryker/models/search_most_exploitable_count_resp.py b/threatstryker/models/search_most_exploitable_count_resp.py new file mode 100644 index 0000000..4e8cf7d --- /dev/null +++ b/threatstryker/models/search_most_exploitable_count_resp.py @@ -0,0 +1,77 @@ +from typing import Any, Dict, List, Type, TypeVar + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +T = TypeVar("T", bound="SearchMostExploitableCountResp") + + +@_attrs_define +class SearchMostExploitableCountResp: + """ + Example: + {'count': 0, 'description': 'description', 'exploitability_score': 6} + + Attributes: + count (int): + description (str): + exploitability_score (int): + """ + + count: int + description: str + exploitability_score: int + additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> Dict[str, Any]: + count = self.count + + description = self.description + + exploitability_score = self.exploitability_score + + field_dict: Dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "count": count, + "description": description, + "exploitability_score": exploitability_score, + } + ) + + return field_dict + + @classmethod + def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: + d = src_dict.copy() + count = d.pop("count") + + description = d.pop("description") + + exploitability_score = d.pop("exploitability_score") + + search_most_exploitable_count_resp = cls( + count=count, + description=description, + exploitability_score=exploitability_score, + ) + + search_most_exploitable_count_resp.additional_properties = d + return search_most_exploitable_count_resp + + @property + def additional_keys(self) -> List[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/threatstryker/models/search_node_count_resp.py b/threatstryker/models/search_node_count_resp.py index 811c626..cbc2738 100644 --- a/threatstryker/models/search_node_count_resp.py +++ b/threatstryker/models/search_node_count_resp.py @@ -9,6 +9,10 @@ @_attrs_define class SearchNodeCountResp: """ + Example: + {'container': 6, 'pod': 7, 'host': 5, 'namespace': 2, 'cloud_provider': 0, 'kubernetes_cluster': 5, + 'container_image': 1} + Attributes: cloud_provider (int): container (int): diff --git a/threatstryker/models/search_result_group.py b/threatstryker/models/search_result_group.py index d5db34f..97d321f 100644 --- a/threatstryker/models/search_result_group.py +++ b/threatstryker/models/search_result_group.py @@ -11,6 +11,9 @@ @_attrs_define class SearchResultGroup: """ + Example: + {'severity': 'severity', 'count': 0, 'name': 'name'} + Attributes: count (Union[Unset, int]): name (Union[Unset, str]): diff --git a/threatstryker/models/search_result_group_resp.py b/threatstryker/models/search_result_group_resp.py index a945096..b4ce07c 100644 --- a/threatstryker/models/search_result_group_resp.py +++ b/threatstryker/models/search_result_group_resp.py @@ -15,6 +15,10 @@ @_attrs_define class SearchResultGroupResp: """ + Example: + {'groups': [{'severity': 'severity', 'count': 0, 'name': 'name'}, {'severity': 'severity', 'count': 0, 'name': + 'name'}]} + Attributes: groups (Union[List['SearchResultGroup'], None, Unset]): """ diff --git a/threatstryker/models/search_search_count_resp.py b/threatstryker/models/search_search_count_resp.py index 3c957fd..ffa131d 100644 --- a/threatstryker/models/search_search_count_resp.py +++ b/threatstryker/models/search_search_count_resp.py @@ -13,6 +13,9 @@ @_attrs_define class SearchSearchCountResp: """ + Example: + {'count': 6, 'categories': {'key': 0}} + Attributes: categories (Union['SearchSearchCountRespCategoriesType0', None]): count (int): diff --git a/threatstryker/models/search_search_filter.py b/threatstryker/models/search_search_filter.py index 6e6985a..2336148 100644 --- a/threatstryker/models/search_search_filter.py +++ b/threatstryker/models/search_search_filter.py @@ -14,10 +14,25 @@ @_attrs_define class SearchSearchFilter: """ + Example: + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': + {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'window': {'offset': 0, 'size': 6}} + Attributes: - filters (ReportersFieldsFilters): + filters (ReportersFieldsFilters): Example: {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}. in_field_filter (Union[List[str], None]): - window (ModelFetchWindow): + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. """ filters: "ReportersFieldsFilters" diff --git a/threatstryker/models/search_search_node_req.py b/threatstryker/models/search_search_node_req.py index d955d44..517efca 100644 --- a/threatstryker/models/search_search_node_req.py +++ b/threatstryker/models/search_search_node_req.py @@ -17,11 +17,56 @@ @_attrs_define class SearchSearchNodeReq: """ + Example: + {'node_filter': {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': + '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': + {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': + {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': 6}}, 'extended_node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': + {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': + {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': + True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': + [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': + 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': + {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': + {'key': ['', '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': + 'relation_ship'}, 'window': {'offset': 0, 'size': 6}} + Attributes: - node_filter (SearchSearchFilter): - window (ModelFetchWindow): - extended_node_filter (Union[Unset, SearchSearchFilter]): - related_node_filter (Union[Unset, SearchChainedSearchFilter]): + node_filter (SearchSearchFilter): Example: {'in_field_filter': ['in_field_filter', 'in_field_filter'], + 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': + {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': + 6}}. + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. + extended_node_filter (Union[Unset, SearchSearchFilter]): Example: {'in_field_filter': ['in_field_filter', + 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': + 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': + {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, + 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': + {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': + {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'window': + {'offset': 0, 'size': 6}}. + related_node_filter (Union[Unset, SearchChainedSearchFilter]): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': 'relation_ship'}. """ node_filter: "SearchSearchFilter" diff --git a/threatstryker/models/search_search_scan_req.py b/threatstryker/models/search_search_scan_req.py index 12c8c5d..9642db3 100644 --- a/threatstryker/models/search_search_scan_req.py +++ b/threatstryker/models/search_search_scan_req.py @@ -17,11 +17,56 @@ @_attrs_define class SearchSearchScanReq: """ + Example: + {'node_filters': {'in_field_filter': ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': + [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, {'greater_than': True, 'field_value': + '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': + {'order_fields': [{'size': 0, 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, + 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': + {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': + {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': 6}}, 'scan_filters': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'related_node_filter': {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': 'relation_ship'}, 'window': + {'offset': 0, 'size': 6}} + Attributes: - node_filters (SearchSearchFilter): - scan_filters (SearchSearchFilter): - window (ModelFetchWindow): - related_node_filter (Union[Unset, SearchChainedSearchFilter]): + node_filters (SearchSearchFilter): Example: {'in_field_filter': ['in_field_filter', 'in_field_filter'], + 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': + {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': + 6}}. + scan_filters (SearchSearchFilter): Example: {'in_field_filter': ['in_field_filter', 'in_field_filter'], + 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', 'field_name': 'field_name'}, + {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], 'not_contains_filter': {'filter_in': + {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, 'descending': True, 'field_name': + 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, 'contains_filter': {'filter_in': + {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', '']}}, 'match_filter': {'filter_in': + {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', '']}}}, 'window': {'offset': 0, 'size': + 6}}. + window (ModelFetchWindow): Example: {'offset': 0, 'size': 6}. + related_node_filter (Union[Unset, SearchChainedSearchFilter]): Example: {'node_filter': {'in_field_filter': + ['in_field_filter', 'in_field_filter'], 'filters': {'compare_filter': [{'greater_than': True, 'field_value': '', + 'field_name': 'field_name'}, {'greater_than': True, 'field_value': '', 'field_name': 'field_name'}], + 'not_contains_filter': {'filter_in': {'key': ['', '']}}, 'order_filter': {'order_fields': [{'size': 0, + 'descending': True, 'field_name': 'field_name'}, {'size': 0, 'descending': True, 'field_name': 'field_name'}]}, + 'contains_filter': {'filter_in': {'key': ['', '']}}, 'contains_in_array_filter': {'filter_in': {'key': ['', + '']}}, 'match_filter': {'filter_in': {'key': ['', '']}}, 'match_in_array_filter': {'filter_in': {'key': ['', + '']}}}, 'window': {'offset': 0, 'size': 6}}, 'next_filter': None, 'relation_ship': 'relation_ship'}. """ node_filters: "SearchSearchFilter" diff --git a/threatstryker/models/setting_setting_update_request.py b/threatstryker/models/setting_setting_update_request.py index 410d1cc..a3dbfb0 100644 --- a/threatstryker/models/setting_setting_update_request.py +++ b/threatstryker/models/setting_setting_update_request.py @@ -11,6 +11,9 @@ @_attrs_define class SettingSettingUpdateRequest: """ + Example: + {'value': 'value', 'key': 'console_url'} + Attributes: key (SettingSettingUpdateRequestKey): value (str): diff --git a/threatstryker/models/setting_settings_response.py b/threatstryker/models/setting_settings_response.py index ccda754..fa183e1 100644 --- a/threatstryker/models/setting_settings_response.py +++ b/threatstryker/models/setting_settings_response.py @@ -9,6 +9,9 @@ @_attrs_define class SettingSettingsResponse: """ + Example: + {'description': 'description', 'id': 0, 'label': 'label', 'value': '', 'key': 'key'} + Attributes: description (str): id (int): diff --git a/threatstryker/models/singlesignon_get_single_sign_on_response.py b/threatstryker/models/singlesignon_get_single_sign_on_response.py index 5c1824f..8468bdd 100644 --- a/threatstryker/models/singlesignon_get_single_sign_on_response.py +++ b/threatstryker/models/singlesignon_get_single_sign_on_response.py @@ -14,9 +14,26 @@ @_attrs_define class SinglesignonGetSingleSignOnResponse: """ + Example: + {'instructions': {'github': [{'value': 'value', 'key': 'key'}, {'value': 'value', 'key': 'key'}], 'google': + [{'value': 'value', 'key': 'key'}, {'value': 'value', 'key': 'key'}], 'microsoft': [{'value': 'value', 'key': + 'key'}, {'value': 'value', 'key': 'key'}], 'oidc': [{'value': 'value', 'key': 'key'}, {'value': 'value', 'key': + 'key'}]}, 'config': [{'issuer_alias_url': 'issuer_alias_url', 'issuer_url': 'issuer_url', 'updated_at': + datetime.datetime(2000, 1, 23, 4, 56, 7, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), + 'sso_provider_type': 'sso_provider_type', 'created_at': datetime.datetime(2000, 1, 23, 4, 56, 7, + tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'disable_password_login': True, 'id': 0, 'label': + 'label', 'client_id': 'client_id'}, {'issuer_alias_url': 'issuer_alias_url', 'issuer_url': 'issuer_url', + 'updated_at': datetime.datetime(2000, 1, 23, 4, 56, 7, tzinfo=datetime.timezone(datetime.timedelta(0), + '+00:00')), 'sso_provider_type': 'sso_provider_type', 'created_at': datetime.datetime(2000, 1, 23, 4, 56, 7, + tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'disable_password_login': True, 'id': 0, 'label': + 'label', 'client_id': 'client_id'}]} + Attributes: config (Union[List['SinglesignonSSOResponse'], None]): - instructions (SinglesignonSSOConfigurationInstructions): + instructions (SinglesignonSSOConfigurationInstructions): Example: {'github': [{'value': 'value', 'key': 'key'}, + {'value': 'value', 'key': 'key'}], 'google': [{'value': 'value', 'key': 'key'}, {'value': 'value', 'key': + 'key'}], 'microsoft': [{'value': 'value', 'key': 'key'}, {'value': 'value', 'key': 'key'}], 'oidc': [{'value': + 'value', 'key': 'key'}, {'value': 'value', 'key': 'key'}]}. """ config: Union[List["SinglesignonSSOResponse"], None] diff --git a/threatstryker/models/singlesignon_sso_configuration_instruction.py b/threatstryker/models/singlesignon_sso_configuration_instruction.py index 58ebacc..3e6101b 100644 --- a/threatstryker/models/singlesignon_sso_configuration_instruction.py +++ b/threatstryker/models/singlesignon_sso_configuration_instruction.py @@ -9,6 +9,9 @@ @_attrs_define class SinglesignonSSOConfigurationInstruction: """ + Example: + {'value': 'value', 'key': 'key'} + Attributes: key (str): value (str): diff --git a/threatstryker/models/singlesignon_sso_configuration_instructions.py b/threatstryker/models/singlesignon_sso_configuration_instructions.py index 2e043fb..a2d4df0 100644 --- a/threatstryker/models/singlesignon_sso_configuration_instructions.py +++ b/threatstryker/models/singlesignon_sso_configuration_instructions.py @@ -15,6 +15,11 @@ @_attrs_define class SinglesignonSSOConfigurationInstructions: """ + Example: + {'github': [{'value': 'value', 'key': 'key'}, {'value': 'value', 'key': 'key'}], 'google': [{'value': 'value', + 'key': 'key'}, {'value': 'value', 'key': 'key'}], 'microsoft': [{'value': 'value', 'key': 'key'}, {'value': + 'value', 'key': 'key'}], 'oidc': [{'value': 'value', 'key': 'key'}, {'value': 'value', 'key': 'key'}]} + Attributes: github (Union[List['SinglesignonSSOConfigurationInstruction'], None, Unset]): google (Union[List['SinglesignonSSOConfigurationInstruction'], None, Unset]): diff --git a/threatstryker/models/singlesignon_sso_provider_config.py b/threatstryker/models/singlesignon_sso_provider_config.py index 1aa72fe..664630e 100644 --- a/threatstryker/models/singlesignon_sso_provider_config.py +++ b/threatstryker/models/singlesignon_sso_provider_config.py @@ -12,12 +12,18 @@ @_attrs_define class SinglesignonSSOProviderConfig: """ + Example: + {'issuer_alias_url': 'issuer_alias_url', 'issuer_url': 'issuer_url', 'sso_provider_type': 'oidc', + 'disable_password_login': True, 'client_secret': 'client_secret', 'client_id': 'client_id', 'host_name': + 'host_name'} + Attributes: client_id (str): client_secret (str): disable_password_login (bool): sso_provider_type (SinglesignonSSOProviderConfigSsoProviderType): host_name (Union[Unset, str]): + issuer_alias_url (Union[Unset, str]): issuer_url (Union[Unset, str]): """ @@ -26,6 +32,7 @@ class SinglesignonSSOProviderConfig: disable_password_login: bool sso_provider_type: SinglesignonSSOProviderConfigSsoProviderType host_name: Union[Unset, str] = UNSET + issuer_alias_url: Union[Unset, str] = UNSET issuer_url: Union[Unset, str] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -40,6 +47,8 @@ def to_dict(self) -> Dict[str, Any]: host_name = self.host_name + issuer_alias_url = self.issuer_alias_url + issuer_url = self.issuer_url field_dict: Dict[str, Any] = {} @@ -54,6 +63,8 @@ def to_dict(self) -> Dict[str, Any]: ) if host_name is not UNSET: field_dict["host_name"] = host_name + if issuer_alias_url is not UNSET: + field_dict["issuer_alias_url"] = issuer_alias_url if issuer_url is not UNSET: field_dict["issuer_url"] = issuer_url @@ -72,6 +83,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: host_name = d.pop("host_name", UNSET) + issuer_alias_url = d.pop("issuer_alias_url", UNSET) + issuer_url = d.pop("issuer_url", UNSET) singlesignon_sso_provider_config = cls( @@ -80,6 +93,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: disable_password_login=disable_password_login, sso_provider_type=sso_provider_type, host_name=host_name, + issuer_alias_url=issuer_alias_url, issuer_url=issuer_url, ) diff --git a/threatstryker/models/singlesignon_sso_response.py b/threatstryker/models/singlesignon_sso_response.py index 4c7d12a..2e757b8 100644 --- a/threatstryker/models/singlesignon_sso_response.py +++ b/threatstryker/models/singlesignon_sso_response.py @@ -11,11 +11,19 @@ @_attrs_define class SinglesignonSSOResponse: """ + Example: + {'issuer_alias_url': 'issuer_alias_url', 'issuer_url': 'issuer_url', 'updated_at': datetime.datetime(2000, 1, + 23, 4, 56, 7, tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'sso_provider_type': + 'sso_provider_type', 'created_at': datetime.datetime(2000, 1, 23, 4, 56, 7, + tzinfo=datetime.timezone(datetime.timedelta(0), '+00:00')), 'disable_password_login': True, 'id': 0, 'label': + 'label', 'client_id': 'client_id'} + Attributes: client_id (str): created_at (datetime.datetime): disable_password_login (bool): id (int): + issuer_alias_url (str): issuer_url (str): label (str): sso_provider_type (str): @@ -26,6 +34,7 @@ class SinglesignonSSOResponse: created_at: datetime.datetime disable_password_login: bool id: int + issuer_alias_url: str issuer_url: str label: str sso_provider_type: str @@ -41,6 +50,8 @@ def to_dict(self) -> Dict[str, Any]: id = self.id + issuer_alias_url = self.issuer_alias_url + issuer_url = self.issuer_url label = self.label @@ -57,6 +68,7 @@ def to_dict(self) -> Dict[str, Any]: "created_at": created_at, "disable_password_login": disable_password_login, "id": id, + "issuer_alias_url": issuer_alias_url, "issuer_url": issuer_url, "label": label, "sso_provider_type": sso_provider_type, @@ -77,6 +89,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: id = d.pop("id") + issuer_alias_url = d.pop("issuer_alias_url") + issuer_url = d.pop("issuer_url") label = d.pop("label") @@ -90,6 +104,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: created_at=created_at, disable_password_login=disable_password_login, id=id, + issuer_alias_url=issuer_alias_url, issuer_url=issuer_url, label=label, sso_provider_type=sso_provider_type, diff --git a/threatstryker/models/singlesignon_update_sso_provider_config.py b/threatstryker/models/singlesignon_update_sso_provider_config.py index 64e1514..445eacf 100644 --- a/threatstryker/models/singlesignon_update_sso_provider_config.py +++ b/threatstryker/models/singlesignon_update_sso_provider_config.py @@ -11,16 +11,22 @@ @_attrs_define class SinglesignonUpdateSSOProviderConfig: """ + Example: + {'issuer_alias_url': 'issuer_alias_url', 'issuer_url': 'issuer_url', 'disable_password_login': True, + 'client_secret': 'client_secret', 'client_id': 'client_id'} + Attributes: client_id (str): disable_password_login (bool): client_secret (Union[Unset, str]): + issuer_alias_url (Union[Unset, str]): issuer_url (Union[Unset, str]): """ client_id: str disable_password_login: bool client_secret: Union[Unset, str] = UNSET + issuer_alias_url: Union[Unset, str] = UNSET issuer_url: Union[Unset, str] = UNSET additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict) @@ -31,6 +37,8 @@ def to_dict(self) -> Dict[str, Any]: client_secret = self.client_secret + issuer_alias_url = self.issuer_alias_url + issuer_url = self.issuer_url field_dict: Dict[str, Any] = {} @@ -43,6 +51,8 @@ def to_dict(self) -> Dict[str, Any]: ) if client_secret is not UNSET: field_dict["client_secret"] = client_secret + if issuer_alias_url is not UNSET: + field_dict["issuer_alias_url"] = issuer_alias_url if issuer_url is not UNSET: field_dict["issuer_url"] = issuer_url @@ -57,12 +67,15 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: client_secret = d.pop("client_secret", UNSET) + issuer_alias_url = d.pop("issuer_alias_url", UNSET) + issuer_url = d.pop("issuer_url", UNSET) singlesignon_update_sso_provider_config = cls( client_id=client_id, disable_password_login=disable_password_login, client_secret=client_secret, + issuer_alias_url=issuer_alias_url, issuer_url=issuer_url, ) diff --git a/threatstryker/models/singlesignon_verify_sso_auth_request.py b/threatstryker/models/singlesignon_verify_sso_auth_request.py index 0ee5afd..d8672f4 100644 --- a/threatstryker/models/singlesignon_verify_sso_auth_request.py +++ b/threatstryker/models/singlesignon_verify_sso_auth_request.py @@ -9,6 +9,9 @@ @_attrs_define class SinglesignonVerifySSOAuthRequest: """ + Example: + {'code': 'code', 'user_id': 0, 'namespace': 'namespace'} + Attributes: code (str): namespace (str): diff --git a/threatstryker/models/threatintel_rules_with_direction.py b/threatstryker/models/threatintel_rules_with_direction.py index e455f6d..9158d9a 100644 --- a/threatstryker/models/threatintel_rules_with_direction.py +++ b/threatstryker/models/threatintel_rules_with_direction.py @@ -16,6 +16,9 @@ @_attrs_define class ThreatintelRulesWithDirection: """ + Example: + {'inbound': {'key': 'inbound'}, 'outbound': {'key': 'outbound'}} + Attributes: inbound (Union['ThreatintelRulesWithDirectionInboundType0', None, Unset]): outbound (Union['ThreatintelRulesWithDirectionOutboundType0', None, Unset]): diff --git a/threatstryker/models/utils_advanced_report_filters.py b/threatstryker/models/utils_advanced_report_filters.py index fd03ce8..e940bd4 100644 --- a/threatstryker/models/utils_advanced_report_filters.py +++ b/threatstryker/models/utils_advanced_report_filters.py @@ -11,12 +11,19 @@ @_attrs_define class UtilsAdvancedReportFilters: """ + Example: + {'image_name': ['image_name', 'image_name'], 'most_exploitable_scores': [0, 0], 'container_name': + ['container_name', 'container_name'], 'scan_status': ['scan_status', 'scan_status'], 'kubernetes_cluster_name': + ['kubernetes_cluster_name', 'kubernetes_cluster_name'], 'masked': [True, True], 'host_name': ['host_name', + 'host_name'], 'node_id': ['node_id', 'node_id'], 'pod_name': ['pod_name', 'pod_name']} + Attributes: container_name (Union[Unset, List[str]]): host_name (Union[Unset, List[str]]): image_name (Union[Unset, List[str]]): kubernetes_cluster_name (Union[Unset, List[str]]): masked (Union[Unset, List[bool]]): + most_exploitable_scores (Union[Unset, List[int]]): node_id (Union[Unset, List[str]]): pod_name (Union[Unset, List[str]]): scan_status (Union[Unset, List[str]]): @@ -27,6 +34,7 @@ class UtilsAdvancedReportFilters: image_name: Union[Unset, List[str]] = UNSET kubernetes_cluster_name: Union[Unset, List[str]] = UNSET masked: Union[Unset, List[bool]] = UNSET + most_exploitable_scores: Union[Unset, List[int]] = UNSET node_id: Union[Unset, List[str]] = UNSET pod_name: Union[Unset, List[str]] = UNSET scan_status: Union[Unset, List[str]] = UNSET @@ -53,6 +61,10 @@ def to_dict(self) -> Dict[str, Any]: if not isinstance(self.masked, Unset): masked = self.masked + most_exploitable_scores: Union[Unset, List[int]] = UNSET + if not isinstance(self.most_exploitable_scores, Unset): + most_exploitable_scores = self.most_exploitable_scores + node_id: Union[Unset, List[str]] = UNSET if not isinstance(self.node_id, Unset): node_id = self.node_id @@ -78,6 +90,8 @@ def to_dict(self) -> Dict[str, Any]: field_dict["kubernetes_cluster_name"] = kubernetes_cluster_name if masked is not UNSET: field_dict["masked"] = masked + if most_exploitable_scores is not UNSET: + field_dict["most_exploitable_scores"] = most_exploitable_scores if node_id is not UNSET: field_dict["node_id"] = node_id if pod_name is not UNSET: @@ -100,6 +114,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: masked = cast(List[bool], d.pop("masked", UNSET)) + most_exploitable_scores = cast(List[int], d.pop("most_exploitable_scores", UNSET)) + node_id = cast(List[str], d.pop("node_id", UNSET)) pod_name = cast(List[str], d.pop("pod_name", UNSET)) @@ -112,6 +128,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: image_name=image_name, kubernetes_cluster_name=kubernetes_cluster_name, masked=masked, + most_exploitable_scores=most_exploitable_scores, node_id=node_id, pod_name=pod_name, scan_status=scan_status, diff --git a/threatstryker/models/utils_registry_credentials.py b/threatstryker/models/utils_registry_credentials.py index 1279ac9..8bdaeef 100644 --- a/threatstryker/models/utils_registry_credentials.py +++ b/threatstryker/models/utils_registry_credentials.py @@ -11,6 +11,9 @@ @_attrs_define class UtilsRegistryCredentials: """ + Example: + {'registry_url': 'registry_url', 'password': 'password', 'username': 'username'} + Attributes: password (Union[Unset, str]): registry_url (Union[Unset, str]): diff --git a/threatstryker/models/utils_report_filters.py b/threatstryker/models/utils_report_filters.py index c364716..f4a2417 100644 --- a/threatstryker/models/utils_report_filters.py +++ b/threatstryker/models/utils_report_filters.py @@ -18,11 +18,25 @@ @_attrs_define class UtilsReportFilters: """ + Example: + {'include_dead_nodes': True, 'node_type': ['node_type', 'node_type'], 'most_exploitable_report': True, + 'advanced_report_filters': {'image_name': ['image_name', 'image_name'], 'most_exploitable_scores': [0, 0], + 'container_name': ['container_name', 'container_name'], 'scan_status': ['scan_status', 'scan_status'], + 'kubernetes_cluster_name': ['kubernetes_cluster_name', 'kubernetes_cluster_name'], 'masked': [True, True], + 'host_name': ['host_name', 'host_name'], 'node_id': ['node_id', 'node_id'], 'pod_name': ['pod_name', + 'pod_name']}, 'include_dormant_exploitable': True, 'scan_type': 'vulnerability', 'scan_id': 'scan_id', + 'severity_or_check_type': ['severity_or_check_type', 'severity_or_check_type']} + Attributes: node_type (UtilsReportFiltersNodeType): scan_type (UtilsReportFiltersScanType): - advanced_report_filters (Union[Unset, UtilsAdvancedReportFilters]): + advanced_report_filters (Union[Unset, UtilsAdvancedReportFilters]): Example: {'image_name': ['image_name', + 'image_name'], 'most_exploitable_scores': [0, 0], 'container_name': ['container_name', 'container_name'], + 'scan_status': ['scan_status', 'scan_status'], 'kubernetes_cluster_name': ['kubernetes_cluster_name', + 'kubernetes_cluster_name'], 'masked': [True, True], 'host_name': ['host_name', 'host_name'], 'node_id': + ['node_id', 'node_id'], 'pod_name': ['pod_name', 'pod_name']}. include_dead_nodes (Union[Unset, bool]): + include_dormant_exploitable (Union[Unset, bool]): most_exploitable_report (Union[Unset, bool]): scan_id (Union[Unset, str]): severity_or_check_type (Union[Unset, UtilsReportFiltersSeverityOrCheckType]): @@ -32,6 +46,7 @@ class UtilsReportFilters: scan_type: UtilsReportFiltersScanType advanced_report_filters: Union[Unset, "UtilsAdvancedReportFilters"] = UNSET include_dead_nodes: Union[Unset, bool] = UNSET + include_dormant_exploitable: Union[Unset, bool] = UNSET most_exploitable_report: Union[Unset, bool] = UNSET scan_id: Union[Unset, str] = UNSET severity_or_check_type: Union[Unset, UtilsReportFiltersSeverityOrCheckType] = UNSET @@ -48,6 +63,8 @@ def to_dict(self) -> Dict[str, Any]: include_dead_nodes = self.include_dead_nodes + include_dormant_exploitable = self.include_dormant_exploitable + most_exploitable_report = self.most_exploitable_report scan_id = self.scan_id @@ -68,6 +85,8 @@ def to_dict(self) -> Dict[str, Any]: field_dict["advanced_report_filters"] = advanced_report_filters if include_dead_nodes is not UNSET: field_dict["include_dead_nodes"] = include_dead_nodes + if include_dormant_exploitable is not UNSET: + field_dict["include_dormant_exploitable"] = include_dormant_exploitable if most_exploitable_report is not UNSET: field_dict["most_exploitable_report"] = most_exploitable_report if scan_id is not UNSET: @@ -95,6 +114,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: include_dead_nodes = d.pop("include_dead_nodes", UNSET) + include_dormant_exploitable = d.pop("include_dormant_exploitable", UNSET) + most_exploitable_report = d.pop("most_exploitable_report", UNSET) scan_id = d.pop("scan_id", UNSET) @@ -111,6 +132,7 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: scan_type=scan_type, advanced_report_filters=advanced_report_filters, include_dead_nodes=include_dead_nodes, + include_dormant_exploitable=include_dormant_exploitable, most_exploitable_report=most_exploitable_report, scan_id=scan_id, severity_or_check_type=severity_or_check_type, diff --git a/threatstryker/models/utils_report_options.py b/threatstryker/models/utils_report_options.py index 1ffa989..d4f7e68 100644 --- a/threatstryker/models/utils_report_options.py +++ b/threatstryker/models/utils_report_options.py @@ -12,6 +12,9 @@ @_attrs_define class UtilsReportOptions: """ + Example: + {'sbom_format': 'syft-json'} + Attributes: sbom_format (Union[Unset, UtilsReportOptionsSbomFormat]): """ diff --git a/threatstryker/models/utils_scan_sbom_request.py b/threatstryker/models/utils_scan_sbom_request.py index d56d389..9eec7b8 100644 --- a/threatstryker/models/utils_scan_sbom_request.py +++ b/threatstryker/models/utils_scan_sbom_request.py @@ -11,6 +11,12 @@ @_attrs_define class UtilsScanSbomRequest: """ + Example: + {'skip_scan': True, 'kubernetes_cluster_name': 'kubernetes_cluster_name', 'scan_type': 'scan_type', + 'sbom_file_path': 'sbom_file_path', 'registry_id': 'registry_id', 'mode': 'mode', 'image_name': 'image_name', + 'node_type': 'node_type', 'container_name': 'container_name', 'sbom': 'sbom', 'scan_id': 'scan_id', 'image_id': + 'image_id', 'host_name': 'host_name', 'node_id': 'node_id'} + Attributes: sbom (str): scan_id (str):