Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
59c4c0f3d5f0ef00cd5350b5674e941a7606d91a
f9fcbdbee161da31571f306e6f9f11d88606cc9d
6,299 changes: 3,156 additions & 3,143 deletions .gitattributes

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,21 @@
### Internal Changes

### API Changes
* Add `batchCreateMaterializedFeatures()` method for `workspaceClient.featureEngineering()` service.
* Add `retrieveUserVisibleMetrics()` method for `workspaceClient.vectorSearchEndpoints()` service.
* Add `purpose` field for `com.databricks.sdk.service.dashboards.TextAttachment`.
* Add `lineageContext` field for `com.databricks.sdk.service.ml.Feature`.
* Add `connectionParameters` field for `com.databricks.sdk.service.pipelines.IngestionGatewayPipelineDefinition`.
* Add `ingestFromUcForeignCatalog` field for `com.databricks.sdk.service.pipelines.IngestionPipelineDefinition`.
* Add `typeText` field for `com.databricks.sdk.service.vectorsearch.ColumnInfo`.
* Add `AUTOSCALE_V2` enum value for `com.databricks.sdk.service.compute.EventDetailsCause`.
* Add `UNSUPPORTED_CONVERSATION_TYPE_EXCEPTION` enum value for `com.databricks.sdk.service.dashboards.MessageErrorType`.
* Add `FOREIGN_CATALOG` enum value for `com.databricks.sdk.service.pipelines.IngestionSourceType`.
* Add `CREATING` and `CREATE_FAILED` enum values for `com.databricks.sdk.service.settings.CustomerFacingNetworkConnectivityConfigAwsPrivateEndpointRulePrivateLinkConnectionState`.
* Add `CREATING` and `CREATE_FAILED` enum values for `com.databricks.sdk.service.settings.NccAzurePrivateEndpointRuleConnectionState`.
* Add `RED_STATE` and `YELLOW_STATE` enum values for `com.databricks.sdk.service.vectorsearch.EndpointStatusState`.
* Change `destinations` field for `com.databricks.sdk.service.catalog.AccessRequestDestinations` to no longer be required.
* [Breaking] Change `destinations` field for `com.databricks.sdk.service.catalog.AccessRequestDestinations` to no longer be required.
* [Breaking] Change `tableNames` field for `com.databricks.sdk.service.jobs.TableUpdateTriggerConfiguration` to be required.
* Change `tableNames` field for `com.databricks.sdk.service.jobs.TableUpdateTriggerConfiguration` to be required.
* [Breaking] Change `onlineStoreConfig` field for `com.databricks.sdk.service.ml.MaterializedFeature` to type `com.databricks.sdk.service.ml.OnlineStoreConfig` class.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
@Generated
public enum ComputeSize {
LARGE,
LIQUID,
MEDIUM,
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public CatalogInfo get(GetCatalogRequest request) {
* reached.
*/
public Iterable<CatalogInfo> list(ListCatalogsRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import com.databricks.sdk.support.Generated;

/** Next Id: 47 */
/** Next Id: 48 */
@Generated
public enum ConnectionType {
BIGQUERY,
Expand All @@ -15,7 +15,6 @@ public enum ConnectionType {
HTTP,
MYSQL,
ORACLE,
PALANTIR,
POSTGRESQL,
POWER_BI,
REDSHIFT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ public ConnectionInfo get(GetConnectionRequest request) {
* reached.
*/
public Iterable<ConnectionInfo> list(ListConnectionsRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public ExternalLocationInfo get(GetExternalLocationRequest request) {
* reached.
*/
public Iterable<ExternalLocationInfo> list(ListExternalLocationsRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ public Iterable<FunctionInfo> list(String catalogName, String schemaName) {
* reached.
*/
public Iterable<FunctionInfo> list(ListFunctionsRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public MetastoreInfo get(GetMetastoreRequest request) {
* reached.
*/
public Iterable<MetastoreInfo> list(ListMetastoresRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@
import org.slf4j.LoggerFactory;

/**
* Request for Access enables customers to request access to and manage access request destinations
* for Unity Catalog securables.
* Request for Access enables users to request access for Unity Catalog securables.
*
* <p>These APIs provide a standardized way to update, get, and request to access request
* destinations. Fine-grained authorization ensures that only users with appropriate permissions can
* manage access request destinations.
* <p>These APIs provide a standardized way for securable owners (or users with MANAGE privileges)
* to manage access request destinations.
*/
@Generated
public class RfaAPI {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
import com.databricks.sdk.support.Generated;

/**
* Request for Access enables customers to request access to and manage access request destinations
* for Unity Catalog securables.
* Request for Access enables users to request access for Unity Catalog securables.
*
* <p>These APIs provide a standardized way to update, get, and request to access request
* destinations. Fine-grained authorization ensures that only users with appropriate permissions can
* manage access request destinations.
* <p>These APIs provide a standardized way for securable owners (or users with MANAGE privileges)
* to manage access request destinations.
*
* <p>This is the high-level interface, that contains generated methods.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public Iterable<SchemaInfo> list(String catalogName) {
* reached.
*/
public Iterable<SchemaInfo> list(ListSchemasRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import com.databricks.sdk.support.Generated;

/** Latest kind: CONNECTION_AWS_SECRETS_MANAGER = 270; Next id:271 */
/** Latest kind: CONNECTION_SLACK_OAUTH_U2M_MAPPING = 272; Next id:273 */
@Generated
public enum SecurableKind {
TABLE_DB_STORAGE,
Expand Down Expand Up @@ -41,7 +41,6 @@ public enum SecurableKind {
TABLE_FOREIGN_MYSQL,
TABLE_FOREIGN_NETSUITE,
TABLE_FOREIGN_ORACLE,
TABLE_FOREIGN_PALANTIR,
TABLE_FOREIGN_POSTGRESQL,
TABLE_FOREIGN_REDSHIFT,
TABLE_FOREIGN_SALESFORCE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public StorageCredentialInfo get(GetStorageCredentialRequest request) {
* reached.
*/
public Iterable<StorageCredentialInfo> list(ListStorageCredentialsRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public Iterable<SystemSchemaInfo> list(String metastoreId) {
* reached.
*/
public Iterable<SystemSchemaInfo> list(ListSystemSchemasRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public Iterable<TableInfo> list(String catalogName, String schemaName) {
* reached.
*/
public Iterable<TableInfo> list(ListTablesRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public Iterable<WorkspaceBinding> getBindings(String securableType, String secur
* reached.
*/
public Iterable<WorkspaceBinding> getBindings(GetBindingsRequest request) {

if (request.getMaxResults() == null) {
request.setMaxResults(0L);
}
return new Paginator<>(
request,
impl::getBindings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ public class AwsAttributes {
* be of a form like "us-west-2a". The provided availability zone must be in the same region as
* the Databricks deployment. For example, "us-west-2a" is not a valid zone id if the Databricks
* deployment resides in the "us-east-1" region. This is an optional field at cluster creation,
* and if not specified, a default zone will be used. If the zone specified is "auto", will try to
* place cluster in a zone with high availability, and will retry placement in a different AZ if
* there is not enough capacity.
* and if not specified, the zone "auto" will be used. If the zone specified is "auto", will try
* to place cluster in a zone with high availability, and will retry placement in a different AZ
* if there is not enough capacity.
*
* <p>The list of available zones as well as the default value can be found by using the `List
* Zones` method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
public enum EventDetailsCause {
AUTORECOVERY,
AUTOSCALE,
AUTOSCALE_V2,
REPLACE_BAD_NODES,
USER_REQUEST,
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public enum TerminationReasonCode {
DOCKER_IMAGE_PULL_FAILURE,
DOCKER_IMAGE_TOO_LARGE_FOR_INSTANCE_EXCEPTION,
DOCKER_INVALID_OS_EXCEPTION,
DRIVER_DNS_RESOLUTION_FAILURE,
DRIVER_EVICTION,
DRIVER_LAUNCH_TIMEOUT,
DRIVER_NODE_UNREACHABLE,
Expand Down Expand Up @@ -146,8 +145,6 @@ public enum TerminationReasonCode {
NETWORK_CHECK_STORAGE_FAILURE_DUE_TO_MISCONFIG,
NETWORK_CONFIGURATION_FAILURE,
NFS_MOUNT_FAILURE,
NO_ACTIVATED_K8S,
NO_ACTIVATED_K8S_TESTING_TAG,
NO_MATCHED_K8S,
NO_MATCHED_K8S_TESTING_TAG,
NPIP_TUNNEL_SETUP_FAILURE,
Expand All @@ -160,7 +157,6 @@ public enum TerminationReasonCode {
SECRET_CREATION_FAILURE,
SECRET_PERMISSION_DENIED,
SECRET_RESOLUTION_ERROR,
SECURITY_AGENTS_FAILED_INITIAL_VERIFICATION,
SECURITY_DAEMON_REGISTRATION_EXCEPTION,
SELF_BOOTSTRAP_FAILURE,
SERVERLESS_LONG_RUNNING_TERMINATED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public enum MessageErrorType {
INTERNAL_CATALOG_PATH_OVERLAP_EXCEPTION,
INVALID_CERTIFIED_ANSWER_FUNCTION_EXCEPTION,
INVALID_CERTIFIED_ANSWER_IDENTIFIER_EXCEPTION,
INVALID_CHAT_COMPLETION_ARGUMENTS_JSON_EXCEPTION,
INVALID_CHAT_COMPLETION_JSON_EXCEPTION,
INVALID_COMPLETION_REQUEST_EXCEPTION,
INVALID_FUNCTION_CALL_EXCEPTION,
Expand Down Expand Up @@ -64,6 +63,7 @@ public enum MessageErrorType {
TOO_MANY_TABLES_EXCEPTION,
UNEXPECTED_REPLY_PROCESS_EXCEPTION,
UNKNOWN_AI_MODEL,
UNSUPPORTED_CONVERSATION_TYPE_EXCEPTION,
WAREHOUSE_ACCESS_MISSING_EXCEPTION,
WAREHOUSE_NOT_FOUND_EXCEPTION,
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public class TextAttachment {
@JsonProperty("id")
private String id;

/** Purpose/intent of this text attachment */
@JsonProperty("purpose")
private TextAttachmentPurpose purpose;

public TextAttachment setContent(String content) {
this.content = content;
return this;
Expand All @@ -35,21 +39,36 @@ public String getId() {
return id;
}

public TextAttachment setPurpose(TextAttachmentPurpose purpose) {
this.purpose = purpose;
return this;
}

public TextAttachmentPurpose getPurpose() {
return purpose;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TextAttachment that = (TextAttachment) o;
return Objects.equals(content, that.content) && Objects.equals(id, that.id);
return Objects.equals(content, that.content)
&& Objects.equals(id, that.id)
&& Objects.equals(purpose, that.purpose);
}

@Override
public int hashCode() {
return Objects.hash(content, id);
return Objects.hash(content, id, purpose);
}

@Override
public String toString() {
return new ToStringer(TextAttachment.class).add("content", content).add("id", id).toString();
return new ToStringer(TextAttachment.class)
.add("content", content)
.add("id", id)
.add("purpose", purpose)
.toString();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.dashboards;

import com.databricks.sdk.support.Generated;

/** Purpose/intent of a text attachment */
@Generated
public enum TextAttachmentPurpose {
FOLLOW_UP_QUESTION,
}
Loading
Loading