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-07-13 19:35:42.204222",
"spec_repo_commit": "b37fc521"
"regenerated": "2023-07-13 20:37:03.832394",
"spec_repo_commit": "efde263a"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-13 19:35:42.222638",
"spec_repo_commit": "b37fc521"
"regenerated": "2023-07-13 20:37:03.852507",
"spec_repo_commit": "efde263a"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4443,6 +4443,9 @@ components:
properties:
attributes:
$ref: '#/components/schemas/EventAttributes'
message:
description: The message of the event.
type: string
tags:
description: An array of tags associated with the event.
example:
Expand Down Expand Up @@ -4693,6 +4696,10 @@ components:
description: The identifier of the request.
example: MWlFUjVaWGZTTTZPYzM0VXp1OXU2d3xLSVpEMjZKQ0VKUTI0dEYtM3RSOFVR
type: string
status:
description: The request status.
example: done
type: string
warnings:
description: 'A list of warnings (non-fatal errors) encountered. Partial
results might be returned if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/** The object description of an event response attribute. */
@JsonPropertyOrder({
EventResponseAttributes.JSON_PROPERTY_ATTRIBUTES,
EventResponseAttributes.JSON_PROPERTY_MESSAGE,
EventResponseAttributes.JSON_PROPERTY_TAGS,
EventResponseAttributes.JSON_PROPERTY_TIMESTAMP
})
Expand All @@ -32,6 +33,9 @@ public class EventResponseAttributes {
public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
private EventAttributes attributes;

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

public static final String JSON_PROPERTY_TAGS = "tags";
private List<String> tags = null;

Expand Down Expand Up @@ -60,6 +64,27 @@ public void setAttributes(EventAttributes attributes) {
this.attributes = attributes;
}

public EventResponseAttributes message(String message) {
this.message = message;
return this;
}

/**
* The 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 EventResponseAttributes tags(List<String> tags) {
this.tags = tags;
return this;
Expand Down Expand Up @@ -167,21 +192,23 @@ public boolean equals(Object o) {
}
EventResponseAttributes eventResponseAttributes = (EventResponseAttributes) o;
return Objects.equals(this.attributes, eventResponseAttributes.attributes)
&& Objects.equals(this.message, eventResponseAttributes.message)
&& Objects.equals(this.tags, eventResponseAttributes.tags)
&& Objects.equals(this.timestamp, eventResponseAttributes.timestamp)
&& Objects.equals(this.additionalProperties, eventResponseAttributes.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(attributes, tags, timestamp, additionalProperties);
return Objects.hash(attributes, message, tags, timestamp, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventResponseAttributes {\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" additionalProperties: ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
EventsResponseMetadata.JSON_PROPERTY_ELAPSED,
EventsResponseMetadata.JSON_PROPERTY_PAGE,
EventsResponseMetadata.JSON_PROPERTY_REQUEST_ID,
EventsResponseMetadata.JSON_PROPERTY_STATUS,
EventsResponseMetadata.JSON_PROPERTY_WARNINGS
})
@jakarta.annotation.Generated(
Expand All @@ -38,6 +39,9 @@ public class EventsResponseMetadata {
public static final String JSON_PROPERTY_REQUEST_ID = "request_id";
private String requestId;

public static final String JSON_PROPERTY_STATUS = "status";
private String status;

public static final String JSON_PROPERTY_WARNINGS = "warnings";
private List<EventsWarning> warnings = null;

Expand Down Expand Up @@ -105,6 +109,27 @@ public void setRequestId(String requestId) {
this.requestId = requestId;
}

public EventsResponseMetadata status(String status) {
this.status = status;
return this;
}

/**
* The request status.
*
* @return status
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStatus() {
return status;
}

public void setStatus(String status) {
this.status = status;
}

public EventsResponseMetadata warnings(List<EventsWarning> warnings) {
this.warnings = warnings;
for (EventsWarning item : warnings) {
Expand Down Expand Up @@ -198,13 +223,14 @@ public boolean equals(Object o) {
return Objects.equals(this.elapsed, eventsResponseMetadata.elapsed)
&& Objects.equals(this.page, eventsResponseMetadata.page)
&& Objects.equals(this.requestId, eventsResponseMetadata.requestId)
&& Objects.equals(this.status, eventsResponseMetadata.status)
&& Objects.equals(this.warnings, eventsResponseMetadata.warnings)
&& Objects.equals(this.additionalProperties, eventsResponseMetadata.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(elapsed, page, requestId, warnings, additionalProperties);
return Objects.hash(elapsed, page, requestId, status, warnings, additionalProperties);
}

@Override
Expand All @@ -214,6 +240,7 @@ public String toString() {
sb.append(" elapsed: ").append(toIndentedString(elapsed)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down