datadog_api_client 2.29.1 → 2.30.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,165 @@
|
|
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
|
+
# Attributes of the notification rule patch request. It is required to update the version of the rule when patching it.
|
21
|
+
class PatchNotificationRuleParametersDataAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Field used to enable or disable the rule.
|
25
|
+
attr_accessor :enabled
|
26
|
+
|
27
|
+
# Name of the notification rule.
|
28
|
+
attr_accessor :name
|
29
|
+
|
30
|
+
# Selectors are used to filter security issues for which notifications should be generated.
|
31
|
+
# Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source.
|
32
|
+
# Only the trigger_source field is required.
|
33
|
+
attr_accessor :selectors
|
34
|
+
|
35
|
+
# List of recipients to notify when a notification rule is triggered. Many different target types are supported,
|
36
|
+
# such as email addresses, Slack channels, and PagerDuty services.
|
37
|
+
# The appropriate integrations need to be properly configured to send notifications to the specified targets.
|
38
|
+
attr_accessor :targets
|
39
|
+
|
40
|
+
# Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation.
|
41
|
+
# Results are aggregated over a selected time frame using a rolling window, which updates with each new evaluation.
|
42
|
+
# Notifications are only sent for new issues discovered during the window.
|
43
|
+
# Time aggregation is only available for vulnerability-based notification rules. When omitted or set to 0, no aggregation
|
44
|
+
# is done.
|
45
|
+
attr_accessor :time_aggregation
|
46
|
+
|
47
|
+
# Version of the notification rule. It is updated when the rule is modified.
|
48
|
+
attr_accessor :version
|
49
|
+
|
50
|
+
attr_accessor :additional_properties
|
51
|
+
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
53
|
+
# @!visibility private
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
:'enabled' => :'enabled',
|
57
|
+
:'name' => :'name',
|
58
|
+
:'selectors' => :'selectors',
|
59
|
+
:'targets' => :'targets',
|
60
|
+
:'time_aggregation' => :'time_aggregation',
|
61
|
+
:'version' => :'version'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
# @!visibility private
|
67
|
+
def self.openapi_types
|
68
|
+
{
|
69
|
+
:'enabled' => :'Boolean',
|
70
|
+
:'name' => :'String',
|
71
|
+
:'selectors' => :'Selectors',
|
72
|
+
:'targets' => :'Array<String>',
|
73
|
+
:'time_aggregation' => :'Integer',
|
74
|
+
:'version' => :'Integer'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# Initializes the object
|
79
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
80
|
+
# @!visibility private
|
81
|
+
def initialize(attributes = {})
|
82
|
+
if (!attributes.is_a?(Hash))
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PatchNotificationRuleParametersDataAttributes` initialize method"
|
84
|
+
end
|
85
|
+
|
86
|
+
self.additional_properties = {}
|
87
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
88
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
89
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
90
|
+
self.additional_properties[k.to_sym] = v
|
91
|
+
else
|
92
|
+
h[k.to_sym] = v
|
93
|
+
end
|
94
|
+
}
|
95
|
+
|
96
|
+
if attributes.key?(:'enabled')
|
97
|
+
self.enabled = attributes[:'enabled']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'name')
|
101
|
+
self.name = attributes[:'name']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'selectors')
|
105
|
+
self.selectors = attributes[:'selectors']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'targets')
|
109
|
+
if (value = attributes[:'targets']).is_a?(Array)
|
110
|
+
self.targets = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'time_aggregation')
|
115
|
+
self.time_aggregation = attributes[:'time_aggregation']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'version')
|
119
|
+
self.version = attributes[:'version']
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
124
|
+
# @return [Hash] Returns the object in the form of hash
|
125
|
+
# @!visibility private
|
126
|
+
def to_hash
|
127
|
+
hash = {}
|
128
|
+
self.class.attribute_map.each_pair do |attr, param|
|
129
|
+
value = self.send(attr)
|
130
|
+
if value.nil?
|
131
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
132
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
133
|
+
end
|
134
|
+
|
135
|
+
hash[param] = _to_hash(value)
|
136
|
+
end
|
137
|
+
self.additional_properties.each_pair do |attr, value|
|
138
|
+
hash[attr] = value
|
139
|
+
end
|
140
|
+
hash
|
141
|
+
end
|
142
|
+
|
143
|
+
# Checks equality by comparing each attribute.
|
144
|
+
# @param o [Object] Object to be compared
|
145
|
+
# @!visibility private
|
146
|
+
def ==(o)
|
147
|
+
return true if self.equal?(o)
|
148
|
+
self.class == o.class &&
|
149
|
+
enabled == o.enabled &&
|
150
|
+
name == o.name &&
|
151
|
+
selectors == o.selectors &&
|
152
|
+
targets == o.targets &&
|
153
|
+
time_aggregation == o.time_aggregation &&
|
154
|
+
version == o.version &&
|
155
|
+
additional_properties == o.additional_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Calculates hash code according to all attributes.
|
159
|
+
# @return [Integer] Hash code
|
160
|
+
# @!visibility private
|
161
|
+
def hash
|
162
|
+
[enabled, name, selectors, targets, time_aggregation, version, additional_properties].hash
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -17,11 +17,11 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
# The
|
21
|
-
class
|
20
|
+
# The response object after an app is successfully published.
|
21
|
+
class PublishAppResponse
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# The
|
24
|
+
# The version of the app that was published.
|
25
25
|
attr_accessor :data
|
26
26
|
|
27
27
|
attr_accessor :additional_properties
|
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
|
|
38
38
|
# @!visibility private
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'data' => :'
|
41
|
+
:'data' => :'Deployment'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
|
|
47
47
|
# @!visibility private
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PublishAppResponse` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
self.additional_properties = {}
|
@@ -17,23 +17,23 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
#
|
20
|
+
# A query used by an app. This can take the form of an external action, a data transformation, or a state variable change.
|
21
21
|
class Query
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
#
|
24
|
+
# Events to listen for downstream of the query.
|
25
25
|
attr_accessor :events
|
26
26
|
|
27
|
-
# The
|
27
|
+
# The ID of the query.
|
28
28
|
attr_reader :id
|
29
29
|
|
30
|
-
# The
|
30
|
+
# The name of the query. The name must be unique within the app and is visible in the app editor.
|
31
31
|
attr_reader :name
|
32
32
|
|
33
|
-
# The
|
33
|
+
# The properties of the query. The properties vary depending on the query type.
|
34
34
|
attr_accessor :properties
|
35
35
|
|
36
|
-
# The
|
36
|
+
# The query type.
|
37
37
|
attr_reader :type
|
38
38
|
|
39
39
|
attr_accessor :additional_properties
|
@@ -55,7 +55,7 @@ module DatadogAPIClient::V2
|
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
57
|
:'events' => :'Array<AppBuilderEvent>',
|
58
|
-
:'id' => :'
|
58
|
+
:'id' => :'UUID',
|
59
59
|
:'name' => :'String',
|
60
60
|
:'properties' => :'Object',
|
61
61
|
:'type' => :'QueryType'
|
@@ -0,0 +1,278 @@
|
|
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
|
+
# Vulnerability remediation.
|
21
|
+
class Remediation
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the vulnerability can be resolved when recompiling the package or not.
|
25
|
+
attr_reader :auto_solvable
|
26
|
+
|
27
|
+
# Avoided advisories.
|
28
|
+
attr_reader :avoided_advisories
|
29
|
+
|
30
|
+
# Remediation fixed advisories.
|
31
|
+
attr_reader :fixed_advisories
|
32
|
+
|
33
|
+
# Library name remediating the vulnerability.
|
34
|
+
attr_reader :library_name
|
35
|
+
|
36
|
+
# Library version remediating the vulnerability.
|
37
|
+
attr_reader :library_version
|
38
|
+
|
39
|
+
# New advisories.
|
40
|
+
attr_reader :new_advisories
|
41
|
+
|
42
|
+
# Remaining advisories.
|
43
|
+
attr_reader :remaining_advisories
|
44
|
+
|
45
|
+
# Remediation type.
|
46
|
+
attr_reader :type
|
47
|
+
|
48
|
+
attr_accessor :additional_properties
|
49
|
+
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
51
|
+
# @!visibility private
|
52
|
+
def self.attribute_map
|
53
|
+
{
|
54
|
+
:'auto_solvable' => :'auto_solvable',
|
55
|
+
:'avoided_advisories' => :'avoided_advisories',
|
56
|
+
:'fixed_advisories' => :'fixed_advisories',
|
57
|
+
:'library_name' => :'library_name',
|
58
|
+
:'library_version' => :'library_version',
|
59
|
+
:'new_advisories' => :'new_advisories',
|
60
|
+
:'remaining_advisories' => :'remaining_advisories',
|
61
|
+
:'type' => :'type'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
# @!visibility private
|
67
|
+
def self.openapi_types
|
68
|
+
{
|
69
|
+
:'auto_solvable' => :'Boolean',
|
70
|
+
:'avoided_advisories' => :'Array<Advisory>',
|
71
|
+
:'fixed_advisories' => :'Array<Advisory>',
|
72
|
+
:'library_name' => :'String',
|
73
|
+
:'library_version' => :'String',
|
74
|
+
:'new_advisories' => :'Array<Advisory>',
|
75
|
+
:'remaining_advisories' => :'Array<Advisory>',
|
76
|
+
:'type' => :'String'
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
80
|
+
# Initializes the object
|
81
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
82
|
+
# @!visibility private
|
83
|
+
def initialize(attributes = {})
|
84
|
+
if (!attributes.is_a?(Hash))
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Remediation` initialize method"
|
86
|
+
end
|
87
|
+
|
88
|
+
self.additional_properties = {}
|
89
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
91
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
92
|
+
self.additional_properties[k.to_sym] = v
|
93
|
+
else
|
94
|
+
h[k.to_sym] = v
|
95
|
+
end
|
96
|
+
}
|
97
|
+
|
98
|
+
if attributes.key?(:'auto_solvable')
|
99
|
+
self.auto_solvable = attributes[:'auto_solvable']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'avoided_advisories')
|
103
|
+
if (value = attributes[:'avoided_advisories']).is_a?(Array)
|
104
|
+
self.avoided_advisories = value
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'fixed_advisories')
|
109
|
+
if (value = attributes[:'fixed_advisories']).is_a?(Array)
|
110
|
+
self.fixed_advisories = value
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'library_name')
|
115
|
+
self.library_name = attributes[:'library_name']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'library_version')
|
119
|
+
self.library_version = attributes[:'library_version']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'new_advisories')
|
123
|
+
if (value = attributes[:'new_advisories']).is_a?(Array)
|
124
|
+
self.new_advisories = value
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'remaining_advisories')
|
129
|
+
if (value = attributes[:'remaining_advisories']).is_a?(Array)
|
130
|
+
self.remaining_advisories = value
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'type')
|
135
|
+
self.type = attributes[:'type']
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# Check to see if the all the properties in the model are valid
|
140
|
+
# @return true if the model is valid
|
141
|
+
# @!visibility private
|
142
|
+
def valid?
|
143
|
+
return false if @auto_solvable.nil?
|
144
|
+
return false if @avoided_advisories.nil?
|
145
|
+
return false if @fixed_advisories.nil?
|
146
|
+
return false if @library_name.nil?
|
147
|
+
return false if @library_version.nil?
|
148
|
+
return false if @new_advisories.nil?
|
149
|
+
return false if @remaining_advisories.nil?
|
150
|
+
return false if @type.nil?
|
151
|
+
true
|
152
|
+
end
|
153
|
+
|
154
|
+
# Custom attribute writer method with validation
|
155
|
+
# @param auto_solvable [Object] Object to be assigned
|
156
|
+
# @!visibility private
|
157
|
+
def auto_solvable=(auto_solvable)
|
158
|
+
if auto_solvable.nil?
|
159
|
+
fail ArgumentError, 'invalid value for "auto_solvable", auto_solvable cannot be nil.'
|
160
|
+
end
|
161
|
+
@auto_solvable = auto_solvable
|
162
|
+
end
|
163
|
+
|
164
|
+
# Custom attribute writer method with validation
|
165
|
+
# @param avoided_advisories [Object] Object to be assigned
|
166
|
+
# @!visibility private
|
167
|
+
def avoided_advisories=(avoided_advisories)
|
168
|
+
if avoided_advisories.nil?
|
169
|
+
fail ArgumentError, 'invalid value for "avoided_advisories", avoided_advisories cannot be nil.'
|
170
|
+
end
|
171
|
+
@avoided_advisories = avoided_advisories
|
172
|
+
end
|
173
|
+
|
174
|
+
# Custom attribute writer method with validation
|
175
|
+
# @param fixed_advisories [Object] Object to be assigned
|
176
|
+
# @!visibility private
|
177
|
+
def fixed_advisories=(fixed_advisories)
|
178
|
+
if fixed_advisories.nil?
|
179
|
+
fail ArgumentError, 'invalid value for "fixed_advisories", fixed_advisories cannot be nil.'
|
180
|
+
end
|
181
|
+
@fixed_advisories = fixed_advisories
|
182
|
+
end
|
183
|
+
|
184
|
+
# Custom attribute writer method with validation
|
185
|
+
# @param library_name [Object] Object to be assigned
|
186
|
+
# @!visibility private
|
187
|
+
def library_name=(library_name)
|
188
|
+
if library_name.nil?
|
189
|
+
fail ArgumentError, 'invalid value for "library_name", library_name cannot be nil.'
|
190
|
+
end
|
191
|
+
@library_name = library_name
|
192
|
+
end
|
193
|
+
|
194
|
+
# Custom attribute writer method with validation
|
195
|
+
# @param library_version [Object] Object to be assigned
|
196
|
+
# @!visibility private
|
197
|
+
def library_version=(library_version)
|
198
|
+
if library_version.nil?
|
199
|
+
fail ArgumentError, 'invalid value for "library_version", library_version cannot be nil.'
|
200
|
+
end
|
201
|
+
@library_version = library_version
|
202
|
+
end
|
203
|
+
|
204
|
+
# Custom attribute writer method with validation
|
205
|
+
# @param new_advisories [Object] Object to be assigned
|
206
|
+
# @!visibility private
|
207
|
+
def new_advisories=(new_advisories)
|
208
|
+
if new_advisories.nil?
|
209
|
+
fail ArgumentError, 'invalid value for "new_advisories", new_advisories cannot be nil.'
|
210
|
+
end
|
211
|
+
@new_advisories = new_advisories
|
212
|
+
end
|
213
|
+
|
214
|
+
# Custom attribute writer method with validation
|
215
|
+
# @param remaining_advisories [Object] Object to be assigned
|
216
|
+
# @!visibility private
|
217
|
+
def remaining_advisories=(remaining_advisories)
|
218
|
+
if remaining_advisories.nil?
|
219
|
+
fail ArgumentError, 'invalid value for "remaining_advisories", remaining_advisories cannot be nil.'
|
220
|
+
end
|
221
|
+
@remaining_advisories = remaining_advisories
|
222
|
+
end
|
223
|
+
|
224
|
+
# Custom attribute writer method with validation
|
225
|
+
# @param type [Object] Object to be assigned
|
226
|
+
# @!visibility private
|
227
|
+
def type=(type)
|
228
|
+
if type.nil?
|
229
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
230
|
+
end
|
231
|
+
@type = type
|
232
|
+
end
|
233
|
+
|
234
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
236
|
+
# @!visibility private
|
237
|
+
def to_hash
|
238
|
+
hash = {}
|
239
|
+
self.class.attribute_map.each_pair do |attr, param|
|
240
|
+
value = self.send(attr)
|
241
|
+
if value.nil?
|
242
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
243
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
244
|
+
end
|
245
|
+
|
246
|
+
hash[param] = _to_hash(value)
|
247
|
+
end
|
248
|
+
self.additional_properties.each_pair do |attr, value|
|
249
|
+
hash[attr] = value
|
250
|
+
end
|
251
|
+
hash
|
252
|
+
end
|
253
|
+
|
254
|
+
# Checks equality by comparing each attribute.
|
255
|
+
# @param o [Object] Object to be compared
|
256
|
+
# @!visibility private
|
257
|
+
def ==(o)
|
258
|
+
return true if self.equal?(o)
|
259
|
+
self.class == o.class &&
|
260
|
+
auto_solvable == o.auto_solvable &&
|
261
|
+
avoided_advisories == o.avoided_advisories &&
|
262
|
+
fixed_advisories == o.fixed_advisories &&
|
263
|
+
library_name == o.library_name &&
|
264
|
+
library_version == o.library_version &&
|
265
|
+
new_advisories == o.new_advisories &&
|
266
|
+
remaining_advisories == o.remaining_advisories &&
|
267
|
+
type == o.type &&
|
268
|
+
additional_properties == o.additional_properties
|
269
|
+
end
|
270
|
+
|
271
|
+
# Calculates hash code according to all attributes.
|
272
|
+
# @return [Integer] Hash code
|
273
|
+
# @!visibility private
|
274
|
+
def hash
|
275
|
+
[auto_solvable, avoided_advisories, fixed_advisories, library_name, library_version, new_advisories, remaining_advisories, type, additional_properties].hash
|
276
|
+
end
|
277
|
+
end
|
278
|
+
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
|
+
# Severity of a security rule.
|
21
|
+
class RuleSeverity
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
CRITICAL = "critical".freeze
|
25
|
+
HIGH = "high".freeze
|
26
|
+
MEDIUM = "medium".freeze
|
27
|
+
LOW = "low".freeze
|
28
|
+
UNKNOWN = "unknown".freeze
|
29
|
+
INFO = "info".freeze
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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
|
+
# Security rule types which can be used in notification rules.
|
21
|
+
# Signal-based notification rules can filter signals based on rule types application_security, log_detection,
|
22
|
+
# workload_security, signal_correlation, cloud_configuration and infrastructure_configuration.
|
23
|
+
# Vulnerability-based notification rules can filter vulnerabilities based on rule types application_code_vulnerability,
|
24
|
+
# application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk, misconfiguration, and api_security.
|
25
|
+
class RuleTypesItems
|
26
|
+
include BaseEnumModel
|
27
|
+
|
28
|
+
APPLICATION_SECURITY = "application_security".freeze
|
29
|
+
LOG_DETECTION = "log_detection".freeze
|
30
|
+
WORKLOAD_SECURITY = "workload_security".freeze
|
31
|
+
SIGNAL_CORRELATION = "signal_correlation".freeze
|
32
|
+
CLOUD_CONFIGURATION = "cloud_configuration".freeze
|
33
|
+
INFRASTRUCTURE_CONFIGURATION = "infrastructure_configuration".freeze
|
34
|
+
APPLICATION_CODE_VULNERABILITY = "application_code_vulnerability".freeze
|
35
|
+
APPLICATION_LIBRARY_VULNERABILITY = "application_library_vulnerability".freeze
|
36
|
+
ATTACK_PATH = "attack_path".freeze
|
37
|
+
CONTAINER_IMAGE_VULNERABILITY = "container_image_vulnerability".freeze
|
38
|
+
IDENTITY_RISK = "identity_risk".freeze
|
39
|
+
MISCONFIGURATION = "misconfiguration".freeze
|
40
|
+
API_SECURITY = "api_security".freeze
|
41
|
+
end
|
42
|
+
end
|
@@ -17,12 +17,15 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
#
|
21
|
-
class
|
20
|
+
# User creating or modifying a rule.
|
21
|
+
class RuleUser
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
# The
|
25
|
-
attr_accessor :
|
24
|
+
# The user handle.
|
25
|
+
attr_accessor :handle
|
26
|
+
|
27
|
+
# The user name.
|
28
|
+
attr_accessor :name
|
26
29
|
|
27
30
|
attr_accessor :additional_properties
|
28
31
|
|
@@ -30,7 +33,8 @@ module DatadogAPIClient::V2
|
|
30
33
|
# @!visibility private
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
33
|
-
:'
|
36
|
+
:'handle' => :'handle',
|
37
|
+
:'name' => :'name'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -38,7 +42,8 @@ module DatadogAPIClient::V2
|
|
38
42
|
# @!visibility private
|
39
43
|
def self.openapi_types
|
40
44
|
{
|
41
|
-
:'
|
45
|
+
:'handle' => :'String',
|
46
|
+
:'name' => :'String'
|
42
47
|
}
|
43
48
|
end
|
44
49
|
|
@@ -47,7 +52,7 @@ module DatadogAPIClient::V2
|
|
47
52
|
# @!visibility private
|
48
53
|
def initialize(attributes = {})
|
49
54
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RuleUser` initialize method"
|
51
56
|
end
|
52
57
|
|
53
58
|
self.additional_properties = {}
|
@@ -60,8 +65,12 @@ module DatadogAPIClient::V2
|
|
60
65
|
end
|
61
66
|
}
|
62
67
|
|
63
|
-
if attributes.key?(:'
|
64
|
-
self.
|
68
|
+
if attributes.key?(:'handle')
|
69
|
+
self.handle = attributes[:'handle']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'name')
|
73
|
+
self.name = attributes[:'name']
|
65
74
|
end
|
66
75
|
end
|
67
76
|
|
@@ -91,7 +100,8 @@ module DatadogAPIClient::V2
|
|
91
100
|
def ==(o)
|
92
101
|
return true if self.equal?(o)
|
93
102
|
self.class == o.class &&
|
94
|
-
|
103
|
+
handle == o.handle &&
|
104
|
+
name == o.name &&
|
95
105
|
additional_properties == o.additional_properties
|
96
106
|
end
|
97
107
|
|
@@ -99,7 +109,7 @@ module DatadogAPIClient::V2
|
|
99
109
|
# @return [Integer] Hash code
|
100
110
|
# @!visibility private
|
101
111
|
def hash
|
102
|
-
[
|
112
|
+
[handle, name, additional_properties].hash
|
103
113
|
end
|
104
114
|
end
|
105
115
|
end
|