diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java
index 8a1add46c..5df917515 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/AccountClient.java
@@ -12,6 +12,8 @@
import com.databricks.sdk.service.billing.BudgetsService;
import com.databricks.sdk.service.billing.LogDeliveryAPI;
import com.databricks.sdk.service.billing.LogDeliveryService;
+import com.databricks.sdk.service.billing.UsageDashboardsAPI;
+import com.databricks.sdk.service.billing.UsageDashboardsService;
import com.databricks.sdk.service.catalog.AccountMetastoreAssignmentsAPI;
import com.databricks.sdk.service.catalog.AccountMetastoreAssignmentsService;
import com.databricks.sdk.service.catalog.AccountMetastoresAPI;
@@ -85,6 +87,7 @@ public class AccountClient {
private AccountSettingsAPI settingsAPI;
private StorageAPI storageAPI;
private AccountStorageCredentialsAPI storageCredentialsAPI;
+ private UsageDashboardsAPI usageDashboardsAPI;
private AccountUsersAPI usersAPI;
private VpcEndpointsAPI vpcEndpointsAPI;
private WorkspaceAssignmentAPI workspaceAssignmentAPI;
@@ -119,6 +122,7 @@ public AccountClient(DatabricksConfig config) {
settingsAPI = new AccountSettingsAPI(apiClient);
storageAPI = new StorageAPI(apiClient);
storageCredentialsAPI = new AccountStorageCredentialsAPI(apiClient);
+ usageDashboardsAPI = new UsageDashboardsAPI(apiClient);
usersAPI = new AccountUsersAPI(apiClient);
vpcEndpointsAPI = new VpcEndpointsAPI(apiClient);
workspaceAssignmentAPI = new WorkspaceAssignmentAPI(apiClient);
@@ -390,6 +394,15 @@ public AccountStorageCredentialsAPI storageCredentials() {
return storageCredentialsAPI;
}
+ /**
+ * These APIs manage usage dashboards for this account. Usage dashboards enable you to gain
+ * insights into your usage with pre-built dashboards: visualize breakdowns, analyze tag
+ * attributions, and identify cost drivers.
+ */
+ public UsageDashboardsAPI usageDashboards() {
+ return usageDashboardsAPI;
+ }
+
/**
* User identities recognized by Databricks and represented by email addresses.
*
@@ -675,6 +688,17 @@ public AccountClient withStorageCredentialsAPI(
return this;
}
+ /** Replace the default UsageDashboardsService with a custom implementation. */
+ public AccountClient withUsageDashboardsImpl(UsageDashboardsService usageDashboards) {
+ return this.withUsageDashboardsAPI(new UsageDashboardsAPI(usageDashboards));
+ }
+
+ /** Replace the default UsageDashboardsAPI with a custom implementation. */
+ public AccountClient withUsageDashboardsAPI(UsageDashboardsAPI usageDashboards) {
+ this.usageDashboardsAPI = usageDashboards;
+ return this;
+ }
+
/** Replace the default AccountUsersService with a custom implementation. */
public AccountClient withUsersImpl(AccountUsersService accountUsers) {
return this.withUsersAPI(new AccountUsersAPI(accountUsers));
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 f5640117d..e6aa0c6b5 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
@@ -8,6 +8,8 @@
import com.databricks.sdk.mixin.ClustersExt;
import com.databricks.sdk.mixin.DbfsExt;
import com.databricks.sdk.mixin.SecretsExt;
+import com.databricks.sdk.service.apps.AppsAPI;
+import com.databricks.sdk.service.apps.AppsService;
import com.databricks.sdk.service.catalog.ArtifactAllowlistsAPI;
import com.databricks.sdk.service.catalog.ArtifactAllowlistsService;
import com.databricks.sdk.service.catalog.CatalogsAPI;
@@ -112,8 +114,6 @@
import com.databricks.sdk.service.ml.ModelRegistryService;
import com.databricks.sdk.service.pipelines.PipelinesAPI;
import com.databricks.sdk.service.pipelines.PipelinesService;
-import com.databricks.sdk.service.serving.AppsAPI;
-import com.databricks.sdk.service.serving.AppsService;
import com.databricks.sdk.service.serving.ServingEndpointsAPI;
import com.databricks.sdk.service.serving.ServingEndpointsService;
import com.databricks.sdk.service.settings.CredentialsManagerAPI;
@@ -406,7 +406,9 @@ public AlertsAPI alerts() {
* using the `sql_task` type of the Jobs API, e.g. :method:jobs/create.
*
* **Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public AlertsLegacyAPI alertsLegacy() {
return alertsLegacyAPI;
@@ -606,8 +608,9 @@ public DashboardsAPI dashboards() {
* workspace. We advise you to use any text editor, REST client, or `grep` to search the response
* from this API for the name of your SQL warehouse as it appears in Databricks SQL.
*
- *
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ *
**Note**: A new version of the Databricks SQL API is now available. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public DataSourcesAPI dataSources() {
return dataSourcesAPI;
@@ -635,8 +638,9 @@ public DbfsExt dbfs() {
*
- `CAN_MANAGE`: Allows all actions: read, run, edit, delete, modify permissions (superset of
* `CAN_RUN`)
*
- *
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ *
**Note**: A new version of the Databricks SQL API is now available. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public DbsqlPermissionsAPI dbsqlPermissions() {
return dbsqlPermissionsAPI;
@@ -948,6 +952,8 @@ public PermissionMigrationAPI permissionMigration() {
* Permissions API are used to create read, write, edit, update and manage access for various
* users on different objects and endpoints.
*
+ *
* **[Apps permissions](:service:apps)** — Manage which users can manage or use apps.
+ *
*
* **[Cluster permissions](:service:clusters)** — Manage which users can manage, restart, or
* attach to clusters.
*
@@ -984,7 +990,7 @@ public PermissionMigrationAPI permissionMigration() {
* tokens.
*
*
* **[Workspace object permissions](:service:workspace)** — Manage which users can read, run,
- * edit, or manage directories, files, and notebooks.
+ * edit, or manage alerts, dbsql-dashboards, directories, files, notebooks and queries.
*
*
For the mapping of the required permissions for specific actions or abilities and other
* important information, see [Access Control].
@@ -1116,7 +1122,9 @@ public QueriesAPI queries() {
* Queries can be scheduled using the `sql_task` type of the Jobs API, e.g. :method:jobs/create.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public QueriesLegacyAPI queriesLegacy() {
return queriesLegacyAPI;
@@ -1143,7 +1151,9 @@ public QueryVisualizationsAPI queryVisualizations() {
* existing queries within the Databricks Workspace. Data structures may change over time.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public QueryVisualizationsLegacyAPI queryVisualizationsLegacy() {
return queryVisualizationsLegacyAPI;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java
index 43df0ead5..fce8db99e 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java
@@ -32,7 +32,7 @@ public String getValue() {
// TODO: check if reading from
// /META-INF/maven/com.databricks/databrics-sdk-java/pom.properties
// or getClass().getPackage().getImplementationVersion() is enough.
- private static final String version = "0.27.1";
+ private static final String version = "0.28.0";
public static void withProduct(String product, String productVersion) {
UserAgent.product = product;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/App.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java
similarity index 99%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/App.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java
index 80245e7a3..16e2dec4b 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/App.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlRequest.java
new file mode 100755
index 000000000..40dc96f30
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlRequest.java
@@ -0,0 +1,89 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+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 AppAccessControlRequest {
+ /** name of the group */
+ @JsonProperty("group_name")
+ private String groupName;
+
+ /** Permission level */
+ @JsonProperty("permission_level")
+ private AppPermissionLevel permissionLevel;
+
+ /** application ID of a service principal */
+ @JsonProperty("service_principal_name")
+ private String servicePrincipalName;
+
+ /** name of the user */
+ @JsonProperty("user_name")
+ private String userName;
+
+ public AppAccessControlRequest setGroupName(String groupName) {
+ this.groupName = groupName;
+ return this;
+ }
+
+ public String getGroupName() {
+ return groupName;
+ }
+
+ public AppAccessControlRequest setPermissionLevel(AppPermissionLevel permissionLevel) {
+ this.permissionLevel = permissionLevel;
+ return this;
+ }
+
+ public AppPermissionLevel getPermissionLevel() {
+ return permissionLevel;
+ }
+
+ public AppAccessControlRequest setServicePrincipalName(String servicePrincipalName) {
+ this.servicePrincipalName = servicePrincipalName;
+ return this;
+ }
+
+ public String getServicePrincipalName() {
+ return servicePrincipalName;
+ }
+
+ public AppAccessControlRequest setUserName(String userName) {
+ this.userName = userName;
+ return this;
+ }
+
+ public String getUserName() {
+ return userName;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ AppAccessControlRequest that = (AppAccessControlRequest) o;
+ return Objects.equals(groupName, that.groupName)
+ && Objects.equals(permissionLevel, that.permissionLevel)
+ && Objects.equals(servicePrincipalName, that.servicePrincipalName)
+ && Objects.equals(userName, that.userName);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(groupName, permissionLevel, servicePrincipalName, userName);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(AppAccessControlRequest.class)
+ .add("groupName", groupName)
+ .add("permissionLevel", permissionLevel)
+ .add("servicePrincipalName", servicePrincipalName)
+ .add("userName", userName)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlResponse.java
new file mode 100755
index 000000000..eb6a00b76
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppAccessControlResponse.java
@@ -0,0 +1,105 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+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 AppAccessControlResponse {
+ /** All permissions. */
+ @JsonProperty("all_permissions")
+ private Collection allPermissions;
+
+ /** Display name of the user or service principal. */
+ @JsonProperty("display_name")
+ private String displayName;
+
+ /** name of the group */
+ @JsonProperty("group_name")
+ private String groupName;
+
+ /** Name of the service principal. */
+ @JsonProperty("service_principal_name")
+ private String servicePrincipalName;
+
+ /** name of the user */
+ @JsonProperty("user_name")
+ private String userName;
+
+ public AppAccessControlResponse setAllPermissions(Collection allPermissions) {
+ this.allPermissions = allPermissions;
+ return this;
+ }
+
+ public Collection getAllPermissions() {
+ return allPermissions;
+ }
+
+ public AppAccessControlResponse setDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public AppAccessControlResponse setGroupName(String groupName) {
+ this.groupName = groupName;
+ return this;
+ }
+
+ public String getGroupName() {
+ return groupName;
+ }
+
+ public AppAccessControlResponse setServicePrincipalName(String servicePrincipalName) {
+ this.servicePrincipalName = servicePrincipalName;
+ return this;
+ }
+
+ public String getServicePrincipalName() {
+ return servicePrincipalName;
+ }
+
+ public AppAccessControlResponse setUserName(String userName) {
+ this.userName = userName;
+ return this;
+ }
+
+ public String getUserName() {
+ return userName;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ AppAccessControlResponse that = (AppAccessControlResponse) o;
+ return Objects.equals(allPermissions, that.allPermissions)
+ && Objects.equals(displayName, that.displayName)
+ && Objects.equals(groupName, that.groupName)
+ && Objects.equals(servicePrincipalName, that.servicePrincipalName)
+ && Objects.equals(userName, that.userName);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(allPermissions, displayName, groupName, servicePrincipalName, userName);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(AppAccessControlResponse.class)
+ .add("allPermissions", allPermissions)
+ .add("displayName", displayName)
+ .add("groupName", groupName)
+ .add("servicePrincipalName", servicePrincipalName)
+ .add("userName", userName)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeployment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeployment.java
similarity index 99%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeployment.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeployment.java
index 2184c7ed8..0961135b1 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeployment.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeployment.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentArtifacts.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentArtifacts.java
similarity index 96%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentArtifacts.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentArtifacts.java
index c7a4218d4..26666fed0 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentArtifacts.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentArtifacts.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentMode.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentMode.java
similarity index 81%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentMode.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentMode.java
index 80cbe7ffc..9cd2e04d0 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentMode.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentMode.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentState.java
similarity index 83%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentState.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentState.java
index 1a9d6fb53..8142ad13a 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentState.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentState.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentStatus.java
similarity index 96%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentStatus.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentStatus.java
index 1447a1bdf..095be8232 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppDeploymentStatus.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppDeploymentStatus.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermission.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermission.java
new file mode 100755
index 000000000..39fcd6726
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermission.java
@@ -0,0 +1,75 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+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 AppPermission {
+ /** */
+ @JsonProperty("inherited")
+ private Boolean inherited;
+
+ /** */
+ @JsonProperty("inherited_from_object")
+ private Collection inheritedFromObject;
+
+ /** Permission level */
+ @JsonProperty("permission_level")
+ private AppPermissionLevel permissionLevel;
+
+ public AppPermission setInherited(Boolean inherited) {
+ this.inherited = inherited;
+ return this;
+ }
+
+ public Boolean getInherited() {
+ return inherited;
+ }
+
+ public AppPermission setInheritedFromObject(Collection inheritedFromObject) {
+ this.inheritedFromObject = inheritedFromObject;
+ return this;
+ }
+
+ public Collection getInheritedFromObject() {
+ return inheritedFromObject;
+ }
+
+ public AppPermission setPermissionLevel(AppPermissionLevel permissionLevel) {
+ this.permissionLevel = permissionLevel;
+ return this;
+ }
+
+ public AppPermissionLevel getPermissionLevel() {
+ return permissionLevel;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ AppPermission that = (AppPermission) o;
+ return Objects.equals(inherited, that.inherited)
+ && Objects.equals(inheritedFromObject, that.inheritedFromObject)
+ && Objects.equals(permissionLevel, that.permissionLevel);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(inherited, inheritedFromObject, permissionLevel);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(AppPermission.class)
+ .add("inherited", inherited)
+ .add("inheritedFromObject", inheritedFromObject)
+ .add("permissionLevel", permissionLevel)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java
new file mode 100755
index 000000000..5b2b07c9b
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionLevel.java
@@ -0,0 +1,12 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+import com.databricks.sdk.support.Generated;
+
+/** Permission level */
+@Generated
+public enum AppPermissionLevel {
+ CAN_MANAGE,
+ CAN_USE,
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissions.java
new file mode 100755
index 000000000..06a281e13
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissions.java
@@ -0,0 +1,76 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+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 AppPermissions {
+ /** */
+ @JsonProperty("access_control_list")
+ private Collection accessControlList;
+
+ /** */
+ @JsonProperty("object_id")
+ private String objectId;
+
+ /** */
+ @JsonProperty("object_type")
+ private String objectType;
+
+ public AppPermissions setAccessControlList(
+ Collection accessControlList) {
+ this.accessControlList = accessControlList;
+ return this;
+ }
+
+ public Collection getAccessControlList() {
+ return accessControlList;
+ }
+
+ public AppPermissions setObjectId(String objectId) {
+ this.objectId = objectId;
+ return this;
+ }
+
+ public String getObjectId() {
+ return objectId;
+ }
+
+ public AppPermissions setObjectType(String objectType) {
+ this.objectType = objectType;
+ return this;
+ }
+
+ public String getObjectType() {
+ return objectType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ AppPermissions that = (AppPermissions) o;
+ return Objects.equals(accessControlList, that.accessControlList)
+ && Objects.equals(objectId, that.objectId)
+ && Objects.equals(objectType, that.objectType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(accessControlList, objectId, objectType);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(AppPermissions.class)
+ .add("accessControlList", accessControlList)
+ .add("objectId", objectId)
+ .add("objectType", objectType)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsDescription.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsDescription.java
new file mode 100755
index 000000000..94fb8781f
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsDescription.java
@@ -0,0 +1,59 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+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 AppPermissionsDescription {
+ /** */
+ @JsonProperty("description")
+ private String description;
+
+ /** Permission level */
+ @JsonProperty("permission_level")
+ private AppPermissionLevel permissionLevel;
+
+ public AppPermissionsDescription setDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public AppPermissionsDescription setPermissionLevel(AppPermissionLevel permissionLevel) {
+ this.permissionLevel = permissionLevel;
+ return this;
+ }
+
+ public AppPermissionLevel getPermissionLevel() {
+ return permissionLevel;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ AppPermissionsDescription that = (AppPermissionsDescription) o;
+ return Objects.equals(description, that.description)
+ && Objects.equals(permissionLevel, that.permissionLevel);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(description, permissionLevel);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(AppPermissionsDescription.class)
+ .add("description", description)
+ .add("permissionLevel", permissionLevel)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsRequest.java
new file mode 100755
index 000000000..1b3e58a80
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppPermissionsRequest.java
@@ -0,0 +1,60 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+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 AppPermissionsRequest {
+ /** */
+ @JsonProperty("access_control_list")
+ private Collection accessControlList;
+
+ /** The app for which to get or manage permissions. */
+ private String appName;
+
+ public AppPermissionsRequest setAccessControlList(
+ Collection accessControlList) {
+ this.accessControlList = accessControlList;
+ return this;
+ }
+
+ public Collection getAccessControlList() {
+ return accessControlList;
+ }
+
+ public AppPermissionsRequest setAppName(String appName) {
+ this.appName = appName;
+ return this;
+ }
+
+ public String getAppName() {
+ return appName;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ AppPermissionsRequest that = (AppPermissionsRequest) o;
+ return Objects.equals(accessControlList, that.accessControlList)
+ && Objects.equals(appName, that.appName);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(accessControlList, appName);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(AppPermissionsRequest.class)
+ .add("accessControlList", accessControlList)
+ .add("appName", appName)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppState.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppState.java
similarity index 84%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppState.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppState.java
index 1d6cc0a7a..a0606e017 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppState.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppState.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppStatus.java
similarity index 96%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppStatus.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppStatus.java
index 0963965db..e6b520747 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppStatus.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppStatus.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java
similarity index 79%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsAPI.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java
index cdd5949d6..b81ad3704 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java
@@ -1,5 +1,5 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.core.ApiClient;
import com.databricks.sdk.core.DatabricksException;
@@ -159,13 +159,9 @@ public void delete(DeleteAppRequest request) {
impl.delete(request);
}
- public Wait deploy(
- String appName, String sourceCodePath, AppDeploymentMode mode) {
+ public Wait deploy(String appName, String sourceCodePath) {
return deploy(
- new CreateAppDeploymentRequest()
- .setAppName(appName)
- .setSourceCodePath(sourceCodePath)
- .setMode(mode));
+ new CreateAppDeploymentRequest().setAppName(appName).setSourceCodePath(sourceCodePath));
}
/**
@@ -209,17 +205,30 @@ public AppDeployment getDeployment(GetAppDeploymentRequest request) {
return impl.getDeployment(request);
}
- public AppEnvironment getEnvironment(String name) {
- return getEnvironment(new GetAppEnvironmentRequest().setName(name));
+ public GetAppPermissionLevelsResponse getPermissionLevels(String appName) {
+ return getPermissionLevels(new GetAppPermissionLevelsRequest().setAppName(appName));
}
/**
- * Get app environment.
+ * Get app permission levels.
*
- * Retrieves app environment.
+ *
Gets the permission levels that a user can have on an object.
*/
- public AppEnvironment getEnvironment(GetAppEnvironmentRequest request) {
- return impl.getEnvironment(request);
+ public GetAppPermissionLevelsResponse getPermissionLevels(GetAppPermissionLevelsRequest request) {
+ return impl.getPermissionLevels(request);
+ }
+
+ public AppPermissions getPermissions(String appName) {
+ return getPermissions(new GetAppPermissionsRequest().setAppName(appName));
+ }
+
+ /**
+ * Get app permissions.
+ *
+ *
Gets the permissions of an app. Apps can inherit permissions from their root object.
+ */
+ public AppPermissions getPermissions(GetAppPermissionsRequest request) {
+ return impl.getPermissions(request);
}
/**
@@ -264,7 +273,20 @@ public Iterable listDeployments(ListAppDeploymentsRequest request
});
}
- public AppDeployment start(String name) {
+ public AppPermissions setPermissions(String appName) {
+ return setPermissions(new AppPermissionsRequest().setAppName(appName));
+ }
+
+ /**
+ * Set app permissions.
+ *
+ * Sets permissions on an app. Apps can inherit permissions from their root object.
+ */
+ public AppPermissions setPermissions(AppPermissionsRequest request) {
+ return impl.setPermissions(request);
+ }
+
+ public Wait start(String name) {
return start(new StartAppRequest().setName(name));
}
@@ -273,8 +295,13 @@ public AppDeployment start(String name) {
*
* Start the last active deployment of the app in the workspace.
*/
- public AppDeployment start(StartAppRequest request) {
- return impl.start(request);
+ public Wait start(StartAppRequest request) {
+ AppDeployment response = impl.start(request);
+ return new Wait<>(
+ (timeout, callback) ->
+ waitGetDeploymentAppSucceeded(
+ request.getName(), response.getDeploymentId(), timeout, callback),
+ response);
}
public void stop(String name) {
@@ -303,6 +330,19 @@ public App update(UpdateAppRequest request) {
return impl.update(request);
}
+ public AppPermissions updatePermissions(String appName) {
+ return updatePermissions(new AppPermissionsRequest().setAppName(appName));
+ }
+
+ /**
+ * Update app permissions.
+ *
+ * Updates the permissions on an app. Apps can inherit permissions from their root object.
+ */
+ public AppPermissions updatePermissions(AppPermissionsRequest request) {
+ return impl.updatePermissions(request);
+ }
+
public AppsService impl() {
return impl;
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsImpl.java
similarity index 73%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsImpl.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsImpl.java
index e44f5e4c9..ff6202fe7 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsImpl.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsImpl.java
@@ -1,5 +1,5 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.core.ApiClient;
import com.databricks.sdk.support.Generated;
@@ -61,11 +61,20 @@ public AppDeployment getDeployment(GetAppDeploymentRequest request) {
}
@Override
- public AppEnvironment getEnvironment(GetAppEnvironmentRequest request) {
- String path = String.format("/api/2.0/preview/apps/%s/environment", request.getName());
+ public GetAppPermissionLevelsResponse getPermissionLevels(GetAppPermissionLevelsRequest request) {
+ String path =
+ String.format("/api/2.0/permissions/apps/%s/permissionLevels", request.getAppName());
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
- return apiClient.GET(path, request, AppEnvironment.class, headers);
+ return apiClient.GET(path, request, GetAppPermissionLevelsResponse.class, headers);
+ }
+
+ @Override
+ public AppPermissions getPermissions(GetAppPermissionsRequest request) {
+ String path = String.format("/api/2.0/permissions/apps/%s", request.getAppName());
+ Map headers = new HashMap<>();
+ headers.put("Accept", "application/json");
+ return apiClient.GET(path, request, AppPermissions.class, headers);
}
@Override
@@ -84,6 +93,15 @@ public ListAppDeploymentsResponse listDeployments(ListAppDeploymentsRequest requ
return apiClient.GET(path, request, ListAppDeploymentsResponse.class, headers);
}
+ @Override
+ public AppPermissions setPermissions(AppPermissionsRequest request) {
+ String path = String.format("/api/2.0/permissions/apps/%s", request.getAppName());
+ Map headers = new HashMap<>();
+ headers.put("Accept", "application/json");
+ headers.put("Content-Type", "application/json");
+ return apiClient.PUT(path, request, AppPermissions.class, headers);
+ }
+
@Override
public AppDeployment start(StartAppRequest request) {
String path = String.format("/api/2.0/preview/apps/%s/start", request.getName());
@@ -110,4 +128,13 @@ public App update(UpdateAppRequest request) {
headers.put("Content-Type", "application/json");
return apiClient.PATCH(path, request, App.class, headers);
}
+
+ @Override
+ public AppPermissions updatePermissions(AppPermissionsRequest request) {
+ String path = String.format("/api/2.0/permissions/apps/%s", request.getAppName());
+ Map headers = new HashMap<>();
+ headers.put("Accept", "application/json");
+ headers.put("Content-Type", "application/json");
+ return apiClient.PATCH(path, request, AppPermissions.class, headers);
+ }
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java
similarity index 69%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsService.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java
index bd4ae037a..6025bf917 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppsService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsService.java
@@ -1,5 +1,5 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
@@ -49,11 +49,19 @@ public interface AppsService {
AppDeployment getDeployment(GetAppDeploymentRequest getAppDeploymentRequest);
/**
- * Get app environment.
+ * Get app permission levels.
*
- * Retrieves app environment.
+ *
Gets the permission levels that a user can have on an object.
*/
- AppEnvironment getEnvironment(GetAppEnvironmentRequest getAppEnvironmentRequest);
+ GetAppPermissionLevelsResponse getPermissionLevels(
+ GetAppPermissionLevelsRequest getAppPermissionLevelsRequest);
+
+ /**
+ * Get app permissions.
+ *
+ *
Gets the permissions of an app. Apps can inherit permissions from their root object.
+ */
+ AppPermissions getPermissions(GetAppPermissionsRequest getAppPermissionsRequest);
/**
* List apps.
@@ -69,6 +77,13 @@ public interface AppsService {
*/
ListAppDeploymentsResponse listDeployments(ListAppDeploymentsRequest listAppDeploymentsRequest);
+ /**
+ * Set app permissions.
+ *
+ *
Sets permissions on an app. Apps can inherit permissions from their root object.
+ */
+ AppPermissions setPermissions(AppPermissionsRequest appPermissionsRequest);
+
/**
* Start an app.
*
@@ -89,4 +104,11 @@ public interface AppsService {
*
Updates the app with the supplied name.
*/
App update(UpdateAppRequest updateAppRequest);
+
+ /**
+ * Update app permissions.
+ *
+ *
Updates the permissions on an app. Apps can inherit permissions from their root object.
+ */
+ AppPermissions updatePermissions(AppPermissionsRequest appPermissionsRequest);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppDeploymentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppDeploymentRequest.java
similarity index 98%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppDeploymentRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppDeploymentRequest.java
index 28ea4bf88..3a258a05f 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppDeploymentRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppDeploymentRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppRequest.java
similarity index 97%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppRequest.java
index aa5b59755..e63da38c3 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/CreateAppRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/CreateAppRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteAppRequest.java
similarity index 95%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteAppRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteAppRequest.java
index 65be91258..b06ed327c 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/DeleteAppRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteAppRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteResponse.java
new file mode 100755
index 000000000..50d230ef6
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/DeleteResponse.java
@@ -0,0 +1,28 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import java.util.Objects;
+
+@Generated
+public class DeleteResponse {
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash();
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(DeleteResponse.class).toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppDeploymentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppDeploymentRequest.java
similarity index 96%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppDeploymentRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppDeploymentRequest.java
index 4da380cb0..10a5aa2fb 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppDeploymentRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppDeploymentRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsRequest.java
new file mode 100755
index 000000000..e52527ce1
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsRequest.java
@@ -0,0 +1,41 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import java.util.Objects;
+
+/** Get app permission levels */
+@Generated
+public class GetAppPermissionLevelsRequest {
+ /** The app for which to get or manage permissions. */
+ private String appName;
+
+ public GetAppPermissionLevelsRequest setAppName(String appName) {
+ this.appName = appName;
+ return this;
+ }
+
+ public String getAppName() {
+ return appName;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GetAppPermissionLevelsRequest that = (GetAppPermissionLevelsRequest) o;
+ return Objects.equals(appName, that.appName);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(appName);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GetAppPermissionLevelsRequest.class).add("appName", appName).toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsResponse.java
new file mode 100755
index 000000000..a8a41f7da
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionLevelsResponse.java
@@ -0,0 +1,46 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+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 GetAppPermissionLevelsResponse {
+ /** Specific permission levels */
+ @JsonProperty("permission_levels")
+ private Collection permissionLevels;
+
+ public GetAppPermissionLevelsResponse setPermissionLevels(
+ Collection permissionLevels) {
+ this.permissionLevels = permissionLevels;
+ return this;
+ }
+
+ public Collection getPermissionLevels() {
+ return permissionLevels;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GetAppPermissionLevelsResponse that = (GetAppPermissionLevelsResponse) o;
+ return Objects.equals(permissionLevels, that.permissionLevels);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(permissionLevels);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GetAppPermissionLevelsResponse.class)
+ .add("permissionLevels", permissionLevels)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionsRequest.java
new file mode 100755
index 000000000..d93f42491
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppPermissionsRequest.java
@@ -0,0 +1,41 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.apps;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.ToStringer;
+import java.util.Objects;
+
+/** Get app permissions */
+@Generated
+public class GetAppPermissionsRequest {
+ /** The app for which to get or manage permissions. */
+ private String appName;
+
+ public GetAppPermissionsRequest setAppName(String appName) {
+ this.appName = appName;
+ return this;
+ }
+
+ public String getAppName() {
+ return appName;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GetAppPermissionsRequest that = (GetAppPermissionsRequest) o;
+ return Objects.equals(appName, that.appName);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(appName);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GetAppPermissionsRequest.class).add("appName", appName).toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppRequest.java
similarity index 95%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppRequest.java
index e65a9163d..61a4072a6 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GetAppRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsRequest.java
similarity index 97%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsRequest.java
index ac90df2e3..a4fab1005 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.QueryParam;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsResponse.java
similarity index 97%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsResponse.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsResponse.java
index cc68048ee..3feef0752 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppDeploymentsResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppDeploymentsResponse.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsRequest.java
similarity index 97%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsRequest.java
index 82ebd39bb..90fbde530 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.QueryParam;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsResponse.java
similarity index 97%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsResponse.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsResponse.java
index 5290af46d..20887ad7f 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ListAppsResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/ListAppsResponse.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StartAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StartAppRequest.java
similarity index 95%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StartAppRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StartAppRequest.java
index 4386245bc..4968c5cc4 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StartAppRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StartAppRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppRequest.java
similarity index 95%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppRequest.java
index efad1f69b..22073a93f 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppResponse.java
similarity index 93%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppResponse.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppResponse.java
index be24160d2..9e862a017 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/StopAppResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/StopAppResponse.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/UpdateAppRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateAppRequest.java
similarity index 97%
rename from databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/UpdateAppRequest.java
rename to databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateAppRequest.java
index ce66c3888..edbe547cb 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/UpdateAppRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/UpdateAppRequest.java
@@ -1,6 +1,6 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-package com.databricks.sdk.service.serving;
+package com.databricks.sdk.service.apps;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardRequest.java
new file mode 100755
index 000000000..60f8d7e60
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardRequest.java
@@ -0,0 +1,62 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.billing;
+
+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 CreateBillingUsageDashboardRequest {
+ /**
+ * Workspace level usage dashboard shows usage data for the specified workspace ID. Global level
+ * usage dashboard shows usage data for all workspaces in the account.
+ */
+ @JsonProperty("dashboard_type")
+ private UsageDashboardType dashboardType;
+
+ /** The workspace ID of the workspace in which the usage dashboard is created. */
+ @JsonProperty("workspace_id")
+ private Long workspaceId;
+
+ public CreateBillingUsageDashboardRequest setDashboardType(UsageDashboardType dashboardType) {
+ this.dashboardType = dashboardType;
+ return this;
+ }
+
+ public UsageDashboardType getDashboardType() {
+ return dashboardType;
+ }
+
+ public CreateBillingUsageDashboardRequest setWorkspaceId(Long workspaceId) {
+ this.workspaceId = workspaceId;
+ return this;
+ }
+
+ public Long getWorkspaceId() {
+ return workspaceId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ CreateBillingUsageDashboardRequest that = (CreateBillingUsageDashboardRequest) o;
+ return Objects.equals(dashboardType, that.dashboardType)
+ && Objects.equals(workspaceId, that.workspaceId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(dashboardType, workspaceId);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(CreateBillingUsageDashboardRequest.class)
+ .add("dashboardType", dashboardType)
+ .add("workspaceId", workspaceId)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardResponse.java
new file mode 100755
index 000000000..f70b18fb1
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/CreateBillingUsageDashboardResponse.java
@@ -0,0 +1,44 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.billing;
+
+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 CreateBillingUsageDashboardResponse {
+ /** The unique id of the usage dashboard. */
+ @JsonProperty("dashboard_id")
+ private String dashboardId;
+
+ public CreateBillingUsageDashboardResponse setDashboardId(String dashboardId) {
+ this.dashboardId = dashboardId;
+ return this;
+ }
+
+ public String getDashboardId() {
+ return dashboardId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ CreateBillingUsageDashboardResponse that = (CreateBillingUsageDashboardResponse) o;
+ return Objects.equals(dashboardId, that.dashboardId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(dashboardId);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(CreateBillingUsageDashboardResponse.class)
+ .add("dashboardId", dashboardId)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardRequest.java
new file mode 100755
index 000000000..a002b6ba7
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardRequest.java
@@ -0,0 +1,63 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.billing;
+
+import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.QueryParam;
+import com.databricks.sdk.support.ToStringer;
+import java.util.Objects;
+
+/** Get usage dashboard */
+@Generated
+public class GetBillingUsageDashboardRequest {
+ /**
+ * Workspace level usage dashboard shows usage data for the specified workspace ID. Global level
+ * usage dashboard shows usage data for all workspaces in the account.
+ */
+ @QueryParam("dashboard_type")
+ private UsageDashboardType dashboardType;
+
+ /** The workspace ID of the workspace in which the usage dashboard is created. */
+ @QueryParam("workspace_id")
+ private Long workspaceId;
+
+ public GetBillingUsageDashboardRequest setDashboardType(UsageDashboardType dashboardType) {
+ this.dashboardType = dashboardType;
+ return this;
+ }
+
+ public UsageDashboardType getDashboardType() {
+ return dashboardType;
+ }
+
+ public GetBillingUsageDashboardRequest setWorkspaceId(Long workspaceId) {
+ this.workspaceId = workspaceId;
+ return this;
+ }
+
+ public Long getWorkspaceId() {
+ return workspaceId;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GetBillingUsageDashboardRequest that = (GetBillingUsageDashboardRequest) o;
+ return Objects.equals(dashboardType, that.dashboardType)
+ && Objects.equals(workspaceId, that.workspaceId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(dashboardType, workspaceId);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GetBillingUsageDashboardRequest.class)
+ .add("dashboardType", dashboardType)
+ .add("workspaceId", workspaceId)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardResponse.java
new file mode 100755
index 000000000..5030e3c6f
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/GetBillingUsageDashboardResponse.java
@@ -0,0 +1,59 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.billing;
+
+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 GetBillingUsageDashboardResponse {
+ /** The unique id of the usage dashboard. */
+ @JsonProperty("dashboard_id")
+ private String dashboardId;
+
+ /** The URL of the usage dashboard. */
+ @JsonProperty("dashboard_url")
+ private String dashboardUrl;
+
+ public GetBillingUsageDashboardResponse setDashboardId(String dashboardId) {
+ this.dashboardId = dashboardId;
+ return this;
+ }
+
+ public String getDashboardId() {
+ return dashboardId;
+ }
+
+ public GetBillingUsageDashboardResponse setDashboardUrl(String dashboardUrl) {
+ this.dashboardUrl = dashboardUrl;
+ return this;
+ }
+
+ public String getDashboardUrl() {
+ return dashboardUrl;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ GetBillingUsageDashboardResponse that = (GetBillingUsageDashboardResponse) o;
+ return Objects.equals(dashboardId, that.dashboardId)
+ && Objects.equals(dashboardUrl, that.dashboardUrl);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(dashboardId, dashboardUrl);
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringer(GetBillingUsageDashboardResponse.class)
+ .add("dashboardId", dashboardId)
+ .add("dashboardUrl", dashboardUrl)
+ .toString();
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardType.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardType.java
new file mode 100755
index 000000000..f56da7553
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardType.java
@@ -0,0 +1,11 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.billing;
+
+import com.databricks.sdk.support.Generated;
+
+@Generated
+public enum UsageDashboardType {
+ USAGE_DASHBOARD_TYPE_GLOBAL,
+ USAGE_DASHBOARD_TYPE_WORKSPACE,
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsAPI.java
new file mode 100755
index 000000000..93573bbda
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsAPI.java
@@ -0,0 +1,51 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+package com.databricks.sdk.service.billing;
+
+import com.databricks.sdk.core.ApiClient;
+import com.databricks.sdk.support.Generated;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * These APIs manage usage dashboards for this account. Usage dashboards enable you to gain insights
+ * into your usage with pre-built dashboards: visualize breakdowns, analyze tag attributions, and
+ * identify cost drivers.
+ */
+@Generated
+public class UsageDashboardsAPI {
+ private static final Logger LOG = LoggerFactory.getLogger(UsageDashboardsAPI.class);
+
+ private final UsageDashboardsService impl;
+
+ /** Regular-use constructor */
+ public UsageDashboardsAPI(ApiClient apiClient) {
+ impl = new UsageDashboardsImpl(apiClient);
+ }
+
+ /** Constructor for mocks */
+ public UsageDashboardsAPI(UsageDashboardsService mock) {
+ impl = mock;
+ }
+
+ /**
+ * Create new usage dashboard.
+ *
+ * Create a usage dashboard specified by workspaceId, accountId, and dashboard type.
+ */
+ public CreateBillingUsageDashboardResponse create(CreateBillingUsageDashboardRequest request) {
+ return impl.create(request);
+ }
+
+ /**
+ * Get usage dashboard.
+ *
+ *
Get a usage dashboard specified by workspaceId, accountId, and dashboard type.
+ */
+ public GetBillingUsageDashboardResponse get(GetBillingUsageDashboardRequest request) {
+ return impl.get(request);
+ }
+
+ public UsageDashboardsService impl() {
+ return impl;
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsImpl.java
new file mode 100755
index 000000000..e677e090c
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsImpl.java
@@ -0,0 +1,34 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+package com.databricks.sdk.service.billing;
+
+import com.databricks.sdk.core.ApiClient;
+import com.databricks.sdk.support.Generated;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Package-local implementation of UsageDashboards */
+@Generated
+class UsageDashboardsImpl implements UsageDashboardsService {
+ private final ApiClient apiClient;
+
+ public UsageDashboardsImpl(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ @Override
+ public CreateBillingUsageDashboardResponse create(CreateBillingUsageDashboardRequest request) {
+ String path = String.format("/api/2.0/accounts/%s/dashboard", apiClient.configuredAccountID());
+ Map headers = new HashMap<>();
+ headers.put("Accept", "application/json");
+ headers.put("Content-Type", "application/json");
+ return apiClient.POST(path, request, CreateBillingUsageDashboardResponse.class, headers);
+ }
+
+ @Override
+ public GetBillingUsageDashboardResponse get(GetBillingUsageDashboardRequest request) {
+ String path = String.format("/api/2.0/accounts/%s/dashboard", apiClient.configuredAccountID());
+ Map headers = new HashMap<>();
+ headers.put("Accept", "application/json");
+ return apiClient.GET(path, request, GetBillingUsageDashboardResponse.class, headers);
+ }
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsService.java
new file mode 100755
index 000000000..47bcb4b94
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/UsageDashboardsService.java
@@ -0,0 +1,32 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+package com.databricks.sdk.service.billing;
+
+import com.databricks.sdk.support.Generated;
+
+/**
+ * These APIs manage usage dashboards for this account. Usage dashboards enable you to gain insights
+ * into your usage with pre-built dashboards: visualize breakdowns, analyze tag attributions, and
+ * identify cost drivers.
+ *
+ * This is the high-level interface, that contains generated methods.
+ *
+ *
Evolving: this interface is under development. Method signatures may change.
+ */
+@Generated
+public interface UsageDashboardsService {
+ /**
+ * Create new usage dashboard.
+ *
+ *
Create a usage dashboard specified by workspaceId, accountId, and dashboard type.
+ */
+ CreateBillingUsageDashboardResponse create(
+ CreateBillingUsageDashboardRequest createBillingUsageDashboardRequest);
+
+ /**
+ * Get usage dashboard.
+ *
+ *
Get a usage dashboard specified by workspaceId, accountId, and dashboard type.
+ */
+ GetBillingUsageDashboardResponse get(
+ GetBillingUsageDashboardRequest getBillingUsageDashboardRequest);
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java
index dca4a1bdb..a75af6c6b 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/GetPermissionRequest.java
@@ -13,9 +13,9 @@ public class GetPermissionRequest {
private String requestObjectId;
/**
- * The type of the request object. Can be one of the following: authorization, clusters,
- * cluster-policies, directories, experiments, files, instance-pools, jobs, notebooks, pipelines,
- * registered-models, repos, serving-endpoints, or warehouses.
+ * The type of the request object. Can be one of the following: alerts, authorization, clusters,
+ * cluster-policies, dbsql-dashboards, directories, experiments, files, instance-pools, jobs,
+ * notebooks, pipelines, queries, registered-models, repos, serving-endpoints, or warehouses.
*/
private String requestObjectType;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java
index fff729d4c..0d1779ef2 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionLevel.java
@@ -15,6 +15,7 @@ public enum PermissionLevel {
CAN_MANAGE_PRODUCTION_VERSIONS,
CAN_MANAGE_RUN,
CAN_MANAGE_STAGING_VERSIONS,
+ CAN_MONITOR,
CAN_QUERY,
CAN_READ,
CAN_RESTART,
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsAPI.java
index 55eb37ad0..2eb2601d9 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsAPI.java
@@ -10,6 +10,8 @@
* Permissions API are used to create read, write, edit, update and manage access for various users
* on different objects and endpoints.
*
+ *
* **[Apps permissions](:service:apps)** — Manage which users can manage or use apps.
+ *
*
* **[Cluster permissions](:service:clusters)** — Manage which users can manage, restart, or
* attach to clusters.
*
@@ -46,7 +48,7 @@
* tokens.
*
*
* **[Workspace object permissions](:service:workspace)** — Manage which users can read, run,
- * edit, or manage directories, files, and notebooks.
+ * edit, or manage alerts, dbsql-dashboards, directories, files, notebooks and queries.
*
*
For the mapping of the required permissions for specific actions or abilities and other
* important information, see [Access Control].
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java
index 6643d1063..17dc6e0d3 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsRequest.java
@@ -18,9 +18,9 @@ public class PermissionsRequest {
private String requestObjectId;
/**
- * The type of the request object. Can be one of the following: authorization, clusters,
- * cluster-policies, directories, experiments, files, instance-pools, jobs, notebooks, pipelines,
- * registered-models, repos, serving-endpoints, or warehouses.
+ * The type of the request object. Can be one of the following: alerts, authorization, clusters,
+ * cluster-policies, dbsql-dashboards, directories, experiments, files, instance-pools, jobs,
+ * notebooks, pipelines, queries, registered-models, repos, serving-endpoints, or warehouses.
*/
private String requestObjectType;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsService.java
index b78dbb72d..e641809ea 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/PermissionsService.java
@@ -7,6 +7,8 @@
* Permissions API are used to create read, write, edit, update and manage access for various users
* on different objects and endpoints.
*
+ *
* **[Apps permissions](:service:apps)** — Manage which users can manage or use apps.
+ *
*
* **[Cluster permissions](:service:clusters)** — Manage which users can manage, restart, or
* attach to clusters.
*
@@ -43,7 +45,7 @@
* tokens.
*
*
* **[Workspace object permissions](:service:workspace)** — Manage which users can read, run,
- * edit, or manage directories, files, and notebooks.
+ * edit, or manage alerts, dbsql-dashboards, directories, files, notebooks and queries.
*
*
For the mapping of the required permissions for specific actions or abilities and other
* important information, see [Access Control].
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java
index 87f027f7a..1931f15b8 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/iam/UpdateWorkspaceAssignments.java
@@ -11,8 +11,10 @@
@Generated
public class UpdateWorkspaceAssignments {
/**
- * Array of permissions assignments to update on the workspace. Note that excluding this field
- * will have the same effect as providing an empty list which will result in the deletion of all
+ * Array of permissions assignments to update on the workspace. Valid values are "USER" and
+ * "ADMIN" (case-sensitive). If both "USER" and "ADMIN" are provided, "ADMIN" takes precedence.
+ * Other values will be ignored. Note that excluding this field, or providing unsupported values,
+ * will have the same effect as providing an empty list, which will result in the deletion of all
* permissions for the principal.
*/
@JsonProperty("permissions")
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/GetRunRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/GetRunRequest.java
index 86f79b30f..3d87c11fc 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/GetRunRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/GetRunRequest.java
@@ -18,6 +18,13 @@ public class GetRunRequest {
@QueryParam("include_resolved_values")
private Boolean includeResolvedValues;
+ /**
+ * To list the next page or the previous page of job tasks, set this field to the value of the
+ * `next_page_token` or `prev_page_token` returned in the GetJob response.
+ */
+ @QueryParam("page_token")
+ private String pageToken;
+
/**
* The canonical identifier of the run for which to retrieve the metadata. This field is required.
*/
@@ -42,6 +49,15 @@ public Boolean getIncludeResolvedValues() {
return includeResolvedValues;
}
+ public GetRunRequest setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ public String getPageToken() {
+ return pageToken;
+ }
+
public GetRunRequest setRunId(Long runId) {
this.runId = runId;
return this;
@@ -58,12 +74,13 @@ public boolean equals(Object o) {
GetRunRequest that = (GetRunRequest) o;
return Objects.equals(includeHistory, that.includeHistory)
&& Objects.equals(includeResolvedValues, that.includeResolvedValues)
+ && Objects.equals(pageToken, that.pageToken)
&& Objects.equals(runId, that.runId);
}
@Override
public int hashCode() {
- return Objects.hash(includeHistory, includeResolvedValues, runId);
+ return Objects.hash(includeHistory, includeResolvedValues, pageToken, runId);
}
@Override
@@ -71,6 +88,7 @@ public String toString() {
return new ToStringer(GetRunRequest.class)
.add("includeHistory", includeHistory)
.add("includeResolvedValues", includeResolvedValues)
+ .add("pageToken", pageToken)
.add("runId", runId)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java
index e8efb85c1..639c1ab82 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/Run.java
@@ -83,6 +83,10 @@ public class Run {
@JsonProperty("git_source")
private GitSource gitSource;
+ /** Only populated by for-each iterations. The parent for-each task is located in tasks array. */
+ @JsonProperty("iterations")
+ private Collection iterations;
+
/**
* A list of job cluster specifications that can be shared and reused by tasks of this job.
* Libraries cannot be declared in a shared job cluster. You must declare dependent libraries in
@@ -99,6 +103,10 @@ public class Run {
@JsonProperty("job_parameters")
private Collection jobParameters;
+ /** A token that can be used to list the next page of sub-resources. */
+ @JsonProperty("next_page_token")
+ private String nextPageToken;
+
/** A unique identifier for this job run. This is set to the same value as `run_id`. */
@JsonProperty("number_in_job")
private Long numberInJob;
@@ -114,6 +122,10 @@ public class Run {
@JsonProperty("overriding_parameters")
private RunParameters overridingParameters;
+ /** A token that can be used to list the previous page of sub-resources. */
+ @JsonProperty("prev_page_token")
+ private String prevPageToken;
+
/** The time in milliseconds that the run has spent in the queue. */
@JsonProperty("queue_duration")
private Long queueDuration;
@@ -281,6 +293,15 @@ public GitSource getGitSource() {
return gitSource;
}
+ public Run setIterations(Collection iterations) {
+ this.iterations = iterations;
+ return this;
+ }
+
+ public Collection getIterations() {
+ return iterations;
+ }
+
public Run setJobClusters(Collection jobClusters) {
this.jobClusters = jobClusters;
return this;
@@ -308,6 +329,15 @@ public Collection getJobParameters() {
return jobParameters;
}
+ public Run setNextPageToken(String nextPageToken) {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
+
+ public String getNextPageToken() {
+ return nextPageToken;
+ }
+
public Run setNumberInJob(Long numberInJob) {
this.numberInJob = numberInJob;
return this;
@@ -335,6 +365,15 @@ public RunParameters getOverridingParameters() {
return overridingParameters;
}
+ public Run setPrevPageToken(String prevPageToken) {
+ this.prevPageToken = prevPageToken;
+ return this;
+ }
+
+ public String getPrevPageToken() {
+ return prevPageToken;
+ }
+
public Run setQueueDuration(Long queueDuration) {
this.queueDuration = queueDuration;
return this;
@@ -475,12 +514,15 @@ public boolean equals(Object o) {
&& Objects.equals(endTime, that.endTime)
&& Objects.equals(executionDuration, that.executionDuration)
&& Objects.equals(gitSource, that.gitSource)
+ && Objects.equals(iterations, that.iterations)
&& Objects.equals(jobClusters, that.jobClusters)
&& Objects.equals(jobId, that.jobId)
&& Objects.equals(jobParameters, that.jobParameters)
+ && Objects.equals(nextPageToken, that.nextPageToken)
&& Objects.equals(numberInJob, that.numberInJob)
&& Objects.equals(originalAttemptRunId, that.originalAttemptRunId)
&& Objects.equals(overridingParameters, that.overridingParameters)
+ && Objects.equals(prevPageToken, that.prevPageToken)
&& Objects.equals(queueDuration, that.queueDuration)
&& Objects.equals(repairHistory, that.repairHistory)
&& Objects.equals(runDuration, that.runDuration)
@@ -509,12 +551,15 @@ public int hashCode() {
endTime,
executionDuration,
gitSource,
+ iterations,
jobClusters,
jobId,
jobParameters,
+ nextPageToken,
numberInJob,
originalAttemptRunId,
overridingParameters,
+ prevPageToken,
queueDuration,
repairHistory,
runDuration,
@@ -543,12 +588,15 @@ public String toString() {
.add("endTime", endTime)
.add("executionDuration", executionDuration)
.add("gitSource", gitSource)
+ .add("iterations", iterations)
.add("jobClusters", jobClusters)
.add("jobId", jobId)
.add("jobParameters", jobParameters)
+ .add("nextPageToken", nextPageToken)
.add("numberInJob", numberInJob)
.add("originalAttemptRunId", originalAttemptRunId)
.add("overridingParameters", overridingParameters)
+ .add("prevPageToken", prevPageToken)
.add("queueDuration", queueDuration)
.add("repairHistory", repairHistory)
.add("runDuration", runDuration)
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/IngestionGatewayPipelineDefinition.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/IngestionGatewayPipelineDefinition.java
index 7fa5398aa..e989241e4 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/IngestionGatewayPipelineDefinition.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/IngestionGatewayPipelineDefinition.java
@@ -21,7 +21,7 @@ public class IngestionGatewayPipelineDefinition {
private String gatewayStorageCatalog;
/**
- * Required. The Unity Catalog-compatible naming for the gateway storage location. This is the
+ * Optional. The Unity Catalog-compatible name for the gateway storage location. This is the
* destination to use for the data that is extracted by the gateway. Delta Live Tables system will
* automatically create the storage location under the catalog and schema.
*/
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineCluster.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineCluster.java
index 516b4e1e5..2eb27a477 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineCluster.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineCluster.java
@@ -72,6 +72,10 @@ public class PipelineCluster {
@JsonProperty("driver_node_type_id")
private String driverNodeTypeId;
+ /** Whether to enable local disk encryption for the cluster. */
+ @JsonProperty("enable_local_disk_encryption")
+ private Boolean enableLocalDiskEncryption;
+
/**
* Attributes related to clusters running on Google Cloud Platform. If not specified at cluster
* creation, a set of default values will be used.
@@ -231,6 +235,15 @@ public String getDriverNodeTypeId() {
return driverNodeTypeId;
}
+ public PipelineCluster setEnableLocalDiskEncryption(Boolean enableLocalDiskEncryption) {
+ this.enableLocalDiskEncryption = enableLocalDiskEncryption;
+ return this;
+ }
+
+ public Boolean getEnableLocalDiskEncryption() {
+ return enableLocalDiskEncryption;
+ }
+
public PipelineCluster setGcpAttributes(
com.databricks.sdk.service.compute.GcpAttributes gcpAttributes) {
this.gcpAttributes = gcpAttributes;
@@ -336,6 +349,7 @@ public boolean equals(Object o) {
&& Objects.equals(customTags, that.customTags)
&& Objects.equals(driverInstancePoolId, that.driverInstancePoolId)
&& Objects.equals(driverNodeTypeId, that.driverNodeTypeId)
+ && Objects.equals(enableLocalDiskEncryption, that.enableLocalDiskEncryption)
&& Objects.equals(gcpAttributes, that.gcpAttributes)
&& Objects.equals(initScripts, that.initScripts)
&& Objects.equals(instancePoolId, that.instancePoolId)
@@ -359,6 +373,7 @@ public int hashCode() {
customTags,
driverInstancePoolId,
driverNodeTypeId,
+ enableLocalDiskEncryption,
gcpAttributes,
initScripts,
instancePoolId,
@@ -382,6 +397,7 @@ public String toString() {
.add("customTags", customTags)
.add("driverInstancePoolId", driverInstancePoolId)
.add("driverNodeTypeId", driverNodeTypeId)
+ .add("enableLocalDiskEncryption", enableLocalDiskEncryption)
.add("gcpAttributes", gcpAttributes)
.add("initScripts", initScripts)
.add("instancePoolId", instancePoolId)
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineLibrary.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineLibrary.java
index ee047e91a..7954e8735 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineLibrary.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineLibrary.java
@@ -25,6 +25,10 @@ public class PipelineLibrary {
@JsonProperty("notebook")
private NotebookLibrary notebook;
+ /** URI of the whl to be installed. */
+ @JsonProperty("whl")
+ private String whl;
+
public PipelineLibrary setFile(FileLibrary file) {
this.file = file;
return this;
@@ -61,6 +65,15 @@ public NotebookLibrary getNotebook() {
return notebook;
}
+ public PipelineLibrary setWhl(String whl) {
+ this.whl = whl;
+ return this;
+ }
+
+ public String getWhl() {
+ return whl;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
@@ -69,12 +82,13 @@ public boolean equals(Object o) {
return Objects.equals(file, that.file)
&& Objects.equals(jar, that.jar)
&& Objects.equals(maven, that.maven)
- && Objects.equals(notebook, that.notebook);
+ && Objects.equals(notebook, that.notebook)
+ && Objects.equals(whl, that.whl);
}
@Override
public int hashCode() {
- return Objects.hash(file, jar, maven, notebook);
+ return Objects.hash(file, jar, maven, notebook, whl);
}
@Override
@@ -84,6 +98,7 @@ public String toString() {
.add("jar", jar)
.add("maven", maven)
.add("notebook", notebook)
+ .add("whl", whl)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java
index ea8a1f41c..dafa63362 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfo.java
@@ -18,6 +18,10 @@ public class PipelineStateInfo {
@JsonProperty("creator_user_name")
private String creatorUserName;
+ /** The health of a pipeline. */
+ @JsonProperty("health")
+ private PipelineStateInfoHealth health;
+
/** Status of the latest updates for the pipeline. Ordered with the newest update first. */
@JsonProperty("latest_updates")
private Collection latestUpdates;
@@ -59,6 +63,15 @@ public String getCreatorUserName() {
return creatorUserName;
}
+ public PipelineStateInfo setHealth(PipelineStateInfoHealth health) {
+ this.health = health;
+ return this;
+ }
+
+ public PipelineStateInfoHealth getHealth() {
+ return health;
+ }
+
public PipelineStateInfo setLatestUpdates(Collection latestUpdates) {
this.latestUpdates = latestUpdates;
return this;
@@ -111,6 +124,7 @@ public boolean equals(Object o) {
PipelineStateInfo that = (PipelineStateInfo) o;
return Objects.equals(clusterId, that.clusterId)
&& Objects.equals(creatorUserName, that.creatorUserName)
+ && Objects.equals(health, that.health)
&& Objects.equals(latestUpdates, that.latestUpdates)
&& Objects.equals(name, that.name)
&& Objects.equals(pipelineId, that.pipelineId)
@@ -121,7 +135,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
- clusterId, creatorUserName, latestUpdates, name, pipelineId, runAsUserName, state);
+ clusterId, creatorUserName, health, latestUpdates, name, pipelineId, runAsUserName, state);
}
@Override
@@ -129,6 +143,7 @@ public String toString() {
return new ToStringer(PipelineStateInfo.class)
.add("clusterId", clusterId)
.add("creatorUserName", creatorUserName)
+ .add("health", health)
.add("latestUpdates", latestUpdates)
.add("name", name)
.add("pipelineId", pipelineId)
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfoHealth.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfoHealth.java
new file mode 100755
index 000000000..7ab0e7dd8
--- /dev/null
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelineStateInfoHealth.java
@@ -0,0 +1,12 @@
+// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
+
+package com.databricks.sdk.service.pipelines;
+
+import com.databricks.sdk.support.Generated;
+
+/** The health of a pipeline. */
+@Generated
+public enum PipelineStateInfoHealth {
+ HEALTHY,
+ UNHEALTHY,
+}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppEnvironment.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppEnvironment.java
deleted file mode 100755
index 9e9a507e0..000000000
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/AppEnvironment.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-
-package com.databricks.sdk.service.serving;
-
-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 AppEnvironment {
- /** */
- @JsonProperty("env")
- private Collection env;
-
- public AppEnvironment setEnv(Collection env) {
- this.env = env;
- return this;
- }
-
- public Collection getEnv() {
- return env;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- AppEnvironment that = (AppEnvironment) o;
- return Objects.equals(env, that.env);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(env);
- }
-
- @Override
- public String toString() {
- return new ToStringer(AppEnvironment.class).add("env", env).toString();
- }
-}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EnvVariable.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EnvVariable.java
deleted file mode 100755
index 5e1ca007c..000000000
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/EnvVariable.java
+++ /dev/null
@@ -1,74 +0,0 @@
-// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-
-package com.databricks.sdk.service.serving;
-
-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 EnvVariable {
- /** */
- @JsonProperty("name")
- private String name;
-
- /** */
- @JsonProperty("value")
- private String value;
-
- /** */
- @JsonProperty("value_from")
- private String valueFrom;
-
- public EnvVariable setName(String name) {
- this.name = name;
- return this;
- }
-
- public String getName() {
- return name;
- }
-
- public EnvVariable setValue(String value) {
- this.value = value;
- return this;
- }
-
- public String getValue() {
- return value;
- }
-
- public EnvVariable setValueFrom(String valueFrom) {
- this.valueFrom = valueFrom;
- return this;
- }
-
- public String getValueFrom() {
- return valueFrom;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- EnvVariable that = (EnvVariable) o;
- return Objects.equals(name, that.name)
- && Objects.equals(value, that.value)
- && Objects.equals(valueFrom, that.valueFrom);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, value, valueFrom);
- }
-
- @Override
- public String toString() {
- return new ToStringer(EnvVariable.class)
- .add("name", name)
- .add("value", value)
- .add("valueFrom", valueFrom)
- .toString();
- }
-}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppEnvironmentRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppEnvironmentRequest.java
deleted file mode 100755
index e869ef07b..000000000
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/GetAppEnvironmentRequest.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
-
-package com.databricks.sdk.service.serving;
-
-import com.databricks.sdk.support.Generated;
-import com.databricks.sdk.support.ToStringer;
-import java.util.Objects;
-
-/** Get app environment */
-@Generated
-public class GetAppEnvironmentRequest {
- /** The name of the app. */
- private String name;
-
- public GetAppEnvironmentRequest setName(String name) {
- this.name = name;
- return this;
- }
-
- public String getName() {
- return name;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- GetAppEnvironmentRequest that = (GetAppEnvironmentRequest) o;
- return Objects.equals(name, that.name);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name);
- }
-
- @Override
- public String toString() {
- return new ToStringer(GetAppEnvironmentRequest.class).add("name", name).toString();
- }
-}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/GetRecipientSharePermissionsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/GetRecipientSharePermissionsResponse.java
index 7e13e99d9..929f88b04 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/GetRecipientSharePermissionsResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/GetRecipientSharePermissionsResponse.java
@@ -10,10 +10,26 @@
@Generated
public class GetRecipientSharePermissionsResponse {
+ /**
+ * Opaque token to retrieve the next page of results. Absent if there are no more pages.
+ * __page_token__ should be set to this value for the next request (for the next page of results).
+ */
+ @JsonProperty("next_page_token")
+ private String nextPageToken;
+
/** An array of data share permissions for a recipient. */
@JsonProperty("permissions_out")
private Collection permissionsOut;
+ public GetRecipientSharePermissionsResponse setNextPageToken(String nextPageToken) {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
+
+ public String getNextPageToken() {
+ return nextPageToken;
+ }
+
public GetRecipientSharePermissionsResponse setPermissionsOut(
Collection permissionsOut) {
this.permissionsOut = permissionsOut;
@@ -29,17 +45,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetRecipientSharePermissionsResponse that = (GetRecipientSharePermissionsResponse) o;
- return Objects.equals(permissionsOut, that.permissionsOut);
+ return Objects.equals(nextPageToken, that.nextPageToken)
+ && Objects.equals(permissionsOut, that.permissionsOut);
}
@Override
public int hashCode() {
- return Objects.hash(permissionsOut);
+ return Objects.hash(nextPageToken, permissionsOut);
}
@Override
public String toString() {
return new ToStringer(GetRecipientSharePermissionsResponse.class)
+ .add("nextPageToken", nextPageToken)
.add("permissionsOut", permissionsOut)
.toString();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProviderSharesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProviderSharesResponse.java
index ed225460d..cb8bdfcde 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProviderSharesResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProviderSharesResponse.java
@@ -10,10 +10,26 @@
@Generated
public class ListProviderSharesResponse {
+ /**
+ * Opaque token to retrieve the next page of results. Absent if there are no more pages.
+ * __page_token__ should be set to this value for the next request (for the next page of results).
+ */
+ @JsonProperty("next_page_token")
+ private String nextPageToken;
+
/** An array of provider shares. */
@JsonProperty("shares")
private Collection shares;
+ public ListProviderSharesResponse setNextPageToken(String nextPageToken) {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
+
+ public String getNextPageToken() {
+ return nextPageToken;
+ }
+
public ListProviderSharesResponse setShares(Collection shares) {
this.shares = shares;
return this;
@@ -28,16 +44,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListProviderSharesResponse that = (ListProviderSharesResponse) o;
- return Objects.equals(shares, that.shares);
+ return Objects.equals(nextPageToken, that.nextPageToken) && Objects.equals(shares, that.shares);
}
@Override
public int hashCode() {
- return Objects.hash(shares);
+ return Objects.hash(nextPageToken, shares);
}
@Override
public String toString() {
- return new ToStringer(ListProviderSharesResponse.class).add("shares", shares).toString();
+ return new ToStringer(ListProviderSharesResponse.class)
+ .add("nextPageToken", nextPageToken)
+ .add("shares", shares)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersRequest.java
index d9567da53..c2874209c 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersRequest.java
@@ -17,6 +17,22 @@ public class ListProvidersRequest {
@QueryParam("data_provider_global_metastore_id")
private String dataProviderGlobalMetastoreId;
+ /**
+ * Maximum number of providers to return. - when set to 0, the page length is set to a server
+ * configured value (recommended); - when set to a value greater than 0, the page length is the
+ * minimum of this value and a server configured value; - when set to a value less than 0, an
+ * invalid parameter error is returned; - If not set, all valid providers are returned (not
+ * recommended). - Note: The number of returned providers might be less than the specified
+ * max_results size, even zero. The only definitive indication that no further providers can be
+ * fetched is when the next_page_token is unset from the response.
+ */
+ @QueryParam("max_results")
+ private Long maxResults;
+
+ /** Opaque pagination token to go to next page based on previous query. */
+ @QueryParam("page_token")
+ private String pageToken;
+
public ListProvidersRequest setDataProviderGlobalMetastoreId(
String dataProviderGlobalMetastoreId) {
this.dataProviderGlobalMetastoreId = dataProviderGlobalMetastoreId;
@@ -27,23 +43,45 @@ public String getDataProviderGlobalMetastoreId() {
return dataProviderGlobalMetastoreId;
}
+ public ListProvidersRequest setMaxResults(Long maxResults) {
+ this.maxResults = maxResults;
+ return this;
+ }
+
+ public Long getMaxResults() {
+ return maxResults;
+ }
+
+ public ListProvidersRequest setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ public String getPageToken() {
+ return pageToken;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListProvidersRequest that = (ListProvidersRequest) o;
- return Objects.equals(dataProviderGlobalMetastoreId, that.dataProviderGlobalMetastoreId);
+ return Objects.equals(dataProviderGlobalMetastoreId, that.dataProviderGlobalMetastoreId)
+ && Objects.equals(maxResults, that.maxResults)
+ && Objects.equals(pageToken, that.pageToken);
}
@Override
public int hashCode() {
- return Objects.hash(dataProviderGlobalMetastoreId);
+ return Objects.hash(dataProviderGlobalMetastoreId, maxResults, pageToken);
}
@Override
public String toString() {
return new ToStringer(ListProvidersRequest.class)
.add("dataProviderGlobalMetastoreId", dataProviderGlobalMetastoreId)
+ .add("maxResults", maxResults)
+ .add("pageToken", pageToken)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersResponse.java
index f734bf68c..5c1692ebb 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListProvidersResponse.java
@@ -10,10 +10,26 @@
@Generated
public class ListProvidersResponse {
+ /**
+ * Opaque token to retrieve the next page of results. Absent if there are no more pages.
+ * __page_token__ should be set to this value for the next request (for the next page of results).
+ */
+ @JsonProperty("next_page_token")
+ private String nextPageToken;
+
/** An array of provider information objects. */
@JsonProperty("providers")
private Collection providers;
+ public ListProvidersResponse setNextPageToken(String nextPageToken) {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
+
+ public String getNextPageToken() {
+ return nextPageToken;
+ }
+
public ListProvidersResponse setProviders(Collection providers) {
this.providers = providers;
return this;
@@ -28,16 +44,20 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListProvidersResponse that = (ListProvidersResponse) o;
- return Objects.equals(providers, that.providers);
+ return Objects.equals(nextPageToken, that.nextPageToken)
+ && Objects.equals(providers, that.providers);
}
@Override
public int hashCode() {
- return Objects.hash(providers);
+ return Objects.hash(nextPageToken, providers);
}
@Override
public String toString() {
- return new ToStringer(ListProvidersResponse.class).add("providers", providers).toString();
+ return new ToStringer(ListProvidersResponse.class)
+ .add("nextPageToken", nextPageToken)
+ .add("providers", providers)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsRequest.java
index b49970fff..fd46fd38e 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsRequest.java
@@ -17,6 +17,22 @@ public class ListRecipientsRequest {
@QueryParam("data_recipient_global_metastore_id")
private String dataRecipientGlobalMetastoreId;
+ /**
+ * Maximum number of recipients to return. - when set to 0, the page length is set to a server
+ * configured value (recommended); - when set to a value greater than 0, the page length is the
+ * minimum of this value and a server configured value; - when set to a value less than 0, an
+ * invalid parameter error is returned; - If not set, all valid recipients are returned (not
+ * recommended). - Note: The number of returned recipients might be less than the specified
+ * max_results size, even zero. The only definitive indication that no further recipients can be
+ * fetched is when the next_page_token is unset from the response.
+ */
+ @QueryParam("max_results")
+ private Long maxResults;
+
+ /** Opaque pagination token to go to next page based on previous query. */
+ @QueryParam("page_token")
+ private String pageToken;
+
public ListRecipientsRequest setDataRecipientGlobalMetastoreId(
String dataRecipientGlobalMetastoreId) {
this.dataRecipientGlobalMetastoreId = dataRecipientGlobalMetastoreId;
@@ -27,23 +43,45 @@ public String getDataRecipientGlobalMetastoreId() {
return dataRecipientGlobalMetastoreId;
}
+ public ListRecipientsRequest setMaxResults(Long maxResults) {
+ this.maxResults = maxResults;
+ return this;
+ }
+
+ public Long getMaxResults() {
+ return maxResults;
+ }
+
+ public ListRecipientsRequest setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ public String getPageToken() {
+ return pageToken;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListRecipientsRequest that = (ListRecipientsRequest) o;
- return Objects.equals(dataRecipientGlobalMetastoreId, that.dataRecipientGlobalMetastoreId);
+ return Objects.equals(dataRecipientGlobalMetastoreId, that.dataRecipientGlobalMetastoreId)
+ && Objects.equals(maxResults, that.maxResults)
+ && Objects.equals(pageToken, that.pageToken);
}
@Override
public int hashCode() {
- return Objects.hash(dataRecipientGlobalMetastoreId);
+ return Objects.hash(dataRecipientGlobalMetastoreId, maxResults, pageToken);
}
@Override
public String toString() {
return new ToStringer(ListRecipientsRequest.class)
.add("dataRecipientGlobalMetastoreId", dataRecipientGlobalMetastoreId)
+ .add("maxResults", maxResults)
+ .add("pageToken", pageToken)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsResponse.java
index dcd704822..2d0ece97f 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListRecipientsResponse.java
@@ -10,10 +10,26 @@
@Generated
public class ListRecipientsResponse {
+ /**
+ * Opaque token to retrieve the next page of results. Absent if there are no more pages.
+ * __page_token__ should be set to this value for the next request (for the next page of results).
+ */
+ @JsonProperty("next_page_token")
+ private String nextPageToken;
+
/** An array of recipient information objects. */
@JsonProperty("recipients")
private Collection recipients;
+ public ListRecipientsResponse setNextPageToken(String nextPageToken) {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
+
+ public String getNextPageToken() {
+ return nextPageToken;
+ }
+
public ListRecipientsResponse setRecipients(Collection recipients) {
this.recipients = recipients;
return this;
@@ -28,16 +44,20 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListRecipientsResponse that = (ListRecipientsResponse) o;
- return Objects.equals(recipients, that.recipients);
+ return Objects.equals(nextPageToken, that.nextPageToken)
+ && Objects.equals(recipients, that.recipients);
}
@Override
public int hashCode() {
- return Objects.hash(recipients);
+ return Objects.hash(nextPageToken, recipients);
}
@Override
public String toString() {
- return new ToStringer(ListRecipientsResponse.class).add("recipients", recipients).toString();
+ return new ToStringer(ListRecipientsResponse.class)
+ .add("nextPageToken", nextPageToken)
+ .add("recipients", recipients)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesRequest.java
index dee14946e..721a53857 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesRequest.java
@@ -3,15 +3,41 @@
package com.databricks.sdk.service.sharing;
import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.QueryParam;
import com.databricks.sdk.support.ToStringer;
import java.util.Objects;
/** List shares by Provider */
@Generated
public class ListSharesRequest {
+ /**
+ * Maximum number of shares to return. - when set to 0, the page length is set to a server
+ * configured value (recommended); - when set to a value greater than 0, the page length is the
+ * minimum of this value and a server configured value; - when set to a value less than 0, an
+ * invalid parameter error is returned; - If not set, all valid shares are returned (not
+ * recommended). - Note: The number of returned shares might be less than the specified
+ * max_results size, even zero. The only definitive indication that no further shares can be
+ * fetched is when the next_page_token is unset from the response.
+ */
+ @QueryParam("max_results")
+ private Long maxResults;
+
/** Name of the provider in which to list shares. */
private String name;
+ /** Opaque pagination token to go to next page based on previous query. */
+ @QueryParam("page_token")
+ private String pageToken;
+
+ public ListSharesRequest setMaxResults(Long maxResults) {
+ this.maxResults = maxResults;
+ return this;
+ }
+
+ public Long getMaxResults() {
+ return maxResults;
+ }
+
public ListSharesRequest setName(String name) {
this.name = name;
return this;
@@ -21,21 +47,36 @@ public String getName() {
return name;
}
+ public ListSharesRequest setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ public String getPageToken() {
+ return pageToken;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListSharesRequest that = (ListSharesRequest) o;
- return Objects.equals(name, that.name);
+ return Objects.equals(maxResults, that.maxResults)
+ && Objects.equals(name, that.name)
+ && Objects.equals(pageToken, that.pageToken);
}
@Override
public int hashCode() {
- return Objects.hash(name);
+ return Objects.hash(maxResults, name, pageToken);
}
@Override
public String toString() {
- return new ToStringer(ListSharesRequest.class).add("name", name).toString();
+ return new ToStringer(ListSharesRequest.class)
+ .add("maxResults", maxResults)
+ .add("name", name)
+ .add("pageToken", pageToken)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesResponse.java
index e2bd46ca0..a7e7f47d0 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ListSharesResponse.java
@@ -10,10 +10,26 @@
@Generated
public class ListSharesResponse {
+ /**
+ * Opaque token to retrieve the next page of results. Absent if there are no more pages.
+ * __page_token__ should be set to this value for the next request (for the next page of results).
+ */
+ @JsonProperty("next_page_token")
+ private String nextPageToken;
+
/** An array of data share information objects. */
@JsonProperty("shares")
private Collection shares;
+ public ListSharesResponse setNextPageToken(String nextPageToken) {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
+
+ public String getNextPageToken() {
+ return nextPageToken;
+ }
+
public ListSharesResponse setShares(Collection shares) {
this.shares = shares;
return this;
@@ -28,16 +44,19 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ListSharesResponse that = (ListSharesResponse) o;
- return Objects.equals(shares, that.shares);
+ return Objects.equals(nextPageToken, that.nextPageToken) && Objects.equals(shares, that.shares);
}
@Override
public int hashCode() {
- return Objects.hash(shares);
+ return Objects.hash(nextPageToken, shares);
}
@Override
public String toString() {
- return new ToStringer(ListSharesResponse.class).add("shares", shares).toString();
+ return new ToStringer(ListSharesResponse.class)
+ .add("nextPageToken", nextPageToken)
+ .add("shares", shares)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java
index 84860b413..0adbfb15c 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java
@@ -78,7 +78,16 @@ public ProviderInfo get(GetProviderRequest request) {
*/
public Iterable list(ListProvidersRequest request) {
return new Paginator<>(
- request, impl::list, ListProvidersResponse::getProviders, response -> null);
+ request,
+ impl::list,
+ ListProvidersResponse::getProviders,
+ response -> {
+ String token = response.getNextPageToken();
+ if (token == null) {
+ return null;
+ }
+ return request.setPageToken(token);
+ });
}
public Iterable listShares(String name) {
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java
index b40fac9e5..98a185f31 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java
@@ -92,7 +92,16 @@ public RecipientInfo get(GetRecipientRequest request) {
*/
public Iterable list(ListRecipientsRequest request) {
return new Paginator<>(
- request, impl::list, ListRecipientsResponse::getRecipients, response -> null);
+ request,
+ impl::list,
+ ListRecipientsResponse::getRecipients,
+ response -> {
+ String token = response.getNextPageToken();
+ if (token == null) {
+ return null;
+ }
+ return request.setPageToken(token);
+ });
}
public RecipientInfo rotateToken(String name, long existingTokenExpireInSeconds) {
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java
index 6ba01ce0d..2183e40c2 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharePermissionsRequest.java
@@ -3,15 +3,41 @@
package com.databricks.sdk.service.sharing;
import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.QueryParam;
import com.databricks.sdk.support.ToStringer;
import java.util.Objects;
/** Get recipient share permissions */
@Generated
public class SharePermissionsRequest {
+ /**
+ * Maximum number of permissions to return. - when set to 0, the page length is set to a server
+ * configured value (recommended); - when set to a value greater than 0, the page length is the
+ * minimum of this value and a server configured value; - when set to a value less than 0, an
+ * invalid parameter error is returned; - If not set, all valid permissions are returned (not
+ * recommended). - Note: The number of returned permissions might be less than the specified
+ * max_results size, even zero. The only definitive indication that no further permissions can be
+ * fetched is when the next_page_token is unset from the response.
+ */
+ @QueryParam("max_results")
+ private Long maxResults;
+
/** The name of the Recipient. */
private String name;
+ /** Opaque pagination token to go to next page based on previous query. */
+ @QueryParam("page_token")
+ private String pageToken;
+
+ public SharePermissionsRequest setMaxResults(Long maxResults) {
+ this.maxResults = maxResults;
+ return this;
+ }
+
+ public Long getMaxResults() {
+ return maxResults;
+ }
+
public SharePermissionsRequest setName(String name) {
this.name = name;
return this;
@@ -21,21 +47,36 @@ public String getName() {
return name;
}
+ public SharePermissionsRequest setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ public String getPageToken() {
+ return pageToken;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SharePermissionsRequest that = (SharePermissionsRequest) o;
- return Objects.equals(name, that.name);
+ return Objects.equals(maxResults, that.maxResults)
+ && Objects.equals(name, that.name)
+ && Objects.equals(pageToken, that.pageToken);
}
@Override
public int hashCode() {
- return Objects.hash(name);
+ return Objects.hash(maxResults, name, pageToken);
}
@Override
public String toString() {
- return new ToStringer(SharePermissionsRequest.class).add("name", name).toString();
+ return new ToStringer(SharePermissionsRequest.class)
+ .add("maxResults", maxResults)
+ .add("name", name)
+ .add("pageToken", pageToken)
+ .toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java
index 611f84a97..f555901ce 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java
@@ -78,9 +78,18 @@ public ShareInfo get(GetShareRequest request) {
* or the owner of the share. There is no guarantee of a specific ordering of the elements in the
* array.
*/
- public Iterable list() {
+ public Iterable list(ListSharesRequest request) {
return new Paginator<>(
- null, (Void v) -> impl.list(), ListSharesResponse::getShares, response -> null);
+ request,
+ impl::list,
+ ListSharesResponse::getShares,
+ response -> {
+ String token = response.getNextPageToken();
+ if (token == null) {
+ return null;
+ }
+ return request.setPageToken(token);
+ });
}
public com.databricks.sdk.service.catalog.PermissionsList sharePermissions(String name) {
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesImpl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesImpl.java
index df8d1ffd6..cb5211ab9 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesImpl.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesImpl.java
@@ -41,11 +41,11 @@ public ShareInfo get(GetShareRequest request) {
}
@Override
- public ListSharesResponse list() {
+ public ListSharesResponse list(ListSharesRequest request) {
String path = "/api/2.1/unity-catalog/shares";
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
- return apiClient.GET(path, ListSharesResponse.class, headers);
+ return apiClient.GET(path, request, ListSharesResponse.class, headers);
}
@Override
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesService.java
index 35b388211..70ee38414 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesService.java
@@ -46,7 +46,7 @@ public interface SharesService {
* or the owner of the share. There is no guarantee of a specific ordering of the elements in the
* array.
*/
- ListSharesResponse list();
+ ListSharesResponse list(ListSharesRequest listSharesRequest);
/**
* Get permissions.
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/UpdateSharePermissions.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/UpdateSharePermissions.java
index 8961229be..dc1d9d583 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/UpdateSharePermissions.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/UpdateSharePermissions.java
@@ -3,6 +3,7 @@
package com.databricks.sdk.service.sharing;
import com.databricks.sdk.support.Generated;
+import com.databricks.sdk.support.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
@@ -14,9 +15,25 @@ public class UpdateSharePermissions {
@JsonProperty("changes")
private Collection changes;
+ /**
+ * Maximum number of permissions to return. - when set to 0, the page length is set to a server
+ * configured value (recommended); - when set to a value greater than 0, the page length is the
+ * minimum of this value and a server configured value; - when set to a value less than 0, an
+ * invalid parameter error is returned; - If not set, all valid permissions are returned (not
+ * recommended). - Note: The number of returned permissions might be less than the specified
+ * max_results size, even zero. The only definitive indication that no further permissions can be
+ * fetched is when the next_page_token is unset from the response.
+ */
+ @QueryParam("max_results")
+ private Long maxResults;
+
/** The name of the share. */
private String name;
+ /** Opaque pagination token to go to next page based on previous query. */
+ @QueryParam("page_token")
+ private String pageToken;
+
public UpdateSharePermissions setChanges(
Collection changes) {
this.changes = changes;
@@ -27,6 +44,15 @@ public Collection getChang
return changes;
}
+ public UpdateSharePermissions setMaxResults(Long maxResults) {
+ this.maxResults = maxResults;
+ return this;
+ }
+
+ public Long getMaxResults() {
+ return maxResults;
+ }
+
public UpdateSharePermissions setName(String name) {
this.name = name;
return this;
@@ -36,24 +62,38 @@ public String getName() {
return name;
}
+ public UpdateSharePermissions setPageToken(String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ public String getPageToken() {
+ return pageToken;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UpdateSharePermissions that = (UpdateSharePermissions) o;
- return Objects.equals(changes, that.changes) && Objects.equals(name, that.name);
+ return Objects.equals(changes, that.changes)
+ && Objects.equals(maxResults, that.maxResults)
+ && Objects.equals(name, that.name)
+ && Objects.equals(pageToken, that.pageToken);
}
@Override
public int hashCode() {
- return Objects.hash(changes, name);
+ return Objects.hash(changes, maxResults, name, pageToken);
}
@Override
public String toString() {
return new ToStringer(UpdateSharePermissions.class)
.add("changes", changes)
+ .add("maxResults", maxResults)
.add("name", name)
+ .add("pageToken", pageToken)
.toString();
}
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyAPI.java
index 5ef97ec85..3e4b85f2f 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyAPI.java
@@ -13,7 +13,9 @@
* using the `sql_task` type of the Jobs API, e.g. :method:jobs/create.
*
* **Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
@Generated
public class AlertsLegacyAPI {
@@ -43,7 +45,9 @@ public LegacyAlert create(String name, AlertOptions options, String queryId) {
* condition was met.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/create instead.
+ * :method:alerts/create instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public LegacyAlert create(CreateAlert request) {
return impl.create(request);
@@ -60,7 +64,9 @@ public void delete(String alertId) {
* Unlike queries and dashboards, alerts cannot be moved to the trash.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/delete instead.
+ * :method:alerts/delete instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public void delete(DeleteAlertsLegacyRequest request) {
impl.delete(request);
@@ -76,7 +82,9 @@ public LegacyAlert get(String alertId) {
*
Gets an alert.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/get instead.
+ * :method:alerts/get instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public LegacyAlert get(GetAlertsLegacyRequest request) {
return impl.get(request);
@@ -88,7 +96,9 @@ public LegacyAlert get(GetAlertsLegacyRequest request) {
*
Gets a list of alerts.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/list instead.
+ * :method:alerts/list instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public Iterable list() {
return impl.list();
@@ -105,7 +115,9 @@ public void update(String alertId, String name, AlertOptions options, String que
* Updates an alert.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/update instead.
+ * :method:alerts/update instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public void update(EditAlert request) {
impl.update(request);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyService.java
index 8544e2865..ac0b1c554 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsLegacyService.java
@@ -11,7 +11,9 @@
* using the `sql_task` type of the Jobs API, e.g. :method:jobs/create.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*
*
This is the high-level interface, that contains generated methods.
*
@@ -27,7 +29,9 @@ public interface AlertsLegacyService {
* condition was met.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/create instead.
+ * :method:alerts/create instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
LegacyAlert create(CreateAlert createAlert);
@@ -38,7 +42,9 @@ public interface AlertsLegacyService {
* Unlike queries and dashboards, alerts cannot be moved to the trash.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/delete instead.
+ * :method:alerts/delete instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
void delete(DeleteAlertsLegacyRequest deleteAlertsLegacyRequest);
@@ -48,7 +54,9 @@ public interface AlertsLegacyService {
*
Gets an alert.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/get instead.
+ * :method:alerts/get instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
LegacyAlert get(GetAlertsLegacyRequest getAlertsLegacyRequest);
@@ -58,7 +66,9 @@ public interface AlertsLegacyService {
*
Gets a list of alerts.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/list instead.
+ * :method:alerts/list instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
Collection list();
@@ -68,7 +78,9 @@ public interface AlertsLegacyService {
* Updates an alert.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:alerts/update instead.
+ * :method:alerts/update instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
void update(EditAlert editAlert);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java
index a1900b66f..3b9d4cbb0 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ChannelName.java
@@ -10,4 +10,5 @@ public enum ChannelName {
CHANNEL_NAME_CUSTOM,
CHANNEL_NAME_PREVIEW,
CHANNEL_NAME_PREVIOUS,
+ CHANNEL_NAME_UNSPECIFIED,
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesAPI.java
index 82cf697a9..1be8f53fa 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesAPI.java
@@ -16,8 +16,9 @@
* workspace. We advise you to use any text editor, REST client, or `grep` to search the response
* from this API for the name of your SQL warehouse as it appears in Databricks SQL.
*
- *
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ *
**Note**: A new version of the Databricks SQL API is now available. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
@Generated
public class DataSourcesAPI {
@@ -43,7 +44,9 @@ public DataSourcesAPI(DataSourcesService mock) {
* to create new queries against it.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:warehouses/list instead.
+ * :method:warehouses/list instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public Iterable list() {
return impl.list();
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesService.java
index 7dba844bb..95cadf809 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DataSourcesService.java
@@ -14,8 +14,9 @@
* workspace. We advise you to use any text editor, REST client, or `grep` to search the response
* from this API for the name of your SQL warehouse as it appears in Databricks SQL.
*
- * **Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ *
**Note**: A new version of the Databricks SQL API is now available. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*
*
This is the high-level interface, that contains generated methods.
*
@@ -31,7 +32,9 @@ public interface DataSourcesService {
* to create new queries against it.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:warehouses/list instead.
+ * :method:warehouses/list instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
Collection list();
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsAPI.java
index 827ad3b99..10c864e7e 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsAPI.java
@@ -20,8 +20,9 @@
* - `CAN_MANAGE`: Allows all actions: read, run, edit, delete, modify permissions (superset of
* `CAN_RUN`)
*
- *
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ *
**Note**: A new version of the Databricks SQL API is now available. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
@Generated
public class DbsqlPermissionsAPI {
@@ -47,6 +48,11 @@ public GetResponse get(ObjectTypePlural objectType, String objectId) {
* Get object ACL.
*
*
Gets a JSON representation of the access control list (ACL) for a specified object.
+ *
+ *
**Note**: A new version of the Databricks SQL API is now available. Please use
+ * :method:workspace/getpermissions instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public GetResponse get(GetDbsqlPermissionRequest request) {
return impl.get(request);
@@ -61,6 +67,11 @@ public SetResponse set(ObjectTypePlural objectType, String objectId) {
*
*
Sets the access control list (ACL) for a specified object. This operation will complete
* rewrite the ACL.
+ *
+ *
**Note**: A new version of the Databricks SQL API is now available. Please use
+ * :method:workspace/setpermissions instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public SetResponse set(SetRequest request) {
return impl.set(request);
@@ -79,7 +90,9 @@ public Success transferOwnership(
* key.
*
*
**Note**: A new version of the Databricks SQL API is now available. For queries and alerts,
- * please use :method:queries/update and :method:alerts/update respectively instead.
+ * please use :method:queries/update and :method:alerts/update respectively instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public Success transferOwnership(TransferOwnershipRequest request) {
return impl.transferOwnership(request);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsService.java
index 0e7f85ad0..255f5e4b2 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/DbsqlPermissionsService.java
@@ -17,8 +17,9 @@
*
- `CAN_MANAGE`: Allows all actions: read, run, edit, delete, modify permissions (superset of
* `CAN_RUN`)
*
- *
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ *
**Note**: A new version of the Databricks SQL API is now available. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*
*
This is the high-level interface, that contains generated methods.
*
@@ -30,6 +31,11 @@ public interface DbsqlPermissionsService {
* Get object ACL.
*
*
Gets a JSON representation of the access control list (ACL) for a specified object.
+ *
+ *
**Note**: A new version of the Databricks SQL API is now available. Please use
+ * :method:workspace/getpermissions instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
GetResponse get(GetDbsqlPermissionRequest getDbsqlPermissionRequest);
@@ -38,6 +44,11 @@ public interface DbsqlPermissionsService {
*
*
Sets the access control list (ACL) for a specified object. This operation will complete
* rewrite the ACL.
+ *
+ *
**Note**: A new version of the Databricks SQL API is now available. Please use
+ * :method:workspace/setpermissions instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
SetResponse set(SetRequest setRequest);
@@ -48,7 +59,9 @@ public interface DbsqlPermissionsService {
* key.
*
*
**Note**: A new version of the Databricks SQL API is now available. For queries and alerts,
- * please use :method:queries/update and :method:alerts/update respectively instead.
+ * please use :method:queries/update and :method:alerts/update respectively instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
Success transferOwnership(TransferOwnershipRequest transferOwnershipRequest);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java
index 8015bfb4e..fb3348b85 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/Disposition.java
@@ -4,28 +4,6 @@
import com.databricks.sdk.support.Generated;
-/**
- * The fetch disposition provides two modes of fetching results: `INLINE` and `EXTERNAL_LINKS`.
- *
- *
Statements executed with `INLINE` disposition will return result data inline, in `JSON_ARRAY`
- * format, in a series of chunks. If a given statement produces a result set with a size larger than
- * 25 MiB, that statement execution is aborted, and no result set will be available.
- *
- *
**NOTE** Byte limits are computed based upon internal representations of the result set data,
- * and might not match the sizes visible in JSON responses.
- *
- *
Statements executed with `EXTERNAL_LINKS` disposition will return result data as external
- * links: URLs that point to cloud storage internal to the workspace. Using `EXTERNAL_LINKS`
- * disposition allows statements to generate arbitrarily sized result sets for fetching up to 100
- * GiB. The resulting links have two important properties:
- *
- *
1. They point to resources _external_ to the Databricks compute; therefore any associated
- * authentication information (typically a personal access token, OAuth token, or similar) _must be
- * removed_ when fetching from these links.
- *
- *
2. These are presigned URLs with a specific expiration, indicated in the response. The
- * behavior when attempting to use an expired link is cloud specific.
- */
@Generated
public enum Disposition {
EXTERNAL_LINKS,
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java
index 1e5d98553..de8ea5aec 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExecuteStatementRequest.java
@@ -29,29 +29,7 @@ public class ExecuteStatementRequest {
@JsonProperty("catalog")
private String catalog;
- /**
- * The fetch disposition provides two modes of fetching results: `INLINE` and `EXTERNAL_LINKS`.
- *
- *
Statements executed with `INLINE` disposition will return result data inline, in
- * `JSON_ARRAY` format, in a series of chunks. If a given statement produces a result set with a
- * size larger than 25 MiB, that statement execution is aborted, and no result set will be
- * available.
- *
- *
**NOTE** Byte limits are computed based upon internal representations of the result set
- * data, and might not match the sizes visible in JSON responses.
- *
- *
Statements executed with `EXTERNAL_LINKS` disposition will return result data as external
- * links: URLs that point to cloud storage internal to the workspace. Using `EXTERNAL_LINKS`
- * disposition allows statements to generate arbitrarily sized result sets for fetching up to 100
- * GiB. The resulting links have two important properties:
- *
- *
1. They point to resources _external_ to the Databricks compute; therefore any associated
- * authentication information (typically a personal access token, OAuth token, or similar) _must
- * be removed_ when fetching from these links.
- *
- *
2. These are presigned URLs with a specific expiration, indicated in the response. The
- * behavior when attempting to use an expired link is cloud specific.
- */
+ /** */
@JsonProperty("disposition")
private Disposition disposition;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java
index b1c8df224..1b88216f2 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ExternalLink.java
@@ -28,11 +28,7 @@ public class ExternalLink {
@JsonProperty("expiration")
private String expiration;
- /**
- * A presigned URL pointing to a chunk of result data, hosted by an external service, with a short
- * expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be
- * considered sensitive and the client should not expose this URL in a log.
- */
+ /** */
@JsonProperty("external_link")
private String externalLink;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyAPI.java
index 373252760..e5340c40a 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyAPI.java
@@ -13,7 +13,9 @@
* Queries can be scheduled using the `sql_task` type of the Jobs API, e.g. :method:jobs/create.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
@Generated
public class QueriesLegacyAPI {
@@ -44,7 +46,9 @@ public QueriesLegacyAPI(QueriesLegacyService mock) {
*
**Note**: You cannot add a visualization until you create the query.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/create instead.
+ * :method:queries/create instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public LegacyQuery create(QueryPostContent request) {
return impl.create(request);
@@ -61,7 +65,9 @@ public void delete(String queryId) {
* views, and they cannot be used for alerts. The trash is deleted after 30 days.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/delete instead.
+ * :method:queries/delete instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public void delete(DeleteQueriesLegacyRequest request) {
impl.delete(request);
@@ -78,7 +84,9 @@ public LegacyQuery get(String queryId) {
* currently authenticated user.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/get instead.
+ * :method:queries/get instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public LegacyQuery get(GetQueriesLegacyRequest request) {
return impl.get(request);
@@ -93,7 +101,9 @@ public LegacyQuery get(GetQueriesLegacyRequest request) {
* service degradation, or a temporary ban.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/list instead.
+ * :method:queries/list instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public Iterable list(ListQueriesLegacyRequest request) {
request.setPage(1L);
@@ -122,7 +132,9 @@ public void restore(String queryId) {
* searches. You can use restored queries for alerts.
*
* **Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public void restore(RestoreQueriesLegacyRequest request) {
impl.restore(request);
@@ -140,7 +152,9 @@ public LegacyQuery update(String queryId) {
*
**Note**: You cannot undo this operation.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/update instead.
+ * :method:queries/update instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public LegacyQuery update(QueryEditContent request) {
return impl.update(request);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyService.java
index 80a7162c1..40c1761ba 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesLegacyService.java
@@ -9,7 +9,9 @@
* Queries can be scheduled using the `sql_task` type of the Jobs API, e.g. :method:jobs/create.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*
*
This is the high-level interface, that contains generated methods.
*
@@ -30,7 +32,9 @@ public interface QueriesLegacyService {
*
**Note**: You cannot add a visualization until you create the query.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/create instead.
+ * :method:queries/create instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
LegacyQuery create(QueryPostContent queryPostContent);
@@ -41,7 +45,9 @@ public interface QueriesLegacyService {
* views, and they cannot be used for alerts. The trash is deleted after 30 days.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/delete instead.
+ * :method:queries/delete instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
void delete(DeleteQueriesLegacyRequest deleteQueriesLegacyRequest);
@@ -52,7 +58,9 @@ public interface QueriesLegacyService {
* currently authenticated user.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/get instead.
+ * :method:queries/get instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
LegacyQuery get(GetQueriesLegacyRequest getQueriesLegacyRequest);
@@ -65,7 +73,9 @@ public interface QueriesLegacyService {
* service degradation, or a temporary ban.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/list instead.
+ * :method:queries/list instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
QueryList list(ListQueriesLegacyRequest listQueriesLegacyRequest);
@@ -76,7 +86,9 @@ public interface QueriesLegacyService {
* searches. You can use restored queries for alerts.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
void restore(RestoreQueriesLegacyRequest restoreQueriesLegacyRequest);
@@ -88,7 +100,9 @@ public interface QueriesLegacyService {
*
**Note**: You cannot undo this operation.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queries/update instead.
+ * :method:queries/update instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
LegacyQuery update(QueryEditContent queryEditContent);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyAPI.java
index 159537295..492d9bcc7 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyAPI.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyAPI.java
@@ -11,7 +11,9 @@
* queries within the Databricks Workspace. Data structures may change over time.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
@Generated
public class QueryVisualizationsLegacyAPI {
@@ -43,7 +45,9 @@ public LegacyVisualization create(String queryId, String typeValue, Object optio
*
Creates visualization in the query.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queryvisualizations/create instead.
+ * :method:queryvisualizations/create instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public LegacyVisualization create(CreateQueryVisualizationsLegacyRequest request) {
return impl.create(request);
@@ -59,7 +63,9 @@ public void delete(String id) {
*
Removes a visualization from the query.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queryvisualizations/delete instead.
+ * :method:queryvisualizations/delete instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public void delete(DeleteQueryVisualizationsLegacyRequest request) {
impl.delete(request);
@@ -75,7 +81,9 @@ public LegacyVisualization update(String id) {
*
Updates visualization in the query.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queryvisualizations/update instead.
+ * :method:queryvisualizations/update instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
public LegacyVisualization update(LegacyVisualization request) {
return impl.update(request);
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyService.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyService.java
index 5e2de9374..39ffa9cdd 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyService.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryVisualizationsLegacyService.java
@@ -8,7 +8,9 @@
* queries within the Databricks Workspace. Data structures may change over time.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please see the latest
- * version.
+ * version. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*
*
This is the high-level interface, that contains generated methods.
*
@@ -22,7 +24,9 @@ public interface QueryVisualizationsLegacyService {
*
Creates visualization in the query.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queryvisualizations/create instead.
+ * :method:queryvisualizations/create instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
LegacyVisualization create(
CreateQueryVisualizationsLegacyRequest createQueryVisualizationsLegacyRequest);
@@ -33,7 +37,9 @@ LegacyVisualization create(
*
Removes a visualization from the query.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queryvisualizations/delete instead.
+ * :method:queryvisualizations/delete instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
void delete(DeleteQueryVisualizationsLegacyRequest deleteQueryVisualizationsLegacyRequest);
@@ -43,7 +49,9 @@ LegacyVisualization create(
*
Updates visualization in the query.
*
*
**Note**: A new version of the Databricks SQL API is now available. Please use
- * :method:queryvisualizations/update instead.
+ * :method:queryvisualizations/update instead. [Learn more]
+ *
+ *
[Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html
*/
LegacyVisualization update(LegacyVisualization legacyVisualization);
}
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java
index acd1b707c..be696df15 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/ResultData.java
@@ -8,13 +8,6 @@
import java.util.Collection;
import java.util.Objects;
-/**
- * Contains the result data of a single chunk when using `INLINE` disposition. When using
- * `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide presigned
- * URLs to the result data in cloud storage. Exactly one of these alternatives is used. (While the
- * `external_links` array prepares the API to return multiple links in a single response. Currently
- * only a single link is returned.)
- */
@Generated
public class ResultData {
/**
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementResponse.java
index 7f108159c..d9fb5469e 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementResponse.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/StatementResponse.java
@@ -13,13 +13,7 @@ public class StatementResponse {
@JsonProperty("manifest")
private ResultManifest manifest;
- /**
- * Contains the result data of a single chunk when using `INLINE` disposition. When using
- * `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide presigned
- * URLs to the result data in cloud storage. Exactly one of these alternatives is used. (While the
- * `external_links` array prepares the API to return multiple links in a single response.
- * Currently only a single link is returned.)
- */
+ /** */
@JsonProperty("result")
private ResultData result;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/WarehousePermissionLevel.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/WarehousePermissionLevel.java
index 9239b681d..18197e129 100755
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/WarehousePermissionLevel.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/WarehousePermissionLevel.java
@@ -8,6 +8,7 @@
@Generated
public enum WarehousePermissionLevel {
CAN_MANAGE,
+ CAN_MONITOR,
CAN_USE,
IS_OWNER,
}
diff --git a/examples/docs/pom.xml b/examples/docs/pom.xml
index f7c3495ca..f089f1f2d 100644
--- a/examples/docs/pom.xml
+++ b/examples/docs/pom.xml
@@ -24,7 +24,7 @@
com.databricks
databricks-sdk-java
- 0.27.1
+ 0.28.0
diff --git a/examples/spring-boot-oauth-u2m-demo/pom.xml b/examples/spring-boot-oauth-u2m-demo/pom.xml
index 586889c98..96cefaa42 100644
--- a/examples/spring-boot-oauth-u2m-demo/pom.xml
+++ b/examples/spring-boot-oauth-u2m-demo/pom.xml
@@ -37,7 +37,7 @@
com.databricks
databricks-sdk-java
- 0.27.1
+ 0.28.0
com.fasterxml.jackson.datatype
diff --git a/pom.xml b/pom.xml
index adcad5767..7ac47d456 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
com.databricks
databricks-sdk-parent
- 0.27.1
+ 0.28.0
pom
Databricks SDK for Java
The Databricks SDK for Java includes functionality to accelerate development with Java for
diff --git a/shaded/pom.xml b/shaded/pom.xml
index 7c14c8de4..09cf57af9 100644
--- a/shaded/pom.xml
+++ b/shaded/pom.xml
@@ -4,7 +4,7 @@
4.0.0
- 0.27.1
+ 0.28.0
com.databricks