Skip to content

Commit db42271

Browse files
Update SDK API to 0b4efa458e7adc25e50baac51dfebd32934e061b (#626)
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 63de789 commit db42271

File tree

5 files changed

+50
-5
lines changed

5 files changed

+50
-5
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ed8b5e7ec1f143395503eebae9fbc74cf8c309bc
1+
0b4efa458e7adc25e50baac51dfebd32934e061b

.github/workflows/tagging.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ jobs:
2121
# Only run the tag job if the trigger is manual (workflow_dispatch) or
2222
# the repository has been approved for automated releases.
2323
#
24-
# To disable release for a repository, simply exclude it from the if
24+
# To disable release for a repository, simply exclude it from the if
2525
# condition.
2626
if: >-
2727
github.event_name == 'workflow_dispatch' ||
28-
github.repository == 'databricks/databricks-sdk-go'
28+
github.repository == 'databricks/databricks-sdk-go' ||
29+
github.repository == 'databricks/databricks-sdk-py' ||
30+
github.repository == 'databricks/databricks-sdk-java'
2931
environment: "release-is"
3032
runs-on:
3133
group: databricks-deco-testing-runner-group

NEXT_CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616

1717
### API Changes
1818
* Add `outputs` field for `com.databricks.sdk.service.serving.QueryEndpointResponse`.
19-
* Add `sessionId` field for `com.databricks.sdk.service.sql.QueryInfo`.
19+
* Add `sessionId` field for `com.databricks.sdk.service.sql.QueryInfo`.
20+
* Add `noSuspension` field for `com.databricks.sdk.service.postgres.EndpointSpec`.
21+
* Add `noSuspension` field for `com.databricks.sdk.service.postgres.ProjectDefaultEndpointSettings`.

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ public class EndpointSpec {
3030
@JsonProperty("endpoint_type")
3131
private EndpointType endpointType;
3232

33+
/**
34+
* When set to true, explicitly disables automatic suspension (never suspend). Should be set to
35+
* true when provided.
36+
*/
37+
@JsonProperty("no_suspension")
38+
private Boolean noSuspension;
39+
3340
/** */
3441
@JsonProperty("settings")
3542
private EndpointSettings settings;
@@ -77,6 +84,15 @@ public EndpointType getEndpointType() {
7784
return endpointType;
7885
}
7986

87+
public EndpointSpec setNoSuspension(Boolean noSuspension) {
88+
this.noSuspension = noSuspension;
89+
return this;
90+
}
91+
92+
public Boolean getNoSuspension() {
93+
return noSuspension;
94+
}
95+
8096
public EndpointSpec setSettings(EndpointSettings settings) {
8197
this.settings = settings;
8298
return this;
@@ -104,6 +120,7 @@ public boolean equals(Object o) {
104120
&& Objects.equals(autoscalingLimitMinCu, that.autoscalingLimitMinCu)
105121
&& Objects.equals(disabled, that.disabled)
106122
&& Objects.equals(endpointType, that.endpointType)
123+
&& Objects.equals(noSuspension, that.noSuspension)
107124
&& Objects.equals(settings, that.settings)
108125
&& Objects.equals(suspendTimeoutDuration, that.suspendTimeoutDuration);
109126
}
@@ -115,6 +132,7 @@ public int hashCode() {
115132
autoscalingLimitMinCu,
116133
disabled,
117134
endpointType,
135+
noSuspension,
118136
settings,
119137
suspendTimeoutDuration);
120138
}
@@ -126,6 +144,7 @@ public String toString() {
126144
.add("autoscalingLimitMinCu", autoscalingLimitMinCu)
127145
.add("disabled", disabled)
128146
.add("endpointType", endpointType)
147+
.add("noSuspension", noSuspension)
129148
.add("settings", settings)
130149
.add("suspendTimeoutDuration", suspendTimeoutDuration)
131150
.toString();

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ public class ProjectDefaultEndpointSettings {
2020
@JsonProperty("autoscaling_limit_min_cu")
2121
private Double autoscalingLimitMinCu;
2222

23+
/**
24+
* When set to true, explicitly disables automatic suspension (never suspend). Should be set to
25+
* true when provided.
26+
*/
27+
@JsonProperty("no_suspension")
28+
private Boolean noSuspension;
29+
2330
/** A raw representation of Postgres settings. */
2431
@JsonProperty("pg_settings")
2532
private Map<String, String> pgSettings;
@@ -49,6 +56,15 @@ public Double getAutoscalingLimitMinCu() {
4956
return autoscalingLimitMinCu;
5057
}
5158

59+
public ProjectDefaultEndpointSettings setNoSuspension(Boolean noSuspension) {
60+
this.noSuspension = noSuspension;
61+
return this;
62+
}
63+
64+
public Boolean getNoSuspension() {
65+
return noSuspension;
66+
}
67+
5268
public ProjectDefaultEndpointSettings setPgSettings(Map<String, String> pgSettings) {
5369
this.pgSettings = pgSettings;
5470
return this;
@@ -74,21 +90,27 @@ public boolean equals(Object o) {
7490
ProjectDefaultEndpointSettings that = (ProjectDefaultEndpointSettings) o;
7591
return Objects.equals(autoscalingLimitMaxCu, that.autoscalingLimitMaxCu)
7692
&& Objects.equals(autoscalingLimitMinCu, that.autoscalingLimitMinCu)
93+
&& Objects.equals(noSuspension, that.noSuspension)
7794
&& Objects.equals(pgSettings, that.pgSettings)
7895
&& Objects.equals(suspendTimeoutDuration, that.suspendTimeoutDuration);
7996
}
8097

8198
@Override
8299
public int hashCode() {
83100
return Objects.hash(
84-
autoscalingLimitMaxCu, autoscalingLimitMinCu, pgSettings, suspendTimeoutDuration);
101+
autoscalingLimitMaxCu,
102+
autoscalingLimitMinCu,
103+
noSuspension,
104+
pgSettings,
105+
suspendTimeoutDuration);
85106
}
86107

87108
@Override
88109
public String toString() {
89110
return new ToStringer(ProjectDefaultEndpointSettings.class)
90111
.add("autoscalingLimitMaxCu", autoscalingLimitMaxCu)
91112
.add("autoscalingLimitMinCu", autoscalingLimitMinCu)
113+
.add("noSuspension", noSuspension)
92114
.add("pgSettings", pgSettings)
93115
.add("suspendTimeoutDuration", suspendTimeoutDuration)
94116
.toString();

0 commit comments

Comments
 (0)