datadog_api_client 2.55.0 → 2.57.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 +888 -357
- data/.generator/schemas/v2/openapi.yaml +25918 -2595
- data/.generator/src/generator/openapi.py +1 -1
- data/.generator/src/generator/templates/model_generic.j2 +15 -0
- data/CHANGELOG.md +112 -0
- data/Gemfile +1 -1
- data/examples/v1/dashboards/CreateDashboard_153558925.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_2652180930.rb +4 -4
- data/examples/v1/dashboards/CreateDashboard_2780500284.rb +59 -0
- data/examples/v1/dashboards/CreateDashboard_2815497946.rb +42 -0
- data/examples/v1/dashboards/CreateDashboard_2882802132.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_4032568083.rb +29 -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_2595757342.rb +26 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_3996915493.rb +38 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_4041812833.rb +28 -0
- data/examples/v1/monitors/CreateMonitor_1532893480.rb +36 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -0
- data/examples/v2/agentless-scanning/CreateAzureScanOptions.rb +1 -0
- data/examples/v2/agentless-scanning/CreateGcpScanOptions.rb +1 -0
- data/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb +1 -0
- data/examples/v2/aws-integration/GetAWSMetricNameFilterPreview.rb +8 -0
- data/examples/v2/aws-integration/PreviewAWSMetricNameFilter.rb +24 -0
- data/examples/v2/case-management/AddCaseInsights.rb +0 -3
- data/examples/v2/case-management/AggregateCases.rb +0 -3
- data/examples/v2/case-management/BulkUpdateCases.rb +0 -3
- data/examples/v2/case-management/CountCases.rb +0 -3
- data/examples/v2/case-management/CreateCaseAutomationRule.rb +0 -3
- data/examples/v2/case-management/CreateCaseJiraIssue.rb +0 -3
- data/examples/v2/case-management/CreateCaseLink.rb +0 -3
- data/examples/v2/case-management/CreateCaseNotebook.rb +0 -3
- data/examples/v2/case-management/CreateCaseServiceNowTicket.rb +0 -3
- data/examples/v2/case-management/CreateCaseView.rb +0 -3
- data/examples/v2/case-management/CreateMaintenanceWindow.rb +0 -3
- data/examples/v2/case-management/DeleteCaseAutomationRule.rb +0 -3
- data/examples/v2/case-management/DeleteCaseLink.rb +0 -3
- data/examples/v2/case-management/DeleteCaseView.rb +0 -3
- data/examples/v2/case-management/DeleteMaintenanceWindow.rb +0 -3
- data/examples/v2/case-management/DisableCaseAutomationRule.rb +0 -3
- data/examples/v2/case-management/EnableCaseAutomationRule.rb +0 -3
- data/examples/v2/case-management/FavoriteCaseProject.rb +0 -3
- data/examples/v2/case-management/GetCaseAutomationRule.rb +0 -3
- data/examples/v2/case-management/GetCaseView.rb +0 -3
- data/examples/v2/case-management/LinkIncident.rb +0 -3
- data/examples/v2/case-management/LinkJiraIssueToCase.rb +0 -3
- data/examples/v2/case-management/ListCaseAutomationRules.rb +0 -3
- data/examples/v2/case-management/ListCaseLinks.rb +0 -3
- data/examples/v2/case-management/ListCaseTimeline.rb +0 -3
- data/examples/v2/case-management/ListCaseViews.rb +0 -3
- data/examples/v2/case-management/ListCaseWatchers.rb +0 -3
- data/examples/v2/case-management/ListMaintenanceWindows.rb +0 -3
- data/examples/v2/case-management/ListUserCaseProjectFavorites.rb +0 -3
- data/examples/v2/case-management/MoveCaseToProject.rb +0 -3
- data/examples/v2/case-management/RemoveCaseInsights.rb +0 -3
- data/examples/v2/case-management/UnfavoriteCaseProject.rb +0 -3
- data/examples/v2/case-management/UnlinkJiraIssue.rb +0 -3
- data/examples/v2/case-management/UnwatchCase.rb +0 -3
- data/examples/v2/case-management/UpdateCaseAutomationRule.rb +0 -3
- data/examples/v2/case-management/UpdateCaseComment.rb +0 -3
- data/examples/v2/case-management/UpdateCaseDueDate.rb +0 -3
- data/examples/v2/case-management/UpdateCaseResolvedReason.rb +0 -3
- data/examples/v2/case-management/UpdateCaseView.rb +0 -3
- data/examples/v2/case-management/UpdateMaintenanceWindow.rb +0 -3
- data/examples/v2/case-management/WatchCase.rb +0 -3
- data/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb +0 -3
- data/examples/v2/case-management-type/UpdateCaseType.rb +0 -3
- 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 +5 -0
- data/examples/v2/cloud-cost-management/GetCostAccountFilters.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCustomForecast.rb +5 -0
- data/examples/v2/cloud-cost-management/UpdateCostAccountFilters.rb +24 -0
- data/examples/v2/cloud-cost-management/UpsertBudget.rb +14 -0
- data/examples/v2/cloud-cost-management/UpsertCustomForecast.rb +27 -0
- data/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb +1 -0
- data/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb +1 -0
- data/examples/v2/csm-ownership/GetOwnershipSettings.rb +8 -0
- data/examples/v2/csm-ownership/GetOwnershipUntaggedFindings.rb +8 -0
- data/examples/v2/csm-ownership/PostOwnershipSettings.rb +18 -0
- data/examples/v2/dora-metrics/ListDORADeployments_1654201709.rb +15 -0
- data/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment.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/UpdateAllocationsForFeatureFlagInEnvironment.rb +1 -0
- data/examples/v2/feature-flags/UpdateVariantForFeatureFlag.rb +10 -0
- data/examples/v2/fleet-automation/CancelFleetDeploymentV2.rb +8 -0
- data/examples/v2/fleet-automation/CreateFleetDeploymentConfigureV2.rb +24 -0
- data/examples/v2/fleet-automation/{CreateFleetDeploymentUpgrade.rb → CreateFleetDeploymentUpgradeV2.rb} +5 -8
- data/examples/v2/fleet-automation/GetFleetAgentDetailV2.rb +5 -0
- data/examples/v2/fleet-automation/{GetFleetDeployment_1482493803.rb → GetFleetDeploymentV2.rb} +1 -4
- data/examples/v2/fleet-automation/GetFleetScheduleV2.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetAgentVersionsV2.rb +5 -0
- data/examples/v2/fleet-automation/ListFleetAgentsV2.rb +5 -0
- data/examples/v2/fleet-automation/ListFleetDeploymentsV2.rb +5 -0
- data/examples/v2/fleet-automation/ListFleetSchedulesV2.rb +5 -0
- data/examples/v2/governance-console/GetGovernanceConfig.rb +8 -0
- data/examples/v2/governance-console/GetGovernanceControl.rb +8 -0
- data/examples/v2/governance-console/GetGovernanceControlNotificationSettings.rb +8 -0
- data/examples/v2/governance-console/GetGovernanceDetection.rb +8 -0
- data/examples/v2/governance-console/GetGovernanceNotificationSettings.rb +8 -0
- data/examples/v2/governance-console/ListGovernanceControlDetections.rb +8 -0
- data/examples/v2/governance-console/ListGovernanceControls.rb +8 -0
- data/examples/v2/governance-console/ListGovernanceInsights.rb +8 -0
- data/examples/v2/governance-console/MitigateGovernanceDetections.rb +21 -0
- data/examples/v2/governance-console/UpdateGovernanceControl.rb +18 -0
- data/examples/v2/governance-console/UpdateGovernanceControlNotificationSettings.rb +28 -0
- data/examples/v2/governance-console/UpdateGovernanceDetection.rb +20 -0
- data/examples/v2/governance-console/UpdateGovernanceNotificationSettings.rb +17 -0
- data/examples/v2/identity-providers/ListIdentityProviderUsers.rb +5 -0
- data/examples/v2/identity-providers/ListIdentityProviderUsers_486416181.rb +5 -0
- data/examples/v2/identity-providers/ListIdentityProviders.rb +5 -0
- data/examples/v2/identity-providers/UpdateIdentityProvider.rb +15 -0
- data/examples/v2/incidents/CreateIncidentPostmortemTemplate.rb +22 -1
- data/examples/v2/incidents/CreateIncidentUserDefinedRole.rb +29 -0
- data/examples/v2/incidents/DeleteIncidentPostmortemTemplate.rb +1 -1
- data/examples/v2/incidents/DeleteIncidentUserDefinedRole.rb +8 -0
- data/examples/v2/incidents/GetIncidentPostmortemTemplate.rb +1 -1
- data/examples/v2/incidents/GetIncidentUserDefinedRole.rb +8 -0
- data/examples/v2/incidents/ListIncidentUserDefinedRoles.rb +8 -0
- data/examples/v2/incidents/PatchIncidentImpact.rb +20 -0
- data/examples/v2/incidents/UpdateIncidentPostmortemTemplate.rb +23 -2
- data/examples/v2/incidents/UpdateIncidentUserDefinedRole.rb +22 -0
- data/examples/v2/llm-observability/CreateLLMObsPrompt.rb +28 -0
- data/examples/v2/llm-observability/CreateLLMObsPromptVersion.rb +29 -0
- data/examples/v2/llm-observability/DeleteLLMObsPrompt.rb +11 -0
- data/examples/v2/llm-observability/GetLLMObsPrompt.rb +11 -0
- data/examples/v2/llm-observability/GetLLMObsPromptVersion.rb +14 -0
- data/examples/v2/llm-observability/ListLLMObsCustomEvalConfigs.rb +8 -0
- data/examples/v2/llm-observability/ListLLMObsPromptVersions.rb +11 -0
- data/examples/v2/llm-observability/ListLLMObsPrompts.rb +14 -0
- data/examples/v2/llm-observability/UpdateLLMObsCustomEvalConfig.rb +5 -0
- data/examples/v2/llm-observability/UpdateLLMObsPrompt.rb +20 -0
- data/examples/v2/llm-observability/UpdateLLMObsPromptVersion.rb +23 -0
- data/examples/v2/metrics/CreateHistoricalMetricsConfiguration.rb +15 -0
- data/examples/v2/metrics/CreateTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/CreateTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/CreateTagIndexingRule_2435129406.rb +37 -0
- data/examples/v2/metrics/DeleteHistoricalMetricsConfiguration.rb +8 -0
- data/examples/v2/metrics/DeleteTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/GetHistoricalMetricsConfiguration.rb +8 -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/metrics/UpdateTagIndexingRule_4127399471.rb +41 -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_3345949653.rb +60 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_337125830.rb +56 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_3928499240.rb +61 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_620504950.rb +66 -0
- data/examples/v2/on-call/GetScheduleOnCallResponders.rb +8 -0
- data/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClient.rb +5 -0
- data/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientAllUserAuthorizations.rb +5 -0
- data/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientUserAuthorization.rb +5 -0
- data/examples/v2/org-authorized-clients/GetOrgAuthorizedClient.rb +5 -0
- data/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations.rb +5 -0
- data/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations_742202381.rb +5 -0
- data/examples/v2/org-authorized-clients/ListOrgAuthorizedClients.rb +5 -0
- data/examples/v2/org-authorized-clients/ListOrgAuthorizedClients_547493980.rb +5 -0
- data/examples/v2/org-authorized-clients/UpdateOrgAuthorizedClient.rb +15 -0
- data/examples/v2/org-groups/ListOrgGroupPolicySuggestions.rb +8 -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/ListDatasetReportSchedules.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/PrintReport.rb +27 -0
- data/examples/v2/report-schedules/ToggleReportSchedule.rb +14 -0
- data/examples/v2/reporting-and-sharing/CreateSnapshot.rb +39 -0
- data/examples/v2/rum-config/CreateRumConfig.rb +17 -0
- data/examples/v2/rum-config/GetRumConfig.rb +8 -0
- data/examples/v2/rum-config/UpdateRumConfig.rb +17 -0
- data/examples/v2/rum-operations/CreateRUMOperation.rb +46 -0
- data/examples/v2/rum-operations/CreateRUMOperationStrongLink.rb +21 -0
- data/examples/v2/rum-operations/DeleteRUMOperation.rb +8 -0
- data/examples/v2/rum-operations/DeleteRUMOperationStrongLink.rb +8 -0
- data/examples/v2/rum-operations/GetRUMOperation.rb +8 -0
- data/examples/v2/rum-operations/GetRUMOperationByName.rb +8 -0
- data/examples/v2/rum-operations/ListRUMOperationStrongLinks.rb +5 -0
- data/examples/v2/rum-operations/ListRUMOperations.rb +8 -0
- data/examples/v2/rum-operations/UpdateRUMOperation.rb +47 -0
- data/examples/v2/rum-operations/UpdateRUMOperationStrongLink.rb +17 -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/ActivateIntegration.rb +22 -0
- data/examples/v2/security-monitoring/AttachLinearIssue.rb +30 -0
- data/examples/v2/security-monitoring/AttachServiceNowTicket.rb +0 -3
- data/examples/v2/security-monitoring/BulkDeleteSecurityMonitoringRules.rb +1 -0
- data/examples/v2/security-monitoring/CreateLinearIssues.rb +39 -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/CreateSecurityMonitoringIntegrationConfig.rb +11 -3
- data/examples/v2/security-monitoring/CreateServiceNowTickets.rb +0 -3
- data/examples/v2/security-monitoring/DeactivateIntegration.rb +8 -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/GetEntraIdAzureAppRegistrations.rb +8 -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/security-monitoring/UpdateSecurityMonitoringIntegrationConfig.rb +11 -3
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationCredentials.rb +11 -3
- data/examples/v2/status-pages/CreateDegradationTemplate.rb +25 -0
- data/examples/v2/status-pages/CreateMaintenanceTemplate.rb +15 -0
- data/examples/v2/status-pages/DeleteDegradationTemplate.rb +5 -0
- data/examples/v2/status-pages/DeleteMaintenanceTemplate.rb +5 -0
- data/examples/v2/status-pages/EditDegradationUpdate.rb +16 -0
- data/examples/v2/status-pages/GetDegradationTemplate.rb +5 -0
- data/examples/v2/status-pages/GetMaintenanceTemplate.rb +5 -0
- data/examples/v2/status-pages/ListDegradationTemplates.rb +5 -0
- data/examples/v2/status-pages/ListMaintenanceTemplates.rb +5 -0
- data/examples/v2/status-pages/SoftDeleteDegradationUpdate.rb +5 -0
- data/examples/v2/status-pages/UpdateDegradationTemplate.rb +25 -0
- data/examples/v2/status-pages/UpdateMaintenanceTemplate.rb +15 -0
- data/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb +7 -2
- data/examples/v2/user-authorized-clients/DeleteUserAuthorizedClient.rb +5 -0
- data/examples/v2/user-authorized-clients/DeleteUserAuthorizedClientsByClient.rb +5 -0
- data/examples/v2/user-authorized-clients/GetUserAuthorizedClient.rb +5 -0
- data/examples/v2/user-authorized-clients/ListUserAuthorizedClients.rb +5 -0
- data/examples/v2/user-authorized-clients/ListUserAuthorizedClients_1051662547.rb +5 -0
- data/examples/v2/users/GetUserIdentityProviders.rb +5 -0
- data/examples/v2/users/UpdateUserIdentityProviders.rb +14 -0
- 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 +238 -80
- data/lib/datadog_api_client/inflector.rb +841 -32
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v1/models/dashboard.rb +11 -1
- data/lib/datadog_api_client/v1/models/dashboard_default_timeframe_setting.rb +63 -0
- data/lib/datadog_api_client/v1/models/dashboard_fixed_timeframe.rb +173 -0
- data/lib/datadog_api_client/v1/models/dashboard_fixed_timeframe_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/dashboard_live_timeframe.rb +169 -0
- data/lib/datadog_api_client/v1/models/dashboard_live_timeframe_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/dataset_list_query.rb +195 -0
- data/lib/datadog_api_client/v1/models/dataset_list_query_data_source_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/dataset_list_query_sort.rb +125 -0
- data/lib/datadog_api_client/v1/models/dataset_list_query_sort_field.rb +144 -0
- data/lib/datadog_api_client/v1/models/host_map_request.rb +4 -1
- data/lib/datadog_api_client/v1/models/host_map_widget_definition.rb +6 -6
- data/lib/datadog_api_client/v1/models/host_map_widget_definition_request_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/host_map_widget_definition_requests.rb +39 -9
- data/lib/datadog_api_client/v1/models/host_map_widget_definition_style.rb +4 -1
- data/lib/datadog_api_client/v1/models/host_map_widget_dimension.rb +2 -1
- data/lib/datadog_api_client/v1/models/host_map_widget_formula.rb +1 -1
- data/lib/datadog_api_client/v1/models/host_map_widget_projection.rb +146 -0
- data/lib/datadog_api_client/v1/models/host_map_widget_projection_dimension_mapping.rb +164 -0
- data/lib/datadog_api_client/v1/models/host_map_widget_projection_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/list_stream_query.rb +14 -3
- data/lib/datadog_api_client/v1/models/list_stream_query_version.rb +27 -0
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +3 -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_array_processor.rb +1 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation.rb +2 -1
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation_extract_key_value.rb +206 -0
- data/lib/datadog_api_client/v1/models/logs_array_processor_operation_extract_key_value_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
- data/lib/datadog_api_client/v1/models/logs_schema_remapper.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_monitor_options.rb +15 -3
- data/lib/datadog_api_client/v1/models/monitor_options.rb +2 -1
- data/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v1/models/notebook_template_variable.rb +193 -0
- data/lib/datadog_api_client/v1/models/notebook_template_variable_available_values_query.rb +63 -0
- data/lib/datadog_api_client/v1/models/notebook_template_variable_available_values_query_group_by.rb +98 -0
- data/lib/datadog_api_client/v1/models/notebook_template_variable_available_values_query_log_rum_spans.rb +142 -0
- data/lib/datadog_api_client/v1/models/notebook_template_variable_available_values_query_metrics.rb +119 -0
- data/lib/datadog_api_client/v1/models/notebook_template_variable_available_values_query_search.rb +98 -0
- data/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +2 -1
- data/lib/datadog_api_client/v1/models/published_dataset_provider.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +36 -175
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition_data_streams.rb +187 -0
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition_service_map.rb +187 -0
- data/lib/datadog_api_client/v1/models/topology_query_data_streams.rb +156 -0
- data/lib/datadog_api_client/v1/models/{topology_query_data_source.rb → topology_query_data_streams_data_source.rb} +2 -3
- data/lib/datadog_api_client/v1/models/topology_query_service_map.rb +156 -0
- data/lib/datadog_api_client/v1/models/topology_query_service_map_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/topology_request_data_streams.rb +115 -0
- data/lib/datadog_api_client/v1/models/{topology_request.rb → topology_request_service_map.rb} +5 -5
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +13 -37
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +13 -37
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +13 -37
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +150 -0
- data/lib/datadog_api_client/v2/api/case_management_api.rb +0 -246
- data/lib/datadog_api_client/v2/api/case_management_attribute_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/case_management_type_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +344 -1
- data/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/compliance_api.rb +5 -0
- data/lib/datadog_api_client/v2/api/csm_ownership_api.rb +205 -0
- data/lib/datadog_api_client/v2/api/dashboards_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/ddsql_api.rb +165 -0
- data/lib/datadog_api_client/v2/api/feature_flags_api.rb +232 -1
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +186 -253
- data/lib/datadog_api_client/v2/api/governance_console_api.rb +987 -0
- data/lib/datadog_api_client/v2/api/identity_providers_api.rb +262 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +3685 -977
- data/lib/datadog_api_client/v2/api/llm_observability_api.rb +775 -32
- data/lib/datadog_api_client/v2/api/metrics_api.rb +290 -1
- data/lib/datadog_api_client/v2/api/on_call_api.rb +75 -1
- data/lib/datadog_api_client/v2/api/org_authorized_clients_api.rb +575 -0
- data/lib/datadog_api_client/v2/api/org_groups_api.rb +72 -0
- data/lib/datadog_api_client/v2/api/report_schedules_api.rb +498 -0
- data/lib/datadog_api_client/v2/api/reporting_and_sharing_api.rb +99 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
- data/lib/datadog_api_client/v2/api/roles_api.rb +13 -0
- data/lib/datadog_api_client/v2/api/rum_config_api.rb +240 -0
- data/lib/datadog_api_client/v2/api/rum_operations_api.rb +793 -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 +2035 -267
- data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +9 -0
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +1035 -150
- data/lib/datadog_api_client/v2/api/tag_policies_api.rb +6 -6
- data/lib/datadog_api_client/v2/api/test_optimization_api.rb +3 -1
- data/lib/datadog_api_client/v2/api/user_authorized_clients_api.rb +313 -0
- data/lib/datadog_api_client/v2/api/users_api.rb +140 -0
- data/lib/datadog_api_client/v2/models/account_filters.rb +154 -0
- data/lib/datadog_api_client/v2/models/account_filters_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/account_filters_patch_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/account_filters_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/account_filters_patch_request_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_tag_cardinality_limit_processor_per_metric_mode.rb → account_filters_patch_request_type.rb} +3 -4
- data/lib/datadog_api_client/v2/models/account_filters_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{fleet_agent_info_resource_type.rb → account_filters_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_condition_input_address.rb +2 -0
- data/lib/datadog_api_client/v2/models/asset_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/attach_linear_issue_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_linear_issue_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/attach_linear_issue_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_linear_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/automation_rule_action.rb +1 -1
- data/lib/datadog_api_client/v2/models/automation_rule_action_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/automation_rule_action_type.rb +3 -3
- 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/automation_rule_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/automation_rule_trigger_data.rb +6 -6
- data/lib/datadog_api_client/v2/models/automation_rule_trigger_type.rb +6 -6
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_dd_name.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_filter_match.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_metric.rb +146 -0
- data/lib/datadog_api_client/{v1/models/topology_query.rb → v2/models/aws_metric_name_filter_preview_namespace.rb} +53 -28
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_response_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_response_data.rb +168 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filter_preview_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filters.rb +64 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filters_exclude_only.rb +146 -0
- data/lib/datadog_api_client/v2/models/aws_metric_name_filters_include_only.rb +146 -0
- data/lib/datadog_api_client/v2/models/aws_metrics_config.rb +14 -1
- data/lib/datadog_api_client/v2/models/azure_scan_options_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/batch_rows_query_response.rb +15 -3
- 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/condition.rb +28 -40
- data/lib/datadog_api_client/v2/models/condition_request.rb +21 -47
- data/lib/datadog_api_client/v2/models/confluence_postmortem_settings.rb +162 -0
- data/lib/datadog_api_client/v2/models/control_notification_event_setting.rb +167 -0
- data/lib/datadog_api_client/v2/models/control_notification_settings_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/control_notification_settings_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/control_notification_settings_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/control_notification_settings_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/control_notification_settings_update_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/control_notification_settings_update_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/control_notification_settings_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/control_notification_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/control_notification_target_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_degradation_request_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/create_backfilled_degradation_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_degradation_request_data_relationships_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_degradation_request_data_relationships_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request_data.rb +11 -1
- 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_backfilled_maintenance_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request_data_relationships_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request_data_relationships_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_relationships_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_relationships_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_degradation_template_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_degradation_template_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_degradation_template_request_data_attributes.rb +157 -0
- data/lib/datadog_api_client/v2/models/create_degradation_template_request_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/create_degradation_template_request_data_attributes_updates_items.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_linear_issue_request_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_linear_issue_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_linear_issue_request_data_attributes.rb +157 -0
- data/lib/datadog_api_client/v2/models/create_linear_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes.rb +1 -12
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_relationships_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_relationships_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_template_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_template_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_template_request_data_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_additional_config.rb +127 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_data_attributes_request.rb +215 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_data_attributes_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{fleet_agent_info_response.rb → create_snapshot_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_snapshot_template_variable.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_timeseries_legend_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_ttl.rb +31 -0
- data/lib/datadog_api_client/v2/models/create_snapshot_type.rb +26 -0
- 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/{fleet_deployment_configure_create_request.rb → custom_forecast_response.rb} +5 -5
- 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/dataset_report_schedule_list_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/dataset_report_schedule_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dataset_report_schedule_response_attributes.rb +368 -0
- data/lib/datadog_api_client/v2/models/dataset_report_schedule_response_data.rb +186 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_column.rb +181 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_fetch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_fetch_request_attributes.rb +124 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_fetch_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_fetch_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_request_attributes.rb +174 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_response.rb +147 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_response_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_response_data.rb +166 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_response_meta.rb +146 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_state.rb +30 -0
- data/lib/datadog_api_client/v2/models/ddsql_tabular_query_time_window.rb +147 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_updates_items.rb +21 -1
- data/lib/datadog_api_client/v2/models/degradation_data_relationships.rb +13 -3
- data/lib/datadog_api_client/v2/models/degradation_data_relationships_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_data_relationships_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_template.rb +117 -0
- data/lib/datadog_api_client/v2/models/degradation_template_array.rb +137 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_attributes.rb +159 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_attributes_updates_items.rb +133 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_relationships_created_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_relationships_created_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_relationships_last_modified_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_template_data_relationships_status_page_data.rb +144 -0
- 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/dora_deployment_object_attributes.rb +5 -16
- data/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb +5 -23
- 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/entity_v3_api_spec_interface.rb +63 -0
- data/lib/datadog_api_client/v2/models/filters_per_product.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/finding_linear_issue.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_linear_issue_result.rb +145 -0
- data/lib/datadog_api_client/v2/models/flaky_test.rb +4 -1
- data/lib/datadog_api_client/v2/models/flaky_test_attributes.rb +44 -1
- data/lib/datadog_api_client/v2/models/flaky_test_impact_level.rb +28 -0
- data/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb +3 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_configuration_files_v2.rb +147 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_detail_v2.rb +165 -0
- data/lib/datadog_api_client/v2/models/{fleet_agent_info_attributes.rb → fleet_agent_detail_v2_attributes.rb} +27 -21
- data/lib/datadog_api_client/v2/models/fleet_agent_detail_v2_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{fleet_agent_info_details.rb → fleet_agent_info_details_v2.rb} +128 -10
- data/lib/datadog_api_client/v2/models/{fleet_agent_info.rb → fleet_agent_v2.rb} +7 -7
- data/lib/datadog_api_client/v2/models/{fleet_agent_attributes.rb → fleet_agent_v2_attributes.rb} +129 -39
- data/lib/datadog_api_client/v2/models/fleet_agent_v2_attributes_instrumentation_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_v2_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_version_v2.rb +165 -0
- data/lib/datadog_api_client/v2/models/{fleet_agent_version_attributes.rb → fleet_agent_version_v2_attributes.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{fleet_agent_version_resource_type.rb → fleet_agent_version_v2_resource_type.rb} +2 -2
- data/lib/datadog_api_client/v2/models/fleet_agent_versions_v2_page.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_versions_v2_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_versions_v2_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/{fleet_agents_response_meta.rb → fleet_agents_v2_page.rb} +15 -5
- data/lib/datadog_api_client/v2/models/{fleet_agents_response.rb → fleet_agents_v2_response.rb} +9 -7
- data/lib/datadog_api_client/v2/models/fleet_agents_v2_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/{fleet_configuration_file.rb → fleet_configuration_file_v2.rb} +13 -3
- data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +1 -11
- data/lib/datadog_api_client/v2/models/{fleet_deployment_configure_attributes.rb → fleet_deployment_configure_v2_attributes.rb} +43 -7
- data/lib/datadog_api_client/v2/models/{fleet_deployment_configure_create.rb → fleet_deployment_configure_v2_create.rb} +5 -5
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_v2_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_v2_dry_run.rb +166 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_v2_dry_run_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_v2_dry_run_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_v2_dry_run_result.rb +126 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_v2_package.rb +154 -0
- data/lib/datadog_api_client/v2/models/{fleet_deployment_package_upgrade_attributes.rb → fleet_deployment_package_upgrade_v2_attributes.rb} +15 -4
- data/lib/datadog_api_client/v2/models/{fleet_deployment_package_upgrade_create.rb → fleet_deployment_package_upgrade_v2_create.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{fleet_deployment_package_upgrade_create_request.rb → fleet_deployment_package_upgrade_v2_create_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2_attributes.rb +243 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2_cancel.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2_cancel_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2_cancel_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2_create_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{fleet_agents_response_data.rb → fleet_deployment_v2_detail.rb} +8 -8
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2_detail_agent.rb +157 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2_detail_attributes.rb +347 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_v2_detail_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_deployments_v2_page.rb +115 -0
- data/lib/datadog_api_client/v2/models/{fleet_deployments_response.rb → fleet_deployments_v2_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/fleet_deployments_v2_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/{fleet_integration_details.rb → fleet_integration_details_v2.rb} +34 -4
- data/lib/datadog_api_client/v2/models/{fleet_integrations_by_status.rb → fleet_integrations_by_status_v2.rb} +7 -17
- data/lib/datadog_api_client/v2/models/fleet_otel_collector_configuration_v2.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_v2.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_v2_attributes.rb +247 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_v2_notification_rule.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_v2_recurrence_rule.rb +150 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_v2_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{fleet_deployments_page.rb → fleet_schedules_v2_page.rb} +4 -4
- data/lib/datadog_api_client/v2/models/fleet_schedules_v2_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/{fleet_deployments_response_meta.rb → fleet_schedules_v2_response_meta.rb} +5 -5
- data/lib/datadog_api_client/v2/models/gcp_scan_options_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/google_docs_postmortem_settings.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_config_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/governance_config_data.rb +167 -0
- data/lib/datadog_api_client/v2/models/governance_config_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_console_config_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +525 -0
- data/lib/datadog_api_client/v2/models/governance_control_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_assignment_source.rb +29 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_attributes.rb +362 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_state.rb +32 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_update_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_update_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_control_detection_update_state.rb +27 -0
- data/lib/datadog_api_client/v2/models/governance_control_detections_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/governance_control_mitigation_definition.rb +234 -0
- data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +251 -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 +135 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{fleet_agent_versions_response.rb → governance_controls_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/governance_insight_attributes.rb +290 -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 +167 -0
- data/lib/datadog_api_client/v2/models/governance_insight_directionality.rb +28 -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 +174 -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/governance_mitigation_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_mitigation_request_attributes.rb +166 -0
- data/lib/datadog_api_client/v2/models/governance_mitigation_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/governance_notification_settings_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_notification_settings_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_notification_settings_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_notification_settings_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_notification_settings_update_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/governance_notification_settings_update_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/governance_notification_settings_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/historical_metrics_configuration_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/historical_metrics_configuration_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/historical_metrics_configuration_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/historical_metrics_configuration_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/historical_metrics_configuration_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/historical_metrics_configuration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/identity_provider_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/identity_provider_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/identity_provider_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/identity_provider_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/identity_provider_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/identity_provider_update_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/identity_provider_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/identity_providers_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_ai_postmortem_data_attributes_response.rb +155 -0
- data/lib/datadog_api_client/v2/models/incident_ai_postmortem_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_ai_postmortem_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_ai_postmortem_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_data_attributes_request.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_data_attributes_response.rb +205 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_data_request.rb +133 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_data_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_patch_data_attributes_request.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_patch_data_request.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_configuration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_create_on_call_page_data_attributes_request.rb +159 -0
- data/lib/datadog_api_client/v2/models/incident_create_on_call_page_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_create_on_call_page_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_create_page_from_incident_data_attributes_request.rb +169 -0
- data/lib/datadog_api_client/v2/models/incident_create_page_from_incident_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_create_page_from_incident_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_create_page_from_incident_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_data_attributes_request.rb +186 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_data_attributes_response.rb +228 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_data_request.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_data_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_patch_data_attributes_request.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_patch_data_request.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_relationships_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_google_chat_configuration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_data_attributes_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_data_attributes_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_data_request.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_data_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_patch_data_attributes_request.rb +115 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_patch_data_request.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_relationships_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_google_meet_configuration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_impact_attributes.rb +0 -1
- data/lib/datadog_api_client/v2/models/incident_impact_create_attributes.rb +0 -1
- data/lib/datadog_api_client/v2/models/incident_impact_field_choice.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_data_attributes_request.rb +195 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_data_attributes_response.rb +195 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_data_request.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_data_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_relationships_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_impact_field_value_type.rb +32 -0
- data/lib/datadog_api_client/v2/models/incident_impact_fields_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_impact_patch_attributes.rb +143 -0
- data/lib/datadog_api_client/v2/models/incident_impact_patch_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/incident_impact_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_on_call_page_data_attributes_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/{fleet_agent_version.rb → incident_on_call_page_data_request.rb} +8 -8
- data/lib/datadog_api_client/v2/models/incident_on_call_page_link_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_on_call_page_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_on_call_page_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_org_settings_data_attributes_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_org_settings_data_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_org_settings_list_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_org_settings_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_org_settings_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_org_settings_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_page_role_reference.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_page_role_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_page_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_page_target_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_page_uuid_data_response.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_page_uuid_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_page_uuid_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_responder_data_attributes_response.rb +216 -0
- data/lib/datadog_api_client/v2/models/incident_responder_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_responder_data_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_responder_relationships.rb +143 -0
- data/lib/datadog_api_client/v2/models/incident_responder_relationships_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_responder_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_responder_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_responder_role_assignment_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/{fleet_agents_response_data_attributes.rb → incident_responder_role_assignments_relationship.rb} +12 -12
- data/lib/datadog_api_client/v2/models/incident_responder_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_responder_user_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_responder_user_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_responders_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_rule_condition.rb +146 -0
- data/lib/datadog_api_client/v2/models/incident_rule_data_attributes_request.rb +278 -0
- data/lib/datadog_api_client/v2/models/incident_rule_data_attributes_response.rb +268 -0
- data/lib/datadog_api_client/v2/models/incident_rule_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_rule_execution_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_rule_patch_data_attributes_request.rb +147 -0
- data/lib/datadog_api_client/v2/models/incident_rule_patch_data_request.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_rule_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_rule_query_condition.rb +124 -0
- data/lib/datadog_api_client/v2/models/incident_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_rule_response_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_rule_task_id_type.rb +37 -0
- data/lib/datadog_api_client/v2/models/incident_rule_trigger_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{fleet_schedules_response.rb → incident_rules_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/incident_service_now_record_data_attributes_request.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_service_now_record_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_service_now_record_prompt_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_service_now_record_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_data_attributes_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_data_attributes_response.rb +225 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_data_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_patch_data_attributes_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_patch_data_request.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_override_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_overrides_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_timestamp_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_type_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_type_configuration.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_type_slug_source.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_type_update_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_user_defined_field_attributes_response.rb +1 -54
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_data_attributes_request.rb +151 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_data_attributes_response.rb +204 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_data_request.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_data_response.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_incident_type_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_incident_type_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_included_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_patch_data_attributes_request.rb +133 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_patch_data_request.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_policy.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_relationships_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_relationships_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_role_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_roles_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/linear_issues_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_rows_response.rb +13 -3
- data/lib/datadog_api_client/v2/models/list_rows_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/list_rows_response_meta_page.rb +105 -0
- data/lib/datadog_api_client/v2/models/llm_obs_create_prompt_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_create_prompt_data_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/llm_obs_create_prompt_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_create_prompt_version_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_create_prompt_version_data_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/llm_obs_create_prompt_version_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_custom_eval_config_bedrock_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/llm_obs_custom_eval_config_list_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_custom_eval_config_llm_judge_config.rb +36 -3
- data/lib/datadog_api_client/v2/models/llm_obs_custom_eval_config_parsing_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/llm_obs_custom_eval_config_target.rb +13 -1
- data/lib/datadog_api_client/v2/models/llm_obs_deleted_prompt_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_deleted_prompt_data_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_deleted_prompt_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_chat_message.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_data_attributes.rb +323 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_dataset.rb +133 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_response_source.rb +27 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_sdk_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_sdk_data_attributes.rb +159 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_sdk_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_template.rb +63 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_version_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_version_data_attributes.rb +308 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_version_label.rb +27 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_version_list_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_version_list_data_attributes.rb +287 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_version_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_version_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompt_versions_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_prompts_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_update_prompt_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_update_prompt_data_attributes.rb +90 -0
- data/lib/datadog_api_client/v2/models/llm_obs_update_prompt_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_update_prompt_version_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_update_prompt_version_data_attributes.rb +104 -0
- data/lib/datadog_api_client/v2/models/llm_obs_update_prompt_version_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb +36 -117
- data/lib/datadog_api_client/v2/models/logs_archive_integration_s3_access_key.rb +123 -0
- data/lib/datadog_api_client/v2/models/logs_archive_integration_s3_role.rb +144 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships.rb +13 -3
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_data_relationships_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/maintenance_template.rb +117 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_array.rb +137 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data_attributes.rb +177 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data_relationships_created_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data_relationships_created_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data_relationships_last_modified_by_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_template_data_relationships_status_page_data.rb +144 -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/notification_rule_preview_result.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +22 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination_server_side_encryption.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_generic_destination.rb +22 -1
- 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_client_tls.rb +178 -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_http_client_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +13 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_include_rule.rb +160 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_tag_cardinality_limit_processor.rb +22 -1
- data/lib/datadog_api_client/v2/models/{observability_pipeline_tag_cardinality_limit_processor_per_tag_mode.rb → observability_pipeline_tag_cardinality_limit_processor_override_type.rb} +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_tag_cardinality_limit_processor_per_metric_limit.rb +16 -16
- data/lib/datadog_api_client/v2/models/observability_pipeline_tag_cardinality_limit_processor_per_tag_limit.rb +15 -15
- data/lib/datadog_api_client/v2/models/observability_pipeline_tag_cardinality_limit_processor_tracking_mode.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_tag_cardinality_limit_processor_tracking_mode_mode.rb +27 -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/org_authorized_client_attributes.rb +162 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_data.rb +186 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_relationship_o_auth2_client.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_relationship_o_auth2_client_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_relationship_o_auth2_client_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_relationship_user_authorized_clients.rb +146 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_relationship_user_authorized_clients_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_relationship_user_authorized_clients_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_relationship_user_authorized_clients_links.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_update_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/org_authorized_client_user_authorizations_sort.rb +28 -0
- data/lib/datadog_api_client/v2/models/org_authorized_clients_response.rb +146 -0
- data/lib/datadog_api_client/v2/models/org_group_policy_suggestion_attributes.rb +194 -0
- data/lib/datadog_api_client/v2/models/org_group_policy_suggestion_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/org_group_policy_suggestion_list_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/org_group_policy_suggestion_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/org_group_policy_suggestion_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/org_group_policy_suggestion_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ownership_confidence_level.rb +28 -0
- data/lib/datadog_api_client/v2/models/ownership_settings_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/ownership_settings_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/ownership_settings_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ownership_settings_request_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/ownership_settings_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/ownership_settings_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/ownership_settings_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ownership_untagged_findings_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/ownership_untagged_findings_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/ownership_untagged_findings_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/ownership_untagged_findings_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data_relationships_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request_data_relationships_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_template_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_template_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_template_request_data_attributes.rb +139 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_template_request_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_template_request_data_attributes_components_affected_items_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_template_request_data_attributes_updates_items.rb +133 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_template_request_data_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_maintenance_request_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_relationships_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_relationships_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_template_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_template_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_template_request_data_attributes.rb +157 -0
- data/lib/datadog_api_client/v2/models/patch_maintenance_template_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/postmortem_template_attributes_request.rb +60 -2
- data/lib/datadog_api_client/v2/models/postmortem_template_attributes_response.rb +84 -4
- data/lib/datadog_api_client/v2/models/postmortem_template_create_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_data_request.rb +22 -2
- data/lib/datadog_api_client/v2/models/postmortem_template_data_response.rb +13 -3
- data/lib/datadog_api_client/v2/models/postmortem_template_incident_type_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_incident_type_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_location.rb +28 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_response_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_type.rb +2 -1
- data/lib/datadog_api_client/v2/models/postmortem_template_user_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/postmortem_template_user_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/print_report_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/print_report_request_attributes.rb +222 -0
- data/lib/datadog_api_client/v2/models/print_report_request_data.rb +145 -0
- data/lib/datadog_api_client/v2/models/print_report_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/print_report_response_attributes.rb +261 -0
- data/lib/datadog_api_client/v2/models/print_report_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/print_report_type.rb +26 -0
- 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/rule_types_items.rb +2 -1
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_config_attributes.rb +214 -0
- data/lib/datadog_api_client/v2/models/rum_config_create_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_config_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_config_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_config_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_config_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_config_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_config_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_config_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_create_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_operation_journey_composite_rule.rb +178 -0
- data/lib/datadog_api_client/v2/models/rum_operation_journey_composite_rule_kind.rb +28 -0
- data/lib/datadog_api_client/v2/models/rum_operation_journey_node.rb +133 -0
- data/lib/datadog_api_client/v2/models/rum_operation_journey_predicate.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_journey_rum.rb +125 -0
- data/lib/datadog_api_client/v2/models/rum_operation_journey_step.rb +147 -0
- data/lib/datadog_api_client/v2/models/rum_operation_journey_step_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/rum_operation_request_attributes.rb +228 -0
- data/lib/datadog_api_client/v2/models/rum_operation_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_response_attributes.rb +280 -0
- data/lib/datadog_api_client/v2/models/rum_operation_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_create_request_attributes.rb +195 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_create_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_response_attributes.rb +216 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_update_request_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_update_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_link_update_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_links_list_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/rum_operation_strong_links_list_response_meta.rb +125 -0
- data/lib/datadog_api_client/v2/models/rum_operation_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_operation_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_operation_update_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_operation_user.rb +135 -0
- data/lib/datadog_api_client/v2/models/rum_operations_list_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/rum_operations_list_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/rum_operations_list_response_meta_page.rb +184 -0
- 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/schedule_data_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/schedule_on_call_responder_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responder_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responder_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responder_data_relationships_shifts.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responder_data_relationships_shifts_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responder_data_relationships_shifts_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responder_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders.rb +117 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_relationships_responders.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_relationships_responders_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_relationships_schedule.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_relationships_schedule_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_relationships_schedule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_on_call_responders_included.rb +65 -0
- data/lib/datadog_api_client/v2/models/schedule_trigger.rb +11 -1
- data/lib/datadog_api_client/v2/models/schedule_trigger_overlap_behavior.rb +27 -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_azure_app_registration.rb +207 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_app_sec_details.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_app_sec_details_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_audit_details.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_audit_details_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_entity_details.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_entity_details_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_logs_details.rb +250 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_onboarding_details.rb +154 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_onboarding_details_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_attributes.rb +28 -122
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_details.rb +53 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_state_meta.rb +24 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_states_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_status.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_threat_intel_details.rb +186 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_threat_intel_details_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_vulnerability_details.rb +186 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_content_pack_vulnerability_details_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_crowd_strike_integration_config_create_attributes.rb +196 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_crowd_strike_integration_config_update_attributes.rb +173 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_crowd_strike_integration_credentials_validate_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_entra_id_azure_app_registrations_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_entra_id_azure_app_registrations_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_entra_id_azure_app_registrations_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_entra_id_azure_app_registrations_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_entra_id_integration_config_create_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_entra_id_integration_config_update_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_entra_id_integration_credentials_validate_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_google_workspace_integration_config_create_attributes.rb +196 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_google_workspace_integration_config_update_attributes.rb +173 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_google_workspace_integration_credentials_validate_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_activate_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_activate_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_activate_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_activate_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_config_create_attributes.rb +26 -172
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_config_crowd_strike_secrets.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_config_google_workspace_secrets.rb +133 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_config_google_workspace_service_account.rb +186 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_config_okta_secrets.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_config_sentinel_one_secrets.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_config_update_attributes.rb +27 -132
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_config_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_credentials_validate_attributes.rb +26 -141
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_type_crowd_strike.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_type_entra_id.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_type_google_workspace.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_type_okta.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_integration_type_sentinel_one.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_okta_integration_config_create_attributes.rb +196 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_okta_integration_config_update_attributes.rb +173 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_okta_integration_credentials_validate_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_response.rb +8 -22
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_response_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_sentinel_one_integration_config_create_attributes.rb +196 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_sentinel_one_integration_config_update_attributes.rb +173 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_sentinel_one_integration_credentials_validate_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_sku.rb +2 -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/tag_indexing_rule_dynamic_tags.rb +48 -2
- data/lib/datadog_api_client/v2/models/tag_indexing_rule_options_data.rb +9 -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_flaky_tests_request_test.rb +4 -1
- data/lib/datadog_api_client/v2/models/update_flaky_tests_response_result.rb +3 -1
- data/lib/datadog_api_client/v2/models/update_user_identity_providers_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/update_variant_request.rb +115 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_attributes.rb +204 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_data.rb +186 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_o_auth2_client.rb +123 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_o_auth2_client_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_o_auth2_client_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_scope_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_scope_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_scopes.rb +125 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationship_user_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_relationships.rb +165 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/user_authorized_client_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_authorized_clients_response.rb +146 -0
- data/lib/datadog_api_client/v2/models/user_override_identity_provider_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/user_override_identity_provider_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/user_override_identity_provider_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_override_identity_providers_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/user_relationship_identity_provider_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/user_relationship_identity_provider_data_type.rb +26 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/v1/deserialization_spec.rb +23 -0
- metadata +999 -44
- data/examples/v2/fleet-automation/CancelFleetDeployment.rb +0 -8
- data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +0 -26
- data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +0 -8
- data/examples/v2/fleet-automation/GetFleetDeployment.rb +0 -8
- data/examples/v2/fleet-automation/GetFleetSchedule.rb +0 -8
- data/examples/v2/fleet-automation/ListFleetAgentVersions.rb +0 -8
- data/examples/v2/fleet-automation/ListFleetAgents.rb +0 -8
- data/examples/v2/fleet-automation/ListFleetDeployments.rb +0 -8
- data/examples/v2/fleet-automation/ListFleetSchedules.rb +0 -8
|
@@ -96,6 +96,82 @@ module DatadogAPIClient::V2
|
|
|
96
96
|
return data, status_code, headers
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
# Activate an entity context sync integration.
|
|
100
|
+
#
|
|
101
|
+
# @see #activate_integration_with_http_info
|
|
102
|
+
def activate_integration(integration_type, opts = {})
|
|
103
|
+
data, _status_code, _headers = activate_integration_with_http_info(integration_type, opts)
|
|
104
|
+
data
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Activate an entity context sync integration.
|
|
108
|
+
#
|
|
109
|
+
# Activate an entity context sync integration for a source type that does not require manually
|
|
110
|
+
# supplied credentials (for example, Entra ID). If an integration of this type already exists,
|
|
111
|
+
# it is returned (re-enabling it first if it was disabled) instead of creating a duplicate.
|
|
112
|
+
#
|
|
113
|
+
# @param integration_type [String] The integration type to activate (for example, `entra_id`).
|
|
114
|
+
# @param opts [Hash] the optional parameters
|
|
115
|
+
# @option opts [SecurityMonitoringIntegrationActivateRequest] :body Optional configuration overrides for the integration to activate.
|
|
116
|
+
# @return [Array<(SecurityMonitoringIntegrationConfigResponse, Integer, Hash)>] SecurityMonitoringIntegrationConfigResponse data, response status code and response headers
|
|
117
|
+
def activate_integration_with_http_info(integration_type, opts = {})
|
|
118
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.activate_integration".to_sym]
|
|
119
|
+
if unstable_enabled
|
|
120
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.activate_integration")
|
|
121
|
+
else
|
|
122
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.activate_integration"))
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if @api_client.config.debugging
|
|
126
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.activate_integration ...'
|
|
127
|
+
end
|
|
128
|
+
# verify the required parameter 'integration_type' is set
|
|
129
|
+
if @api_client.config.client_side_validation && integration_type.nil?
|
|
130
|
+
fail ArgumentError, "Missing the required parameter 'integration_type' when calling SecurityMonitoringAPI.activate_integration"
|
|
131
|
+
end
|
|
132
|
+
# resource path
|
|
133
|
+
local_var_path = '/api/v2/security_monitoring/configuration/integration_config/{integration_type}/activate'.sub('{integration_type}', CGI.escape(integration_type.to_s).gsub('%2F', '/'))
|
|
134
|
+
|
|
135
|
+
# query parameters
|
|
136
|
+
query_params = opts[:query_params] || {}
|
|
137
|
+
|
|
138
|
+
# header parameters
|
|
139
|
+
header_params = opts[:header_params] || {}
|
|
140
|
+
# HTTP header 'Accept' (if needed)
|
|
141
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
142
|
+
# HTTP header 'Content-Type'
|
|
143
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
144
|
+
|
|
145
|
+
# form parameters
|
|
146
|
+
form_params = opts[:form_params] || {}
|
|
147
|
+
|
|
148
|
+
# http body (model)
|
|
149
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
|
150
|
+
|
|
151
|
+
# return_type
|
|
152
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringIntegrationConfigResponse'
|
|
153
|
+
|
|
154
|
+
# auth_names
|
|
155
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
156
|
+
|
|
157
|
+
new_options = opts.merge(
|
|
158
|
+
:operation => :activate_integration,
|
|
159
|
+
:header_params => header_params,
|
|
160
|
+
:query_params => query_params,
|
|
161
|
+
:form_params => form_params,
|
|
162
|
+
:body => post_body,
|
|
163
|
+
:auth_names => auth_names,
|
|
164
|
+
:return_type => return_type,
|
|
165
|
+
:api_version => "V2"
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
169
|
+
if @api_client.config.debugging
|
|
170
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#activate_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
171
|
+
end
|
|
172
|
+
return data, status_code, headers
|
|
173
|
+
end
|
|
174
|
+
|
|
99
175
|
# Attach security findings to a case.
|
|
100
176
|
#
|
|
101
177
|
# @see #attach_case_with_http_info
|
|
@@ -237,6 +313,74 @@ module DatadogAPIClient::V2
|
|
|
237
313
|
return data, status_code, headers
|
|
238
314
|
end
|
|
239
315
|
|
|
316
|
+
# Attach security findings to a Linear issue.
|
|
317
|
+
#
|
|
318
|
+
# @see #attach_linear_issue_with_http_info
|
|
319
|
+
def attach_linear_issue(body, opts = {})
|
|
320
|
+
data, _status_code, _headers = attach_linear_issue_with_http_info(body, opts)
|
|
321
|
+
data
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Attach security findings to a Linear issue.
|
|
325
|
+
#
|
|
326
|
+
# Attach security findings to a Linear issue by providing the Linear issue URL.
|
|
327
|
+
# You can attach up to 50 security findings per Linear issue. If the Linear issue is not linked to any case, this operation will create a case for the security findings and link the Linear issue to the newly created case. Security findings that are already attached to another Linear issue will be detached from their previous Linear issue and attached to the specified Linear issue.
|
|
328
|
+
#
|
|
329
|
+
# @param body [AttachLinearIssueRequest]
|
|
330
|
+
# @param opts [Hash] the optional parameters
|
|
331
|
+
# @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers
|
|
332
|
+
def attach_linear_issue_with_http_info(body, opts = {})
|
|
333
|
+
|
|
334
|
+
if @api_client.config.debugging
|
|
335
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.attach_linear_issue ...'
|
|
336
|
+
end
|
|
337
|
+
# verify the required parameter 'body' is set
|
|
338
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
339
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.attach_linear_issue"
|
|
340
|
+
end
|
|
341
|
+
# resource path
|
|
342
|
+
local_var_path = '/api/v2/security/findings/linear_issues'
|
|
343
|
+
|
|
344
|
+
# query parameters
|
|
345
|
+
query_params = opts[:query_params] || {}
|
|
346
|
+
|
|
347
|
+
# header parameters
|
|
348
|
+
header_params = opts[:header_params] || {}
|
|
349
|
+
# HTTP header 'Accept' (if needed)
|
|
350
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
351
|
+
# HTTP header 'Content-Type'
|
|
352
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
353
|
+
|
|
354
|
+
# form parameters
|
|
355
|
+
form_params = opts[:form_params] || {}
|
|
356
|
+
|
|
357
|
+
# http body (model)
|
|
358
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
359
|
+
|
|
360
|
+
# return_type
|
|
361
|
+
return_type = opts[:debug_return_type] || 'FindingCaseResponse'
|
|
362
|
+
|
|
363
|
+
# auth_names
|
|
364
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
365
|
+
|
|
366
|
+
new_options = opts.merge(
|
|
367
|
+
:operation => :attach_linear_issue,
|
|
368
|
+
:header_params => header_params,
|
|
369
|
+
:query_params => query_params,
|
|
370
|
+
:form_params => form_params,
|
|
371
|
+
:body => post_body,
|
|
372
|
+
:auth_names => auth_names,
|
|
373
|
+
:return_type => return_type,
|
|
374
|
+
:api_version => "V2"
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
378
|
+
if @api_client.config.debugging
|
|
379
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#attach_linear_issue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
380
|
+
end
|
|
381
|
+
return data, status_code, headers
|
|
382
|
+
end
|
|
383
|
+
|
|
240
384
|
# Attach security findings to a ServiceNow ticket.
|
|
241
385
|
#
|
|
242
386
|
# @see #attach_service_now_ticket_with_http_info
|
|
@@ -254,12 +398,6 @@ module DatadogAPIClient::V2
|
|
|
254
398
|
# @param opts [Hash] the optional parameters
|
|
255
399
|
# @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers
|
|
256
400
|
def attach_service_now_ticket_with_http_info(body, opts = {})
|
|
257
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.attach_service_now_ticket".to_sym]
|
|
258
|
-
if unstable_enabled
|
|
259
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.attach_service_now_ticket")
|
|
260
|
-
else
|
|
261
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.attach_service_now_ticket"))
|
|
262
|
-
end
|
|
263
401
|
|
|
264
402
|
if @api_client.config.debugging
|
|
265
403
|
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.attach_service_now_ticket ...'
|
|
@@ -888,8 +1026,9 @@ module DatadogAPIClient::V2
|
|
|
888
1026
|
#
|
|
889
1027
|
# Export multiple security monitoring resources to Terraform, packaged as a zip archive.
|
|
890
1028
|
# The `resource_type` path parameter specifies the type of resources to export
|
|
891
|
-
# and must be one of `suppressions` or `
|
|
1029
|
+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
|
|
892
1030
|
# A maximum of 1000 resources can be exported in a single request.
|
|
1031
|
+
# For `rules`, partner rules cannot be exported and return a 400 error.
|
|
893
1032
|
#
|
|
894
1033
|
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
|
|
895
1034
|
# @param body [SecurityMonitoringTerraformBulkExportRequest] The resource IDs to export.
|
|
@@ -911,7 +1050,7 @@ module DatadogAPIClient::V2
|
|
|
911
1050
|
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.bulk_export_security_monitoring_terraform_resources"
|
|
912
1051
|
end
|
|
913
1052
|
# verify enum value
|
|
914
|
-
allowable_values = ['suppressions', 'critical_assets']
|
|
1053
|
+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
|
|
915
1054
|
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
|
|
916
1055
|
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
|
|
917
1056
|
end
|
|
@@ -1262,7 +1401,7 @@ module DatadogAPIClient::V2
|
|
|
1262
1401
|
#
|
|
1263
1402
|
# Convert a security monitoring resource that doesn't (yet) exist from JSON to Terraform.
|
|
1264
1403
|
# The `resource_type` path parameter specifies the type of resource to convert
|
|
1265
|
-
# and must be one of `suppressions` or `
|
|
1404
|
+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
|
|
1266
1405
|
#
|
|
1267
1406
|
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
|
|
1268
1407
|
# @param body [SecurityMonitoringTerraformConvertRequest] The resource JSON to convert.
|
|
@@ -1284,7 +1423,7 @@ module DatadogAPIClient::V2
|
|
|
1284
1423
|
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.convert_security_monitoring_terraform_resource"
|
|
1285
1424
|
end
|
|
1286
1425
|
# verify enum value
|
|
1287
|
-
allowable_values = ['suppressions', 'critical_assets']
|
|
1426
|
+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
|
|
1288
1427
|
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
|
|
1289
1428
|
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
|
|
1290
1429
|
end
|
|
@@ -1612,6 +1751,74 @@ module DatadogAPIClient::V2
|
|
|
1612
1751
|
return data, status_code, headers
|
|
1613
1752
|
end
|
|
1614
1753
|
|
|
1754
|
+
# Create Linear issues for security findings.
|
|
1755
|
+
#
|
|
1756
|
+
# @see #create_linear_issues_with_http_info
|
|
1757
|
+
def create_linear_issues(body, opts = {})
|
|
1758
|
+
data, _status_code, _headers = create_linear_issues_with_http_info(body, opts)
|
|
1759
|
+
data
|
|
1760
|
+
end
|
|
1761
|
+
|
|
1762
|
+
# Create Linear issues for security findings.
|
|
1763
|
+
#
|
|
1764
|
+
# Create Linear issues for security findings.
|
|
1765
|
+
# This operation creates a case in Datadog and a Linear issue linked to that case for bidirectional sync between Datadog and Linear. You can create up to 50 Linear issues per request and associate up to 50 security findings per Linear issue. Security findings that are already attached to another Linear issue will be detached from their previous Linear issue and attached to the newly created Linear issue.
|
|
1766
|
+
#
|
|
1767
|
+
# @param body [CreateLinearIssueRequestArray]
|
|
1768
|
+
# @param opts [Hash] the optional parameters
|
|
1769
|
+
# @return [Array<(FindingCaseResponseArray, Integer, Hash)>] FindingCaseResponseArray data, response status code and response headers
|
|
1770
|
+
def create_linear_issues_with_http_info(body, opts = {})
|
|
1771
|
+
|
|
1772
|
+
if @api_client.config.debugging
|
|
1773
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_linear_issues ...'
|
|
1774
|
+
end
|
|
1775
|
+
# verify the required parameter 'body' is set
|
|
1776
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1777
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_linear_issues"
|
|
1778
|
+
end
|
|
1779
|
+
# resource path
|
|
1780
|
+
local_var_path = '/api/v2/security/findings/linear_issues'
|
|
1781
|
+
|
|
1782
|
+
# query parameters
|
|
1783
|
+
query_params = opts[:query_params] || {}
|
|
1784
|
+
|
|
1785
|
+
# header parameters
|
|
1786
|
+
header_params = opts[:header_params] || {}
|
|
1787
|
+
# HTTP header 'Accept' (if needed)
|
|
1788
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1789
|
+
# HTTP header 'Content-Type'
|
|
1790
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
1791
|
+
|
|
1792
|
+
# form parameters
|
|
1793
|
+
form_params = opts[:form_params] || {}
|
|
1794
|
+
|
|
1795
|
+
# http body (model)
|
|
1796
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1797
|
+
|
|
1798
|
+
# return_type
|
|
1799
|
+
return_type = opts[:debug_return_type] || 'FindingCaseResponseArray'
|
|
1800
|
+
|
|
1801
|
+
# auth_names
|
|
1802
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1803
|
+
|
|
1804
|
+
new_options = opts.merge(
|
|
1805
|
+
:operation => :create_linear_issues,
|
|
1806
|
+
:header_params => header_params,
|
|
1807
|
+
:query_params => query_params,
|
|
1808
|
+
:form_params => form_params,
|
|
1809
|
+
:body => post_body,
|
|
1810
|
+
:auth_names => auth_names,
|
|
1811
|
+
:return_type => return_type,
|
|
1812
|
+
:api_version => "V2"
|
|
1813
|
+
)
|
|
1814
|
+
|
|
1815
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
1816
|
+
if @api_client.config.debugging
|
|
1817
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_linear_issues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1818
|
+
end
|
|
1819
|
+
return data, status_code, headers
|
|
1820
|
+
end
|
|
1821
|
+
|
|
1615
1822
|
# Subscribe to sample log generation.
|
|
1616
1823
|
#
|
|
1617
1824
|
# @see #create_sample_log_generation_subscription_with_http_info
|
|
@@ -1761,32 +1968,38 @@ module DatadogAPIClient::V2
|
|
|
1761
1968
|
return data, status_code, headers
|
|
1762
1969
|
end
|
|
1763
1970
|
|
|
1764
|
-
# Create a
|
|
1971
|
+
# Create a due date rule.
|
|
1765
1972
|
#
|
|
1766
|
-
# @see #
|
|
1767
|
-
def
|
|
1768
|
-
data, _status_code, _headers =
|
|
1973
|
+
# @see #create_security_findings_automation_due_date_rule_with_http_info
|
|
1974
|
+
def create_security_findings_automation_due_date_rule(body, opts = {})
|
|
1975
|
+
data, _status_code, _headers = create_security_findings_automation_due_date_rule_with_http_info(body, opts)
|
|
1769
1976
|
data
|
|
1770
1977
|
end
|
|
1771
1978
|
|
|
1772
|
-
# Create a
|
|
1979
|
+
# Create a due date rule.
|
|
1773
1980
|
#
|
|
1774
|
-
# Create a new
|
|
1981
|
+
# Create a new due date rule for the current organization.
|
|
1775
1982
|
#
|
|
1776
|
-
# @param body [
|
|
1983
|
+
# @param body [DueDateRuleCreateRequest]
|
|
1777
1984
|
# @param opts [Hash] the optional parameters
|
|
1778
|
-
# @return [Array<(
|
|
1779
|
-
def
|
|
1985
|
+
# @return [Array<(DueDateRuleResponse, Integer, Hash)>] DueDateRuleResponse data, response status code and response headers
|
|
1986
|
+
def create_security_findings_automation_due_date_rule_with_http_info(body, opts = {})
|
|
1987
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_security_findings_automation_due_date_rule".to_sym]
|
|
1988
|
+
if unstable_enabled
|
|
1989
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_security_findings_automation_due_date_rule")
|
|
1990
|
+
else
|
|
1991
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_security_findings_automation_due_date_rule"))
|
|
1992
|
+
end
|
|
1780
1993
|
|
|
1781
1994
|
if @api_client.config.debugging
|
|
1782
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
1995
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_findings_automation_due_date_rule ...'
|
|
1783
1996
|
end
|
|
1784
1997
|
# verify the required parameter 'body' is set
|
|
1785
1998
|
if @api_client.config.client_side_validation && body.nil?
|
|
1786
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.
|
|
1999
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_findings_automation_due_date_rule"
|
|
1787
2000
|
end
|
|
1788
2001
|
# resource path
|
|
1789
|
-
local_var_path = '/api/v2/
|
|
2002
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules'
|
|
1790
2003
|
|
|
1791
2004
|
# query parameters
|
|
1792
2005
|
query_params = opts[:query_params] || {}
|
|
@@ -1805,13 +2018,13 @@ module DatadogAPIClient::V2
|
|
|
1805
2018
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1806
2019
|
|
|
1807
2020
|
# return_type
|
|
1808
|
-
return_type = opts[:debug_return_type] || '
|
|
2021
|
+
return_type = opts[:debug_return_type] || 'DueDateRuleResponse'
|
|
1809
2022
|
|
|
1810
2023
|
# auth_names
|
|
1811
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
2024
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1812
2025
|
|
|
1813
2026
|
new_options = opts.merge(
|
|
1814
|
-
:operation => :
|
|
2027
|
+
:operation => :create_security_findings_automation_due_date_rule,
|
|
1815
2028
|
:header_params => header_params,
|
|
1816
2029
|
:query_params => query_params,
|
|
1817
2030
|
:form_params => form_params,
|
|
@@ -1823,44 +2036,43 @@ module DatadogAPIClient::V2
|
|
|
1823
2036
|
|
|
1824
2037
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
1825
2038
|
if @api_client.config.debugging
|
|
1826
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
2039
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_findings_automation_due_date_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1827
2040
|
end
|
|
1828
2041
|
return data, status_code, headers
|
|
1829
2042
|
end
|
|
1830
2043
|
|
|
1831
|
-
# Create a
|
|
2044
|
+
# Create a mute rule.
|
|
1832
2045
|
#
|
|
1833
|
-
# @see #
|
|
1834
|
-
def
|
|
1835
|
-
data, _status_code, _headers =
|
|
2046
|
+
# @see #create_security_findings_automation_mute_rule_with_http_info
|
|
2047
|
+
def create_security_findings_automation_mute_rule(body, opts = {})
|
|
2048
|
+
data, _status_code, _headers = create_security_findings_automation_mute_rule_with_http_info(body, opts)
|
|
1836
2049
|
data
|
|
1837
2050
|
end
|
|
1838
2051
|
|
|
1839
|
-
# Create a
|
|
2052
|
+
# Create a mute rule.
|
|
1840
2053
|
#
|
|
1841
|
-
# Create a new
|
|
1842
|
-
# indexes, and a search query that can be referenced from detection rules.
|
|
2054
|
+
# Create a new mute rule for the current organization.
|
|
1843
2055
|
#
|
|
1844
|
-
# @param body [
|
|
2056
|
+
# @param body [MuteRuleCreateRequest]
|
|
1845
2057
|
# @param opts [Hash] the optional parameters
|
|
1846
|
-
# @return [Array<(
|
|
1847
|
-
def
|
|
1848
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.
|
|
2058
|
+
# @return [Array<(MuteRuleResponse, Integer, Hash)>] MuteRuleResponse data, response status code and response headers
|
|
2059
|
+
def create_security_findings_automation_mute_rule_with_http_info(body, opts = {})
|
|
2060
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_security_findings_automation_mute_rule".to_sym]
|
|
1849
2061
|
if unstable_enabled
|
|
1850
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
2062
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_security_findings_automation_mute_rule")
|
|
1851
2063
|
else
|
|
1852
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
2064
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_security_findings_automation_mute_rule"))
|
|
1853
2065
|
end
|
|
1854
2066
|
|
|
1855
2067
|
if @api_client.config.debugging
|
|
1856
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
2068
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_findings_automation_mute_rule ...'
|
|
1857
2069
|
end
|
|
1858
2070
|
# verify the required parameter 'body' is set
|
|
1859
2071
|
if @api_client.config.client_side_validation && body.nil?
|
|
1860
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.
|
|
2072
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_findings_automation_mute_rule"
|
|
1861
2073
|
end
|
|
1862
2074
|
# resource path
|
|
1863
|
-
local_var_path = '/api/v2/
|
|
2075
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules'
|
|
1864
2076
|
|
|
1865
2077
|
# query parameters
|
|
1866
2078
|
query_params = opts[:query_params] || {}
|
|
@@ -1879,13 +2091,13 @@ module DatadogAPIClient::V2
|
|
|
1879
2091
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1880
2092
|
|
|
1881
2093
|
# return_type
|
|
1882
|
-
return_type = opts[:debug_return_type] || '
|
|
2094
|
+
return_type = opts[:debug_return_type] || 'MuteRuleResponse'
|
|
1883
2095
|
|
|
1884
2096
|
# auth_names
|
|
1885
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
2097
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1886
2098
|
|
|
1887
2099
|
new_options = opts.merge(
|
|
1888
|
-
:operation => :
|
|
2100
|
+
:operation => :create_security_findings_automation_mute_rule,
|
|
1889
2101
|
:header_params => header_params,
|
|
1890
2102
|
:query_params => query_params,
|
|
1891
2103
|
:form_params => form_params,
|
|
@@ -1897,45 +2109,43 @@ module DatadogAPIClient::V2
|
|
|
1897
2109
|
|
|
1898
2110
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
1899
2111
|
if @api_client.config.debugging
|
|
1900
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
2112
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_findings_automation_mute_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1901
2113
|
end
|
|
1902
2114
|
return data, status_code, headers
|
|
1903
2115
|
end
|
|
1904
2116
|
|
|
1905
|
-
# Create
|
|
2117
|
+
# Create a ticket creation rule.
|
|
1906
2118
|
#
|
|
1907
|
-
# @see #
|
|
1908
|
-
def
|
|
1909
|
-
data, _status_code, _headers =
|
|
2119
|
+
# @see #create_security_findings_automation_ticket_creation_rule_with_http_info
|
|
2120
|
+
def create_security_findings_automation_ticket_creation_rule(body, opts = {})
|
|
2121
|
+
data, _status_code, _headers = create_security_findings_automation_ticket_creation_rule_with_http_info(body, opts)
|
|
1910
2122
|
data
|
|
1911
2123
|
end
|
|
1912
2124
|
|
|
1913
|
-
# Create
|
|
2125
|
+
# Create a ticket creation rule.
|
|
1914
2126
|
#
|
|
1915
|
-
# Create a new
|
|
1916
|
-
# source. The credentials provided in `secrets` are validated against the source before the configuration
|
|
1917
|
-
# is stored and never returned in subsequent responses.
|
|
2127
|
+
# Create a new ticket creation rule for the current organization.
|
|
1918
2128
|
#
|
|
1919
|
-
# @param body [
|
|
2129
|
+
# @param body [TicketCreationRuleCreateRequest]
|
|
1920
2130
|
# @param opts [Hash] the optional parameters
|
|
1921
|
-
# @return [Array<(
|
|
1922
|
-
def
|
|
1923
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.
|
|
2131
|
+
# @return [Array<(TicketCreationRuleResponse, Integer, Hash)>] TicketCreationRuleResponse data, response status code and response headers
|
|
2132
|
+
def create_security_findings_automation_ticket_creation_rule_with_http_info(body, opts = {})
|
|
2133
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_security_findings_automation_ticket_creation_rule".to_sym]
|
|
1924
2134
|
if unstable_enabled
|
|
1925
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
2135
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_security_findings_automation_ticket_creation_rule")
|
|
1926
2136
|
else
|
|
1927
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
2137
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_security_findings_automation_ticket_creation_rule"))
|
|
1928
2138
|
end
|
|
1929
2139
|
|
|
1930
2140
|
if @api_client.config.debugging
|
|
1931
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
2141
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_findings_automation_ticket_creation_rule ...'
|
|
1932
2142
|
end
|
|
1933
2143
|
# verify the required parameter 'body' is set
|
|
1934
2144
|
if @api_client.config.client_side_validation && body.nil?
|
|
1935
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.
|
|
2145
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_findings_automation_ticket_creation_rule"
|
|
1936
2146
|
end
|
|
1937
2147
|
# resource path
|
|
1938
|
-
local_var_path = '/api/v2/
|
|
2148
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules'
|
|
1939
2149
|
|
|
1940
2150
|
# query parameters
|
|
1941
2151
|
query_params = opts[:query_params] || {}
|
|
@@ -1954,13 +2164,13 @@ module DatadogAPIClient::V2
|
|
|
1954
2164
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1955
2165
|
|
|
1956
2166
|
# return_type
|
|
1957
|
-
return_type = opts[:debug_return_type] || '
|
|
2167
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse'
|
|
1958
2168
|
|
|
1959
2169
|
# auth_names
|
|
1960
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
2170
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1961
2171
|
|
|
1962
2172
|
new_options = opts.merge(
|
|
1963
|
-
:operation => :
|
|
2173
|
+
:operation => :create_security_findings_automation_ticket_creation_rule,
|
|
1964
2174
|
:header_params => header_params,
|
|
1965
2175
|
:query_params => query_params,
|
|
1966
2176
|
:form_params => form_params,
|
|
@@ -1972,37 +2182,37 @@ module DatadogAPIClient::V2
|
|
|
1972
2182
|
|
|
1973
2183
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
1974
2184
|
if @api_client.config.debugging
|
|
1975
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
2185
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_findings_automation_ticket_creation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1976
2186
|
end
|
|
1977
2187
|
return data, status_code, headers
|
|
1978
2188
|
end
|
|
1979
2189
|
|
|
1980
|
-
# Create a
|
|
2190
|
+
# Create a critical asset.
|
|
1981
2191
|
#
|
|
1982
|
-
# @see #
|
|
1983
|
-
def
|
|
1984
|
-
data, _status_code, _headers =
|
|
2192
|
+
# @see #create_security_monitoring_critical_asset_with_http_info
|
|
2193
|
+
def create_security_monitoring_critical_asset(body, opts = {})
|
|
2194
|
+
data, _status_code, _headers = create_security_monitoring_critical_asset_with_http_info(body, opts)
|
|
1985
2195
|
data
|
|
1986
2196
|
end
|
|
1987
2197
|
|
|
1988
|
-
# Create a
|
|
2198
|
+
# Create a critical asset.
|
|
1989
2199
|
#
|
|
1990
|
-
# Create a
|
|
2200
|
+
# Create a new critical asset.
|
|
1991
2201
|
#
|
|
1992
|
-
# @param body [
|
|
2202
|
+
# @param body [SecurityMonitoringCriticalAssetCreateRequest] The definition of the new critical asset.
|
|
1993
2203
|
# @param opts [Hash] the optional parameters
|
|
1994
|
-
# @return [Array<(
|
|
1995
|
-
def
|
|
2204
|
+
# @return [Array<(SecurityMonitoringCriticalAssetResponse, Integer, Hash)>] SecurityMonitoringCriticalAssetResponse data, response status code and response headers
|
|
2205
|
+
def create_security_monitoring_critical_asset_with_http_info(body, opts = {})
|
|
1996
2206
|
|
|
1997
2207
|
if @api_client.config.debugging
|
|
1998
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
2208
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_monitoring_critical_asset ...'
|
|
1999
2209
|
end
|
|
2000
2210
|
# verify the required parameter 'body' is set
|
|
2001
2211
|
if @api_client.config.client_side_validation && body.nil?
|
|
2002
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.
|
|
2212
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_monitoring_critical_asset"
|
|
2003
2213
|
end
|
|
2004
2214
|
# resource path
|
|
2005
|
-
local_var_path = '/api/v2/security_monitoring/
|
|
2215
|
+
local_var_path = '/api/v2/security_monitoring/configuration/critical_assets'
|
|
2006
2216
|
|
|
2007
2217
|
# query parameters
|
|
2008
2218
|
query_params = opts[:query_params] || {}
|
|
@@ -2021,13 +2231,229 @@ module DatadogAPIClient::V2
|
|
|
2021
2231
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2022
2232
|
|
|
2023
2233
|
# return_type
|
|
2024
|
-
return_type = opts[:debug_return_type] || '
|
|
2234
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringCriticalAssetResponse'
|
|
2025
2235
|
|
|
2026
2236
|
# auth_names
|
|
2027
2237
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2028
2238
|
|
|
2029
2239
|
new_options = opts.merge(
|
|
2030
|
-
:operation => :
|
|
2240
|
+
:operation => :create_security_monitoring_critical_asset,
|
|
2241
|
+
:header_params => header_params,
|
|
2242
|
+
:query_params => query_params,
|
|
2243
|
+
:form_params => form_params,
|
|
2244
|
+
:body => post_body,
|
|
2245
|
+
:auth_names => auth_names,
|
|
2246
|
+
:return_type => return_type,
|
|
2247
|
+
:api_version => "V2"
|
|
2248
|
+
)
|
|
2249
|
+
|
|
2250
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
2251
|
+
if @api_client.config.debugging
|
|
2252
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_monitoring_critical_asset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2253
|
+
end
|
|
2254
|
+
return data, status_code, headers
|
|
2255
|
+
end
|
|
2256
|
+
|
|
2257
|
+
# Create a dataset.
|
|
2258
|
+
#
|
|
2259
|
+
# @see #create_security_monitoring_dataset_with_http_info
|
|
2260
|
+
def create_security_monitoring_dataset(body, opts = {})
|
|
2261
|
+
data, _status_code, _headers = create_security_monitoring_dataset_with_http_info(body, opts)
|
|
2262
|
+
data
|
|
2263
|
+
end
|
|
2264
|
+
|
|
2265
|
+
# Create a dataset.
|
|
2266
|
+
#
|
|
2267
|
+
# Create a new Cloud SIEM dataset. A dataset bundles a data source, a set of
|
|
2268
|
+
# indexes, and a search query that can be referenced from detection rules.
|
|
2269
|
+
#
|
|
2270
|
+
# @param body [SecurityMonitoringDatasetCreateRequest]
|
|
2271
|
+
# @param opts [Hash] the optional parameters
|
|
2272
|
+
# @return [Array<(SecurityMonitoringDatasetCreateResponse, Integer, Hash)>] SecurityMonitoringDatasetCreateResponse data, response status code and response headers
|
|
2273
|
+
def create_security_monitoring_dataset_with_http_info(body, opts = {})
|
|
2274
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_security_monitoring_dataset".to_sym]
|
|
2275
|
+
if unstable_enabled
|
|
2276
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_security_monitoring_dataset")
|
|
2277
|
+
else
|
|
2278
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_security_monitoring_dataset"))
|
|
2279
|
+
end
|
|
2280
|
+
|
|
2281
|
+
if @api_client.config.debugging
|
|
2282
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_monitoring_dataset ...'
|
|
2283
|
+
end
|
|
2284
|
+
# verify the required parameter 'body' is set
|
|
2285
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2286
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_monitoring_dataset"
|
|
2287
|
+
end
|
|
2288
|
+
# resource path
|
|
2289
|
+
local_var_path = '/api/v2/security_monitoring/datasets'
|
|
2290
|
+
|
|
2291
|
+
# query parameters
|
|
2292
|
+
query_params = opts[:query_params] || {}
|
|
2293
|
+
|
|
2294
|
+
# header parameters
|
|
2295
|
+
header_params = opts[:header_params] || {}
|
|
2296
|
+
# HTTP header 'Accept' (if needed)
|
|
2297
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2298
|
+
# HTTP header 'Content-Type'
|
|
2299
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2300
|
+
|
|
2301
|
+
# form parameters
|
|
2302
|
+
form_params = opts[:form_params] || {}
|
|
2303
|
+
|
|
2304
|
+
# http body (model)
|
|
2305
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2306
|
+
|
|
2307
|
+
# return_type
|
|
2308
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringDatasetCreateResponse'
|
|
2309
|
+
|
|
2310
|
+
# auth_names
|
|
2311
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2312
|
+
|
|
2313
|
+
new_options = opts.merge(
|
|
2314
|
+
:operation => :create_security_monitoring_dataset,
|
|
2315
|
+
:header_params => header_params,
|
|
2316
|
+
:query_params => query_params,
|
|
2317
|
+
:form_params => form_params,
|
|
2318
|
+
:body => post_body,
|
|
2319
|
+
:auth_names => auth_names,
|
|
2320
|
+
:return_type => return_type,
|
|
2321
|
+
:api_version => "V2"
|
|
2322
|
+
)
|
|
2323
|
+
|
|
2324
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
2325
|
+
if @api_client.config.debugging
|
|
2326
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_monitoring_dataset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2327
|
+
end
|
|
2328
|
+
return data, status_code, headers
|
|
2329
|
+
end
|
|
2330
|
+
|
|
2331
|
+
# Create an entity context sync configuration.
|
|
2332
|
+
#
|
|
2333
|
+
# @see #create_security_monitoring_integration_config_with_http_info
|
|
2334
|
+
def create_security_monitoring_integration_config(body, opts = {})
|
|
2335
|
+
data, _status_code, _headers = create_security_monitoring_integration_config_with_http_info(body, opts)
|
|
2336
|
+
data
|
|
2337
|
+
end
|
|
2338
|
+
|
|
2339
|
+
# Create an entity context sync configuration.
|
|
2340
|
+
#
|
|
2341
|
+
# Create a new entity context sync configuration so Cloud SIEM can ingest entities from an external
|
|
2342
|
+
# source. The credentials provided in `secrets` are validated against the source before the configuration
|
|
2343
|
+
# is stored and never returned in subsequent responses.
|
|
2344
|
+
#
|
|
2345
|
+
# @param body [SecurityMonitoringIntegrationConfigCreateRequest] The definition of the new integration configuration.
|
|
2346
|
+
# @param opts [Hash] the optional parameters
|
|
2347
|
+
# @return [Array<(SecurityMonitoringIntegrationConfigResponse, Integer, Hash)>] SecurityMonitoringIntegrationConfigResponse data, response status code and response headers
|
|
2348
|
+
def create_security_monitoring_integration_config_with_http_info(body, opts = {})
|
|
2349
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_security_monitoring_integration_config".to_sym]
|
|
2350
|
+
if unstable_enabled
|
|
2351
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_security_monitoring_integration_config")
|
|
2352
|
+
else
|
|
2353
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_security_monitoring_integration_config"))
|
|
2354
|
+
end
|
|
2355
|
+
|
|
2356
|
+
if @api_client.config.debugging
|
|
2357
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_monitoring_integration_config ...'
|
|
2358
|
+
end
|
|
2359
|
+
# verify the required parameter 'body' is set
|
|
2360
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2361
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_monitoring_integration_config"
|
|
2362
|
+
end
|
|
2363
|
+
# resource path
|
|
2364
|
+
local_var_path = '/api/v2/security_monitoring/configuration/integration_config'
|
|
2365
|
+
|
|
2366
|
+
# query parameters
|
|
2367
|
+
query_params = opts[:query_params] || {}
|
|
2368
|
+
|
|
2369
|
+
# header parameters
|
|
2370
|
+
header_params = opts[:header_params] || {}
|
|
2371
|
+
# HTTP header 'Accept' (if needed)
|
|
2372
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2373
|
+
# HTTP header 'Content-Type'
|
|
2374
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2375
|
+
|
|
2376
|
+
# form parameters
|
|
2377
|
+
form_params = opts[:form_params] || {}
|
|
2378
|
+
|
|
2379
|
+
# http body (model)
|
|
2380
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2381
|
+
|
|
2382
|
+
# return_type
|
|
2383
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringIntegrationConfigResponse'
|
|
2384
|
+
|
|
2385
|
+
# auth_names
|
|
2386
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2387
|
+
|
|
2388
|
+
new_options = opts.merge(
|
|
2389
|
+
:operation => :create_security_monitoring_integration_config,
|
|
2390
|
+
:header_params => header_params,
|
|
2391
|
+
:query_params => query_params,
|
|
2392
|
+
:form_params => form_params,
|
|
2393
|
+
:body => post_body,
|
|
2394
|
+
:auth_names => auth_names,
|
|
2395
|
+
:return_type => return_type,
|
|
2396
|
+
:api_version => "V2"
|
|
2397
|
+
)
|
|
2398
|
+
|
|
2399
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
2400
|
+
if @api_client.config.debugging
|
|
2401
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#create_security_monitoring_integration_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2402
|
+
end
|
|
2403
|
+
return data, status_code, headers
|
|
2404
|
+
end
|
|
2405
|
+
|
|
2406
|
+
# Create a detection rule.
|
|
2407
|
+
#
|
|
2408
|
+
# @see #create_security_monitoring_rule_with_http_info
|
|
2409
|
+
def create_security_monitoring_rule(body, opts = {})
|
|
2410
|
+
data, _status_code, _headers = create_security_monitoring_rule_with_http_info(body, opts)
|
|
2411
|
+
data
|
|
2412
|
+
end
|
|
2413
|
+
|
|
2414
|
+
# Create a detection rule.
|
|
2415
|
+
#
|
|
2416
|
+
# Create a detection rule.
|
|
2417
|
+
#
|
|
2418
|
+
# @param body [SecurityMonitoringRuleCreatePayload]
|
|
2419
|
+
# @param opts [Hash] the optional parameters
|
|
2420
|
+
# @return [Array<(SecurityMonitoringRuleResponse, Integer, Hash)>] SecurityMonitoringRuleResponse data, response status code and response headers
|
|
2421
|
+
def create_security_monitoring_rule_with_http_info(body, opts = {})
|
|
2422
|
+
|
|
2423
|
+
if @api_client.config.debugging
|
|
2424
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_security_monitoring_rule ...'
|
|
2425
|
+
end
|
|
2426
|
+
# verify the required parameter 'body' is set
|
|
2427
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2428
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.create_security_monitoring_rule"
|
|
2429
|
+
end
|
|
2430
|
+
# resource path
|
|
2431
|
+
local_var_path = '/api/v2/security_monitoring/rules'
|
|
2432
|
+
|
|
2433
|
+
# query parameters
|
|
2434
|
+
query_params = opts[:query_params] || {}
|
|
2435
|
+
|
|
2436
|
+
# header parameters
|
|
2437
|
+
header_params = opts[:header_params] || {}
|
|
2438
|
+
# HTTP header 'Accept' (if needed)
|
|
2439
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2440
|
+
# HTTP header 'Content-Type'
|
|
2441
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2442
|
+
|
|
2443
|
+
# form parameters
|
|
2444
|
+
form_params = opts[:form_params] || {}
|
|
2445
|
+
|
|
2446
|
+
# http body (model)
|
|
2447
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2448
|
+
|
|
2449
|
+
# return_type
|
|
2450
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringRuleResponse'
|
|
2451
|
+
|
|
2452
|
+
# auth_names
|
|
2453
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2454
|
+
|
|
2455
|
+
new_options = opts.merge(
|
|
2456
|
+
:operation => :create_security_monitoring_rule,
|
|
2031
2457
|
:header_params => header_params,
|
|
2032
2458
|
:query_params => query_params,
|
|
2033
2459
|
:form_params => form_params,
|
|
@@ -2128,12 +2554,6 @@ module DatadogAPIClient::V2
|
|
|
2128
2554
|
# @param opts [Hash] the optional parameters
|
|
2129
2555
|
# @return [Array<(FindingCaseResponseArray, Integer, Hash)>] FindingCaseResponseArray data, response status code and response headers
|
|
2130
2556
|
def create_service_now_tickets_with_http_info(body, opts = {})
|
|
2131
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.create_service_now_tickets".to_sym]
|
|
2132
|
-
if unstable_enabled
|
|
2133
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_service_now_tickets")
|
|
2134
|
-
else
|
|
2135
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_service_now_tickets"))
|
|
2136
|
-
end
|
|
2137
2557
|
|
|
2138
2558
|
if @api_client.config.debugging
|
|
2139
2559
|
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_service_now_tickets ...'
|
|
@@ -2497,7 +2917,78 @@ module DatadogAPIClient::V2
|
|
|
2497
2917
|
fail ArgumentError, "Missing the required parameter 'content_pack_id' when calling SecurityMonitoringAPI.deactivate_content_pack"
|
|
2498
2918
|
end
|
|
2499
2919
|
# resource path
|
|
2500
|
-
local_var_path = '/api/v2/security_monitoring/content_packs/{content_pack_id}/deactivate'.sub('{content_pack_id}', CGI.escape(content_pack_id.to_s).gsub('%2F', '/'))
|
|
2920
|
+
local_var_path = '/api/v2/security_monitoring/content_packs/{content_pack_id}/deactivate'.sub('{content_pack_id}', CGI.escape(content_pack_id.to_s).gsub('%2F', '/'))
|
|
2921
|
+
|
|
2922
|
+
# query parameters
|
|
2923
|
+
query_params = opts[:query_params] || {}
|
|
2924
|
+
|
|
2925
|
+
# header parameters
|
|
2926
|
+
header_params = opts[:header_params] || {}
|
|
2927
|
+
# HTTP header 'Accept' (if needed)
|
|
2928
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
2929
|
+
|
|
2930
|
+
# form parameters
|
|
2931
|
+
form_params = opts[:form_params] || {}
|
|
2932
|
+
|
|
2933
|
+
# http body (model)
|
|
2934
|
+
post_body = opts[:debug_body]
|
|
2935
|
+
|
|
2936
|
+
# return_type
|
|
2937
|
+
return_type = opts[:debug_return_type]
|
|
2938
|
+
|
|
2939
|
+
# auth_names
|
|
2940
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2941
|
+
|
|
2942
|
+
new_options = opts.merge(
|
|
2943
|
+
:operation => :deactivate_content_pack,
|
|
2944
|
+
:header_params => header_params,
|
|
2945
|
+
:query_params => query_params,
|
|
2946
|
+
:form_params => form_params,
|
|
2947
|
+
:body => post_body,
|
|
2948
|
+
:auth_names => auth_names,
|
|
2949
|
+
:return_type => return_type,
|
|
2950
|
+
:api_version => "V2"
|
|
2951
|
+
)
|
|
2952
|
+
|
|
2953
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
2954
|
+
if @api_client.config.debugging
|
|
2955
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#deactivate_content_pack\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2956
|
+
end
|
|
2957
|
+
return data, status_code, headers
|
|
2958
|
+
end
|
|
2959
|
+
|
|
2960
|
+
# Deactivate an entity context sync integration.
|
|
2961
|
+
#
|
|
2962
|
+
# @see #deactivate_integration_with_http_info
|
|
2963
|
+
def deactivate_integration(integration_type, opts = {})
|
|
2964
|
+
data, _status_code, _headers = deactivate_integration_with_http_info(integration_type, opts)
|
|
2965
|
+
data
|
|
2966
|
+
end
|
|
2967
|
+
|
|
2968
|
+
# Deactivate an entity context sync integration.
|
|
2969
|
+
#
|
|
2970
|
+
# Deactivate all active entity context sync integrations of the given source type (for example, Entra ID).
|
|
2971
|
+
#
|
|
2972
|
+
# @param integration_type [String] The integration type to deactivate (for example, `entra_id`).
|
|
2973
|
+
# @param opts [Hash] the optional parameters
|
|
2974
|
+
# @return [Array<(SecurityMonitoringIntegrationConfigResponse, Integer, Hash)>] SecurityMonitoringIntegrationConfigResponse data, response status code and response headers
|
|
2975
|
+
def deactivate_integration_with_http_info(integration_type, opts = {})
|
|
2976
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.deactivate_integration".to_sym]
|
|
2977
|
+
if unstable_enabled
|
|
2978
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.deactivate_integration")
|
|
2979
|
+
else
|
|
2980
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.deactivate_integration"))
|
|
2981
|
+
end
|
|
2982
|
+
|
|
2983
|
+
if @api_client.config.debugging
|
|
2984
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.deactivate_integration ...'
|
|
2985
|
+
end
|
|
2986
|
+
# verify the required parameter 'integration_type' is set
|
|
2987
|
+
if @api_client.config.client_side_validation && integration_type.nil?
|
|
2988
|
+
fail ArgumentError, "Missing the required parameter 'integration_type' when calling SecurityMonitoringAPI.deactivate_integration"
|
|
2989
|
+
end
|
|
2990
|
+
# resource path
|
|
2991
|
+
local_var_path = '/api/v2/security_monitoring/configuration/integration_config/{integration_type}/deactivate'.sub('{integration_type}', CGI.escape(integration_type.to_s).gsub('%2F', '/'))
|
|
2501
2992
|
|
|
2502
2993
|
# query parameters
|
|
2503
2994
|
query_params = opts[:query_params] || {}
|
|
@@ -2505,7 +2996,7 @@ module DatadogAPIClient::V2
|
|
|
2505
2996
|
# header parameters
|
|
2506
2997
|
header_params = opts[:header_params] || {}
|
|
2507
2998
|
# HTTP header 'Accept' (if needed)
|
|
2508
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
2999
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2509
3000
|
|
|
2510
3001
|
# form parameters
|
|
2511
3002
|
form_params = opts[:form_params] || {}
|
|
@@ -2514,13 +3005,13 @@ module DatadogAPIClient::V2
|
|
|
2514
3005
|
post_body = opts[:debug_body]
|
|
2515
3006
|
|
|
2516
3007
|
# return_type
|
|
2517
|
-
return_type = opts[:debug_return_type]
|
|
3008
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringIntegrationConfigResponse'
|
|
2518
3009
|
|
|
2519
3010
|
# auth_names
|
|
2520
3011
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2521
3012
|
|
|
2522
3013
|
new_options = opts.merge(
|
|
2523
|
-
:operation => :
|
|
3014
|
+
:operation => :deactivate_integration,
|
|
2524
3015
|
:header_params => header_params,
|
|
2525
3016
|
:query_params => query_params,
|
|
2526
3017
|
:form_params => form_params,
|
|
@@ -2530,9 +3021,9 @@ module DatadogAPIClient::V2
|
|
|
2530
3021
|
:api_version => "V2"
|
|
2531
3022
|
)
|
|
2532
3023
|
|
|
2533
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
3024
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
2534
3025
|
if @api_client.config.debugging
|
|
2535
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
3026
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#deactivate_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2536
3027
|
end
|
|
2537
3028
|
return data, status_code, headers
|
|
2538
3029
|
end
|
|
@@ -2819,6 +3310,219 @@ module DatadogAPIClient::V2
|
|
|
2819
3310
|
return data, status_code, headers
|
|
2820
3311
|
end
|
|
2821
3312
|
|
|
3313
|
+
# Delete a due date rule.
|
|
3314
|
+
#
|
|
3315
|
+
# @see #delete_security_findings_automation_due_date_rule_with_http_info
|
|
3316
|
+
def delete_security_findings_automation_due_date_rule(rule_id, opts = {})
|
|
3317
|
+
delete_security_findings_automation_due_date_rule_with_http_info(rule_id, opts)
|
|
3318
|
+
nil
|
|
3319
|
+
end
|
|
3320
|
+
|
|
3321
|
+
# Delete a due date rule.
|
|
3322
|
+
#
|
|
3323
|
+
# Delete an existing due date rule by ID.
|
|
3324
|
+
#
|
|
3325
|
+
# @param rule_id [UUID] The ID of the due date rule.
|
|
3326
|
+
# @param opts [Hash] the optional parameters
|
|
3327
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3328
|
+
def delete_security_findings_automation_due_date_rule_with_http_info(rule_id, opts = {})
|
|
3329
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_security_findings_automation_due_date_rule".to_sym]
|
|
3330
|
+
if unstable_enabled
|
|
3331
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_security_findings_automation_due_date_rule")
|
|
3332
|
+
else
|
|
3333
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_security_findings_automation_due_date_rule"))
|
|
3334
|
+
end
|
|
3335
|
+
|
|
3336
|
+
if @api_client.config.debugging
|
|
3337
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_findings_automation_due_date_rule ...'
|
|
3338
|
+
end
|
|
3339
|
+
# verify the required parameter 'rule_id' is set
|
|
3340
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
3341
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_findings_automation_due_date_rule"
|
|
3342
|
+
end
|
|
3343
|
+
# resource path
|
|
3344
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
3345
|
+
|
|
3346
|
+
# query parameters
|
|
3347
|
+
query_params = opts[:query_params] || {}
|
|
3348
|
+
|
|
3349
|
+
# header parameters
|
|
3350
|
+
header_params = opts[:header_params] || {}
|
|
3351
|
+
# HTTP header 'Accept' (if needed)
|
|
3352
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
3353
|
+
|
|
3354
|
+
# form parameters
|
|
3355
|
+
form_params = opts[:form_params] || {}
|
|
3356
|
+
|
|
3357
|
+
# http body (model)
|
|
3358
|
+
post_body = opts[:debug_body]
|
|
3359
|
+
|
|
3360
|
+
# return_type
|
|
3361
|
+
return_type = opts[:debug_return_type]
|
|
3362
|
+
|
|
3363
|
+
# auth_names
|
|
3364
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
3365
|
+
|
|
3366
|
+
new_options = opts.merge(
|
|
3367
|
+
:operation => :delete_security_findings_automation_due_date_rule,
|
|
3368
|
+
:header_params => header_params,
|
|
3369
|
+
:query_params => query_params,
|
|
3370
|
+
:form_params => form_params,
|
|
3371
|
+
:body => post_body,
|
|
3372
|
+
:auth_names => auth_names,
|
|
3373
|
+
:return_type => return_type,
|
|
3374
|
+
:api_version => "V2"
|
|
3375
|
+
)
|
|
3376
|
+
|
|
3377
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
3378
|
+
if @api_client.config.debugging
|
|
3379
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_findings_automation_due_date_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3380
|
+
end
|
|
3381
|
+
return data, status_code, headers
|
|
3382
|
+
end
|
|
3383
|
+
|
|
3384
|
+
# Delete a mute rule.
|
|
3385
|
+
#
|
|
3386
|
+
# @see #delete_security_findings_automation_mute_rule_with_http_info
|
|
3387
|
+
def delete_security_findings_automation_mute_rule(rule_id, opts = {})
|
|
3388
|
+
delete_security_findings_automation_mute_rule_with_http_info(rule_id, opts)
|
|
3389
|
+
nil
|
|
3390
|
+
end
|
|
3391
|
+
|
|
3392
|
+
# Delete a mute rule.
|
|
3393
|
+
#
|
|
3394
|
+
# Delete an existing mute rule by ID.
|
|
3395
|
+
#
|
|
3396
|
+
# @param rule_id [UUID] The ID of the mute rule.
|
|
3397
|
+
# @param opts [Hash] the optional parameters
|
|
3398
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3399
|
+
def delete_security_findings_automation_mute_rule_with_http_info(rule_id, opts = {})
|
|
3400
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_security_findings_automation_mute_rule".to_sym]
|
|
3401
|
+
if unstable_enabled
|
|
3402
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_security_findings_automation_mute_rule")
|
|
3403
|
+
else
|
|
3404
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_security_findings_automation_mute_rule"))
|
|
3405
|
+
end
|
|
3406
|
+
|
|
3407
|
+
if @api_client.config.debugging
|
|
3408
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_findings_automation_mute_rule ...'
|
|
3409
|
+
end
|
|
3410
|
+
# verify the required parameter 'rule_id' is set
|
|
3411
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
3412
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_findings_automation_mute_rule"
|
|
3413
|
+
end
|
|
3414
|
+
# resource path
|
|
3415
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
3416
|
+
|
|
3417
|
+
# query parameters
|
|
3418
|
+
query_params = opts[:query_params] || {}
|
|
3419
|
+
|
|
3420
|
+
# header parameters
|
|
3421
|
+
header_params = opts[:header_params] || {}
|
|
3422
|
+
# HTTP header 'Accept' (if needed)
|
|
3423
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
3424
|
+
|
|
3425
|
+
# form parameters
|
|
3426
|
+
form_params = opts[:form_params] || {}
|
|
3427
|
+
|
|
3428
|
+
# http body (model)
|
|
3429
|
+
post_body = opts[:debug_body]
|
|
3430
|
+
|
|
3431
|
+
# return_type
|
|
3432
|
+
return_type = opts[:debug_return_type]
|
|
3433
|
+
|
|
3434
|
+
# auth_names
|
|
3435
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
3436
|
+
|
|
3437
|
+
new_options = opts.merge(
|
|
3438
|
+
:operation => :delete_security_findings_automation_mute_rule,
|
|
3439
|
+
:header_params => header_params,
|
|
3440
|
+
:query_params => query_params,
|
|
3441
|
+
:form_params => form_params,
|
|
3442
|
+
:body => post_body,
|
|
3443
|
+
:auth_names => auth_names,
|
|
3444
|
+
:return_type => return_type,
|
|
3445
|
+
:api_version => "V2"
|
|
3446
|
+
)
|
|
3447
|
+
|
|
3448
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
3449
|
+
if @api_client.config.debugging
|
|
3450
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_findings_automation_mute_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3451
|
+
end
|
|
3452
|
+
return data, status_code, headers
|
|
3453
|
+
end
|
|
3454
|
+
|
|
3455
|
+
# Delete a ticket creation rule.
|
|
3456
|
+
#
|
|
3457
|
+
# @see #delete_security_findings_automation_ticket_creation_rule_with_http_info
|
|
3458
|
+
def delete_security_findings_automation_ticket_creation_rule(rule_id, opts = {})
|
|
3459
|
+
delete_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, opts)
|
|
3460
|
+
nil
|
|
3461
|
+
end
|
|
3462
|
+
|
|
3463
|
+
# Delete a ticket creation rule.
|
|
3464
|
+
#
|
|
3465
|
+
# Delete an existing ticket creation rule by ID.
|
|
3466
|
+
#
|
|
3467
|
+
# @param rule_id [UUID] The ID of the ticket creation rule.
|
|
3468
|
+
# @param opts [Hash] the optional parameters
|
|
3469
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3470
|
+
def delete_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, opts = {})
|
|
3471
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_security_findings_automation_ticket_creation_rule".to_sym]
|
|
3472
|
+
if unstable_enabled
|
|
3473
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_security_findings_automation_ticket_creation_rule")
|
|
3474
|
+
else
|
|
3475
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_security_findings_automation_ticket_creation_rule"))
|
|
3476
|
+
end
|
|
3477
|
+
|
|
3478
|
+
if @api_client.config.debugging
|
|
3479
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.delete_security_findings_automation_ticket_creation_rule ...'
|
|
3480
|
+
end
|
|
3481
|
+
# verify the required parameter 'rule_id' is set
|
|
3482
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
3483
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.delete_security_findings_automation_ticket_creation_rule"
|
|
3484
|
+
end
|
|
3485
|
+
# resource path
|
|
3486
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
3487
|
+
|
|
3488
|
+
# query parameters
|
|
3489
|
+
query_params = opts[:query_params] || {}
|
|
3490
|
+
|
|
3491
|
+
# header parameters
|
|
3492
|
+
header_params = opts[:header_params] || {}
|
|
3493
|
+
# HTTP header 'Accept' (if needed)
|
|
3494
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
3495
|
+
|
|
3496
|
+
# form parameters
|
|
3497
|
+
form_params = opts[:form_params] || {}
|
|
3498
|
+
|
|
3499
|
+
# http body (model)
|
|
3500
|
+
post_body = opts[:debug_body]
|
|
3501
|
+
|
|
3502
|
+
# return_type
|
|
3503
|
+
return_type = opts[:debug_return_type]
|
|
3504
|
+
|
|
3505
|
+
# auth_names
|
|
3506
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
3507
|
+
|
|
3508
|
+
new_options = opts.merge(
|
|
3509
|
+
:operation => :delete_security_findings_automation_ticket_creation_rule,
|
|
3510
|
+
:header_params => header_params,
|
|
3511
|
+
:query_params => query_params,
|
|
3512
|
+
:form_params => form_params,
|
|
3513
|
+
:body => post_body,
|
|
3514
|
+
:auth_names => auth_names,
|
|
3515
|
+
:return_type => return_type,
|
|
3516
|
+
:api_version => "V2"
|
|
3517
|
+
)
|
|
3518
|
+
|
|
3519
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
3520
|
+
if @api_client.config.debugging
|
|
3521
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#delete_security_findings_automation_ticket_creation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3522
|
+
end
|
|
3523
|
+
return data, status_code, headers
|
|
3524
|
+
end
|
|
3525
|
+
|
|
2822
3526
|
# Delete a critical asset.
|
|
2823
3527
|
#
|
|
2824
3528
|
# @see #delete_security_monitoring_critical_asset_with_http_info
|
|
@@ -3656,7 +4360,8 @@ module DatadogAPIClient::V2
|
|
|
3656
4360
|
#
|
|
3657
4361
|
# Export a security monitoring resource to a Terraform configuration.
|
|
3658
4362
|
# The `resource_type` path parameter specifies the type of resource to export
|
|
3659
|
-
# and must be one of `suppressions` or `
|
|
4363
|
+
# and must be one of `suppressions`, `critical_assets`, `security_filters`, or `rules`.
|
|
4364
|
+
# For `rules`, partner rules cannot be exported and return a 400 error.
|
|
3660
4365
|
#
|
|
3661
4366
|
# @param resource_type [SecurityMonitoringTerraformResourceType] The type of security monitoring resource to export.
|
|
3662
4367
|
# @param resource_id [String] The ID of the security monitoring resource to export.
|
|
@@ -3678,7 +4383,7 @@ module DatadogAPIClient::V2
|
|
|
3678
4383
|
fail ArgumentError, "Missing the required parameter 'resource_type' when calling SecurityMonitoringAPI.export_security_monitoring_terraform_resource"
|
|
3679
4384
|
end
|
|
3680
4385
|
# verify enum value
|
|
3681
|
-
allowable_values = ['suppressions', 'critical_assets']
|
|
4386
|
+
allowable_values = ['suppressions', 'critical_assets', 'security_filters', 'rules']
|
|
3682
4387
|
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
|
|
3683
4388
|
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
|
|
3684
4389
|
end
|
|
@@ -3929,51 +4634,118 @@ module DatadogAPIClient::V2
|
|
|
3929
4634
|
return data, status_code, headers
|
|
3930
4635
|
end
|
|
3931
4636
|
|
|
3932
|
-
# Get entity context.
|
|
4637
|
+
# Get entity context.
|
|
4638
|
+
#
|
|
4639
|
+
# @see #get_entity_context_with_http_info
|
|
4640
|
+
def get_entity_context(opts = {})
|
|
4641
|
+
data, _status_code, _headers = get_entity_context_with_http_info(opts)
|
|
4642
|
+
data
|
|
4643
|
+
end
|
|
4644
|
+
|
|
4645
|
+
# Get entity context.
|
|
4646
|
+
#
|
|
4647
|
+
# Search the Cloud SIEM entity context store for entities that match a query, and return the historical
|
|
4648
|
+
# revisions of each entity in the requested time range. The endpoint can either return revisions across an
|
|
4649
|
+
# interval (`from` / `to`) or the snapshot of each entity at a single point in time (`as_of`); the two modes
|
|
4650
|
+
# are mutually exclusive.
|
|
4651
|
+
#
|
|
4652
|
+
# @param opts [Hash] the optional parameters
|
|
4653
|
+
# @option opts [String] :query A free-text query (for example, an email address or principal ID) used to filter the entities returned.
|
|
4654
|
+
# @option opts [String] :from The start of the time range to query, as an RFC3339 timestamp or a relative time (for example, `now-7d`). Defaults to `now-7d`. Ignored when `as_of` is set.
|
|
4655
|
+
# @option opts [String] :to The end of the time range to query, as an RFC3339 timestamp or a relative time (for example, `now`). Defaults to `now`. Ignored when `as_of` is set.
|
|
4656
|
+
# @option opts [String] :as_of A point in time at which to query the entity revisions, as an RFC3339 timestamp, a Unix timestamp (in seconds), or a relative time (for example, `now-1d`). When set, `from` and `to` are ignored. Cannot be combined with custom `from` / `to` values.
|
|
4657
|
+
# @option opts [Integer] :limit The maximum number of entities to return.
|
|
4658
|
+
# @option opts [String] :page_token An opaque token used to fetch the next page of results, as returned in `meta.page.next_token` of a previous response.
|
|
4659
|
+
# @return [Array<(EntityContextResponse, Integer, Hash)>] EntityContextResponse data, response status code and response headers
|
|
4660
|
+
def get_entity_context_with_http_info(opts = {})
|
|
4661
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_entity_context".to_sym]
|
|
4662
|
+
if unstable_enabled
|
|
4663
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_entity_context")
|
|
4664
|
+
else
|
|
4665
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_entity_context"))
|
|
4666
|
+
end
|
|
4667
|
+
|
|
4668
|
+
if @api_client.config.debugging
|
|
4669
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_entity_context ...'
|
|
4670
|
+
end
|
|
4671
|
+
# resource path
|
|
4672
|
+
local_var_path = '/api/v2/security_monitoring/entity_context'
|
|
4673
|
+
|
|
4674
|
+
# query parameters
|
|
4675
|
+
query_params = opts[:query_params] || {}
|
|
4676
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
4677
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
|
4678
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
4679
|
+
query_params[:'as_of'] = opts[:'as_of'] if !opts[:'as_of'].nil?
|
|
4680
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
4681
|
+
query_params[:'page_token'] = opts[:'page_token'] if !opts[:'page_token'].nil?
|
|
4682
|
+
|
|
4683
|
+
# header parameters
|
|
4684
|
+
header_params = opts[:header_params] || {}
|
|
4685
|
+
# HTTP header 'Accept' (if needed)
|
|
4686
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
4687
|
+
|
|
4688
|
+
# form parameters
|
|
4689
|
+
form_params = opts[:form_params] || {}
|
|
4690
|
+
|
|
4691
|
+
# http body (model)
|
|
4692
|
+
post_body = opts[:debug_body]
|
|
4693
|
+
|
|
4694
|
+
# return_type
|
|
4695
|
+
return_type = opts[:debug_return_type] || 'EntityContextResponse'
|
|
4696
|
+
|
|
4697
|
+
# auth_names
|
|
4698
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
4699
|
+
|
|
4700
|
+
new_options = opts.merge(
|
|
4701
|
+
:operation => :get_entity_context,
|
|
4702
|
+
:header_params => header_params,
|
|
4703
|
+
:query_params => query_params,
|
|
4704
|
+
:form_params => form_params,
|
|
4705
|
+
:body => post_body,
|
|
4706
|
+
:auth_names => auth_names,
|
|
4707
|
+
:return_type => return_type,
|
|
4708
|
+
:api_version => "V2"
|
|
4709
|
+
)
|
|
4710
|
+
|
|
4711
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
4712
|
+
if @api_client.config.debugging
|
|
4713
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_entity_context\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4714
|
+
end
|
|
4715
|
+
return data, status_code, headers
|
|
4716
|
+
end
|
|
4717
|
+
|
|
4718
|
+
# Get Entra ID Azure App Registration prerequisites.
|
|
3933
4719
|
#
|
|
3934
|
-
# @see #
|
|
3935
|
-
def
|
|
3936
|
-
data, _status_code, _headers =
|
|
4720
|
+
# @see #get_entra_id_azure_app_registrations_with_http_info
|
|
4721
|
+
def get_entra_id_azure_app_registrations(opts = {})
|
|
4722
|
+
data, _status_code, _headers = get_entra_id_azure_app_registrations_with_http_info(opts)
|
|
3937
4723
|
data
|
|
3938
4724
|
end
|
|
3939
4725
|
|
|
3940
|
-
# Get
|
|
4726
|
+
# Get Entra ID Azure App Registration prerequisites.
|
|
3941
4727
|
#
|
|
3942
|
-
#
|
|
3943
|
-
#
|
|
3944
|
-
# interval (`from` / `to`) or the snapshot of each entity at a single point in time (`as_of`); the two modes
|
|
3945
|
-
# are mutually exclusive.
|
|
4728
|
+
# Get the Azure App Registrations discovered for the organization and whether at least one of them has
|
|
4729
|
+
# resource collection enabled, which is a prerequisite for activating the Entra ID entity context sync integration.
|
|
3946
4730
|
#
|
|
3947
4731
|
# @param opts [Hash] the optional parameters
|
|
3948
|
-
# @
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
# @option opts [String] :as_of A point in time at which to query the entity revisions, as an RFC3339 timestamp, a Unix timestamp (in seconds), or a relative time (for example, `now-1d`). When set, `from` and `to` are ignored. Cannot be combined with custom `from` / `to` values.
|
|
3952
|
-
# @option opts [Integer] :limit The maximum number of entities to return.
|
|
3953
|
-
# @option opts [String] :page_token An opaque token used to fetch the next page of results, as returned in `meta.page.next_token` of a previous response.
|
|
3954
|
-
# @return [Array<(EntityContextResponse, Integer, Hash)>] EntityContextResponse data, response status code and response headers
|
|
3955
|
-
def get_entity_context_with_http_info(opts = {})
|
|
3956
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.get_entity_context".to_sym]
|
|
4732
|
+
# @return [Array<(SecurityMonitoringEntraIdAzureAppRegistrationsResponse, Integer, Hash)>] SecurityMonitoringEntraIdAzureAppRegistrationsResponse data, response status code and response headers
|
|
4733
|
+
def get_entra_id_azure_app_registrations_with_http_info(opts = {})
|
|
4734
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_entra_id_azure_app_registrations".to_sym]
|
|
3957
4735
|
if unstable_enabled
|
|
3958
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.
|
|
4736
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_entra_id_azure_app_registrations")
|
|
3959
4737
|
else
|
|
3960
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.
|
|
4738
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_entra_id_azure_app_registrations"))
|
|
3961
4739
|
end
|
|
3962
4740
|
|
|
3963
4741
|
if @api_client.config.debugging
|
|
3964
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
4742
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_entra_id_azure_app_registrations ...'
|
|
3965
4743
|
end
|
|
3966
4744
|
# resource path
|
|
3967
|
-
local_var_path = '/api/v2/security_monitoring/
|
|
4745
|
+
local_var_path = '/api/v2/security_monitoring/configuration/integration_config/entra_id/azure_app_registrations'
|
|
3968
4746
|
|
|
3969
4747
|
# query parameters
|
|
3970
4748
|
query_params = opts[:query_params] || {}
|
|
3971
|
-
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
|
3972
|
-
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
|
3973
|
-
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
3974
|
-
query_params[:'as_of'] = opts[:'as_of'] if !opts[:'as_of'].nil?
|
|
3975
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
3976
|
-
query_params[:'page_token'] = opts[:'page_token'] if !opts[:'page_token'].nil?
|
|
3977
4749
|
|
|
3978
4750
|
# header parameters
|
|
3979
4751
|
header_params = opts[:header_params] || {}
|
|
@@ -3987,13 +4759,13 @@ module DatadogAPIClient::V2
|
|
|
3987
4759
|
post_body = opts[:debug_body]
|
|
3988
4760
|
|
|
3989
4761
|
# return_type
|
|
3990
|
-
return_type = opts[:debug_return_type] || '
|
|
4762
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringEntraIdAzureAppRegistrationsResponse'
|
|
3991
4763
|
|
|
3992
4764
|
# auth_names
|
|
3993
4765
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
3994
4766
|
|
|
3995
4767
|
new_options = opts.merge(
|
|
3996
|
-
:operation => :
|
|
4768
|
+
:operation => :get_entra_id_azure_app_registrations,
|
|
3997
4769
|
:header_params => header_params,
|
|
3998
4770
|
:query_params => query_params,
|
|
3999
4771
|
:form_params => form_params,
|
|
@@ -4005,7 +4777,7 @@ module DatadogAPIClient::V2
|
|
|
4005
4777
|
|
|
4006
4778
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
4007
4779
|
if @api_client.config.debugging
|
|
4008
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
4780
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_entra_id_azure_app_registrations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4009
4781
|
end
|
|
4010
4782
|
return data, status_code, headers
|
|
4011
4783
|
end
|
|
@@ -4480,7 +5252,7 @@ module DatadogAPIClient::V2
|
|
|
4480
5252
|
fail ArgumentError, "Missing the required parameter 'asset_type' when calling SecurityMonitoringAPI.get_sbom"
|
|
4481
5253
|
end
|
|
4482
5254
|
# verify enum value
|
|
4483
|
-
allowable_values = ['Repository', 'Service', 'Host', 'HostImage', 'Image']
|
|
5255
|
+
allowable_values = ['Repository', 'Service', 'Host', 'HostImage', 'Image', 'ServerlessFunction']
|
|
4484
5256
|
if @api_client.config.client_side_validation && !allowable_values.include?(asset_type)
|
|
4485
5257
|
fail ArgumentError, "invalid value for \"asset_type\", must be one of #{allowable_values}"
|
|
4486
5258
|
end
|
|
@@ -4670,6 +5442,219 @@ module DatadogAPIClient::V2
|
|
|
4670
5442
|
return data, status_code, headers
|
|
4671
5443
|
end
|
|
4672
5444
|
|
|
5445
|
+
# Get a due date rule.
|
|
5446
|
+
#
|
|
5447
|
+
# @see #get_security_findings_automation_due_date_rule_with_http_info
|
|
5448
|
+
def get_security_findings_automation_due_date_rule(rule_id, opts = {})
|
|
5449
|
+
data, _status_code, _headers = get_security_findings_automation_due_date_rule_with_http_info(rule_id, opts)
|
|
5450
|
+
data
|
|
5451
|
+
end
|
|
5452
|
+
|
|
5453
|
+
# Get a due date rule.
|
|
5454
|
+
#
|
|
5455
|
+
# Get the details of a due date rule by ID.
|
|
5456
|
+
#
|
|
5457
|
+
# @param rule_id [UUID] The ID of the due date rule.
|
|
5458
|
+
# @param opts [Hash] the optional parameters
|
|
5459
|
+
# @return [Array<(DueDateRuleResponse, Integer, Hash)>] DueDateRuleResponse data, response status code and response headers
|
|
5460
|
+
def get_security_findings_automation_due_date_rule_with_http_info(rule_id, opts = {})
|
|
5461
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_security_findings_automation_due_date_rule".to_sym]
|
|
5462
|
+
if unstable_enabled
|
|
5463
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_security_findings_automation_due_date_rule")
|
|
5464
|
+
else
|
|
5465
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_security_findings_automation_due_date_rule"))
|
|
5466
|
+
end
|
|
5467
|
+
|
|
5468
|
+
if @api_client.config.debugging
|
|
5469
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_security_findings_automation_due_date_rule ...'
|
|
5470
|
+
end
|
|
5471
|
+
# verify the required parameter 'rule_id' is set
|
|
5472
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
5473
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.get_security_findings_automation_due_date_rule"
|
|
5474
|
+
end
|
|
5475
|
+
# resource path
|
|
5476
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
5477
|
+
|
|
5478
|
+
# query parameters
|
|
5479
|
+
query_params = opts[:query_params] || {}
|
|
5480
|
+
|
|
5481
|
+
# header parameters
|
|
5482
|
+
header_params = opts[:header_params] || {}
|
|
5483
|
+
# HTTP header 'Accept' (if needed)
|
|
5484
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5485
|
+
|
|
5486
|
+
# form parameters
|
|
5487
|
+
form_params = opts[:form_params] || {}
|
|
5488
|
+
|
|
5489
|
+
# http body (model)
|
|
5490
|
+
post_body = opts[:debug_body]
|
|
5491
|
+
|
|
5492
|
+
# return_type
|
|
5493
|
+
return_type = opts[:debug_return_type] || 'DueDateRuleResponse'
|
|
5494
|
+
|
|
5495
|
+
# auth_names
|
|
5496
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
5497
|
+
|
|
5498
|
+
new_options = opts.merge(
|
|
5499
|
+
:operation => :get_security_findings_automation_due_date_rule,
|
|
5500
|
+
:header_params => header_params,
|
|
5501
|
+
:query_params => query_params,
|
|
5502
|
+
:form_params => form_params,
|
|
5503
|
+
:body => post_body,
|
|
5504
|
+
:auth_names => auth_names,
|
|
5505
|
+
:return_type => return_type,
|
|
5506
|
+
:api_version => "V2"
|
|
5507
|
+
)
|
|
5508
|
+
|
|
5509
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
5510
|
+
if @api_client.config.debugging
|
|
5511
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_security_findings_automation_due_date_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5512
|
+
end
|
|
5513
|
+
return data, status_code, headers
|
|
5514
|
+
end
|
|
5515
|
+
|
|
5516
|
+
# Get a mute rule.
|
|
5517
|
+
#
|
|
5518
|
+
# @see #get_security_findings_automation_mute_rule_with_http_info
|
|
5519
|
+
def get_security_findings_automation_mute_rule(rule_id, opts = {})
|
|
5520
|
+
data, _status_code, _headers = get_security_findings_automation_mute_rule_with_http_info(rule_id, opts)
|
|
5521
|
+
data
|
|
5522
|
+
end
|
|
5523
|
+
|
|
5524
|
+
# Get a mute rule.
|
|
5525
|
+
#
|
|
5526
|
+
# Get the details of a mute rule by ID.
|
|
5527
|
+
#
|
|
5528
|
+
# @param rule_id [UUID] The ID of the mute rule.
|
|
5529
|
+
# @param opts [Hash] the optional parameters
|
|
5530
|
+
# @return [Array<(MuteRuleResponse, Integer, Hash)>] MuteRuleResponse data, response status code and response headers
|
|
5531
|
+
def get_security_findings_automation_mute_rule_with_http_info(rule_id, opts = {})
|
|
5532
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_security_findings_automation_mute_rule".to_sym]
|
|
5533
|
+
if unstable_enabled
|
|
5534
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_security_findings_automation_mute_rule")
|
|
5535
|
+
else
|
|
5536
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_security_findings_automation_mute_rule"))
|
|
5537
|
+
end
|
|
5538
|
+
|
|
5539
|
+
if @api_client.config.debugging
|
|
5540
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_security_findings_automation_mute_rule ...'
|
|
5541
|
+
end
|
|
5542
|
+
# verify the required parameter 'rule_id' is set
|
|
5543
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
5544
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.get_security_findings_automation_mute_rule"
|
|
5545
|
+
end
|
|
5546
|
+
# resource path
|
|
5547
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
5548
|
+
|
|
5549
|
+
# query parameters
|
|
5550
|
+
query_params = opts[:query_params] || {}
|
|
5551
|
+
|
|
5552
|
+
# header parameters
|
|
5553
|
+
header_params = opts[:header_params] || {}
|
|
5554
|
+
# HTTP header 'Accept' (if needed)
|
|
5555
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5556
|
+
|
|
5557
|
+
# form parameters
|
|
5558
|
+
form_params = opts[:form_params] || {}
|
|
5559
|
+
|
|
5560
|
+
# http body (model)
|
|
5561
|
+
post_body = opts[:debug_body]
|
|
5562
|
+
|
|
5563
|
+
# return_type
|
|
5564
|
+
return_type = opts[:debug_return_type] || 'MuteRuleResponse'
|
|
5565
|
+
|
|
5566
|
+
# auth_names
|
|
5567
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
5568
|
+
|
|
5569
|
+
new_options = opts.merge(
|
|
5570
|
+
:operation => :get_security_findings_automation_mute_rule,
|
|
5571
|
+
:header_params => header_params,
|
|
5572
|
+
:query_params => query_params,
|
|
5573
|
+
:form_params => form_params,
|
|
5574
|
+
:body => post_body,
|
|
5575
|
+
:auth_names => auth_names,
|
|
5576
|
+
:return_type => return_type,
|
|
5577
|
+
:api_version => "V2"
|
|
5578
|
+
)
|
|
5579
|
+
|
|
5580
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
5581
|
+
if @api_client.config.debugging
|
|
5582
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_security_findings_automation_mute_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5583
|
+
end
|
|
5584
|
+
return data, status_code, headers
|
|
5585
|
+
end
|
|
5586
|
+
|
|
5587
|
+
# Get a ticket creation rule.
|
|
5588
|
+
#
|
|
5589
|
+
# @see #get_security_findings_automation_ticket_creation_rule_with_http_info
|
|
5590
|
+
def get_security_findings_automation_ticket_creation_rule(rule_id, opts = {})
|
|
5591
|
+
data, _status_code, _headers = get_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, opts)
|
|
5592
|
+
data
|
|
5593
|
+
end
|
|
5594
|
+
|
|
5595
|
+
# Get a ticket creation rule.
|
|
5596
|
+
#
|
|
5597
|
+
# Get the details of a ticket creation rule by ID.
|
|
5598
|
+
#
|
|
5599
|
+
# @param rule_id [UUID] The ID of the ticket creation rule.
|
|
5600
|
+
# @param opts [Hash] the optional parameters
|
|
5601
|
+
# @return [Array<(TicketCreationRuleResponse, Integer, Hash)>] TicketCreationRuleResponse data, response status code and response headers
|
|
5602
|
+
def get_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, opts = {})
|
|
5603
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_security_findings_automation_ticket_creation_rule".to_sym]
|
|
5604
|
+
if unstable_enabled
|
|
5605
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_security_findings_automation_ticket_creation_rule")
|
|
5606
|
+
else
|
|
5607
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_security_findings_automation_ticket_creation_rule"))
|
|
5608
|
+
end
|
|
5609
|
+
|
|
5610
|
+
if @api_client.config.debugging
|
|
5611
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_security_findings_automation_ticket_creation_rule ...'
|
|
5612
|
+
end
|
|
5613
|
+
# verify the required parameter 'rule_id' is set
|
|
5614
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
5615
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.get_security_findings_automation_ticket_creation_rule"
|
|
5616
|
+
end
|
|
5617
|
+
# resource path
|
|
5618
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
5619
|
+
|
|
5620
|
+
# query parameters
|
|
5621
|
+
query_params = opts[:query_params] || {}
|
|
5622
|
+
|
|
5623
|
+
# header parameters
|
|
5624
|
+
header_params = opts[:header_params] || {}
|
|
5625
|
+
# HTTP header 'Accept' (if needed)
|
|
5626
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5627
|
+
|
|
5628
|
+
# form parameters
|
|
5629
|
+
form_params = opts[:form_params] || {}
|
|
5630
|
+
|
|
5631
|
+
# http body (model)
|
|
5632
|
+
post_body = opts[:debug_body]
|
|
5633
|
+
|
|
5634
|
+
# return_type
|
|
5635
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse'
|
|
5636
|
+
|
|
5637
|
+
# auth_names
|
|
5638
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
5639
|
+
|
|
5640
|
+
new_options = opts.merge(
|
|
5641
|
+
:operation => :get_security_findings_automation_ticket_creation_rule,
|
|
5642
|
+
:header_params => header_params,
|
|
5643
|
+
:query_params => query_params,
|
|
5644
|
+
:form_params => form_params,
|
|
5645
|
+
:body => post_body,
|
|
5646
|
+
:auth_names => auth_names,
|
|
5647
|
+
:return_type => return_type,
|
|
5648
|
+
:api_version => "V2"
|
|
5649
|
+
)
|
|
5650
|
+
|
|
5651
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
5652
|
+
if @api_client.config.debugging
|
|
5653
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_security_findings_automation_ticket_creation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5654
|
+
end
|
|
5655
|
+
return data, status_code, headers
|
|
5656
|
+
end
|
|
5657
|
+
|
|
4673
5658
|
# Get a critical asset.
|
|
4674
5659
|
#
|
|
4675
5660
|
# @see #get_security_monitoring_critical_asset_with_http_info
|
|
@@ -6229,22 +7214,82 @@ module DatadogAPIClient::V2
|
|
|
6229
7214
|
|
|
6230
7215
|
# Get details of a vulnerability notification rule.
|
|
6231
7216
|
#
|
|
6232
|
-
# Get the details of a notification rule for security vulnerabilities.
|
|
7217
|
+
# Get the details of a notification rule for security vulnerabilities.
|
|
7218
|
+
#
|
|
7219
|
+
# @param id [String] ID of the notification rule.
|
|
7220
|
+
# @param opts [Hash] the optional parameters
|
|
7221
|
+
# @return [Array<(NotificationRuleResponse, Integer, Hash)>] NotificationRuleResponse data, response status code and response headers
|
|
7222
|
+
def get_vulnerability_notification_rule_with_http_info(id, opts = {})
|
|
7223
|
+
|
|
7224
|
+
if @api_client.config.debugging
|
|
7225
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_vulnerability_notification_rule ...'
|
|
7226
|
+
end
|
|
7227
|
+
# verify the required parameter 'id' is set
|
|
7228
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
7229
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SecurityMonitoringAPI.get_vulnerability_notification_rule"
|
|
7230
|
+
end
|
|
7231
|
+
# resource path
|
|
7232
|
+
local_var_path = '/api/v2/security/vulnerabilities/notification_rules/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/'))
|
|
7233
|
+
|
|
7234
|
+
# query parameters
|
|
7235
|
+
query_params = opts[:query_params] || {}
|
|
7236
|
+
|
|
7237
|
+
# header parameters
|
|
7238
|
+
header_params = opts[:header_params] || {}
|
|
7239
|
+
# HTTP header 'Accept' (if needed)
|
|
7240
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
7241
|
+
|
|
7242
|
+
# form parameters
|
|
7243
|
+
form_params = opts[:form_params] || {}
|
|
7244
|
+
|
|
7245
|
+
# http body (model)
|
|
7246
|
+
post_body = opts[:debug_body]
|
|
7247
|
+
|
|
7248
|
+
# return_type
|
|
7249
|
+
return_type = opts[:debug_return_type] || 'NotificationRuleResponse'
|
|
7250
|
+
|
|
7251
|
+
# auth_names
|
|
7252
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
7253
|
+
|
|
7254
|
+
new_options = opts.merge(
|
|
7255
|
+
:operation => :get_vulnerability_notification_rule,
|
|
7256
|
+
:header_params => header_params,
|
|
7257
|
+
:query_params => query_params,
|
|
7258
|
+
:form_params => form_params,
|
|
7259
|
+
:body => post_body,
|
|
7260
|
+
:auth_names => auth_names,
|
|
7261
|
+
:return_type => return_type,
|
|
7262
|
+
:api_version => "V2"
|
|
7263
|
+
)
|
|
7264
|
+
|
|
7265
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
7266
|
+
if @api_client.config.debugging
|
|
7267
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_vulnerability_notification_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7268
|
+
end
|
|
7269
|
+
return data, status_code, headers
|
|
7270
|
+
end
|
|
7271
|
+
|
|
7272
|
+
# Get the list of vulnerability notification rules.
|
|
7273
|
+
#
|
|
7274
|
+
# @see #get_vulnerability_notification_rules_with_http_info
|
|
7275
|
+
def get_vulnerability_notification_rules(opts = {})
|
|
7276
|
+
data, _status_code, _headers = get_vulnerability_notification_rules_with_http_info(opts)
|
|
7277
|
+
data
|
|
7278
|
+
end
|
|
7279
|
+
|
|
7280
|
+
# Get the list of vulnerability notification rules.
|
|
7281
|
+
#
|
|
7282
|
+
# Returns the list of notification rules for security vulnerabilities.
|
|
6233
7283
|
#
|
|
6234
|
-
# @param id [String] ID of the notification rule.
|
|
6235
7284
|
# @param opts [Hash] the optional parameters
|
|
6236
|
-
# @return [Array<(
|
|
6237
|
-
def
|
|
7285
|
+
# @return [Array<(NotificationRulesListResponse, Integer, Hash)>] NotificationRulesListResponse data, response status code and response headers
|
|
7286
|
+
def get_vulnerability_notification_rules_with_http_info(opts = {})
|
|
6238
7287
|
|
|
6239
7288
|
if @api_client.config.debugging
|
|
6240
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
6241
|
-
end
|
|
6242
|
-
# verify the required parameter 'id' is set
|
|
6243
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
6244
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling SecurityMonitoringAPI.get_vulnerability_notification_rule"
|
|
7289
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_vulnerability_notification_rules ...'
|
|
6245
7290
|
end
|
|
6246
7291
|
# resource path
|
|
6247
|
-
local_var_path = '/api/v2/security/vulnerabilities/notification_rules
|
|
7292
|
+
local_var_path = '/api/v2/security/vulnerabilities/notification_rules'
|
|
6248
7293
|
|
|
6249
7294
|
# query parameters
|
|
6250
7295
|
query_params = opts[:query_params] || {}
|
|
@@ -6261,13 +7306,13 @@ module DatadogAPIClient::V2
|
|
|
6261
7306
|
post_body = opts[:debug_body]
|
|
6262
7307
|
|
|
6263
7308
|
# return_type
|
|
6264
|
-
return_type = opts[:debug_return_type] || '
|
|
7309
|
+
return_type = opts[:debug_return_type] || 'NotificationRulesListResponse'
|
|
6265
7310
|
|
|
6266
7311
|
# auth_names
|
|
6267
7312
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
6268
7313
|
|
|
6269
7314
|
new_options = opts.merge(
|
|
6270
|
-
:operation => :
|
|
7315
|
+
:operation => :get_vulnerability_notification_rules,
|
|
6271
7316
|
:header_params => header_params,
|
|
6272
7317
|
:query_params => query_params,
|
|
6273
7318
|
:form_params => form_params,
|
|
@@ -6279,32 +7324,58 @@ module DatadogAPIClient::V2
|
|
|
6279
7324
|
|
|
6280
7325
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
6281
7326
|
if @api_client.config.debugging
|
|
6282
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
7327
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_vulnerability_notification_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6283
7328
|
end
|
|
6284
7329
|
return data, status_code, headers
|
|
6285
7330
|
end
|
|
6286
7331
|
|
|
6287
|
-
#
|
|
7332
|
+
# Import security vulnerabilities.
|
|
6288
7333
|
#
|
|
6289
|
-
# @see #
|
|
6290
|
-
def
|
|
6291
|
-
|
|
6292
|
-
|
|
7334
|
+
# @see #import_security_vulnerabilities_with_http_info
|
|
7335
|
+
def import_security_vulnerabilities(body, opts = {})
|
|
7336
|
+
import_security_vulnerabilities_with_http_info(body, opts)
|
|
7337
|
+
nil
|
|
6293
7338
|
end
|
|
6294
7339
|
|
|
6295
|
-
#
|
|
7340
|
+
# Import security vulnerabilities.
|
|
6296
7341
|
#
|
|
6297
|
-
#
|
|
7342
|
+
# Import security vulnerabilities from an external scanner in CycloneDX 1.5 format.
|
|
7343
|
+
#
|
|
7344
|
+
# The payload is validated against the CycloneDX 1.5 JSON schema and the following
|
|
7345
|
+
# additional constraints:
|
|
6298
7346
|
#
|
|
7347
|
+
# - `metadata`, `metadata.component`, and `metadata.component.name` are required.
|
|
7348
|
+
# - `metadata.tools.components` must contain exactly one element with a `name` field.
|
|
7349
|
+
# - `components` cannot be empty. Each component requires `bom-ref`, `type`, `name`, and `version`.
|
|
7350
|
+
# - When `type` is `library`, `purl` is required and must be a valid PURL.
|
|
7351
|
+
# - When `type` is `operating-system`, `name` must be one of the supported OS values:
|
|
7352
|
+
# `alma`, `alpine`, `amazon`, `azurelinux`, `bottlerocket`, `cbl-mariner`, `chainguard`,
|
|
7353
|
+
# `centos`, `debian`, `fedora`, `opensuse`, `opensuse-leap`, `opensuse-tumbleweed`,
|
|
7354
|
+
# `oracle`, `photon`, `redhat`, `rocky`, `slem`, `sles`, `ubuntu`, `wolfi`, `windows`, `macos`.
|
|
7355
|
+
# - `vulnerabilities` cannot be empty. Each vulnerability requires `id`, exactly one `ratings` entry,
|
|
7356
|
+
# and at least one `affects` entry.
|
|
7357
|
+
# - Each `affects[].ref` must match a `bom-ref` value in `components`.
|
|
7358
|
+
#
|
|
7359
|
+
# @param body [CycloneDXBom]
|
|
6299
7360
|
# @param opts [Hash] the optional parameters
|
|
6300
|
-
# @return [Array<(
|
|
6301
|
-
def
|
|
7361
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
7362
|
+
def import_security_vulnerabilities_with_http_info(body, opts = {})
|
|
7363
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.import_security_vulnerabilities".to_sym]
|
|
7364
|
+
if unstable_enabled
|
|
7365
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.import_security_vulnerabilities")
|
|
7366
|
+
else
|
|
7367
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.import_security_vulnerabilities"))
|
|
7368
|
+
end
|
|
6302
7369
|
|
|
6303
7370
|
if @api_client.config.debugging
|
|
6304
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
7371
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.import_security_vulnerabilities ...'
|
|
7372
|
+
end
|
|
7373
|
+
# verify the required parameter 'body' is set
|
|
7374
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
7375
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.import_security_vulnerabilities"
|
|
6305
7376
|
end
|
|
6306
7377
|
# resource path
|
|
6307
|
-
local_var_path = '/api/v2/security/vulnerabilities
|
|
7378
|
+
local_var_path = '/api/v2/security/vulnerabilities'
|
|
6308
7379
|
|
|
6309
7380
|
# query parameters
|
|
6310
7381
|
query_params = opts[:query_params] || {}
|
|
@@ -6312,22 +7383,24 @@ module DatadogAPIClient::V2
|
|
|
6312
7383
|
# header parameters
|
|
6313
7384
|
header_params = opts[:header_params] || {}
|
|
6314
7385
|
# HTTP header 'Accept' (if needed)
|
|
6315
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
7386
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
7387
|
+
# HTTP header 'Content-Type'
|
|
7388
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
6316
7389
|
|
|
6317
7390
|
# form parameters
|
|
6318
7391
|
form_params = opts[:form_params] || {}
|
|
6319
7392
|
|
|
6320
7393
|
# http body (model)
|
|
6321
|
-
post_body = opts[:debug_body]
|
|
7394
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
6322
7395
|
|
|
6323
7396
|
# return_type
|
|
6324
|
-
return_type = opts[:debug_return_type]
|
|
7397
|
+
return_type = opts[:debug_return_type]
|
|
6325
7398
|
|
|
6326
7399
|
# auth_names
|
|
6327
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
7400
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
6328
7401
|
|
|
6329
7402
|
new_options = opts.merge(
|
|
6330
|
-
:operation => :
|
|
7403
|
+
:operation => :import_security_vulnerabilities,
|
|
6331
7404
|
:header_params => header_params,
|
|
6332
7405
|
:query_params => query_params,
|
|
6333
7406
|
:form_params => form_params,
|
|
@@ -6337,9 +7410,9 @@ module DatadogAPIClient::V2
|
|
|
6337
7410
|
:api_version => "V2"
|
|
6338
7411
|
)
|
|
6339
7412
|
|
|
6340
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
7413
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
6341
7414
|
if @api_client.config.debugging
|
|
6342
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
7415
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#import_security_vulnerabilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
6343
7416
|
end
|
|
6344
7417
|
return data, status_code, headers
|
|
6345
7418
|
end
|
|
@@ -6356,6 +7429,11 @@ module DatadogAPIClient::V2
|
|
|
6356
7429
|
#
|
|
6357
7430
|
# Get a list of assets SBOMs for an organization.
|
|
6358
7431
|
#
|
|
7432
|
+
# The `filter[asset_type]` parameter is required for initial requests (when no `page[token]` is provided).
|
|
7433
|
+
# Subsequent pages encode the asset type in the pagination token, so `filter[asset_type]` is not required
|
|
7434
|
+
# for paginated requests. Mixing infrastructure asset types (`Host`, `HostImage`, `Image`, `ServerlessFunction`)
|
|
7435
|
+
# with code asset types (`Repository`, `Service`) in the same request is not supported and returns a 400 error.
|
|
7436
|
+
#
|
|
6359
7437
|
# ### Pagination
|
|
6360
7438
|
#
|
|
6361
7439
|
# Please review the [Pagination section](#pagination) for the "List Vulnerabilities" endpoint.
|
|
@@ -6371,7 +7449,7 @@ module DatadogAPIClient::V2
|
|
|
6371
7449
|
# @param opts [Hash] the optional parameters
|
|
6372
7450
|
# @option opts [String] :page_token Its value must come from the `links` section of the response of the first request. Do not manually edit it.
|
|
6373
7451
|
# @option opts [Integer] :page_number The page number to be retrieved. It should be equal to or greater than 1.
|
|
6374
|
-
# @option opts [AssetType] :filter_asset_type The type of the assets for the SBOM request.
|
|
7452
|
+
# @option opts [AssetType] :filter_asset_type The type of the assets for the SBOM request. Required for initial requests (when no `page[token]` is provided). Infrastructure types (`Host`, `HostImage`, `Image`, `ServerlessFunction`) and code types (`Repository`, `Service`) cannot be mixed in the same request.
|
|
6375
7453
|
# @option opts [String] :filter_asset_name The name of the asset for the SBOM request.
|
|
6376
7454
|
# @option opts [String] :filter_package_name The name of the component that is a dependency of an asset.
|
|
6377
7455
|
# @option opts [String] :filter_package_version The version of the component that is a dependency of an asset.
|
|
@@ -6386,7 +7464,7 @@ module DatadogAPIClient::V2
|
|
|
6386
7464
|
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 1
|
|
6387
7465
|
fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling SecurityMonitoringAPI.list_assets_sbo_ms, must be greater than or equal to 1.'
|
|
6388
7466
|
end
|
|
6389
|
-
allowable_values = ['Repository', 'Service', 'Host', 'HostImage', 'Image']
|
|
7467
|
+
allowable_values = ['Repository', 'Service', 'Host', 'HostImage', 'Image', 'ServerlessFunction']
|
|
6390
7468
|
if @api_client.config.client_side_validation && opts[:'filter_asset_type'] && !allowable_values.include?(opts[:'filter_asset_type'])
|
|
6391
7469
|
fail ArgumentError, "invalid value for \"filter_asset_type\", must be one of #{allowable_values}"
|
|
6392
7470
|
end
|
|
@@ -6714,7 +7792,7 @@ module DatadogAPIClient::V2
|
|
|
6714
7792
|
# @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
7793
|
# @option opts [String] :sort_order Sort order: asc or desc.
|
|
6716
7794
|
# @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
|
|
7795
|
+
# @option opts [String] :worked_by Filter indicators whose triage state was updated by a specific user identified by their handle.
|
|
6718
7796
|
# @option opts [IoCTriageState] :triage_state Filter by triage state.
|
|
6719
7797
|
# @return [Array<(IoCExplorerListResponse, Integer, Hash)>] IoCExplorerListResponse data, response status code and response headers
|
|
6720
7798
|
def list_indicators_of_compromise_with_http_info(opts = {})
|
|
@@ -7219,27 +8297,285 @@ module DatadogAPIClient::V2
|
|
|
7219
8297
|
def list_security_findings_with_http_info(opts = {})
|
|
7220
8298
|
|
|
7221
8299
|
if @api_client.config.debugging
|
|
7222
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_findings ...'
|
|
8300
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_findings ...'
|
|
8301
|
+
end
|
|
8302
|
+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 150
|
|
8303
|
+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SecurityMonitoringAPI.list_security_findings, must be smaller than or equal to 150.'
|
|
8304
|
+
end
|
|
8305
|
+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] < 1
|
|
8306
|
+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling SecurityMonitoringAPI.list_security_findings, must be greater than or equal to 1.'
|
|
8307
|
+
end
|
|
8308
|
+
allowable_values = ['@detection_changed_at', '-@detection_changed_at']
|
|
8309
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
8310
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
8311
|
+
end
|
|
8312
|
+
# resource path
|
|
8313
|
+
local_var_path = '/api/v2/security/findings'
|
|
8314
|
+
|
|
8315
|
+
# query parameters
|
|
8316
|
+
query_params = opts[:query_params] || {}
|
|
8317
|
+
query_params[:'filter[query]'] = opts[:'filter_query'] if !opts[:'filter_query'].nil?
|
|
8318
|
+
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
|
8319
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
8320
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
8321
|
+
|
|
8322
|
+
# header parameters
|
|
8323
|
+
header_params = opts[:header_params] || {}
|
|
8324
|
+
# HTTP header 'Accept' (if needed)
|
|
8325
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8326
|
+
|
|
8327
|
+
# form parameters
|
|
8328
|
+
form_params = opts[:form_params] || {}
|
|
8329
|
+
|
|
8330
|
+
# http body (model)
|
|
8331
|
+
post_body = opts[:debug_body]
|
|
8332
|
+
|
|
8333
|
+
# return_type
|
|
8334
|
+
return_type = opts[:debug_return_type] || 'ListSecurityFindingsResponse'
|
|
8335
|
+
|
|
8336
|
+
# auth_names
|
|
8337
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
8338
|
+
|
|
8339
|
+
new_options = opts.merge(
|
|
8340
|
+
:operation => :list_security_findings,
|
|
8341
|
+
:header_params => header_params,
|
|
8342
|
+
:query_params => query_params,
|
|
8343
|
+
:form_params => form_params,
|
|
8344
|
+
:body => post_body,
|
|
8345
|
+
:auth_names => auth_names,
|
|
8346
|
+
:return_type => return_type,
|
|
8347
|
+
:api_version => "V2"
|
|
8348
|
+
)
|
|
8349
|
+
|
|
8350
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
8351
|
+
if @api_client.config.debugging
|
|
8352
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_security_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8353
|
+
end
|
|
8354
|
+
return data, status_code, headers
|
|
8355
|
+
end
|
|
8356
|
+
|
|
8357
|
+
# List security findings.
|
|
8358
|
+
#
|
|
8359
|
+
# Provide a paginated version of {#list_security_findings}, returning all items.
|
|
8360
|
+
#
|
|
8361
|
+
# To use it you need to use a block: list_security_findings_with_pagination { |item| p item }
|
|
8362
|
+
#
|
|
8363
|
+
# @yield [SecurityFindingsData] Paginated items
|
|
8364
|
+
def list_security_findings_with_pagination(opts = {})
|
|
8365
|
+
api_version = "V2"
|
|
8366
|
+
page_size = @api_client.get_attribute_from_path(opts, "page_limit", 10)
|
|
8367
|
+
@api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
|
|
8368
|
+
while true do
|
|
8369
|
+
response = list_security_findings(opts)
|
|
8370
|
+
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
8371
|
+
if @api_client.get_attribute_from_path(response, "data").length == 0
|
|
8372
|
+
break
|
|
8373
|
+
end
|
|
8374
|
+
@api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
|
8375
|
+
end
|
|
8376
|
+
end
|
|
8377
|
+
|
|
8378
|
+
# Get all due date rules.
|
|
8379
|
+
#
|
|
8380
|
+
# @see #list_security_findings_automation_due_date_rules_with_http_info
|
|
8381
|
+
def list_security_findings_automation_due_date_rules(opts = {})
|
|
8382
|
+
data, _status_code, _headers = list_security_findings_automation_due_date_rules_with_http_info(opts)
|
|
8383
|
+
data
|
|
8384
|
+
end
|
|
8385
|
+
|
|
8386
|
+
# Get all due date rules.
|
|
8387
|
+
#
|
|
8388
|
+
# Get all due date rules for the current organization.
|
|
8389
|
+
#
|
|
8390
|
+
# @param opts [Hash] the optional parameters
|
|
8391
|
+
# @option opts [Integer] :page_size The number of rules per page. Maximum is 1000.
|
|
8392
|
+
# @option opts [Integer] :page_number The page number to return.
|
|
8393
|
+
# @return [Array<(DueDateRulesResponse, Integer, Hash)>] DueDateRulesResponse data, response status code and response headers
|
|
8394
|
+
def list_security_findings_automation_due_date_rules_with_http_info(opts = {})
|
|
8395
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_security_findings_automation_due_date_rules".to_sym]
|
|
8396
|
+
if unstable_enabled
|
|
8397
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_security_findings_automation_due_date_rules")
|
|
8398
|
+
else
|
|
8399
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_security_findings_automation_due_date_rules"))
|
|
8400
|
+
end
|
|
8401
|
+
|
|
8402
|
+
if @api_client.config.debugging
|
|
8403
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_findings_automation_due_date_rules ...'
|
|
8404
|
+
end
|
|
8405
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
|
|
8406
|
+
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.'
|
|
8407
|
+
end
|
|
8408
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
8409
|
+
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.'
|
|
8410
|
+
end
|
|
8411
|
+
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
|
|
8412
|
+
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.'
|
|
8413
|
+
end
|
|
8414
|
+
# resource path
|
|
8415
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules'
|
|
8416
|
+
|
|
8417
|
+
# query parameters
|
|
8418
|
+
query_params = opts[:query_params] || {}
|
|
8419
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8420
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
8421
|
+
|
|
8422
|
+
# header parameters
|
|
8423
|
+
header_params = opts[:header_params] || {}
|
|
8424
|
+
# HTTP header 'Accept' (if needed)
|
|
8425
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8426
|
+
|
|
8427
|
+
# form parameters
|
|
8428
|
+
form_params = opts[:form_params] || {}
|
|
8429
|
+
|
|
8430
|
+
# http body (model)
|
|
8431
|
+
post_body = opts[:debug_body]
|
|
8432
|
+
|
|
8433
|
+
# return_type
|
|
8434
|
+
return_type = opts[:debug_return_type] || 'DueDateRulesResponse'
|
|
8435
|
+
|
|
8436
|
+
# auth_names
|
|
8437
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8438
|
+
|
|
8439
|
+
new_options = opts.merge(
|
|
8440
|
+
:operation => :list_security_findings_automation_due_date_rules,
|
|
8441
|
+
:header_params => header_params,
|
|
8442
|
+
:query_params => query_params,
|
|
8443
|
+
:form_params => form_params,
|
|
8444
|
+
:body => post_body,
|
|
8445
|
+
:auth_names => auth_names,
|
|
8446
|
+
:return_type => return_type,
|
|
8447
|
+
:api_version => "V2"
|
|
8448
|
+
)
|
|
8449
|
+
|
|
8450
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
8451
|
+
if @api_client.config.debugging
|
|
8452
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_security_findings_automation_due_date_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8453
|
+
end
|
|
8454
|
+
return data, status_code, headers
|
|
8455
|
+
end
|
|
8456
|
+
|
|
8457
|
+
# Get all mute rules.
|
|
8458
|
+
#
|
|
8459
|
+
# @see #list_security_findings_automation_mute_rules_with_http_info
|
|
8460
|
+
def list_security_findings_automation_mute_rules(opts = {})
|
|
8461
|
+
data, _status_code, _headers = list_security_findings_automation_mute_rules_with_http_info(opts)
|
|
8462
|
+
data
|
|
8463
|
+
end
|
|
8464
|
+
|
|
8465
|
+
# Get all mute rules.
|
|
8466
|
+
#
|
|
8467
|
+
# Get all mute rules for the current organization.
|
|
8468
|
+
#
|
|
8469
|
+
# @param opts [Hash] the optional parameters
|
|
8470
|
+
# @option opts [Integer] :page_size The number of rules per page. Maximum is 1000.
|
|
8471
|
+
# @option opts [Integer] :page_number The page number to return.
|
|
8472
|
+
# @return [Array<(MuteRulesResponse, Integer, Hash)>] MuteRulesResponse data, response status code and response headers
|
|
8473
|
+
def list_security_findings_automation_mute_rules_with_http_info(opts = {})
|
|
8474
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_security_findings_automation_mute_rules".to_sym]
|
|
8475
|
+
if unstable_enabled
|
|
8476
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_security_findings_automation_mute_rules")
|
|
8477
|
+
else
|
|
8478
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_security_findings_automation_mute_rules"))
|
|
8479
|
+
end
|
|
8480
|
+
|
|
8481
|
+
if @api_client.config.debugging
|
|
8482
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_findings_automation_mute_rules ...'
|
|
8483
|
+
end
|
|
8484
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
|
|
8485
|
+
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.'
|
|
8486
|
+
end
|
|
8487
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
8488
|
+
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.'
|
|
8489
|
+
end
|
|
8490
|
+
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
|
|
8491
|
+
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.'
|
|
8492
|
+
end
|
|
8493
|
+
# resource path
|
|
8494
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules'
|
|
8495
|
+
|
|
8496
|
+
# query parameters
|
|
8497
|
+
query_params = opts[:query_params] || {}
|
|
8498
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8499
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
8500
|
+
|
|
8501
|
+
# header parameters
|
|
8502
|
+
header_params = opts[:header_params] || {}
|
|
8503
|
+
# HTTP header 'Accept' (if needed)
|
|
8504
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8505
|
+
|
|
8506
|
+
# form parameters
|
|
8507
|
+
form_params = opts[:form_params] || {}
|
|
8508
|
+
|
|
8509
|
+
# http body (model)
|
|
8510
|
+
post_body = opts[:debug_body]
|
|
8511
|
+
|
|
8512
|
+
# return_type
|
|
8513
|
+
return_type = opts[:debug_return_type] || 'MuteRulesResponse'
|
|
8514
|
+
|
|
8515
|
+
# auth_names
|
|
8516
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8517
|
+
|
|
8518
|
+
new_options = opts.merge(
|
|
8519
|
+
:operation => :list_security_findings_automation_mute_rules,
|
|
8520
|
+
:header_params => header_params,
|
|
8521
|
+
:query_params => query_params,
|
|
8522
|
+
:form_params => form_params,
|
|
8523
|
+
:body => post_body,
|
|
8524
|
+
:auth_names => auth_names,
|
|
8525
|
+
:return_type => return_type,
|
|
8526
|
+
:api_version => "V2"
|
|
8527
|
+
)
|
|
8528
|
+
|
|
8529
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
8530
|
+
if @api_client.config.debugging
|
|
8531
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_security_findings_automation_mute_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8532
|
+
end
|
|
8533
|
+
return data, status_code, headers
|
|
8534
|
+
end
|
|
8535
|
+
|
|
8536
|
+
# Get all ticket creation rules.
|
|
8537
|
+
#
|
|
8538
|
+
# @see #list_security_findings_automation_ticket_creation_rules_with_http_info
|
|
8539
|
+
def list_security_findings_automation_ticket_creation_rules(opts = {})
|
|
8540
|
+
data, _status_code, _headers = list_security_findings_automation_ticket_creation_rules_with_http_info(opts)
|
|
8541
|
+
data
|
|
8542
|
+
end
|
|
8543
|
+
|
|
8544
|
+
# Get all ticket creation rules.
|
|
8545
|
+
#
|
|
8546
|
+
# Get all ticket creation rules for the current organization.
|
|
8547
|
+
#
|
|
8548
|
+
# @param opts [Hash] the optional parameters
|
|
8549
|
+
# @option opts [Integer] :page_size The number of rules per page. Maximum is 1000.
|
|
8550
|
+
# @option opts [Integer] :page_number The page number to return.
|
|
8551
|
+
# @return [Array<(TicketCreationRulesResponse, Integer, Hash)>] TicketCreationRulesResponse data, response status code and response headers
|
|
8552
|
+
def list_security_findings_automation_ticket_creation_rules_with_http_info(opts = {})
|
|
8553
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_security_findings_automation_ticket_creation_rules".to_sym]
|
|
8554
|
+
if unstable_enabled
|
|
8555
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_security_findings_automation_ticket_creation_rules")
|
|
8556
|
+
else
|
|
8557
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_security_findings_automation_ticket_creation_rules"))
|
|
8558
|
+
end
|
|
8559
|
+
|
|
8560
|
+
if @api_client.config.debugging
|
|
8561
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_findings_automation_ticket_creation_rules ...'
|
|
7223
8562
|
end
|
|
7224
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
7225
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
8563
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
|
|
8564
|
+
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.'
|
|
7226
8565
|
end
|
|
7227
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
7228
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
8566
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
8567
|
+
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.'
|
|
7229
8568
|
end
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
8569
|
+
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
|
|
8570
|
+
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.'
|
|
7233
8571
|
end
|
|
7234
8572
|
# resource path
|
|
7235
|
-
local_var_path = '/api/v2/security/findings'
|
|
8573
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules'
|
|
7236
8574
|
|
|
7237
8575
|
# query parameters
|
|
7238
8576
|
query_params = opts[:query_params] || {}
|
|
7239
|
-
query_params[:'
|
|
7240
|
-
query_params[:'page[
|
|
7241
|
-
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
7242
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
8577
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
8578
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
7243
8579
|
|
|
7244
8580
|
# header parameters
|
|
7245
8581
|
header_params = opts[:header_params] || {}
|
|
@@ -7253,13 +8589,13 @@ module DatadogAPIClient::V2
|
|
|
7253
8589
|
post_body = opts[:debug_body]
|
|
7254
8590
|
|
|
7255
8591
|
# return_type
|
|
7256
|
-
return_type = opts[:debug_return_type] || '
|
|
8592
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRulesResponse'
|
|
7257
8593
|
|
|
7258
8594
|
# auth_names
|
|
7259
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
8595
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
7260
8596
|
|
|
7261
8597
|
new_options = opts.merge(
|
|
7262
|
-
:operation => :
|
|
8598
|
+
:operation => :list_security_findings_automation_ticket_creation_rules,
|
|
7263
8599
|
:header_params => header_params,
|
|
7264
8600
|
:query_params => query_params,
|
|
7265
8601
|
:form_params => form_params,
|
|
@@ -7271,32 +8607,11 @@ module DatadogAPIClient::V2
|
|
|
7271
8607
|
|
|
7272
8608
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
7273
8609
|
if @api_client.config.debugging
|
|
7274
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
8610
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_security_findings_automation_ticket_creation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
7275
8611
|
end
|
|
7276
8612
|
return data, status_code, headers
|
|
7277
8613
|
end
|
|
7278
8614
|
|
|
7279
|
-
# List security findings.
|
|
7280
|
-
#
|
|
7281
|
-
# Provide a paginated version of {#list_security_findings}, returning all items.
|
|
7282
|
-
#
|
|
7283
|
-
# To use it you need to use a block: list_security_findings_with_pagination { |item| p item }
|
|
7284
|
-
#
|
|
7285
|
-
# @yield [SecurityFindingsData] Paginated items
|
|
7286
|
-
def list_security_findings_with_pagination(opts = {})
|
|
7287
|
-
api_version = "V2"
|
|
7288
|
-
page_size = @api_client.get_attribute_from_path(opts, "page_limit", 10)
|
|
7289
|
-
@api_client.set_attribute_from_path(api_version, opts, "page_limit", Integer, page_size)
|
|
7290
|
-
while true do
|
|
7291
|
-
response = list_security_findings(opts)
|
|
7292
|
-
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
7293
|
-
if @api_client.get_attribute_from_path(response, "data").length == 0
|
|
7294
|
-
break
|
|
7295
|
-
end
|
|
7296
|
-
@api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
|
7297
|
-
end
|
|
7298
|
-
end
|
|
7299
|
-
|
|
7300
8615
|
# Get all critical assets.
|
|
7301
8616
|
#
|
|
7302
8617
|
# @see #list_security_monitoring_critical_assets_with_http_info
|
|
@@ -7545,7 +8860,7 @@ module DatadogAPIClient::V2
|
|
|
7545
8860
|
if @api_client.config.debugging
|
|
7546
8861
|
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_security_monitoring_integration_configs ...'
|
|
7547
8862
|
end
|
|
7548
|
-
allowable_values = ['GOOGLE_WORKSPACE', 'OKTA', 'ENTRA_ID']
|
|
8863
|
+
allowable_values = ['GOOGLE_WORKSPACE', 'OKTA', 'ENTRA_ID', 'CROWDSTRIKE', 'SENTINELONE']
|
|
7549
8864
|
if @api_client.config.client_side_validation && opts[:'filter_integration_type'] && !allowable_values.include?(opts[:'filter_integration_type'])
|
|
7550
8865
|
fail ArgumentError, "invalid value for \"filter_integration_type\", must be one of #{allowable_values}"
|
|
7551
8866
|
end
|
|
@@ -8111,7 +9426,7 @@ module DatadogAPIClient::V2
|
|
|
8111
9426
|
if @api_client.config.client_side_validation && opts[:'filter_ecosystem'] && !allowable_values.include?(opts[:'filter_ecosystem'])
|
|
8112
9427
|
fail ArgumentError, "invalid value for \"filter_ecosystem\", must be one of #{allowable_values}"
|
|
8113
9428
|
end
|
|
8114
|
-
allowable_values = ['Repository', 'Service', 'Host', 'HostImage', 'Image']
|
|
9429
|
+
allowable_values = ['Repository', 'Service', 'Host', 'HostImage', 'Image', 'ServerlessFunction']
|
|
8115
9430
|
if @api_client.config.client_side_validation && opts[:'filter_asset_type'] && !allowable_values.include?(opts[:'filter_asset_type'])
|
|
8116
9431
|
fail ArgumentError, "invalid value for \"filter_asset_type\", must be one of #{allowable_values}"
|
|
8117
9432
|
end
|
|
@@ -8256,7 +9571,7 @@ module DatadogAPIClient::V2
|
|
|
8256
9571
|
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 1
|
|
8257
9572
|
fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling SecurityMonitoringAPI.list_vulnerable_assets, must be greater than or equal to 1.'
|
|
8258
9573
|
end
|
|
8259
|
-
allowable_values = ['Repository', 'Service', 'Host', 'HostImage', 'Image']
|
|
9574
|
+
allowable_values = ['Repository', 'Service', 'Host', 'HostImage', 'Image', 'ServerlessFunction']
|
|
8260
9575
|
if @api_client.config.client_side_validation && opts[:'filter_type'] && !allowable_values.include?(opts[:'filter_type'])
|
|
8261
9576
|
fail ArgumentError, "invalid value for \"filter_type\", must be one of #{allowable_values}"
|
|
8262
9577
|
end
|
|
@@ -8301,7 +9616,221 @@ module DatadogAPIClient::V2
|
|
|
8301
9616
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8302
9617
|
|
|
8303
9618
|
new_options = opts.merge(
|
|
8304
|
-
:operation => :list_vulnerable_assets,
|
|
9619
|
+
:operation => :list_vulnerable_assets,
|
|
9620
|
+
:header_params => header_params,
|
|
9621
|
+
:query_params => query_params,
|
|
9622
|
+
:form_params => form_params,
|
|
9623
|
+
:body => post_body,
|
|
9624
|
+
:auth_names => auth_names,
|
|
9625
|
+
:return_type => return_type,
|
|
9626
|
+
:api_version => "V2"
|
|
9627
|
+
)
|
|
9628
|
+
|
|
9629
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
9630
|
+
if @api_client.config.debugging
|
|
9631
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#list_vulnerable_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9632
|
+
end
|
|
9633
|
+
return data, status_code, headers
|
|
9634
|
+
end
|
|
9635
|
+
|
|
9636
|
+
# Mute or unmute security findings.
|
|
9637
|
+
#
|
|
9638
|
+
# @see #mute_security_findings_with_http_info
|
|
9639
|
+
def mute_security_findings(body, opts = {})
|
|
9640
|
+
data, _status_code, _headers = mute_security_findings_with_http_info(body, opts)
|
|
9641
|
+
data
|
|
9642
|
+
end
|
|
9643
|
+
|
|
9644
|
+
# Mute or unmute security findings.
|
|
9645
|
+
#
|
|
9646
|
+
# Mute or unmute security findings.
|
|
9647
|
+
# You can mute or unmute up to 100 security findings per request. The request body must include `is_muted` and `reason` attributes. The allowed reasons depend on whether the finding is being muted or unmuted:
|
|
9648
|
+
# - To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `OTHER`, `NO_FIX`, `DUPLICATE`, `RISK_ACCEPTED`.
|
|
9649
|
+
# - To unmute a finding: `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`.
|
|
9650
|
+
#
|
|
9651
|
+
# @param body [MuteFindingsRequest]
|
|
9652
|
+
# @param opts [Hash] the optional parameters
|
|
9653
|
+
# @return [Array<(MuteFindingsResponse, Integer, Hash)>] MuteFindingsResponse data, response status code and response headers
|
|
9654
|
+
def mute_security_findings_with_http_info(body, opts = {})
|
|
9655
|
+
|
|
9656
|
+
if @api_client.config.debugging
|
|
9657
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.mute_security_findings ...'
|
|
9658
|
+
end
|
|
9659
|
+
# verify the required parameter 'body' is set
|
|
9660
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
9661
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.mute_security_findings"
|
|
9662
|
+
end
|
|
9663
|
+
# resource path
|
|
9664
|
+
local_var_path = '/api/v2/security/findings/mute'
|
|
9665
|
+
|
|
9666
|
+
# query parameters
|
|
9667
|
+
query_params = opts[:query_params] || {}
|
|
9668
|
+
|
|
9669
|
+
# header parameters
|
|
9670
|
+
header_params = opts[:header_params] || {}
|
|
9671
|
+
# HTTP header 'Accept' (if needed)
|
|
9672
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9673
|
+
# HTTP header 'Content-Type'
|
|
9674
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
9675
|
+
|
|
9676
|
+
# form parameters
|
|
9677
|
+
form_params = opts[:form_params] || {}
|
|
9678
|
+
|
|
9679
|
+
# http body (model)
|
|
9680
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
9681
|
+
|
|
9682
|
+
# return_type
|
|
9683
|
+
return_type = opts[:debug_return_type] || 'MuteFindingsResponse'
|
|
9684
|
+
|
|
9685
|
+
# auth_names
|
|
9686
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
9687
|
+
|
|
9688
|
+
new_options = opts.merge(
|
|
9689
|
+
:operation => :mute_security_findings,
|
|
9690
|
+
:header_params => header_params,
|
|
9691
|
+
:query_params => query_params,
|
|
9692
|
+
:form_params => form_params,
|
|
9693
|
+
:body => post_body,
|
|
9694
|
+
:auth_names => auth_names,
|
|
9695
|
+
:return_type => return_type,
|
|
9696
|
+
:api_version => "V2"
|
|
9697
|
+
)
|
|
9698
|
+
|
|
9699
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
9700
|
+
if @api_client.config.debugging
|
|
9701
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#mute_security_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9702
|
+
end
|
|
9703
|
+
return data, status_code, headers
|
|
9704
|
+
end
|
|
9705
|
+
|
|
9706
|
+
# Patch a signal-based notification rule.
|
|
9707
|
+
#
|
|
9708
|
+
# @see #patch_signal_notification_rule_with_http_info
|
|
9709
|
+
def patch_signal_notification_rule(id, body, opts = {})
|
|
9710
|
+
data, _status_code, _headers = patch_signal_notification_rule_with_http_info(id, body, opts)
|
|
9711
|
+
data
|
|
9712
|
+
end
|
|
9713
|
+
|
|
9714
|
+
# Patch a signal-based notification rule.
|
|
9715
|
+
#
|
|
9716
|
+
# Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated.
|
|
9717
|
+
#
|
|
9718
|
+
# @param id [String] ID of the notification rule.
|
|
9719
|
+
# @param body [PatchNotificationRuleParameters]
|
|
9720
|
+
# @param opts [Hash] the optional parameters
|
|
9721
|
+
# @return [Array<(NotificationRuleResponse, Integer, Hash)>] NotificationRuleResponse data, response status code and response headers
|
|
9722
|
+
def patch_signal_notification_rule_with_http_info(id, body, opts = {})
|
|
9723
|
+
|
|
9724
|
+
if @api_client.config.debugging
|
|
9725
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.patch_signal_notification_rule ...'
|
|
9726
|
+
end
|
|
9727
|
+
# verify the required parameter 'id' is set
|
|
9728
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
9729
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SecurityMonitoringAPI.patch_signal_notification_rule"
|
|
9730
|
+
end
|
|
9731
|
+
# verify the required parameter 'body' is set
|
|
9732
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
9733
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.patch_signal_notification_rule"
|
|
9734
|
+
end
|
|
9735
|
+
# resource path
|
|
9736
|
+
local_var_path = '/api/v2/security/signals/notification_rules/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/'))
|
|
9737
|
+
|
|
9738
|
+
# query parameters
|
|
9739
|
+
query_params = opts[:query_params] || {}
|
|
9740
|
+
|
|
9741
|
+
# header parameters
|
|
9742
|
+
header_params = opts[:header_params] || {}
|
|
9743
|
+
# HTTP header 'Accept' (if needed)
|
|
9744
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9745
|
+
# HTTP header 'Content-Type'
|
|
9746
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
9747
|
+
|
|
9748
|
+
# form parameters
|
|
9749
|
+
form_params = opts[:form_params] || {}
|
|
9750
|
+
|
|
9751
|
+
# http body (model)
|
|
9752
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
9753
|
+
|
|
9754
|
+
# return_type
|
|
9755
|
+
return_type = opts[:debug_return_type] || 'NotificationRuleResponse'
|
|
9756
|
+
|
|
9757
|
+
# auth_names
|
|
9758
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
9759
|
+
|
|
9760
|
+
new_options = opts.merge(
|
|
9761
|
+
:operation => :patch_signal_notification_rule,
|
|
9762
|
+
:header_params => header_params,
|
|
9763
|
+
:query_params => query_params,
|
|
9764
|
+
:form_params => form_params,
|
|
9765
|
+
:body => post_body,
|
|
9766
|
+
:auth_names => auth_names,
|
|
9767
|
+
:return_type => return_type,
|
|
9768
|
+
:api_version => "V2"
|
|
9769
|
+
)
|
|
9770
|
+
|
|
9771
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
9772
|
+
if @api_client.config.debugging
|
|
9773
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#patch_signal_notification_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
9774
|
+
end
|
|
9775
|
+
return data, status_code, headers
|
|
9776
|
+
end
|
|
9777
|
+
|
|
9778
|
+
# Patch a vulnerability-based notification rule.
|
|
9779
|
+
#
|
|
9780
|
+
# @see #patch_vulnerability_notification_rule_with_http_info
|
|
9781
|
+
def patch_vulnerability_notification_rule(id, body, opts = {})
|
|
9782
|
+
data, _status_code, _headers = patch_vulnerability_notification_rule_with_http_info(id, body, opts)
|
|
9783
|
+
data
|
|
9784
|
+
end
|
|
9785
|
+
|
|
9786
|
+
# Patch a vulnerability-based notification rule.
|
|
9787
|
+
#
|
|
9788
|
+
# Partially update the notification rule. All fields are optional; if a field is not provided, it is not updated.
|
|
9789
|
+
#
|
|
9790
|
+
# @param id [String] ID of the notification rule.
|
|
9791
|
+
# @param body [PatchNotificationRuleParameters]
|
|
9792
|
+
# @param opts [Hash] the optional parameters
|
|
9793
|
+
# @return [Array<(NotificationRuleResponse, Integer, Hash)>] NotificationRuleResponse data, response status code and response headers
|
|
9794
|
+
def patch_vulnerability_notification_rule_with_http_info(id, body, opts = {})
|
|
9795
|
+
|
|
9796
|
+
if @api_client.config.debugging
|
|
9797
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.patch_vulnerability_notification_rule ...'
|
|
9798
|
+
end
|
|
9799
|
+
# verify the required parameter 'id' is set
|
|
9800
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
9801
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SecurityMonitoringAPI.patch_vulnerability_notification_rule"
|
|
9802
|
+
end
|
|
9803
|
+
# verify the required parameter 'body' is set
|
|
9804
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
9805
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.patch_vulnerability_notification_rule"
|
|
9806
|
+
end
|
|
9807
|
+
# resource path
|
|
9808
|
+
local_var_path = '/api/v2/security/vulnerabilities/notification_rules/{id}'.sub('{id}', CGI.escape(id.to_s).gsub('%2F', '/'))
|
|
9809
|
+
|
|
9810
|
+
# query parameters
|
|
9811
|
+
query_params = opts[:query_params] || {}
|
|
9812
|
+
|
|
9813
|
+
# header parameters
|
|
9814
|
+
header_params = opts[:header_params] || {}
|
|
9815
|
+
# HTTP header 'Accept' (if needed)
|
|
9816
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
9817
|
+
# HTTP header 'Content-Type'
|
|
9818
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
9819
|
+
|
|
9820
|
+
# form parameters
|
|
9821
|
+
form_params = opts[:form_params] || {}
|
|
9822
|
+
|
|
9823
|
+
# http body (model)
|
|
9824
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
9825
|
+
|
|
9826
|
+
# return_type
|
|
9827
|
+
return_type = opts[:debug_return_type] || 'NotificationRuleResponse'
|
|
9828
|
+
|
|
9829
|
+
# auth_names
|
|
9830
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
9831
|
+
|
|
9832
|
+
new_options = opts.merge(
|
|
9833
|
+
:operation => :patch_vulnerability_notification_rule,
|
|
8305
9834
|
:header_params => header_params,
|
|
8306
9835
|
:query_params => query_params,
|
|
8307
9836
|
:form_params => form_params,
|
|
@@ -8311,42 +9840,45 @@ module DatadogAPIClient::V2
|
|
|
8311
9840
|
:api_version => "V2"
|
|
8312
9841
|
)
|
|
8313
9842
|
|
|
8314
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
9843
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
8315
9844
|
if @api_client.config.debugging
|
|
8316
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
9845
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#patch_vulnerability_notification_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8317
9846
|
end
|
|
8318
9847
|
return data, status_code, headers
|
|
8319
9848
|
end
|
|
8320
9849
|
|
|
8321
|
-
#
|
|
9850
|
+
# Reorder due date rules.
|
|
8322
9851
|
#
|
|
8323
|
-
# @see #
|
|
8324
|
-
def
|
|
8325
|
-
data, _status_code, _headers =
|
|
9852
|
+
# @see #reorder_security_findings_automation_due_date_rules_with_http_info
|
|
9853
|
+
def reorder_security_findings_automation_due_date_rules(body, opts = {})
|
|
9854
|
+
data, _status_code, _headers = reorder_security_findings_automation_due_date_rules_with_http_info(body, opts)
|
|
8326
9855
|
data
|
|
8327
9856
|
end
|
|
8328
9857
|
|
|
8329
|
-
#
|
|
9858
|
+
# Reorder due date rules.
|
|
8330
9859
|
#
|
|
8331
|
-
#
|
|
8332
|
-
# You can mute or unmute up to 100 security findings per request. The request body must include `is_muted` and `reason` attributes. The allowed reasons depend on whether the finding is being muted or unmuted:
|
|
8333
|
-
# - To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `OTHER`, `NO_FIX`, `DUPLICATE`, `RISK_ACCEPTED`.
|
|
8334
|
-
# - To unmute a finding: `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`.
|
|
9860
|
+
# Reorder the list of due date rules for the current organization.
|
|
8335
9861
|
#
|
|
8336
|
-
# @param body [
|
|
9862
|
+
# @param body [DueDateRuleReorderRequest]
|
|
8337
9863
|
# @param opts [Hash] the optional parameters
|
|
8338
|
-
# @return [Array<(
|
|
8339
|
-
def
|
|
9864
|
+
# @return [Array<(DueDateRuleReorderRequest, Integer, Hash)>] DueDateRuleReorderRequest data, response status code and response headers
|
|
9865
|
+
def reorder_security_findings_automation_due_date_rules_with_http_info(body, opts = {})
|
|
9866
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.reorder_security_findings_automation_due_date_rules".to_sym]
|
|
9867
|
+
if unstable_enabled
|
|
9868
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_security_findings_automation_due_date_rules")
|
|
9869
|
+
else
|
|
9870
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_security_findings_automation_due_date_rules"))
|
|
9871
|
+
end
|
|
8340
9872
|
|
|
8341
9873
|
if @api_client.config.debugging
|
|
8342
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
9874
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.reorder_security_findings_automation_due_date_rules ...'
|
|
8343
9875
|
end
|
|
8344
9876
|
# verify the required parameter 'body' is set
|
|
8345
9877
|
if @api_client.config.client_side_validation && body.nil?
|
|
8346
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.
|
|
9878
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.reorder_security_findings_automation_due_date_rules"
|
|
8347
9879
|
end
|
|
8348
9880
|
# resource path
|
|
8349
|
-
local_var_path = '/api/v2/security/findings/
|
|
9881
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules/reorder'
|
|
8350
9882
|
|
|
8351
9883
|
# query parameters
|
|
8352
9884
|
query_params = opts[:query_params] || {}
|
|
@@ -8365,13 +9897,13 @@ module DatadogAPIClient::V2
|
|
|
8365
9897
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
8366
9898
|
|
|
8367
9899
|
# return_type
|
|
8368
|
-
return_type = opts[:debug_return_type] || '
|
|
9900
|
+
return_type = opts[:debug_return_type] || 'DueDateRuleReorderRequest'
|
|
8369
9901
|
|
|
8370
9902
|
# auth_names
|
|
8371
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
9903
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8372
9904
|
|
|
8373
9905
|
new_options = opts.merge(
|
|
8374
|
-
:operation => :
|
|
9906
|
+
:operation => :reorder_security_findings_automation_due_date_rules,
|
|
8375
9907
|
:header_params => header_params,
|
|
8376
9908
|
:query_params => query_params,
|
|
8377
9909
|
:form_params => form_params,
|
|
@@ -8381,44 +9913,45 @@ module DatadogAPIClient::V2
|
|
|
8381
9913
|
:api_version => "V2"
|
|
8382
9914
|
)
|
|
8383
9915
|
|
|
8384
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
9916
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
8385
9917
|
if @api_client.config.debugging
|
|
8386
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
9918
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#reorder_security_findings_automation_due_date_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8387
9919
|
end
|
|
8388
9920
|
return data, status_code, headers
|
|
8389
9921
|
end
|
|
8390
9922
|
|
|
8391
|
-
#
|
|
9923
|
+
# Reorder mute rules.
|
|
8392
9924
|
#
|
|
8393
|
-
# @see #
|
|
8394
|
-
def
|
|
8395
|
-
data, _status_code, _headers =
|
|
9925
|
+
# @see #reorder_security_findings_automation_mute_rules_with_http_info
|
|
9926
|
+
def reorder_security_findings_automation_mute_rules(body, opts = {})
|
|
9927
|
+
data, _status_code, _headers = reorder_security_findings_automation_mute_rules_with_http_info(body, opts)
|
|
8396
9928
|
data
|
|
8397
9929
|
end
|
|
8398
9930
|
|
|
8399
|
-
#
|
|
9931
|
+
# Reorder mute rules.
|
|
8400
9932
|
#
|
|
8401
|
-
#
|
|
9933
|
+
# Reorder the list of mute rules for the current organization.
|
|
8402
9934
|
#
|
|
8403
|
-
# @param
|
|
8404
|
-
# @param body [PatchNotificationRuleParameters]
|
|
9935
|
+
# @param body [MuteRuleReorderRequest]
|
|
8405
9936
|
# @param opts [Hash] the optional parameters
|
|
8406
|
-
# @return [Array<(
|
|
8407
|
-
def
|
|
9937
|
+
# @return [Array<(MuteRuleReorderRequest, Integer, Hash)>] MuteRuleReorderRequest data, response status code and response headers
|
|
9938
|
+
def reorder_security_findings_automation_mute_rules_with_http_info(body, opts = {})
|
|
9939
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.reorder_security_findings_automation_mute_rules".to_sym]
|
|
9940
|
+
if unstable_enabled
|
|
9941
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_security_findings_automation_mute_rules")
|
|
9942
|
+
else
|
|
9943
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_security_findings_automation_mute_rules"))
|
|
9944
|
+
end
|
|
8408
9945
|
|
|
8409
9946
|
if @api_client.config.debugging
|
|
8410
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
8411
|
-
end
|
|
8412
|
-
# verify the required parameter 'id' is set
|
|
8413
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
8414
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling SecurityMonitoringAPI.patch_signal_notification_rule"
|
|
9947
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.reorder_security_findings_automation_mute_rules ...'
|
|
8415
9948
|
end
|
|
8416
9949
|
# verify the required parameter 'body' is set
|
|
8417
9950
|
if @api_client.config.client_side_validation && body.nil?
|
|
8418
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.
|
|
9951
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.reorder_security_findings_automation_mute_rules"
|
|
8419
9952
|
end
|
|
8420
9953
|
# resource path
|
|
8421
|
-
local_var_path = '/api/v2/security/
|
|
9954
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules/reorder'
|
|
8422
9955
|
|
|
8423
9956
|
# query parameters
|
|
8424
9957
|
query_params = opts[:query_params] || {}
|
|
@@ -8437,13 +9970,13 @@ module DatadogAPIClient::V2
|
|
|
8437
9970
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
8438
9971
|
|
|
8439
9972
|
# return_type
|
|
8440
|
-
return_type = opts[:debug_return_type] || '
|
|
9973
|
+
return_type = opts[:debug_return_type] || 'MuteRuleReorderRequest'
|
|
8441
9974
|
|
|
8442
9975
|
# auth_names
|
|
8443
9976
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8444
9977
|
|
|
8445
9978
|
new_options = opts.merge(
|
|
8446
|
-
:operation => :
|
|
9979
|
+
:operation => :reorder_security_findings_automation_mute_rules,
|
|
8447
9980
|
:header_params => header_params,
|
|
8448
9981
|
:query_params => query_params,
|
|
8449
9982
|
:form_params => form_params,
|
|
@@ -8453,44 +9986,45 @@ module DatadogAPIClient::V2
|
|
|
8453
9986
|
:api_version => "V2"
|
|
8454
9987
|
)
|
|
8455
9988
|
|
|
8456
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
9989
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
8457
9990
|
if @api_client.config.debugging
|
|
8458
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
9991
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#reorder_security_findings_automation_mute_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8459
9992
|
end
|
|
8460
9993
|
return data, status_code, headers
|
|
8461
9994
|
end
|
|
8462
9995
|
|
|
8463
|
-
#
|
|
9996
|
+
# Reorder ticket creation rules.
|
|
8464
9997
|
#
|
|
8465
|
-
# @see #
|
|
8466
|
-
def
|
|
8467
|
-
data, _status_code, _headers =
|
|
9998
|
+
# @see #reorder_security_findings_automation_ticket_creation_rules_with_http_info
|
|
9999
|
+
def reorder_security_findings_automation_ticket_creation_rules(body, opts = {})
|
|
10000
|
+
data, _status_code, _headers = reorder_security_findings_automation_ticket_creation_rules_with_http_info(body, opts)
|
|
8468
10001
|
data
|
|
8469
10002
|
end
|
|
8470
10003
|
|
|
8471
|
-
#
|
|
10004
|
+
# Reorder ticket creation rules.
|
|
8472
10005
|
#
|
|
8473
|
-
#
|
|
10006
|
+
# Reorder the list of ticket creation rules for the current organization.
|
|
8474
10007
|
#
|
|
8475
|
-
# @param
|
|
8476
|
-
# @param body [PatchNotificationRuleParameters]
|
|
10008
|
+
# @param body [TicketCreationRuleReorderRequest]
|
|
8477
10009
|
# @param opts [Hash] the optional parameters
|
|
8478
|
-
# @return [Array<(
|
|
8479
|
-
def
|
|
10010
|
+
# @return [Array<(TicketCreationRuleReorderRequest, Integer, Hash)>] TicketCreationRuleReorderRequest data, response status code and response headers
|
|
10011
|
+
def reorder_security_findings_automation_ticket_creation_rules_with_http_info(body, opts = {})
|
|
10012
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.reorder_security_findings_automation_ticket_creation_rules".to_sym]
|
|
10013
|
+
if unstable_enabled
|
|
10014
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_security_findings_automation_ticket_creation_rules")
|
|
10015
|
+
else
|
|
10016
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_security_findings_automation_ticket_creation_rules"))
|
|
10017
|
+
end
|
|
8480
10018
|
|
|
8481
10019
|
if @api_client.config.debugging
|
|
8482
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
8483
|
-
end
|
|
8484
|
-
# verify the required parameter 'id' is set
|
|
8485
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
8486
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling SecurityMonitoringAPI.patch_vulnerability_notification_rule"
|
|
10020
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.reorder_security_findings_automation_ticket_creation_rules ...'
|
|
8487
10021
|
end
|
|
8488
10022
|
# verify the required parameter 'body' is set
|
|
8489
10023
|
if @api_client.config.client_side_validation && body.nil?
|
|
8490
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.
|
|
10024
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.reorder_security_findings_automation_ticket_creation_rules"
|
|
8491
10025
|
end
|
|
8492
10026
|
# resource path
|
|
8493
|
-
local_var_path = '/api/v2/security/
|
|
10027
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules/reorder'
|
|
8494
10028
|
|
|
8495
10029
|
# query parameters
|
|
8496
10030
|
query_params = opts[:query_params] || {}
|
|
@@ -8509,13 +10043,13 @@ module DatadogAPIClient::V2
|
|
|
8509
10043
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
8510
10044
|
|
|
8511
10045
|
# return_type
|
|
8512
|
-
return_type = opts[:debug_return_type] || '
|
|
10046
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRuleReorderRequest'
|
|
8513
10047
|
|
|
8514
10048
|
# auth_names
|
|
8515
10049
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
8516
10050
|
|
|
8517
10051
|
new_options = opts.merge(
|
|
8518
|
-
:operation => :
|
|
10052
|
+
:operation => :reorder_security_findings_automation_ticket_creation_rules,
|
|
8519
10053
|
:header_params => header_params,
|
|
8520
10054
|
:query_params => query_params,
|
|
8521
10055
|
:form_params => form_params,
|
|
@@ -8525,9 +10059,9 @@ module DatadogAPIClient::V2
|
|
|
8525
10059
|
:api_version => "V2"
|
|
8526
10060
|
)
|
|
8527
10061
|
|
|
8528
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
10062
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
8529
10063
|
if @api_client.config.debugging
|
|
8530
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
10064
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#reorder_security_findings_automation_ticket_creation_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8531
10065
|
end
|
|
8532
10066
|
return data, status_code, headers
|
|
8533
10067
|
end
|
|
@@ -9429,6 +10963,240 @@ module DatadogAPIClient::V2
|
|
|
9429
10963
|
return data, status_code, headers
|
|
9430
10964
|
end
|
|
9431
10965
|
|
|
10966
|
+
# Update a due date rule.
|
|
10967
|
+
#
|
|
10968
|
+
# @see #update_security_findings_automation_due_date_rule_with_http_info
|
|
10969
|
+
def update_security_findings_automation_due_date_rule(rule_id, body, opts = {})
|
|
10970
|
+
data, _status_code, _headers = update_security_findings_automation_due_date_rule_with_http_info(rule_id, body, opts)
|
|
10971
|
+
data
|
|
10972
|
+
end
|
|
10973
|
+
|
|
10974
|
+
# Update a due date rule.
|
|
10975
|
+
#
|
|
10976
|
+
# Update an existing due date rule by ID.
|
|
10977
|
+
#
|
|
10978
|
+
# @param rule_id [UUID] The ID of the due date rule.
|
|
10979
|
+
# @param body [DueDateRuleUpdateRequest]
|
|
10980
|
+
# @param opts [Hash] the optional parameters
|
|
10981
|
+
# @return [Array<(DueDateRuleResponse, Integer, Hash)>] DueDateRuleResponse data, response status code and response headers
|
|
10982
|
+
def update_security_findings_automation_due_date_rule_with_http_info(rule_id, body, opts = {})
|
|
10983
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_security_findings_automation_due_date_rule".to_sym]
|
|
10984
|
+
if unstable_enabled
|
|
10985
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_security_findings_automation_due_date_rule")
|
|
10986
|
+
else
|
|
10987
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_security_findings_automation_due_date_rule"))
|
|
10988
|
+
end
|
|
10989
|
+
|
|
10990
|
+
if @api_client.config.debugging
|
|
10991
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.update_security_findings_automation_due_date_rule ...'
|
|
10992
|
+
end
|
|
10993
|
+
# verify the required parameter 'rule_id' is set
|
|
10994
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
10995
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.update_security_findings_automation_due_date_rule"
|
|
10996
|
+
end
|
|
10997
|
+
# verify the required parameter 'body' is set
|
|
10998
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
10999
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_findings_automation_due_date_rule"
|
|
11000
|
+
end
|
|
11001
|
+
# resource path
|
|
11002
|
+
local_var_path = '/api/v2/security/findings/automation/due_date_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
11003
|
+
|
|
11004
|
+
# query parameters
|
|
11005
|
+
query_params = opts[:query_params] || {}
|
|
11006
|
+
|
|
11007
|
+
# header parameters
|
|
11008
|
+
header_params = opts[:header_params] || {}
|
|
11009
|
+
# HTTP header 'Accept' (if needed)
|
|
11010
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
11011
|
+
# HTTP header 'Content-Type'
|
|
11012
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
11013
|
+
|
|
11014
|
+
# form parameters
|
|
11015
|
+
form_params = opts[:form_params] || {}
|
|
11016
|
+
|
|
11017
|
+
# http body (model)
|
|
11018
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
11019
|
+
|
|
11020
|
+
# return_type
|
|
11021
|
+
return_type = opts[:debug_return_type] || 'DueDateRuleResponse'
|
|
11022
|
+
|
|
11023
|
+
# auth_names
|
|
11024
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
11025
|
+
|
|
11026
|
+
new_options = opts.merge(
|
|
11027
|
+
:operation => :update_security_findings_automation_due_date_rule,
|
|
11028
|
+
:header_params => header_params,
|
|
11029
|
+
:query_params => query_params,
|
|
11030
|
+
:form_params => form_params,
|
|
11031
|
+
:body => post_body,
|
|
11032
|
+
:auth_names => auth_names,
|
|
11033
|
+
:return_type => return_type,
|
|
11034
|
+
:api_version => "V2"
|
|
11035
|
+
)
|
|
11036
|
+
|
|
11037
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
11038
|
+
if @api_client.config.debugging
|
|
11039
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#update_security_findings_automation_due_date_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11040
|
+
end
|
|
11041
|
+
return data, status_code, headers
|
|
11042
|
+
end
|
|
11043
|
+
|
|
11044
|
+
# Update a mute rule.
|
|
11045
|
+
#
|
|
11046
|
+
# @see #update_security_findings_automation_mute_rule_with_http_info
|
|
11047
|
+
def update_security_findings_automation_mute_rule(rule_id, body, opts = {})
|
|
11048
|
+
data, _status_code, _headers = update_security_findings_automation_mute_rule_with_http_info(rule_id, body, opts)
|
|
11049
|
+
data
|
|
11050
|
+
end
|
|
11051
|
+
|
|
11052
|
+
# Update a mute rule.
|
|
11053
|
+
#
|
|
11054
|
+
# Update an existing mute rule by ID.
|
|
11055
|
+
#
|
|
11056
|
+
# @param rule_id [UUID] The ID of the mute rule.
|
|
11057
|
+
# @param body [MuteRuleUpdateRequest]
|
|
11058
|
+
# @param opts [Hash] the optional parameters
|
|
11059
|
+
# @return [Array<(MuteRuleResponse, Integer, Hash)>] MuteRuleResponse data, response status code and response headers
|
|
11060
|
+
def update_security_findings_automation_mute_rule_with_http_info(rule_id, body, opts = {})
|
|
11061
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_security_findings_automation_mute_rule".to_sym]
|
|
11062
|
+
if unstable_enabled
|
|
11063
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_security_findings_automation_mute_rule")
|
|
11064
|
+
else
|
|
11065
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_security_findings_automation_mute_rule"))
|
|
11066
|
+
end
|
|
11067
|
+
|
|
11068
|
+
if @api_client.config.debugging
|
|
11069
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.update_security_findings_automation_mute_rule ...'
|
|
11070
|
+
end
|
|
11071
|
+
# verify the required parameter 'rule_id' is set
|
|
11072
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
11073
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.update_security_findings_automation_mute_rule"
|
|
11074
|
+
end
|
|
11075
|
+
# verify the required parameter 'body' is set
|
|
11076
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
11077
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_findings_automation_mute_rule"
|
|
11078
|
+
end
|
|
11079
|
+
# resource path
|
|
11080
|
+
local_var_path = '/api/v2/security/findings/automation/mute_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
11081
|
+
|
|
11082
|
+
# query parameters
|
|
11083
|
+
query_params = opts[:query_params] || {}
|
|
11084
|
+
|
|
11085
|
+
# header parameters
|
|
11086
|
+
header_params = opts[:header_params] || {}
|
|
11087
|
+
# HTTP header 'Accept' (if needed)
|
|
11088
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
11089
|
+
# HTTP header 'Content-Type'
|
|
11090
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
11091
|
+
|
|
11092
|
+
# form parameters
|
|
11093
|
+
form_params = opts[:form_params] || {}
|
|
11094
|
+
|
|
11095
|
+
# http body (model)
|
|
11096
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
11097
|
+
|
|
11098
|
+
# return_type
|
|
11099
|
+
return_type = opts[:debug_return_type] || 'MuteRuleResponse'
|
|
11100
|
+
|
|
11101
|
+
# auth_names
|
|
11102
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
11103
|
+
|
|
11104
|
+
new_options = opts.merge(
|
|
11105
|
+
:operation => :update_security_findings_automation_mute_rule,
|
|
11106
|
+
:header_params => header_params,
|
|
11107
|
+
:query_params => query_params,
|
|
11108
|
+
:form_params => form_params,
|
|
11109
|
+
:body => post_body,
|
|
11110
|
+
:auth_names => auth_names,
|
|
11111
|
+
:return_type => return_type,
|
|
11112
|
+
:api_version => "V2"
|
|
11113
|
+
)
|
|
11114
|
+
|
|
11115
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
11116
|
+
if @api_client.config.debugging
|
|
11117
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#update_security_findings_automation_mute_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11118
|
+
end
|
|
11119
|
+
return data, status_code, headers
|
|
11120
|
+
end
|
|
11121
|
+
|
|
11122
|
+
# Update a ticket creation rule.
|
|
11123
|
+
#
|
|
11124
|
+
# @see #update_security_findings_automation_ticket_creation_rule_with_http_info
|
|
11125
|
+
def update_security_findings_automation_ticket_creation_rule(rule_id, body, opts = {})
|
|
11126
|
+
data, _status_code, _headers = update_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, body, opts)
|
|
11127
|
+
data
|
|
11128
|
+
end
|
|
11129
|
+
|
|
11130
|
+
# Update a ticket creation rule.
|
|
11131
|
+
#
|
|
11132
|
+
# Update an existing ticket creation rule by ID.
|
|
11133
|
+
#
|
|
11134
|
+
# @param rule_id [UUID] The ID of the ticket creation rule.
|
|
11135
|
+
# @param body [TicketCreationRuleUpdateRequest]
|
|
11136
|
+
# @param opts [Hash] the optional parameters
|
|
11137
|
+
# @return [Array<(TicketCreationRuleResponse, Integer, Hash)>] TicketCreationRuleResponse data, response status code and response headers
|
|
11138
|
+
def update_security_findings_automation_ticket_creation_rule_with_http_info(rule_id, body, opts = {})
|
|
11139
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_security_findings_automation_ticket_creation_rule".to_sym]
|
|
11140
|
+
if unstable_enabled
|
|
11141
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_security_findings_automation_ticket_creation_rule")
|
|
11142
|
+
else
|
|
11143
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_security_findings_automation_ticket_creation_rule"))
|
|
11144
|
+
end
|
|
11145
|
+
|
|
11146
|
+
if @api_client.config.debugging
|
|
11147
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.update_security_findings_automation_ticket_creation_rule ...'
|
|
11148
|
+
end
|
|
11149
|
+
# verify the required parameter 'rule_id' is set
|
|
11150
|
+
if @api_client.config.client_side_validation && rule_id.nil?
|
|
11151
|
+
fail ArgumentError, "Missing the required parameter 'rule_id' when calling SecurityMonitoringAPI.update_security_findings_automation_ticket_creation_rule"
|
|
11152
|
+
end
|
|
11153
|
+
# verify the required parameter 'body' is set
|
|
11154
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
11155
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_security_findings_automation_ticket_creation_rule"
|
|
11156
|
+
end
|
|
11157
|
+
# resource path
|
|
11158
|
+
local_var_path = '/api/v2/security/findings/automation/ticket_creation_rules/{rule_id}'.sub('{rule_id}', CGI.escape(rule_id.to_s).gsub('%2F', '/'))
|
|
11159
|
+
|
|
11160
|
+
# query parameters
|
|
11161
|
+
query_params = opts[:query_params] || {}
|
|
11162
|
+
|
|
11163
|
+
# header parameters
|
|
11164
|
+
header_params = opts[:header_params] || {}
|
|
11165
|
+
# HTTP header 'Accept' (if needed)
|
|
11166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
11167
|
+
# HTTP header 'Content-Type'
|
|
11168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
11169
|
+
|
|
11170
|
+
# form parameters
|
|
11171
|
+
form_params = opts[:form_params] || {}
|
|
11172
|
+
|
|
11173
|
+
# http body (model)
|
|
11174
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
11175
|
+
|
|
11176
|
+
# return_type
|
|
11177
|
+
return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse'
|
|
11178
|
+
|
|
11179
|
+
# auth_names
|
|
11180
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
11181
|
+
|
|
11182
|
+
new_options = opts.merge(
|
|
11183
|
+
:operation => :update_security_findings_automation_ticket_creation_rule,
|
|
11184
|
+
:header_params => header_params,
|
|
11185
|
+
:query_params => query_params,
|
|
11186
|
+
:form_params => form_params,
|
|
11187
|
+
:body => post_body,
|
|
11188
|
+
:auth_names => auth_names,
|
|
11189
|
+
:return_type => return_type,
|
|
11190
|
+
:api_version => "V2"
|
|
11191
|
+
)
|
|
11192
|
+
|
|
11193
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
11194
|
+
if @api_client.config.debugging
|
|
11195
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#update_security_findings_automation_ticket_creation_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
11196
|
+
end
|
|
11197
|
+
return data, status_code, headers
|
|
11198
|
+
end
|
|
11199
|
+
|
|
9432
11200
|
# Update a critical asset.
|
|
9433
11201
|
#
|
|
9434
11202
|
# @see #update_security_monitoring_critical_asset_with_http_info
|