diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e2256f32bd5a..b8852ecc22d5 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -44172,8 +44172,14 @@ components: action: $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction' options: - description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionHash` - `options`. + description: 'Optional settings for the hash action. When omitted or empty, + matched sensitive data is + + replaced with a deterministic hashed value that preserves structure for + analytics while + + protecting the original content. Reserved for future hash configuration + (for example, algorithm or salt).' type: object required: - action @@ -44213,8 +44219,8 @@ components: count and direction. properties: characters: - description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions` - `characters`. + description: Number of characters to leave visible from the start or end + of the matched value; the rest are redacted. example: 4 format: int64 type: integer @@ -44259,8 +44265,8 @@ components: description: Configuration for fully redacting sensitive data. properties: replace: - description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` - `replace`. + description: The string used to replace matched sensitive data (for example, + "***" or "[REDACTED]"). example: '***' type: string required: @@ -44388,7 +44394,7 @@ components: scope: $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScope' tags: - description: Tags assigned to this rule for filtering and classification. + description: Optional tags assigned to this rule for filtering and classification. example: - pii - ccn @@ -44397,7 +44403,6 @@ components: type: array required: - name - - tags - pattern - scope - on_match @@ -44467,8 +44472,8 @@ components: description: Fields to which the scope rule applies. properties: fields: - description: The `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` - `fields`. + description: List of log attribute names (field paths) to which the scope + applies. Only these fields are included in or excluded from pattern matching. example: - '' items: diff --git a/cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.frozen b/cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.frozen index 957e037f23c0..62723cd8d29a 100644 --- a/cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.frozen +++ b/cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.frozen @@ -1 +1 @@ -2026-02-18T16:57:05.121Z \ No newline at end of file +2026-01-07T12:38:45.716Z \ No newline at end of file diff --git a/cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.yml b/cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.yml index 5296a6bd3d57..8a68218d5475 100644 --- a/cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.yml +++ b/cassettes/features/v2/synthetics/Create-a-test-suite-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 18 Feb 2026 16:57:05 GMT +- recorded_at: Wed, 07 Jan 2026 12:38:45 GMT request: body: encoding: UTF-8 @@ -15,10 +15,10 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"type":"suites","attributes":{"type":"suite","monitor_id":259845717,"name":"Example - suite name","options":{},"tests":[],"tags":["env:production"],"public_id":"hik-xp5-9q6","created_at":"2026-02-18T16:57:05.583051+00:00","modified_at":"2026-02-18T16:57:05.583051+00:00","created_by":{"name":"Corentin - Girard","email":"corentin.girard@datadoghq.com","handle":"corentin.girard@datadoghq.com"},"message":"Notification - message","org_id":321813,"modified_by":{"name":"Corentin Girard","email":"corentin.girard@datadoghq.com","handle":"corentin.girard@datadoghq.com"}},"id":"hik-xp5-9q6"}} + string: '{"data":{"type":"suites","id":"36n-bb6-njj","attributes":{"tags":["env:production"],"type":"suite","created_by":{"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"},"created_at":"2026-01-07T12:38:46.109472+00:00","modified_at":"2026-01-07T12:38:46.109472+00:00","message":"Notification + message","public_id":"36n-bb6-njj","options":{},"modified_by":{"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"},"tests":[],"name":"Example suite name","org_id":321813,"monitor_id":249141773}}} ' headers: @@ -27,11 +27,11 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Wed, 18 Feb 2026 16:57:05 GMT +- recorded_at: Wed, 07 Jan 2026 12:38:45 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"public_ids":["hik-xp5-9q6"]},"type":"delete_suites_request"}}' + string: '{"data":{"attributes":{"public_ids":["36n-bb6-njj"]},"type":"delete_suites_request"}}' headers: Accept: - application/json @@ -42,7 +42,8 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":[{"type":"suites","attributes":{"deleted_at":"2026-02-18 16:57:06.420679","public_id":"hik-xp5-9q6"},"id":"hik-xp5-9q6"}]} + string: '{"data":[{"type":"suites","attributes":{"public_id":"36n-bb6-njj","deleted_at":"2026-01-07 + 12:38:46.679914"},"id":"36n-bb6-njj"}]} ' headers: diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash.rb b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash.rb index febdae06702a..b4018cdc7d71 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash.rb @@ -24,7 +24,9 @@ class ObservabilityPipelineSensitiveDataScannerProcessorActionHash # Action type that replaces the matched sensitive data with a hashed representation, preserving structure while securing content. attr_reader :action - # The `ObservabilityPipelineSensitiveDataScannerProcessorActionHash` `options`. + # Optional settings for the hash action. When omitted or empty, matched sensitive data is + # replaced with a deterministic hashed value that preserves structure for analytics while + # protecting the original content. Reserved for future hash configuration (for example, algorithm or salt). attr_accessor :options attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.rb b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.rb index bb75046d800c..92d18b235426 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions include BaseGenericModel - # The `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions` `characters`. + # Number of characters to leave visible from the start or end of the matched value; the rest are redacted. attr_reader :characters # Indicates whether to redact characters from the first or last part of the matched value. diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.rb b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.rb index 09a26a6a0815..ac01d0b7a075 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions include BaseGenericModel - # The `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` `replace`. + # The string used to replace matched sensitive data (for example, "***" or "[REDACTED]"). attr_reader :replace attr_accessor :additional_properties diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_rule.rb b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_rule.rb index 1f7b3494e588..0f738f20b892 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_rule.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_rule.rb @@ -36,8 +36,8 @@ class ObservabilityPipelineSensitiveDataScannerProcessorRule # Determines which parts of the log the pattern-matching rule should be applied to. attr_reader :scope - # Tags assigned to this rule for filtering and classification. - attr_reader :tags + # Optional tags assigned to this rule for filtering and classification. + attr_accessor :tags attr_accessor :additional_properties @@ -120,7 +120,6 @@ def valid? return false if @on_match.nil? return false if @pattern.nil? return false if @scope.nil? - return false if @tags.nil? true end @@ -164,16 +163,6 @@ def scope=(scope) @scope = scope end - # Custom attribute writer method with validation - # @param tags [Object] Object to be assigned - # @!visibility private - def tags=(tags) - if tags.nil? - fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' - end - @tags = tags - end - # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_options.rb b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_options.rb index f9a5cc814954..d6d77908f07b 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_options.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_options.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions include BaseGenericModel - # The `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` `fields`. + # List of log attribute names (field paths) to which the scope applies. Only these fields are included in or excluded from pattern matching. attr_reader :fields attr_accessor :additional_properties