datadog_api_client 2.55.0 → 2.56.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 +186 -0
- data/.generator/schemas/v2/openapi.yaml +6914 -290
- data/CHANGELOG.md +35 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_104735144.rb +32 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_1185292896.rb +42 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_2402034476.rb +29 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_3996915493.rb +38 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +1 -1
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_4007074677.rb +23 -0
- data/examples/v2/cloud-cost-management/DeleteCustomForecast.rb +8 -0
- data/examples/v2/cloud-cost-management/UpsertBudget.rb +14 -0
- data/examples/v2/cloud-cost-management/UpsertCustomForecast.rb +30 -0
- data/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb +1 -0
- data/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb +1 -0
- data/examples/v2/feature-flags/CreateVariantForFeatureFlag.rb +11 -0
- data/examples/v2/feature-flags/DeleteVariantFromFeatureFlag.rb +5 -0
- data/examples/v2/feature-flags/UpdateVariantForFeatureFlag.rb +10 -0
- data/examples/v2/governance-controls/GetGovernanceControl.rb +8 -0
- data/examples/v2/governance-controls/ListGovernanceControls.rb +8 -0
- data/examples/v2/governance-controls/UpdateGovernanceControl.rb +22 -0
- data/examples/v2/governance-insights/ListGovernanceInsights.rb +8 -0
- data/examples/v2/metrics/CreateTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/CreateTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/DeleteTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/GetTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/GetTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/ListTagIndexingRules.rb +3 -0
- data/examples/v2/metrics/ListTagIndexingRulesForMetric.rb +3 -0
- data/examples/v2/metrics/ReorderTagIndexingRules.rb +3 -0
- data/examples/v2/metrics/UpdateTagIndexingRule.rb +3 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_1238441879.rb +61 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_253109967.rb +83 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_337125830.rb +56 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_620504950.rb +66 -0
- data/examples/v2/report-schedules/CreateReportSchedule.rb +1 -1
- data/examples/v2/report-schedules/DeleteReportSchedule.rb +5 -0
- data/examples/v2/report-schedules/GetReportSchedule.rb +5 -0
- data/examples/v2/report-schedules/GetReportSchedulesForResource.rb +5 -0
- data/examples/v2/report-schedules/ListReportSchedules.rb +5 -0
- data/examples/v2/report-schedules/PatchReportSchedule.rb +1 -1
- data/examples/v2/report-schedules/ToggleReportSchedule.rb +14 -0
- data/examples/v2/rum-remote-config/GetRumSdkConfig.rb +8 -0
- data/examples/v2/rum-remote-config/UpdateRumSdkConfig.rb +94 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationDueDateRule.rb +33 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationMuteRule.rb +27 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationTicketCreationRule.rb +29 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule.rb +11 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule.rb +11 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationDueDateRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationMuteRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationTicketCreationRule.rb +11 -0
- data/examples/v2/security-monitoring/ImportSecurityVulnerabilities.rb +77 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationDueDateRules.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationMuteRules.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationTicketCreationRules.rb +8 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationDueDateRules.rb +20 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationMuteRules.rb +20 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationTicketCreationRules.rb +20 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationDueDateRule.rb +36 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationMuteRule.rb +30 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationTicketCreationRule.rb +32 -0
- data/examples/v2/status-pages/EditDegradationUpdate.rb +16 -0
- data/examples/v2/status-pages/SoftDeleteDegradationUpdate.rb +5 -0
- data/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb +7 -2
- data/examples/v2/workflow-automation/CreateWorkflow.rb +1 -1
- data/examples/v2/workflow-automation/UpdateWorkflow.rb +1 -1
- data/lib/datadog_api_client/configuration.rb +39 -1
- data/lib/datadog_api_client/inflector.rb +190 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_arithmetic_sub_processor.rb +186 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_attribute_remapper.rb +211 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_category_sub_processor.rb +178 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_processor.rb +228 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_processor_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_string_builder_sub_processor.rb +186 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_sub_processor.rb +67 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +154 -1
- data/lib/datadog_api_client/v2/api/compliance_api.rb +5 -0
- data/lib/datadog_api_client/v2/api/feature_flags_api.rb +229 -0
- data/lib/datadog_api_client/v2/api/governance_controls_api.rb +246 -0
- data/lib/datadog_api_client/v2/api/governance_insights_api.rb +101 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +67 -1
- data/lib/datadog_api_client/v2/api/report_schedules_api.rb +362 -0
- data/lib/datadog_api_client/v2/api/rum_remote_config_api.rb +176 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +1544 -119
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +159 -0
- data/lib/datadog_api_client/v2/api/test_optimization_api.rb +3 -1
- data/lib/datadog_api_client/v2/models/automation_rule_actor_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/automation_rule_created_by.rb +165 -0
- data/lib/datadog_api_client/v2/models/automation_rule_modified_by.rb +165 -0
- data/lib/datadog_api_client/v2/models/automation_rule_scope.rb +150 -0
- data/lib/datadog_api_client/v2/models/branch_coverage_summary_request_attributes.rb +27 -10
- data/lib/datadog_api_client/v2/models/budget_attributes.rb +41 -1
- data/lib/datadog_api_client/v2/models/budget_attributes_costs.rb +146 -0
- data/lib/datadog_api_client/v2/models/budget_attributes_costs_unit.rb +155 -0
- data/lib/datadog_api_client/v2/models/budget_with_entries_data_attributes_entries_items.rb +11 -1
- data/lib/datadog_api_client/v2/models/budget_with_entries_data_attributes_entries_items_costs.rb +157 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_finished_job.rb +427 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_in_progress_job.rb +406 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb +36 -399
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job_in_progress_status.rb +26 -0
- data/lib/datadog_api_client/v2/models/commit_coverage_summary_request_attributes.rb +27 -10
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request_data_attributes_updates_items.rb +1 -12
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes.rb +1 -12
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +31 -1
- data/lib/datadog_api_client/v2/models/custom_forecast_entry.rb +167 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_entry_tag_filter.rb +144 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response_data_attributes.rb +230 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_bom.rb +221 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_component.rb +196 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_component_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata.rb +144 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata_component.rb +143 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata_tools.rb +125 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_tool_component.rb +133 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability.rb +237 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_advisory.rb +105 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_affects.rb +123 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_analysis.rb +107 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_rating.rb +125 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_reference.rb +115 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_reference_source.rb +105 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_updates_items.rb +21 -1
- data/lib/datadog_api_client/v2/models/degradation_update.rb +117 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships.rb +145 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_degradation.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_degradation_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_status_page_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/due_date_from.rb +27 -0
- data/lib/datadog_api_client/v2/models/due_date_per_severity_item.rb +152 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_action.rb +167 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/due_date_severity.rb +32 -0
- data/lib/datadog_api_client/v2/models/governance_best_practice_definition.rb +379 -0
- data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +739 -0
- data/lib/datadog_api_client/v2/models/governance_control_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_control_mitigation_definition.rb +309 -0
- data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +272 -0
- data/lib/datadog_api_client/v2/models/governance_control_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_control_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_control_supported_value.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_controls_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/governance_insight_attributes.rb +448 -0
- data/lib/datadog_api_client/v2/models/governance_insight_audit_compute.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_insight_audit_query.rb +188 -0
- data/lib/datadog_api_client/v2/models/governance_insight_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_insight_event_compute.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insight_event_query.rb +156 -0
- data/lib/datadog_api_client/v2/models/governance_insight_metric_query.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_insight_percentage_query.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insight_query_config.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_insight_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_insight_usage_query.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insights_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/metric.rb +12 -2
- data/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +11 -1
- data/lib/datadog_api_client/v2/models/metric_volumes_relationship.rb +105 -0
- data/lib/datadog_api_client/v2/models/metric_volumes_relationship_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/mute_reason.rb +31 -0
- data/lib/datadog_api_client/v2/models/mute_rule_action.rb +154 -0
- data/lib/datadog_api_client/v2/models/mute_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/mute_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/mute_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/mute_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/mute_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/mute_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/mute_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/mute_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination.rb +318 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_auth.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_auth_strategy.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch.rb +148 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch_encoding.rb +135 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch_encoding_codec.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression.rb +65 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression_algorithm.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression_object.rb +149 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_format.rb +33 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source.rb +248 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_auth_strategy.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_enabled.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_enabled_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_with_client_cert.rb +174 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_with_client_cert_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/report_schedule_included_resource.rb +2 -1
- data/lib/datadog_api_client/v2/models/report_schedule_included_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/report_schedule_index_template_variable.rb +150 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_resource_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_resource_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response.rb +157 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_attributes.rb +335 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_data.rb +186 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_links.rb +157 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_pagination.rb +183 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_pagination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_relationships.rb +133 -0
- data/lib/datadog_api_client/v2/models/report_schedule_resource.rb +165 -0
- data/lib/datadog_api_client/v2/models/report_schedule_resource_attributes.rb +154 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_sdk_config_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option.rb +204 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_pair.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_serialized_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_strategy.rb +29 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_match_option.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_match_option_serialized_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_meta.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_rum_attributes.rb +336 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_rum_update_attributes.rb +315 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_serialized_regex.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_serialized_regex_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_tracing_url_config.rb +146 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_tracing_url_propagator_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_links.rb +164 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_meta.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_page_info.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_finding_type.rb +36 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_terraform_resource_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/status_page_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/test_optimization_service_settings_attributes.rb +54 -4
- data/lib/datadog_api_client/v2/models/test_optimization_update_service_settings_request_attributes.rb +60 -9
- data/lib/datadog_api_client/v2/models/test_optimization_update_service_settings_request_data.rb +1 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_action.rb +193 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_action_response.rb +203 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_target.rb +27 -0
- data/lib/datadog_api_client/v2/models/update_variant_request.rb +115 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +237 -1
|
@@ -888,8 +888,9 @@ module DatadogAPIClient::V2
|
|
|
888
888
|
#
|
|
889
889
|
# Export multiple security monitoring resources to Terraform, packaged as a zip archive.
|
|
890
890
|
# The `resource_type` path parameter specifies the type of resources to export
|
|
891
|
-
# and must be one of `suppressions` or `
|
|
891
|
+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
|
|
892
892
|
# A maximum of 1000 resources can be exported in a single request.
|
|
893
|
+
# For `rules`, partner rules cannot be exported and return a 400 error.
|
|
893
894
|
#
|
|
894
895
|
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
|
|
895
896
|
# @param body [SecurityMonitoringTerraformBulkExportRequest] The resource IDs to export.
|
|
@@ -911,7 +912,7 @@ module DatadogAPIClient::V2
|
|
|
911
912
|
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.bulk_export_security_monitoring_terraform_resources"
|
|
912
913
|
end
|
|
913
914
|
# verify enum value
|
|
914
|
-
allowable_values = ['suppressions', 'critical_assets']
|
|
915
|
+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
|
|
915
916
|
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
|
|
916
917
|
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
|
|
917
918
|
end
|
|
@@ -1262,7 +1263,7 @@ module DatadogAPIClient::V2
|
|
|
1262
1263
|
#
|
|
1263
1264
|
# Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform.
|
|
1264
1265
|
# The `resource_type` path parameter specifies the type of resource to convert
|
|
1265
|
-
# and must be one of `suppressions` or `
|
|
1266
|
+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
|
|
1266
1267
|
#
|
|
1267
1268
|
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
|
|
1268
1269
|
# @param body [SecurityMonitoringTerraformConvertRequest] The resource JSON to convert.
|
|
@@ -1284,7 +1285,7 @@ module DatadogAPIClient::V2
|
|
|
1284
1285
|
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.convert_security_monitoring_terraform_resource"
|
|
1285
1286
|
end
|
|
1286
1287
|
# verify enum value
|
|
1287
|
-
allowable_values = ['suppressions', 'critical_assets']
|
|
1288
|
+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
|
|
1288
1289
|
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
|
|
1289
1290
|
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
|
|
1290
1291
|
end
|
|
@@ -1761,6 +1762,225 @@ module DatadogAPIClient::V2
|
|
|
1761
1762
|
return data, status_code, headers
|
|
1762
1763
|
end
|
|
1763
1764
|
|
|
1765
|
+
# Create a due date rule.
|
|
1766
|
+
#
|
|
1767
|
+
# @see #create_security_findings_automation_due_date_rule_with_http_info
|
|
1768
|
+
def create_security_findings_automation_due_date_rule(body, opts = {})
|
|
1769
|
+
data, _status_code, _headers = create_security_findings_automation_due_date_rule_with_http_info(body, opts)
|
|
1770
|
+
data
|
|
1771
|
+
end
|
|
1772
|
+
|
|
1773
|
+
# Create a due date rule.
|
|
1774
|
+
#
|
|
1775
|
+
# Create a new due date rule for the current organization.
|
|
1776
|
+
#
|
|
1777
|
+
# @param body [DueDateRuleCreateRequest]
|
|
1778
|
+
# @param opts [Hash] the optional parameters
|
|
1779
|
+
# @return [Array<(DueDateRuleResponse, Integer, Hash)>] DueDateRuleResponse data, response status code and response headers
|
|
1780
|
+
def create_security_findings_automation_due_date_rule_with_http_info(body, opts = {})
|
|
1781
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_security_findings_automation_due_date_rule".to_sym]
|
|
1782
|
+
if unstable_enabled
|
|
1783
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_security_findings_automation_due_date_rule")
|
|
1784
|
+
else
|
|
1785
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_security_findings_automation_due_date_rule"))
|
|
1786
|
+
end
|
|
1787
|
+
|
|
1788
|
+
if @api_client.config.debugging
|
|
1789
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_findings_automation_due_date_rule ...'
|
|
1790
|
+
end
|
|
1791
|
+
# verify the required parameter 'body' is set
|
|
1792
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1793
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_findings_automation_due_date_rule"
|
|
1794
|
+
end
|
|
1795
|
+
# resource path
|
|
1796
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules'
|
|
1797
|
+
|
|
1798
|
+
# query parameters
|
|
1799
|
+
query_params = opts[:query_params] || {}
|
|
1800
|
+
|
|
1801
|
+
# header parameters
|
|
1802
|
+
header_params = opts[:header_params] || {}
|
|
1803
|
+
# HTTP header 'Accept' (if needed)
|
|
1804
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1805
|
+
# HTTP header 'Content-Type'
|
|
1806
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1807
|
+
|
|
1808
|
+
# form parameters
|
|
1809
|
+
form_params = opts[:form_params] || {}
|
|
1810
|
+
|
|
1811
|
+
# http body (model)
|
|
1812
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1813
|
+
|
|
1814
|
+
# return_type
|
|
1815
|
+
return_type = opts[:debug_return_type] || 'DueDateRuleResponse'
|
|
1816
|
+
|
|
1817
|
+
# auth_names
|
|
1818
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1819
|
+
|
|
1820
|
+
new_options = opts.merge(
|
|
1821
|
+
:operation => :create_security_findings_automation_due_date_rule,
|
|
1822
|
+
:header_params => header_params,
|
|
1823
|
+
:query_params => query_params,
|
|
1824
|
+
:form_params => form_params,
|
|
1825
|
+
:body => post_body,
|
|
1826
|
+
:auth_names => auth_names,
|
|
1827
|
+
:return_type => return_type,
|
|
1828
|
+
:api_version => "V2"
|
|
1829
|
+
)
|
|
1830
|
+
|
|
1831
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
1832
|
+
if @api_client.config.debugging
|
|
1833
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_findings_automation_due_date_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1834
|
+
end
|
|
1835
|
+
return data, status_code, headers
|
|
1836
|
+
end
|
|
1837
|
+
|
|
1838
|
+
# Create a mute rule.
|
|
1839
|
+
#
|
|
1840
|
+
# @see #create_security_findings_automation_mute_rule_with_http_info
|
|
1841
|
+
def create_security_findings_automation_mute_rule(body, opts = {})
|
|
1842
|
+
data, _status_code, _headers = create_security_findings_automation_mute_rule_with_http_info(body, opts)
|
|
1843
|
+
data
|
|
1844
|
+
end
|
|
1845
|
+
|
|
1846
|
+
# Create a mute rule.
|
|
1847
|
+
#
|
|
1848
|
+
# Create a new mute rule for the current organization.
|
|
1849
|
+
#
|
|
1850
|
+
# @param body [MuteRuleCreateRequest]
|
|
1851
|
+
# @param opts [Hash] the optional parameters
|
|
1852
|
+
# @return [Array<(MuteRuleResponse, Integer, Hash)>] MuteRuleResponse data, response status code and response headers
|
|
1853
|
+
def create_security_findings_automation_mute_rule_with_http_info(body, opts = {})
|
|
1854
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_security_findings_automation_mute_rule".to_sym]
|
|
1855
|
+
if unstable_enabled
|
|
1856
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_security_findings_automation_mute_rule")
|
|
1857
|
+
else
|
|
1858
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_security_findings_automation_mute_rule"))
|
|
1859
|
+
end
|
|
1860
|
+
|
|
1861
|
+
if @api_client.config.debugging
|
|
1862
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_findings_automation_mute_rule ...'
|
|
1863
|
+
end
|
|
1864
|
+
# verify the required parameter 'body' is set
|
|
1865
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1866
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_findings_automation_mute_rule"
|
|
1867
|
+
end
|
|
1868
|
+
# resource path
|
|
1869
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules'
|
|
1870
|
+
|
|
1871
|
+
# query parameters
|
|
1872
|
+
query_params = opts[:query_params] || {}
|
|
1873
|
+
|
|
1874
|
+
# header parameters
|
|
1875
|
+
header_params = opts[:header_params] || {}
|
|
1876
|
+
# HTTP header 'Accept' (if needed)
|
|
1877
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1878
|
+
# HTTP header 'Content-Type'
|
|
1879
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1880
|
+
|
|
1881
|
+
# form parameters
|
|
1882
|
+
form_params = opts[:form_params] || {}
|
|
1883
|
+
|
|
1884
|
+
# http body (model)
|
|
1885
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1886
|
+
|
|
1887
|
+
# return_type
|
|
1888
|
+
return_type = opts[:debug_return_type] || 'MuteRuleResponse'
|
|
1889
|
+
|
|
1890
|
+
# auth_names
|
|
1891
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1892
|
+
|
|
1893
|
+
new_options = opts.merge(
|
|
1894
|
+
:operation => :create_security_findings_automation_mute_rule,
|
|
1895
|
+
:header_params => header_params,
|
|
1896
|
+
:query_params => query_params,
|
|
1897
|
+
:form_params => form_params,
|
|
1898
|
+
:body => post_body,
|
|
1899
|
+
:auth_names => auth_names,
|
|
1900
|
+
:return_type => return_type,
|
|
1901
|
+
:api_version => "V2"
|
|
1902
|
+
)
|
|
1903
|
+
|
|
1904
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
1905
|
+
if @api_client.config.debugging
|
|
1906
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_findings_automation_mute_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1907
|
+
end
|
|
1908
|
+
return data, status_code, headers
|
|
1909
|
+
end
|
|
1910
|
+
|
|
1911
|
+
# Create a ticket creation rule.
|
|
1912
|
+
#
|
|
1913
|
+
# @see #create_security_findings_automation_ticket_creation_rule_with_http_info
|
|
1914
|
+
def create_security_findings_automation_ticket_creation_rule(body, opts = {})
|
|
1915
|
+
data, _status_code, _headers = create_security_findings_automation_ticket_creation_rule_with_http_info(body, opts)
|
|
1916
|
+
data
|
|
1917
|
+
end
|
|
1918
|
+
|
|
1919
|
+
# Create a ticket creation rule.
|
|
1920
|
+
#
|
|
1921
|
+
# Create a new ticket creation rule for the current organization.
|
|
1922
|
+
#
|
|
1923
|
+
# @param body [TicketCreationRuleCreateRequest]
|
|
1924
|
+
# @param opts [Hash] the optional parameters
|
|
1925
|
+
# @return [Array<(TicketCreationRuleResponse, Integer, Hash)>] TicketCreationRuleResponse data, response status code and response headers
|
|
1926
|
+
def create_security_findings_automation_ticket_creation_rule_with_http_info(body, opts = {})
|
|
1927
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_security_findings_automation_ticket_creation_rule".to_sym]
|
|
1928
|
+
if unstable_enabled
|
|
1929
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_security_findings_automation_ticket_creation_rule")
|
|
1930
|
+
else
|
|
1931
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_security_findings_automation_ticket_creation_rule"))
|
|
1932
|
+
end
|
|
1933
|
+
|
|
1934
|
+
if @api_client.config.debugging
|
|
1935
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_findings_automation_ticket_creation_rule ...'
|
|
1936
|
+
end
|
|
1937
|
+
# verify the required parameter 'body' is set
|
|
1938
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1939
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_findings_automation_ticket_creation_rule"
|
|
1940
|
+
end
|
|
1941
|
+
# resource path
|
|
1942
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules'
|
|
1943
|
+
|
|
1944
|
+
# query parameters
|
|
1945
|
+
query_params = opts[:query_params] || {}
|
|
1946
|
+
|
|
1947
|
+
# header parameters
|
|
1948
|
+
header_params = opts[:header_params] || {}
|
|
1949
|
+
# HTTP header 'Accept' (if needed)
|
|
1950
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1951
|
+
# HTTP header 'Content-Type'
|
|
1952
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1953
|
+
|
|
1954
|
+
# form parameters
|
|
1955
|
+
form_params = opts[:form_params] || {}
|
|
1956
|
+
|
|
1957
|
+
# http body (model)
|
|
1958
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1959
|
+
|
|
1960
|
+
# return_type
|
|
1961
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse'
|
|
1962
|
+
|
|
1963
|
+
# auth_names
|
|
1964
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1965
|
+
|
|
1966
|
+
new_options = opts.merge(
|
|
1967
|
+
:operation => :create_security_findings_automation_ticket_creation_rule,
|
|
1968
|
+
:header_params => header_params,
|
|
1969
|
+
:query_params => query_params,
|
|
1970
|
+
:form_params => form_params,
|
|
1971
|
+
:body => post_body,
|
|
1972
|
+
:auth_names => auth_names,
|
|
1973
|
+
:return_type => return_type,
|
|
1974
|
+
:api_version => "V2"
|
|
1975
|
+
)
|
|
1976
|
+
|
|
1977
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
1978
|
+
if @api_client.config.debugging
|
|
1979
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_findings_automation_ticket_creation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1980
|
+
end
|
|
1981
|
+
return data, status_code, headers
|
|
1982
|
+
end
|
|
1983
|
+
|
|
1764
1984
|
# Create a critical asset.
|
|
1765
1985
|
#
|
|
1766
1986
|
# @see #create_security_monitoring_critical_asset_with_http_info
|
|
@@ -2819,32 +3039,38 @@ module DatadogAPIClient::V2
|
|
|
2819
3039
|
return data, status_code, headers
|
|
2820
3040
|
end
|
|
2821
3041
|
|
|
2822
|
-
# Delete a
|
|
3042
|
+
# Delete a due date rule.
|
|
2823
3043
|
#
|
|
2824
|
-
# @see #
|
|
2825
|
-
def
|
|
2826
|
-
|
|
3044
|
+
# @see #delete_security_findings_automation_due_date_rule_with_http_info
|
|
3045
|
+
def delete_security_findings_automation_due_date_rule(rule_id, opts = {})
|
|
3046
|
+
delete_security_findings_automation_due_date_rule_with_http_info(rule_id, opts)
|
|
2827
3047
|
nil
|
|
2828
3048
|
end
|
|
2829
3049
|
|
|
2830
|
-
# Delete a
|
|
3050
|
+
# Delete a due date rule.
|
|
2831
3051
|
#
|
|
2832
|
-
# Delete
|
|
3052
|
+
# Delete an existing due date rule by ID.
|
|
2833
3053
|
#
|
|
2834
|
-
# @param
|
|
3054
|
+
# @param rule_id [UUID] The ID of the due date rule.
|
|
2835
3055
|
# @param opts [Hash] the optional parameters
|
|
2836
3056
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2837
|
-
def
|
|
3057
|
+
def delete_security_findings_automation_due_date_rule_with_http_info(rule_id, opts = {})
|
|
3058
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_security_findings_automation_due_date_rule".to_sym]
|
|
3059
|
+
if unstable_enabled
|
|
3060
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_security_findings_automation_due_date_rule")
|
|
3061
|
+
else
|
|
3062
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_security_findings_automation_due_date_rule"))
|
|
3063
|
+
end
|
|
2838
3064
|
|
|
2839
3065
|
if @api_client.config.debugging
|
|
2840
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
3066
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_findings_automation_due_date_rule ...'
|
|
2841
3067
|
end
|
|
2842
|
-
# verify the required parameter '
|
|
2843
|
-
if @api_client.config.client_side_validation &&
|
|
2844
|
-
fail ArgumentError, "Missing the required parameter '
|
|
3068
|
+
# verify the required parameter 'rule_id' is set
|
|
3069
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
3070
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_findings_automation_due_date_rule"
|
|
2845
3071
|
end
|
|
2846
3072
|
# resource path
|
|
2847
|
-
local_var_path = '/api/v2/
|
|
3073
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
2848
3074
|
|
|
2849
3075
|
# query parameters
|
|
2850
3076
|
query_params = opts[:query_params] || {}
|
|
@@ -2864,10 +3090,10 @@ module DatadogAPIClient::V2
|
|
|
2864
3090
|
return_type = opts[:debug_return_type]
|
|
2865
3091
|
|
|
2866
3092
|
# auth_names
|
|
2867
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
3093
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
2868
3094
|
|
|
2869
3095
|
new_options = opts.merge(
|
|
2870
|
-
:operation => :
|
|
3096
|
+
:operation => :delete_security_findings_automation_due_date_rule,
|
|
2871
3097
|
:header_params => header_params,
|
|
2872
3098
|
:query_params => query_params,
|
|
2873
3099
|
:form_params => form_params,
|
|
@@ -2879,44 +3105,43 @@ module DatadogAPIClient::V2
|
|
|
2879
3105
|
|
|
2880
3106
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
2881
3107
|
if @api_client.config.debugging
|
|
2882
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
3108
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_findings_automation_due_date_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2883
3109
|
end
|
|
2884
3110
|
return data, status_code, headers
|
|
2885
3111
|
end
|
|
2886
3112
|
|
|
2887
|
-
# Delete a
|
|
3113
|
+
# Delete a mute rule.
|
|
2888
3114
|
#
|
|
2889
|
-
# @see #
|
|
2890
|
-
def
|
|
2891
|
-
|
|
3115
|
+
# @see #delete_security_findings_automation_mute_rule_with_http_info
|
|
3116
|
+
def delete_security_findings_automation_mute_rule(rule_id, opts = {})
|
|
3117
|
+
delete_security_findings_automation_mute_rule_with_http_info(rule_id, opts)
|
|
2892
3118
|
nil
|
|
2893
3119
|
end
|
|
2894
3120
|
|
|
2895
|
-
# Delete a
|
|
3121
|
+
# Delete a mute rule.
|
|
2896
3122
|
#
|
|
2897
|
-
# Delete
|
|
2898
|
-
# deleting a dataset that is referenced by a detection rule is rejected.
|
|
3123
|
+
# Delete an existing mute rule by ID.
|
|
2899
3124
|
#
|
|
2900
|
-
# @param
|
|
3125
|
+
# @param rule_id [UUID] The ID of the mute rule.
|
|
2901
3126
|
# @param opts [Hash] the optional parameters
|
|
2902
3127
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2903
|
-
def
|
|
2904
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.
|
|
3128
|
+
def delete_security_findings_automation_mute_rule_with_http_info(rule_id, opts = {})
|
|
3129
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_security_findings_automation_mute_rule".to_sym]
|
|
2905
3130
|
if unstable_enabled
|
|
2906
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
3131
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_security_findings_automation_mute_rule")
|
|
2907
3132
|
else
|
|
2908
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
3133
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_security_findings_automation_mute_rule"))
|
|
2909
3134
|
end
|
|
2910
3135
|
|
|
2911
3136
|
if @api_client.config.debugging
|
|
2912
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
3137
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_findings_automation_mute_rule ...'
|
|
2913
3138
|
end
|
|
2914
|
-
# verify the required parameter '
|
|
2915
|
-
if @api_client.config.client_side_validation &&
|
|
2916
|
-
fail ArgumentError, "Missing the required parameter '
|
|
3139
|
+
# verify the required parameter 'rule_id' is set
|
|
3140
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
3141
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_findings_automation_mute_rule"
|
|
2917
3142
|
end
|
|
2918
3143
|
# resource path
|
|
2919
|
-
local_var_path = '/api/v2/
|
|
3144
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
2920
3145
|
|
|
2921
3146
|
# query parameters
|
|
2922
3147
|
query_params = opts[:query_params] || {}
|
|
@@ -2936,10 +3161,10 @@ module DatadogAPIClient::V2
|
|
|
2936
3161
|
return_type = opts[:debug_return_type]
|
|
2937
3162
|
|
|
2938
3163
|
# auth_names
|
|
2939
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
3164
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
2940
3165
|
|
|
2941
3166
|
new_options = opts.merge(
|
|
2942
|
-
:operation => :
|
|
3167
|
+
:operation => :delete_security_findings_automation_mute_rule,
|
|
2943
3168
|
:header_params => header_params,
|
|
2944
3169
|
:query_params => query_params,
|
|
2945
3170
|
:form_params => form_params,
|
|
@@ -2951,44 +3176,43 @@ module DatadogAPIClient::V2
|
|
|
2951
3176
|
|
|
2952
3177
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
2953
3178
|
if @api_client.config.debugging
|
|
2954
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
3179
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_findings_automation_mute_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2955
3180
|
end
|
|
2956
3181
|
return data, status_code, headers
|
|
2957
3182
|
end
|
|
2958
3183
|
|
|
2959
|
-
# Delete
|
|
3184
|
+
# Delete a ticket creation rule.
|
|
2960
3185
|
#
|
|
2961
|
-
# @see #
|
|
2962
|
-
def
|
|
2963
|
-
|
|
3186
|
+
# @see #delete_security_findings_automation_ticket_creation_rule_with_http_info
|
|
3187
|
+
def delete_security_findings_automation_ticket_creation_rule(rule_id, opts = {})
|
|
3188
|
+
delete_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, opts)
|
|
2964
3189
|
nil
|
|
2965
3190
|
end
|
|
2966
3191
|
|
|
2967
|
-
# Delete
|
|
3192
|
+
# Delete a ticket creation rule.
|
|
2968
3193
|
#
|
|
2969
|
-
# Delete an
|
|
2970
|
-
# and the credentials stored for the configuration are removed from the secrets store.
|
|
3194
|
+
# Delete an existing ticket creation rule by ID.
|
|
2971
3195
|
#
|
|
2972
|
-
# @param
|
|
3196
|
+
# @param rule_id [UUID] The ID of the ticket creation rule.
|
|
2973
3197
|
# @param opts [Hash] the optional parameters
|
|
2974
3198
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2975
|
-
def
|
|
2976
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.
|
|
3199
|
+
def delete_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, opts = {})
|
|
3200
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_security_findings_automation_ticket_creation_rule".to_sym]
|
|
2977
3201
|
if unstable_enabled
|
|
2978
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
3202
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_security_findings_automation_ticket_creation_rule")
|
|
2979
3203
|
else
|
|
2980
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
3204
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_security_findings_automation_ticket_creation_rule"))
|
|
2981
3205
|
end
|
|
2982
3206
|
|
|
2983
3207
|
if @api_client.config.debugging
|
|
2984
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
3208
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_findings_automation_ticket_creation_rule ...'
|
|
2985
3209
|
end
|
|
2986
|
-
# verify the required parameter '
|
|
2987
|
-
if @api_client.config.client_side_validation &&
|
|
2988
|
-
fail ArgumentError, "Missing the required parameter '
|
|
3210
|
+
# verify the required parameter 'rule_id' is set
|
|
3211
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
3212
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_findings_automation_ticket_creation_rule"
|
|
2989
3213
|
end
|
|
2990
3214
|
# resource path
|
|
2991
|
-
local_var_path = '/api/v2/
|
|
3215
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
2992
3216
|
|
|
2993
3217
|
# query parameters
|
|
2994
3218
|
query_params = opts[:query_params] || {}
|
|
@@ -3008,10 +3232,10 @@ module DatadogAPIClient::V2
|
|
|
3008
3232
|
return_type = opts[:debug_return_type]
|
|
3009
3233
|
|
|
3010
3234
|
# auth_names
|
|
3011
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
3235
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
3012
3236
|
|
|
3013
3237
|
new_options = opts.merge(
|
|
3014
|
-
:operation => :
|
|
3238
|
+
:operation => :delete_security_findings_automation_ticket_creation_rule,
|
|
3015
3239
|
:header_params => header_params,
|
|
3016
3240
|
:query_params => query_params,
|
|
3017
3241
|
:form_params => form_params,
|
|
@@ -3023,36 +3247,245 @@ module DatadogAPIClient::V2
|
|
|
3023
3247
|
|
|
3024
3248
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
3025
3249
|
if @api_client.config.debugging
|
|
3026
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
3250
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_findings_automation_ticket_creation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3027
3251
|
end
|
|
3028
3252
|
return data, status_code, headers
|
|
3029
3253
|
end
|
|
3030
3254
|
|
|
3031
|
-
# Delete
|
|
3255
|
+
# Delete a critical asset.
|
|
3032
3256
|
#
|
|
3033
|
-
# @see #
|
|
3034
|
-
def
|
|
3035
|
-
|
|
3257
|
+
# @see #delete_security_monitoring_critical_asset_with_http_info
|
|
3258
|
+
def delete_security_monitoring_critical_asset(critical_asset_id, opts = {})
|
|
3259
|
+
delete_security_monitoring_critical_asset_with_http_info(critical_asset_id, opts)
|
|
3036
3260
|
nil
|
|
3037
3261
|
end
|
|
3038
3262
|
|
|
3039
|
-
# Delete
|
|
3263
|
+
# Delete a critical asset.
|
|
3040
3264
|
#
|
|
3041
|
-
# Delete
|
|
3265
|
+
# Delete a specific critical asset.
|
|
3042
3266
|
#
|
|
3043
|
-
# @param
|
|
3267
|
+
# @param critical_asset_id [String] The ID of the critical asset.
|
|
3044
3268
|
# @param opts [Hash] the optional parameters
|
|
3045
3269
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3046
|
-
def
|
|
3270
|
+
def delete_security_monitoring_critical_asset_with_http_info(critical_asset_id, opts = {})
|
|
3047
3271
|
|
|
3048
3272
|
if @api_client.config.debugging
|
|
3049
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
3050
|
-
end
|
|
3051
|
-
# verify the required parameter 'rule_id' is set
|
|
3052
|
-
if @api_client.config.client_side_validation && rule_id.nil?
|
|
3053
|
-
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_monitoring_rule"
|
|
3273
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_monitoring_critical_asset ...'
|
|
3054
3274
|
end
|
|
3055
|
-
#
|
|
3275
|
+
# verify the required parameter 'critical_asset_id' is set
|
|
3276
|
+
if @api_client.config.client_side_validation && critical_asset_id.nil?
|
|
3277
|
+
fail ArgumentError, "Missing the required parameter 'critical_asset_id' when calling SecurityMonitoringAPI.delete_security_monitoring_critical_asset"
|
|
3278
|
+
end
|
|
3279
|
+
# resource path
|
|
3280
|
+
local_var_path = '/api/v2/security_monitoring/configuration/critical_assets/{critical_asset_id}'.sub('{critical_asset_id}', CGI.escape(critical_asset_id.to_s).gsub('%2F', '/'))
|
|
3281
|
+
|
|
3282
|
+
# query parameters
|
|
3283
|
+
query_params = opts[:query_params] || {}
|
|
3284
|
+
|
|
3285
|
+
# header parameters
|
|
3286
|
+
header_params = opts[:header_params] || {}
|
|
3287
|
+
# HTTP header 'Accept' (if needed)
|
|
3288
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
3289
|
+
|
|
3290
|
+
# form parameters
|
|
3291
|
+
form_params = opts[:form_params] || {}
|
|
3292
|
+
|
|
3293
|
+
# http body (model)
|
|
3294
|
+
post_body = opts[:debug_body]
|
|
3295
|
+
|
|
3296
|
+
# return_type
|
|
3297
|
+
return_type = opts[:debug_return_type]
|
|
3298
|
+
|
|
3299
|
+
# auth_names
|
|
3300
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
3301
|
+
|
|
3302
|
+
new_options = opts.merge(
|
|
3303
|
+
:operation => :delete_security_monitoring_critical_asset,
|
|
3304
|
+
:header_params => header_params,
|
|
3305
|
+
:query_params => query_params,
|
|
3306
|
+
:form_params => form_params,
|
|
3307
|
+
:body => post_body,
|
|
3308
|
+
:auth_names => auth_names,
|
|
3309
|
+
:return_type => return_type,
|
|
3310
|
+
:api_version => "V2"
|
|
3311
|
+
)
|
|
3312
|
+
|
|
3313
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
3314
|
+
if @api_client.config.debugging
|
|
3315
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_monitoring_critical_asset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3316
|
+
end
|
|
3317
|
+
return data, status_code, headers
|
|
3318
|
+
end
|
|
3319
|
+
|
|
3320
|
+
# Delete a dataset.
|
|
3321
|
+
#
|
|
3322
|
+
# @see #delete_security_monitoring_dataset_with_http_info
|
|
3323
|
+
def delete_security_monitoring_dataset(dataset_id, opts = {})
|
|
3324
|
+
delete_security_monitoring_dataset_with_http_info(dataset_id, opts)
|
|
3325
|
+
nil
|
|
3326
|
+
end
|
|
3327
|
+
|
|
3328
|
+
# Delete a dataset.
|
|
3329
|
+
#
|
|
3330
|
+
# Delete a Cloud SIEM dataset. Out-of-the-box datasets cannot be deleted and
|
|
3331
|
+
# deleting a dataset that is referenced by a detection rule is rejected.
|
|
3332
|
+
#
|
|
3333
|
+
# @param dataset_id [String] The UUID of the dataset.
|
|
3334
|
+
# @param opts [Hash] the optional parameters
|
|
3335
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3336
|
+
def delete_security_monitoring_dataset_with_http_info(dataset_id, opts = {})
|
|
3337
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_security_monitoring_dataset".to_sym]
|
|
3338
|
+
if unstable_enabled
|
|
3339
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_security_monitoring_dataset")
|
|
3340
|
+
else
|
|
3341
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_security_monitoring_dataset"))
|
|
3342
|
+
end
|
|
3343
|
+
|
|
3344
|
+
if @api_client.config.debugging
|
|
3345
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_monitoring_dataset ...'
|
|
3346
|
+
end
|
|
3347
|
+
# verify the required parameter 'dataset_id' is set
|
|
3348
|
+
if @api_client.config.client_side_validation && dataset_id.nil?
|
|
3349
|
+
fail ArgumentError, "Missing the required parameter 'dataset_id' when calling SecurityMonitoringAPI.delete_security_monitoring_dataset"
|
|
3350
|
+
end
|
|
3351
|
+
# resource path
|
|
3352
|
+
local_var_path = '/api/v2/security_monitoring/datasets/{dataset_id}'.sub('{dataset_id}', CGI.escape(dataset_id.to_s).gsub('%2F', '/'))
|
|
3353
|
+
|
|
3354
|
+
# query parameters
|
|
3355
|
+
query_params = opts[:query_params] || {}
|
|
3356
|
+
|
|
3357
|
+
# header parameters
|
|
3358
|
+
header_params = opts[:header_params] || {}
|
|
3359
|
+
# HTTP header 'Accept' (if needed)
|
|
3360
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
3361
|
+
|
|
3362
|
+
# form parameters
|
|
3363
|
+
form_params = opts[:form_params] || {}
|
|
3364
|
+
|
|
3365
|
+
# http body (model)
|
|
3366
|
+
post_body = opts[:debug_body]
|
|
3367
|
+
|
|
3368
|
+
# return_type
|
|
3369
|
+
return_type = opts[:debug_return_type]
|
|
3370
|
+
|
|
3371
|
+
# auth_names
|
|
3372
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
3373
|
+
|
|
3374
|
+
new_options = opts.merge(
|
|
3375
|
+
:operation => :delete_security_monitoring_dataset,
|
|
3376
|
+
:header_params => header_params,
|
|
3377
|
+
:query_params => query_params,
|
|
3378
|
+
:form_params => form_params,
|
|
3379
|
+
:body => post_body,
|
|
3380
|
+
:auth_names => auth_names,
|
|
3381
|
+
:return_type => return_type,
|
|
3382
|
+
:api_version => "V2"
|
|
3383
|
+
)
|
|
3384
|
+
|
|
3385
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
3386
|
+
if @api_client.config.debugging
|
|
3387
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_monitoring_dataset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3388
|
+
end
|
|
3389
|
+
return data, status_code, headers
|
|
3390
|
+
end
|
|
3391
|
+
|
|
3392
|
+
# Delete an entity context sync configuration.
|
|
3393
|
+
#
|
|
3394
|
+
# @see #delete_security_monitoring_integration_config_with_http_info
|
|
3395
|
+
def delete_security_monitoring_integration_config(integration_config_id, opts = {})
|
|
3396
|
+
delete_security_monitoring_integration_config_with_http_info(integration_config_id, opts)
|
|
3397
|
+
nil
|
|
3398
|
+
end
|
|
3399
|
+
|
|
3400
|
+
# Delete an entity context sync configuration.
|
|
3401
|
+
#
|
|
3402
|
+
# Delete an entity context sync configuration. Cloud SIEM stops ingesting entities from this source,
|
|
3403
|
+
# and the credentials stored for the configuration are removed from the secrets store.
|
|
3404
|
+
#
|
|
3405
|
+
# @param integration_config_id [String] The ID of the entity context sync configuration.
|
|
3406
|
+
# @param opts [Hash] the optional parameters
|
|
3407
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3408
|
+
def delete_security_monitoring_integration_config_with_http_info(integration_config_id, opts = {})
|
|
3409
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_security_monitoring_integration_config".to_sym]
|
|
3410
|
+
if unstable_enabled
|
|
3411
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_security_monitoring_integration_config")
|
|
3412
|
+
else
|
|
3413
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_security_monitoring_integration_config"))
|
|
3414
|
+
end
|
|
3415
|
+
|
|
3416
|
+
if @api_client.config.debugging
|
|
3417
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_monitoring_integration_config ...'
|
|
3418
|
+
end
|
|
3419
|
+
# verify the required parameter 'integration_config_id' is set
|
|
3420
|
+
if @api_client.config.client_side_validation && integration_config_id.nil?
|
|
3421
|
+
fail ArgumentError, "Missing the required parameter 'integration_config_id' when calling SecurityMonitoringAPI.delete_security_monitoring_integration_config"
|
|
3422
|
+
end
|
|
3423
|
+
# resource path
|
|
3424
|
+
local_var_path = '/api/v2/security_monitoring/configuration/integration_config/{integration_config_id}'.sub('{integration_config_id}', CGI.escape(integration_config_id.to_s).gsub('%2F', '/'))
|
|
3425
|
+
|
|
3426
|
+
# query parameters
|
|
3427
|
+
query_params = opts[:query_params] || {}
|
|
3428
|
+
|
|
3429
|
+
# header parameters
|
|
3430
|
+
header_params = opts[:header_params] || {}
|
|
3431
|
+
# HTTP header 'Accept' (if needed)
|
|
3432
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
3433
|
+
|
|
3434
|
+
# form parameters
|
|
3435
|
+
form_params = opts[:form_params] || {}
|
|
3436
|
+
|
|
3437
|
+
# http body (model)
|
|
3438
|
+
post_body = opts[:debug_body]
|
|
3439
|
+
|
|
3440
|
+
# return_type
|
|
3441
|
+
return_type = opts[:debug_return_type]
|
|
3442
|
+
|
|
3443
|
+
# auth_names
|
|
3444
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
3445
|
+
|
|
3446
|
+
new_options = opts.merge(
|
|
3447
|
+
:operation => :delete_security_monitoring_integration_config,
|
|
3448
|
+
:header_params => header_params,
|
|
3449
|
+
:query_params => query_params,
|
|
3450
|
+
:form_params => form_params,
|
|
3451
|
+
:body => post_body,
|
|
3452
|
+
:auth_names => auth_names,
|
|
3453
|
+
:return_type => return_type,
|
|
3454
|
+
:api_version => "V2"
|
|
3455
|
+
)
|
|
3456
|
+
|
|
3457
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
3458
|
+
if @api_client.config.debugging
|
|
3459
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_monitoring_integration_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3460
|
+
end
|
|
3461
|
+
return data, status_code, headers
|
|
3462
|
+
end
|
|
3463
|
+
|
|
3464
|
+
# Delete an existing rule.
|
|
3465
|
+
#
|
|
3466
|
+
# @see #delete_security_monitoring_rule_with_http_info
|
|
3467
|
+
def delete_security_monitoring_rule(rule_id, opts = {})
|
|
3468
|
+
delete_security_monitoring_rule_with_http_info(rule_id, opts)
|
|
3469
|
+
nil
|
|
3470
|
+
end
|
|
3471
|
+
|
|
3472
|
+
# Delete an existing rule.
|
|
3473
|
+
#
|
|
3474
|
+
# Delete an existing rule. Default rules cannot be deleted.
|
|
3475
|
+
#
|
|
3476
|
+
# @param rule_id [String] The ID of the rule.
|
|
3477
|
+
# @param opts [Hash] the optional parameters
|
|
3478
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3479
|
+
def delete_security_monitoring_rule_with_http_info(rule_id, opts = {})
|
|
3480
|
+
|
|
3481
|
+
if @api_client.config.debugging
|
|
3482
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_monitoring_rule ...'
|
|
3483
|
+
end
|
|
3484
|
+
# verify the required parameter 'rule_id' is set
|
|
3485
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
3486
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_monitoring_rule"
|
|
3487
|
+
end
|
|
3488
|
+
# resource path
|
|
3056
3489
|
local_var_path = '/api/v2/security_monitoring/rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
3057
3490
|
|
|
3058
3491
|
# query parameters
|
|
@@ -3656,7 +4089,8 @@ module DatadogAPIClient::V2
|
|
|
3656
4089
|
#
|
|
3657
4090
|
# Export a security monitoring resource to a Terraform configuration.
|
|
3658
4091
|
# The `resource_type` path parameter specifies the type of resource to export
|
|
3659
|
-
# and must be one of `suppressions` or `
|
|
4092
|
+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
|
|
4093
|
+
# For `rules`, partner rules cannot be exported and return a 400 error.
|
|
3660
4094
|
#
|
|
3661
4095
|
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
|
|
3662
4096
|
# @param resource_id [String] The ID of the security monitoring resource to export.
|
|
@@ -3678,7 +4112,7 @@ module DatadogAPIClient::V2
|
|
|
3678
4112
|
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.export_security_monitoring_terraform_resource"
|
|
3679
4113
|
end
|
|
3680
4114
|
# verify enum value
|
|
3681
|
-
allowable_values = ['suppressions', 'critical_assets']
|
|
4115
|
+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
|
|
3682
4116
|
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
|
|
3683
4117
|
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
|
|
3684
4118
|
end
|
|
@@ -4670,32 +5104,38 @@ module DatadogAPIClient::V2
|
|
|
4670
5104
|
return data, status_code, headers
|
|
4671
5105
|
end
|
|
4672
5106
|
|
|
4673
|
-
# Get a
|
|
5107
|
+
# Get a due date rule.
|
|
4674
5108
|
#
|
|
4675
|
-
# @see #
|
|
4676
|
-
def
|
|
4677
|
-
data, _status_code, _headers =
|
|
5109
|
+
# @see #get_security_findings_automation_due_date_rule_with_http_info
|
|
5110
|
+
def get_security_findings_automation_due_date_rule(rule_id, opts = {})
|
|
5111
|
+
data, _status_code, _headers = get_security_findings_automation_due_date_rule_with_http_info(rule_id, opts)
|
|
4678
5112
|
data
|
|
4679
5113
|
end
|
|
4680
5114
|
|
|
4681
|
-
# Get a
|
|
5115
|
+
# Get a due date rule.
|
|
4682
5116
|
#
|
|
4683
|
-
# Get the details of a
|
|
5117
|
+
# Get the details of a due date rule by ID.
|
|
4684
5118
|
#
|
|
4685
|
-
# @param
|
|
5119
|
+
# @param rule_id [UUID] The ID of the due date rule.
|
|
4686
5120
|
# @param opts [Hash] the optional parameters
|
|
4687
|
-
# @return [Array<(
|
|
4688
|
-
def
|
|
5121
|
+
# @return [Array<(DueDateRuleResponse, Integer, Hash)>] DueDateRuleResponse data, response status code and response headers
|
|
5122
|
+
def get_security_findings_automation_due_date_rule_with_http_info(rule_id, opts = {})
|
|
5123
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_security_findings_automation_due_date_rule".to_sym]
|
|
5124
|
+
if unstable_enabled
|
|
5125
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_security_findings_automation_due_date_rule")
|
|
5126
|
+
else
|
|
5127
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_security_findings_automation_due_date_rule"))
|
|
5128
|
+
end
|
|
4689
5129
|
|
|
4690
5130
|
if @api_client.config.debugging
|
|
4691
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
5131
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_security_findings_automation_due_date_rule ...'
|
|
4692
5132
|
end
|
|
4693
|
-
# verify the required parameter '
|
|
4694
|
-
if @api_client.config.client_side_validation &&
|
|
4695
|
-
fail ArgumentError, "Missing the required parameter '
|
|
5133
|
+
# verify the required parameter 'rule_id' is set
|
|
5134
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
5135
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.get_security_findings_automation_due_date_rule"
|
|
4696
5136
|
end
|
|
4697
5137
|
# resource path
|
|
4698
|
-
local_var_path = '/api/v2/
|
|
5138
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
4699
5139
|
|
|
4700
5140
|
# query parameters
|
|
4701
5141
|
query_params = opts[:query_params] || {}
|
|
@@ -4712,13 +5152,13 @@ module DatadogAPIClient::V2
|
|
|
4712
5152
|
post_body = opts[:debug_body]
|
|
4713
5153
|
|
|
4714
5154
|
# return_type
|
|
4715
|
-
return_type = opts[:debug_return_type] || '
|
|
5155
|
+
return_type = opts[:debug_return_type] || 'DueDateRuleResponse'
|
|
4716
5156
|
|
|
4717
5157
|
# auth_names
|
|
4718
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
5158
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
4719
5159
|
|
|
4720
5160
|
new_options = opts.merge(
|
|
4721
|
-
:operation => :
|
|
5161
|
+
:operation => :get_security_findings_automation_due_date_rule,
|
|
4722
5162
|
:header_params => header_params,
|
|
4723
5163
|
:query_params => query_params,
|
|
4724
5164
|
:form_params => form_params,
|
|
@@ -4730,40 +5170,247 @@ module DatadogAPIClient::V2
|
|
|
4730
5170
|
|
|
4731
5171
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
4732
5172
|
if @api_client.config.debugging
|
|
4733
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
5173
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_security_findings_automation_due_date_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4734
5174
|
end
|
|
4735
5175
|
return data, status_code, headers
|
|
4736
5176
|
end
|
|
4737
5177
|
|
|
4738
|
-
# Get a
|
|
5178
|
+
# Get a mute rule.
|
|
4739
5179
|
#
|
|
4740
|
-
# @see #
|
|
4741
|
-
def
|
|
4742
|
-
data, _status_code, _headers =
|
|
5180
|
+
# @see #get_security_findings_automation_mute_rule_with_http_info
|
|
5181
|
+
def get_security_findings_automation_mute_rule(rule_id, opts = {})
|
|
5182
|
+
data, _status_code, _headers = get_security_findings_automation_mute_rule_with_http_info(rule_id, opts)
|
|
4743
5183
|
data
|
|
4744
5184
|
end
|
|
4745
5185
|
|
|
4746
|
-
# Get a
|
|
5186
|
+
# Get a mute rule.
|
|
4747
5187
|
#
|
|
4748
|
-
# Get the
|
|
5188
|
+
# Get the details of a mute rule by ID.
|
|
4749
5189
|
#
|
|
4750
|
-
# @param
|
|
5190
|
+
# @param rule_id [UUID] The ID of the mute rule.
|
|
4751
5191
|
# @param opts [Hash] the optional parameters
|
|
4752
|
-
# @return [Array<(
|
|
4753
|
-
def
|
|
4754
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.
|
|
5192
|
+
# @return [Array<(MuteRuleResponse, Integer, Hash)>] MuteRuleResponse data, response status code and response headers
|
|
5193
|
+
def get_security_findings_automation_mute_rule_with_http_info(rule_id, opts = {})
|
|
5194
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_security_findings_automation_mute_rule".to_sym]
|
|
4755
5195
|
if unstable_enabled
|
|
4756
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
5196
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_security_findings_automation_mute_rule")
|
|
4757
5197
|
else
|
|
4758
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
5198
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_security_findings_automation_mute_rule"))
|
|
4759
5199
|
end
|
|
4760
5200
|
|
|
4761
5201
|
if @api_client.config.debugging
|
|
4762
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
5202
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_security_findings_automation_mute_rule ...'
|
|
4763
5203
|
end
|
|
4764
|
-
# verify the required parameter '
|
|
4765
|
-
if @api_client.config.client_side_validation &&
|
|
4766
|
-
fail ArgumentError, "Missing the required parameter '
|
|
5204
|
+
# verify the required parameter 'rule_id' is set
|
|
5205
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
5206
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.get_security_findings_automation_mute_rule"
|
|
5207
|
+
end
|
|
5208
|
+
# resource path
|
|
5209
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
5210
|
+
|
|
5211
|
+
# query parameters
|
|
5212
|
+
query_params = opts[:query_params] || {}
|
|
5213
|
+
|
|
5214
|
+
# header parameters
|
|
5215
|
+
header_params = opts[:header_params] || {}
|
|
5216
|
+
# HTTP header 'Accept' (if needed)
|
|
5217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5218
|
+
|
|
5219
|
+
# form parameters
|
|
5220
|
+
form_params = opts[:form_params] || {}
|
|
5221
|
+
|
|
5222
|
+
# http body (model)
|
|
5223
|
+
post_body = opts[:debug_body]
|
|
5224
|
+
|
|
5225
|
+
# return_type
|
|
5226
|
+
return_type = opts[:debug_return_type] || 'MuteRuleResponse'
|
|
5227
|
+
|
|
5228
|
+
# auth_names
|
|
5229
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
5230
|
+
|
|
5231
|
+
new_options = opts.merge(
|
|
5232
|
+
:operation => :get_security_findings_automation_mute_rule,
|
|
5233
|
+
:header_params => header_params,
|
|
5234
|
+
:query_params => query_params,
|
|
5235
|
+
:form_params => form_params,
|
|
5236
|
+
:body => post_body,
|
|
5237
|
+
:auth_names => auth_names,
|
|
5238
|
+
:return_type => return_type,
|
|
5239
|
+
:api_version => "V2"
|
|
5240
|
+
)
|
|
5241
|
+
|
|
5242
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
5243
|
+
if @api_client.config.debugging
|
|
5244
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_security_findings_automation_mute_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5245
|
+
end
|
|
5246
|
+
return data, status_code, headers
|
|
5247
|
+
end
|
|
5248
|
+
|
|
5249
|
+
# Get a ticket creation rule.
|
|
5250
|
+
#
|
|
5251
|
+
# @see #get_security_findings_automation_ticket_creation_rule_with_http_info
|
|
5252
|
+
def get_security_findings_automation_ticket_creation_rule(rule_id, opts = {})
|
|
5253
|
+
data, _status_code, _headers = get_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, opts)
|
|
5254
|
+
data
|
|
5255
|
+
end
|
|
5256
|
+
|
|
5257
|
+
# Get a ticket creation rule.
|
|
5258
|
+
#
|
|
5259
|
+
# Get the details of a ticket creation rule by ID.
|
|
5260
|
+
#
|
|
5261
|
+
# @param rule_id [UUID] The ID of the ticket creation rule.
|
|
5262
|
+
# @param opts [Hash] the optional parameters
|
|
5263
|
+
# @return [Array<(TicketCreationRuleResponse, Integer, Hash)>] TicketCreationRuleResponse data, response status code and response headers
|
|
5264
|
+
def get_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, opts = {})
|
|
5265
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_security_findings_automation_ticket_creation_rule".to_sym]
|
|
5266
|
+
if unstable_enabled
|
|
5267
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_security_findings_automation_ticket_creation_rule")
|
|
5268
|
+
else
|
|
5269
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_security_findings_automation_ticket_creation_rule"))
|
|
5270
|
+
end
|
|
5271
|
+
|
|
5272
|
+
if @api_client.config.debugging
|
|
5273
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_security_findings_automation_ticket_creation_rule ...'
|
|
5274
|
+
end
|
|
5275
|
+
# verify the required parameter 'rule_id' is set
|
|
5276
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
5277
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.get_security_findings_automation_ticket_creation_rule"
|
|
5278
|
+
end
|
|
5279
|
+
# resource path
|
|
5280
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
5281
|
+
|
|
5282
|
+
# query parameters
|
|
5283
|
+
query_params = opts[:query_params] || {}
|
|
5284
|
+
|
|
5285
|
+
# header parameters
|
|
5286
|
+
header_params = opts[:header_params] || {}
|
|
5287
|
+
# HTTP header 'Accept' (if needed)
|
|
5288
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5289
|
+
|
|
5290
|
+
# form parameters
|
|
5291
|
+
form_params = opts[:form_params] || {}
|
|
5292
|
+
|
|
5293
|
+
# http body (model)
|
|
5294
|
+
post_body = opts[:debug_body]
|
|
5295
|
+
|
|
5296
|
+
# return_type
|
|
5297
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse'
|
|
5298
|
+
|
|
5299
|
+
# auth_names
|
|
5300
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
5301
|
+
|
|
5302
|
+
new_options = opts.merge(
|
|
5303
|
+
:operation => :get_security_findings_automation_ticket_creation_rule,
|
|
5304
|
+
:header_params => header_params,
|
|
5305
|
+
:query_params => query_params,
|
|
5306
|
+
:form_params => form_params,
|
|
5307
|
+
:body => post_body,
|
|
5308
|
+
:auth_names => auth_names,
|
|
5309
|
+
:return_type => return_type,
|
|
5310
|
+
:api_version => "V2"
|
|
5311
|
+
)
|
|
5312
|
+
|
|
5313
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
5314
|
+
if @api_client.config.debugging
|
|
5315
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_security_findings_automation_ticket_creation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5316
|
+
end
|
|
5317
|
+
return data, status_code, headers
|
|
5318
|
+
end
|
|
5319
|
+
|
|
5320
|
+
# Get a critical asset.
|
|
5321
|
+
#
|
|
5322
|
+
# @see #get_security_monitoring_critical_asset_with_http_info
|
|
5323
|
+
def get_security_monitoring_critical_asset(critical_asset_id, opts = {})
|
|
5324
|
+
data, _status_code, _headers = get_security_monitoring_critical_asset_with_http_info(critical_asset_id, opts)
|
|
5325
|
+
data
|
|
5326
|
+
end
|
|
5327
|
+
|
|
5328
|
+
# Get a critical asset.
|
|
5329
|
+
#
|
|
5330
|
+
# Get the details of a specific critical asset.
|
|
5331
|
+
#
|
|
5332
|
+
# @param critical_asset_id [String] The ID of the critical asset.
|
|
5333
|
+
# @param opts [Hash] the optional parameters
|
|
5334
|
+
# @return [Array<(SecurityMonitoringCriticalAssetResponse, Integer, Hash)>] SecurityMonitoringCriticalAssetResponse data, response status code and response headers
|
|
5335
|
+
def get_security_monitoring_critical_asset_with_http_info(critical_asset_id, opts = {})
|
|
5336
|
+
|
|
5337
|
+
if @api_client.config.debugging
|
|
5338
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_security_monitoring_critical_asset ...'
|
|
5339
|
+
end
|
|
5340
|
+
# verify the required parameter 'critical_asset_id' is set
|
|
5341
|
+
if @api_client.config.client_side_validation && critical_asset_id.nil?
|
|
5342
|
+
fail ArgumentError, "Missing the required parameter 'critical_asset_id' when calling SecurityMonitoringAPI.get_security_monitoring_critical_asset"
|
|
5343
|
+
end
|
|
5344
|
+
# resource path
|
|
5345
|
+
local_var_path = '/api/v2/security_monitoring/configuration/critical_assets/{critical_asset_id}'.sub('{critical_asset_id}', CGI.escape(critical_asset_id.to_s).gsub('%2F', '/'))
|
|
5346
|
+
|
|
5347
|
+
# query parameters
|
|
5348
|
+
query_params = opts[:query_params] || {}
|
|
5349
|
+
|
|
5350
|
+
# header parameters
|
|
5351
|
+
header_params = opts[:header_params] || {}
|
|
5352
|
+
# HTTP header 'Accept' (if needed)
|
|
5353
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5354
|
+
|
|
5355
|
+
# form parameters
|
|
5356
|
+
form_params = opts[:form_params] || {}
|
|
5357
|
+
|
|
5358
|
+
# http body (model)
|
|
5359
|
+
post_body = opts[:debug_body]
|
|
5360
|
+
|
|
5361
|
+
# return_type
|
|
5362
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringCriticalAssetResponse'
|
|
5363
|
+
|
|
5364
|
+
# auth_names
|
|
5365
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
5366
|
+
|
|
5367
|
+
new_options = opts.merge(
|
|
5368
|
+
:operation => :get_security_monitoring_critical_asset,
|
|
5369
|
+
:header_params => header_params,
|
|
5370
|
+
:query_params => query_params,
|
|
5371
|
+
:form_params => form_params,
|
|
5372
|
+
:body => post_body,
|
|
5373
|
+
:auth_names => auth_names,
|
|
5374
|
+
:return_type => return_type,
|
|
5375
|
+
:api_version => "V2"
|
|
5376
|
+
)
|
|
5377
|
+
|
|
5378
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
5379
|
+
if @api_client.config.debugging
|
|
5380
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_security_monitoring_critical_asset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5381
|
+
end
|
|
5382
|
+
return data, status_code, headers
|
|
5383
|
+
end
|
|
5384
|
+
|
|
5385
|
+
# Get a dataset.
|
|
5386
|
+
#
|
|
5387
|
+
# @see #get_security_monitoring_dataset_with_http_info
|
|
5388
|
+
def get_security_monitoring_dataset(dataset_id, opts = {})
|
|
5389
|
+
data, _status_code, _headers = get_security_monitoring_dataset_with_http_info(dataset_id, opts)
|
|
5390
|
+
data
|
|
5391
|
+
end
|
|
5392
|
+
|
|
5393
|
+
# Get a dataset.
|
|
5394
|
+
#
|
|
5395
|
+
# Get the current version of a Cloud SIEM dataset by ID.
|
|
5396
|
+
#
|
|
5397
|
+
# @param dataset_id [String] The UUID of the dataset.
|
|
5398
|
+
# @param opts [Hash] the optional parameters
|
|
5399
|
+
# @return [Array<(SecurityMonitoringDatasetResponse, Integer, Hash)>] SecurityMonitoringDatasetResponse data, response status code and response headers
|
|
5400
|
+
def get_security_monitoring_dataset_with_http_info(dataset_id, opts = {})
|
|
5401
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_security_monitoring_dataset".to_sym]
|
|
5402
|
+
if unstable_enabled
|
|
5403
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_security_monitoring_dataset")
|
|
5404
|
+
else
|
|
5405
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_security_monitoring_dataset"))
|
|
5406
|
+
end
|
|
5407
|
+
|
|
5408
|
+
if @api_client.config.debugging
|
|
5409
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_security_monitoring_dataset ...'
|
|
5410
|
+
end
|
|
5411
|
+
# verify the required parameter 'dataset_id' is set
|
|
5412
|
+
if @api_client.config.client_side_validation && dataset_id.nil?
|
|
5413
|
+
fail ArgumentError, "Missing the required parameter 'dataset_id' when calling SecurityMonitoringAPI.get_security_monitoring_dataset"
|
|
4767
5414
|
end
|
|
4768
5415
|
# resource path
|
|
4769
5416
|
local_var_path = '/api/v2/security_monitoring/datasets/{dataset_id}'.sub('{dataset_id}', CGI.escape(dataset_id.to_s).gsub('%2F', '/'))
|
|
@@ -6344,6 +6991,94 @@ module DatadogAPIClient::V2
|
|
|
6344
6991
|
return data, status_code, headers
|
|
6345
6992
|
end
|
|
6346
6993
|
|
|
6994
|
+
# Import security vulnerabilities.
|
|
6995
|
+
#
|
|
6996
|
+
# @see #import_security_vulnerabilities_with_http_info
|
|
6997
|
+
def import_security_vulnerabilities(body, opts = {})
|
|
6998
|
+
import_security_vulnerabilities_with_http_info(body, opts)
|
|
6999
|
+
nil
|
|
7000
|
+
end
|
|
7001
|
+
|
|
7002
|
+
# Import security vulnerabilities.
|
|
7003
|
+
#
|
|
7004
|
+
# Import security vulnerabilities from an external scanner in CycloneDX 1.5 format.
|
|
7005
|
+
#
|
|
7006
|
+
# The payload is validated against the CycloneDX 1.5 JSON schema and the following
|
|
7007
|
+
# additional constraints:
|
|
7008
|
+
#
|
|
7009
|
+
# - `metadata`, `metadata.component`, and `metadata.component.name` are required.
|
|
7010
|
+
# - `metadata.tools.components` must contain exactly one element with a `name` field.
|
|
7011
|
+
# - `components` cannot be empty. Each component requires `bom-ref`, `type`, `name`, and `version`.
|
|
7012
|
+
# - When `type` is `library`, `purl` is required and must be a valid PURL.
|
|
7013
|
+
# - When `type` is `operating-system`, `name` must be one of the supported OS values:
|
|
7014
|
+
# `alma`, `alpine`, `amazon`, `azurelinux`, `bottlerocket`, `cbl-mariner`, `chainguard`,
|
|
7015
|
+
# `centos`, `debian`, `fedora`, `opensuse`, `opensuse-leap`, `opensuse-tumbleweed`,
|
|
7016
|
+
# `oracle`, `photon`, `redhat`, `rocky`, `slem`, `sles`, `ubuntu`, `wolfi`, `windows`, `macos`.
|
|
7017
|
+
# - `vulnerabilities` cannot be empty. Each vulnerability requires `id`, exactly one `ratings` entry,
|
|
7018
|
+
# and at least one `affects` entry.
|
|
7019
|
+
# - Each `affects[].ref` must match a `bom-ref` value in `components`.
|
|
7020
|
+
#
|
|
7021
|
+
# @param body [CycloneDXBom]
|
|
7022
|
+
# @param opts [Hash] the optional parameters
|
|
7023
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
7024
|
+
def import_security_vulnerabilities_with_http_info(body, opts = {})
|
|
7025
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.import_security_vulnerabilities".to_sym]
|
|
7026
|
+
if unstable_enabled
|
|
7027
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.import_security_vulnerabilities")
|
|
7028
|
+
else
|
|
7029
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.import_security_vulnerabilities"))
|
|
7030
|
+
end
|
|
7031
|
+
|
|
7032
|
+
if @api_client.config.debugging
|
|
7033
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.import_security_vulnerabilities ...'
|
|
7034
|
+
end
|
|
7035
|
+
# verify the required parameter 'body' is set
|
|
7036
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
7037
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.import_security_vulnerabilities"
|
|
7038
|
+
end
|
|
7039
|
+
# resource path
|
|
7040
|
+
local_var_path = '/api/v2/security/vulnerabilities'
|
|
7041
|
+
|
|
7042
|
+
# query parameters
|
|
7043
|
+
query_params = opts[:query_params] || {}
|
|
7044
|
+
|
|
7045
|
+
# header parameters
|
|
7046
|
+
header_params = opts[:header_params] || {}
|
|
7047
|
+
# HTTP header 'Accept' (if needed)
|
|
7048
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
7049
|
+
# HTTP header 'Content-Type'
|
|
7050
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
7051
|
+
|
|
7052
|
+
# form parameters
|
|
7053
|
+
form_params = opts[:form_params] || {}
|
|
7054
|
+
|
|
7055
|
+
# http body (model)
|
|
7056
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
7057
|
+
|
|
7058
|
+
# return_type
|
|
7059
|
+
return_type = opts[:debug_return_type]
|
|
7060
|
+
|
|
7061
|
+
# auth_names
|
|
7062
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
7063
|
+
|
|
7064
|
+
new_options = opts.merge(
|
|
7065
|
+
:operation => :import_security_vulnerabilities,
|
|
7066
|
+
:header_params => header_params,
|
|
7067
|
+
:query_params => query_params,
|
|
7068
|
+
:form_params => form_params,
|
|
7069
|
+
:body => post_body,
|
|
7070
|
+
:auth_names => auth_names,
|
|
7071
|
+
:return_type => return_type,
|
|
7072
|
+
:api_version => "V2"
|
|
7073
|
+
)
|
|
7074
|
+
|
|
7075
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
7076
|
+
if @api_client.config.debugging
|
|
7077
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#import_security_vulnerabilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7078
|
+
end
|
|
7079
|
+
return data, status_code, headers
|
|
7080
|
+
end
|
|
7081
|
+
|
|
6347
7082
|
# List assets SBOMs.
|
|
6348
7083
|
#
|
|
6349
7084
|
# @see #list_assets_sbo_ms_with_http_info
|
|
@@ -6714,7 +7449,7 @@ module DatadogAPIClient::V2
|
|
|
6714
7449
|
# @option opts [String] :sort_column Sort column: score, first_seen_ts_epoch, last_seen_ts_epoch, indicator, indicator_type, signal_count, log_count, category, as_type.
|
|
6715
7450
|
# @option opts [String] :sort_order Sort order: asc or desc.
|
|
6716
7451
|
# @option opts [Boolean] :ocsf When true, return only OCSF field-based matches. When false, return regex/message-based matches.
|
|
6717
|
-
# @option opts [String] :worked_by Filter indicators whose triage state was updated by a specific user
|
|
7452
|
+
# @option opts [String] :worked_by Filter indicators whose triage state was updated by a specific user identified by their handle.
|
|
6718
7453
|
# @option opts [IoCTriageState] :triage_state Filter by triage state.
|
|
6719
7454
|
# @return [Array<(IoCExplorerListResponse, Integer, Hash)>] IoCExplorerListResponse data, response status code and response headers
|
|
6720
7455
|
def list_indicators_of_compromise_with_http_info(opts = {})
|
|
@@ -7297,21 +8032,258 @@ module DatadogAPIClient::V2
|
|
|
7297
8032
|
end
|
|
7298
8033
|
end
|
|
7299
8034
|
|
|
7300
|
-
# Get all
|
|
8035
|
+
# Get all due date rules.
|
|
7301
8036
|
#
|
|
7302
|
-
# @see #
|
|
7303
|
-
def
|
|
7304
|
-
data, _status_code, _headers =
|
|
8037
|
+
# @see #list_security_findings_automation_due_date_rules_with_http_info
|
|
8038
|
+
def list_security_findings_automation_due_date_rules(opts = {})
|
|
8039
|
+
data, _status_code, _headers = list_security_findings_automation_due_date_rules_with_http_info(opts)
|
|
7305
8040
|
data
|
|
7306
8041
|
end
|
|
7307
8042
|
|
|
7308
|
-
# Get all
|
|
8043
|
+
# Get all due date rules.
|
|
7309
8044
|
#
|
|
7310
|
-
# Get
|
|
8045
|
+
# Get all due date rules for the current organization.
|
|
7311
8046
|
#
|
|
7312
8047
|
# @param opts [Hash] the optional parameters
|
|
7313
|
-
# @
|
|
7314
|
-
|
|
8048
|
+
# @option opts [Integer] :page_size The number of rules per page. Maximum is 1000.
|
|
8049
|
+
# @option opts [Integer] :page_number The page number to return.
|
|
8050
|
+
# @return [Array<(DueDateRulesResponse, Integer, Hash)>] DueDateRulesResponse data, response status code and response headers
|
|
8051
|
+
def list_security_findings_automation_due_date_rules_with_http_info(opts = {})
|
|
8052
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_security_findings_automation_due_date_rules".to_sym]
|
|
8053
|
+
if unstable_enabled
|
|
8054
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_security_findings_automation_due_date_rules")
|
|
8055
|
+
else
|
|
8056
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_security_findings_automation_due_date_rules"))
|
|
8057
|
+
end
|
|
8058
|
+
|
|
8059
|
+
if @api_client.config.debugging
|
|
8060
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_findings_automation_due_date_rules ...'
|
|
8061
|
+
end
|
|
8062
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
|
|
8063
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityMonitoringAPI.list_security_findings_automation_due_date_rules, must be smaller than or equal to 1000.'
|
|
8064
|
+
end
|
|
8065
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
8066
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityMonitoringAPI.list_security_findings_automation_due_date_rules, must be greater than or equal to 1.'
|
|
8067
|
+
end
|
|
8068
|
+
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
|
|
8069
|
+
fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling SecurityMonitoringAPI.list_security_findings_automation_due_date_rules, must be greater than or equal to 0.'
|
|
8070
|
+
end
|
|
8071
|
+
# resource path
|
|
8072
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules'
|
|
8073
|
+
|
|
8074
|
+
# query parameters
|
|
8075
|
+
query_params = opts[:query_params] || {}
|
|
8076
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8077
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
8078
|
+
|
|
8079
|
+
# header parameters
|
|
8080
|
+
header_params = opts[:header_params] || {}
|
|
8081
|
+
# HTTP header 'Accept' (if needed)
|
|
8082
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8083
|
+
|
|
8084
|
+
# form parameters
|
|
8085
|
+
form_params = opts[:form_params] || {}
|
|
8086
|
+
|
|
8087
|
+
# http body (model)
|
|
8088
|
+
post_body = opts[:debug_body]
|
|
8089
|
+
|
|
8090
|
+
# return_type
|
|
8091
|
+
return_type = opts[:debug_return_type] || 'DueDateRulesResponse'
|
|
8092
|
+
|
|
8093
|
+
# auth_names
|
|
8094
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8095
|
+
|
|
8096
|
+
new_options = opts.merge(
|
|
8097
|
+
:operation => :list_security_findings_automation_due_date_rules,
|
|
8098
|
+
:header_params => header_params,
|
|
8099
|
+
:query_params => query_params,
|
|
8100
|
+
:form_params => form_params,
|
|
8101
|
+
:body => post_body,
|
|
8102
|
+
:auth_names => auth_names,
|
|
8103
|
+
:return_type => return_type,
|
|
8104
|
+
:api_version => "V2"
|
|
8105
|
+
)
|
|
8106
|
+
|
|
8107
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
8108
|
+
if @api_client.config.debugging
|
|
8109
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_security_findings_automation_due_date_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8110
|
+
end
|
|
8111
|
+
return data, status_code, headers
|
|
8112
|
+
end
|
|
8113
|
+
|
|
8114
|
+
# Get all mute rules.
|
|
8115
|
+
#
|
|
8116
|
+
# @see #list_security_findings_automation_mute_rules_with_http_info
|
|
8117
|
+
def list_security_findings_automation_mute_rules(opts = {})
|
|
8118
|
+
data, _status_code, _headers = list_security_findings_automation_mute_rules_with_http_info(opts)
|
|
8119
|
+
data
|
|
8120
|
+
end
|
|
8121
|
+
|
|
8122
|
+
# Get all mute rules.
|
|
8123
|
+
#
|
|
8124
|
+
# Get all mute rules for the current organization.
|
|
8125
|
+
#
|
|
8126
|
+
# @param opts [Hash] the optional parameters
|
|
8127
|
+
# @option opts [Integer] :page_size The number of rules per page. Maximum is 1000.
|
|
8128
|
+
# @option opts [Integer] :page_number The page number to return.
|
|
8129
|
+
# @return [Array<(MuteRulesResponse, Integer, Hash)>] MuteRulesResponse data, response status code and response headers
|
|
8130
|
+
def list_security_findings_automation_mute_rules_with_http_info(opts = {})
|
|
8131
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_security_findings_automation_mute_rules".to_sym]
|
|
8132
|
+
if unstable_enabled
|
|
8133
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_security_findings_automation_mute_rules")
|
|
8134
|
+
else
|
|
8135
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_security_findings_automation_mute_rules"))
|
|
8136
|
+
end
|
|
8137
|
+
|
|
8138
|
+
if @api_client.config.debugging
|
|
8139
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_findings_automation_mute_rules ...'
|
|
8140
|
+
end
|
|
8141
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
|
|
8142
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityMonitoringAPI.list_security_findings_automation_mute_rules, must be smaller than or equal to 1000.'
|
|
8143
|
+
end
|
|
8144
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
8145
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityMonitoringAPI.list_security_findings_automation_mute_rules, must be greater than or equal to 1.'
|
|
8146
|
+
end
|
|
8147
|
+
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
|
|
8148
|
+
fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling SecurityMonitoringAPI.list_security_findings_automation_mute_rules, must be greater than or equal to 0.'
|
|
8149
|
+
end
|
|
8150
|
+
# resource path
|
|
8151
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules'
|
|
8152
|
+
|
|
8153
|
+
# query parameters
|
|
8154
|
+
query_params = opts[:query_params] || {}
|
|
8155
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8156
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
8157
|
+
|
|
8158
|
+
# header parameters
|
|
8159
|
+
header_params = opts[:header_params] || {}
|
|
8160
|
+
# HTTP header 'Accept' (if needed)
|
|
8161
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8162
|
+
|
|
8163
|
+
# form parameters
|
|
8164
|
+
form_params = opts[:form_params] || {}
|
|
8165
|
+
|
|
8166
|
+
# http body (model)
|
|
8167
|
+
post_body = opts[:debug_body]
|
|
8168
|
+
|
|
8169
|
+
# return_type
|
|
8170
|
+
return_type = opts[:debug_return_type] || 'MuteRulesResponse'
|
|
8171
|
+
|
|
8172
|
+
# auth_names
|
|
8173
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8174
|
+
|
|
8175
|
+
new_options = opts.merge(
|
|
8176
|
+
:operation => :list_security_findings_automation_mute_rules,
|
|
8177
|
+
:header_params => header_params,
|
|
8178
|
+
:query_params => query_params,
|
|
8179
|
+
:form_params => form_params,
|
|
8180
|
+
:body => post_body,
|
|
8181
|
+
:auth_names => auth_names,
|
|
8182
|
+
:return_type => return_type,
|
|
8183
|
+
:api_version => "V2"
|
|
8184
|
+
)
|
|
8185
|
+
|
|
8186
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
8187
|
+
if @api_client.config.debugging
|
|
8188
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_security_findings_automation_mute_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8189
|
+
end
|
|
8190
|
+
return data, status_code, headers
|
|
8191
|
+
end
|
|
8192
|
+
|
|
8193
|
+
# Get all ticket creation rules.
|
|
8194
|
+
#
|
|
8195
|
+
# @see #list_security_findings_automation_ticket_creation_rules_with_http_info
|
|
8196
|
+
def list_security_findings_automation_ticket_creation_rules(opts = {})
|
|
8197
|
+
data, _status_code, _headers = list_security_findings_automation_ticket_creation_rules_with_http_info(opts)
|
|
8198
|
+
data
|
|
8199
|
+
end
|
|
8200
|
+
|
|
8201
|
+
# Get all ticket creation rules.
|
|
8202
|
+
#
|
|
8203
|
+
# Get all ticket creation rules for the current organization.
|
|
8204
|
+
#
|
|
8205
|
+
# @param opts [Hash] the optional parameters
|
|
8206
|
+
# @option opts [Integer] :page_size The number of rules per page. Maximum is 1000.
|
|
8207
|
+
# @option opts [Integer] :page_number The page number to return.
|
|
8208
|
+
# @return [Array<(TicketCreationRulesResponse, Integer, Hash)>] TicketCreationRulesResponse data, response status code and response headers
|
|
8209
|
+
def list_security_findings_automation_ticket_creation_rules_with_http_info(opts = {})
|
|
8210
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_security_findings_automation_ticket_creation_rules".to_sym]
|
|
8211
|
+
if unstable_enabled
|
|
8212
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_security_findings_automation_ticket_creation_rules")
|
|
8213
|
+
else
|
|
8214
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_security_findings_automation_ticket_creation_rules"))
|
|
8215
|
+
end
|
|
8216
|
+
|
|
8217
|
+
if @api_client.config.debugging
|
|
8218
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_findings_automation_ticket_creation_rules ...'
|
|
8219
|
+
end
|
|
8220
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
|
|
8221
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityMonitoringAPI.list_security_findings_automation_ticket_creation_rules, must be smaller than or equal to 1000.'
|
|
8222
|
+
end
|
|
8223
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
8224
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SecurityMonitoringAPI.list_security_findings_automation_ticket_creation_rules, must be greater than or equal to 1.'
|
|
8225
|
+
end
|
|
8226
|
+
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
|
|
8227
|
+
fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling SecurityMonitoringAPI.list_security_findings_automation_ticket_creation_rules, must be greater than or equal to 0.'
|
|
8228
|
+
end
|
|
8229
|
+
# resource path
|
|
8230
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules'
|
|
8231
|
+
|
|
8232
|
+
# query parameters
|
|
8233
|
+
query_params = opts[:query_params] || {}
|
|
8234
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8235
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
8236
|
+
|
|
8237
|
+
# header parameters
|
|
8238
|
+
header_params = opts[:header_params] || {}
|
|
8239
|
+
# HTTP header 'Accept' (if needed)
|
|
8240
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8241
|
+
|
|
8242
|
+
# form parameters
|
|
8243
|
+
form_params = opts[:form_params] || {}
|
|
8244
|
+
|
|
8245
|
+
# http body (model)
|
|
8246
|
+
post_body = opts[:debug_body]
|
|
8247
|
+
|
|
8248
|
+
# return_type
|
|
8249
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRulesResponse'
|
|
8250
|
+
|
|
8251
|
+
# auth_names
|
|
8252
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8253
|
+
|
|
8254
|
+
new_options = opts.merge(
|
|
8255
|
+
:operation => :list_security_findings_automation_ticket_creation_rules,
|
|
8256
|
+
:header_params => header_params,
|
|
8257
|
+
:query_params => query_params,
|
|
8258
|
+
:form_params => form_params,
|
|
8259
|
+
:body => post_body,
|
|
8260
|
+
:auth_names => auth_names,
|
|
8261
|
+
:return_type => return_type,
|
|
8262
|
+
:api_version => "V2"
|
|
8263
|
+
)
|
|
8264
|
+
|
|
8265
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
8266
|
+
if @api_client.config.debugging
|
|
8267
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_security_findings_automation_ticket_creation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8268
|
+
end
|
|
8269
|
+
return data, status_code, headers
|
|
8270
|
+
end
|
|
8271
|
+
|
|
8272
|
+
# Get all critical assets.
|
|
8273
|
+
#
|
|
8274
|
+
# @see #list_security_monitoring_critical_assets_with_http_info
|
|
8275
|
+
def list_security_monitoring_critical_assets(opts = {})
|
|
8276
|
+
data, _status_code, _headers = list_security_monitoring_critical_assets_with_http_info(opts)
|
|
8277
|
+
data
|
|
8278
|
+
end
|
|
8279
|
+
|
|
8280
|
+
# Get all critical assets.
|
|
8281
|
+
#
|
|
8282
|
+
# Get the list of all critical assets.
|
|
8283
|
+
#
|
|
8284
|
+
# @param opts [Hash] the optional parameters
|
|
8285
|
+
# @return [Array<(SecurityMonitoringCriticalAssetsResponse, Integer, Hash)>] SecurityMonitoringCriticalAssetsResponse data, response status code and response headers
|
|
8286
|
+
def list_security_monitoring_critical_assets_with_http_info(opts = {})
|
|
7315
8287
|
|
|
7316
8288
|
if @api_client.config.debugging
|
|
7317
8289
|
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_monitoring_critical_assets ...'
|
|
@@ -8532,6 +9504,225 @@ module DatadogAPIClient::V2
|
|
|
8532
9504
|
return data, status_code, headers
|
|
8533
9505
|
end
|
|
8534
9506
|
|
|
9507
|
+
# Reorder due date rules.
|
|
9508
|
+
#
|
|
9509
|
+
# @see #reorder_security_findings_automation_due_date_rules_with_http_info
|
|
9510
|
+
def reorder_security_findings_automation_due_date_rules(body, opts = {})
|
|
9511
|
+
data, _status_code, _headers = reorder_security_findings_automation_due_date_rules_with_http_info(body, opts)
|
|
9512
|
+
data
|
|
9513
|
+
end
|
|
9514
|
+
|
|
9515
|
+
# Reorder due date rules.
|
|
9516
|
+
#
|
|
9517
|
+
# Reorder the list of due date rules for the current organization.
|
|
9518
|
+
#
|
|
9519
|
+
# @param body [DueDateRuleReorderRequest]
|
|
9520
|
+
# @param opts [Hash] the optional parameters
|
|
9521
|
+
# @return [Array<(DueDateRuleReorderRequest, Integer, Hash)>] DueDateRuleReorderRequest data, response status code and response headers
|
|
9522
|
+
def reorder_security_findings_automation_due_date_rules_with_http_info(body, opts = {})
|
|
9523
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.reorder_security_findings_automation_due_date_rules".to_sym]
|
|
9524
|
+
if unstable_enabled
|
|
9525
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_security_findings_automation_due_date_rules")
|
|
9526
|
+
else
|
|
9527
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_security_findings_automation_due_date_rules"))
|
|
9528
|
+
end
|
|
9529
|
+
|
|
9530
|
+
if @api_client.config.debugging
|
|
9531
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.reorder_security_findings_automation_due_date_rules ...'
|
|
9532
|
+
end
|
|
9533
|
+
# verify the required parameter 'body' is set
|
|
9534
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
9535
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.reorder_security_findings_automation_due_date_rules"
|
|
9536
|
+
end
|
|
9537
|
+
# resource path
|
|
9538
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules/reorder'
|
|
9539
|
+
|
|
9540
|
+
# query parameters
|
|
9541
|
+
query_params = opts[:query_params] || {}
|
|
9542
|
+
|
|
9543
|
+
# header parameters
|
|
9544
|
+
header_params = opts[:header_params] || {}
|
|
9545
|
+
# HTTP header 'Accept' (if needed)
|
|
9546
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9547
|
+
# HTTP header 'Content-Type'
|
|
9548
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
9549
|
+
|
|
9550
|
+
# form parameters
|
|
9551
|
+
form_params = opts[:form_params] || {}
|
|
9552
|
+
|
|
9553
|
+
# http body (model)
|
|
9554
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
9555
|
+
|
|
9556
|
+
# return_type
|
|
9557
|
+
return_type = opts[:debug_return_type] || 'DueDateRuleReorderRequest'
|
|
9558
|
+
|
|
9559
|
+
# auth_names
|
|
9560
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
9561
|
+
|
|
9562
|
+
new_options = opts.merge(
|
|
9563
|
+
:operation => :reorder_security_findings_automation_due_date_rules,
|
|
9564
|
+
:header_params => header_params,
|
|
9565
|
+
:query_params => query_params,
|
|
9566
|
+
:form_params => form_params,
|
|
9567
|
+
:body => post_body,
|
|
9568
|
+
:auth_names => auth_names,
|
|
9569
|
+
:return_type => return_type,
|
|
9570
|
+
:api_version => "V2"
|
|
9571
|
+
)
|
|
9572
|
+
|
|
9573
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
9574
|
+
if @api_client.config.debugging
|
|
9575
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#reorder_security_findings_automation_due_date_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9576
|
+
end
|
|
9577
|
+
return data, status_code, headers
|
|
9578
|
+
end
|
|
9579
|
+
|
|
9580
|
+
# Reorder mute rules.
|
|
9581
|
+
#
|
|
9582
|
+
# @see #reorder_security_findings_automation_mute_rules_with_http_info
|
|
9583
|
+
def reorder_security_findings_automation_mute_rules(body, opts = {})
|
|
9584
|
+
data, _status_code, _headers = reorder_security_findings_automation_mute_rules_with_http_info(body, opts)
|
|
9585
|
+
data
|
|
9586
|
+
end
|
|
9587
|
+
|
|
9588
|
+
# Reorder mute rules.
|
|
9589
|
+
#
|
|
9590
|
+
# Reorder the list of mute rules for the current organization.
|
|
9591
|
+
#
|
|
9592
|
+
# @param body [MuteRuleReorderRequest]
|
|
9593
|
+
# @param opts [Hash] the optional parameters
|
|
9594
|
+
# @return [Array<(MuteRuleReorderRequest, Integer, Hash)>] MuteRuleReorderRequest data, response status code and response headers
|
|
9595
|
+
def reorder_security_findings_automation_mute_rules_with_http_info(body, opts = {})
|
|
9596
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.reorder_security_findings_automation_mute_rules".to_sym]
|
|
9597
|
+
if unstable_enabled
|
|
9598
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_security_findings_automation_mute_rules")
|
|
9599
|
+
else
|
|
9600
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_security_findings_automation_mute_rules"))
|
|
9601
|
+
end
|
|
9602
|
+
|
|
9603
|
+
if @api_client.config.debugging
|
|
9604
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.reorder_security_findings_automation_mute_rules ...'
|
|
9605
|
+
end
|
|
9606
|
+
# verify the required parameter 'body' is set
|
|
9607
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
9608
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.reorder_security_findings_automation_mute_rules"
|
|
9609
|
+
end
|
|
9610
|
+
# resource path
|
|
9611
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules/reorder'
|
|
9612
|
+
|
|
9613
|
+
# query parameters
|
|
9614
|
+
query_params = opts[:query_params] || {}
|
|
9615
|
+
|
|
9616
|
+
# header parameters
|
|
9617
|
+
header_params = opts[:header_params] || {}
|
|
9618
|
+
# HTTP header 'Accept' (if needed)
|
|
9619
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9620
|
+
# HTTP header 'Content-Type'
|
|
9621
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
9622
|
+
|
|
9623
|
+
# form parameters
|
|
9624
|
+
form_params = opts[:form_params] || {}
|
|
9625
|
+
|
|
9626
|
+
# http body (model)
|
|
9627
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
9628
|
+
|
|
9629
|
+
# return_type
|
|
9630
|
+
return_type = opts[:debug_return_type] || 'MuteRuleReorderRequest'
|
|
9631
|
+
|
|
9632
|
+
# auth_names
|
|
9633
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
9634
|
+
|
|
9635
|
+
new_options = opts.merge(
|
|
9636
|
+
:operation => :reorder_security_findings_automation_mute_rules,
|
|
9637
|
+
:header_params => header_params,
|
|
9638
|
+
:query_params => query_params,
|
|
9639
|
+
:form_params => form_params,
|
|
9640
|
+
:body => post_body,
|
|
9641
|
+
:auth_names => auth_names,
|
|
9642
|
+
:return_type => return_type,
|
|
9643
|
+
:api_version => "V2"
|
|
9644
|
+
)
|
|
9645
|
+
|
|
9646
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
9647
|
+
if @api_client.config.debugging
|
|
9648
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#reorder_security_findings_automation_mute_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9649
|
+
end
|
|
9650
|
+
return data, status_code, headers
|
|
9651
|
+
end
|
|
9652
|
+
|
|
9653
|
+
# Reorder ticket creation rules.
|
|
9654
|
+
#
|
|
9655
|
+
# @see #reorder_security_findings_automation_ticket_creation_rules_with_http_info
|
|
9656
|
+
def reorder_security_findings_automation_ticket_creation_rules(body, opts = {})
|
|
9657
|
+
data, _status_code, _headers = reorder_security_findings_automation_ticket_creation_rules_with_http_info(body, opts)
|
|
9658
|
+
data
|
|
9659
|
+
end
|
|
9660
|
+
|
|
9661
|
+
# Reorder ticket creation rules.
|
|
9662
|
+
#
|
|
9663
|
+
# Reorder the list of ticket creation rules for the current organization.
|
|
9664
|
+
#
|
|
9665
|
+
# @param body [TicketCreationRuleReorderRequest]
|
|
9666
|
+
# @param opts [Hash] the optional parameters
|
|
9667
|
+
# @return [Array<(TicketCreationRuleReorderRequest, Integer, Hash)>] TicketCreationRuleReorderRequest data, response status code and response headers
|
|
9668
|
+
def reorder_security_findings_automation_ticket_creation_rules_with_http_info(body, opts = {})
|
|
9669
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.reorder_security_findings_automation_ticket_creation_rules".to_sym]
|
|
9670
|
+
if unstable_enabled
|
|
9671
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_security_findings_automation_ticket_creation_rules")
|
|
9672
|
+
else
|
|
9673
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_security_findings_automation_ticket_creation_rules"))
|
|
9674
|
+
end
|
|
9675
|
+
|
|
9676
|
+
if @api_client.config.debugging
|
|
9677
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.reorder_security_findings_automation_ticket_creation_rules ...'
|
|
9678
|
+
end
|
|
9679
|
+
# verify the required parameter 'body' is set
|
|
9680
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
9681
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.reorder_security_findings_automation_ticket_creation_rules"
|
|
9682
|
+
end
|
|
9683
|
+
# resource path
|
|
9684
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules/reorder'
|
|
9685
|
+
|
|
9686
|
+
# query parameters
|
|
9687
|
+
query_params = opts[:query_params] || {}
|
|
9688
|
+
|
|
9689
|
+
# header parameters
|
|
9690
|
+
header_params = opts[:header_params] || {}
|
|
9691
|
+
# HTTP header 'Accept' (if needed)
|
|
9692
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9693
|
+
# HTTP header 'Content-Type'
|
|
9694
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
9695
|
+
|
|
9696
|
+
# form parameters
|
|
9697
|
+
form_params = opts[:form_params] || {}
|
|
9698
|
+
|
|
9699
|
+
# http body (model)
|
|
9700
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
9701
|
+
|
|
9702
|
+
# return_type
|
|
9703
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRuleReorderRequest'
|
|
9704
|
+
|
|
9705
|
+
# auth_names
|
|
9706
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
9707
|
+
|
|
9708
|
+
new_options = opts.merge(
|
|
9709
|
+
:operation => :reorder_security_findings_automation_ticket_creation_rules,
|
|
9710
|
+
:header_params => header_params,
|
|
9711
|
+
:query_params => query_params,
|
|
9712
|
+
:form_params => form_params,
|
|
9713
|
+
:body => post_body,
|
|
9714
|
+
:auth_names => auth_names,
|
|
9715
|
+
:return_type => return_type,
|
|
9716
|
+
:api_version => "V2"
|
|
9717
|
+
)
|
|
9718
|
+
|
|
9719
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
9720
|
+
if @api_client.config.debugging
|
|
9721
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#reorder_security_findings_automation_ticket_creation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9722
|
+
end
|
|
9723
|
+
return data, status_code, headers
|
|
9724
|
+
end
|
|
9725
|
+
|
|
8535
9726
|
# Restore a rule to a historical version.
|
|
8536
9727
|
#
|
|
8537
9728
|
# @see #restore_security_monitoring_rule_with_http_info
|
|
@@ -9429,6 +10620,240 @@ module DatadogAPIClient::V2
|
|
|
9429
10620
|
return data, status_code, headers
|
|
9430
10621
|
end
|
|
9431
10622
|
|
|
10623
|
+
# Update a due date rule.
|
|
10624
|
+
#
|
|
10625
|
+
# @see #update_security_findings_automation_due_date_rule_with_http_info
|
|
10626
|
+
def update_security_findings_automation_due_date_rule(rule_id, body, opts = {})
|
|
10627
|
+
data, _status_code, _headers = update_security_findings_automation_due_date_rule_with_http_info(rule_id, body, opts)
|
|
10628
|
+
data
|
|
10629
|
+
end
|
|
10630
|
+
|
|
10631
|
+
# Update a due date rule.
|
|
10632
|
+
#
|
|
10633
|
+
# Update an existing due date rule by ID.
|
|
10634
|
+
#
|
|
10635
|
+
# @param rule_id [UUID] The ID of the due date rule.
|
|
10636
|
+
# @param body [DueDateRuleUpdateRequest]
|
|
10637
|
+
# @param opts [Hash] the optional parameters
|
|
10638
|
+
# @return [Array<(DueDateRuleResponse, Integer, Hash)>] DueDateRuleResponse data, response status code and response headers
|
|
10639
|
+
def update_security_findings_automation_due_date_rule_with_http_info(rule_id, body, opts = {})
|
|
10640
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_security_findings_automation_due_date_rule".to_sym]
|
|
10641
|
+
if unstable_enabled
|
|
10642
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_security_findings_automation_due_date_rule")
|
|
10643
|
+
else
|
|
10644
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_security_findings_automation_due_date_rule"))
|
|
10645
|
+
end
|
|
10646
|
+
|
|
10647
|
+
if @api_client.config.debugging
|
|
10648
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.update_security_findings_automation_due_date_rule ...'
|
|
10649
|
+
end
|
|
10650
|
+
# verify the required parameter 'rule_id' is set
|
|
10651
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
10652
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.update_security_findings_automation_due_date_rule"
|
|
10653
|
+
end
|
|
10654
|
+
# verify the required parameter 'body' is set
|
|
10655
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
10656
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_findings_automation_due_date_rule"
|
|
10657
|
+
end
|
|
10658
|
+
# resource path
|
|
10659
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
10660
|
+
|
|
10661
|
+
# query parameters
|
|
10662
|
+
query_params = opts[:query_params] || {}
|
|
10663
|
+
|
|
10664
|
+
# header parameters
|
|
10665
|
+
header_params = opts[:header_params] || {}
|
|
10666
|
+
# HTTP header 'Accept' (if needed)
|
|
10667
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10668
|
+
# HTTP header 'Content-Type'
|
|
10669
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10670
|
+
|
|
10671
|
+
# form parameters
|
|
10672
|
+
form_params = opts[:form_params] || {}
|
|
10673
|
+
|
|
10674
|
+
# http body (model)
|
|
10675
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
10676
|
+
|
|
10677
|
+
# return_type
|
|
10678
|
+
return_type = opts[:debug_return_type] || 'DueDateRuleResponse'
|
|
10679
|
+
|
|
10680
|
+
# auth_names
|
|
10681
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
10682
|
+
|
|
10683
|
+
new_options = opts.merge(
|
|
10684
|
+
:operation => :update_security_findings_automation_due_date_rule,
|
|
10685
|
+
:header_params => header_params,
|
|
10686
|
+
:query_params => query_params,
|
|
10687
|
+
:form_params => form_params,
|
|
10688
|
+
:body => post_body,
|
|
10689
|
+
:auth_names => auth_names,
|
|
10690
|
+
:return_type => return_type,
|
|
10691
|
+
:api_version => "V2"
|
|
10692
|
+
)
|
|
10693
|
+
|
|
10694
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
10695
|
+
if @api_client.config.debugging
|
|
10696
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#update_security_findings_automation_due_date_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10697
|
+
end
|
|
10698
|
+
return data, status_code, headers
|
|
10699
|
+
end
|
|
10700
|
+
|
|
10701
|
+
# Update a mute rule.
|
|
10702
|
+
#
|
|
10703
|
+
# @see #update_security_findings_automation_mute_rule_with_http_info
|
|
10704
|
+
def update_security_findings_automation_mute_rule(rule_id, body, opts = {})
|
|
10705
|
+
data, _status_code, _headers = update_security_findings_automation_mute_rule_with_http_info(rule_id, body, opts)
|
|
10706
|
+
data
|
|
10707
|
+
end
|
|
10708
|
+
|
|
10709
|
+
# Update a mute rule.
|
|
10710
|
+
#
|
|
10711
|
+
# Update an existing mute rule by ID.
|
|
10712
|
+
#
|
|
10713
|
+
# @param rule_id [UUID] The ID of the mute rule.
|
|
10714
|
+
# @param body [MuteRuleUpdateRequest]
|
|
10715
|
+
# @param opts [Hash] the optional parameters
|
|
10716
|
+
# @return [Array<(MuteRuleResponse, Integer, Hash)>] MuteRuleResponse data, response status code and response headers
|
|
10717
|
+
def update_security_findings_automation_mute_rule_with_http_info(rule_id, body, opts = {})
|
|
10718
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_security_findings_automation_mute_rule".to_sym]
|
|
10719
|
+
if unstable_enabled
|
|
10720
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_security_findings_automation_mute_rule")
|
|
10721
|
+
else
|
|
10722
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_security_findings_automation_mute_rule"))
|
|
10723
|
+
end
|
|
10724
|
+
|
|
10725
|
+
if @api_client.config.debugging
|
|
10726
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.update_security_findings_automation_mute_rule ...'
|
|
10727
|
+
end
|
|
10728
|
+
# verify the required parameter 'rule_id' is set
|
|
10729
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
10730
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.update_security_findings_automation_mute_rule"
|
|
10731
|
+
end
|
|
10732
|
+
# verify the required parameter 'body' is set
|
|
10733
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
10734
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_findings_automation_mute_rule"
|
|
10735
|
+
end
|
|
10736
|
+
# resource path
|
|
10737
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
10738
|
+
|
|
10739
|
+
# query parameters
|
|
10740
|
+
query_params = opts[:query_params] || {}
|
|
10741
|
+
|
|
10742
|
+
# header parameters
|
|
10743
|
+
header_params = opts[:header_params] || {}
|
|
10744
|
+
# HTTP header 'Accept' (if needed)
|
|
10745
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10746
|
+
# HTTP header 'Content-Type'
|
|
10747
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10748
|
+
|
|
10749
|
+
# form parameters
|
|
10750
|
+
form_params = opts[:form_params] || {}
|
|
10751
|
+
|
|
10752
|
+
# http body (model)
|
|
10753
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
10754
|
+
|
|
10755
|
+
# return_type
|
|
10756
|
+
return_type = opts[:debug_return_type] || 'MuteRuleResponse'
|
|
10757
|
+
|
|
10758
|
+
# auth_names
|
|
10759
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
10760
|
+
|
|
10761
|
+
new_options = opts.merge(
|
|
10762
|
+
:operation => :update_security_findings_automation_mute_rule,
|
|
10763
|
+
:header_params => header_params,
|
|
10764
|
+
:query_params => query_params,
|
|
10765
|
+
:form_params => form_params,
|
|
10766
|
+
:body => post_body,
|
|
10767
|
+
:auth_names => auth_names,
|
|
10768
|
+
:return_type => return_type,
|
|
10769
|
+
:api_version => "V2"
|
|
10770
|
+
)
|
|
10771
|
+
|
|
10772
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
10773
|
+
if @api_client.config.debugging
|
|
10774
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#update_security_findings_automation_mute_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10775
|
+
end
|
|
10776
|
+
return data, status_code, headers
|
|
10777
|
+
end
|
|
10778
|
+
|
|
10779
|
+
# Update a ticket creation rule.
|
|
10780
|
+
#
|
|
10781
|
+
# @see #update_security_findings_automation_ticket_creation_rule_with_http_info
|
|
10782
|
+
def update_security_findings_automation_ticket_creation_rule(rule_id, body, opts = {})
|
|
10783
|
+
data, _status_code, _headers = update_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, body, opts)
|
|
10784
|
+
data
|
|
10785
|
+
end
|
|
10786
|
+
|
|
10787
|
+
# Update a ticket creation rule.
|
|
10788
|
+
#
|
|
10789
|
+
# Update an existing ticket creation rule by ID.
|
|
10790
|
+
#
|
|
10791
|
+
# @param rule_id [UUID] The ID of the ticket creation rule.
|
|
10792
|
+
# @param body [TicketCreationRuleUpdateRequest]
|
|
10793
|
+
# @param opts [Hash] the optional parameters
|
|
10794
|
+
# @return [Array<(TicketCreationRuleResponse, Integer, Hash)>] TicketCreationRuleResponse data, response status code and response headers
|
|
10795
|
+
def update_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, body, opts = {})
|
|
10796
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_security_findings_automation_ticket_creation_rule".to_sym]
|
|
10797
|
+
if unstable_enabled
|
|
10798
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_security_findings_automation_ticket_creation_rule")
|
|
10799
|
+
else
|
|
10800
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_security_findings_automation_ticket_creation_rule"))
|
|
10801
|
+
end
|
|
10802
|
+
|
|
10803
|
+
if @api_client.config.debugging
|
|
10804
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.update_security_findings_automation_ticket_creation_rule ...'
|
|
10805
|
+
end
|
|
10806
|
+
# verify the required parameter 'rule_id' is set
|
|
10807
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
10808
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.update_security_findings_automation_ticket_creation_rule"
|
|
10809
|
+
end
|
|
10810
|
+
# verify the required parameter 'body' is set
|
|
10811
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
10812
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_findings_automation_ticket_creation_rule"
|
|
10813
|
+
end
|
|
10814
|
+
# resource path
|
|
10815
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
10816
|
+
|
|
10817
|
+
# query parameters
|
|
10818
|
+
query_params = opts[:query_params] || {}
|
|
10819
|
+
|
|
10820
|
+
# header parameters
|
|
10821
|
+
header_params = opts[:header_params] || {}
|
|
10822
|
+
# HTTP header 'Accept' (if needed)
|
|
10823
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10824
|
+
# HTTP header 'Content-Type'
|
|
10825
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10826
|
+
|
|
10827
|
+
# form parameters
|
|
10828
|
+
form_params = opts[:form_params] || {}
|
|
10829
|
+
|
|
10830
|
+
# http body (model)
|
|
10831
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
10832
|
+
|
|
10833
|
+
# return_type
|
|
10834
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse'
|
|
10835
|
+
|
|
10836
|
+
# auth_names
|
|
10837
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
10838
|
+
|
|
10839
|
+
new_options = opts.merge(
|
|
10840
|
+
:operation => :update_security_findings_automation_ticket_creation_rule,
|
|
10841
|
+
:header_params => header_params,
|
|
10842
|
+
:query_params => query_params,
|
|
10843
|
+
:form_params => form_params,
|
|
10844
|
+
:body => post_body,
|
|
10845
|
+
:auth_names => auth_names,
|
|
10846
|
+
:return_type => return_type,
|
|
10847
|
+
:api_version => "V2"
|
|
10848
|
+
)
|
|
10849
|
+
|
|
10850
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
10851
|
+
if @api_client.config.debugging
|
|
10852
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#update_security_findings_automation_ticket_creation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10853
|
+
end
|
|
10854
|
+
return data, status_code, headers
|
|
10855
|
+
end
|
|
10856
|
+
|
|
9432
10857
|
# Update a critical asset.
|
|
9433
10858
|
#
|
|
9434
10859
|
# @see #update_security_monitoring_critical_asset_with_http_info
|