Skip to content

Commit 149130a

Browse files
Update SDK API to 6ee837f7c048388030c57718875c126999649e23 (#620)
This PR updates the SDK to the latest API changes. NO_CHANGELOG=true Co-authored-by: databricks-ci-ghec-1[bot] <184311507+databricks-ci-ghec-1[bot]@users.noreply.github.com>
1 parent 78587e8 commit 149130a

14 files changed

+53
-25
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
814778bb58d7b4027343bf0a9bf0d317680b1c0e
1+
6ee837f7c048388030c57718875c126999649e23

NEXT_CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@
4545
* [Breaking] Remove `default` field for `com.databricks.sdk.service.postgres.BranchSpec`.
4646
* [Breaking] Remove `settings` field for `com.databricks.sdk.service.postgres.ProjectSpec`.
4747
* [Breaking] Remove `settings` field for `com.databricks.sdk.service.postgres.ProjectStatus`.
48-
* Add `noExpiry` field for `com.databricks.sdk.service.postgres.BranchSpec`.
48+
* Add `noExpiry` field for `com.databricks.sdk.service.postgres.BranchSpec`.
49+
* Add `stderr` field for `com.databricks.sdk.service.compute.InitScriptInfoAndExecutionDetails`.

databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import com.databricks.sdk.support.Generated;
66

7-
/** Next Id: 53 */
7+
/** Next Id: 54 */
88
@Generated
99
public enum ConnectionType {
1010
BIGQUERY,

databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/InitScriptInfoAndExecutionDetails.java

100755100644
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ public class InitScriptInfoAndExecutionDetails {
6161
@JsonProperty("status")
6262
private InitScriptExecutionDetailsInitScriptExecutionStatus status;
6363

64+
/**
65+
* The stderr output from the init script execution. Only populated when init scripts debug is
66+
* enabled and script execution fails.
67+
*/
68+
@JsonProperty("stderr")
69+
private String stderr;
70+
6471
/**
6572
* destination needs to be provided. e.g. `{ \"volumes\" : { \"destination\" :
6673
* \"/Volumes/my-init.sh\" } }`
@@ -149,6 +156,15 @@ public InitScriptExecutionDetailsInitScriptExecutionStatus getStatus() {
149156
return status;
150157
}
151158

159+
public InitScriptInfoAndExecutionDetails setStderr(String stderr) {
160+
this.stderr = stderr;
161+
return this;
162+
}
163+
164+
public String getStderr() {
165+
return stderr;
166+
}
167+
152168
public InitScriptInfoAndExecutionDetails setVolumes(VolumesStorageInfo volumes) {
153169
this.volumes = volumes;
154170
return this;
@@ -180,6 +196,7 @@ public boolean equals(Object o) {
180196
&& Objects.equals(gcs, that.gcs)
181197
&& Objects.equals(s3, that.s3)
182198
&& Objects.equals(status, that.status)
199+
&& Objects.equals(stderr, that.stderr)
183200
&& Objects.equals(volumes, that.volumes)
184201
&& Objects.equals(workspace, that.workspace);
185202
}
@@ -195,6 +212,7 @@ public int hashCode() {
195212
gcs,
196213
s3,
197214
status,
215+
stderr,
198216
volumes,
199217
workspace);
200218
}
@@ -210,6 +228,7 @@ public String toString() {
210228
.add("gcs", gcs)
211229
.add("s3", s3)
212230
.add("status", status)
231+
.add("stderr", stderr)
213232
.add("volumes", volumes)
214233
.add("workspace", workspace)
215234
.toString();

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CreateBranchRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public class CreateBranchRequest {
1717

1818
/**
1919
* The ID to use for the Branch. This becomes the final component of the branch's resource name.
20-
* This value should be 4-63 characters. Valid characters are lowercase letters, numbers, and
21-
* hyphens, as defined by RFC 1123. Examples: - With custom ID: `staging` → name becomes
20+
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase
21+
* letters, numbers, and hyphens (RFC 1123). Examples: - With custom ID: `staging` → name becomes
2222
* `projects/{project_id}/branches/staging` - Without custom ID: system generates slug → name
2323
* becomes `projects/{project_id}/branches/br-example-name-x1y2z3a4`
2424
*/

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CreateEndpointRequest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ public class CreateEndpointRequest {
1717

1818
/**
1919
* The ID to use for the Endpoint. This becomes the final component of the endpoint's resource
20-
* name. This value should be 4-63 characters. Valid characters are lowercase letters, numbers,
21-
* and hyphens, as defined by RFC 1123. Examples: - With custom ID: `primary` → name becomes
22-
* `projects/{project_id}/branches/{branch_id}/endpoints/primary` - Without custom ID: system
23-
* generates slug → name becomes
20+
* name. The ID must be 1-63 characters long, start with a lowercase letter, and contain only
21+
* lowercase letters, numbers, and hyphens (RFC 1123). Examples: - With custom ID: `primary` →
22+
* name becomes `projects/{project_id}/branches/{branch_id}/endpoints/primary` - Without custom
23+
* ID: system generates slug → name becomes
2424
* `projects/{project_id}/branches/{branch_id}/endpoints/ep-example-name-x1y2z3a4`
2525
*/
2626
@JsonIgnore

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CreateProjectRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public class CreateProjectRequest {
1717

1818
/**
1919
* The ID to use for the Project. This becomes the final component of the project's resource name.
20-
* This value should be 4-63 characters. Valid characters are lowercase letters, numbers, and
21-
* hyphens, as defined by RFC 1123. Examples: - With custom ID: `production` → name becomes
22-
* `projects/production` - Without custom ID: system generates UUID → name becomes
20+
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase
21+
* letters, numbers, and hyphens (RFC 1123). Examples: - With custom ID: `production` → name
22+
* becomes `projects/production` - Without custom ID: system generates UUID → name becomes
2323
* `projects/a7f89b2c-3d4e-5f6g-7h8i-9j0k1l2m3n4o`
2424
*/
2525
@JsonIgnore

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSpec.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
@Generated
1212
public class EndpointSpec {
13-
/** The maximum number of Compute Units. */
13+
/** The maximum number of Compute Units. Minimum value is 0.5. */
1414
@JsonProperty("autoscaling_limit_max_cu")
1515
private Double autoscalingLimitMaxCu;
1616

17-
/** The minimum number of Compute Units. */
17+
/** The minimum number of Compute Units. Minimum value is 0.5. */
1818
@JsonProperty("autoscaling_limit_min_cu")
1919
private Double autoscalingLimitMinCu;
2020

@@ -34,7 +34,11 @@ public class EndpointSpec {
3434
@JsonProperty("settings")
3535
private EndpointSettings settings;
3636

37-
/** Duration of inactivity after which the compute endpoint is automatically suspended. */
37+
/**
38+
* Duration of inactivity after which the compute endpoint is automatically suspended. Supported
39+
* values: -1s (never suspend), 0s (use default), or value should be between 60s and 604800s (1
40+
* minute to 1 week).
41+
*/
3842
@JsonProperty("suspend_timeout_duration")
3943
private Duration suspendTimeoutDuration;
4044

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ListBranchesRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@Generated
1212
public class ListBranchesRequest {
13-
/** Upper bound for items returned. */
13+
/** Upper bound for items returned. Cannot be negative. */
1414
@JsonIgnore
1515
@QueryParam("page_size")
1616
private Long pageSize;

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ListEndpointsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@Generated
1212
public class ListEndpointsRequest {
13-
/** Upper bound for items returned. */
13+
/** Upper bound for items returned. Cannot be negative. */
1414
@JsonIgnore
1515
@QueryParam("page_size")
1616
private Long pageSize;

0 commit comments

Comments
 (0)