Skip to content

Commit d46a3c5

Browse files
Update SDK API to 8921a828d1741af0952eb5c4f0292c194c0d5f38 (#607)
This PR updates the SDK to the latest API changes. NO_CHANGELOG=true Co-authored-by: databricks-ci-ghec-2[bot] <184307802+databricks-ci-ghec-2[bot]@users.noreply.github.com>
1 parent b0bfef8 commit d46a3c5

30 files changed

+674
-143
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9b38571bfe7bf0bc595480f28eb93a8db3116985
1+
8921a828d1741af0952eb5c4f0292c194c0d5f38

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2086,14 +2086,16 @@
20862086
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CreateRoleOperation.java linguist-generated=true
20872087
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CreateRoleRequest.java linguist-generated=true
20882088
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DatabricksServiceExceptionWithDetailsProto.java linguist-generated=true
2089+
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteBranchOperation.java linguist-generated=true
20892090
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteBranchRequest.java linguist-generated=true
2091+
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteEndpointOperation.java linguist-generated=true
20902092
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteEndpointRequest.java linguist-generated=true
2093+
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteProjectOperation.java linguist-generated=true
20912094
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteProjectRequest.java linguist-generated=true
20922095
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleOperation.java linguist-generated=true
20932096
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/DeleteRoleRequest.java linguist-generated=true
20942097
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/Endpoint.java linguist-generated=true
20952098
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointOperationMetadata.java linguist-generated=true
2096-
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointPoolerMode.java linguist-generated=true
20972099
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSettings.java linguist-generated=true
20982100
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSpec.java linguist-generated=true
20992101
/home/ubuntu/workspace/databricks-sdk-java/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointStatus.java linguist-generated=true

NEXT_CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,16 @@
1616
* Add `TABLE_DELTASHARING_OPEN_DIR_BASED` enum value for `com.databricks.sdk.service.catalog.SecurableKind`.
1717
* Add `CREATING` and `CREATE_FAILED` enum values for `com.databricks.sdk.service.settings.NccPrivateEndpointRulePrivateLinkConnectionState`.
1818
* [Breaking] Remove `accessModes` and `storageLocation` fields for `com.databricks.sdk.service.sharing.Table`.
19+
* Add `errorMessage` field for `com.databricks.sdk.service.settings.CreatePrivateEndpointRule`.
20+
* Add `errorMessage` field for `com.databricks.sdk.service.settings.NccPrivateEndpointRule`.
21+
* Add `errorMessage` field for `com.databricks.sdk.service.settings.UpdatePrivateEndpointRule`.
22+
* Add `RATE_LIMITED` enum value for `com.databricks.sdk.service.compute.TerminationReasonCode`.
23+
* Add `RATE_LIMITED` enum value for `com.databricks.sdk.service.sql.TerminationReasonCode`.
24+
* [Breaking] Add long-running operation configuration for `workspaceClient.postgres().deleteBranch()` method.
25+
* [Breaking] Add long-running operation configuration for `workspaceClient.postgres().deleteEndpoint()` method.
26+
* [Breaking] Add long-running operation configuration for `workspaceClient.postgres().deleteProject()` method.
27+
* [Breaking] Change `deleteBranch()`, `deleteEndpoint()` and `deleteProject()` methods for `workspaceClient.postgres()` service to return `com.databricks.sdk.service.postgres.Operation` class.
28+
* [Breaking] Remove `pgbouncerSettings` field for `com.databricks.sdk.service.postgres.EndpointSettings`.
29+
* [Breaking] Remove `poolerMode` field for `com.databricks.sdk.service.postgres.EndpointSpec`.
30+
* [Breaking] Remove `poolerMode` field for `com.databricks.sdk.service.postgres.EndpointStatus`.
31+
* [Breaking] Remove `pgbouncerSettings` field for `com.databricks.sdk.service.postgres.ProjectDefaultEndpointSettings`.

databricks-sdk-java/src/main/java/com/databricks/sdk/WorkspaceClient.java

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import org.slf4j.LoggerFactory;
1515

1616
/**
17-
* Apps run directly on a customers Databricks instance, integrate with their data, use and extend
17+
* Apps run directly on a customer's Databricks instance, integrate with their data, use and extend
1818
* Databricks services, and enable users to interact through single sign-on.
1919
*/
2020
@Generated

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

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.databricks.sdk.support.Generated;
55

66
/**
7-
* Apps run directly on a customers Databricks instance, integrate with their data, use and extend
7+
* Apps run directly on a customer's Databricks instance, integrate with their data, use and extend
88
* Databricks services, and enable users to interact through single sign-on.
99
*
1010
* <p>This is the high-level interface, that contains generated methods.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public enum TerminationReasonCode {
153153
NPIP_TUNNEL_TOKEN_FAILURE,
154154
POD_ASSIGNMENT_FAILURE,
155155
POD_SCHEDULING_FAILURE,
156+
RATE_LIMITED,
156157
REQUEST_REJECTED,
157158
REQUEST_THROTTLED,
158159
RESOURCE_USAGE_BLOCKED,

databricks-sdk-java/src/main/java/com/databricks/sdk/service/database/DatabaseInstance.java

100755100644
Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,41 +36,69 @@ public class DatabaseInstance {
3636
@JsonProperty("custom_tags")
3737
private Collection<CustomTag> customTags;
3838

39-
/** Deprecated. The sku of the instance; this field will always match the value of capacity. */
39+
/**
40+
* Deprecated. The sku of the instance; this field will always match the value of capacity. This
41+
* is an output only field that contains the value computed from the input field combined with
42+
* server side defaults. Use the field without the effective_ prefix to set the value.
43+
*/
4044
@JsonProperty("effective_capacity")
4145
private String effectiveCapacity;
4246

43-
/** The recorded custom tags associated with the instance. */
47+
/**
48+
* The recorded custom tags associated with the instance. This is an output only field that
49+
* contains the value computed from the input field combined with server side defaults. Use the
50+
* field without the effective_ prefix to set the value.
51+
*/
4452
@JsonProperty("effective_custom_tags")
4553
private Collection<CustomTag> effectiveCustomTags;
4654

47-
/** Whether the instance has PG native password login enabled. */
55+
/**
56+
* Whether the instance has PG native password login enabled. This is an output only field that
57+
* contains the value computed from the input field combined with server side defaults. Use the
58+
* field without the effective_ prefix to set the value.
59+
*/
4860
@JsonProperty("effective_enable_pg_native_login")
4961
private Boolean effectiveEnablePgNativeLogin;
5062

51-
/** Whether secondaries serving read-only traffic are enabled. Defaults to false. */
63+
/**
64+
* Whether secondaries serving read-only traffic are enabled. Defaults to false. This is an output
65+
* only field that contains the value computed from the input field combined with server side
66+
* defaults. Use the field without the effective_ prefix to set the value.
67+
*/
5268
@JsonProperty("effective_enable_readable_secondaries")
5369
private Boolean effectiveEnableReadableSecondaries;
5470

5571
/**
5672
* The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults
57-
* to 1 primary and 0 secondaries.
73+
* to 1 primary and 0 secondaries. This is an output only field that contains the value computed
74+
* from the input field combined with server side defaults. Use the field without the effective_
75+
* prefix to set the value.
5876
*/
5977
@JsonProperty("effective_node_count")
6078
private Long effectiveNodeCount;
6179

6280
/**
6381
* The retention window for the instance. This is the time window in days for which the historical
64-
* data is retained.
82+
* data is retained. This is an output only field that contains the value computed from the input
83+
* field combined with server side defaults. Use the field without the effective_ prefix to set
84+
* the value.
6585
*/
6686
@JsonProperty("effective_retention_window_in_days")
6787
private Long effectiveRetentionWindowInDays;
6888

69-
/** Whether the instance is stopped. */
89+
/**
90+
* Whether the instance is stopped. This is an output only field that contains the value computed
91+
* from the input field combined with server side defaults. Use the field without the effective_
92+
* prefix to set the value.
93+
*/
7094
@JsonProperty("effective_stopped")
7195
private Boolean effectiveStopped;
7296

73-
/** The policy that is applied to the instance. */
97+
/**
98+
* The policy that is applied to the instance. This is an output only field that contains the
99+
* value computed from the input field combined with server side defaults. Use the field without
100+
* the effective_ prefix to set the value.
101+
*/
74102
@JsonProperty("effective_usage_policy_id")
75103
private String effectiveUsagePolicyId;
76104

databricks-sdk-java/src/main/java/com/databricks/sdk/service/database/DatabaseInstanceRef.java

100755100644
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public class DatabaseInstanceRef {
3030
/**
3131
* For a parent ref instance, this is the LSN on the parent instance from which the instance was
3232
* created. For a child ref instance, this is the LSN on the instance from which the child
33-
* instance was created.
33+
* instance was created. This is an output only field that contains the value computed from the
34+
* input field combined with server side defaults. Use the field without the effective_ prefix to
35+
* set the value.
3436
*/
3537
@JsonProperty("effective_lsn")
3638
private String effectiveLsn;

databricks-sdk-java/src/main/java/com/databricks/sdk/service/database/DatabaseInstanceRole.java

100755100644
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ public class DatabaseInstanceRole {
1414
@JsonProperty("attributes")
1515
private DatabaseInstanceRoleAttributes attributes;
1616

17-
/** The attributes that are applied to the role. */
17+
/**
18+
* The attributes that are applied to the role. This is an output only field that contains the
19+
* value computed from the input field combined with server side defaults. Use the field without
20+
* the effective_ prefix to set the value.
21+
*/
1822
@JsonProperty("effective_attributes")
1923
private DatabaseInstanceRoleAttributes effectiveAttributes;
2024

0 commit comments

Comments
 (0)