From 689207b881682cf06a2a0e990bd14bc4b4ea9223 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Tue, 5 Mar 2024 18:01:57 +0000 Subject: [PATCH] Deprecate the pattern property for SDS Standard Pattern Attributes (#1893) Co-authored-by: ci.datadog-api-spec Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 5 ++++- .../sensitive_data_scanner_standard_pattern_attributes.py | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 23ba14a73e..ff1d30d5a5 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-02-29 14:49:25.092326", - "spec_repo_commit": "bb5305bc" + "regenerated": "2024-03-05 16:47:49.304618", + "spec_repo_commit": "acf036aa" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-02-29 14:49:25.138459", - "spec_repo_commit": "bb5305bc" + "regenerated": "2024-03-05 16:47:49.330020", + "spec_repo_commit": "acf036aa" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9a70faf6ba..dbd4cb4232 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -18316,7 +18316,10 @@ components: description: Name of the standard pattern. type: string pattern: - description: Regex to match. + deprecated: true + description: (Deprecated) Regex to match, optionally documented for older + standard rules. Refer to the `description` field to understand what the + rule does. type: string priority: description: Integer from 1 (high) to 5 (low) indicating standard pattern diff --git a/src/datadog_api_client/v2/model/sensitive_data_scanner_standard_pattern_attributes.py b/src/datadog_api_client/v2/model/sensitive_data_scanner_standard_pattern_attributes.py index d96cb4fb37..5a787469dc 100644 --- a/src/datadog_api_client/v2/model/sensitive_data_scanner_standard_pattern_attributes.py +++ b/src/datadog_api_client/v2/model/sensitive_data_scanner_standard_pattern_attributes.py @@ -63,7 +63,7 @@ def __init__( :param name: Name of the standard pattern. :type name: str, optional - :param pattern: Regex to match. + :param pattern: (Deprecated) Regex to match, optionally documented for older standard rules. Refer to the ``description`` field to understand what the rule does. **Deprecated**. :type pattern: str, optional :param priority: Integer from 1 (high) to 5 (low) indicating standard pattern issue severity.