diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 736224f73..22508b319 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -732dd0f076d8549a12a398ccbc0fcc8ed4816342 \ No newline at end of file +acb84dd139848f31215fafe966bd15615119286a \ No newline at end of file diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 4e4088566..7da0dcc36 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -15,3 +15,6 @@ ### Internal Changes ### API Changes +* Add `effectiveWorkspaceId` field for `com.databricks.sdk.service.disasterrecovery.StableUrl`. +* Add `sourceMetadataColumn` field for `com.databricks.sdk.service.pipelines.TableSpecificConfig`. +* [Breaking] Remove `codeSourcePath` field for `com.databricks.sdk.service.jobs.AiRuntimeTask`. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/disasterrecovery/StableUrl.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/disasterrecovery/StableUrl.java index 0c38f8b40..9e31355fe 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/disasterrecovery/StableUrl.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/disasterrecovery/StableUrl.java @@ -13,6 +13,16 @@ */ @Generated public class StableUrl { + /** + * The workspace this stable URL currently routes to. Set to `initial_workspace_id` at creation, + * advanced to the failover group's primary while attached (including across a failover), and + * preserved when the stable URL is detached from its failover group. Read this to see where an + * unattached stable URL points: after a failover followed by a detach it reflects the + * post-failover primary, not `initial_workspace_id`. + */ + @JsonProperty("effective_workspace_id") + private String effectiveWorkspaceId; + /** * Fully qualified resource name of the FailoverGroup this stable URL is currently linked to, in * the format `accounts/{account_id}/failover-groups/{failover_group_id}`. Empty when the stable @@ -48,6 +58,15 @@ public class StableUrl { @JsonProperty("url") private String url; + public StableUrl setEffectiveWorkspaceId(String effectiveWorkspaceId) { + this.effectiveWorkspaceId = effectiveWorkspaceId; + return this; + } + + public String getEffectiveWorkspaceId() { + return effectiveWorkspaceId; + } + public StableUrl setFailoverGroupName(String failoverGroupName) { this.failoverGroupName = failoverGroupName; return this; @@ -98,7 +117,8 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; StableUrl that = (StableUrl) o; - return Objects.equals(failoverGroupName, that.failoverGroupName) + return Objects.equals(effectiveWorkspaceId, that.effectiveWorkspaceId) + && Objects.equals(failoverGroupName, that.failoverGroupName) && Objects.equals(initialWorkspaceId, that.initialWorkspaceId) && Objects.equals(name, that.name) && Objects.equals(stableWorkspaceId, that.stableWorkspaceId) @@ -107,12 +127,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(failoverGroupName, initialWorkspaceId, name, stableWorkspaceId, url); + return Objects.hash( + effectiveWorkspaceId, failoverGroupName, initialWorkspaceId, name, stableWorkspaceId, url); } @Override public String toString() { return new ToStringer(StableUrl.class) + .add("effectiveWorkspaceId", effectiveWorkspaceId) .add("failoverGroupName", failoverGroupName) .add("initialWorkspaceId", initialWorkspaceId) .add("name", name) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java index b7b916498..cd415dfce 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/AiRuntimeTask.java @@ -18,17 +18,6 @@ */ @Generated public class AiRuntimeTask { - /** - * Optional workspace or UC volume path of the uploaded code-source archive. The CLI packages the - * user's local code directory into an archive and populates this. Customers calling the Jobs API - * directly should upload their archive to the workspace or a UC volume first and supply the - * resulting path here. - * - *
When set, the training node exposes the value via the `$CODE_SOURCE` environment variable.
- */
- @JsonProperty("code_source_path")
- private String codeSourcePath;
-
/**
* Deployment specs for this task. Exactly one deployment is currently supported (a single entry
* where every node runs the same command); this is a current-Preview constraint. Role-split
@@ -62,15 +51,6 @@ public class AiRuntimeTask {
@JsonProperty("mlflow_run")
private String mlflowRun;
- public AiRuntimeTask setCodeSourcePath(String codeSourcePath) {
- this.codeSourcePath = codeSourcePath;
- return this;
- }
-
- public String getCodeSourcePath() {
- return codeSourcePath;
- }
-
public AiRuntimeTask setDeployments(Collection Example script contents:
+ *
+ * # Plain Python: python train.py --epochs 10
+ *
+ * # Multi-GPU via accelerate: accelerate launch train.py --config config.yaml
+ *
+ * # Distributed via torchrun: torchrun --nproc_per_node=8 train.py
*/
@JsonProperty("command_path")
private String commandPath;
diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/TableSpecificConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/TableSpecificConfig.java
index bf00a813a..ed319a36c 100644
--- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/TableSpecificConfig.java
+++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/TableSpecificConfig.java
@@ -93,6 +93,13 @@ public class TableSpecificConfig {
@JsonProperty("sequence_by")
private Collection