datadog_api_client 2.29.1 → 2.30.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/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +591 -464
- data/.generator/schemas/v2/openapi.yaml +4175 -744
- data/.github/CODEOWNERS +5 -5
- data/.github/workflows/docs.yml +2 -2
- data/.github/workflows/prepare_release.yml +1 -1
- data/.github/workflows/test.yml +4 -1
- data/CHANGELOG.md +42 -0
- data/Gemfile +1 -1
- data/LICENSE-3rdparty.csv +1 -1
- data/RELEASING.md +1 -1
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +9 -6
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +0 -6
- data/examples/v1/logs-pipelines/CreateLogsPipeline.rb +1 -0
- data/examples/v1/logs-pipelines/UpdateLogsPipeline.rb +1 -0
- data/examples/v1/monitors/CreateMonitor_1303514967.rb +32 -0
- data/examples/v1/monitors/ListMonitors.rb +1 -1
- data/examples/v1/monitors/{ListMonitors_3448441939.rb → ListMonitors_2154432960.rb} +1 -1
- data/examples/v1/monitors/{ListMonitors_2966492814.rb → ListMonitors_463213563.rb} +1 -1
- data/examples/v2/action-connection/CreateActionConnection.rb +22 -0
- data/examples/v2/action-connection/DeleteActionConnection.rb +5 -0
- data/examples/v2/action-connection/DeleteActionConnection_2142905164.rb +8 -0
- data/examples/v2/action-connection/GetActionConnection.rb +5 -0
- data/examples/v2/action-connection/UpdateActionConnection.rb +22 -0
- data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +5 -0
- data/examples/v2/{apps → app-builder}/CreateApp.rb +4 -4
- data/examples/v2/{apps → app-builder}/DeleteApp.rb +1 -1
- data/examples/v2/{apps → app-builder}/DeleteApps.rb +2 -2
- data/examples/v2/{apps → app-builder}/GetApp.rb +1 -1
- data/examples/v2/{apps → app-builder}/ListApps.rb +1 -1
- data/examples/v2/app-builder/PublishApp.rb +11 -0
- data/examples/v2/app-builder/UnpublishApp.rb +11 -0
- data/examples/v2/{apps → app-builder}/UpdateApp.rb +2 -2
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_819339921.rb +29 -0
- data/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.rb +5 -0
- data/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.rb +5 -0
- data/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.rb +5 -0
- data/examples/v2/data-deletion/CreateDataDeletionRequest.rb +1 -0
- data/examples/v2/events/CreateEvent.rb +1 -1
- data/examples/v2/logs/ListLogs.rb +12 -6
- data/examples/v2/logs/ListLogsGet.rb +1 -1
- data/examples/v2/logs/ListLogsGet_175182691.rb +5 -0
- data/examples/v2/logs/ListLogs_3400928236.rb +23 -0
- data/examples/v2/logs/ListLogs_534975433.rb +29 -0
- data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.rb +15 -0
- data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +15 -0
- data/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.rb +8 -0
- data/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.rb +5 -0
- data/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.rb +15 -0
- data/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.rb +18 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +1 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +1 -0
- data/examples/v2/security-monitoring/CreateSignalNotificationRule.rb +30 -0
- data/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.rb +30 -0
- data/examples/v2/security-monitoring/DeleteSignalNotificationRule.rb +8 -0
- data/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.rb +8 -0
- data/examples/v2/security-monitoring/GetSBOM.rb +5 -0
- data/examples/v2/security-monitoring/GetSignalNotificationRule.rb +8 -0
- data/examples/v2/security-monitoring/GetSignalNotificationRules.rb +5 -0
- data/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.rb +8 -0
- data/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.rb +5 -0
- data/examples/v2/security-monitoring/ListVulnerabilities.rb +10 -0
- data/examples/v2/security-monitoring/ListVulnerableAssets.rb +10 -0
- data/examples/v2/security-monitoring/PatchSignalNotificationRule.rb +35 -0
- data/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.rb +35 -0
- data/examples/v2/security-monitoring/RunHistoricalJob.rb +2 -2
- data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +0 -3
- data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +0 -3
- data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +0 -3
- data/lib/datadog_api_client/configuration.rb +2 -5
- data/lib/datadog_api_client/inflector.rb +145 -44
- data/lib/datadog_api_client/v1/api/monitors_api.rb +28 -4
- data/lib/datadog_api_client/v1/models/azure_account.rb +42 -13
- data/lib/datadog_api_client/v1/models/dashboard.rb +0 -2
- data/lib/datadog_api_client/v1/models/logs_pipeline.rb +23 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_cost_aggregator.rb +34 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_cost_data_source.rb +28 -0
- data/lib/datadog_api_client/v1/models/{azure_account_metrics_config.rb → monitor_formula_and_function_cost_query_definition.rb} +81 -16
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/resource_provider_config.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +184 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +183 -3
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +183 -3
- data/lib/datadog_api_client/v2/api/action_connection_api.rb +295 -0
- data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +86 -0
- data/lib/datadog_api_client/v2/api/{apps_api.rb → app_builder_api.rb} +184 -38
- data/lib/datadog_api_client/v2/api/csm_coverage_analysis_api.rb +212 -0
- data/lib/datadog_api_client/v2/api/logs_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +331 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +13 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +1123 -1
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -19
- data/lib/datadog_api_client/v2/models/action_connection_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/{app_builder_error_errors_items.rb → action_connection_attributes_update.rb} +18 -18
- data/lib/datadog_api_client/v2/models/action_connection_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/{delete_app_response_data_type.rb → action_connection_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/action_connection_data_update.rb +144 -0
- data/lib/datadog_api_client/v2/models/action_connection_integration.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_connection_integration_update.rb +63 -0
- data/lib/datadog_api_client/v2/models/advisory.rb +154 -0
- data/lib/datadog_api_client/v2/models/app_builder_event.rb +1 -1
- data/lib/datadog_api_client/v2/models/{get_app_response_data_type.rb → app_definition_type.rb} +2 -2
- data/lib/datadog_api_client/v2/models/{deployment_included_type.rb → app_deployment_type.rb} +2 -2
- data/lib/datadog_api_client/v2/models/app_meta.rb +15 -25
- data/lib/datadog_api_client/v2/models/{get_app_response_relationship.rb → app_relationship.rb} +5 -5
- data/lib/datadog_api_client/v2/models/asset.rb +165 -0
- data/lib/datadog_api_client/v2/models/asset_attributes.rb +218 -0
- data/lib/datadog_api_client/v2/models/{script_data_type.rb → asset_entity_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/asset_operating_system.rb +133 -0
- data/lib/datadog_api_client/v2/models/asset_risks.rb +163 -0
- data/lib/datadog_api_client/v2/models/asset_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/{disable_app_response_data_attributes.rb → asset_version.rb} +21 -11
- data/lib/datadog_api_client/v2/models/aws_assume_role.rb +191 -0
- data/lib/datadog_api_client/v2/models/{input_schema_data_type.rb → aws_assume_role_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/aws_assume_role_update.rb +166 -0
- data/lib/datadog_api_client/v2/models/aws_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/aws_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/aws_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/{deploy_app_response_data_type.rb → aws_integration_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/aws_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/{input_schema_data.rb → aws_scan_options_data.rb} +8 -8
- data/lib/datadog_api_client/v2/models/aws_scan_options_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/{delete_apps_request_data_items_type.rb → aws_scan_options_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/{deployment_included_meta.rb → code_location.rb} +41 -33
- data/lib/datadog_api_client/v2/models/component.rb +6 -6
- data/lib/datadog_api_client/v2/models/component_grid.rb +6 -6
- data/lib/datadog_api_client/v2/models/component_grid_properties.rb +4 -4
- data/lib/datadog_api_client/v2/models/component_grid_properties_is_visible.rb +1 -1
- data/lib/datadog_api_client/v2/models/component_grid_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/component_properties.rb +3 -3
- data/lib/datadog_api_client/v2/models/component_properties_is_visible.rb +1 -1
- data/lib/datadog_api_client/v2/models/component_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_action_connection_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{script.rb → create_action_connection_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_app_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_app_request_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/create_app_request_data_attributes.rb +19 -41
- data/lib/datadog_api_client/v2/models/create_app_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_app_response_data.rb +5 -5
- data/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data.rb +24 -3
- data/lib/datadog_api_client/v2/models/{disable_app_response_data_type.rb → create_data_deletion_request_body_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/create_notification_rule_parameters.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_notification_rule_parameters_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_notification_rule_parameters_data_attributes.rb +195 -0
- data/lib/datadog_api_client/v2/models/csm_cloud_accounts_coverage_analysis_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/{disable_app_response_data.rb → csm_cloud_accounts_coverage_analysis_data.rb} +9 -19
- data/lib/datadog_api_client/v2/models/csm_cloud_accounts_coverage_analysis_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/csm_coverage_analysis.rb +135 -0
- data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/custom_connection.rb +5 -5
- data/lib/datadog_api_client/v2/models/custom_connection_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/custom_connection_attributes_on_prem_runner.rb +3 -3
- data/lib/datadog_api_client/v2/models/custom_connection_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/cvss.rb +165 -0
- data/lib/datadog_api_client/v2/models/delete_app_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/delete_app_response_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/delete_apps_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/delete_apps_request_data_items.rb +5 -5
- data/lib/datadog_api_client/v2/models/delete_apps_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/delete_apps_response_data_items.rb +5 -5
- data/lib/datadog_api_client/v2/models/dependency_location.rb +207 -0
- data/lib/datadog_api_client/v2/models/{deploy_app_response_data.rb → deployment.rb} +11 -11
- data/lib/datadog_api_client/v2/models/{deploy_app_response_data_attributes.rb → deployment_attributes.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{deployment_relationship_meta.rb → deployment_metadata.rb} +9 -9
- data/lib/datadog_api_client/v2/models/deployment_relationship.rb +4 -4
- data/lib/datadog_api_client/v2/models/deployment_relationship_data.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3.rb +2 -1
- data/lib/datadog_api_client/v2/models/entity_v3_api.rb +180 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api_datadog.rb +126 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api_kind.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api_spec.rb +151 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api_spec_interface_definition.rb +80 -0
- data/lib/datadog_api_client/v2/models/{entity_v3_metadata_owner.rb → entity_v3_api_spec_interface_file_ref.rb} +12 -12
- data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/epss.rb +144 -0
- data/lib/datadog_api_client/v2/models/{input_schema.rb → get_action_connection_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/get_app_response.rb +7 -7
- data/lib/datadog_api_client/v2/models/get_app_response_data.rb +6 -6
- data/lib/datadog_api_client/v2/models/get_app_response_data_attributes.rb +20 -42
- data/lib/datadog_api_client/v2/models/get_sbom_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/historical_job_options.rb +168 -0
- data/lib/datadog_api_client/v2/models/historical_job_query.rb +171 -0
- data/lib/datadog_api_client/v2/models/{app_builder_error.rb → http_body.rb} +21 -13
- data/lib/datadog_api_client/v2/models/http_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/http_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/http_header.rb +150 -0
- data/lib/datadog_api_client/v2/models/http_header_update.rb +149 -0
- data/lib/datadog_api_client/v2/models/http_integration.rb +171 -0
- data/lib/datadog_api_client/v2/models/http_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/http_integration_update.rb +156 -0
- data/lib/datadog_api_client/v2/models/http_token.rb +171 -0
- data/lib/datadog_api_client/v2/models/http_token_auth.rb +169 -0
- data/lib/datadog_api_client/v2/models/http_token_auth_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/http_token_auth_update.rb +169 -0
- data/lib/datadog_api_client/v2/models/http_token_update.rb +181 -0
- data/lib/datadog_api_client/v2/models/job_definition.rb +6 -18
- data/lib/datadog_api_client/v2/models/jsonapi_error_item.rb +21 -1
- data/lib/datadog_api_client/v2/models/{app_builder_error_errors_items_source.rb → jsonapi_error_item_source.rb} +16 -6
- data/lib/datadog_api_client/v2/models/library.rb +133 -0
- data/lib/datadog_api_client/v2/models/links.rb +185 -0
- data/lib/datadog_api_client/v2/models/list_apps_response.rb +5 -5
- data/lib/datadog_api_client/v2/models/list_apps_response_data_items.rb +8 -8
- data/lib/datadog_api_client/v2/models/list_apps_response_data_items_attributes.rb +6 -6
- data/lib/datadog_api_client/v2/models/list_apps_response_data_items_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/list_apps_response_meta.rb +2 -2
- data/lib/datadog_api_client/v2/models/list_apps_response_meta_page.rb +3 -3
- data/lib/datadog_api_client/v2/models/list_vulnerabilities_response.rb +145 -0
- data/lib/datadog_api_client/v2/models/list_vulnerable_assets_response.rb +145 -0
- data/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +11 -1
- data/lib/datadog_api_client/v2/models/logs_archive_encryption_s3.rb +133 -0
- data/lib/datadog_api_client/v2/models/logs_archive_encryption_s3_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/metadata.rb +165 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_workflows_webhook_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_workflows_webhook_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_workflows_webhook_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/{input_schema_data_attributes_parameters_items_data_attributes.rb → microsoft_teams_workflows_webhook_handle_request_attributes.rb} +46 -51
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/{create_app_response_data_type.rb → microsoft_teams_workflows_webhook_handle_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_response_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/notification_rule.rb +168 -0
- data/lib/datadog_api_client/v2/models/notification_rule_attributes.rb +311 -0
- data/lib/datadog_api_client/v2/models/{input_schema_data_attributes_parameters_items.rb → notification_rule_response.rb} +9 -5
- data/lib/datadog_api_client/v2/models/{create_app_request_data_type.rb → notification_rules_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters_data_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/{disable_app_response.rb → publish_app_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/query.rb +7 -7
- data/lib/datadog_api_client/v2/models/query_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/remediation.rb +278 -0
- data/lib/datadog_api_client/v2/models/rule_severity.rb +31 -0
- data/lib/datadog_api_client/v2/models/rule_types_items.rb +42 -0
- data/lib/datadog_api_client/v2/models/{deployment_included_attributes.rb → rule_user.rb} +21 -11
- data/lib/datadog_api_client/v2/models/{script_data.rb → sbom.rb} +8 -8
- data/lib/datadog_api_client/v2/models/sbom_attributes.rb +230 -0
- data/lib/datadog_api_client/v2/models/sbom_component.rb +185 -0
- data/lib/datadog_api_client/v2/models/sbom_component_type.rb +37 -0
- data/lib/datadog_api_client/v2/models/sbom_metadata.rb +105 -0
- data/lib/datadog_api_client/v2/models/{script_data_attributes.rb → sbom_metadata_component.rb} +6 -16
- data/lib/datadog_api_client/v2/models/sbom_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_reference_table.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +6 -6
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +1 -1
- data/lib/datadog_api_client/v2/models/selectors.rb +160 -0
- data/lib/datadog_api_client/v2/models/spec_version.rb +31 -0
- data/lib/datadog_api_client/v2/models/token_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/trigger_source.rb +28 -0
- data/lib/datadog_api_client/v2/models/unpublish_app_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_action_connection_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{deploy_app_response.rb → update_action_connection_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/update_app_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/update_app_request_data.rb +6 -6
- data/lib/datadog_api_client/v2/models/update_app_request_data_attributes.rb +19 -41
- data/lib/datadog_api_client/v2/models/update_app_response.rb +7 -7
- data/lib/datadog_api_client/v2/models/update_app_response_data.rb +6 -6
- data/lib/datadog_api_client/v2/models/update_app_response_data_attributes.rb +20 -42
- data/lib/datadog_api_client/v2/models/url_param.rb +150 -0
- data/lib/datadog_api_client/v2/models/url_param_update.rb +149 -0
- data/lib/datadog_api_client/v2/models/vulnerabilities_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/vulnerability.rb +186 -0
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +462 -0
- data/lib/datadog_api_client/v2/models/{deployment_meta.rb → vulnerability_cvss.rb} +43 -34
- data/lib/datadog_api_client/v2/models/vulnerability_dependency_locations.rb +143 -0
- data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +36 -0
- data/lib/datadog_api_client/v2/models/vulnerability_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/vulnerability_relationships_affects.rb +123 -0
- data/lib/datadog_api_client/v2/models/{deployment_included.rb → vulnerability_relationships_affects_data.rb} +38 -29
- data/lib/datadog_api_client/v2/models/vulnerability_risks.rb +198 -0
- data/lib/datadog_api_client/v2/models/vulnerability_severity.rb +31 -0
- data/lib/datadog_api_client/v2/models/vulnerability_status.rb +30 -0
- data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +28 -0
- data/lib/datadog_api_client/v2/models/vulnerability_type.rb +67 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +194 -56
- data/examples/v2/app-deployment/DeployApp.rb +0 -11
- data/examples/v2/app-deployment/DisableApp.rb +0 -11
- data/lib/datadog_api_client/v2/api/app_deployment_api.rb +0 -168
- data/lib/datadog_api_client/v2/models/delete_apps_response_data_items_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/deployment_relationship_data_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/input_schema_data_attributes.rb +0 -107
- data/lib/datadog_api_client/v2/models/input_schema_data_attributes_parameters_items_data.rb +0 -105
- data/lib/datadog_api_client/v2/models/list_apps_response_data_items_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/update_app_request_data_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/update_app_response_data_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/update_app_response_relationship.rb +0 -117
|
@@ -17,7 +17,7 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
# Reference
|
|
20
|
+
# Reference tables used in the queries.
|
|
21
21
|
class SecurityMonitoringReferenceTable
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
@@ -30,7 +30,7 @@ module DatadogAPIClient::V2
|
|
|
30
30
|
# The field in the log to match against the reference table.
|
|
31
31
|
attr_accessor :log_field_path
|
|
32
32
|
|
|
33
|
-
# The name of the
|
|
33
|
+
# The name of the query to apply the reference table to.
|
|
34
34
|
attr_accessor :rule_query_name
|
|
35
35
|
|
|
36
36
|
# The name of the reference table.
|
|
@@ -21,14 +21,14 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class SecurityMonitoringRuleCaseCreate
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# A
|
|
24
|
+
# A case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated
|
|
25
25
|
# based on the event counts in the previously defined queries.
|
|
26
26
|
attr_accessor :condition
|
|
27
27
|
|
|
28
28
|
# Name of the case.
|
|
29
29
|
attr_accessor :name
|
|
30
30
|
|
|
31
|
-
# Notification targets
|
|
31
|
+
# Notification targets.
|
|
32
32
|
attr_accessor :notifications
|
|
33
33
|
|
|
34
34
|
# Severity of the Security Signal.
|
|
@@ -18,7 +18,7 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# A time window is specified to match when at least one of the cases matches true. This is a sliding window
|
|
21
|
-
# and evaluates in real time. For third party
|
|
21
|
+
# and evaluates in real time. For third party detection method, this field is not used.
|
|
22
22
|
class SecurityMonitoringRuleEvaluationWindow
|
|
23
23
|
include BaseEnumModel
|
|
24
24
|
|
|
@@ -18,7 +18,7 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# Once a signal is generated, the signal will remain “open” if a case is matched at least once within
|
|
21
|
-
# this keep alive window. For third party
|
|
21
|
+
# this keep alive window. For third party detection method, this field is not used.
|
|
22
22
|
class SecurityMonitoringRuleKeepAlive
|
|
23
23
|
include BaseEnumModel
|
|
24
24
|
|
|
@@ -17,7 +17,7 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
# Options
|
|
20
|
+
# Options.
|
|
21
21
|
class SecurityMonitoringRuleOptions
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
@@ -35,27 +35,27 @@ module DatadogAPIClient::V2
|
|
|
35
35
|
attr_accessor :detection_method
|
|
36
36
|
|
|
37
37
|
# A time window is specified to match when at least one of the cases matches true. This is a sliding window
|
|
38
|
-
# and evaluates in real time. For third party
|
|
38
|
+
# and evaluates in real time. For third party detection method, this field is not used.
|
|
39
39
|
attr_accessor :evaluation_window
|
|
40
40
|
|
|
41
41
|
# Hardcoded evaluator type.
|
|
42
42
|
attr_accessor :hardcoded_evaluator_type
|
|
43
43
|
|
|
44
|
-
# Options on impossible travel
|
|
44
|
+
# Options on impossible travel detection method.
|
|
45
45
|
attr_accessor :impossible_travel_options
|
|
46
46
|
|
|
47
47
|
# Once a signal is generated, the signal will remain “open” if a case is matched at least once within
|
|
48
|
-
# this keep alive window. For third party
|
|
48
|
+
# this keep alive window. For third party detection method, this field is not used.
|
|
49
49
|
attr_accessor :keep_alive
|
|
50
50
|
|
|
51
51
|
# A signal will “close” regardless of the query being matched once the time exceeds the maximum duration.
|
|
52
52
|
# This time is calculated from the first seen timestamp.
|
|
53
53
|
attr_accessor :max_signal_duration
|
|
54
54
|
|
|
55
|
-
# Options on new value
|
|
55
|
+
# Options on new value detection method.
|
|
56
56
|
attr_accessor :new_value_options
|
|
57
57
|
|
|
58
|
-
# Options on third party
|
|
58
|
+
# Options on third party detection method.
|
|
59
59
|
attr_accessor :third_party_rule_options
|
|
60
60
|
|
|
61
61
|
attr_accessor :additional_properties
|
|
@@ -48,6 +48,9 @@ module DatadogAPIClient::V2
|
|
|
48
48
|
# The rule query of the suppression rule, with the same syntax as the search bar for detection rules.
|
|
49
49
|
attr_accessor :rule_query
|
|
50
50
|
|
|
51
|
+
# A Unix millisecond timestamp giving the start date for the suppression rule. After this date, it starts suppressing signals.
|
|
52
|
+
attr_accessor :start_date
|
|
53
|
+
|
|
51
54
|
# The suppression query of the suppression rule. If a signal matches this query, it is suppressed and not triggered. Same syntax as the queries to search signals in the signal explorer.
|
|
52
55
|
attr_accessor :suppression_query
|
|
53
56
|
|
|
@@ -75,6 +78,7 @@ module DatadogAPIClient::V2
|
|
|
75
78
|
:'expiration_date' => :'expiration_date',
|
|
76
79
|
:'name' => :'name',
|
|
77
80
|
:'rule_query' => :'rule_query',
|
|
81
|
+
:'start_date' => :'start_date',
|
|
78
82
|
:'suppression_query' => :'suppression_query',
|
|
79
83
|
:'update_date' => :'update_date',
|
|
80
84
|
:'updater' => :'updater',
|
|
@@ -95,6 +99,7 @@ module DatadogAPIClient::V2
|
|
|
95
99
|
:'expiration_date' => :'Integer',
|
|
96
100
|
:'name' => :'String',
|
|
97
101
|
:'rule_query' => :'String',
|
|
102
|
+
:'start_date' => :'Integer',
|
|
98
103
|
:'suppression_query' => :'String',
|
|
99
104
|
:'update_date' => :'Integer',
|
|
100
105
|
:'updater' => :'SecurityMonitoringUser',
|
|
@@ -156,6 +161,10 @@ module DatadogAPIClient::V2
|
|
|
156
161
|
self.rule_query = attributes[:'rule_query']
|
|
157
162
|
end
|
|
158
163
|
|
|
164
|
+
if attributes.key?(:'start_date')
|
|
165
|
+
self.start_date = attributes[:'start_date']
|
|
166
|
+
end
|
|
167
|
+
|
|
159
168
|
if attributes.key?(:'suppression_query')
|
|
160
169
|
self.suppression_query = attributes[:'suppression_query']
|
|
161
170
|
end
|
|
@@ -226,6 +235,7 @@ module DatadogAPIClient::V2
|
|
|
226
235
|
expiration_date == o.expiration_date &&
|
|
227
236
|
name == o.name &&
|
|
228
237
|
rule_query == o.rule_query &&
|
|
238
|
+
start_date == o.start_date &&
|
|
229
239
|
suppression_query == o.suppression_query &&
|
|
230
240
|
update_date == o.update_date &&
|
|
231
241
|
updater == o.updater &&
|
|
@@ -237,7 +247,7 @@ module DatadogAPIClient::V2
|
|
|
237
247
|
# @return [Integer] Hash code
|
|
238
248
|
# @!visibility private
|
|
239
249
|
def hash
|
|
240
|
-
[creation_date, creator, data_exclusion_query, description, editable, enabled, expiration_date, name, rule_query, suppression_query, update_date, updater, version, additional_properties].hash
|
|
250
|
+
[creation_date, creator, data_exclusion_query, description, editable, enabled, expiration_date, name, rule_query, start_date, suppression_query, update_date, updater, version, additional_properties].hash
|
|
241
251
|
end
|
|
242
252
|
end
|
|
243
253
|
end
|
|
@@ -39,6 +39,9 @@ module DatadogAPIClient::V2
|
|
|
39
39
|
# The rule query of the suppression rule, with the same syntax as the search bar for detection rules.
|
|
40
40
|
attr_reader :rule_query
|
|
41
41
|
|
|
42
|
+
# A Unix millisecond timestamp giving the start date for the suppression rule. After this date, it starts suppressing signals.
|
|
43
|
+
attr_accessor :start_date
|
|
44
|
+
|
|
42
45
|
# The suppression query of the suppression rule. If a signal matches this query, it is suppressed and is not triggered. It uses the same syntax as the queries to search signals in the Signals Explorer.
|
|
43
46
|
attr_accessor :suppression_query
|
|
44
47
|
|
|
@@ -54,6 +57,7 @@ module DatadogAPIClient::V2
|
|
|
54
57
|
:'expiration_date' => :'expiration_date',
|
|
55
58
|
:'name' => :'name',
|
|
56
59
|
:'rule_query' => :'rule_query',
|
|
60
|
+
:'start_date' => :'start_date',
|
|
57
61
|
:'suppression_query' => :'suppression_query'
|
|
58
62
|
}
|
|
59
63
|
end
|
|
@@ -68,6 +72,7 @@ module DatadogAPIClient::V2
|
|
|
68
72
|
:'expiration_date' => :'Integer',
|
|
69
73
|
:'name' => :'String',
|
|
70
74
|
:'rule_query' => :'String',
|
|
75
|
+
:'start_date' => :'Integer',
|
|
71
76
|
:'suppression_query' => :'String'
|
|
72
77
|
}
|
|
73
78
|
end
|
|
@@ -114,6 +119,10 @@ module DatadogAPIClient::V2
|
|
|
114
119
|
self.rule_query = attributes[:'rule_query']
|
|
115
120
|
end
|
|
116
121
|
|
|
122
|
+
if attributes.key?(:'start_date')
|
|
123
|
+
self.start_date = attributes[:'start_date']
|
|
124
|
+
end
|
|
125
|
+
|
|
117
126
|
if attributes.key?(:'suppression_query')
|
|
118
127
|
self.suppression_query = attributes[:'suppression_query']
|
|
119
128
|
end
|
|
@@ -191,6 +200,7 @@ module DatadogAPIClient::V2
|
|
|
191
200
|
expiration_date == o.expiration_date &&
|
|
192
201
|
name == o.name &&
|
|
193
202
|
rule_query == o.rule_query &&
|
|
203
|
+
start_date == o.start_date &&
|
|
194
204
|
suppression_query == o.suppression_query &&
|
|
195
205
|
additional_properties == o.additional_properties
|
|
196
206
|
end
|
|
@@ -199,7 +209,7 @@ module DatadogAPIClient::V2
|
|
|
199
209
|
# @return [Integer] Hash code
|
|
200
210
|
# @!visibility private
|
|
201
211
|
def hash
|
|
202
|
-
[data_exclusion_query, description, enabled, expiration_date, name, rule_query, suppression_query, additional_properties].hash
|
|
212
|
+
[data_exclusion_query, description, enabled, expiration_date, name, rule_query, start_date, suppression_query, additional_properties].hash
|
|
203
213
|
end
|
|
204
214
|
end
|
|
205
215
|
end
|
|
@@ -39,6 +39,9 @@ module DatadogAPIClient::V2
|
|
|
39
39
|
# The rule query of the suppression rule, with the same syntax as the search bar for detection rules.
|
|
40
40
|
attr_accessor :rule_query
|
|
41
41
|
|
|
42
|
+
# A Unix millisecond timestamp giving the start date for the suppression rule. After this date, it starts suppressing signals. If unset, the start date of the suppression rule is left untouched. If set to `null`, the start date is removed.
|
|
43
|
+
attr_accessor :start_date
|
|
44
|
+
|
|
42
45
|
# The suppression query of the suppression rule. If a signal matches this query, it is suppressed and not triggered. Same syntax as the queries to search signals in the signal explorer.
|
|
43
46
|
attr_accessor :suppression_query
|
|
44
47
|
|
|
@@ -57,6 +60,7 @@ module DatadogAPIClient::V2
|
|
|
57
60
|
:'expiration_date' => :'expiration_date',
|
|
58
61
|
:'name' => :'name',
|
|
59
62
|
:'rule_query' => :'rule_query',
|
|
63
|
+
:'start_date' => :'start_date',
|
|
60
64
|
:'suppression_query' => :'suppression_query',
|
|
61
65
|
:'version' => :'version'
|
|
62
66
|
}
|
|
@@ -72,6 +76,7 @@ module DatadogAPIClient::V2
|
|
|
72
76
|
:'expiration_date' => :'Integer',
|
|
73
77
|
:'name' => :'String',
|
|
74
78
|
:'rule_query' => :'String',
|
|
79
|
+
:'start_date' => :'Integer',
|
|
75
80
|
:'suppression_query' => :'String',
|
|
76
81
|
:'version' => :'Integer'
|
|
77
82
|
}
|
|
@@ -82,6 +87,7 @@ module DatadogAPIClient::V2
|
|
|
82
87
|
def self.openapi_nullable
|
|
83
88
|
Set.new([
|
|
84
89
|
:'expiration_date',
|
|
90
|
+
:'start_date',
|
|
85
91
|
])
|
|
86
92
|
end
|
|
87
93
|
|
|
@@ -127,6 +133,10 @@ module DatadogAPIClient::V2
|
|
|
127
133
|
self.rule_query = attributes[:'rule_query']
|
|
128
134
|
end
|
|
129
135
|
|
|
136
|
+
if attributes.key?(:'start_date')
|
|
137
|
+
self.start_date = attributes[:'start_date']
|
|
138
|
+
end
|
|
139
|
+
|
|
130
140
|
if attributes.key?(:'suppression_query')
|
|
131
141
|
self.suppression_query = attributes[:'suppression_query']
|
|
132
142
|
end
|
|
@@ -186,6 +196,7 @@ module DatadogAPIClient::V2
|
|
|
186
196
|
expiration_date == o.expiration_date &&
|
|
187
197
|
name == o.name &&
|
|
188
198
|
rule_query == o.rule_query &&
|
|
199
|
+
start_date == o.start_date &&
|
|
189
200
|
suppression_query == o.suppression_query &&
|
|
190
201
|
version == o.version &&
|
|
191
202
|
additional_properties == o.additional_properties
|
|
@@ -195,7 +206,7 @@ module DatadogAPIClient::V2
|
|
|
195
206
|
# @return [Integer] Hash code
|
|
196
207
|
# @!visibility private
|
|
197
208
|
def hash
|
|
198
|
-
[data_exclusion_query, description, enabled, expiration_date, name, rule_query, suppression_query, version, additional_properties].hash
|
|
209
|
+
[data_exclusion_query, description, enabled, expiration_date, name, rule_query, start_date, suppression_query, version, additional_properties].hash
|
|
199
210
|
end
|
|
200
211
|
end
|
|
201
212
|
end
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# Selectors are used to filter security issues for which notifications should be generated.
|
|
21
|
+
# Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source.
|
|
22
|
+
# Only the trigger_source field is required.
|
|
23
|
+
class Selectors
|
|
24
|
+
include BaseGenericModel
|
|
25
|
+
|
|
26
|
+
# The query is composed of one or several key:value pairs, which can be used to filter security issues on tags and attributes.
|
|
27
|
+
attr_accessor :query
|
|
28
|
+
|
|
29
|
+
# Security rule types used to filter signals and vulnerabilities generating notifications.
|
|
30
|
+
attr_accessor :rule_types
|
|
31
|
+
|
|
32
|
+
# The security rules severities to consider.
|
|
33
|
+
attr_accessor :severities
|
|
34
|
+
|
|
35
|
+
# The type of security issues on which the rule applies. Notification rules based on security signals need to use the trigger source "security_signals",
|
|
36
|
+
# while notification rules based on security vulnerabilities need to use the trigger source "security_findings".
|
|
37
|
+
attr_reader :trigger_source
|
|
38
|
+
|
|
39
|
+
attr_accessor :additional_properties
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'query' => :'query',
|
|
46
|
+
:'rule_types' => :'rule_types',
|
|
47
|
+
:'severities' => :'severities',
|
|
48
|
+
:'trigger_source' => :'trigger_source'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Attribute type mapping.
|
|
53
|
+
# @!visibility private
|
|
54
|
+
def self.openapi_types
|
|
55
|
+
{
|
|
56
|
+
:'query' => :'String',
|
|
57
|
+
:'rule_types' => :'Array<RuleTypesItems>',
|
|
58
|
+
:'severities' => :'Array<RuleSeverity>',
|
|
59
|
+
:'trigger_source' => :'TriggerSource'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Initializes the object
|
|
64
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
65
|
+
# @!visibility private
|
|
66
|
+
def initialize(attributes = {})
|
|
67
|
+
if (!attributes.is_a?(Hash))
|
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Selectors` initialize method"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
self.additional_properties = {}
|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
75
|
+
self.additional_properties[k.to_sym] = v
|
|
76
|
+
else
|
|
77
|
+
h[k.to_sym] = v
|
|
78
|
+
end
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'query')
|
|
82
|
+
self.query = attributes[:'query']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'rule_types')
|
|
86
|
+
if (value = attributes[:'rule_types']).is_a?(Array)
|
|
87
|
+
self.rule_types = value
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'severities')
|
|
92
|
+
if (value = attributes[:'severities']).is_a?(Array)
|
|
93
|
+
self.severities = value
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'trigger_source')
|
|
98
|
+
self.trigger_source = attributes[:'trigger_source']
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Check to see if the all the properties in the model are valid
|
|
103
|
+
# @return true if the model is valid
|
|
104
|
+
# @!visibility private
|
|
105
|
+
def valid?
|
|
106
|
+
return false if @trigger_source.nil?
|
|
107
|
+
true
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Custom attribute writer method with validation
|
|
111
|
+
# @param trigger_source [Object] Object to be assigned
|
|
112
|
+
# @!visibility private
|
|
113
|
+
def trigger_source=(trigger_source)
|
|
114
|
+
if trigger_source.nil?
|
|
115
|
+
fail ArgumentError, 'invalid value for "trigger_source", trigger_source cannot be nil.'
|
|
116
|
+
end
|
|
117
|
+
@trigger_source = trigger_source
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
121
|
+
# @return [Hash] Returns the object in the form of hash
|
|
122
|
+
# @!visibility private
|
|
123
|
+
def to_hash
|
|
124
|
+
hash = {}
|
|
125
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
126
|
+
value = self.send(attr)
|
|
127
|
+
if value.nil?
|
|
128
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
129
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
hash[param] = _to_hash(value)
|
|
133
|
+
end
|
|
134
|
+
self.additional_properties.each_pair do |attr, value|
|
|
135
|
+
hash[attr] = value
|
|
136
|
+
end
|
|
137
|
+
hash
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Checks equality by comparing each attribute.
|
|
141
|
+
# @param o [Object] Object to be compared
|
|
142
|
+
# @!visibility private
|
|
143
|
+
def ==(o)
|
|
144
|
+
return true if self.equal?(o)
|
|
145
|
+
self.class == o.class &&
|
|
146
|
+
query == o.query &&
|
|
147
|
+
rule_types == o.rule_types &&
|
|
148
|
+
severities == o.severities &&
|
|
149
|
+
trigger_source == o.trigger_source &&
|
|
150
|
+
additional_properties == o.additional_properties
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Calculates hash code according to all attributes.
|
|
154
|
+
# @return [Integer] Hash code
|
|
155
|
+
# @!visibility private
|
|
156
|
+
def hash
|
|
157
|
+
[query, rule_types, severities, trigger_source, additional_properties].hash
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The version of the CycloneDX specification a BOM conforms to.
|
|
21
|
+
class SpecVersion
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
ONE_ZERO = "1.0".freeze
|
|
25
|
+
ONE_ONE = "1.1".freeze
|
|
26
|
+
ONE_TWO = "1.2".freeze
|
|
27
|
+
ONE_THREE = "1.3".freeze
|
|
28
|
+
ONE_FOUR = "1.4".freeze
|
|
29
|
+
ONE_FIVE = "1.5".freeze
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The definition of `TokenType` object.
|
|
21
|
+
class TokenType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
SECRET = "SECRET".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The type of security issues on which the rule applies. Notification rules based on security signals need to use the trigger source "security_signals",
|
|
21
|
+
# while notification rules based on security vulnerabilities need to use the trigger source "security_findings".
|
|
22
|
+
class TriggerSource
|
|
23
|
+
include BaseEnumModel
|
|
24
|
+
|
|
25
|
+
SECURITY_FINDINGS = "security_findings".freeze
|
|
26
|
+
SECURITY_SIGNALS = "security_signals".freeze
|
|
27
|
+
end
|
|
28
|
+
end
|