Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -39,6 +40,9 @@ public class SensitiveDataScannerIncludedKeywordConfiguration {
public static final String JSON_PROPERTY_KEYWORDS = "keywords";
private List<String> keywords = new ArrayList<>();

public static final String JSON_PROPERTY_USE_RECOMMENDED_KEYWORDS = "use_recommended_keywords";
private Boolean useRecommendedKeywords;

public SensitiveDataScannerIncludedKeywordConfiguration() {}

@JsonCreator
Expand Down Expand Up @@ -97,6 +101,30 @@ public void setKeywords(List<String> 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 <code>true
* </code>, the rule must be tied to a standard pattern. If set to <code>false</code>, the
* specified keywords and <code>character_count</code> 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.
Expand Down Expand Up @@ -159,14 +187,17 @@ 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);
}

@Override
public int hashCode() {
return Objects.hash(characterCount, keywords, additionalProperties);
return Objects.hash(characterCount, keywords, useRecommendedKeywords, additionalProperties);
}

@Override
Expand All @@ -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");
Expand Down
Loading