Skip to content
Open
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
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
62870287fa7d3f2ba570333dd2645e86cb8e1a82
895ab82bc2cd7970f21d9cdcba4d95d52e1705cc
4 changes: 3 additions & 1 deletion NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
* [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`.
25 changes: 23 additions & 2 deletions ...-sdk-java/src/main/java/com/databricks/sdk/service/catalog/AccessRequestDestinations.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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<NotificationDestination> 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;

Expand All @@ -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<NotificationDestination> destinations) {
this.destinations = destinations;
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
37 changes: 36 additions & 1 deletion databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/Table.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> accessModes;

/** The comment of the table. */
@JsonProperty("comment")
private String comment;
Expand Down Expand Up @@ -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<com.databricks.sdk.service.catalog.TagKeyValue> tags;

public Table setAccessModes(Collection<String> accessModes) {
this.accessModes = accessModes;
return this;
}

public Collection<String> getAccessModes() {
return accessModes;
}

public Table setComment(String comment) {
this.comment = comment;
return this;
Expand Down Expand Up @@ -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<com.databricks.sdk.service.catalog.TagKeyValue> tags) {
this.tags = tags;
return this;
Expand All @@ -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)
Expand All @@ -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,
Expand All @@ -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)
Expand All @@ -184,6 +218,7 @@ public String toString() {
.add("schema", schema)
.add("share", share)
.add("shareId", shareId)
.add("storageLocation", storageLocation)
.add("tags", tags)
.toString();
}
Expand Down
Loading