From 9579ff51de95962ec57f64eebd72c865295bbacf Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 29 Oct 2024 20:48:06 +0000 Subject: [PATCH] Regenerate client from commit c0b9551e of spec repo --- .apigentools-info | 8 ++-- .generator/schemas/v2/openapi.yaml | 7 ++++ ...taScannerIncludedKeywordConfiguration.java | 38 ++++++++++++++++++- 3 files changed, 47 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 1860cd6f9a1..e20a3e76417 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-28 23:07:46.686658", - "spec_repo_commit": "4251a422" + "regenerated": "2024-10-29 20:46:31.079470", + "spec_repo_commit": "c0b9551e" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-28 23:07:46.704767", - "spec_repo_commit": "4251a422" + "regenerated": "2024-10-29 20:46:31.098654", + "spec_repo_commit": "c0b9551e" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d84b313780d..ab32a814306 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -21870,6 +21870,13 @@ components: items: type: string type: array + use_recommended_keywords: + description: 'Should the rule use the underlying standard pattern keyword + configuration. If set to `true`, the rule must be tied + + to a standard pattern. If set to `false`, the specified keywords and `character_count` + are applied.' + type: boolean required: - keywords - character_count diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerIncludedKeywordConfiguration.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerIncludedKeywordConfiguration.java index 724e0e17366..3c180990453 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerIncludedKeywordConfiguration.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerIncludedKeywordConfiguration.java @@ -27,7 +27,8 @@ */ @JsonPropertyOrder({ SensitiveDataScannerIncludedKeywordConfiguration.JSON_PROPERTY_CHARACTER_COUNT, - SensitiveDataScannerIncludedKeywordConfiguration.JSON_PROPERTY_KEYWORDS + SensitiveDataScannerIncludedKeywordConfiguration.JSON_PROPERTY_KEYWORDS, + SensitiveDataScannerIncludedKeywordConfiguration.JSON_PROPERTY_USE_RECOMMENDED_KEYWORDS }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") @@ -39,6 +40,9 @@ public class SensitiveDataScannerIncludedKeywordConfiguration { public static final String JSON_PROPERTY_KEYWORDS = "keywords"; private List keywords = new ArrayList<>(); + public static final String JSON_PROPERTY_USE_RECOMMENDED_KEYWORDS = "use_recommended_keywords"; + private Boolean useRecommendedKeywords; + public SensitiveDataScannerIncludedKeywordConfiguration() {} @JsonCreator @@ -97,6 +101,30 @@ public void setKeywords(List keywords) { this.keywords = keywords; } + public SensitiveDataScannerIncludedKeywordConfiguration useRecommendedKeywords( + Boolean useRecommendedKeywords) { + this.useRecommendedKeywords = useRecommendedKeywords; + return this; + } + + /** + * Should the rule use the underlying standard pattern keyword configuration. If set to true + * , the rule must be tied to a standard pattern. If set to false, the + * specified keywords and character_count are applied. + * + * @return useRecommendedKeywords + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USE_RECOMMENDED_KEYWORDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getUseRecommendedKeywords() { + return useRecommendedKeywords; + } + + public void setUseRecommendedKeywords(Boolean useRecommendedKeywords) { + this.useRecommendedKeywords = useRecommendedKeywords; + } + /** * A container for additional, undeclared properties. This is a holder for any undeclared * properties as specified with the 'additionalProperties' keyword in the OAS document. @@ -159,6 +187,9 @@ public boolean equals(Object o) { return Objects.equals( this.characterCount, sensitiveDataScannerIncludedKeywordConfiguration.characterCount) && Objects.equals(this.keywords, sensitiveDataScannerIncludedKeywordConfiguration.keywords) + && Objects.equals( + this.useRecommendedKeywords, + sensitiveDataScannerIncludedKeywordConfiguration.useRecommendedKeywords) && Objects.equals( this.additionalProperties, sensitiveDataScannerIncludedKeywordConfiguration.additionalProperties); @@ -166,7 +197,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(characterCount, keywords, additionalProperties); + return Objects.hash(characterCount, keywords, useRecommendedKeywords, additionalProperties); } @Override @@ -175,6 +206,9 @@ public String toString() { sb.append("class SensitiveDataScannerIncludedKeywordConfiguration {\n"); sb.append(" characterCount: ").append(toIndentedString(characterCount)).append("\n"); sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n"); + sb.append(" useRecommendedKeywords: ") + .append(toIndentedString(useRecommendedKeywords)) + .append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n");