diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 41815c7b2..53b8202c7 100755 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -9e2277ca39349a689e18d226f2d6abff7964be1c \ No newline at end of file +d51b6c87771fef9fccd731995456dc9b0448d03a \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index ccd8930d4..5548ae00d 100755 --- a/.gitattributes +++ b/.gitattributes @@ -2174,6 +2174,7 @@ databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresAP databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresImpl.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/PostgresService.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Project.java linguist-generated=true +databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectCustomTag.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectDefaultEndpointSettings.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectOperationMetadata.java linguist-generated=true databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectSpec.java linguist-generated=true diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 66c5f29a4..6152427ba 100755 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -15,4 +15,6 @@ ### API Changes * Add `com.databricks.sdk.service.networking` package. * Add `accountClient.endpoints()` service. -* Add `filterCondition` and `transformations` fields for `com.databricks.sdk.service.ml.DeltaTableSource`. \ No newline at end of file +* Add `filterCondition` and `transformations` fields for `com.databricks.sdk.service.ml.DeltaTableSource`. +* Add `budgetPolicyId` and `customTags` fields for `com.databricks.sdk.service.postgres.ProjectSpec`. +* Add `budgetPolicyId` and `customTags` fields for `com.databricks.sdk.service.postgres.ProjectStatus`. \ No newline at end of file diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java index 175a780e1..f642eaa16 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SecurableKind.java @@ -4,7 +4,7 @@ import com.databricks.sdk.support.Generated; -/** Latest kind: CONNECTION_AKAMAI_WAF_EDGEGRID = 296; Next id: 297 */ +/** Latest kind: CONNECTION_M365_AUDIT_LOGS_OAUTH_M2M = 297; Next id: 298 */ @Generated public enum SecurableKind { TABLE_DB_STORAGE, diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectCustomTag.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectCustomTag.java new file mode 100755 index 000000000..9016820a6 --- /dev/null +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectCustomTag.java @@ -0,0 +1,55 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package com.databricks.sdk.service.postgres; + +import com.databricks.sdk.support.Generated; +import com.databricks.sdk.support.ToStringer; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; + +@Generated +public class ProjectCustomTag { + /** The key of the custom tag. */ + @JsonProperty("key") + private String key; + + /** The value of the custom tag. */ + @JsonProperty("value") + private String value; + + public ProjectCustomTag setKey(String key) { + this.key = key; + return this; + } + + public String getKey() { + return key; + } + + public ProjectCustomTag setValue(String value) { + this.value = value; + return this; + } + + public String getValue() { + return value; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + ProjectCustomTag that = (ProjectCustomTag) o; + return Objects.equals(key, that.key) && Objects.equals(value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + return new ToStringer(ProjectCustomTag.class).add("key", key).add("value", value).toString(); + } +} diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectSpec.java index b0c5ff9d6..e421fb4ba 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectSpec.java @@ -6,10 +6,28 @@ import com.databricks.sdk.support.ToStringer; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.protobuf.Duration; +import java.util.Collection; import java.util.Objects; @Generated public class ProjectSpec { + /** + * The desired budget policy to associate with the project. See status.budget_policy_id for the + * policy that is actually applied to the project. + */ + @JsonProperty("budget_policy_id") + private String budgetPolicyId; + + /** + * Custom tags to associate with the project. Forwarded to LBM for billing and cost tracking. To + * update tags, provide the new tag list and include "spec.custom_tags" in the update_mask. To + * clear all tags, provide an empty list and include "spec.custom_tags" in the update_mask. To + * preserve existing tags, omit this field from the update_mask (or use wildcard "*" which + * auto-excludes empty tags). + */ + @JsonProperty("custom_tags") + private Collection customTags; + /** */ @JsonProperty("default_endpoint_settings") private ProjectDefaultEndpointSettings defaultEndpointSettings; @@ -29,6 +47,24 @@ public class ProjectSpec { @JsonProperty("pg_version") private Long pgVersion; + public ProjectSpec setBudgetPolicyId(String budgetPolicyId) { + this.budgetPolicyId = budgetPolicyId; + return this; + } + + public String getBudgetPolicyId() { + return budgetPolicyId; + } + + public ProjectSpec setCustomTags(Collection customTags) { + this.customTags = customTags; + return this; + } + + public Collection getCustomTags() { + return customTags; + } + public ProjectSpec setDefaultEndpointSettings( ProjectDefaultEndpointSettings defaultEndpointSettings) { this.defaultEndpointSettings = defaultEndpointSettings; @@ -71,7 +107,9 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ProjectSpec that = (ProjectSpec) o; - return Objects.equals(defaultEndpointSettings, that.defaultEndpointSettings) + return Objects.equals(budgetPolicyId, that.budgetPolicyId) + && Objects.equals(customTags, that.customTags) + && Objects.equals(defaultEndpointSettings, that.defaultEndpointSettings) && Objects.equals(displayName, that.displayName) && Objects.equals(historyRetentionDuration, that.historyRetentionDuration) && Objects.equals(pgVersion, that.pgVersion); @@ -79,12 +117,20 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(defaultEndpointSettings, displayName, historyRetentionDuration, pgVersion); + return Objects.hash( + budgetPolicyId, + customTags, + defaultEndpointSettings, + displayName, + historyRetentionDuration, + pgVersion); } @Override public String toString() { return new ToStringer(ProjectSpec.class) + .add("budgetPolicyId", budgetPolicyId) + .add("customTags", customTags) .add("defaultEndpointSettings", defaultEndpointSettings) .add("displayName", displayName) .add("historyRetentionDuration", historyRetentionDuration) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectStatus.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectStatus.java index f3fc84fcf..6a6f71ba7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectStatus.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectStatus.java @@ -6,6 +6,7 @@ import com.databricks.sdk.support.ToStringer; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.protobuf.Duration; +import java.util.Collection; import java.util.Objects; @Generated @@ -14,6 +15,14 @@ public class ProjectStatus { @JsonProperty("branch_logical_size_limit_bytes") private Long branchLogicalSizeLimitBytes; + /** The budget policy that is applied to the project. */ + @JsonProperty("budget_policy_id") + private String budgetPolicyId; + + /** The effective custom tags associated with the project. */ + @JsonProperty("custom_tags") + private Collection customTags; + /** The effective default endpoint settings. */ @JsonProperty("default_endpoint_settings") private ProjectDefaultEndpointSettings defaultEndpointSettings; @@ -47,6 +56,24 @@ public Long getBranchLogicalSizeLimitBytes() { return branchLogicalSizeLimitBytes; } + public ProjectStatus setBudgetPolicyId(String budgetPolicyId) { + this.budgetPolicyId = budgetPolicyId; + return this; + } + + public String getBudgetPolicyId() { + return budgetPolicyId; + } + + public ProjectStatus setCustomTags(Collection customTags) { + this.customTags = customTags; + return this; + } + + public Collection getCustomTags() { + return customTags; + } + public ProjectStatus setDefaultEndpointSettings( ProjectDefaultEndpointSettings defaultEndpointSettings) { this.defaultEndpointSettings = defaultEndpointSettings; @@ -108,6 +135,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) return false; ProjectStatus that = (ProjectStatus) o; return Objects.equals(branchLogicalSizeLimitBytes, that.branchLogicalSizeLimitBytes) + && Objects.equals(budgetPolicyId, that.budgetPolicyId) + && Objects.equals(customTags, that.customTags) && Objects.equals(defaultEndpointSettings, that.defaultEndpointSettings) && Objects.equals(displayName, that.displayName) && Objects.equals(historyRetentionDuration, that.historyRetentionDuration) @@ -120,6 +149,8 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( branchLogicalSizeLimitBytes, + budgetPolicyId, + customTags, defaultEndpointSettings, displayName, historyRetentionDuration, @@ -132,6 +163,8 @@ public int hashCode() { public String toString() { return new ToStringer(ProjectStatus.class) .add("branchLogicalSizeLimitBytes", branchLogicalSizeLimitBytes) + .add("budgetPolicyId", budgetPolicyId) + .add("customTags", customTags) .add("defaultEndpointSettings", defaultEndpointSettings) .add("displayName", displayName) .add("historyRetentionDuration", historyRetentionDuration)