From 7ee7bd5b91c0ba8841311e9614c4f4852bbac506 Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-1[bot]" <184311507+databricks-ci-ghec-1[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2026 04:22:54 +0000 Subject: [PATCH] Update SDK to 990607d483c294005a72e86210ac0ee61bce2f02 --- .codegen/_openapi_sha | 2 +- .gitattributes | 2 + NEXT_CHANGELOG.md | 4 ++ .../com/databricks/sdk/service/apps/App.java | 55 +++++++++++++++ .../sdk/service/apps/GitRepository.java | 46 ++++++++++++- .../databricks/sdk/service/ml/CustomUdf.java | 67 +++++++++++++++++++ .../databricks/sdk/service/ml/Function.java | 18 ++++- .../sdk/service/ml/InputBinding.java | 59 ++++++++++++++++ .../pipelines/GetPipelineResponse.java | 16 +++++ 9 files changed, 264 insertions(+), 5 deletions(-) create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CustomUdf.java create mode 100644 databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/InputBinding.java diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 1f8d63cb3..2c6475b20 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -bfbf36f3d00ae4fc2ec5ad1a854ddac294d41733 \ No newline at end of file +990607d483c294005a72e86210ac0ee61bce2f02 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 185259c36..4348e6f74 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2196,6 +2196,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CreateTransition databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CreateTransitionRequestResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CreateWebhookResponse.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CronSchedule.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CustomUdf.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/DataSource.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Dataset.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/DatasetInput.java linguist-generated=true @@ -2303,6 +2304,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/HttpUrlSpec.java databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/HttpUrlSpecWithoutSecret.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/IngestionConfig.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/IngestionDestination.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/InputBinding.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/InputTag.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/JobContext.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/JobSpec.java linguist-generated=true diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 282e45c07..1ebda12c2 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -15,3 +15,7 @@ ### Internal Changes ### API Changes +* Add `defaultGitSource`, `gitSource` and `sourceCodePath` fields for `com.databricks.sdk.service.apps.App`. +* Add `autoDeploy` and `callerCredentialId` fields for `com.databricks.sdk.service.apps.GitRepository`. +* Add `customUdf` field for `com.databricks.sdk.service.ml.Function`. +* Add `effectiveServerlessComputeId` field for `com.databricks.sdk.service.pipelines.GetPipelineResponse`. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java index b06da0424..5dde28892 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java @@ -49,6 +49,14 @@ public class App { @JsonProperty("creator") private String creator; + /** + * The Git source of the app's most recent active deployment, including the repository + * configuration and the resolved reference. Populated by the system after a Git-based deployment + * and used as the default reference when automatic deployments are enabled. + */ + @JsonProperty("default_git_source") + private GitSource defaultGitSource; + /** * The default workspace file system path of the source code from which app deployment are * created. This field tracks the workspace source code path of the last active deployment. @@ -86,6 +94,13 @@ public class App { @JsonProperty("git_repository") private GitRepository gitRepository; + /** + * The Git source to deploy from, specifying the reference to check out (branch, tag, or commit) + * and an optional path to the app source code within the repository configured in git_repository. + */ + @JsonProperty("git_source") + private GitSource gitSource; + /** The unique identifier of the app. */ @JsonProperty("id") private String id; @@ -128,6 +143,10 @@ public class App { @JsonProperty("service_principal_name") private String servicePrincipalName; + /** */ + @JsonProperty("source_code_path") + private String sourceCodePath; + /** Name of the space this app belongs to. */ @JsonProperty("space") private String space; @@ -241,6 +260,15 @@ public String getCreator() { return creator; } + public App setDefaultGitSource(GitSource defaultGitSource) { + this.defaultGitSource = defaultGitSource; + return this; + } + + public GitSource getDefaultGitSource() { + return defaultGitSource; + } + public App setDefaultSourceCodePath(String defaultSourceCodePath) { this.defaultSourceCodePath = defaultSourceCodePath; return this; @@ -304,6 +332,15 @@ public GitRepository getGitRepository() { return gitRepository; } + public App setGitSource(GitSource gitSource) { + this.gitSource = gitSource; + return this; + } + + public GitSource getGitSource() { + return gitSource; + } + public App setId(String id) { this.id = id; return this; @@ -385,6 +422,15 @@ public String getServicePrincipalName() { return servicePrincipalName; } + public App setSourceCodePath(String sourceCodePath) { + this.sourceCodePath = sourceCodePath; + return this; + } + + public String getSourceCodePath() { + return sourceCodePath; + } + public App setSpace(String space) { this.space = space; return this; @@ -472,6 +518,7 @@ public boolean equals(Object o) { && Objects.equals(computeStatus, that.computeStatus) && Objects.equals(createTime, that.createTime) && Objects.equals(creator, that.creator) + && Objects.equals(defaultGitSource, that.defaultGitSource) && Objects.equals(defaultSourceCodePath, that.defaultSourceCodePath) && Objects.equals(description, that.description) && Objects.equals(effectiveBudgetPolicyId, that.effectiveBudgetPolicyId) @@ -479,6 +526,7 @@ public boolean equals(Object o) { && Objects.equals(effectiveUserApiScopes, that.effectiveUserApiScopes) && Objects.equals(forwardUserAccessToken, that.forwardUserAccessToken) && Objects.equals(gitRepository, that.gitRepository) + && Objects.equals(gitSource, that.gitSource) && Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(oauth2AppClientId, that.oauth2AppClientId) @@ -488,6 +536,7 @@ public boolean equals(Object o) { && Objects.equals(servicePrincipalClientId, that.servicePrincipalClientId) && Objects.equals(servicePrincipalId, that.servicePrincipalId) && Objects.equals(servicePrincipalName, that.servicePrincipalName) + && Objects.equals(sourceCodePath, that.sourceCodePath) && Objects.equals(space, that.space) && Objects.equals(telemetryExportDestinations, that.telemetryExportDestinations) && Objects.equals(thumbnailUrl, that.thumbnailUrl) @@ -510,6 +559,7 @@ public int hashCode() { computeStatus, createTime, creator, + defaultGitSource, defaultSourceCodePath, description, effectiveBudgetPolicyId, @@ -517,6 +567,7 @@ public int hashCode() { effectiveUserApiScopes, forwardUserAccessToken, gitRepository, + gitSource, id, name, oauth2AppClientId, @@ -526,6 +577,7 @@ public int hashCode() { servicePrincipalClientId, servicePrincipalId, servicePrincipalName, + sourceCodePath, space, telemetryExportDestinations, thumbnailUrl, @@ -548,6 +600,7 @@ public String toString() { .add("computeStatus", computeStatus) .add("createTime", createTime) .add("creator", creator) + .add("defaultGitSource", defaultGitSource) .add("defaultSourceCodePath", defaultSourceCodePath) .add("description", description) .add("effectiveBudgetPolicyId", effectiveBudgetPolicyId) @@ -555,6 +608,7 @@ public String toString() { .add("effectiveUserApiScopes", effectiveUserApiScopes) .add("forwardUserAccessToken", forwardUserAccessToken) .add("gitRepository", gitRepository) + .add("gitSource", gitSource) .add("id", id) .add("name", name) .add("oauth2AppClientId", oauth2AppClientId) @@ -564,6 +618,7 @@ public String toString() { .add("servicePrincipalClientId", servicePrincipalClientId) .add("servicePrincipalId", servicePrincipalId) .add("servicePrincipalName", servicePrincipalName) + .add("sourceCodePath", sourceCodePath) .add("space", space) .add("telemetryExportDestinations", telemetryExportDestinations) .add("thumbnailUrl", thumbnailUrl) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GitRepository.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GitRepository.java index bd523a790..b7eb27a09 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GitRepository.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/GitRepository.java @@ -10,6 +10,20 @@ /** Git repository configuration specifying the location of the repository. */ @Generated public class GitRepository { + /** + * When true, automatically deploys the app on push events to the branch configured in the app's + * deployment_source.git_source. + */ + @JsonProperty("auto_deploy") + private Boolean autoDeploy; + + /** + * ID of a personal access token Git credential owned by the caller, used to grant the app's + * service principal access to this repository. + */ + @JsonProperty("caller_credential_id") + private Long callerCredentialId; + /** * Git provider. Case insensitive. Supported values: gitHub, gitHubEnterprise, bitbucketCloud, * bitbucketServer, azureDevOpsServices, gitLab, gitLabEnterpriseEdition, awsCodeCommit. @@ -21,6 +35,24 @@ public class GitRepository { @JsonProperty("url") private String url; + public GitRepository setAutoDeploy(Boolean autoDeploy) { + this.autoDeploy = autoDeploy; + return this; + } + + public Boolean getAutoDeploy() { + return autoDeploy; + } + + public GitRepository setCallerCredentialId(Long callerCredentialId) { + this.callerCredentialId = callerCredentialId; + return this; + } + + public Long getCallerCredentialId() { + return callerCredentialId; + } + public GitRepository setProvider(String provider) { this.provider = provider; return this; @@ -44,16 +76,24 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GitRepository that = (GitRepository) o; - return Objects.equals(provider, that.provider) && Objects.equals(url, that.url); + return Objects.equals(autoDeploy, that.autoDeploy) + && Objects.equals(callerCredentialId, that.callerCredentialId) + && Objects.equals(provider, that.provider) + && Objects.equals(url, that.url); } @Override public int hashCode() { - return Objects.hash(provider, url); + return Objects.hash(autoDeploy, callerCredentialId, provider, url); } @Override public String toString() { - return new ToStringer(GitRepository.class).add("provider", provider).add("url", url).toString(); + return new ToStringer(GitRepository.class) + .add("autoDeploy", autoDeploy) + .add("callerCredentialId", callerCredentialId) + .add("provider", provider) + .add("url", url) + .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CustomUdf.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CustomUdf.java new file mode 100644 index 000000000..986495ba3 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/CustomUdf.java @@ -0,0 +1,67 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.ml; + +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; + +/** + * A CustomUdf function applies a registered Unity Catalog function row-wise to source columns, + * producing a single output column per row. + */ +@Generated +public class CustomUdf { + /** Fully qualified 3-part Unity Catalog path of the function to apply. */ + @JsonProperty("function_path") + private String functionPath; + + /** + * Binds each UC function parameter to a source column. May be empty for zero-argument functions + * (e.g. a timestamp generator). + */ + @JsonProperty("input_bindings") + private Collection inputBindings; + + public CustomUdf setFunctionPath(String functionPath) { + this.functionPath = functionPath; + return this; + } + + public String getFunctionPath() { + return functionPath; + } + + public CustomUdf setInputBindings(Collection inputBindings) { + this.inputBindings = inputBindings; + return this; + } + + public Collection getInputBindings() { + return inputBindings; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CustomUdf that = (CustomUdf) o; + return Objects.equals(functionPath, that.functionPath) + && Objects.equals(inputBindings, that.inputBindings); + } + + @Override + public int hashCode() { + return Objects.hash(functionPath, inputBindings); + } + + @Override + public String toString() { + return new ToStringer(CustomUdf.class) + .add("functionPath", functionPath) + .add("inputBindings", inputBindings) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Function.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Function.java index c896f7bea..2ae3bd490 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Function.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Function.java @@ -18,6 +18,10 @@ public class Function { @JsonProperty("column_selection") private ColumnSelection columnSelection; + /** Applies a registered Unity Catalog function row-wise to source columns. */ + @JsonProperty("custom_udf") + private CustomUdf customUdf; + /** * Deprecated: Use the function oneof with AggregationFunction instead. Kept for backwards * compatibility. Extra parameters for parameterized functions. @@ -50,6 +54,15 @@ public ColumnSelection getColumnSelection() { return columnSelection; } + public Function setCustomUdf(CustomUdf customUdf) { + this.customUdf = customUdf; + return this; + } + + public CustomUdf getCustomUdf() { + return customUdf; + } + public Function setExtraParameters(Collection extraParameters) { this.extraParameters = extraParameters; return this; @@ -75,13 +88,15 @@ public boolean equals(Object o) { Function that = (Function) o; return Objects.equals(aggregationFunction, that.aggregationFunction) && Objects.equals(columnSelection, that.columnSelection) + && Objects.equals(customUdf, that.customUdf) && Objects.equals(extraParameters, that.extraParameters) && Objects.equals(functionType, that.functionType); } @Override public int hashCode() { - return Objects.hash(aggregationFunction, columnSelection, extraParameters, functionType); + return Objects.hash( + aggregationFunction, columnSelection, customUdf, extraParameters, functionType); } @Override @@ -89,6 +104,7 @@ public String toString() { return new ToStringer(Function.class) .add("aggregationFunction", aggregationFunction) .add("columnSelection", columnSelection) + .add("customUdf", customUdf) .add("extraParameters", extraParameters) .add("functionType", functionType) .toString(); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/InputBinding.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/InputBinding.java new file mode 100644 index 000000000..dc1d19101 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/InputBinding.java @@ -0,0 +1,59 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.ml; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** Binds a single UC function parameter to a source column. */ +@Generated +public class InputBinding { + /** Source column whose value is passed for this parameter at execution time. */ + @JsonProperty("column") + private String column; + + /** Name of the UC function parameter. */ + @JsonProperty("parameter") + private String parameter; + + public InputBinding setColumn(String column) { + this.column = column; + return this; + } + + public String getColumn() { + return column; + } + + public InputBinding setParameter(String parameter) { + this.parameter = parameter; + return this; + } + + public String getParameter() { + return parameter; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + InputBinding that = (InputBinding) o; + return Objects.equals(column, that.column) && Objects.equals(parameter, that.parameter); + } + + @Override + public int hashCode() { + return Objects.hash(column, parameter); + } + + @Override + public String toString() { + return new ToStringer(InputBinding.class) + .add("column", column) + .add("parameter", parameter) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/GetPipelineResponse.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/GetPipelineResponse.java index 407fa4073..048f2820c 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/GetPipelineResponse.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/GetPipelineResponse.java @@ -31,6 +31,10 @@ public class GetPipelineResponse { @JsonProperty("effective_publishing_mode") private PublishingMode effectivePublishingMode; + /** Serverless compute ID resolved for the pipeline. */ + @JsonProperty("effective_serverless_compute_id") + private String effectiveServerlessComputeId; + /** The health of a pipeline. */ @JsonProperty("health") private GetPipelineResponseHealth health; @@ -123,6 +127,15 @@ public PublishingMode getEffectivePublishingMode() { return effectivePublishingMode; } + public GetPipelineResponse setEffectiveServerlessComputeId(String effectiveServerlessComputeId) { + this.effectiveServerlessComputeId = effectiveServerlessComputeId; + return this; + } + + public String getEffectiveServerlessComputeId() { + return effectiveServerlessComputeId; + } + public GetPipelineResponse setHealth(GetPipelineResponseHealth health) { this.health = health; return this; @@ -223,6 +236,7 @@ public boolean equals(Object o) { && Objects.equals(creatorUserName, that.creatorUserName) && Objects.equals(effectiveBudgetPolicyId, that.effectiveBudgetPolicyId) && Objects.equals(effectivePublishingMode, that.effectivePublishingMode) + && Objects.equals(effectiveServerlessComputeId, that.effectiveServerlessComputeId) && Objects.equals(health, that.health) && Objects.equals(lastModified, that.lastModified) && Objects.equals(latestUpdates, that.latestUpdates) @@ -243,6 +257,7 @@ public int hashCode() { creatorUserName, effectiveBudgetPolicyId, effectivePublishingMode, + effectiveServerlessComputeId, health, lastModified, latestUpdates, @@ -263,6 +278,7 @@ public String toString() { .add("creatorUserName", creatorUserName) .add("effectiveBudgetPolicyId", effectiveBudgetPolicyId) .add("effectivePublishingMode", effectivePublishingMode) + .add("effectiveServerlessComputeId", effectiveServerlessComputeId) .add("health", health) .add("lastModified", lastModified) .add("latestUpdates", latestUpdates)