diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 6d81e6465..91ae48641 100755 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -09b3781eaa20a4826b223eaa78752d4579fefcf0 \ No newline at end of file +d040cba6d444213f0fd5d67e9f5f23cfddc1d1df \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 0ab6d88f7..740c5634e 100755 --- a/.gitattributes +++ b/.gitattributes @@ -549,6 +549,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PipelinePro databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PoliciesAPI.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PoliciesImpl.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PoliciesService.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyFunctionArgument.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyInfo.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyType.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PrimaryKeyConstraint.java linguist-generated=true diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md old mode 100644 new mode 100755 index 2f99f0a27..d5c986636 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -13,3 +13,8 @@ ### Internal Changes ### API Changes +* Add `usingArguments` field for `com.databricks.sdk.service.catalog.ColumnMask`. +* Add `effectiveEnableFileEvents` field for `com.databricks.sdk.service.catalog.CreateExternalLocation`. +* Add `effectiveEnableFileEvents` field for `com.databricks.sdk.service.catalog.ExternalLocationInfo`. +* Add `inputArguments` field for `com.databricks.sdk.service.catalog.TableRowFilter`. +* Add `effectiveEnableFileEvents` field for `com.databricks.sdk.service.catalog.UpdateExternalLocation`. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ColumnMask.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ColumnMask.java index e14511b85..ce97f8f9f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ColumnMask.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ColumnMask.java @@ -14,6 +14,14 @@ public class ColumnMask { @JsonProperty("function_name") private String functionName; + /** + * The list of additional table columns or literals to be passed as additional arguments to a + * column mask function. This is the replacement of the deprecated using_column_names field and + * carries information about the types (alias or constant) of the arguments to the mask function. + */ + @JsonProperty("using_arguments") + private Collection usingArguments; + /** * The list of additional table columns to be passed as input to the column mask function. The * first arg of the mask function should be of the type of the column being masked and the types @@ -31,6 +39,15 @@ public String getFunctionName() { return functionName; } + public ColumnMask setUsingArguments(Collection usingArguments) { + this.usingArguments = usingArguments; + return this; + } + + public Collection getUsingArguments() { + return usingArguments; + } + public ColumnMask setUsingColumnNames(Collection usingColumnNames) { this.usingColumnNames = usingColumnNames; return this; @@ -46,18 +63,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ColumnMask that = (ColumnMask) o; return Objects.equals(functionName, that.functionName) + && Objects.equals(usingArguments, that.usingArguments) && Objects.equals(usingColumnNames, that.usingColumnNames); } @Override public int hashCode() { - return Objects.hash(functionName, usingColumnNames); + return Objects.hash(functionName, usingArguments, usingColumnNames); } @Override public String toString() { return new ToStringer(ColumnMask.class) .add("functionName", functionName) + .add("usingArguments", usingArguments) .add("usingColumnNames", usingColumnNames) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateExternalLocation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateExternalLocation.java index 89321f4a6..7ff3d3ff9 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateExternalLocation.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CreateExternalLocation.java @@ -17,9 +17,14 @@ public class CreateExternalLocation { @JsonProperty("credential_name") private String credentialName; + /** The effective value of `enable_file_events` after applying server-side defaults. */ + @JsonProperty("effective_enable_file_events") + private Boolean effectiveEnableFileEvents; + /** * Whether to enable file events on this external location. Default to `true`. Set to `false` to - * disable file events. + * disable file events. The actual applied value may differ due to server-side defaults; check + * `effective_enable_file_events` for the effective state. */ @JsonProperty("enable_file_events") private Boolean enableFileEvents; @@ -77,6 +82,15 @@ public String getCredentialName() { return credentialName; } + public CreateExternalLocation setEffectiveEnableFileEvents(Boolean effectiveEnableFileEvents) { + this.effectiveEnableFileEvents = effectiveEnableFileEvents; + return this; + } + + public Boolean getEffectiveEnableFileEvents() { + return effectiveEnableFileEvents; + } + public CreateExternalLocation setEnableFileEvents(Boolean enableFileEvents) { this.enableFileEvents = enableFileEvents; return this; @@ -156,6 +170,7 @@ public boolean equals(Object o) { CreateExternalLocation that = (CreateExternalLocation) o; return Objects.equals(comment, that.comment) && Objects.equals(credentialName, that.credentialName) + && Objects.equals(effectiveEnableFileEvents, that.effectiveEnableFileEvents) && Objects.equals(enableFileEvents, that.enableFileEvents) && Objects.equals(encryptionDetails, that.encryptionDetails) && Objects.equals(fallback, that.fallback) @@ -171,6 +186,7 @@ public int hashCode() { return Objects.hash( comment, credentialName, + effectiveEnableFileEvents, enableFileEvents, encryptionDetails, fallback, @@ -186,6 +202,7 @@ public String toString() { return new ToStringer(CreateExternalLocation.class) .add("comment", comment) .add("credentialName", credentialName) + .add("effectiveEnableFileEvents", effectiveEnableFileEvents) .add("enableFileEvents", enableFileEvents) .add("encryptionDetails", encryptionDetails) .add("fallback", fallback) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationInfo.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationInfo.java index cb5f98513..8e21bf477 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationInfo.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationInfo.java @@ -36,9 +36,14 @@ public class ExternalLocationInfo { @JsonProperty("credential_name") private String credentialName; + /** The effective value of `enable_file_events` after applying server-side defaults. */ + @JsonProperty("effective_enable_file_events") + private Boolean effectiveEnableFileEvents; + /** * Whether to enable file events on this external location. Default to `true`. Set to `false` to - * disable file events. + * disable file events. The actual applied value may differ due to server-side defaults; check + * `effective_enable_file_events` for the effective state. */ @JsonProperty("enable_file_events") private Boolean enableFileEvents; @@ -148,6 +153,15 @@ public String getCredentialName() { return credentialName; } + public ExternalLocationInfo setEffectiveEnableFileEvents(Boolean effectiveEnableFileEvents) { + this.effectiveEnableFileEvents = effectiveEnableFileEvents; + return this; + } + + public Boolean getEffectiveEnableFileEvents() { + return effectiveEnableFileEvents; + } + public ExternalLocationInfo setEnableFileEvents(Boolean enableFileEvents) { this.enableFileEvents = enableFileEvents; return this; @@ -267,6 +281,7 @@ public boolean equals(Object o) { && Objects.equals(createdBy, that.createdBy) && Objects.equals(credentialId, that.credentialId) && Objects.equals(credentialName, that.credentialName) + && Objects.equals(effectiveEnableFileEvents, that.effectiveEnableFileEvents) && Objects.equals(enableFileEvents, that.enableFileEvents) && Objects.equals(encryptionDetails, that.encryptionDetails) && Objects.equals(fallback, that.fallback) @@ -290,6 +305,7 @@ public int hashCode() { createdBy, credentialId, credentialName, + effectiveEnableFileEvents, enableFileEvents, encryptionDetails, fallback, @@ -313,6 +329,7 @@ public String toString() { .add("createdBy", createdBy) .add("credentialId", credentialId) .add("credentialName", credentialName) + .add("effectiveEnableFileEvents", effectiveEnableFileEvents) .add("enableFileEvents", enableFileEvents) .add("encryptionDetails", encryptionDetails) .add("fallback", fallback) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyFunctionArgument.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyFunctionArgument.java new file mode 100755 index 000000000..79553a4af --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/PolicyFunctionArgument.java @@ -0,0 +1,62 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.catalog; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +/** + * A positional argument passed to a row filter or column mask function. Distinguishes between + * column references and literals. + */ +@Generated +public class PolicyFunctionArgument { + /** A column reference. */ + @JsonProperty("column") + private String column; + + /** A constant literal. */ + @JsonProperty("constant") + private String constant; + + public PolicyFunctionArgument setColumn(String column) { + this.column = column; + return this; + } + + public String getColumn() { + return column; + } + + public PolicyFunctionArgument setConstant(String constant) { + this.constant = constant; + return this; + } + + public String getConstant() { + return constant; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + PolicyFunctionArgument that = (PolicyFunctionArgument) o; + return Objects.equals(column, that.column) && Objects.equals(constant, that.constant); + } + + @Override + public int hashCode() { + return Objects.hash(column, constant); + } + + @Override + public String toString() { + return new ToStringer(PolicyFunctionArgument.class) + .add("column", column) + .add("constant", constant) + .toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableRowFilter.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableRowFilter.java index bd53b8d98..c3901c8f5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableRowFilter.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TableRowFilter.java @@ -14,6 +14,14 @@ public class TableRowFilter { @JsonProperty("function_name") private String functionName; + /** + * The list of additional table columns or literals to be passed as additional arguments to a row + * filter function. This is the replacement of the deprecated input_column_names field and carries + * information about the types (alias or constant) of the arguments to the filter function. + */ + @JsonProperty("input_arguments") + private Collection inputArguments; + /** * The list of table columns to be passed as input to the row filter function. The column types * should match the types of the filter function arguments. @@ -30,6 +38,15 @@ public String getFunctionName() { return functionName; } + public TableRowFilter setInputArguments(Collection inputArguments) { + this.inputArguments = inputArguments; + return this; + } + + public Collection getInputArguments() { + return inputArguments; + } + public TableRowFilter setInputColumnNames(Collection inputColumnNames) { this.inputColumnNames = inputColumnNames; return this; @@ -45,18 +62,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; TableRowFilter that = (TableRowFilter) o; return Objects.equals(functionName, that.functionName) + && Objects.equals(inputArguments, that.inputArguments) && Objects.equals(inputColumnNames, that.inputColumnNames); } @Override public int hashCode() { - return Objects.hash(functionName, inputColumnNames); + return Objects.hash(functionName, inputArguments, inputColumnNames); } @Override public String toString() { return new ToStringer(TableRowFilter.class) .add("functionName", functionName) + .add("inputArguments", inputArguments) .add("inputColumnNames", inputColumnNames) .toString(); } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateExternalLocation.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateExternalLocation.java index 17bad5e84..b3893fd7d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateExternalLocation.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/UpdateExternalLocation.java @@ -18,9 +18,14 @@ public class UpdateExternalLocation { @JsonProperty("credential_name") private String credentialName; + /** The effective value of `enable_file_events` after applying server-side defaults. */ + @JsonProperty("effective_enable_file_events") + private Boolean effectiveEnableFileEvents; + /** * Whether to enable file events on this external location. Default to `true`. Set to `false` to - * disable file events. + * disable file events. The actual applied value may differ due to server-side defaults; check + * `effective_enable_file_events` for the effective state. */ @JsonProperty("enable_file_events") private Boolean enableFileEvents; @@ -93,6 +98,15 @@ public String getCredentialName() { return credentialName; } + public UpdateExternalLocation setEffectiveEnableFileEvents(Boolean effectiveEnableFileEvents) { + this.effectiveEnableFileEvents = effectiveEnableFileEvents; + return this; + } + + public Boolean getEffectiveEnableFileEvents() { + return effectiveEnableFileEvents; + } + public UpdateExternalLocation setEnableFileEvents(Boolean enableFileEvents) { this.enableFileEvents = enableFileEvents; return this; @@ -208,6 +222,7 @@ public boolean equals(Object o) { UpdateExternalLocation that = (UpdateExternalLocation) o; return Objects.equals(comment, that.comment) && Objects.equals(credentialName, that.credentialName) + && Objects.equals(effectiveEnableFileEvents, that.effectiveEnableFileEvents) && Objects.equals(enableFileEvents, that.enableFileEvents) && Objects.equals(encryptionDetails, that.encryptionDetails) && Objects.equals(fallback, that.fallback) @@ -227,6 +242,7 @@ public int hashCode() { return Objects.hash( comment, credentialName, + effectiveEnableFileEvents, enableFileEvents, encryptionDetails, fallback, @@ -246,6 +262,7 @@ public String toString() { return new ToStringer(UpdateExternalLocation.class) .add("comment", comment) .add("credentialName", credentialName) + .add("effectiveEnableFileEvents", effectiveEnableFileEvents) .add("enableFileEvents", enableFileEvents) .add("encryptionDetails", encryptionDetails) .add("fallback", fallback)