diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index ec476ab82..23433148e 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -2a91f7354f73e4b52d212181bfc7591f563ccc50 \ No newline at end of file +596323fdb6eeb4403529e98d557a4d8100238ef3 \ No newline at end of file diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index da2864483..eaca818d5 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -15,3 +15,6 @@ ### Internal Changes ### API Changes +* Add `updateTime` field for `com.databricks.sdk.service.bundledeployments.Resource`. +* [Breaking] Change `role` field for `com.databricks.sdk.service.postgres.DatabaseDatabaseSpec` to be required. +* Change `role` field for `com.databricks.sdk.service.postgres.DatabaseDatabaseSpec` to be required. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/bundledeployments/Resource.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/bundledeployments/Resource.java index a16c914c8..d905687f2 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/bundledeployments/Resource.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/bundledeployments/Resource.java @@ -6,6 +6,7 @@ import com.databricks.sdk.support.ToStringer; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.JsonNode; +import com.google.protobuf.Timestamp; import java.util.Objects; /** @@ -45,6 +46,13 @@ public class Resource { @JsonProperty("state") private JsonNode state; + /** + * When the last operation that updated this resource's recorded state was applied. Pairs with + * last_action_type and last_version_id (all three advance together on that write). + */ + @JsonProperty("update_time") + private Timestamp updateTime; + public Resource setLastActionType(OperationActionType lastActionType) { this.lastActionType = lastActionType; return this; @@ -108,6 +116,15 @@ public JsonNode getState() { return state; } + public Resource setUpdateTime(Timestamp updateTime) { + this.updateTime = updateTime; + return this; + } + + public Timestamp getUpdateTime() { + return updateTime; + } + @Override public boolean equals(Object o) { if (this == o) return true; @@ -119,13 +136,21 @@ public boolean equals(Object o) { && Objects.equals(resourceId, that.resourceId) && Objects.equals(resourceKey, that.resourceKey) && Objects.equals(resourceType, that.resourceType) - && Objects.equals(state, that.state); + && Objects.equals(state, that.state) + && Objects.equals(updateTime, that.updateTime); } @Override public int hashCode() { return Objects.hash( - lastActionType, lastVersionId, name, resourceId, resourceKey, resourceType, state); + lastActionType, + lastVersionId, + name, + resourceId, + resourceKey, + resourceType, + state, + updateTime); } @Override @@ -138,6 +163,7 @@ public String toString() { .add("resourceKey", resourceKey) .add("resourceType", resourceType) .add("state", state) + .add("updateTime", updateTime) .toString(); } }