From 2e9b4714e59f51c49b1612df7bc3b2701e3b61f0 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 09:47:19 +0000 Subject: [PATCH 1/3] Regenerate client from commit 235ad9c of spec repo (#3535) Co-authored-by: ci.datadog-api-spec --- .generator/schemas/v2/openapi.yaml | 6 ------ .../AttachServiceNowTicket.rb | 3 --- .../CreateServiceNowTickets.rb | 3 --- features/v2/security_monitoring.feature | 18 ++++++------------ lib/datadog_api_client/configuration.rb | 2 -- .../v2/api/security_monitoring_api.rb | 12 ------------ 6 files changed, 6 insertions(+), 38 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2b56734419e6..23e660f2900b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -173432,9 +173432,6 @@ paths: permissions: - security_monitoring_findings_write - appsec_vm_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: >- Create ServiceNow tickets for security findings. @@ -173505,9 +173502,6 @@ paths: permissions: - security_monitoring_findings_write - appsec_vm_write - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security/sboms: get: description: |- diff --git a/examples/v2/security-monitoring/AttachServiceNowTicket.rb b/examples/v2/security-monitoring/AttachServiceNowTicket.rb index fa0191d7b75f..92981be61fd4 100644 --- a/examples/v2/security-monitoring/AttachServiceNowTicket.rb +++ b/examples/v2/security-monitoring/AttachServiceNowTicket.rb @@ -1,9 +1,6 @@ # Attach security findings to a ServiceNow ticket returns "OK" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.attach_service_now_ticket".to_sym] = true -end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::AttachServiceNowTicketRequest.new({ diff --git a/examples/v2/security-monitoring/CreateServiceNowTickets.rb b/examples/v2/security-monitoring/CreateServiceNowTickets.rb index e87c00b1bbc6..65f672481970 100644 --- a/examples/v2/security-monitoring/CreateServiceNowTickets.rb +++ b/examples/v2/security-monitoring/CreateServiceNowTickets.rb @@ -1,9 +1,6 @@ # Create ServiceNow tickets for security findings returns "Created" response require "datadog_api_client" -DatadogAPIClient.configure do |config| - config.unstable_operations["v2.create_service_now_tickets".to_sym] = true -end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateServiceNowTicketRequestArray.new({ diff --git a/features/v2/security_monitoring.feature b/features/v2/security_monitoring.feature index 3fbf1712541b..f835ce0eecdd 100644 --- a/features/v2/security_monitoring.feature +++ b/features/v2/security_monitoring.feature @@ -113,24 +113,21 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a ServiceNow ticket returns "Bad Request" response - Given operation "AttachServiceNowTicket" enabled - And new "AttachServiceNowTicket" request + Given new "AttachServiceNowTicket" request And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a ServiceNow ticket returns "Not Found" response - Given operation "AttachServiceNowTicket" enabled - And new "AttachServiceNowTicket" request + Given new "AttachServiceNowTicket" request And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/k9-investigation Scenario: Attach security findings to a ServiceNow ticket returns "OK" response - Given operation "AttachServiceNowTicket" enabled - And new "AttachServiceNowTicket" request + Given new "AttachServiceNowTicket" request And body with value {"data": {"attributes": {"servicenow_ticket_url": "https://example.service-now.com/now/nav/ui/classic/params/target/incident.do?sys_id=abcdef0123456789abcdef0123456789"}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}} When the request is sent Then the response status is 200 OK @@ -532,24 +529,21 @@ Feature: Security Monitoring @generated @skip @team:DataDog/k9-investigation Scenario: Create ServiceNow tickets for security findings returns "Bad Request" response - Given operation "CreateServiceNowTickets" enabled - And new "CreateServiceNowTickets" request + Given new "CreateServiceNowTickets" request And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/k9-investigation Scenario: Create ServiceNow tickets for security findings returns "Created" response - Given operation "CreateServiceNowTickets" enabled - And new "CreateServiceNowTickets" request + Given new "CreateServiceNowTickets" request And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]} When the request is sent Then the response status is 201 Created @generated @skip @team:DataDog/k9-investigation Scenario: Create ServiceNow tickets for security findings returns "Not Found" response - Given operation "CreateServiceNowTickets" enabled - And new "CreateServiceNowTickets" request + Given new "CreateServiceNowTickets" request And body with value {"data": [{"attributes": {"assignee_id": "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0", "description": "A description of the ServiceNow ticket.", "priority": "NOT_DEFINED", "title": "A title for the ServiceNow ticket."}, "relationships": {"findings": {"data": [{"id": "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==", "type": "findings"}]}, "project": {"data": {"id": "aeadc05e-98a8-11ec-ac2c-da7ad0900001", "type": "projects"}}}, "type": "servicenow_tickets"}]} When the request is sent Then the response status is 404 Not Found diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index 3cccaa92c8b1..850ba98a759c 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -337,7 +337,6 @@ def initialize "v2.get_aws_cloud_auth_persona_mapping": false, "v2.list_aws_cloud_auth_persona_mappings": false, "v2.activate_content_pack": false, - "v2.attach_service_now_ticket": false, "v2.batch_get_security_monitoring_dataset_dependencies": false, "v2.bulk_create_sample_log_generation_subscriptions": false, "v2.bulk_export_security_monitoring_terraform_resources": false, @@ -351,7 +350,6 @@ def initialize "v2.create_security_findings_automation_ticket_creation_rule": false, "v2.create_security_monitoring_dataset": false, "v2.create_security_monitoring_integration_config": false, - "v2.create_service_now_tickets": false, "v2.create_static_analysis_ast": false, "v2.create_static_analysis_server_analysis": false, "v2.deactivate_content_pack": false, diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index e280ccfedc5a..020516777fdf 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -254,12 +254,6 @@ def attach_service_now_ticket(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers def attach_service_now_ticket_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.attach_service_now_ticket".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.attach_service_now_ticket") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.attach_service_now_ticket")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.attach_service_now_ticket ...' @@ -2348,12 +2342,6 @@ def create_service_now_tickets(body, opts = {}) # @param opts [Hash] the optional parameters # @return [Array<(FindingCaseResponseArray, Integer, Hash)>] FindingCaseResponseArray data, response status code and response headers def create_service_now_tickets_with_http_info(body, opts = {}) - unstable_enabled = @api_client.config.unstable_operations["v2.create_service_now_tickets".to_sym] - if unstable_enabled - @api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_service_now_tickets") - else - raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_service_now_tickets")) - end if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_service_now_tickets ...' From a832ef495ea67e1c97a1463ebb57e37a0d32a38f Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 09:59:38 +0000 Subject: [PATCH 2/3] Regenerate client from commit 76344ef of spec repo (#3528) Co-authored-by: ci.datadog-api-spec --- .generator/schemas/v1/openapi.yaml | 8 ++++---- lib/datadog_api_client/v1/api/usage_metering_api.rb | 2 +- lib/datadog_api_client/v1/models/usage_summary_date.rb | 2 +- .../v1/models/usage_summary_date_org.rb | 2 +- .../v1/models/usage_summary_response.rb | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index d829783224aa..dad68d43ee65 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -23004,7 +23004,7 @@ components: For SDK users only: all fields at this response level are accessible through the `additionalProperties` map. Existing typed-field getters are unchanged. New billing dimensions will not have typed-field getters. Use - [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-summary-available-fields) + [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/get-available-fields-for-usage-summary/) to enumerate every available key. properties: agent_host_top99p: @@ -24307,7 +24307,7 @@ components: For SDK users only: all fields at this response level are accessible through the `additionalProperties` map. Existing typed-field getters are unchanged. New billing dimensions will not have typed-field getters. Use - [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-summary-available-fields) + [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/get-available-fields-for-usage-summary/) to enumerate every available key. properties: account_name: @@ -25629,7 +25629,7 @@ components: For SDK users only: all fields at this response level are accessible through the `additionalProperties` map. Existing typed-field getters are unchanged. New billing dimensions will not have typed-field getters. Use - [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-summary-available-fields) + [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/get-available-fields-for-usage-summary/) to enumerate every available key. properties: agent_host_top99p_sum: @@ -43410,7 +43410,7 @@ paths: `UsageSummaryDateOrg` are accessible through each object's `additionalProperties` map. Existing typed-field getters are unchanged. New billing dimensions will not have typed-field getters. Use - [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-summary-available-fields) + [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/get-available-fields-for-usage-summary/) to enumerate every available key at each response level. This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index c93617eb981d..507650eecc68 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -2346,7 +2346,7 @@ def get_usage_summary(start_month, opts = {}) # `UsageSummaryDateOrg` are accessible through each object's `additionalProperties` map. # Existing typed-field getters are unchanged. New billing dimensions will not have # typed-field getters. Use - # [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-summary-available-fields) + # [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/get-available-fields-for-usage-summary/) # to enumerate every available key at each response level. # # This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/). diff --git a/lib/datadog_api_client/v1/models/usage_summary_date.rb b/lib/datadog_api_client/v1/models/usage_summary_date.rb index 1a1b006e6103..8962a68dd188 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -22,7 +22,7 @@ module DatadogAPIClient::V1 # For SDK users only: all fields at this response level are accessible through the # `additionalProperties` map. Existing typed-field getters are unchanged. New billing # dimensions will not have typed-field getters. Use - # [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-summary-available-fields) + # [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/get-available-fields-for-usage-summary/) # to enumerate every available key. class UsageSummaryDate include BaseGenericModel diff --git a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb index d614768c93d2..a6a4e668e08a 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb @@ -22,7 +22,7 @@ module DatadogAPIClient::V1 # For SDK users only: all fields at this response level are accessible through the # `additionalProperties` map. Existing typed-field getters are unchanged. New billing # dimensions will not have typed-field getters. Use - # [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-summary-available-fields) + # [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/get-available-fields-for-usage-summary/) # to enumerate every available key. class UsageSummaryDateOrg include BaseGenericModel diff --git a/lib/datadog_api_client/v1/models/usage_summary_response.rb b/lib/datadog_api_client/v1/models/usage_summary_response.rb index 2699bbd38c86..5622bc133823 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -23,7 +23,7 @@ module DatadogAPIClient::V1 # For SDK users only: all fields at this response level are accessible through the # `additionalProperties` map. Existing typed-field getters are unchanged. New billing # dimensions will not have typed-field getters. Use - # [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-summary-available-fields) + # [Get available fields for usage summary](https://docs.datadoghq.com/api/latest/usage-metering/get-available-fields-for-usage-summary/) # to enumerate every available key. class UsageSummaryResponse include BaseGenericModel From a00b73b9b65656fd9af81c05997b5783c7210588 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 10:06:41 +0000 Subject: [PATCH 3/3] Regenerate client from commit 3bd06e0 of spec repo (#3537) Co-authored-by: ci.datadog-api-spec --- .generator/schemas/v2/openapi.yaml | 12 ++++++++++++ features/v2/security_monitoring.feature | 4 ++-- .../security_monitoring_critical_asset_attributes.rb | 12 +++++++++++- ...ty_monitoring_critical_asset_create_attributes.rb | 12 +++++++++++- ...ty_monitoring_critical_asset_update_attributes.rb | 12 +++++++++++- 5 files changed, 47 insertions(+), 5 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 23e660f2900b..f535b34d3eb0 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -86566,6 +86566,10 @@ components: type: integer creator: $ref: "#/components/schemas/SecurityMonitoringUser" + description: + description: A description of the critical asset. + example: Production database servers handling PII + type: string enabled: description: Whether the critical asset is enabled. example: true @@ -86610,6 +86614,10 @@ components: SecurityMonitoringCriticalAssetCreateAttributes: description: Object containing the attributes of the critical asset to be created. properties: + description: + description: A description of the critical asset. + example: Production database servers handling PII + type: string enabled: default: true description: Whether the critical asset is enabled. Defaults to `true` if not specified. @@ -86702,6 +86710,10 @@ components: SecurityMonitoringCriticalAssetUpdateAttributes: description: The critical asset properties to be updated. properties: + description: + description: A description of the critical asset. + example: Production database servers handling PII + type: string enabled: description: Whether the critical asset is enabled. example: true diff --git a/features/v2/security_monitoring.feature b/features/v2/security_monitoring.feature index f835ce0eecdd..da7e67cad57d 100644 --- a/features/v2/security_monitoring.feature +++ b/features/v2/security_monitoring.feature @@ -569,7 +569,7 @@ Feature: Security Monitoring @generated @skip @team:DataDog/cloud-siem Scenario: Create a critical asset returns "Conflict" response Given new "CreateSecurityMonitoringCriticalAsset" request - And body with value {"data": {"attributes": {"enabled": true, "query": "security:monitoring", "rule_query": "type:(log_detection OR signal_correlation OR workload_security OR application_security) source:cloudtrail", "severity": "increase", "tags": ["team:database", "source:cloudtrail"]}, "type": "critical_assets"}} + And body with value {"data": {"attributes": {"description": "Production database servers handling PII", "enabled": true, "query": "security:monitoring", "rule_query": "type:(log_detection OR signal_correlation OR workload_security OR application_security) source:cloudtrail", "severity": "increase", "tags": ["team:database", "source:cloudtrail"]}, "type": "critical_assets"}} When the request is sent Then the response status is 409 Conflict @@ -3083,7 +3083,7 @@ Feature: Security Monitoring Scenario: Update a critical asset returns "Concurrent Modification" response Given new "UpdateSecurityMonitoringCriticalAsset" request And request contains "critical_asset_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"enabled": true, "query": "security:monitoring", "rule_query": "type:log_detection source:cloudtrail", "severity": "increase", "tags": ["technique:T1110-brute-force", "source:cloudtrail"], "version": 1}, "type": "critical_assets"}} + And body with value {"data": {"attributes": {"description": "Production database servers handling PII", "enabled": true, "query": "security:monitoring", "rule_query": "type:log_detection source:cloudtrail", "severity": "increase", "tags": ["technique:T1110-brute-force", "source:cloudtrail"], "version": 1}, "type": "critical_assets"}} When the request is sent Then the response status is 409 Concurrent Modification diff --git a/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb index 162132382bf2..26bf467369de 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb @@ -30,6 +30,9 @@ class SecurityMonitoringCriticalAssetAttributes # A user. attr_accessor :creator + # A description of the critical asset. + attr_accessor :description + # Whether the critical asset is enabled. attr_accessor :enabled @@ -66,6 +69,7 @@ def self.attribute_map :'creation_author_id' => :'creation_author_id', :'creation_date' => :'creation_date', :'creator' => :'creator', + :'description' => :'description', :'enabled' => :'enabled', :'query' => :'query', :'rule_query' => :'rule_query', @@ -85,6 +89,7 @@ def self.openapi_types :'creation_author_id' => :'Integer', :'creation_date' => :'Integer', :'creator' => :'SecurityMonitoringUser', + :'description' => :'String', :'enabled' => :'Boolean', :'query' => :'String', :'rule_query' => :'String', @@ -127,6 +132,10 @@ def initialize(attributes = {}) self.creator = attributes[:'creator'] end + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + if attributes.key?(:'enabled') self.enabled = attributes[:'enabled'] end @@ -213,6 +222,7 @@ def ==(o) creation_author_id == o.creation_author_id && creation_date == o.creation_date && creator == o.creator && + description == o.description && enabled == o.enabled && query == o.query && rule_query == o.rule_query && @@ -229,7 +239,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [creation_author_id, creation_date, creator, enabled, query, rule_query, severity, tags, update_author_id, update_date, updater, version, additional_properties].hash + [creation_author_id, creation_date, creator, description, enabled, query, rule_query, severity, tags, update_author_id, update_date, updater, version, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb index 4cc74084657e..4f86d22d8885 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V2 class SecurityMonitoringCriticalAssetCreateAttributes include BaseGenericModel + # A description of the critical asset. + attr_accessor :description + # Whether the critical asset is enabled. Defaults to `true` if not specified. attr_accessor :enabled @@ -42,6 +45,7 @@ class SecurityMonitoringCriticalAssetCreateAttributes # @!visibility private def self.attribute_map { + :'description' => :'description', :'enabled' => :'enabled', :'query' => :'query', :'rule_query' => :'rule_query', @@ -54,6 +58,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'description' => :'String', :'enabled' => :'Boolean', :'query' => :'String', :'rule_query' => :'String', @@ -80,6 +85,10 @@ def initialize(attributes = {}) end } + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + if attributes.key?(:'enabled') self.enabled = attributes[:'enabled'] end @@ -169,6 +178,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + description == o.description && enabled == o.enabled && query == o.query && rule_query == o.rule_query && @@ -181,7 +191,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [enabled, query, rule_query, severity, tags, additional_properties].hash + [description, enabled, query, rule_query, severity, tags, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb b/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb index f2f1852d3a59..d2cea229efb8 100644 --- a/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb +++ b/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb @@ -21,6 +21,9 @@ module DatadogAPIClient::V2 class SecurityMonitoringCriticalAssetUpdateAttributes include BaseGenericModel + # A description of the critical asset. + attr_accessor :description + # Whether the critical asset is enabled. attr_accessor :enabled @@ -45,6 +48,7 @@ class SecurityMonitoringCriticalAssetUpdateAttributes # @!visibility private def self.attribute_map { + :'description' => :'description', :'enabled' => :'enabled', :'query' => :'query', :'rule_query' => :'rule_query', @@ -58,6 +62,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'description' => :'String', :'enabled' => :'Boolean', :'query' => :'String', :'rule_query' => :'String', @@ -85,6 +90,10 @@ def initialize(attributes = {}) end } + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + if attributes.key?(:'enabled') self.enabled = attributes[:'enabled'] end @@ -156,6 +165,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + description == o.description && enabled == o.enabled && query == o.query && rule_query == o.rule_query && @@ -169,7 +179,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [enabled, query, rule_query, severity, tags, version, additional_properties].hash + [description, enabled, query, rule_query, severity, tags, version, additional_properties].hash end end end