diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index d1f13600a..1264b144e 100755 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -281b4455821119945fcc4c850cf2cfad03e23c6c \ No newline at end of file +95c3732588bcf3a251348162c0712cb10bf2a0a4 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index d0777d949..14df84cdb 100755 --- a/.gitattributes +++ b/.gitattributes @@ -2166,6 +2166,8 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteProj databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleOperation.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Endpoint.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointGroupSpec.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointGroupStatus.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointHosts.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointOperationMetadata.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSettings.java linguist-generated=true @@ -2180,6 +2182,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/GetEndpoin databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/GetOperationRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/GetProjectRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/GetRoleRequest.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/InitialEndpointSpec.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ListBranchesRequest.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ListBranchesResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ListEndpointsRequest.java linguist-generated=true diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md old mode 100644 new mode 100755 index 1972eaa5e..f2a9bd184 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -13,3 +13,8 @@ ### Internal Changes ### API Changes +* Add `readOnlyHost` field for `com.databricks.sdk.service.postgres.EndpointHosts`. +* Add `group` field for `com.databricks.sdk.service.postgres.EndpointSpec`. +* Add `group` field for `com.databricks.sdk.service.postgres.EndpointStatus`. +* Add `initialEndpointSpec` field for `com.databricks.sdk.service.postgres.Project`. +* Add `DEGRADED` enum value for `com.databricks.sdk.service.postgres.EndpointStatusState`. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java index b63a136fb..5b71b785e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java @@ -808,6 +808,11 @@ public DashboardWidgetsAPI dashboardWidgets() { * to duplicate multiple dashboards at once since you can get a dashboard definition with a GET * request and then POST it to create a new one. Dashboards can be scheduled using the `sql_task` * type of the Jobs API, e.g. :method:jobs/create. + * + *
**Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn + * more] + * + *
[Learn more]: https://docs.databricks.com/en/dashboards/ */ public DashboardsAPI dashboards() { return dashboardsAPI; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointGroupSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointGroupSpec.java new file mode 100755 index 000000000..ff9fc27c7 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointGroupSpec.java @@ -0,0 +1,84 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.postgres; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class EndpointGroupSpec { + /** + * Whether to allow read-only connections to read-write endpoints. Only relevant for read-write + * endpoints where size.max > 1. + */ + @JsonProperty("enable_readable_secondaries") + private Boolean enableReadableSecondaries; + + /** + * The maximum number of computes in the endpoint group. Currently, this must be equal to min. Set + * to 1 for single compute endpoints, to disable HA. To manually suspend all computes in an + * endpoint group, set disabled to true on the EndpointSpec. + */ + @JsonProperty("max") + private Long max; + + /** + * The minimum number of computes in the endpoint group. Currently, this must be equal to max. + * This must be greater than or equal to 1. + */ + @JsonProperty("min") + private Long min; + + public EndpointGroupSpec setEnableReadableSecondaries(Boolean enableReadableSecondaries) { + this.enableReadableSecondaries = enableReadableSecondaries; + return this; + } + + public Boolean getEnableReadableSecondaries() { + return enableReadableSecondaries; + } + + public EndpointGroupSpec setMax(Long max) { + this.max = max; + return this; + } + + public Long getMax() { + return max; + } + + public EndpointGroupSpec setMin(Long min) { + this.min = min; + return this; + } + + public Long getMin() { + return min; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + EndpointGroupSpec that = (EndpointGroupSpec) o; + return Objects.equals(enableReadableSecondaries, that.enableReadableSecondaries) + && Objects.equals(max, that.max) + && Objects.equals(min, that.min); + } + + @Override + public int hashCode() { + return Objects.hash(enableReadableSecondaries, max, min); + } + + @Override + public String toString() { + return new ToStringer(EndpointGroupSpec.class) + .add("enableReadableSecondaries", enableReadableSecondaries) + .add("max", max) + .add("min", min) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointGroupStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointGroupStatus.java new file mode 100755 index 000000000..4664f2c49 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointGroupStatus.java @@ -0,0 +1,84 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.postgres; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class EndpointGroupStatus { + /** + * Whether read-only connections to read-write endpoints are allowed. Only relevant if read + * replicas are configured by specifying size.max > 1. + */ + @JsonProperty("enable_readable_secondaries") + private Boolean enableReadableSecondaries; + + /** + * The maximum number of computes in the endpoint group. Currently, this must be equal to min. Set + * to 1 for single compute endpoints, to disable HA. To manually suspend all computes in an + * endpoint group, set disabled to true on the EndpointSpec. + */ + @JsonProperty("max") + private Long max; + + /** + * The minimum number of computes in the endpoint group. Currently, this must be equal to max. + * This must be greater than or equal to 1. + */ + @JsonProperty("min") + private Long min; + + public EndpointGroupStatus setEnableReadableSecondaries(Boolean enableReadableSecondaries) { + this.enableReadableSecondaries = enableReadableSecondaries; + return this; + } + + public Boolean getEnableReadableSecondaries() { + return enableReadableSecondaries; + } + + public EndpointGroupStatus setMax(Long max) { + this.max = max; + return this; + } + + public Long getMax() { + return max; + } + + public EndpointGroupStatus setMin(Long min) { + this.min = min; + return this; + } + + public Long getMin() { + return min; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + EndpointGroupStatus that = (EndpointGroupStatus) o; + return Objects.equals(enableReadableSecondaries, that.enableReadableSecondaries) + && Objects.equals(max, that.max) + && Objects.equals(min, that.min); + } + + @Override + public int hashCode() { + return Objects.hash(enableReadableSecondaries, max, min); + } + + @Override + public String toString() { + return new ToStringer(EndpointGroupStatus.class) + .add("enableReadableSecondaries", enableReadableSecondaries) + .add("max", max) + .add("min", min) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointHosts.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointHosts.java index 3c859f22e..98dbbe5f7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointHosts.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointHosts.java @@ -18,6 +18,15 @@ public class EndpointHosts { @JsonProperty("host") private String host; + /** + * An optionally defined read-only host for the endpoint, without pooling. For read-only + * endpoints, this attribute is always defined and is equivalent to host. For read-write + * endpoints, this attribute is defined if the enclosing endpoint is a group with greater than 1 + * computes configured, and has readable secondaries enabled. + */ + @JsonProperty("read_only_host") + private String readOnlyHost; + public EndpointHosts setHost(String host) { this.host = host; return this; @@ -27,21 +36,33 @@ public String getHost() { return host; } + public EndpointHosts setReadOnlyHost(String readOnlyHost) { + this.readOnlyHost = readOnlyHost; + return this; + } + + public String getReadOnlyHost() { + return readOnlyHost; + } + @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; EndpointHosts that = (EndpointHosts) o; - return Objects.equals(host, that.host); + return Objects.equals(host, that.host) && Objects.equals(readOnlyHost, that.readOnlyHost); } @Override public int hashCode() { - return Objects.hash(host); + return Objects.hash(host, readOnlyHost); } @Override public String toString() { - return new ToStringer(EndpointHosts.class).add("host", host).toString(); + return new ToStringer(EndpointHosts.class) + .add("host", host) + .add("readOnlyHost", readOnlyHost) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSpec.java index 6b9e5ed6d..cdc271030 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSpec.java @@ -30,6 +30,14 @@ public class EndpointSpec { @JsonProperty("endpoint_type") private EndpointType endpointType; + /** + * Settings for optional HA configuration of the endpoint. If unspecified, the endpoint defaults + * to non HA settings, with a single compute backing the endpoint (and no readable secondaries for + * Read/Write endpoints). + */ + @JsonProperty("group") + private EndpointGroupSpec group; + /** * When set to true, explicitly disables automatic suspension (never suspend). Should be set to * true when provided. @@ -84,6 +92,15 @@ public EndpointType getEndpointType() { return endpointType; } + public EndpointSpec setGroup(EndpointGroupSpec group) { + this.group = group; + return this; + } + + public EndpointGroupSpec getGroup() { + return group; + } + public EndpointSpec setNoSuspension(Boolean noSuspension) { this.noSuspension = noSuspension; return this; @@ -120,6 +137,7 @@ public boolean equals(Object o) { && Objects.equals(autoscalingLimitMinCu, that.autoscalingLimitMinCu) && Objects.equals(disabled, that.disabled) && Objects.equals(endpointType, that.endpointType) + && Objects.equals(group, that.group) && Objects.equals(noSuspension, that.noSuspension) && Objects.equals(settings, that.settings) && Objects.equals(suspendTimeoutDuration, that.suspendTimeoutDuration); @@ -132,6 +150,7 @@ public int hashCode() { autoscalingLimitMinCu, disabled, endpointType, + group, noSuspension, settings, suspendTimeoutDuration); @@ -144,6 +163,7 @@ public String toString() { .add("autoscalingLimitMinCu", autoscalingLimitMinCu) .add("disabled", disabled) .add("endpointType", endpointType) + .add("group", group) .add("noSuspension", noSuspension) .add("settings", settings) .add("suspendTimeoutDuration", suspendTimeoutDuration) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatus.java index d989aeac1..b4c3d11b1 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatus.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatus.java @@ -34,6 +34,10 @@ public class EndpointStatus { @JsonProperty("endpoint_type") private EndpointType endpointType; + /** Details on the HA configuration of the endpoint. */ + @JsonProperty("group") + private EndpointGroupStatus group; + /** Contains host information for connecting to the endpoint. */ @JsonProperty("hosts") private EndpointHosts hosts; @@ -95,6 +99,15 @@ public EndpointType getEndpointType() { return endpointType; } + public EndpointStatus setGroup(EndpointGroupStatus group) { + this.group = group; + return this; + } + + public EndpointGroupStatus getGroup() { + return group; + } + public EndpointStatus setHosts(EndpointHosts hosts) { this.hosts = hosts; return this; @@ -141,6 +154,7 @@ public boolean equals(Object o) { && Objects.equals(currentState, that.currentState) && Objects.equals(disabled, that.disabled) && Objects.equals(endpointType, that.endpointType) + && Objects.equals(group, that.group) && Objects.equals(hosts, that.hosts) && Objects.equals(pendingState, that.pendingState) && Objects.equals(settings, that.settings) @@ -155,6 +169,7 @@ public int hashCode() { currentState, disabled, endpointType, + group, hosts, pendingState, settings, @@ -169,6 +184,7 @@ public String toString() { .add("currentState", currentState) .add("disabled", disabled) .add("endpointType", endpointType) + .add("group", group) .add("hosts", hosts) .add("pendingState", pendingState) .add("settings", settings) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatusState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatusState.java index 57714e82b..0cb2d8d0e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatusState.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatusState.java @@ -8,6 +8,7 @@ @Generated public enum EndpointStatusState { ACTIVE, + DEGRADED, IDLE, INIT, } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/InitialEndpointSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/InitialEndpointSpec.java new file mode 100755 index 000000000..f2196ad2a --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/InitialEndpointSpec.java @@ -0,0 +1,42 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.postgres; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class InitialEndpointSpec { + /** Settings for HA configuration of the endpoint */ + @JsonProperty("group") + private EndpointGroupSpec group; + + public InitialEndpointSpec setGroup(EndpointGroupSpec group) { + this.group = group; + return this; + } + + public EndpointGroupSpec getGroup() { + return group; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InitialEndpointSpec that = (InitialEndpointSpec) o; + return Objects.equals(group, that.group); + } + + @Override + public int hashCode() { + return Objects.hash(group); + } + + @Override + public String toString() { + return new ToStringer(InitialEndpointSpec.class).add("group", group).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Project.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Project.java index 194aa185f..2f9137f8d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Project.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Project.java @@ -14,6 +14,16 @@ public class Project { @JsonProperty("create_time") private Timestamp createTime; + /** + * Configuration settings for the initial Read/Write endpoint created inside the default branch + * for a newly created project. If omitted, the initial endpoint created will have default + * settings, without high availability configured. This field does not apply to any endpoints + * created after project creation. Use spec.default_endpoint_settings to configure default + * settings for endpoints created after project creation. + */ + @JsonProperty("initial_endpoint_spec") + private InitialEndpointSpec initialEndpointSpec; + /** Output only. The full resource path of the project. Format: projects/{project_id} */ @JsonProperty("name") private String name; @@ -46,6 +56,15 @@ public Timestamp getCreateTime() { return createTime; } + public Project setInitialEndpointSpec(InitialEndpointSpec initialEndpointSpec) { + this.initialEndpointSpec = initialEndpointSpec; + return this; + } + + public InitialEndpointSpec getInitialEndpointSpec() { + return initialEndpointSpec; + } + public Project setName(String name) { this.name = name; return this; @@ -97,6 +116,7 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; Project that = (Project) o; return Objects.equals(createTime, that.createTime) + && Objects.equals(initialEndpointSpec, that.initialEndpointSpec) && Objects.equals(name, that.name) && Objects.equals(spec, that.spec) && Objects.equals(status, that.status) @@ -106,13 +126,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(createTime, name, spec, status, uid, updateTime); + return Objects.hash(createTime, initialEndpointSpec, name, spec, status, uid, updateTime); } @Override public String toString() { return new ToStringer(Project.class) .add("createTime", createTime) + .add("initialEndpointSpec", initialEndpointSpec) .add("name", name) .add("spec", spec) .add("status", status) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWarehouseRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWarehouseRequest.java index 355151317..eceace425 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWarehouseRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/CreateWarehouseRequest.java @@ -43,7 +43,7 @@ public class CreateWarehouseRequest { /** * Configures whether the warehouse should use Photon optimized clusters. * - *
Defaults to false. + *
Defaults to true. */ @JsonProperty("enable_photon") private Boolean enablePhoton; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsAPI.java index 014f89e17..8d449a27c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsAPI.java @@ -13,6 +13,10 @@ * duplicate multiple dashboards at once since you can get a dashboard definition with a GET request * and then POST it to create a new one. Dashboards can be scheduled using the `sql_task` type of * the Jobs API, e.g. :method:jobs/create. + * + *
**Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn more] + * + *
[Learn more]: https://docs.databricks.com/en/dashboards/ */ @Generated public class DashboardsAPI { @@ -37,6 +41,11 @@ public void delete(String dashboardId) { /** * Moves a dashboard to the trash. Trashed dashboards do not appear in list views or searches, and * cannot be shared. + * + *
**Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn + * more] + * + *
[Learn more]: https://docs.databricks.com/en/dashboards/ */ public void delete(DeleteDashboardRequest request) { impl.delete(request); @@ -49,6 +58,11 @@ public Dashboard get(String dashboardId) { /** * Returns a JSON representation of a dashboard object, including its visualization and query * objects. + * + *
**Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn + * more] + * + *
[Learn more]: https://docs.databricks.com/en/dashboards/ */ public Dashboard get(GetDashboardRequest request) { return impl.get(request); @@ -59,6 +73,11 @@ public Dashboard get(GetDashboardRequest request) { * *
**Warning**: Calling this API concurrently 10 or more times could result in throttling, * service degradation, or a temporary ban. + * + *
**Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn + * more] + * + *
[Learn more]: https://docs.databricks.com/en/dashboards/
*/
public Iterable **Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn
+ * more]
+ *
+ * [Learn more]: https://docs.databricks.com/en/dashboards/
+ */
public void restore(RestoreDashboardRequest request) {
impl.restore(request);
}
@@ -85,6 +111,11 @@ public void restore(RestoreDashboardRequest request) {
* object. It does not add, modify, or remove widgets.
*
* **Note**: You cannot undo this operation.
+ *
+ * **Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn
+ * more]
+ *
+ * [Learn more]: https://docs.databricks.com/en/dashboards/
*/
public Dashboard update(DashboardEditContent request) {
return impl.update(request);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsService.java
index 092b4a7a7..9097860a0 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DashboardsService.java
@@ -10,6 +10,10 @@
* and then POST it to create a new one. Dashboards can be scheduled using the `sql_task` type of
* the Jobs API, e.g. :method:jobs/create.
*
+ * **Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn more]
+ *
+ * [Learn more]: https://docs.databricks.com/en/dashboards/
+ *
* This is the high-level interface, that contains generated methods.
*
* Evolving: this interface is under development. Method signatures may change.
@@ -19,12 +23,22 @@ public interface DashboardsService {
/**
* Moves a dashboard to the trash. Trashed dashboards do not appear in list views or searches, and
* cannot be shared.
+ *
+ * **Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn
+ * more]
+ *
+ * [Learn more]: https://docs.databricks.com/en/dashboards/
*/
void delete(DeleteDashboardRequest deleteDashboardRequest);
/**
* Returns a JSON representation of a dashboard object, including its visualization and query
* objects.
+ *
+ * **Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn
+ * more]
+ *
+ * [Learn more]: https://docs.databricks.com/en/dashboards/
*/
Dashboard get(GetDashboardRequest getDashboardRequest);
@@ -33,10 +47,22 @@ public interface DashboardsService {
*
* **Warning**: Calling this API concurrently 10 or more times could result in throttling,
* service degradation, or a temporary ban.
+ *
+ * **Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn
+ * more]
+ *
+ * [Learn more]: https://docs.databricks.com/en/dashboards/
*/
ListResponse list(ListDashboardsRequest listDashboardsRequest);
- /** A restored dashboard appears in list views and searches and can be shared. */
+ /**
+ * A restored dashboard appears in list views and searches and can be shared.
+ *
+ * **Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn
+ * more]
+ *
+ * [Learn more]: https://docs.databricks.com/en/dashboards/
+ */
void restore(RestoreDashboardRequest restoreDashboardRequest);
/**
@@ -44,6 +70,11 @@ public interface DashboardsService {
* object. It does not add, modify, or remove widgets.
*
* **Note**: You cannot undo this operation.
+ *
+ * **Warning**: This API is deprecated. Please use the AI/BI Dashboards API instead. [Learn
+ * more]
+ *
+ * [Learn more]: https://docs.databricks.com/en/dashboards/
*/
Dashboard update(DashboardEditContent dashboardEditContent);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java
index 3343356c6..b64211012 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EditWarehouseRequest.java
@@ -48,7 +48,7 @@ public class EditWarehouseRequest {
/**
* Configures whether the warehouse should use Photon optimized clusters.
*
- * Defaults to false.
+ * Defaults to true.
*/
@JsonProperty("enable_photon")
private Boolean enablePhoton;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java
index 4132cc7dd..88173f3a0 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/EndpointInfo.java
@@ -42,7 +42,7 @@ public class EndpointInfo {
/**
* Configures whether the warehouse should use Photon optimized clusters.
*
- * Defaults to false.
+ * Defaults to true.
*/
@JsonProperty("enable_photon")
private Boolean enablePhoton;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java
index f4a691556..74bb54bd3 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/GetWarehouseResponse.java
@@ -42,7 +42,7 @@ public class GetWarehouseResponse {
/**
* Configures whether the warehouse should use Photon optimized clusters.
*
- * Defaults to false.
+ * Defaults to true.
*/
@JsonProperty("enable_photon")
private Boolean enablePhoton;