diff --git a/.apigentools-info b/.apigentools-info index 4ff48c1879b..977be629095 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.5", - "regenerated": "2023-07-10 14:14:42.901284", - "spec_repo_commit": "19d6892e" + "regenerated": "2023-07-10 14:43:30.728293", + "spec_repo_commit": "96fb94b8" }, "v2": { "apigentools_version": "1.6.5", - "regenerated": "2023-07-10 14:14:42.915553", - "spec_repo_commit": "19d6892e" + "regenerated": "2023-07-10 14:43:30.742030", + "spec_repo_commit": "96fb94b8" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index b8d0fce058b..47212da6360 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -3974,7 +3974,13 @@ components: DowntimeResponseAttributes: description: Downtime details. properties: - created_at: + canceled: + description: Time that the downtime was canceled. + example: 2020-01-02T03:04:05.282979+0000 + format: date-time + nullable: true + type: string + created: description: Creation time of the downtime. example: 2020-01-02T03:04:05.282979+0000 format: date-time @@ -3983,7 +3989,7 @@ components: $ref: '#/components/schemas/DowntimeDisplayTimezone' message: $ref: '#/components/schemas/DowntimeMessage' - modified_at: + modified: description: Time that the downtime was last modified. example: 2020-01-02T03:04:05.282979+0000 format: date-time diff --git a/src/main/java/com/datadog/api/client/v2/model/DowntimeResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/DowntimeResponseAttributes.java index 9a6b33121ab..4d065d16d12 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DowntimeResponseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/DowntimeResponseAttributes.java @@ -22,10 +22,11 @@ /** Downtime details. */ @JsonPropertyOrder({ - DowntimeResponseAttributes.JSON_PROPERTY_CREATED_AT, + DowntimeResponseAttributes.JSON_PROPERTY_CANCELED, + DowntimeResponseAttributes.JSON_PROPERTY_CREATED, DowntimeResponseAttributes.JSON_PROPERTY_DISPLAY_TIMEZONE, DowntimeResponseAttributes.JSON_PROPERTY_MESSAGE, - DowntimeResponseAttributes.JSON_PROPERTY_MODIFIED_AT, + DowntimeResponseAttributes.JSON_PROPERTY_MODIFIED, DowntimeResponseAttributes.JSON_PROPERTY_MONITOR_IDENTIFIER, DowntimeResponseAttributes.JSON_PROPERTY_MUTE_FIRST_RECOVERY_NOTIFICATION, DowntimeResponseAttributes.JSON_PROPERTY_NOTIFY_END_STATES, @@ -38,8 +39,11 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DowntimeResponseAttributes { @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - private OffsetDateTime createdAt; + public static final String JSON_PROPERTY_CANCELED = "canceled"; + private JsonNullable canceled = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_CREATED = "created"; + private OffsetDateTime created; public static final String JSON_PROPERTY_DISPLAY_TIMEZONE = "display_timezone"; private JsonNullable displayTimezone = JsonNullable.of("UTC"); @@ -47,8 +51,8 @@ public class DowntimeResponseAttributes { public static final String JSON_PROPERTY_MESSAGE = "message"; private JsonNullable message = JsonNullable.undefined(); - public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at"; - private OffsetDateTime modifiedAt; + public static final String JSON_PROPERTY_MODIFIED = "modified"; + private OffsetDateTime modified; public static final String JSON_PROPERTY_MONITOR_IDENTIFIER = "monitor_identifier"; private DowntimeMonitorIdentifier monitorIdentifier; @@ -72,25 +76,56 @@ public class DowntimeResponseAttributes { public static final String JSON_PROPERTY_STATUS = "status"; private DowntimeStatus status; - public DowntimeResponseAttributes createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DowntimeResponseAttributes canceled(OffsetDateTime canceled) { + this.canceled = JsonNullable.of(canceled); + return this; + } + + /** + * Time that the downtime was canceled. + * + * @return canceled + */ + @jakarta.annotation.Nullable + @JsonIgnore + public OffsetDateTime getCanceled() { + return canceled.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_CANCELED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public JsonNullable getCanceled_JsonNullable() { + return canceled; + } + + @JsonProperty(JSON_PROPERTY_CANCELED) + public void setCanceled_JsonNullable(JsonNullable canceled) { + this.canceled = canceled; + } + + public void setCanceled(OffsetDateTime canceled) { + this.canceled = JsonNullable.of(canceled); + } + + public DowntimeResponseAttributes created(OffsetDateTime created) { + this.created = created; return this; } /** * Creation time of the downtime. * - * @return createdAt + * @return created */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(JSON_PROPERTY_CREATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getCreatedAt() { - return createdAt; + public OffsetDateTime getCreated() { + return created; } - public void setCreatedAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public void setCreated(OffsetDateTime created) { + this.created = created; } public DowntimeResponseAttributes displayTimezone(String displayTimezone) { @@ -157,25 +192,25 @@ public void setMessage(String message) { this.message = JsonNullable.of(message); } - public DowntimeResponseAttributes modifiedAt(OffsetDateTime modifiedAt) { - this.modifiedAt = modifiedAt; + public DowntimeResponseAttributes modified(OffsetDateTime modified) { + this.modified = modified; return this; } /** * Time that the downtime was last modified. * - * @return modifiedAt + * @return modified */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MODIFIED_AT) + @JsonProperty(JSON_PROPERTY_MODIFIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getModifiedAt() { - return modifiedAt; + public OffsetDateTime getModified() { + return modified; } - public void setModifiedAt(OffsetDateTime modifiedAt) { - this.modifiedAt = modifiedAt; + public void setModified(OffsetDateTime modified) { + this.modified = modified; } public DowntimeResponseAttributes monitorIdentifier(DowntimeMonitorIdentifier monitorIdentifier) { @@ -415,10 +450,11 @@ public boolean equals(Object o) { return false; } DowntimeResponseAttributes downtimeResponseAttributes = (DowntimeResponseAttributes) o; - return Objects.equals(this.createdAt, downtimeResponseAttributes.createdAt) + return Objects.equals(this.canceled, downtimeResponseAttributes.canceled) + && Objects.equals(this.created, downtimeResponseAttributes.created) && Objects.equals(this.displayTimezone, downtimeResponseAttributes.displayTimezone) && Objects.equals(this.message, downtimeResponseAttributes.message) - && Objects.equals(this.modifiedAt, downtimeResponseAttributes.modifiedAt) + && Objects.equals(this.modified, downtimeResponseAttributes.modified) && Objects.equals(this.monitorIdentifier, downtimeResponseAttributes.monitorIdentifier) && Objects.equals( this.muteFirstRecoveryNotification, @@ -435,10 +471,11 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - createdAt, + canceled, + created, displayTimezone, message, - modifiedAt, + modified, monitorIdentifier, muteFirstRecoveryNotification, notifyEndStates, @@ -453,10 +490,11 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DowntimeResponseAttributes {\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" canceled: ").append(toIndentedString(canceled)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" displayTimezone: ").append(toIndentedString(displayTimezone)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); + sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" monitorIdentifier: ").append(toIndentedString(monitorIdentifier)).append("\n"); sb.append(" muteFirstRecoveryNotification: ") .append(toIndentedString(muteFirstRecoveryNotification))