From 9c481e3b2ea8ccca6b2a99bec688ccc62e485a6c 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, 18 Feb 2026 10:09:13 +0000 Subject: [PATCH] Update SDK to 281b4455821119945fcc4c850cf2cfad03e23c6c --- .codegen/_openapi_sha | 2 +- .gitattributes | 2 + NEXT_CHANGELOG.md | 3 + .../com/databricks/sdk/WorkspaceClient.java | 4 +- .../service/catalog/QualityMonitorsAPI.java | 38 ++++----- .../catalog/QualityMonitorsService.java | 38 ++++----- .../sdk/service/postgres/RoleAttributes.java | 80 +++++++++++++++++++ .../service/postgres/RoleMembershipRole.java | 11 +++ .../sdk/service/postgres/RoleRoleSpec.java | 35 +++++++- .../sdk/service/postgres/RoleRoleStatus.java | 18 ++++- .../service/provisioning/EndpointUseCase.java | 1 + .../qualitymonitorv2/QualityMonitorV2API.java | 20 +++-- .../QualityMonitorV2Service.java | 20 +++-- 13 files changed, 214 insertions(+), 58 deletions(-) mode change 100644 => 100755 NEXT_CHANGELOG.md mode change 100644 => 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleAttributes.java create mode 100755 databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleMembershipRole.java diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 91ae48641..d1f13600a 100755 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -d040cba6d444213f0fd5d67e9f5f23cfddc1d1df \ No newline at end of file +281b4455821119945fcc4c850cf2cfad03e23c6c \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 740c5634e..d0777d949 100755 --- a/.gitattributes +++ b/.gitattributes @@ -2202,8 +2202,10 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RequestedC databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RequestedClaimsPermissionSet.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RequestedResource.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Role.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleAttributes.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleAuthMethod.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleIdentityType.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleMembershipRole.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleOperationMetadata.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleStatus.java linguist-generated=true diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md old mode 100644 new mode 100755 index b7fc13e97..fd5af7b80 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -13,3 +13,6 @@ ### Internal Changes ### API Changes +* Add `attributes` and `membershipRoles` fields for `com.databricks.sdk.service.postgres.RoleRoleSpec`. +* Add `membershipRoles` field for `com.databricks.sdk.service.postgres.RoleRoleStatus`. +* Add `GENERAL_ACCESS` enum value for `com.databricks.sdk.service.provisioning.EndpointUseCase`. \ 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 old mode 100644 new mode 100755 index 7570c5646..b63a136fb --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java @@ -1433,7 +1433,7 @@ public ProvidersAPI providers() { } /** - * [DEPRECATED] This API is deprecated. Please use the Data Quality Monitoring API instead (REST: + * Deprecated: Please use the Data Quality Monitoring API instead (REST: * /api/data-quality/v1/monitors). Manage data quality of UC objects (currently support `schema`). */ public QualityMonitorV2API qualityMonitorV2() { @@ -1441,7 +1441,7 @@ public QualityMonitorV2API qualityMonitorV2() { } /** - * [DEPRECATED] This API is deprecated. Please use the Data Quality Monitors API instead (REST: + * Deprecated: Please use the Data Quality Monitors API instead (REST: * /api/data-quality/v1/monitors), which manages both Data Profiling and Anomaly Detection. * *
A monitor computes and monitors data or model quality metrics for a table over time. It diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/QualityMonitorsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/QualityMonitorsAPI.java index 778fcc643..53975148b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/QualityMonitorsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/QualityMonitorsAPI.java @@ -7,7 +7,7 @@ import org.slf4j.LoggerFactory; /** - * [DEPRECATED] This API is deprecated. Please use the Data Quality Monitors API instead (REST: + * Deprecated: Please use the Data Quality Monitors API instead (REST: * /api/data-quality/v1/monitors), which manages both Data Profiling and Anomaly Detection. * *
A monitor computes and monitors data or model quality metrics for a table over time. It @@ -34,16 +34,16 @@ public QualityMonitorsAPI(QualityMonitorsService mock) { } /** - * [DEPRECATED] Cancels an already-initiated refresh job. Use Data Quality Monitors API instead - * (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Cancels an + * already-initiated refresh job. */ public void cancelRefresh(CancelRefreshRequest request) { impl.cancelRefresh(request); } /** - * [DEPRECATED] Creates a new monitor for the specified table. Use Data Quality Monitors API - * instead (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Creates a + * new monitor for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog, have **USE_SCHEMA** on * the table's parent schema, and have **SELECT** access on the table 2. have **USE_CATALOG** on @@ -63,8 +63,8 @@ public DeleteMonitorResponse delete(String tableName) { } /** - * [DEPRECATED] Deletes a monitor for the specified table. Use Data Quality Monitors API instead - * (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Deletes a + * monitor for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the @@ -85,8 +85,8 @@ public MonitorInfo get(String tableName) { } /** - * [DEPRECATED] Gets a monitor for the specified table. Use Data Quality Monitors API instead - * (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Gets a + * monitor for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema. 3. have the @@ -106,8 +106,8 @@ public MonitorRefreshInfo getRefresh(String tableName, long refreshId) { } /** - * [DEPRECATED] Gets info about a specific monitor refresh using the given refresh ID. Use Data - * Quality Monitors API instead (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Gets info + * about a specific monitor refresh using the given refresh ID. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the @@ -125,8 +125,8 @@ public MonitorRefreshListResponse listRefreshes(String tableName) { } /** - * [DEPRECATED] Gets an array containing the history of the most recent refreshes (up to 25) for - * this table. Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Gets an + * array containing the history of the most recent refreshes (up to 25) for this table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the @@ -140,8 +140,8 @@ public MonitorRefreshListResponse listRefreshes(ListRefreshesRequest request) { } /** - * [DEPRECATED] Regenerates the monitoring dashboard for the specified table. Use Data Quality - * Monitors API instead (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Regenerates + * the monitoring dashboard for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the @@ -156,8 +156,8 @@ public RegenerateDashboardResponse regenerateDashboard(RegenerateDashboardReques } /** - * [DEPRECATED] Queues a metric refresh on the monitor for the specified table. Use Data Quality - * Monitors API instead (/api/data-quality/v1/monitors). The refresh will execute in the + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Queues a + * metric refresh on the monitor for the specified table. The refresh will execute in the * background. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** @@ -172,8 +172,8 @@ public MonitorRefreshInfo runRefresh(RunRefreshRequest request) { } /** - * [DEPRECATED] Updates a monitor for the specified table. Use Data Quality Monitors API instead - * (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Updates a + * monitor for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/QualityMonitorsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/QualityMonitorsService.java index bdcf551f8..a98c3fc58 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/QualityMonitorsService.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/QualityMonitorsService.java @@ -4,7 +4,7 @@ import com.databricks.sdk.support.Generated; /** - * [DEPRECATED] This API is deprecated. Please use the Data Quality Monitors API instead (REST: + * Deprecated: Please use the Data Quality Monitors API instead (REST: * /api/data-quality/v1/monitors), which manages both Data Profiling and Anomaly Detection. * *
A monitor computes and monitors data or model quality metrics for a table over time. It @@ -21,14 +21,14 @@ @Generated public interface QualityMonitorsService { /** - * [DEPRECATED] Cancels an already-initiated refresh job. Use Data Quality Monitors API instead - * (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Cancels an + * already-initiated refresh job. */ void cancelRefresh(CancelRefreshRequest cancelRefreshRequest); /** - * [DEPRECATED] Creates a new monitor for the specified table. Use Data Quality Monitors API - * instead (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Creates a + * new monitor for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog, have **USE_SCHEMA** on * the table's parent schema, and have **SELECT** access on the table 2. have **USE_CATALOG** on @@ -42,8 +42,8 @@ public interface QualityMonitorsService { MonitorInfo create(CreateMonitor createMonitor); /** - * [DEPRECATED] Deletes a monitor for the specified table. Use Data Quality Monitors API instead - * (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Deletes a + * monitor for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the @@ -58,8 +58,8 @@ public interface QualityMonitorsService { DeleteMonitorResponse delete(DeleteQualityMonitorRequest deleteQualityMonitorRequest); /** - * [DEPRECATED] Gets a monitor for the specified table. Use Data Quality Monitors API instead - * (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Gets a + * monitor for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema. 3. have the @@ -73,8 +73,8 @@ public interface QualityMonitorsService { MonitorInfo get(GetQualityMonitorRequest getQualityMonitorRequest); /** - * [DEPRECATED] Gets info about a specific monitor refresh using the given refresh ID. Use Data - * Quality Monitors API instead (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Gets info + * about a specific monitor refresh using the given refresh ID. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the @@ -86,8 +86,8 @@ public interface QualityMonitorsService { MonitorRefreshInfo getRefresh(GetRefreshRequest getRefreshRequest); /** - * [DEPRECATED] Gets an array containing the history of the most recent refreshes (up to 25) for - * this table. Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Gets an + * array containing the history of the most recent refreshes (up to 25) for this table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the @@ -99,8 +99,8 @@ public interface QualityMonitorsService { MonitorRefreshListResponse listRefreshes(ListRefreshesRequest listRefreshesRequest); /** - * [DEPRECATED] Regenerates the monitoring dashboard for the specified table. Use Data Quality - * Monitors API instead (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Regenerates + * the monitoring dashboard for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** * on the table's parent catalog and be an owner of the table's parent schema 3. have the @@ -114,8 +114,8 @@ RegenerateDashboardResponse regenerateDashboard( RegenerateDashboardRequest regenerateDashboardRequest); /** - * [DEPRECATED] Queues a metric refresh on the monitor for the specified table. Use Data Quality - * Monitors API instead (/api/data-quality/v1/monitors). The refresh will execute in the + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Queues a + * metric refresh on the monitor for the specified table. The refresh will execute in the * background. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** @@ -128,8 +128,8 @@ RegenerateDashboardResponse regenerateDashboard( MonitorRefreshInfo runRefresh(RunRefreshRequest runRefreshRequest); /** - * [DEPRECATED] Updates a monitor for the specified table. Use Data Quality Monitors API instead - * (/api/data-quality/v1/monitors). + * Deprecated: Use Data Quality Monitors API instead (/api/data-quality/v1/monitors). Updates a + * monitor for the specified table. * *
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG**
* on the table's parent catalog and be an owner of the table's parent schema 3. have the
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleAttributes.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleAttributes.java
new file mode 100755
index 000000000..a7b3b974f
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleAttributes.java
@@ -0,0 +1,80 @@
+// 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;
+
+/**
+ * Attributes that can be granted to a Postgres role. We are only implementing a subset for now, see
+ * xref: https://www.postgresql.org/docs/16/sql-createrole.html The values follow Postgres keyword
+ * naming e.g. CREATEDB, BYPASSRLS, etc. which is why they don't include typical underscores between
+ * words.
+ */
+@Generated
+public class RoleAttributes {
+ /** */
+ @JsonProperty("bypassrls")
+ private Boolean bypassrls;
+
+ /** */
+ @JsonProperty("createdb")
+ private Boolean createdb;
+
+ /** */
+ @JsonProperty("createrole")
+ private Boolean createrole;
+
+ public RoleAttributes setBypassrls(Boolean bypassrls) {
+ this.bypassrls = bypassrls;
+ return this;
+ }
+
+ public Boolean getBypassrls() {
+ return bypassrls;
+ }
+
+ public RoleAttributes setCreatedb(Boolean createdb) {
+ this.createdb = createdb;
+ return this;
+ }
+
+ public Boolean getCreatedb() {
+ return createdb;
+ }
+
+ public RoleAttributes setCreaterole(Boolean createrole) {
+ this.createrole = createrole;
+ return this;
+ }
+
+ public Boolean getCreaterole() {
+ return createrole;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ RoleAttributes that = (RoleAttributes) o;
+ return Objects.equals(bypassrls, that.bypassrls)
+ && Objects.equals(createdb, that.createdb)
+ && Objects.equals(createrole, that.createrole);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(bypassrls, createdb, createrole);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(RoleAttributes.class)
+ .add("bypassrls", bypassrls)
+ .add("createdb", createdb)
+ .add("createrole", createrole)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleMembershipRole.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleMembershipRole.java
new file mode 100755
index 000000000..9454331dd
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleMembershipRole.java
@@ -0,0 +1,11 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.postgres;
+
+import com.databricks.sdk.support.Generated;
+
+/** Roles that the DatabaseInstanceRole can be a member of. */
+@Generated
+public enum RoleMembershipRole {
+ DATABRICKS_SUPERUSER,
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java
index 9ab3d14f8..9ec74a691 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/RoleRoleSpec.java
@@ -5,10 +5,15 @@
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Collection;
import java.util.Objects;
@Generated
public class RoleRoleSpec {
+ /** The desired API-exposed Postgres role attribute to associate with the role. Optional. */
+ @JsonProperty("attributes")
+ private RoleAttributes attributes;
+
/**
* If auth_method is left unspecified, a meaningful authentication method is derived from the
* identity_type: * For the managed identities, OAUTH is used. * For the regular postgres roles,
@@ -28,6 +33,10 @@ public class RoleRoleSpec {
@JsonProperty("identity_type")
private RoleIdentityType identityType;
+ /** An enum value for a standard role that this role is a member of. */
+ @JsonProperty("membership_roles")
+ private Collection This is the high-level interface, that contains generated methods.
@@ -14,27 +14,33 @@
@Generated
public interface QualityMonitorV2Service {
/**
- * [DEPRECATED] Create a quality monitor on UC object. Use Data Quality Monitoring API instead.
+ * Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors). Create a
+ * quality monitor on UC object.
*/
QualityMonitor createQualityMonitor(CreateQualityMonitorRequest createQualityMonitorRequest);
/**
- * [DEPRECATED] Delete a quality monitor on UC object. Use Data Quality Monitoring API instead.
+ * Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors). Delete a
+ * quality monitor on UC object.
*/
void deleteQualityMonitor(DeleteQualityMonitorRequest deleteQualityMonitorRequest);
- /** [DEPRECATED] Read a quality monitor on UC object. Use Data Quality Monitoring API instead. */
+ /**
+ * Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors). Read a
+ * quality monitor on UC object.
+ */
QualityMonitor getQualityMonitor(GetQualityMonitorRequest getQualityMonitorRequest);
/**
- * [DEPRECATED] (Unimplemented) List quality monitors. Use Data Quality Monitoring API instead.
+ * Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors).
+ * (Unimplemented) List quality monitors.
*/
ListQualityMonitorResponse listQualityMonitor(
ListQualityMonitorRequest listQualityMonitorRequest);
/**
- * [DEPRECATED] (Unimplemented) Update a quality monitor on UC object. Use Data Quality Monitoring
- * API instead.
+ * Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors).
+ * (Unimplemented) Update a quality monitor on UC object.
*/
QualityMonitor updateQualityMonitor(UpdateQualityMonitorRequest updateQualityMonitorRequest);
}