diff --git a/.apigentools-info b/.apigentools-info index 247605d3429..7abb14f0e73 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.5", - "regenerated": "2023-08-02 14:07:14.386224", - "spec_repo_commit": "75a8c502" + "regenerated": "2023-08-03 15:19:26.436178", + "spec_repo_commit": "200d56a1" }, "v2": { "apigentools_version": "1.6.5", - "regenerated": "2023-08-02 14:07:14.399331", - "spec_repo_commit": "75a8c502" + "regenerated": "2023-08-03 15:19:26.452453", + "spec_repo_commit": "200d56a1" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 31392c41f2d..d4bed0cf490 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -859,6 +859,9 @@ components: customAttribute: 123 duration: 2345 type: object + message: + description: Message of the event. + type: string service: description: 'Name of the application or service generating Audit Logs events. diff --git a/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventAttributes.java b/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventAttributes.java index 4eea42aa8ed..e238721f233 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/AuditLogsEventAttributes.java @@ -22,6 +22,7 @@ /** JSON object containing all event attributes and their associated values. */ @JsonPropertyOrder({ AuditLogsEventAttributes.JSON_PROPERTY_ATTRIBUTES, + AuditLogsEventAttributes.JSON_PROPERTY_MESSAGE, AuditLogsEventAttributes.JSON_PROPERTY_SERVICE, AuditLogsEventAttributes.JSON_PROPERTY_TAGS, AuditLogsEventAttributes.JSON_PROPERTY_TIMESTAMP @@ -33,6 +34,9 @@ public class AuditLogsEventAttributes { public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private Map attributes = null; + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + public static final String JSON_PROPERTY_SERVICE = "service"; private String service; @@ -71,6 +75,27 @@ public void setAttributes(Map attributes) { this.attributes = attributes; } + public AuditLogsEventAttributes message(String message) { + this.message = message; + return this; + } + + /** + * Message of the event. + * + * @return message + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + public AuditLogsEventAttributes service(String service) { this.service = service; return this; @@ -200,6 +225,7 @@ public boolean equals(Object o) { } AuditLogsEventAttributes auditLogsEventAttributes = (AuditLogsEventAttributes) o; return Objects.equals(this.attributes, auditLogsEventAttributes.attributes) + && Objects.equals(this.message, auditLogsEventAttributes.message) && Objects.equals(this.service, auditLogsEventAttributes.service) && Objects.equals(this.tags, auditLogsEventAttributes.tags) && Objects.equals(this.timestamp, auditLogsEventAttributes.timestamp) @@ -208,7 +234,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(attributes, service, tags, timestamp, additionalProperties); + return Objects.hash(attributes, message, service, tags, timestamp, additionalProperties); } @Override @@ -216,6 +242,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AuditLogsEventAttributes {\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");