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.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"
}
}
}
3 changes: 3 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,6 +34,9 @@ public class AuditLogsEventAttributes {
public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
private Map<String, Object> attributes = null;

public static final String JSON_PROPERTY_MESSAGE = "message";
private String message;

public static final String JSON_PROPERTY_SERVICE = "service";
private String service;

Expand Down Expand Up @@ -71,6 +75,27 @@ public void setAttributes(Map<String, Object> 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;
Expand Down Expand Up @@ -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)
Expand All @@ -208,14 +234,15 @@ 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
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");
Expand Down