Skip to content

Commit fc278a8

Browse files
Update SDK to 895ab82bc2cd7970f21d9cdcba4d95d52e1705cc
1 parent 8a4a789 commit fc278a8

File tree

5 files changed

+64
-6
lines changed

5 files changed

+64
-6
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
62870287fa7d3f2ba570333dd2645e86cb8e1a82
1+
895ab82bc2cd7970f21d9cdcba4d95d52e1705cc

NEXT_CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@
3131
* Add `TABLE`, `FUNCTION` and `CONNECTION` enum values for `com.databricks.sdk.service.apps.AppResourceUcSecurableUcSecurableType`.
3232
* [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`.
3333
* [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`.
34-
* [Breaking] Remove `branchLogicalSizeLimitBytes`, `computeLastActiveTime`, `defaultEndpointSettings`, `displayName`, `effectiveDefaultEndpointSettings`, `effectiveDisplayName`, `effectiveHistoryRetentionDuration`, `effectivePgVersion`, `effectiveSettings`, `historyRetentionDuration`, `pgVersion`, `settings` and `syntheticStorageSizeBytes` fields for `com.databricks.sdk.service.postgres.Project`.
34+
* [Breaking] Remove `branchLogicalSizeLimitBytes`, `computeLastActiveTime`, `defaultEndpointSettings`, `displayName`, `effectiveDefaultEndpointSettings`, `effectiveDisplayName`, `effectiveHistoryRetentionDuration`, `effectivePgVersion`, `effectiveSettings`, `historyRetentionDuration`, `pgVersion`, `settings` and `syntheticStorageSizeBytes` fields for `com.databricks.sdk.service.postgres.Project`.
35+
* Add `destinationSourceSecurable` field for `com.databricks.sdk.service.catalog.AccessRequestDestinations`.
36+
* Add `accessModes` and `storageLocation` fields for `com.databricks.sdk.service.sharing.Table`.

databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AccessRequestDestinations.java

100755100644
Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ public class AccessRequestDestinations {
1717
@JsonProperty("are_any_destinations_hidden")
1818
private Boolean areAnyDestinationsHidden;
1919

20+
/**
21+
* The source securable from which the destinations are inherited. Either the same value as
22+
* securable (if destination is set directly on the securable) or the nearest parent securable
23+
* with destinations set.
24+
*/
25+
@JsonProperty("destination_source_securable")
26+
private Securable destinationSourceSecurable;
27+
2028
/** The access request destinations for the securable. */
2129
@JsonProperty("destinations")
2230
private Collection<NotificationDestination> destinations;
2331

24-
/** The securable for which the access request destinations are being retrieved. */
32+
/** The securable for which the access request destinations are being modified or read. */
2533
@JsonProperty("securable")
2634
private Securable securable;
2735

@@ -34,6 +42,16 @@ public Boolean getAreAnyDestinationsHidden() {
3442
return areAnyDestinationsHidden;
3543
}
3644

45+
public AccessRequestDestinations setDestinationSourceSecurable(
46+
Securable destinationSourceSecurable) {
47+
this.destinationSourceSecurable = destinationSourceSecurable;
48+
return this;
49+
}
50+
51+
public Securable getDestinationSourceSecurable() {
52+
return destinationSourceSecurable;
53+
}
54+
3755
public AccessRequestDestinations setDestinations(
3856
Collection<NotificationDestination> destinations) {
3957
this.destinations = destinations;
@@ -59,19 +77,22 @@ public boolean equals(Object o) {
5977
if (o == null || getClass() != o.getClass()) return false;
6078
AccessRequestDestinations that = (AccessRequestDestinations) o;
6179
return Objects.equals(areAnyDestinationsHidden, that.areAnyDestinationsHidden)
80+
&& Objects.equals(destinationSourceSecurable, that.destinationSourceSecurable)
6281
&& Objects.equals(destinations, that.destinations)
6382
&& Objects.equals(securable, that.securable);
6483
}
6584

6685
@Override
6786
public int hashCode() {
68-
return Objects.hash(areAnyDestinationsHidden, destinations, securable);
87+
return Objects.hash(
88+
areAnyDestinationsHidden, destinationSourceSecurable, destinations, securable);
6989
}
7090

7191
@Override
7292
public String toString() {
7393
return new ToStringer(AccessRequestDestinations.class)
7494
.add("areAnyDestinationsHidden", areAnyDestinationsHidden)
95+
.add("destinationSourceSecurable", destinationSourceSecurable)
7596
.add("destinations", destinations)
7697
.add("securable", securable)
7798
.toString();

databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import com.databricks.sdk.support.Generated;
66

7-
/** Latest kind: CONNECTION_GOOGLE_ADS_OAUTH_U2M_WITH_DT = 284; Next id:285 */
7+
/** Latest kind: CONNECTION_TIKTOK_ADS_U2M = 285; Next id: 286 */
88
@Generated
99
public enum SecurableKind {
1010
TABLE_DB_STORAGE,

databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/Table.java

100755100644
Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010

1111
@Generated
1212
public class Table {
13+
/**
14+
* The access modes supported for this table (e.g., "url", "dir"). Used for open sharing to
15+
* indicate how the table can be accessed.
16+
*/
17+
@JsonProperty("access_modes")
18+
private Collection<String> accessModes;
19+
1320
/** The comment of the table. */
1421
@JsonProperty("comment")
1522
private String comment;
@@ -46,10 +53,23 @@ public class Table {
4653
@JsonProperty("share_id")
4754
private String shareId;
4855

56+
/** The cloud storage location of the table for open sharing. */
57+
@JsonProperty("storage_location")
58+
private String storageLocation;
59+
4960
/** The Tags of the table. */
5061
@JsonProperty("tags")
5162
private Collection<com.databricks.sdk.service.catalog.TagKeyValue> tags;
5263

64+
public Table setAccessModes(Collection<String> accessModes) {
65+
this.accessModes = accessModes;
66+
return this;
67+
}
68+
69+
public Collection<String> getAccessModes() {
70+
return accessModes;
71+
}
72+
5373
public Table setComment(String comment) {
5474
this.comment = comment;
5575
return this;
@@ -131,6 +151,15 @@ public String getShareId() {
131151
return shareId;
132152
}
133153

154+
public Table setStorageLocation(String storageLocation) {
155+
this.storageLocation = storageLocation;
156+
return this;
157+
}
158+
159+
public String getStorageLocation() {
160+
return storageLocation;
161+
}
162+
134163
public Table setTags(Collection<com.databricks.sdk.service.catalog.TagKeyValue> tags) {
135164
this.tags = tags;
136165
return this;
@@ -145,7 +174,8 @@ public boolean equals(Object o) {
145174
if (this == o) return true;
146175
if (o == null || getClass() != o.getClass()) return false;
147176
Table that = (Table) o;
148-
return Objects.equals(comment, that.comment)
177+
return Objects.equals(accessModes, that.accessModes)
178+
&& Objects.equals(comment, that.comment)
149179
&& Objects.equals(id, that.id)
150180
&& Objects.equals(internalAttributes, that.internalAttributes)
151181
&& Objects.equals(materializationNamespace, that.materializationNamespace)
@@ -154,12 +184,14 @@ public boolean equals(Object o) {
154184
&& Objects.equals(schema, that.schema)
155185
&& Objects.equals(share, that.share)
156186
&& Objects.equals(shareId, that.shareId)
187+
&& Objects.equals(storageLocation, that.storageLocation)
157188
&& Objects.equals(tags, that.tags);
158189
}
159190

160191
@Override
161192
public int hashCode() {
162193
return Objects.hash(
194+
accessModes,
163195
comment,
164196
id,
165197
internalAttributes,
@@ -169,12 +201,14 @@ public int hashCode() {
169201
schema,
170202
share,
171203
shareId,
204+
storageLocation,
172205
tags);
173206
}
174207

175208
@Override
176209
public String toString() {
177210
return new ToStringer(Table.class)
211+
.add("accessModes", accessModes)
178212
.add("comment", comment)
179213
.add("id", id)
180214
.add("internalAttributes", internalAttributes)
@@ -184,6 +218,7 @@ public String toString() {
184218
.add("schema", schema)
185219
.add("share", share)
186220
.add("shareId", shareId)
221+
.add("storageLocation", storageLocation)
187222
.add("tags", tags)
188223
.toString();
189224
}

0 commit comments

Comments
 (0)