From fc278a82eafdbce2ac87573b3b5a179ed74e0bf4 Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-1[bot]" <184311507+databricks-ci-ghec-1[bot]@users.noreply.github.com> Date: Wed, 24 Dec 2025 10:54:47 +0000 Subject: [PATCH] Update SDK to 895ab82bc2cd7970f21d9cdcba4d95d52e1705cc --- .codegen/_openapi_sha | 2 +- NEXT_CHANGELOG.md | 4 +- .../catalog/AccessRequestDestinations.java | 25 ++++++++++++- .../sdk/service/catalog/SecurableKind.java | 2 +- .../databricks/sdk/service/sharing/Table.java | 37 ++++++++++++++++++- 5 files changed, 64 insertions(+), 6 deletions(-) mode change 100755 => 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AccessRequestDestinations.java mode change 100755 => 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/Table.java diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index d4d96fe05..7d0cf7906 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -62870287fa7d3f2ba570333dd2645e86cb8e1a82 \ No newline at end of file +895ab82bc2cd7970f21d9cdcba4d95d52e1705cc \ No newline at end of file diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index ce52a0f48..424a07f81 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -31,4 +31,6 @@ * Add `TABLE`, `FUNCTION` and `CONNECTION` enum values for `com.databricks.sdk.service.apps.AppResourceUcSecurableUcSecurableType`. * [Breaking] Remove `currentState`, `default`, `effectiveDefault`, `effectiveIsProtected`, `effectiveSourceBranch`, `effectiveSourceBranchLsn`, `effectiveSourceBranchTime`, `isProtected`, `logicalSizeBytes`, `pendingState`, `sourceBranch`, `sourceBranchLsn`, `sourceBranchTime` and `stateChangeTime` fields for `com.databricks.sdk.service.postgres.Branch`. * [Breaking] Remove `autoscalingLimitMaxCu`, `autoscalingLimitMinCu`, `currentState`, `disabled`, `effectiveAutoscalingLimitMaxCu`, `effectiveAutoscalingLimitMinCu`, `effectiveDisabled`, `effectivePoolerMode`, `effectiveSettings`, `effectiveSuspendTimeoutDuration`, `endpointType`, `host`, `lastActiveTime`, `pendingState`, `poolerMode`, `settings`, `startTime`, `suspendTime` and `suspendTimeoutDuration` fields for `com.databricks.sdk.service.postgres.Endpoint`. -* [Breaking] Remove `branchLogicalSizeLimitBytes`, `computeLastActiveTime`, `defaultEndpointSettings`, `displayName`, `effectiveDefaultEndpointSettings`, `effectiveDisplayName`, `effectiveHistoryRetentionDuration`, `effectivePgVersion`, `effectiveSettings`, `historyRetentionDuration`, `pgVersion`, `settings` and `syntheticStorageSizeBytes` fields for `com.databricks.sdk.service.postgres.Project`. \ No newline at end of file +* [Breaking] Remove `branchLogicalSizeLimitBytes`, `computeLastActiveTime`, `defaultEndpointSettings`, `displayName`, `effectiveDefaultEndpointSettings`, `effectiveDisplayName`, `effectiveHistoryRetentionDuration`, `effectivePgVersion`, `effectiveSettings`, `historyRetentionDuration`, `pgVersion`, `settings` and `syntheticStorageSizeBytes` fields for `com.databricks.sdk.service.postgres.Project`. +* Add `destinationSourceSecurable` field for `com.databricks.sdk.service.catalog.AccessRequestDestinations`. +* Add `accessModes` and `storageLocation` fields for `com.databricks.sdk.service.sharing.Table`. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AccessRequestDestinations.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AccessRequestDestinations.java old mode 100755 new mode 100644 index 79eca7689..f018c8b78 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AccessRequestDestinations.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AccessRequestDestinations.java @@ -17,11 +17,19 @@ public class AccessRequestDestinations { @JsonProperty("are_any_destinations_hidden") private Boolean areAnyDestinationsHidden; + /** + * The source securable from which the destinations are inherited. Either the same value as + * securable (if destination is set directly on the securable) or the nearest parent securable + * with destinations set. + */ + @JsonProperty("destination_source_securable") + private Securable destinationSourceSecurable; + /** The access request destinations for the securable. */ @JsonProperty("destinations") private Collection destinations; - /** The securable for which the access request destinations are being retrieved. */ + /** The securable for which the access request destinations are being modified or read. */ @JsonProperty("securable") private Securable securable; @@ -34,6 +42,16 @@ public Boolean getAreAnyDestinationsHidden() { return areAnyDestinationsHidden; } + public AccessRequestDestinations setDestinationSourceSecurable( + Securable destinationSourceSecurable) { + this.destinationSourceSecurable = destinationSourceSecurable; + return this; + } + + public Securable getDestinationSourceSecurable() { + return destinationSourceSecurable; + } + public AccessRequestDestinations setDestinations( Collection destinations) { this.destinations = destinations; @@ -59,19 +77,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; AccessRequestDestinations that = (AccessRequestDestinations) o; return Objects.equals(areAnyDestinationsHidden, that.areAnyDestinationsHidden) + && Objects.equals(destinationSourceSecurable, that.destinationSourceSecurable) && Objects.equals(destinations, that.destinations) && Objects.equals(securable, that.securable); } @Override public int hashCode() { - return Objects.hash(areAnyDestinationsHidden, destinations, securable); + return Objects.hash( + areAnyDestinationsHidden, destinationSourceSecurable, destinations, securable); } @Override public String toString() { return new ToStringer(AccessRequestDestinations.class) .add("areAnyDestinationsHidden", areAnyDestinationsHidden) + .add("destinationSourceSecurable", destinationSourceSecurable) .add("destinations", destinations) .add("securable", securable) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java index 537945deb..994a1ebcd 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java @@ -4,7 +4,7 @@ import com.databricks.sdk.support.Generated; -/** Latest kind: CONNECTION_GOOGLE_ADS_OAUTH_U2M_WITH_DT = 284; Next id:285 */ +/** Latest kind: CONNECTION_TIKTOK_ADS_U2M = 285; Next id: 286 */ @Generated public enum SecurableKind { TABLE_DB_STORAGE, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/Table.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/Table.java old mode 100755 new mode 100644 index 119e8a050..61cff4487 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/Table.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/Table.java @@ -10,6 +10,13 @@ @Generated public class Table { + /** + * The access modes supported for this table (e.g., "url", "dir"). Used for open sharing to + * indicate how the table can be accessed. + */ + @JsonProperty("access_modes") + private Collection accessModes; + /** The comment of the table. */ @JsonProperty("comment") private String comment; @@ -46,10 +53,23 @@ public class Table { @JsonProperty("share_id") private String shareId; + /** The cloud storage location of the table for open sharing. */ + @JsonProperty("storage_location") + private String storageLocation; + /** The Tags of the table. */ @JsonProperty("tags") private Collection tags; + public Table setAccessModes(Collection accessModes) { + this.accessModes = accessModes; + return this; + } + + public Collection getAccessModes() { + return accessModes; + } + public Table setComment(String comment) { this.comment = comment; return this; @@ -131,6 +151,15 @@ public String getShareId() { return shareId; } + public Table setStorageLocation(String storageLocation) { + this.storageLocation = storageLocation; + return this; + } + + public String getStorageLocation() { + return storageLocation; + } + public Table setTags(Collection tags) { this.tags = tags; return this; @@ -145,7 +174,8 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Table that = (Table) o; - return Objects.equals(comment, that.comment) + return Objects.equals(accessModes, that.accessModes) + && Objects.equals(comment, that.comment) && Objects.equals(id, that.id) && Objects.equals(internalAttributes, that.internalAttributes) && Objects.equals(materializationNamespace, that.materializationNamespace) @@ -154,12 +184,14 @@ public boolean equals(Object o) { && Objects.equals(schema, that.schema) && Objects.equals(share, that.share) && Objects.equals(shareId, that.shareId) + && Objects.equals(storageLocation, that.storageLocation) && Objects.equals(tags, that.tags); } @Override public int hashCode() { return Objects.hash( + accessModes, comment, id, internalAttributes, @@ -169,12 +201,14 @@ public int hashCode() { schema, share, shareId, + storageLocation, tags); } @Override public String toString() { return new ToStringer(Table.class) + .add("accessModes", accessModes) .add("comment", comment) .add("id", id) .add("internalAttributes", internalAttributes) @@ -184,6 +218,7 @@ public String toString() { .add("schema", schema) .add("share", share) .add("shareId", shareId) + .add("storageLocation", storageLocation) .add("tags", tags) .toString(); }