Skip to content

Commit ae2b5f6

Browse files
author
phoenix
committed
Update SDK to ce43ec527aafe429c802818fe3eff78ae8a66240
1 parent bc9c672 commit ae2b5f6

File tree

12 files changed

+113
-11
lines changed

12 files changed

+113
-11
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e1ea3f5ba0bc5b53be94f56535a67ba701a52a52
1+
ce43ec527aafe429c802818fe3eff78ae8a66240

NEXT_CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@
1313
### Internal Changes
1414

1515
### API Changes
16+
* Add `effectiveUsagePolicyId` and `usagePolicyId` fields for `com.databricks.sdk.service.apps.App`.
17+
* Add `externalAccessEnabled` field for `com.databricks.sdk.service.catalog.CreateAccountsMetastore`.
18+
* Add `externalAccessEnabled` field for `com.databricks.sdk.service.catalog.CreateMetastore`.
19+
* Add `externalAccessEnabled` field for `com.databricks.sdk.service.catalog.UpdateAccountsMetastore`.
20+
* Add `externalAccessEnabled` field for `com.databricks.sdk.service.catalog.UpdateMetastore`.
21+
* Add `CONTROL_PLANE_CONNECTION_FAILURE` and `CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG` enum values for `com.databricks.sdk.service.compute.TerminationReasonCode`.
22+
* Add `CONTROL_PLANE_CONNECTION_FAILURE` and `CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG` enum values for `com.databricks.sdk.service.sql.TerminationReasonCode`.

databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/App.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public class App {
5656
@JsonProperty("effective_budget_policy_id")
5757
private String effectiveBudgetPolicyId;
5858

59+
/** */
60+
@JsonProperty("effective_usage_policy_id")
61+
private String effectiveUsagePolicyId;
62+
5963
/** The effective api scopes granted to the user access token. */
6064
@JsonProperty("effective_user_api_scopes")
6165
private Collection<String> effectiveUserApiScopes;
@@ -114,6 +118,10 @@ public class App {
114118
@JsonProperty("url")
115119
private String url;
116120

121+
/** */
122+
@JsonProperty("usage_policy_id")
123+
private String usagePolicyId;
124+
117125
/** */
118126
@JsonProperty("user_api_scopes")
119127
private Collection<String> userApiScopes;
@@ -208,6 +216,15 @@ public String getEffectiveBudgetPolicyId() {
208216
return effectiveBudgetPolicyId;
209217
}
210218

219+
public App setEffectiveUsagePolicyId(String effectiveUsagePolicyId) {
220+
this.effectiveUsagePolicyId = effectiveUsagePolicyId;
221+
return this;
222+
}
223+
224+
public String getEffectiveUsagePolicyId() {
225+
return effectiveUsagePolicyId;
226+
}
227+
211228
public App setEffectiveUserApiScopes(Collection<String> effectiveUserApiScopes) {
212229
this.effectiveUserApiScopes = effectiveUserApiScopes;
213230
return this;
@@ -325,6 +342,15 @@ public String getUrl() {
325342
return url;
326343
}
327344

345+
public App setUsagePolicyId(String usagePolicyId) {
346+
this.usagePolicyId = usagePolicyId;
347+
return this;
348+
}
349+
350+
public String getUsagePolicyId() {
351+
return usagePolicyId;
352+
}
353+
328354
public App setUserApiScopes(Collection<String> userApiScopes) {
329355
this.userApiScopes = userApiScopes;
330356
return this;
@@ -349,6 +375,7 @@ public boolean equals(Object o) {
349375
&& Objects.equals(defaultSourceCodePath, that.defaultSourceCodePath)
350376
&& Objects.equals(description, that.description)
351377
&& Objects.equals(effectiveBudgetPolicyId, that.effectiveBudgetPolicyId)
378+
&& Objects.equals(effectiveUsagePolicyId, that.effectiveUsagePolicyId)
352379
&& Objects.equals(effectiveUserApiScopes, that.effectiveUserApiScopes)
353380
&& Objects.equals(id, that.id)
354381
&& Objects.equals(name, that.name)
@@ -362,6 +389,7 @@ public boolean equals(Object o) {
362389
&& Objects.equals(updateTime, that.updateTime)
363390
&& Objects.equals(updater, that.updater)
364391
&& Objects.equals(url, that.url)
392+
&& Objects.equals(usagePolicyId, that.usagePolicyId)
365393
&& Objects.equals(userApiScopes, that.userApiScopes);
366394
}
367395

@@ -378,6 +406,7 @@ public int hashCode() {
378406
defaultSourceCodePath,
379407
description,
380408
effectiveBudgetPolicyId,
409+
effectiveUsagePolicyId,
381410
effectiveUserApiScopes,
382411
id,
383412
name,
@@ -391,6 +420,7 @@ public int hashCode() {
391420
updateTime,
392421
updater,
393422
url,
423+
usagePolicyId,
394424
userApiScopes);
395425
}
396426

@@ -407,6 +437,7 @@ public String toString() {
407437
.add("defaultSourceCodePath", defaultSourceCodePath)
408438
.add("description", description)
409439
.add("effectiveBudgetPolicyId", effectiveBudgetPolicyId)
440+
.add("effectiveUsagePolicyId", effectiveUsagePolicyId)
410441
.add("effectiveUserApiScopes", effectiveUserApiScopes)
411442
.add("id", id)
412443
.add("name", name)
@@ -420,6 +451,7 @@ public String toString() {
420451
.add("updateTime", updateTime)
421452
.add("updater", updater)
422453
.add("url", url)
454+
.add("usagePolicyId", usagePolicyId)
423455
.add("userApiScopes", userApiScopes)
424456
.toString();
425457
}

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: 51 */
7+
/** Next Id: 52 */
88
@Generated
99
public enum ConnectionType {
1010
BIGQUERY,

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
@Generated
1111
public class CreateAccountsMetastore {
12+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
13+
@JsonProperty("external_access_enabled")
14+
private Boolean externalAccessEnabled;
15+
1216
/** The user-specified name of the metastore. */
1317
@JsonProperty("name")
1418
private String name;
@@ -21,6 +25,15 @@ public class CreateAccountsMetastore {
2125
@JsonProperty("storage_root")
2226
private String storageRoot;
2327

28+
public CreateAccountsMetastore setExternalAccessEnabled(Boolean externalAccessEnabled) {
29+
this.externalAccessEnabled = externalAccessEnabled;
30+
return this;
31+
}
32+
33+
public Boolean getExternalAccessEnabled() {
34+
return externalAccessEnabled;
35+
}
36+
2437
public CreateAccountsMetastore setName(String name) {
2538
this.name = name;
2639
return this;
@@ -53,19 +66,21 @@ public boolean equals(Object o) {
5366
if (this == o) return true;
5467
if (o == null || getClass() != o.getClass()) return false;
5568
CreateAccountsMetastore that = (CreateAccountsMetastore) o;
56-
return Objects.equals(name, that.name)
69+
return Objects.equals(externalAccessEnabled, that.externalAccessEnabled)
70+
&& Objects.equals(name, that.name)
5771
&& Objects.equals(region, that.region)
5872
&& Objects.equals(storageRoot, that.storageRoot);
5973
}
6074

6175
@Override
6276
public int hashCode() {
63-
return Objects.hash(name, region, storageRoot);
77+
return Objects.hash(externalAccessEnabled, name, region, storageRoot);
6478
}
6579

6680
@Override
6781
public String toString() {
6882
return new ToStringer(CreateAccountsMetastore.class)
83+
.add("externalAccessEnabled", externalAccessEnabled)
6984
.add("name", name)
7085
.add("region", region)
7186
.add("storageRoot", storageRoot)

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
@Generated
1111
public class CreateMetastore {
12+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
13+
@JsonProperty("external_access_enabled")
14+
private Boolean externalAccessEnabled;
15+
1216
/** The user-specified name of the metastore. */
1317
@JsonProperty("name")
1418
private String name;
@@ -21,6 +25,15 @@ public class CreateMetastore {
2125
@JsonProperty("storage_root")
2226
private String storageRoot;
2327

28+
public CreateMetastore setExternalAccessEnabled(Boolean externalAccessEnabled) {
29+
this.externalAccessEnabled = externalAccessEnabled;
30+
return this;
31+
}
32+
33+
public Boolean getExternalAccessEnabled() {
34+
return externalAccessEnabled;
35+
}
36+
2437
public CreateMetastore setName(String name) {
2538
this.name = name;
2639
return this;
@@ -53,19 +66,21 @@ public boolean equals(Object o) {
5366
if (this == o) return true;
5467
if (o == null || getClass() != o.getClass()) return false;
5568
CreateMetastore that = (CreateMetastore) o;
56-
return Objects.equals(name, that.name)
69+
return Objects.equals(externalAccessEnabled, that.externalAccessEnabled)
70+
&& Objects.equals(name, that.name)
5771
&& Objects.equals(region, that.region)
5872
&& Objects.equals(storageRoot, that.storageRoot);
5973
}
6074

6175
@Override
6276
public int hashCode() {
63-
return Objects.hash(name, region, storageRoot);
77+
return Objects.hash(externalAccessEnabled, name, region, storageRoot);
6478
}
6579

6680
@Override
6781
public String toString() {
6882
return new ToStringer(CreateMetastore.class)
83+
.add("externalAccessEnabled", externalAccessEnabled)
6984
.add("name", name)
7085
.add("region", region)
7186
.add("storageRoot", storageRoot)

databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.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-
/** Latest kind: CONNECTION_CROWDSTRIKE_EVENT_STREAM_M2M = 281; Next id: 282 */
7+
/** Latest kind: CONNECTION_WORKDAY_ACTIVITY_LOGGING_OAUTH_REFRESH_TOKEN = 282; Next id:283 */
88
@Generated
99
public enum SecurableKind {
1010
TABLE_DB_STORAGE,

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public class UpdateAccountsMetastore {
2424
@JsonProperty("delta_sharing_scope")
2525
private DeltaSharingScopeEnum deltaSharingScope;
2626

27+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
28+
@JsonProperty("external_access_enabled")
29+
private Boolean externalAccessEnabled;
30+
2731
/** The owner of the metastore. */
2832
@JsonProperty("owner")
2933
private String owner;
@@ -65,6 +69,15 @@ public DeltaSharingScopeEnum getDeltaSharingScope() {
6569
return deltaSharingScope;
6670
}
6771

72+
public UpdateAccountsMetastore setExternalAccessEnabled(Boolean externalAccessEnabled) {
73+
this.externalAccessEnabled = externalAccessEnabled;
74+
return this;
75+
}
76+
77+
public Boolean getExternalAccessEnabled() {
78+
return externalAccessEnabled;
79+
}
80+
6881
public UpdateAccountsMetastore setOwner(String owner) {
6982
this.owner = owner;
7083
return this;
@@ -102,6 +115,7 @@ public boolean equals(Object o) {
102115
deltaSharingRecipientTokenLifetimeInSeconds,
103116
that.deltaSharingRecipientTokenLifetimeInSeconds)
104117
&& Objects.equals(deltaSharingScope, that.deltaSharingScope)
118+
&& Objects.equals(externalAccessEnabled, that.externalAccessEnabled)
105119
&& Objects.equals(owner, that.owner)
106120
&& Objects.equals(privilegeModelVersion, that.privilegeModelVersion)
107121
&& Objects.equals(storageRootCredentialId, that.storageRootCredentialId);
@@ -113,6 +127,7 @@ public int hashCode() {
113127
deltaSharingOrganizationName,
114128
deltaSharingRecipientTokenLifetimeInSeconds,
115129
deltaSharingScope,
130+
externalAccessEnabled,
116131
owner,
117132
privilegeModelVersion,
118133
storageRootCredentialId);
@@ -126,6 +141,7 @@ public String toString() {
126141
"deltaSharingRecipientTokenLifetimeInSeconds",
127142
deltaSharingRecipientTokenLifetimeInSeconds)
128143
.add("deltaSharingScope", deltaSharingScope)
144+
.add("externalAccessEnabled", externalAccessEnabled)
129145
.add("owner", owner)
130146
.add("privilegeModelVersion", privilegeModelVersion)
131147
.add("storageRootCredentialId", storageRootCredentialId)

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public class UpdateMetastore {
2525
@JsonProperty("delta_sharing_scope")
2626
private DeltaSharingScopeEnum deltaSharingScope;
2727

28+
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
29+
@JsonProperty("external_access_enabled")
30+
private Boolean externalAccessEnabled;
31+
2832
/** Unique ID of the metastore. */
2933
@JsonIgnore private String id;
3034

@@ -72,6 +76,15 @@ public DeltaSharingScopeEnum getDeltaSharingScope() {
7276
return deltaSharingScope;
7377
}
7478

79+
public UpdateMetastore setExternalAccessEnabled(Boolean externalAccessEnabled) {
80+
this.externalAccessEnabled = externalAccessEnabled;
81+
return this;
82+
}
83+
84+
public Boolean getExternalAccessEnabled() {
85+
return externalAccessEnabled;
86+
}
87+
7588
public UpdateMetastore setId(String id) {
7689
this.id = id;
7790
return this;
@@ -127,6 +140,7 @@ public boolean equals(Object o) {
127140
deltaSharingRecipientTokenLifetimeInSeconds,
128141
that.deltaSharingRecipientTokenLifetimeInSeconds)
129142
&& Objects.equals(deltaSharingScope, that.deltaSharingScope)
143+
&& Objects.equals(externalAccessEnabled, that.externalAccessEnabled)
130144
&& Objects.equals(id, that.id)
131145
&& Objects.equals(newName, that.newName)
132146
&& Objects.equals(owner, that.owner)
@@ -140,6 +154,7 @@ public int hashCode() {
140154
deltaSharingOrganizationName,
141155
deltaSharingRecipientTokenLifetimeInSeconds,
142156
deltaSharingScope,
157+
externalAccessEnabled,
143158
id,
144159
newName,
145160
owner,
@@ -155,6 +170,7 @@ public String toString() {
155170
"deltaSharingRecipientTokenLifetimeInSeconds",
156171
deltaSharingRecipientTokenLifetimeInSeconds)
157172
.add("deltaSharingScope", deltaSharingScope)
173+
.add("externalAccessEnabled", externalAccessEnabled)
158174
.add("id", id)
159175
.add("newName", newName)
160176
.add("owner", owner)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public enum TerminationReasonCode {
5959
CLUSTER_OPERATION_TIMEOUT,
6060
COMMUNICATION_LOST,
6161
CONTAINER_LAUNCH_FAILURE,
62+
CONTROL_PLANE_CONNECTION_FAILURE,
63+
CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG,
6264
CONTROL_PLANE_REQUEST_FAILURE,
6365
CONTROL_PLANE_REQUEST_FAILURE_DUE_TO_MISCONFIG,
6466
DATABASE_CONNECTION_FAILURE,

0 commit comments

Comments
 (0)