From a9d6d8139eb9dfc7690f35a517dc15fce612d380 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 24 Jul 2023 15:56:17 +0000 Subject: [PATCH] Regenerate client from commit b233d581 of spec repo --- .apigentools-info | 8 ++-- .generator/schemas/v2/openapi.yaml | 10 +++++ ...itiveDataScannerGetConfigResponseData.java | 40 ++++++++++++++++++- .../v2/model/SensitiveDataScannerMeta.java | 30 ++++++++++++++ ...eDataScannerStandardPatternAttributes.java | 32 ++++++++++++++- 5 files changed, 112 insertions(+), 8 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 7c66d4088ee..1e0a3ee1d31 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.5", - "regenerated": "2023-07-21 15:03:03.943766", - "spec_repo_commit": "1b0797fc" + "regenerated": "2023-07-24 15:54:29.646001", + "spec_repo_commit": "b233d581" }, "v2": { "apigentools_version": "1.6.5", - "regenerated": "2023-07-21 15:03:03.962411", - "spec_repo_commit": "1b0797fc" + "regenerated": "2023-07-24 15:54:29.663211", + "spec_repo_commit": "b233d581" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 25c40c665b3..10d8d7da793 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -13649,6 +13649,10 @@ components: SensitiveDataScannerGetConfigResponseData: description: Response data related to the scanning groups. properties: + attributes: + additionalProperties: {} + description: Attributes of the Sensitive Data configuration. + type: object id: description: ID of the configuration. type: string @@ -13833,6 +13837,9 @@ components: description: Whether or not scanned events are highlighted in Logs or RUM for the org. type: boolean + has_multi_pass_enabled: + description: Whether or not scanned events have multi-pass enabled. + type: boolean is_pci_compliant: description: Whether or not the org is compliant to the payment card industry standard. @@ -14068,6 +14075,9 @@ components: SensitiveDataScannerStandardPatternAttributes: description: Attributes of the Sensitive Data Scanner standard pattern. properties: + description: + description: Description of the standard pattern. + type: string name: description: Name of the standard pattern. type: string diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponseData.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponseData.java index 787aba6464f..6349c1ab04c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponseData.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerGetConfigResponseData.java @@ -18,6 +18,7 @@ /** Response data related to the scanning groups. */ @JsonPropertyOrder({ + SensitiveDataScannerGetConfigResponseData.JSON_PROPERTY_ATTRIBUTES, SensitiveDataScannerGetConfigResponseData.JSON_PROPERTY_ID, SensitiveDataScannerGetConfigResponseData.JSON_PROPERTY_RELATIONSHIPS, SensitiveDataScannerGetConfigResponseData.JSON_PROPERTY_TYPE @@ -26,6 +27,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SensitiveDataScannerGetConfigResponseData { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private Map attributes = null; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -36,6 +40,36 @@ public class SensitiveDataScannerGetConfigResponseData { private SensitiveDataScannerConfigurationType type = SensitiveDataScannerConfigurationType.SENSITIVE_DATA_SCANNER_CONFIGURATIONS; + public SensitiveDataScannerGetConfigResponseData attributes(Map attributes) { + this.attributes = attributes; + return this; + } + + public SensitiveDataScannerGetConfigResponseData putAttributesItem( + String key, Object attributesItem) { + if (this.attributes == null) { + this.attributes = new HashMap<>(); + } + this.attributes.put(key, attributesItem); + return this; + } + + /** + * Attributes of the Sensitive Data configuration. + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getAttributes() { + return attributes; + } + + public void setAttributes(Map attributes) { + this.attributes = attributes; + } + public SensitiveDataScannerGetConfigResponseData id(String id) { this.id = id; return this; @@ -163,7 +197,8 @@ public boolean equals(Object o) { } SensitiveDataScannerGetConfigResponseData sensitiveDataScannerGetConfigResponseData = (SensitiveDataScannerGetConfigResponseData) o; - return Objects.equals(this.id, sensitiveDataScannerGetConfigResponseData.id) + return Objects.equals(this.attributes, sensitiveDataScannerGetConfigResponseData.attributes) + && Objects.equals(this.id, sensitiveDataScannerGetConfigResponseData.id) && Objects.equals( this.relationships, sensitiveDataScannerGetConfigResponseData.relationships) && Objects.equals(this.type, sensitiveDataScannerGetConfigResponseData.type) @@ -174,13 +209,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, relationships, type, additionalProperties); + return Objects.hash(attributes, id, relationships, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerGetConfigResponseData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMeta.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMeta.java index 366bf5188c1..086ed81bc8d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMeta.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerMeta.java @@ -21,6 +21,7 @@ SensitiveDataScannerMeta.JSON_PROPERTY_COUNT_LIMIT, SensitiveDataScannerMeta.JSON_PROPERTY_GROUP_COUNT_LIMIT, SensitiveDataScannerMeta.JSON_PROPERTY_HAS_HIGHLIGHT_ENABLED, + SensitiveDataScannerMeta.JSON_PROPERTY_HAS_MULTI_PASS_ENABLED, SensitiveDataScannerMeta.JSON_PROPERTY_IS_PCI_COMPLIANT, SensitiveDataScannerMeta.JSON_PROPERTY_VERSION }) @@ -37,6 +38,9 @@ public class SensitiveDataScannerMeta { public static final String JSON_PROPERTY_HAS_HIGHLIGHT_ENABLED = "has_highlight_enabled"; private Boolean hasHighlightEnabled; + public static final String JSON_PROPERTY_HAS_MULTI_PASS_ENABLED = "has_multi_pass_enabled"; + private Boolean hasMultiPassEnabled; + public static final String JSON_PROPERTY_IS_PCI_COMPLIANT = "is_pci_compliant"; private Boolean isPciCompliant; @@ -106,6 +110,27 @@ public void setHasHighlightEnabled(Boolean hasHighlightEnabled) { this.hasHighlightEnabled = hasHighlightEnabled; } + public SensitiveDataScannerMeta hasMultiPassEnabled(Boolean hasMultiPassEnabled) { + this.hasMultiPassEnabled = hasMultiPassEnabled; + return this; + } + + /** + * Whether or not scanned events have multi-pass enabled. + * + * @return hasMultiPassEnabled + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_HAS_MULTI_PASS_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getHasMultiPassEnabled() { + return hasMultiPassEnabled; + } + + public void setHasMultiPassEnabled(Boolean hasMultiPassEnabled) { + this.hasMultiPassEnabled = hasMultiPassEnabled; + } + public SensitiveDataScannerMeta isPciCompliant(Boolean isPciCompliant) { this.isPciCompliant = isPciCompliant; return this; @@ -207,6 +232,7 @@ public boolean equals(Object o) { return Objects.equals(this.countLimit, sensitiveDataScannerMeta.countLimit) && Objects.equals(this.groupCountLimit, sensitiveDataScannerMeta.groupCountLimit) && Objects.equals(this.hasHighlightEnabled, sensitiveDataScannerMeta.hasHighlightEnabled) + && Objects.equals(this.hasMultiPassEnabled, sensitiveDataScannerMeta.hasMultiPassEnabled) && Objects.equals(this.isPciCompliant, sensitiveDataScannerMeta.isPciCompliant) && Objects.equals(this.version, sensitiveDataScannerMeta.version) && Objects.equals(this.additionalProperties, sensitiveDataScannerMeta.additionalProperties); @@ -218,6 +244,7 @@ public int hashCode() { countLimit, groupCountLimit, hasHighlightEnabled, + hasMultiPassEnabled, isPciCompliant, version, additionalProperties); @@ -232,6 +259,9 @@ public String toString() { sb.append(" hasHighlightEnabled: ") .append(toIndentedString(hasHighlightEnabled)) .append("\n"); + sb.append(" hasMultiPassEnabled: ") + .append(toIndentedString(hasMultiPassEnabled)) + .append("\n"); sb.append(" isPciCompliant: ").append(toIndentedString(isPciCompliant)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" additionalProperties: ") diff --git a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternAttributes.java index 7d8b930b607..0db6fb96a14 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SensitiveDataScannerStandardPatternAttributes.java @@ -20,6 +20,7 @@ /** Attributes of the Sensitive Data Scanner standard pattern. */ @JsonPropertyOrder({ + SensitiveDataScannerStandardPatternAttributes.JSON_PROPERTY_DESCRIPTION, SensitiveDataScannerStandardPatternAttributes.JSON_PROPERTY_NAME, SensitiveDataScannerStandardPatternAttributes.JSON_PROPERTY_PATTERN, SensitiveDataScannerStandardPatternAttributes.JSON_PROPERTY_TAGS @@ -28,6 +29,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SensitiveDataScannerStandardPatternAttributes { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -37,6 +41,27 @@ public class SensitiveDataScannerStandardPatternAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private List tags = null; + public SensitiveDataScannerStandardPatternAttributes description(String description) { + this.description = description; + return this; + } + + /** + * Description of the standard pattern. + * + * @return description + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + public SensitiveDataScannerStandardPatternAttributes name(String name) { this.name = name; return this; @@ -166,7 +191,9 @@ public boolean equals(Object o) { } SensitiveDataScannerStandardPatternAttributes sensitiveDataScannerStandardPatternAttributes = (SensitiveDataScannerStandardPatternAttributes) o; - return Objects.equals(this.name, sensitiveDataScannerStandardPatternAttributes.name) + return Objects.equals( + this.description, sensitiveDataScannerStandardPatternAttributes.description) + && Objects.equals(this.name, sensitiveDataScannerStandardPatternAttributes.name) && Objects.equals(this.pattern, sensitiveDataScannerStandardPatternAttributes.pattern) && Objects.equals(this.tags, sensitiveDataScannerStandardPatternAttributes.tags) && Objects.equals( @@ -176,13 +203,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(name, pattern, tags, additionalProperties); + return Objects.hash(description, name, pattern, tags, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SensitiveDataScannerStandardPatternAttributes {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n");