datadog_api_client 2.44.0 → 2.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +645 -36
- data/.generator/schemas/v2/openapi.yaml +8013 -605
- data/.pre-commit-config.yaml +4 -0
- data/CHANGELOG.md +45 -0
- data/examples/v1/monitors/CreateMonitor_3541766733.rb +32 -0
- data/examples/v2/aws-integration/CreateAWSEventBridgeSource.rb +17 -0
- data/examples/v2/aws-integration/DeleteAWSEventBridgeSource.rb +16 -0
- data/examples/v2/aws-integration/ListAWSEventBridgeSources.rb +5 -0
- data/examples/v2/deployment-gates/CreateDeploymentGate.rb +20 -0
- data/examples/v2/deployment-gates/CreateDeploymentRule.rb +25 -0
- data/examples/v2/deployment-gates/DeleteDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/DeleteDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/GetDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/GetDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/UpdateDeploymentGate.rb +21 -0
- data/examples/v2/deployment-gates/UpdateDeploymentRule.rb +27 -0
- data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +1 -1
- data/examples/v2/fleet-automation/CreateFleetDeploymentUpgrade.rb +23 -0
- data/examples/v2/fleet-automation/CreateFleetSchedule.rb +30 -0
- data/examples/v2/fleet-automation/DeleteFleetSchedule.rb +8 -0
- data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +8 -0
- data/examples/v2/fleet-automation/GetFleetDeployment.rb +2 -5
- data/examples/v2/fleet-automation/GetFleetDeployment_1482493803.rb +11 -0
- data/examples/v2/fleet-automation/GetFleetSchedule.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetAgentVersions.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetAgents.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetSchedules.rb +8 -0
- data/examples/v2/fleet-automation/TriggerFleetSchedule.rb +8 -0
- data/examples/v2/fleet-automation/UpdateFleetSchedule.rb +30 -0
- data/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +17 -0
- data/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +8 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +11 -0
- data/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +20 -0
- data/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +20 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +21 -0
- data/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +24 -0
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +9 -0
- data/examples/v2/on-call/GetScheduleOnCallUser.rb +1 -1
- data/examples/v2/reference-tables/CreateReferenceTable.rb +23 -14
- data/examples/v2/reference-tables/DeleteRows.rb +14 -0
- data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
- data/examples/v2/reference-tables/UpsertRows.rb +19 -0
- data/examples/v2/rum-audience-management/CreateConnection.rb +36 -0
- data/examples/v2/rum-audience-management/DeleteConnection.rb +8 -0
- data/examples/v2/rum-audience-management/GetAccountFacetInfo.rb +25 -0
- data/examples/v2/rum-audience-management/GetMapping.rb +8 -0
- data/examples/v2/rum-audience-management/GetUserFacetInfo.rb +25 -0
- data/examples/v2/rum-audience-management/ListConnections.rb +8 -0
- data/examples/v2/rum-audience-management/QueryAccounts.rb +34 -0
- data/examples/v2/rum-audience-management/QueryEventFilteredUsers.rb +37 -0
- data/examples/v2/rum-audience-management/QueryUsers.rb +34 -0
- data/examples/v2/rum-audience-management/UpdateConnection.rb +43 -0
- data/examples/v2/security-monitoring/AttachCase.rb +26 -0
- data/examples/v2/security-monitoring/AttachCase_897782765.rb +22 -0
- data/examples/v2/security-monitoring/AttachJiraIssue.rb +34 -0
- data/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +30 -0
- data/examples/v2/security-monitoring/CancelThreatHuntingJob.rb +8 -0
- data/examples/v2/security-monitoring/CancelThreatHuntingJob_1945505845.rb +12 -0
- data/examples/v2/security-monitoring/CreateCases.rb +56 -0
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +33 -0
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +37 -0
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +96 -0
- data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +56 -0
- data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +64 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +4 -0
- data/examples/v2/security-monitoring/{DeleteHistoricalJob.rb → DeleteThreatHuntingJob.rb} +2 -2
- data/examples/v2/security-monitoring/DetachCase.rb +21 -0
- data/examples/v2/security-monitoring/GetSecretsRules.rb +8 -0
- data/examples/v2/security-monitoring/GetThreatHuntingJob.rb +12 -0
- data/examples/v2/security-monitoring/ListMultipleRulesets.rb +17 -0
- data/examples/v2/security-monitoring/ListThreatHuntingJobs.rb +8 -0
- data/examples/v2/security-monitoring/ListThreatHuntingJobs_1365512061.rb +15 -0
- data/examples/v2/security-monitoring/{RunHistoricalJob.rb → RunThreatHuntingJob.rb} +9 -9
- data/examples/v2/software-catalog/PreviewCatalogEntities.rb +5 -0
- data/examples/v2/teams/AddTeamHierarchyLink.rb +31 -0
- data/examples/v2/teams/CreateTeamConnections.rb +37 -0
- data/examples/v2/teams/DeleteTeamConnections.rb +17 -0
- data/examples/v2/teams/GetTeamHierarchyLink.rb +8 -0
- data/examples/v2/teams/GetTeamSync.rb +8 -0
- data/examples/v2/teams/ListTeamConnections.rb +8 -0
- data/examples/v2/teams/ListTeamConnections_1473516764.rb +14 -0
- data/examples/v2/teams/ListTeamConnections_2418873869.rb +8 -0
- data/examples/v2/teams/ListTeamHierarchyLinks.rb +15 -0
- data/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +5 -0
- data/examples/v2/teams/RemoveTeamHierarchyLink.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +50 -5
- data/lib/datadog_api_client/inflector.rb +312 -14
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +18 -9
- data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/key_management_api.rb +5 -0
- data/lib/datadog_api_client/v1/api/metrics_api.rb +5 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -0
- data/lib/datadog_api_client/v1/models/aws_account.rb +5 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +13 -1
- data/lib/datadog_api_client/v1/models/monitor_asset.rb +186 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_category.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_resource_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +14 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +314 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +314 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +311 -1
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +194 -0
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +632 -0
- data/lib/datadog_api_client/v2/api/error_tracking_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/events_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +871 -31
- data/lib/datadog_api_client/v2/api/incidents_api.rb +3 -0
- data/lib/datadog_api_client/v2/api/key_management_api.rb +4 -2
- data/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +842 -0
- data/lib/datadog_api_client/v2/api/on_call_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/reference_tables_api.rb +164 -16
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
- data/lib/datadog_api_client/v2/api/rum_audience_management_api.rb +765 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +708 -219
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +57 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +628 -1
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/attach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_partition.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_data.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_data.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_event_bridge_account_configuration.rb +130 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request_attributes.rb +178 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response_attributes.rb +136 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_status.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request_attributes.rb +166 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_status.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_source.rb +116 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_lambda_forwarder_config.rb +7 -4
- data/lib/datadog_api_client/v2/models/aws_log_source_tag_filter.rb +7 -3
- data/lib/datadog_api_client/v2/models/aws_logs_config.rb +3 -2
- data/lib/datadog_api_client/v2/models/aws_namespace_filters_exclude_only.rb +8 -4
- data/lib/datadog_api_client/v2/models/aws_namespace_tag_filter.rb +6 -4
- data/lib/datadog_api_client/v2/models/aws_resources_config.rb +5 -2
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +125 -0
- data/lib/datadog_api_client/v2/models/case_management_project.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/configured_schedule.rb +186 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships_schedule.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/connected_team_ref.rb +105 -0
- data/lib/datadog_api_client/v2/models/connected_team_ref_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/connected_team_ref_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/connections_page_pagination.rb +184 -0
- data/lib/datadog_api_client/v2/models/connections_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_case_request_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/{historical_job_response.rb → create_connection_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_connection_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_connection_request_data_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/create_connection_request_data_attributes_fields_items.rb +197 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +137 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes_fields.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_table_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_table_request_data.rb +6 -41
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb +6 -6
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb +4 -4
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema_fields_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_upload_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_upload_request_data.rb +6 -41
- data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/create_upload_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_upload_response_data.rb +7 -32
- data/lib/datadog_api_client/v2/models/create_upload_response_data_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/deployment_gate_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes.rb +248 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_options_faulty_deployment_detection.rb +92 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_options_monitor.rb +108 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes.rb +269 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rules_options.rb +63 -0
- data/lib/datadog_api_client/v2/models/detach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/entity_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships.rb +145 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents.rb +107 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls.rb +107 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema.rb +123 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities.rb +107 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema.rb +123 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +20 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +3 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target.rb +12 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config_schedule.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_target.rb +3 -2
- data/lib/datadog_api_client/v2/models/facet_info_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes_search.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes_term_search.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/facet_info_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result.rb +117 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result_range.rb +115 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result_values_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/finding_case_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +277 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/finding_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_local_file.rb → finding_jira_issue.rb} +19 -19
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +135 -0
- data/lib/datadog_api_client/v2/models/findings.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes.rb +327 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes_tags_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_details.rb +403 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_version.rb +154 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_version_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_version_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_versions_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response.rb +133 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_file.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +155 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_attributes.rb +29 -2
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create.rb +1 -1
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/fleet_deployment_host.rb +137 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_host_package.rb +136 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_hosts_page.rb +135 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_operation.rb +2 -2
- data/lib/datadog_api_client/v2/models/fleet_deployment_package.rb +144 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_response.rb +13 -3
- data/lib/datadog_api_client/v2/models/fleet_deployment_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_detected_integration.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_integration_details.rb +197 -0
- data/lib/datadog_api_client/v2/models/fleet_integrations_by_status.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb +214 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_create_attributes.rb +207 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_patch.rb +133 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb +174 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_recurrence_rule.rb +191 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/fleet_schedules_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +13 -1
- data/lib/datadog_api_client/v2/models/get_mapping_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/get_mapping_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/get_mapping_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/get_mapping_response_data_attributes_attributes_items.rb +157 -0
- data/lib/datadog_api_client/v2/models/get_mapping_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items.rb +165 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items.rb +367 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_arguments_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb +147 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_bad_request_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_rules_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/jira_issues_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/job_create_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/job_create_response_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/job_definition.rb +3 -3
- data/lib/datadog_api_client/v2/models/job_definition_from_rule.rb +1 -1
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/{run_historical_job_request.rb → list_connections_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/list_connections_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes_connections_items.rb +187 -0
- data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes_connections_items_join.rb +115 -0
- data/lib/datadog_api_client/v2/models/list_connections_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{list_historical_jobs_response.rb → list_threat_hunting_jobs_response.rb} +6 -6
- data/lib/datadog_api_client/v2/models/logs_restriction_queries_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +2 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +106 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +1 -12
- data/lib/datadog_api_client/v2/models/patch_table_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/patch_table_request_data.rb +6 -41
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_cloud_storage.rb +1 -1
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details.rb +4 -4
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +3 -3
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/preview_entity_response_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/query_account_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/query_account_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/query_account_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/query_account_request_data_attributes_sort.rb +115 -0
- data/lib/datadog_api_client/v2/models/query_account_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes_event_query.rb +115 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes_event_query_time_frame.rb +115 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/query_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/query_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/query_response_data_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/query_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/query_users_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/query_users_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/query_users_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/query_users_request_data_attributes_sort.rb +115 -0
- data/lib/datadog_api_client/v2/models/query_users_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +8 -0
- data/lib/datadog_api_client/v2/models/restriction_query_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role_attribute.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_roles_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/run_threat_hunting_job_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{run_historical_job_request_attributes.rb → run_threat_hunting_job_request_attributes.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{run_historical_job_request_data.rb → run_threat_hunting_job_request_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/{run_historical_job_request_data_type.rb → run_threat_hunting_job_request_data_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/schedule_target.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_target_position.rb +28 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/secret_rule_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_attributes.rb +189 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation.rb +203 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation_invalid_http_status_code_items.rb +152 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation_valid_http_status_code_items.rb +152 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +2 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +15 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/table_result_v2.rb +2 -2
- data/lib/datadog_api_client/v2/models/table_result_v2_array.rb +1 -1
- data/lib/datadog_api_client/v2/models/table_result_v2_data.rb +7 -32
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +16 -8
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +102 -37
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details.rb +4 -4
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +2 -2
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/table_row_resource_array.rb +1 -1
- data/lib/datadog_api_client/v2/models/table_row_resource_data.rb +7 -32
- data/lib/datadog_api_client/v2/models/table_row_resource_data_attributes.rb +7 -32
- data/lib/datadog_api_client/v2/models/team_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/team_connection.rb +164 -0
- data/lib/datadog_api_client/v2/models/team_connection_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_connection_create_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/team_connection_create_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/team_connection_delete_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/team_connection_delete_request_data_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_connection_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_connection_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_connections_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link.rb +175 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_attributes.rb +223 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_links_response.rb +139 -0
- data/lib/datadog_api_client/v2/models/team_ref.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_ref_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_ref_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +22 -2
- data/lib/datadog_api_client/v2/models/team_sync_attributes_frequency.rb +28 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +2 -1
- data/lib/datadog_api_client/v2/models/team_sync_data.rb +12 -2
- data/lib/datadog_api_client/v2/models/team_sync_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_sync_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_links.rb +156 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta_page.rb +184 -0
- data/lib/datadog_api_client/v2/models/{historical_job_data_type.rb → threat_hunting_job_data_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/{historical_job_list_meta.rb → threat_hunting_job_list_meta.rb} +2 -2
- data/lib/datadog_api_client/v2/models/{historical_job_options.rb → threat_hunting_job_options.rb} +2 -2
- data/lib/datadog_api_client/v2/models/{historical_job_query.rb → threat_hunting_job_query.rb} +3 -3
- data/lib/datadog_api_client/v2/models/threat_hunting_job_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{historical_job_response_attributes.rb → threat_hunting_job_response_attributes.rb} +17 -7
- data/lib/datadog_api_client/v2/models/{historical_job_response_data.rb → threat_hunting_job_response_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/update_connection_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_connection_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/update_connection_request_data_attributes.rb +131 -0
- data/lib/datadog_api_client/v2/models/update_connection_request_data_attributes_fields_to_update_items.rb +165 -0
- data/lib/datadog_api_client/v2/models/update_connection_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_cloud_storage.rb → update_deployment_rule_params_data_attributes.rb} +61 -41
- data/lib/datadog_api_client/v2/models/user_attributes.rb +12 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +393 -20
- data/examples/v2/security-monitoring/CancelHistoricalJob.rb +0 -12
- data/examples/v2/security-monitoring/GetHistoricalJob.rb +0 -12
- data/examples/v2/security-monitoring/ListHistoricalJobs.rb +0 -15
|
@@ -23,38 +23,177 @@ module DatadogAPIClient::V2
|
|
|
23
23
|
@api_client = api_client
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
#
|
|
26
|
+
# Attach security findings to a case.
|
|
27
27
|
#
|
|
28
|
-
# @see #
|
|
29
|
-
def
|
|
30
|
-
|
|
28
|
+
# @see #attach_case_with_http_info
|
|
29
|
+
def attach_case(case_id, body, opts = {})
|
|
30
|
+
data, _status_code, _headers = attach_case_with_http_info(case_id, body, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Attach security findings to a case.
|
|
35
|
+
#
|
|
36
|
+
# Attach security findings to a case. You can attach up to 50 security findings per case. Security findings that are already attached to another case will be detached from their previous case and attached to the specified case.
|
|
37
|
+
#
|
|
38
|
+
# @param case_id [String] The unique identifier of the case to attach security findings to
|
|
39
|
+
# @param body [AttachCaseRequest]
|
|
40
|
+
# @param opts [Hash] the optional parameters
|
|
41
|
+
# @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers
|
|
42
|
+
def attach_case_with_http_info(case_id, body, opts = {})
|
|
43
|
+
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.attach_case ...'
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'case_id' is set
|
|
48
|
+
if @api_client.config.client_side_validation && case_id.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'case_id' when calling SecurityMonitoringAPI.attach_case"
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'body' is set
|
|
52
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.attach_case"
|
|
54
|
+
end
|
|
55
|
+
# resource path
|
|
56
|
+
local_var_path = '/api/v2/security/findings/cases/{case_id}'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/'))
|
|
57
|
+
|
|
58
|
+
# query parameters
|
|
59
|
+
query_params = opts[:query_params] || {}
|
|
60
|
+
|
|
61
|
+
# header parameters
|
|
62
|
+
header_params = opts[:header_params] || {}
|
|
63
|
+
# HTTP header 'Accept' (if needed)
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
65
|
+
# HTTP header 'Content-Type'
|
|
66
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
67
|
+
|
|
68
|
+
# form parameters
|
|
69
|
+
form_params = opts[:form_params] || {}
|
|
70
|
+
|
|
71
|
+
# http body (model)
|
|
72
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
73
|
+
|
|
74
|
+
# return_type
|
|
75
|
+
return_type = opts[:debug_return_type] || 'FindingCaseResponse'
|
|
76
|
+
|
|
77
|
+
# auth_names
|
|
78
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
79
|
+
|
|
80
|
+
new_options = opts.merge(
|
|
81
|
+
:operation => :attach_case,
|
|
82
|
+
:header_params => header_params,
|
|
83
|
+
:query_params => query_params,
|
|
84
|
+
:form_params => form_params,
|
|
85
|
+
:body => post_body,
|
|
86
|
+
:auth_names => auth_names,
|
|
87
|
+
:return_type => return_type,
|
|
88
|
+
:api_version => "V2"
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#attach_case\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
94
|
+
end
|
|
95
|
+
return data, status_code, headers
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Attach security findings to a Jira issue.
|
|
99
|
+
#
|
|
100
|
+
# @see #attach_jira_issue_with_http_info
|
|
101
|
+
def attach_jira_issue(body, opts = {})
|
|
102
|
+
data, _status_code, _headers = attach_jira_issue_with_http_info(body, opts)
|
|
103
|
+
data
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Attach security findings to a Jira issue.
|
|
107
|
+
#
|
|
108
|
+
# Attach security findings to a Jira issue by providing the Jira issue URL. You can attach up to 50 security findings per Jira issue. If the Jira issue is not linked to any case, this operation will create a case for the security findings and link the Jira issue to the newly created case. Security findings that are already attached to another Jira issue will be detached from their previous Jira issue and attached to the specified Jira issue.
|
|
109
|
+
#
|
|
110
|
+
# @param body [AttachJiraIssueRequest]
|
|
111
|
+
# @param opts [Hash] the optional parameters
|
|
112
|
+
# @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers
|
|
113
|
+
def attach_jira_issue_with_http_info(body, opts = {})
|
|
114
|
+
|
|
115
|
+
if @api_client.config.debugging
|
|
116
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.attach_jira_issue ...'
|
|
117
|
+
end
|
|
118
|
+
# verify the required parameter 'body' is set
|
|
119
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
120
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.attach_jira_issue"
|
|
121
|
+
end
|
|
122
|
+
# resource path
|
|
123
|
+
local_var_path = '/api/v2/security/findings/jira_issues'
|
|
124
|
+
|
|
125
|
+
# query parameters
|
|
126
|
+
query_params = opts[:query_params] || {}
|
|
127
|
+
|
|
128
|
+
# header parameters
|
|
129
|
+
header_params = opts[:header_params] || {}
|
|
130
|
+
# HTTP header 'Accept' (if needed)
|
|
131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
132
|
+
# HTTP header 'Content-Type'
|
|
133
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
134
|
+
|
|
135
|
+
# form parameters
|
|
136
|
+
form_params = opts[:form_params] || {}
|
|
137
|
+
|
|
138
|
+
# http body (model)
|
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
140
|
+
|
|
141
|
+
# return_type
|
|
142
|
+
return_type = opts[:debug_return_type] || 'FindingCaseResponse'
|
|
143
|
+
|
|
144
|
+
# auth_names
|
|
145
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
146
|
+
|
|
147
|
+
new_options = opts.merge(
|
|
148
|
+
:operation => :attach_jira_issue,
|
|
149
|
+
:header_params => header_params,
|
|
150
|
+
:query_params => query_params,
|
|
151
|
+
:form_params => form_params,
|
|
152
|
+
:body => post_body,
|
|
153
|
+
:auth_names => auth_names,
|
|
154
|
+
:return_type => return_type,
|
|
155
|
+
:api_version => "V2"
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
159
|
+
if @api_client.config.debugging
|
|
160
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#attach_jira_issue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
161
|
+
end
|
|
162
|
+
return data, status_code, headers
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Cancel a threat hunting job.
|
|
166
|
+
#
|
|
167
|
+
# @see #cancel_threat_hunting_job_with_http_info
|
|
168
|
+
def cancel_threat_hunting_job(job_id, opts = {})
|
|
169
|
+
cancel_threat_hunting_job_with_http_info(job_id, opts)
|
|
31
170
|
nil
|
|
32
171
|
end
|
|
33
172
|
|
|
34
|
-
# Cancel a
|
|
173
|
+
# Cancel a threat hunting job.
|
|
35
174
|
#
|
|
36
|
-
# Cancel a
|
|
175
|
+
# Cancel a threat hunting job.
|
|
37
176
|
#
|
|
38
177
|
# @param job_id [String] The ID of the job.
|
|
39
178
|
# @param opts [Hash] the optional parameters
|
|
40
179
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
41
|
-
def
|
|
42
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.
|
|
180
|
+
def cancel_threat_hunting_job_with_http_info(job_id, opts = {})
|
|
181
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.cancel_threat_hunting_job".to_sym]
|
|
43
182
|
if unstable_enabled
|
|
44
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
183
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.cancel_threat_hunting_job")
|
|
45
184
|
else
|
|
46
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
185
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.cancel_threat_hunting_job"))
|
|
47
186
|
end
|
|
48
187
|
|
|
49
188
|
if @api_client.config.debugging
|
|
50
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
189
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.cancel_threat_hunting_job ...'
|
|
51
190
|
end
|
|
52
191
|
# verify the required parameter 'job_id' is set
|
|
53
192
|
if @api_client.config.client_side_validation && job_id.nil?
|
|
54
|
-
fail ArgumentError, "Missing the required parameter 'job_id' when calling SecurityMonitoringAPI.
|
|
193
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling SecurityMonitoringAPI.cancel_threat_hunting_job"
|
|
55
194
|
end
|
|
56
195
|
# resource path
|
|
57
|
-
local_var_path = '/api/v2/siem-
|
|
196
|
+
local_var_path = '/api/v2/siem-threat-hunting/jobs/{job_id}/cancel'.sub('{job_id}', CGI.escape(job_id.to_s).gsub('%2F', '/'))
|
|
58
197
|
|
|
59
198
|
# query parameters
|
|
60
199
|
query_params = opts[:query_params] || {}
|
|
@@ -77,7 +216,7 @@ module DatadogAPIClient::V2
|
|
|
77
216
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
78
217
|
|
|
79
218
|
new_options = opts.merge(
|
|
80
|
-
:operation => :
|
|
219
|
+
:operation => :cancel_threat_hunting_job,
|
|
81
220
|
:header_params => header_params,
|
|
82
221
|
:query_params => query_params,
|
|
83
222
|
:form_params => form_params,
|
|
@@ -89,7 +228,7 @@ module DatadogAPIClient::V2
|
|
|
89
228
|
|
|
90
229
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
91
230
|
if @api_client.config.debugging
|
|
92
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
231
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#cancel_threat_hunting_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
93
232
|
end
|
|
94
233
|
return data, status_code, headers
|
|
95
234
|
end
|
|
@@ -104,8 +243,13 @@ module DatadogAPIClient::V2
|
|
|
104
243
|
|
|
105
244
|
# Convert an existing rule from JSON to Terraform.
|
|
106
245
|
#
|
|
107
|
-
# Convert an existing rule from JSON to Terraform for
|
|
108
|
-
# resource datadog_security_monitoring_rule
|
|
246
|
+
# Convert an existing rule from JSON to Terraform for Datadog provider
|
|
247
|
+
# resource `datadog_security_monitoring_rule`. You can do so for the following rule types:
|
|
248
|
+
# - App and API Protection
|
|
249
|
+
# - Cloud SIEM (log detection and signal correlation)
|
|
250
|
+
# - Workload Protection
|
|
251
|
+
#
|
|
252
|
+
# You can convert Cloud Security configuration rules using Terraform's [Datadog Cloud Configuration Rule resource](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/cloud_configuration_rule).
|
|
109
253
|
#
|
|
110
254
|
# @param rule_id [String] The ID of the rule.
|
|
111
255
|
# @param opts [Hash] the optional parameters
|
|
@@ -191,7 +335,7 @@ module DatadogAPIClient::V2
|
|
|
191
335
|
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.convert_job_result_to_signal"
|
|
192
336
|
end
|
|
193
337
|
# resource path
|
|
194
|
-
local_var_path = '/api/v2/siem-
|
|
338
|
+
local_var_path = '/api/v2/siem-threat-hunting/jobs/signal_convert'
|
|
195
339
|
|
|
196
340
|
# query parameters
|
|
197
341
|
query_params = opts[:query_params] || {}
|
|
@@ -243,8 +387,13 @@ module DatadogAPIClient::V2
|
|
|
243
387
|
|
|
244
388
|
# Convert a rule from JSON to Terraform.
|
|
245
389
|
#
|
|
246
|
-
# Convert a rule that doesn't (yet) exist from JSON to Terraform for
|
|
247
|
-
# resource datadog_security_monitoring_rule
|
|
390
|
+
# Convert a rule that doesn't (yet) exist from JSON to Terraform for Datadog provider
|
|
391
|
+
# resource `datadog_security_monitoring_rule`. You can do so for the following rule types:
|
|
392
|
+
# - App and API Protection
|
|
393
|
+
# - Cloud SIEM (log detection and signal correlation)
|
|
394
|
+
# - Workload Protection
|
|
395
|
+
#
|
|
396
|
+
# You can convert Cloud Security configuration rules using Terraform's [Datadog Cloud Configuration Rule resource](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/cloud_configuration_rule).
|
|
248
397
|
#
|
|
249
398
|
# @param body [SecurityMonitoringRuleConvertPayload]
|
|
250
399
|
# @param opts [Hash] the optional parameters
|
|
@@ -301,6 +450,73 @@ module DatadogAPIClient::V2
|
|
|
301
450
|
return data, status_code, headers
|
|
302
451
|
end
|
|
303
452
|
|
|
453
|
+
# Create cases for security findings.
|
|
454
|
+
#
|
|
455
|
+
# @see #create_cases_with_http_info
|
|
456
|
+
def create_cases(body, opts = {})
|
|
457
|
+
data, _status_code, _headers = create_cases_with_http_info(body, opts)
|
|
458
|
+
data
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Create cases for security findings.
|
|
462
|
+
#
|
|
463
|
+
# Create cases for security findings. You can create up to 50 cases per request and associate up to 50 security findings per case. Security findings that are already attached to another case will be detached from their previous case and attached to the newly created case.
|
|
464
|
+
#
|
|
465
|
+
# @param body [CreateCaseRequestArray]
|
|
466
|
+
# @param opts [Hash] the optional parameters
|
|
467
|
+
# @return [Array<(FindingCaseResponseArray, Integer, Hash)>] FindingCaseResponseArray data, response status code and response headers
|
|
468
|
+
def create_cases_with_http_info(body, opts = {})
|
|
469
|
+
|
|
470
|
+
if @api_client.config.debugging
|
|
471
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_cases ...'
|
|
472
|
+
end
|
|
473
|
+
# verify the required parameter 'body' is set
|
|
474
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
475
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_cases"
|
|
476
|
+
end
|
|
477
|
+
# resource path
|
|
478
|
+
local_var_path = '/api/v2/security/findings/cases'
|
|
479
|
+
|
|
480
|
+
# query parameters
|
|
481
|
+
query_params = opts[:query_params] || {}
|
|
482
|
+
|
|
483
|
+
# header parameters
|
|
484
|
+
header_params = opts[:header_params] || {}
|
|
485
|
+
# HTTP header 'Accept' (if needed)
|
|
486
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
487
|
+
# HTTP header 'Content-Type'
|
|
488
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
489
|
+
|
|
490
|
+
# form parameters
|
|
491
|
+
form_params = opts[:form_params] || {}
|
|
492
|
+
|
|
493
|
+
# http body (model)
|
|
494
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
495
|
+
|
|
496
|
+
# return_type
|
|
497
|
+
return_type = opts[:debug_return_type] || 'FindingCaseResponseArray'
|
|
498
|
+
|
|
499
|
+
# auth_names
|
|
500
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
501
|
+
|
|
502
|
+
new_options = opts.merge(
|
|
503
|
+
:operation => :create_cases,
|
|
504
|
+
:header_params => header_params,
|
|
505
|
+
:query_params => query_params,
|
|
506
|
+
:form_params => form_params,
|
|
507
|
+
:body => post_body,
|
|
508
|
+
:auth_names => auth_names,
|
|
509
|
+
:return_type => return_type,
|
|
510
|
+
:api_version => "V2"
|
|
511
|
+
)
|
|
512
|
+
|
|
513
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
514
|
+
if @api_client.config.debugging
|
|
515
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_cases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
516
|
+
end
|
|
517
|
+
return data, status_code, headers
|
|
518
|
+
end
|
|
519
|
+
|
|
304
520
|
# Create a custom framework.
|
|
305
521
|
#
|
|
306
522
|
# @see #create_custom_framework_with_http_info
|
|
@@ -368,6 +584,73 @@ module DatadogAPIClient::V2
|
|
|
368
584
|
return data, status_code, headers
|
|
369
585
|
end
|
|
370
586
|
|
|
587
|
+
# Create Jira issues for security findings.
|
|
588
|
+
#
|
|
589
|
+
# @see #create_jira_issues_with_http_info
|
|
590
|
+
def create_jira_issues(body, opts = {})
|
|
591
|
+
data, _status_code, _headers = create_jira_issues_with_http_info(body, opts)
|
|
592
|
+
data
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
# Create Jira issues for security findings.
|
|
596
|
+
#
|
|
597
|
+
# Create Jira issues for security findings. This operation creates a case in Datadog and a Jira issue linked to that case for bidirectional sync between Datadog and Jira. You can create up to 50 Jira issues per request and associate up to 50 security findings per Jira issue. Security findings that are already attached to another Jira issue will be detached from their previous Jira issue and attached to the newly created Jira issue.
|
|
598
|
+
#
|
|
599
|
+
# @param body [CreateJiraIssueRequestArray]
|
|
600
|
+
# @param opts [Hash] the optional parameters
|
|
601
|
+
# @return [Array<(FindingCaseResponseArray, Integer, Hash)>] FindingCaseResponseArray data, response status code and response headers
|
|
602
|
+
def create_jira_issues_with_http_info(body, opts = {})
|
|
603
|
+
|
|
604
|
+
if @api_client.config.debugging
|
|
605
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_jira_issues ...'
|
|
606
|
+
end
|
|
607
|
+
# verify the required parameter 'body' is set
|
|
608
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
609
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_jira_issues"
|
|
610
|
+
end
|
|
611
|
+
# resource path
|
|
612
|
+
local_var_path = '/api/v2/security/findings/jira_issues'
|
|
613
|
+
|
|
614
|
+
# query parameters
|
|
615
|
+
query_params = opts[:query_params] || {}
|
|
616
|
+
|
|
617
|
+
# header parameters
|
|
618
|
+
header_params = opts[:header_params] || {}
|
|
619
|
+
# HTTP header 'Accept' (if needed)
|
|
620
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
621
|
+
# HTTP header 'Content-Type'
|
|
622
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
623
|
+
|
|
624
|
+
# form parameters
|
|
625
|
+
form_params = opts[:form_params] || {}
|
|
626
|
+
|
|
627
|
+
# http body (model)
|
|
628
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
629
|
+
|
|
630
|
+
# return_type
|
|
631
|
+
return_type = opts[:debug_return_type] || 'FindingCaseResponseArray'
|
|
632
|
+
|
|
633
|
+
# auth_names
|
|
634
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
635
|
+
|
|
636
|
+
new_options = opts.merge(
|
|
637
|
+
:operation => :create_jira_issues,
|
|
638
|
+
:header_params => header_params,
|
|
639
|
+
:query_params => query_params,
|
|
640
|
+
:form_params => form_params,
|
|
641
|
+
:body => post_body,
|
|
642
|
+
:auth_names => auth_names,
|
|
643
|
+
:return_type => return_type,
|
|
644
|
+
:api_version => "V2"
|
|
645
|
+
)
|
|
646
|
+
|
|
647
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
648
|
+
if @api_client.config.debugging
|
|
649
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_jira_issues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
650
|
+
end
|
|
651
|
+
return data, status_code, headers
|
|
652
|
+
end
|
|
653
|
+
|
|
371
654
|
# Create a security filter.
|
|
372
655
|
#
|
|
373
656
|
# @see #create_security_filter_with_http_info
|
|
@@ -776,77 +1059,6 @@ module DatadogAPIClient::V2
|
|
|
776
1059
|
return data, status_code, headers
|
|
777
1060
|
end
|
|
778
1061
|
|
|
779
|
-
# Delete an existing job.
|
|
780
|
-
#
|
|
781
|
-
# @see #delete_historical_job_with_http_info
|
|
782
|
-
def delete_historical_job(job_id, opts = {})
|
|
783
|
-
delete_historical_job_with_http_info(job_id, opts)
|
|
784
|
-
nil
|
|
785
|
-
end
|
|
786
|
-
|
|
787
|
-
# Delete an existing job.
|
|
788
|
-
#
|
|
789
|
-
# Delete an existing job.
|
|
790
|
-
#
|
|
791
|
-
# @param job_id [String] The ID of the job.
|
|
792
|
-
# @param opts [Hash] the optional parameters
|
|
793
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
794
|
-
def delete_historical_job_with_http_info(job_id, opts = {})
|
|
795
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.delete_historical_job".to_sym]
|
|
796
|
-
if unstable_enabled
|
|
797
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_historical_job")
|
|
798
|
-
else
|
|
799
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_historical_job"))
|
|
800
|
-
end
|
|
801
|
-
|
|
802
|
-
if @api_client.config.debugging
|
|
803
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_historical_job ...'
|
|
804
|
-
end
|
|
805
|
-
# verify the required parameter 'job_id' is set
|
|
806
|
-
if @api_client.config.client_side_validation && job_id.nil?
|
|
807
|
-
fail ArgumentError, "Missing the required parameter 'job_id' when calling SecurityMonitoringAPI.delete_historical_job"
|
|
808
|
-
end
|
|
809
|
-
# resource path
|
|
810
|
-
local_var_path = '/api/v2/siem-historical-detections/jobs/{job_id}'.sub('{job_id}', CGI.escape(job_id.to_s).gsub('%2F', '/'))
|
|
811
|
-
|
|
812
|
-
# query parameters
|
|
813
|
-
query_params = opts[:query_params] || {}
|
|
814
|
-
|
|
815
|
-
# header parameters
|
|
816
|
-
header_params = opts[:header_params] || {}
|
|
817
|
-
# HTTP header 'Accept' (if needed)
|
|
818
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
819
|
-
|
|
820
|
-
# form parameters
|
|
821
|
-
form_params = opts[:form_params] || {}
|
|
822
|
-
|
|
823
|
-
# http body (model)
|
|
824
|
-
post_body = opts[:debug_body]
|
|
825
|
-
|
|
826
|
-
# return_type
|
|
827
|
-
return_type = opts[:debug_return_type]
|
|
828
|
-
|
|
829
|
-
# auth_names
|
|
830
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
831
|
-
|
|
832
|
-
new_options = opts.merge(
|
|
833
|
-
:operation => :delete_historical_job,
|
|
834
|
-
:header_params => header_params,
|
|
835
|
-
:query_params => query_params,
|
|
836
|
-
:form_params => form_params,
|
|
837
|
-
:body => post_body,
|
|
838
|
-
:auth_names => auth_names,
|
|
839
|
-
:return_type => return_type,
|
|
840
|
-
:api_version => "V2"
|
|
841
|
-
)
|
|
842
|
-
|
|
843
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
844
|
-
if @api_client.config.debugging
|
|
845
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_historical_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
846
|
-
end
|
|
847
|
-
return data, status_code, headers
|
|
848
|
-
end
|
|
849
|
-
|
|
850
1062
|
# Delete a security filter.
|
|
851
1063
|
#
|
|
852
1064
|
# @see #delete_security_filter_with_http_info
|
|
@@ -1107,6 +1319,77 @@ module DatadogAPIClient::V2
|
|
|
1107
1319
|
return data, status_code, headers
|
|
1108
1320
|
end
|
|
1109
1321
|
|
|
1322
|
+
# Delete an existing job.
|
|
1323
|
+
#
|
|
1324
|
+
# @see #delete_threat_hunting_job_with_http_info
|
|
1325
|
+
def delete_threat_hunting_job(job_id, opts = {})
|
|
1326
|
+
delete_threat_hunting_job_with_http_info(job_id, opts)
|
|
1327
|
+
nil
|
|
1328
|
+
end
|
|
1329
|
+
|
|
1330
|
+
# Delete an existing job.
|
|
1331
|
+
#
|
|
1332
|
+
# Delete an existing job.
|
|
1333
|
+
#
|
|
1334
|
+
# @param job_id [String] The ID of the job.
|
|
1335
|
+
# @param opts [Hash] the optional parameters
|
|
1336
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1337
|
+
def delete_threat_hunting_job_with_http_info(job_id, opts = {})
|
|
1338
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_threat_hunting_job".to_sym]
|
|
1339
|
+
if unstable_enabled
|
|
1340
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_threat_hunting_job")
|
|
1341
|
+
else
|
|
1342
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_threat_hunting_job"))
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1345
|
+
if @api_client.config.debugging
|
|
1346
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_threat_hunting_job ...'
|
|
1347
|
+
end
|
|
1348
|
+
# verify the required parameter 'job_id' is set
|
|
1349
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
|
1350
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling SecurityMonitoringAPI.delete_threat_hunting_job"
|
|
1351
|
+
end
|
|
1352
|
+
# resource path
|
|
1353
|
+
local_var_path = '/api/v2/siem-threat-hunting/jobs/{job_id}'.sub('{job_id}', CGI.escape(job_id.to_s).gsub('%2F', '/'))
|
|
1354
|
+
|
|
1355
|
+
# query parameters
|
|
1356
|
+
query_params = opts[:query_params] || {}
|
|
1357
|
+
|
|
1358
|
+
# header parameters
|
|
1359
|
+
header_params = opts[:header_params] || {}
|
|
1360
|
+
# HTTP header 'Accept' (if needed)
|
|
1361
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1362
|
+
|
|
1363
|
+
# form parameters
|
|
1364
|
+
form_params = opts[:form_params] || {}
|
|
1365
|
+
|
|
1366
|
+
# http body (model)
|
|
1367
|
+
post_body = opts[:debug_body]
|
|
1368
|
+
|
|
1369
|
+
# return_type
|
|
1370
|
+
return_type = opts[:debug_return_type]
|
|
1371
|
+
|
|
1372
|
+
# auth_names
|
|
1373
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1374
|
+
|
|
1375
|
+
new_options = opts.merge(
|
|
1376
|
+
:operation => :delete_threat_hunting_job,
|
|
1377
|
+
:header_params => header_params,
|
|
1378
|
+
:query_params => query_params,
|
|
1379
|
+
:form_params => form_params,
|
|
1380
|
+
:body => post_body,
|
|
1381
|
+
:auth_names => auth_names,
|
|
1382
|
+
:return_type => return_type,
|
|
1383
|
+
:api_version => "V2"
|
|
1384
|
+
)
|
|
1385
|
+
|
|
1386
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
1387
|
+
if @api_client.config.debugging
|
|
1388
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_threat_hunting_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1389
|
+
end
|
|
1390
|
+
return data, status_code, headers
|
|
1391
|
+
end
|
|
1392
|
+
|
|
1110
1393
|
# Delete a vulnerability-based notification rule.
|
|
1111
1394
|
#
|
|
1112
1395
|
# @see #delete_vulnerability_notification_rule_with_http_info
|
|
@@ -1125,14 +1408,79 @@ module DatadogAPIClient::V2
|
|
|
1125
1408
|
def delete_vulnerability_notification_rule_with_http_info(id, opts = {})
|
|
1126
1409
|
|
|
1127
1410
|
if @api_client.config.debugging
|
|
1128
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_vulnerability_notification_rule ...'
|
|
1411
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_vulnerability_notification_rule ...'
|
|
1412
|
+
end
|
|
1413
|
+
# verify the required parameter 'id' is set
|
|
1414
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1415
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SecurityMonitoringAPI.delete_vulnerability_notification_rule"
|
|
1416
|
+
end
|
|
1417
|
+
# resource path
|
|
1418
|
+
local_var_path = '/api/v2/security/vulnerabilities/notification_rules/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/'))
|
|
1419
|
+
|
|
1420
|
+
# query parameters
|
|
1421
|
+
query_params = opts[:query_params] || {}
|
|
1422
|
+
|
|
1423
|
+
# header parameters
|
|
1424
|
+
header_params = opts[:header_params] || {}
|
|
1425
|
+
# HTTP header 'Accept' (if needed)
|
|
1426
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1427
|
+
|
|
1428
|
+
# form parameters
|
|
1429
|
+
form_params = opts[:form_params] || {}
|
|
1430
|
+
|
|
1431
|
+
# http body (model)
|
|
1432
|
+
post_body = opts[:debug_body]
|
|
1433
|
+
|
|
1434
|
+
# return_type
|
|
1435
|
+
return_type = opts[:debug_return_type]
|
|
1436
|
+
|
|
1437
|
+
# auth_names
|
|
1438
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1439
|
+
|
|
1440
|
+
new_options = opts.merge(
|
|
1441
|
+
:operation => :delete_vulnerability_notification_rule,
|
|
1442
|
+
:header_params => header_params,
|
|
1443
|
+
:query_params => query_params,
|
|
1444
|
+
:form_params => form_params,
|
|
1445
|
+
:body => post_body,
|
|
1446
|
+
:auth_names => auth_names,
|
|
1447
|
+
:return_type => return_type,
|
|
1448
|
+
:api_version => "V2"
|
|
1449
|
+
)
|
|
1450
|
+
|
|
1451
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
1452
|
+
if @api_client.config.debugging
|
|
1453
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_vulnerability_notification_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1454
|
+
end
|
|
1455
|
+
return data, status_code, headers
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1458
|
+
# Detach security findings from their case.
|
|
1459
|
+
#
|
|
1460
|
+
# @see #detach_case_with_http_info
|
|
1461
|
+
def detach_case(body, opts = {})
|
|
1462
|
+
detach_case_with_http_info(body, opts)
|
|
1463
|
+
nil
|
|
1464
|
+
end
|
|
1465
|
+
|
|
1466
|
+
# Detach security findings from their case.
|
|
1467
|
+
#
|
|
1468
|
+
# Detach security findings from their case. This operation dissociates security findings from their associated cases without deleting the cases themselves. You can detach security findings from multiple different cases in a single request, with a limit of 50 security findings per request. Security findings that are not currently attached to any case will be ignored.
|
|
1469
|
+
#
|
|
1470
|
+
# @param body [DetachCaseRequest]
|
|
1471
|
+
# @param opts [Hash] the optional parameters
|
|
1472
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1473
|
+
def detach_case_with_http_info(body, opts = {})
|
|
1474
|
+
|
|
1475
|
+
if @api_client.config.debugging
|
|
1476
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.detach_case ...'
|
|
1129
1477
|
end
|
|
1130
|
-
# verify the required parameter '
|
|
1131
|
-
if @api_client.config.client_side_validation &&
|
|
1132
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1478
|
+
# verify the required parameter 'body' is set
|
|
1479
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1480
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.detach_case"
|
|
1133
1481
|
end
|
|
1134
1482
|
# resource path
|
|
1135
|
-
local_var_path = '/api/v2/security/
|
|
1483
|
+
local_var_path = '/api/v2/security/findings/cases'
|
|
1136
1484
|
|
|
1137
1485
|
# query parameters
|
|
1138
1486
|
query_params = opts[:query_params] || {}
|
|
@@ -1141,21 +1489,23 @@ module DatadogAPIClient::V2
|
|
|
1141
1489
|
header_params = opts[:header_params] || {}
|
|
1142
1490
|
# HTTP header 'Accept' (if needed)
|
|
1143
1491
|
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
1492
|
+
# HTTP header 'Content-Type'
|
|
1493
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1144
1494
|
|
|
1145
1495
|
# form parameters
|
|
1146
1496
|
form_params = opts[:form_params] || {}
|
|
1147
1497
|
|
|
1148
1498
|
# http body (model)
|
|
1149
|
-
post_body = opts[:debug_body]
|
|
1499
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1150
1500
|
|
|
1151
1501
|
# return_type
|
|
1152
1502
|
return_type = opts[:debug_return_type]
|
|
1153
1503
|
|
|
1154
1504
|
# auth_names
|
|
1155
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1505
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1156
1506
|
|
|
1157
1507
|
new_options = opts.merge(
|
|
1158
|
-
:operation => :
|
|
1508
|
+
:operation => :detach_case,
|
|
1159
1509
|
:header_params => header_params,
|
|
1160
1510
|
:query_params => query_params,
|
|
1161
1511
|
:form_params => form_params,
|
|
@@ -1167,7 +1517,7 @@ module DatadogAPIClient::V2
|
|
|
1167
1517
|
|
|
1168
1518
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
1169
1519
|
if @api_client.config.debugging
|
|
1170
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
1520
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#detach_case\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1171
1521
|
end
|
|
1172
1522
|
return data, status_code, headers
|
|
1173
1523
|
end
|
|
@@ -1534,77 +1884,6 @@ module DatadogAPIClient::V2
|
|
|
1534
1884
|
return data, status_code, headers
|
|
1535
1885
|
end
|
|
1536
1886
|
|
|
1537
|
-
# Get a job's details.
|
|
1538
|
-
#
|
|
1539
|
-
# @see #get_historical_job_with_http_info
|
|
1540
|
-
def get_historical_job(job_id, opts = {})
|
|
1541
|
-
data, _status_code, _headers = get_historical_job_with_http_info(job_id, opts)
|
|
1542
|
-
data
|
|
1543
|
-
end
|
|
1544
|
-
|
|
1545
|
-
# Get a job's details.
|
|
1546
|
-
#
|
|
1547
|
-
# Get a job's details.
|
|
1548
|
-
#
|
|
1549
|
-
# @param job_id [String] The ID of the job.
|
|
1550
|
-
# @param opts [Hash] the optional parameters
|
|
1551
|
-
# @return [Array<(HistoricalJobResponse, Integer, Hash)>] HistoricalJobResponse data, response status code and response headers
|
|
1552
|
-
def get_historical_job_with_http_info(job_id, opts = {})
|
|
1553
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.get_historical_job".to_sym]
|
|
1554
|
-
if unstable_enabled
|
|
1555
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_historical_job")
|
|
1556
|
-
else
|
|
1557
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_historical_job"))
|
|
1558
|
-
end
|
|
1559
|
-
|
|
1560
|
-
if @api_client.config.debugging
|
|
1561
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_historical_job ...'
|
|
1562
|
-
end
|
|
1563
|
-
# verify the required parameter 'job_id' is set
|
|
1564
|
-
if @api_client.config.client_side_validation && job_id.nil?
|
|
1565
|
-
fail ArgumentError, "Missing the required parameter 'job_id' when calling SecurityMonitoringAPI.get_historical_job"
|
|
1566
|
-
end
|
|
1567
|
-
# resource path
|
|
1568
|
-
local_var_path = '/api/v2/siem-historical-detections/jobs/{job_id}'.sub('{job_id}', CGI.escape(job_id.to_s).gsub('%2F', '/'))
|
|
1569
|
-
|
|
1570
|
-
# query parameters
|
|
1571
|
-
query_params = opts[:query_params] || {}
|
|
1572
|
-
|
|
1573
|
-
# header parameters
|
|
1574
|
-
header_params = opts[:header_params] || {}
|
|
1575
|
-
# HTTP header 'Accept' (if needed)
|
|
1576
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1577
|
-
|
|
1578
|
-
# form parameters
|
|
1579
|
-
form_params = opts[:form_params] || {}
|
|
1580
|
-
|
|
1581
|
-
# http body (model)
|
|
1582
|
-
post_body = opts[:debug_body]
|
|
1583
|
-
|
|
1584
|
-
# return_type
|
|
1585
|
-
return_type = opts[:debug_return_type] || 'HistoricalJobResponse'
|
|
1586
|
-
|
|
1587
|
-
# auth_names
|
|
1588
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1589
|
-
|
|
1590
|
-
new_options = opts.merge(
|
|
1591
|
-
:operation => :get_historical_job,
|
|
1592
|
-
:header_params => header_params,
|
|
1593
|
-
:query_params => query_params,
|
|
1594
|
-
:form_params => form_params,
|
|
1595
|
-
:body => post_body,
|
|
1596
|
-
:auth_names => auth_names,
|
|
1597
|
-
:return_type => return_type,
|
|
1598
|
-
:api_version => "V2"
|
|
1599
|
-
)
|
|
1600
|
-
|
|
1601
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
1602
|
-
if @api_client.config.debugging
|
|
1603
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_historical_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1604
|
-
end
|
|
1605
|
-
return data, status_code, headers
|
|
1606
|
-
end
|
|
1607
|
-
|
|
1608
1887
|
# List resource filters.
|
|
1609
1888
|
#
|
|
1610
1889
|
# @see #get_resource_evaluation_filters_with_http_info
|
|
@@ -1836,6 +2115,72 @@ module DatadogAPIClient::V2
|
|
|
1836
2115
|
return data, status_code, headers
|
|
1837
2116
|
end
|
|
1838
2117
|
|
|
2118
|
+
# Returns list of Secrets rules.
|
|
2119
|
+
#
|
|
2120
|
+
# @see #get_secrets_rules_with_http_info
|
|
2121
|
+
def get_secrets_rules(opts = {})
|
|
2122
|
+
data, _status_code, _headers = get_secrets_rules_with_http_info(opts)
|
|
2123
|
+
data
|
|
2124
|
+
end
|
|
2125
|
+
|
|
2126
|
+
# Returns list of Secrets rules.
|
|
2127
|
+
#
|
|
2128
|
+
# Returns list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID
|
|
2129
|
+
#
|
|
2130
|
+
# @param opts [Hash] the optional parameters
|
|
2131
|
+
# @return [Array<(SecretRuleArray, Integer, Hash)>] SecretRuleArray data, response status code and response headers
|
|
2132
|
+
def get_secrets_rules_with_http_info(opts = {})
|
|
2133
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_secrets_rules".to_sym]
|
|
2134
|
+
if unstable_enabled
|
|
2135
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_secrets_rules")
|
|
2136
|
+
else
|
|
2137
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_secrets_rules"))
|
|
2138
|
+
end
|
|
2139
|
+
|
|
2140
|
+
if @api_client.config.debugging
|
|
2141
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_secrets_rules ...'
|
|
2142
|
+
end
|
|
2143
|
+
# resource path
|
|
2144
|
+
local_var_path = '/api/v2/static-analysis/secrets/rules'
|
|
2145
|
+
|
|
2146
|
+
# query parameters
|
|
2147
|
+
query_params = opts[:query_params] || {}
|
|
2148
|
+
|
|
2149
|
+
# header parameters
|
|
2150
|
+
header_params = opts[:header_params] || {}
|
|
2151
|
+
# HTTP header 'Accept' (if needed)
|
|
2152
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2153
|
+
|
|
2154
|
+
# form parameters
|
|
2155
|
+
form_params = opts[:form_params] || {}
|
|
2156
|
+
|
|
2157
|
+
# http body (model)
|
|
2158
|
+
post_body = opts[:debug_body]
|
|
2159
|
+
|
|
2160
|
+
# return_type
|
|
2161
|
+
return_type = opts[:debug_return_type] || 'SecretRuleArray'
|
|
2162
|
+
|
|
2163
|
+
# auth_names
|
|
2164
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2165
|
+
|
|
2166
|
+
new_options = opts.merge(
|
|
2167
|
+
:operation => :get_secrets_rules,
|
|
2168
|
+
:header_params => header_params,
|
|
2169
|
+
:query_params => query_params,
|
|
2170
|
+
:form_params => form_params,
|
|
2171
|
+
:body => post_body,
|
|
2172
|
+
:auth_names => auth_names,
|
|
2173
|
+
:return_type => return_type,
|
|
2174
|
+
:api_version => "V2"
|
|
2175
|
+
)
|
|
2176
|
+
|
|
2177
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
2178
|
+
if @api_client.config.debugging
|
|
2179
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_secrets_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2180
|
+
end
|
|
2181
|
+
return data, status_code, headers
|
|
2182
|
+
end
|
|
2183
|
+
|
|
1839
2184
|
# Get a security filter.
|
|
1840
2185
|
#
|
|
1841
2186
|
# @see #get_security_filter_with_http_info
|
|
@@ -1916,7 +2261,7 @@ module DatadogAPIClient::V2
|
|
|
1916
2261
|
#
|
|
1917
2262
|
# Get a hist signal's details.
|
|
1918
2263
|
#
|
|
1919
|
-
# @param histsignal_id [String] The ID of the
|
|
2264
|
+
# @param histsignal_id [String] The ID of the threat hunting signal.
|
|
1920
2265
|
# @param opts [Hash] the optional parameters
|
|
1921
2266
|
# @return [Array<(SecurityMonitoringSignalResponse, Integer, Hash)>] SecurityMonitoringSignalResponse data, response status code and response headers
|
|
1922
2267
|
def get_security_monitoring_histsignal_with_http_info(histsignal_id, opts = {})
|
|
@@ -1935,7 +2280,7 @@ module DatadogAPIClient::V2
|
|
|
1935
2280
|
fail ArgumentError, "Missing the required parameter 'histsignal_id' when calling SecurityMonitoringAPI.get_security_monitoring_histsignal"
|
|
1936
2281
|
end
|
|
1937
2282
|
# resource path
|
|
1938
|
-
local_var_path = '/api/v2/siem-
|
|
2283
|
+
local_var_path = '/api/v2/siem-threat-hunting/histsignals/{histsignal_id}'.sub('{histsignal_id}', CGI.escape(histsignal_id.to_s).gsub('%2F', '/'))
|
|
1939
2284
|
|
|
1940
2285
|
# query parameters
|
|
1941
2286
|
query_params = opts[:query_params] || {}
|
|
@@ -2019,7 +2364,7 @@ module DatadogAPIClient::V2
|
|
|
2019
2364
|
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SecurityMonitoringAPI.get_security_monitoring_histsignals_by_job_id, must be smaller than or equal to 1000.'
|
|
2020
2365
|
end
|
|
2021
2366
|
# resource path
|
|
2022
|
-
local_var_path = '/api/v2/siem-
|
|
2367
|
+
local_var_path = '/api/v2/siem-threat-hunting/jobs/{job_id}/histsignals'.sub('{job_id}', CGI.escape(job_id.to_s).gsub('%2F', '/'))
|
|
2023
2368
|
|
|
2024
2369
|
# query parameters
|
|
2025
2370
|
query_params = opts[:query_params] || {}
|
|
@@ -2517,6 +2862,77 @@ module DatadogAPIClient::V2
|
|
|
2517
2862
|
return data, status_code, headers
|
|
2518
2863
|
end
|
|
2519
2864
|
|
|
2865
|
+
# Get a job's details.
|
|
2866
|
+
#
|
|
2867
|
+
# @see #get_threat_hunting_job_with_http_info
|
|
2868
|
+
def get_threat_hunting_job(job_id, opts = {})
|
|
2869
|
+
data, _status_code, _headers = get_threat_hunting_job_with_http_info(job_id, opts)
|
|
2870
|
+
data
|
|
2871
|
+
end
|
|
2872
|
+
|
|
2873
|
+
# Get a job's details.
|
|
2874
|
+
#
|
|
2875
|
+
# Get a job's details.
|
|
2876
|
+
#
|
|
2877
|
+
# @param job_id [String] The ID of the job.
|
|
2878
|
+
# @param opts [Hash] the optional parameters
|
|
2879
|
+
# @return [Array<(ThreatHuntingJobResponse, Integer, Hash)>] ThreatHuntingJobResponse data, response status code and response headers
|
|
2880
|
+
def get_threat_hunting_job_with_http_info(job_id, opts = {})
|
|
2881
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_threat_hunting_job".to_sym]
|
|
2882
|
+
if unstable_enabled
|
|
2883
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_threat_hunting_job")
|
|
2884
|
+
else
|
|
2885
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_threat_hunting_job"))
|
|
2886
|
+
end
|
|
2887
|
+
|
|
2888
|
+
if @api_client.config.debugging
|
|
2889
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_threat_hunting_job ...'
|
|
2890
|
+
end
|
|
2891
|
+
# verify the required parameter 'job_id' is set
|
|
2892
|
+
if @api_client.config.client_side_validation && job_id.nil?
|
|
2893
|
+
fail ArgumentError, "Missing the required parameter 'job_id' when calling SecurityMonitoringAPI.get_threat_hunting_job"
|
|
2894
|
+
end
|
|
2895
|
+
# resource path
|
|
2896
|
+
local_var_path = '/api/v2/siem-threat-hunting/jobs/{job_id}'.sub('{job_id}', CGI.escape(job_id.to_s).gsub('%2F', '/'))
|
|
2897
|
+
|
|
2898
|
+
# query parameters
|
|
2899
|
+
query_params = opts[:query_params] || {}
|
|
2900
|
+
|
|
2901
|
+
# header parameters
|
|
2902
|
+
header_params = opts[:header_params] || {}
|
|
2903
|
+
# HTTP header 'Accept' (if needed)
|
|
2904
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2905
|
+
|
|
2906
|
+
# form parameters
|
|
2907
|
+
form_params = opts[:form_params] || {}
|
|
2908
|
+
|
|
2909
|
+
# http body (model)
|
|
2910
|
+
post_body = opts[:debug_body]
|
|
2911
|
+
|
|
2912
|
+
# return_type
|
|
2913
|
+
return_type = opts[:debug_return_type] || 'ThreatHuntingJobResponse'
|
|
2914
|
+
|
|
2915
|
+
# auth_names
|
|
2916
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2917
|
+
|
|
2918
|
+
new_options = opts.merge(
|
|
2919
|
+
:operation => :get_threat_hunting_job,
|
|
2920
|
+
:header_params => header_params,
|
|
2921
|
+
:query_params => query_params,
|
|
2922
|
+
:form_params => form_params,
|
|
2923
|
+
:body => post_body,
|
|
2924
|
+
:auth_names => auth_names,
|
|
2925
|
+
:return_type => return_type,
|
|
2926
|
+
:api_version => "V2"
|
|
2927
|
+
)
|
|
2928
|
+
|
|
2929
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
2930
|
+
if @api_client.config.debugging
|
|
2931
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_threat_hunting_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2932
|
+
end
|
|
2933
|
+
return data, status_code, headers
|
|
2934
|
+
end
|
|
2935
|
+
|
|
2520
2936
|
# Get details of a vulnerability notification rule.
|
|
2521
2937
|
#
|
|
2522
2938
|
# @see #get_vulnerability_notification_rule_with_http_info
|
|
@@ -2925,64 +3341,63 @@ module DatadogAPIClient::V2
|
|
|
2925
3341
|
end
|
|
2926
3342
|
end
|
|
2927
3343
|
|
|
2928
|
-
#
|
|
3344
|
+
# Ruleset get multiple.
|
|
2929
3345
|
#
|
|
2930
|
-
# @see #
|
|
2931
|
-
def
|
|
2932
|
-
data, _status_code, _headers =
|
|
3346
|
+
# @see #list_multiple_rulesets_with_http_info
|
|
3347
|
+
def list_multiple_rulesets(body, opts = {})
|
|
3348
|
+
data, _status_code, _headers = list_multiple_rulesets_with_http_info(body, opts)
|
|
2933
3349
|
data
|
|
2934
3350
|
end
|
|
2935
3351
|
|
|
2936
|
-
#
|
|
3352
|
+
# Ruleset get multiple.
|
|
2937
3353
|
#
|
|
2938
|
-
#
|
|
3354
|
+
# Get rules for multiple rulesets in batch.
|
|
2939
3355
|
#
|
|
3356
|
+
# @param body [GetMultipleRulesetsRequest]
|
|
2940
3357
|
# @param opts [Hash] the optional parameters
|
|
2941
|
-
# @
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
# @option opts [String] :filter_query Query used to filter items from the fetched list.
|
|
2945
|
-
# @return [Array<(ListHistoricalJobsResponse, Integer, Hash)>] ListHistoricalJobsResponse data, response status code and response headers
|
|
2946
|
-
def list_historical_jobs_with_http_info(opts = {})
|
|
2947
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.list_historical_jobs".to_sym]
|
|
3358
|
+
# @return [Array<(GetMultipleRulesetsResponse, Integer, Hash)>] GetMultipleRulesetsResponse data, response status code and response headers
|
|
3359
|
+
def list_multiple_rulesets_with_http_info(body, opts = {})
|
|
3360
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_multiple_rulesets".to_sym]
|
|
2948
3361
|
if unstable_enabled
|
|
2949
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
3362
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_multiple_rulesets")
|
|
2950
3363
|
else
|
|
2951
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
3364
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_multiple_rulesets"))
|
|
2952
3365
|
end
|
|
2953
3366
|
|
|
2954
3367
|
if @api_client.config.debugging
|
|
2955
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
3368
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_multiple_rulesets ...'
|
|
3369
|
+
end
|
|
3370
|
+
# verify the required parameter 'body' is set
|
|
3371
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
3372
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.list_multiple_rulesets"
|
|
2956
3373
|
end
|
|
2957
3374
|
# resource path
|
|
2958
|
-
local_var_path = '/api/v2/
|
|
3375
|
+
local_var_path = '/api/v2/static-analysis/rulesets'
|
|
2959
3376
|
|
|
2960
3377
|
# query parameters
|
|
2961
3378
|
query_params = opts[:query_params] || {}
|
|
2962
|
-
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
2963
|
-
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
2964
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2965
|
-
query_params[:'filter[query]'] = opts[:'filter_query'] if !opts[:'filter_query'].nil?
|
|
2966
3379
|
|
|
2967
3380
|
# header parameters
|
|
2968
3381
|
header_params = opts[:header_params] || {}
|
|
2969
3382
|
# HTTP header 'Accept' (if needed)
|
|
2970
3383
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
3384
|
+
# HTTP header 'Content-Type'
|
|
3385
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2971
3386
|
|
|
2972
3387
|
# form parameters
|
|
2973
3388
|
form_params = opts[:form_params] || {}
|
|
2974
3389
|
|
|
2975
3390
|
# http body (model)
|
|
2976
|
-
post_body = opts[:debug_body]
|
|
3391
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2977
3392
|
|
|
2978
3393
|
# return_type
|
|
2979
|
-
return_type = opts[:debug_return_type] || '
|
|
3394
|
+
return_type = opts[:debug_return_type] || 'GetMultipleRulesetsResponse'
|
|
2980
3395
|
|
|
2981
3396
|
# auth_names
|
|
2982
3397
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2983
3398
|
|
|
2984
3399
|
new_options = opts.merge(
|
|
2985
|
-
:operation => :
|
|
3400
|
+
:operation => :list_multiple_rulesets,
|
|
2986
3401
|
:header_params => header_params,
|
|
2987
3402
|
:query_params => query_params,
|
|
2988
3403
|
:form_params => form_params,
|
|
@@ -2992,9 +3407,9 @@ module DatadogAPIClient::V2
|
|
|
2992
3407
|
:api_version => "V2"
|
|
2993
3408
|
)
|
|
2994
3409
|
|
|
2995
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
3410
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
2996
3411
|
if @api_client.config.debugging
|
|
2997
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
3412
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_multiple_rulesets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2998
3413
|
end
|
|
2999
3414
|
return data, status_code, headers
|
|
3000
3415
|
end
|
|
@@ -3226,7 +3641,7 @@ module DatadogAPIClient::V2
|
|
|
3226
3641
|
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SecurityMonitoringAPI.list_security_monitoring_histsignals, must be smaller than or equal to 1000.'
|
|
3227
3642
|
end
|
|
3228
3643
|
# resource path
|
|
3229
|
-
local_var_path = '/api/v2/siem-
|
|
3644
|
+
local_var_path = '/api/v2/siem-threat-hunting/histsignals'
|
|
3230
3645
|
|
|
3231
3646
|
# query parameters
|
|
3232
3647
|
query_params = opts[:query_params] || {}
|
|
@@ -3500,6 +3915,80 @@ module DatadogAPIClient::V2
|
|
|
3500
3915
|
return data, status_code, headers
|
|
3501
3916
|
end
|
|
3502
3917
|
|
|
3918
|
+
# List threat hunting jobs.
|
|
3919
|
+
#
|
|
3920
|
+
# @see #list_threat_hunting_jobs_with_http_info
|
|
3921
|
+
def list_threat_hunting_jobs(opts = {})
|
|
3922
|
+
data, _status_code, _headers = list_threat_hunting_jobs_with_http_info(opts)
|
|
3923
|
+
data
|
|
3924
|
+
end
|
|
3925
|
+
|
|
3926
|
+
# List threat hunting jobs.
|
|
3927
|
+
#
|
|
3928
|
+
# List threat hunting jobs.
|
|
3929
|
+
#
|
|
3930
|
+
# @param opts [Hash] the optional parameters
|
|
3931
|
+
# @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 100.
|
|
3932
|
+
# @option opts [Integer] :page_number Specific page number to return.
|
|
3933
|
+
# @option opts [String] :sort The order of the jobs in results.
|
|
3934
|
+
# @option opts [String] :filter_query Query used to filter items from the fetched list.
|
|
3935
|
+
# @return [Array<(ListThreatHuntingJobsResponse, Integer, Hash)>] ListThreatHuntingJobsResponse data, response status code and response headers
|
|
3936
|
+
def list_threat_hunting_jobs_with_http_info(opts = {})
|
|
3937
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_threat_hunting_jobs".to_sym]
|
|
3938
|
+
if unstable_enabled
|
|
3939
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_threat_hunting_jobs")
|
|
3940
|
+
else
|
|
3941
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_threat_hunting_jobs"))
|
|
3942
|
+
end
|
|
3943
|
+
|
|
3944
|
+
if @api_client.config.debugging
|
|
3945
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_threat_hunting_jobs ...'
|
|
3946
|
+
end
|
|
3947
|
+
# resource path
|
|
3948
|
+
local_var_path = '/api/v2/siem-threat-hunting/jobs'
|
|
3949
|
+
|
|
3950
|
+
# query parameters
|
|
3951
|
+
query_params = opts[:query_params] || {}
|
|
3952
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
3953
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
3954
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
3955
|
+
query_params[:'filter[query]'] = opts[:'filter_query'] if !opts[:'filter_query'].nil?
|
|
3956
|
+
|
|
3957
|
+
# header parameters
|
|
3958
|
+
header_params = opts[:header_params] || {}
|
|
3959
|
+
# HTTP header 'Accept' (if needed)
|
|
3960
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
3961
|
+
|
|
3962
|
+
# form parameters
|
|
3963
|
+
form_params = opts[:form_params] || {}
|
|
3964
|
+
|
|
3965
|
+
# http body (model)
|
|
3966
|
+
post_body = opts[:debug_body]
|
|
3967
|
+
|
|
3968
|
+
# return_type
|
|
3969
|
+
return_type = opts[:debug_return_type] || 'ListThreatHuntingJobsResponse'
|
|
3970
|
+
|
|
3971
|
+
# auth_names
|
|
3972
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
3973
|
+
|
|
3974
|
+
new_options = opts.merge(
|
|
3975
|
+
:operation => :list_threat_hunting_jobs,
|
|
3976
|
+
:header_params => header_params,
|
|
3977
|
+
:query_params => query_params,
|
|
3978
|
+
:form_params => form_params,
|
|
3979
|
+
:body => post_body,
|
|
3980
|
+
:auth_names => auth_names,
|
|
3981
|
+
:return_type => return_type,
|
|
3982
|
+
:api_version => "V2"
|
|
3983
|
+
)
|
|
3984
|
+
|
|
3985
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
3986
|
+
if @api_client.config.debugging
|
|
3987
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_threat_hunting_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3988
|
+
end
|
|
3989
|
+
return data, status_code, headers
|
|
3990
|
+
end
|
|
3991
|
+
|
|
3503
3992
|
# List vulnerabilities.
|
|
3504
3993
|
#
|
|
3505
3994
|
# @see #list_vulnerabilities_with_http_info
|
|
@@ -3963,7 +4452,7 @@ module DatadogAPIClient::V2
|
|
|
3963
4452
|
return_type = opts[:debug_return_type] || 'BulkMuteFindingsResponse'
|
|
3964
4453
|
|
|
3965
4454
|
# auth_names
|
|
3966
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
4455
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
3967
4456
|
|
|
3968
4457
|
new_options = opts.merge(
|
|
3969
4458
|
:operation => :mute_findings,
|
|
@@ -4127,38 +4616,38 @@ module DatadogAPIClient::V2
|
|
|
4127
4616
|
return data, status_code, headers
|
|
4128
4617
|
end
|
|
4129
4618
|
|
|
4130
|
-
# Run a
|
|
4619
|
+
# Run a threat hunting job.
|
|
4131
4620
|
#
|
|
4132
|
-
# @see #
|
|
4133
|
-
def
|
|
4134
|
-
data, _status_code, _headers =
|
|
4621
|
+
# @see #run_threat_hunting_job_with_http_info
|
|
4622
|
+
def run_threat_hunting_job(body, opts = {})
|
|
4623
|
+
data, _status_code, _headers = run_threat_hunting_job_with_http_info(body, opts)
|
|
4135
4624
|
data
|
|
4136
4625
|
end
|
|
4137
4626
|
|
|
4138
|
-
# Run a
|
|
4627
|
+
# Run a threat hunting job.
|
|
4139
4628
|
#
|
|
4140
|
-
# Run a
|
|
4629
|
+
# Run a threat hunting job.
|
|
4141
4630
|
#
|
|
4142
|
-
# @param body [
|
|
4631
|
+
# @param body [RunThreatHuntingJobRequest]
|
|
4143
4632
|
# @param opts [Hash] the optional parameters
|
|
4144
4633
|
# @return [Array<(JobCreateResponse, Integer, Hash)>] JobCreateResponse data, response status code and response headers
|
|
4145
|
-
def
|
|
4146
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.
|
|
4634
|
+
def run_threat_hunting_job_with_http_info(body, opts = {})
|
|
4635
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.run_threat_hunting_job".to_sym]
|
|
4147
4636
|
if unstable_enabled
|
|
4148
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
4637
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.run_threat_hunting_job")
|
|
4149
4638
|
else
|
|
4150
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
4639
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.run_threat_hunting_job"))
|
|
4151
4640
|
end
|
|
4152
4641
|
|
|
4153
4642
|
if @api_client.config.debugging
|
|
4154
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
4643
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.run_threat_hunting_job ...'
|
|
4155
4644
|
end
|
|
4156
4645
|
# verify the required parameter 'body' is set
|
|
4157
4646
|
if @api_client.config.client_side_validation && body.nil?
|
|
4158
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.
|
|
4647
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.run_threat_hunting_job"
|
|
4159
4648
|
end
|
|
4160
4649
|
# resource path
|
|
4161
|
-
local_var_path = '/api/v2/siem-
|
|
4650
|
+
local_var_path = '/api/v2/siem-threat-hunting/jobs'
|
|
4162
4651
|
|
|
4163
4652
|
# query parameters
|
|
4164
4653
|
query_params = opts[:query_params] || {}
|
|
@@ -4183,7 +4672,7 @@ module DatadogAPIClient::V2
|
|
|
4183
4672
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
4184
4673
|
|
|
4185
4674
|
new_options = opts.merge(
|
|
4186
|
-
:operation => :
|
|
4675
|
+
:operation => :run_threat_hunting_job,
|
|
4187
4676
|
:header_params => header_params,
|
|
4188
4677
|
:query_params => query_params,
|
|
4189
4678
|
:form_params => form_params,
|
|
@@ -4195,7 +4684,7 @@ module DatadogAPIClient::V2
|
|
|
4195
4684
|
|
|
4196
4685
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
4197
4686
|
if @api_client.config.debugging
|
|
4198
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
4687
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#run_threat_hunting_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4199
4688
|
end
|
|
4200
4689
|
return data, status_code, headers
|
|
4201
4690
|
end
|
|
@@ -4227,7 +4716,7 @@ module DatadogAPIClient::V2
|
|
|
4227
4716
|
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.search_security_monitoring_histsignals ...'
|
|
4228
4717
|
end
|
|
4229
4718
|
# resource path
|
|
4230
|
-
local_var_path = '/api/v2/siem-
|
|
4719
|
+
local_var_path = '/api/v2/siem-threat-hunting/histsignals/search'
|
|
4231
4720
|
|
|
4232
4721
|
# query parameters
|
|
4233
4722
|
query_params = opts[:query_params] || {}
|