Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen/_openapi_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e1ea3f5ba0bc5b53be94f56535a67ba701a52a52
ce43ec527aafe429c802818fe3eff78ae8a66240
7 changes: 7 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@
### Internal Changes

### API Changes
* Add `effectiveUsagePolicyId` and `usagePolicyId` fields for `com.databricks.sdk.service.apps.App`.
* Add `externalAccessEnabled` field for `com.databricks.sdk.service.catalog.CreateAccountsMetastore`.
* Add `externalAccessEnabled` field for `com.databricks.sdk.service.catalog.CreateMetastore`.
* Add `externalAccessEnabled` field for `com.databricks.sdk.service.catalog.UpdateAccountsMetastore`.
* Add `externalAccessEnabled` field for `com.databricks.sdk.service.catalog.UpdateMetastore`.
* Add `CONTROL_PLANE_CONNECTION_FAILURE` and `CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG` enum values for `com.databricks.sdk.service.compute.TerminationReasonCode`.
* Add `CONTROL_PLANE_CONNECTION_FAILURE` and `CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG` enum values for `com.databricks.sdk.service.sql.TerminationReasonCode`.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public class App {
@JsonProperty("effective_budget_policy_id")
private String effectiveBudgetPolicyId;

/** */
@JsonProperty("effective_usage_policy_id")
private String effectiveUsagePolicyId;

/** The effective api scopes granted to the user access token. */
@JsonProperty("effective_user_api_scopes")
private Collection<String> effectiveUserApiScopes;
Expand Down Expand Up @@ -114,6 +118,10 @@ public class App {
@JsonProperty("url")
private String url;

/** */
@JsonProperty("usage_policy_id")
private String usagePolicyId;

/** */
@JsonProperty("user_api_scopes")
private Collection<String> userApiScopes;
Expand Down Expand Up @@ -208,6 +216,15 @@ public String getEffectiveBudgetPolicyId() {
return effectiveBudgetPolicyId;
}

public App setEffectiveUsagePolicyId(String effectiveUsagePolicyId) {
this.effectiveUsagePolicyId = effectiveUsagePolicyId;
return this;
}

public String getEffectiveUsagePolicyId() {
return effectiveUsagePolicyId;
}

public App setEffectiveUserApiScopes(Collection<String> effectiveUserApiScopes) {
this.effectiveUserApiScopes = effectiveUserApiScopes;
return this;
Expand Down Expand Up @@ -325,6 +342,15 @@ public String getUrl() {
return url;
}

public App setUsagePolicyId(String usagePolicyId) {
this.usagePolicyId = usagePolicyId;
return this;
}

public String getUsagePolicyId() {
return usagePolicyId;
}

public App setUserApiScopes(Collection<String> userApiScopes) {
this.userApiScopes = userApiScopes;
return this;
Expand All @@ -349,6 +375,7 @@ public boolean equals(Object o) {
&& Objects.equals(defaultSourceCodePath, that.defaultSourceCodePath)
&& Objects.equals(description, that.description)
&& Objects.equals(effectiveBudgetPolicyId, that.effectiveBudgetPolicyId)
&& Objects.equals(effectiveUsagePolicyId, that.effectiveUsagePolicyId)
&& Objects.equals(effectiveUserApiScopes, that.effectiveUserApiScopes)
&& Objects.equals(id, that.id)
&& Objects.equals(name, that.name)
Expand All @@ -362,6 +389,7 @@ public boolean equals(Object o) {
&& Objects.equals(updateTime, that.updateTime)
&& Objects.equals(updater, that.updater)
&& Objects.equals(url, that.url)
&& Objects.equals(usagePolicyId, that.usagePolicyId)
&& Objects.equals(userApiScopes, that.userApiScopes);
}

Expand All @@ -378,6 +406,7 @@ public int hashCode() {
defaultSourceCodePath,
description,
effectiveBudgetPolicyId,
effectiveUsagePolicyId,
effectiveUserApiScopes,
id,
name,
Expand All @@ -391,6 +420,7 @@ public int hashCode() {
updateTime,
updater,
url,
usagePolicyId,
userApiScopes);
}

Expand All @@ -407,6 +437,7 @@ public String toString() {
.add("defaultSourceCodePath", defaultSourceCodePath)
.add("description", description)
.add("effectiveBudgetPolicyId", effectiveBudgetPolicyId)
.add("effectiveUsagePolicyId", effectiveUsagePolicyId)
.add("effectiveUserApiScopes", effectiveUserApiScopes)
.add("id", id)
.add("name", name)
Expand All @@ -420,6 +451,7 @@ public String toString() {
.add("updateTime", updateTime)
.add("updater", updater)
.add("url", url)
.add("usagePolicyId", usagePolicyId)
.add("userApiScopes", userApiScopes)
.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import com.databricks.sdk.support.Generated;

/** Next Id: 51 */
/** Next Id: 52 */
@Generated
public enum ConnectionType {
BIGQUERY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

@Generated
public class CreateAccountsMetastore {
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
@JsonProperty("external_access_enabled")
private Boolean externalAccessEnabled;

/** The user-specified name of the metastore. */
@JsonProperty("name")
private String name;
Expand All @@ -21,6 +25,15 @@ public class CreateAccountsMetastore {
@JsonProperty("storage_root")
private String storageRoot;

public CreateAccountsMetastore setExternalAccessEnabled(Boolean externalAccessEnabled) {
this.externalAccessEnabled = externalAccessEnabled;
return this;
}

public Boolean getExternalAccessEnabled() {
return externalAccessEnabled;
}

public CreateAccountsMetastore setName(String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -53,19 +66,21 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateAccountsMetastore that = (CreateAccountsMetastore) o;
return Objects.equals(name, that.name)
return Objects.equals(externalAccessEnabled, that.externalAccessEnabled)
&& Objects.equals(name, that.name)
&& Objects.equals(region, that.region)
&& Objects.equals(storageRoot, that.storageRoot);
}

@Override
public int hashCode() {
return Objects.hash(name, region, storageRoot);
return Objects.hash(externalAccessEnabled, name, region, storageRoot);
}

@Override
public String toString() {
return new ToStringer(CreateAccountsMetastore.class)
.add("externalAccessEnabled", externalAccessEnabled)
.add("name", name)
.add("region", region)
.add("storageRoot", storageRoot)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

@Generated
public class CreateMetastore {
/** Whether to allow non-DBR clients to directly access entities under the metastore. */
@JsonProperty("external_access_enabled")
private Boolean externalAccessEnabled;

/** The user-specified name of the metastore. */
@JsonProperty("name")
private String name;
Expand All @@ -21,6 +25,15 @@ public class CreateMetastore {
@JsonProperty("storage_root")
private String storageRoot;

public CreateMetastore setExternalAccessEnabled(Boolean externalAccessEnabled) {
this.externalAccessEnabled = externalAccessEnabled;
return this;
}

public Boolean getExternalAccessEnabled() {
return externalAccessEnabled;
}

public CreateMetastore setName(String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -53,19 +66,21 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateMetastore that = (CreateMetastore) o;
return Objects.equals(name, that.name)
return Objects.equals(externalAccessEnabled, that.externalAccessEnabled)
&& Objects.equals(name, that.name)
&& Objects.equals(region, that.region)
&& Objects.equals(storageRoot, that.storageRoot);
}

@Override
public int hashCode() {
return Objects.hash(name, region, storageRoot);
return Objects.hash(externalAccessEnabled, name, region, storageRoot);
}

@Override
public String toString() {
return new ToStringer(CreateMetastore.class)
.add("externalAccessEnabled", externalAccessEnabled)
.add("name", name)
.add("region", region)
.add("storageRoot", storageRoot)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import com.databricks.sdk.support.Generated;

/** Latest kind: CONNECTION_CROWDSTRIKE_EVENT_STREAM_M2M = 281; Next id: 282 */
/** Latest kind: CONNECTION_WORKDAY_ACTIVITY_LOGGING_OAUTH_REFRESH_TOKEN = 282; Next id:283 */
@Generated
public enum SecurableKind {
TABLE_DB_STORAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public class UpdateAccountsMetastore {
@JsonProperty("delta_sharing_scope")
private DeltaSharingScopeEnum deltaSharingScope;

/** Whether to allow non-DBR clients to directly access entities under the metastore. */
@JsonProperty("external_access_enabled")
private Boolean externalAccessEnabled;

/** The owner of the metastore. */
@JsonProperty("owner")
private String owner;
Expand Down Expand Up @@ -65,6 +69,15 @@ public DeltaSharingScopeEnum getDeltaSharingScope() {
return deltaSharingScope;
}

public UpdateAccountsMetastore setExternalAccessEnabled(Boolean externalAccessEnabled) {
this.externalAccessEnabled = externalAccessEnabled;
return this;
}

public Boolean getExternalAccessEnabled() {
return externalAccessEnabled;
}

public UpdateAccountsMetastore setOwner(String owner) {
this.owner = owner;
return this;
Expand Down Expand Up @@ -102,6 +115,7 @@ public boolean equals(Object o) {
deltaSharingRecipientTokenLifetimeInSeconds,
that.deltaSharingRecipientTokenLifetimeInSeconds)
&& Objects.equals(deltaSharingScope, that.deltaSharingScope)
&& Objects.equals(externalAccessEnabled, that.externalAccessEnabled)
&& Objects.equals(owner, that.owner)
&& Objects.equals(privilegeModelVersion, that.privilegeModelVersion)
&& Objects.equals(storageRootCredentialId, that.storageRootCredentialId);
Expand All @@ -113,6 +127,7 @@ public int hashCode() {
deltaSharingOrganizationName,
deltaSharingRecipientTokenLifetimeInSeconds,
deltaSharingScope,
externalAccessEnabled,
owner,
privilegeModelVersion,
storageRootCredentialId);
Expand All @@ -126,6 +141,7 @@ public String toString() {
"deltaSharingRecipientTokenLifetimeInSeconds",
deltaSharingRecipientTokenLifetimeInSeconds)
.add("deltaSharingScope", deltaSharingScope)
.add("externalAccessEnabled", externalAccessEnabled)
.add("owner", owner)
.add("privilegeModelVersion", privilegeModelVersion)
.add("storageRootCredentialId", storageRootCredentialId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public class UpdateMetastore {
@JsonProperty("delta_sharing_scope")
private DeltaSharingScopeEnum deltaSharingScope;

/** Whether to allow non-DBR clients to directly access entities under the metastore. */
@JsonProperty("external_access_enabled")
private Boolean externalAccessEnabled;

/** Unique ID of the metastore. */
@JsonIgnore private String id;

Expand Down Expand Up @@ -72,6 +76,15 @@ public DeltaSharingScopeEnum getDeltaSharingScope() {
return deltaSharingScope;
}

public UpdateMetastore setExternalAccessEnabled(Boolean externalAccessEnabled) {
this.externalAccessEnabled = externalAccessEnabled;
return this;
}

public Boolean getExternalAccessEnabled() {
return externalAccessEnabled;
}

public UpdateMetastore setId(String id) {
this.id = id;
return this;
Expand Down Expand Up @@ -127,6 +140,7 @@ public boolean equals(Object o) {
deltaSharingRecipientTokenLifetimeInSeconds,
that.deltaSharingRecipientTokenLifetimeInSeconds)
&& Objects.equals(deltaSharingScope, that.deltaSharingScope)
&& Objects.equals(externalAccessEnabled, that.externalAccessEnabled)
&& Objects.equals(id, that.id)
&& Objects.equals(newName, that.newName)
&& Objects.equals(owner, that.owner)
Expand All @@ -140,6 +154,7 @@ public int hashCode() {
deltaSharingOrganizationName,
deltaSharingRecipientTokenLifetimeInSeconds,
deltaSharingScope,
externalAccessEnabled,
id,
newName,
owner,
Expand All @@ -155,6 +170,7 @@ public String toString() {
"deltaSharingRecipientTokenLifetimeInSeconds",
deltaSharingRecipientTokenLifetimeInSeconds)
.add("deltaSharingScope", deltaSharingScope)
.add("externalAccessEnabled", externalAccessEnabled)
.add("id", id)
.add("newName", newName)
.add("owner", owner)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public enum TerminationReasonCode {
CLUSTER_OPERATION_TIMEOUT,
COMMUNICATION_LOST,
CONTAINER_LAUNCH_FAILURE,
CONTROL_PLANE_CONNECTION_FAILURE,
CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG,
CONTROL_PLANE_REQUEST_FAILURE,
CONTROL_PLANE_REQUEST_FAILURE_DUE_TO_MISCONFIG,
DATABASE_CONNECTION_FAILURE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public enum TerminationReasonCode {
CLUSTER_OPERATION_TIMEOUT,
COMMUNICATION_LOST,
CONTAINER_LAUNCH_FAILURE,
CONTROL_PLANE_CONNECTION_FAILURE,
CONTROL_PLANE_CONNECTION_FAILURE_DUE_TO_MISCONFIG,
CONTROL_PLANE_REQUEST_FAILURE,
CONTROL_PLANE_REQUEST_FAILURE_DUE_TO_MISCONFIG,
DATABASE_CONNECTION_FAILURE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

@Generated
public class PatchEndpointBudgetPolicyRequest {
/**
* The budget policy id to be applied (hima-sheth) TODO: remove this once we've migrated to usage
* policies
*/
/** The budget policy id to be applied */
@JsonProperty("budget_policy_id")
private String budgetPolicyId;

Expand Down
Loading