diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e2256f32bd..b8852ecc22 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/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash.py index b076cda3ca..3a4755606a 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash.py @@ -48,7 +48,9 @@ def __init__( :param action: Action type that replaces the matched sensitive data with a hashed representation, preserving structure while securing content. :type action: ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction - :param options: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionHash`` ``options``. + :param 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). :type options: dict, optional """ if options is not unset: diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.py index 992879abec..cf7e28ce30 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.py @@ -43,7 +43,7 @@ def __init__( """ Controls how partial redaction is applied, including character count and direction. - :param characters: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions`` ``characters``. + :param characters: Number of characters to leave visible from the start or end of the matched value; the rest are redacted. :type characters: int :param direction: Indicates whether to redact characters from the first or last part of the matched value. diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.py index c0f909ed18..ed9f6a56e6 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.py @@ -25,7 +25,7 @@ def __init__(self_, replace: str, **kwargs): """ Configuration for fully redacting sensitive data. - :param replace: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions`` ``replace``. + :param replace: The string used to replace matched sensitive data (for example, "***" or "[REDACTED]"). :type replace: str """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_rule.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_rule.py index 9af3fe0ad5..12730c7c0e 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_rule.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_rule.py @@ -106,8 +106,8 @@ def __init__( ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude, ObservabilityPipelineSensitiveDataScannerProcessorScopeAll, ], - tags: List[str], keyword_options: Union[ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions, UnsetType] = unset, + tags: Union[List[str], UnsetType] = unset, **kwargs, ): """ @@ -128,15 +128,16 @@ def __init__( :param scope: Determines which parts of the log the pattern-matching rule should be applied to. :type scope: ObservabilityPipelineSensitiveDataScannerProcessorScope - :param tags: Tags assigned to this rule for filtering and classification. - :type tags: [str] + :param tags: Optional tags assigned to this rule for filtering and classification. + :type tags: [str], optional """ if keyword_options is not unset: kwargs["keyword_options"] = keyword_options + if tags is not unset: + kwargs["tags"] = tags super().__init__(kwargs) self_.name = name self_.on_match = on_match self_.pattern = pattern self_.scope = scope - self_.tags = tags diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_options.py index dc9c0914d4..0476ef31cd 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_options.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_options.py @@ -26,7 +26,7 @@ def __init__(self_, fields: List[str], **kwargs): """ Fields to which the scope rule applies. - :param fields: The ``ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions`` ``fields``. + :param fields: List of log attribute names (field paths) to which the scope applies. Only these fields are included in or excluded from pattern matching. :type fields: [str] """ super().__init__(kwargs) diff --git a/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.frozen b/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.frozen index 957e037f23..62723cd8d2 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.frozen +++ b/tests/v2/cassettes/test_scenarios/test_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/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.yaml b/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.yaml index ee353eaab8..d29e21551c 100644 --- a/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.yaml @@ -11,10 +11,10 @@ interactions: uri: https://api.datadoghq.com/api/v2/synthetics/suites response: body: - 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: @@ -24,7 +24,7 @@ interactions: code: 200 message: OK - request: - body: '{"data":{"attributes":{"public_ids":["hik-xp5-9q6"]},"type":"delete_suites_request"}}' + body: '{"data":{"attributes":{"public_ids":["36n-bb6-njj"]},"type":"delete_suites_request"}}' headers: accept: - application/json @@ -34,7 +34,8 @@ interactions: uri: https://api.datadoghq.com/api/v2/synthetics/suites/bulk-delete response: body: - 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: