Skip to content

Commit b0bfef8

Browse files
Update SDK API to 9b38571bfe7bf0bc595480f28eb93a8db3116985 (#606)
This PR updates the SDK to the latest API changes. NO_CHANGELOG=true Co-authored-by: databricks-ci-ghec-1[bot] <184311507+databricks-ci-ghec-1[bot]@users.noreply.github.com>
1 parent eb1514c commit b0bfef8

File tree

8 files changed

+27
-8
lines changed

8 files changed

+27
-8
lines changed

.codegen/_openapi_sha

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

NEXT_CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
### API Changes
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`.
18-
* [Breaking] Remove `accessModes` and `storageLocation` fields for `com.databricks.sdk.service.sharing.Table`.
18+
* [Breaking] Remove `accessModes` and `storageLocation` fields for `com.databricks.sdk.service.sharing.Table`.

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: TABLE_DELTASHARING_OPEN_DIR_BASED = 290; Next id:291 */
7+
/** Latest kind: CONNECTION_WORKDAY_HCM_USERNAME_PASSWORD = 292; Next id: 293 */
88
@Generated
99
public enum SecurableKind {
1010
TABLE_DB_STORAGE,

databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java

100755100644
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@ public JobPermissions setPermissions(JobPermissionsRequest request) {
300300
* Submit a one-time run. This endpoint allows you to submit a workload directly without creating
301301
* a job. Runs submitted using this endpoint don’t display in the UI. Use the `jobs/runs/get` API
302302
* to check the run state after the job is submitted.
303+
*
304+
* <p>**Important:** Jobs submitted using this endpoint are not saved as a job. They do not show
305+
* up in the Jobs UI, and do not retry when they fail. Because they are not saved, Databricks
306+
* cannot auto-optimize serverless compute in case of failure. If your job fails, you may want to
307+
* use classic compute to specify the compute needs for the job. Alternatively, use the `POST
308+
* /jobs/create` and `POST /jobs/run-now` endpoints to create and run a saved job.
303309
*/
304310
public Wait<Run, SubmitRunResponse> submit(SubmitRun request) {
305311
SubmitRunResponse response = impl.submit(request);

databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsService.java

100755100644
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ GetJobPermissionLevelsResponse getPermissionLevels(
129129
* Submit a one-time run. This endpoint allows you to submit a workload directly without creating
130130
* a job. Runs submitted using this endpoint don’t display in the UI. Use the `jobs/runs/get` API
131131
* to check the run state after the job is submitted.
132+
*
133+
* <p>**Important:** Jobs submitted using this endpoint are not saved as a job. They do not show
134+
* up in the Jobs UI, and do not retry when they fail. Because they are not saved, Databricks
135+
* cannot auto-optimize serverless compute in case of failure. If your job fails, you may want to
136+
* use classic compute to specify the compute needs for the job. Alternatively, use the `POST
137+
* /jobs/create` and `POST /jobs/run-now` endpoints to create and run a saved job.
132138
*/
133139
SubmitRunResponse submit(SubmitRun submitRun);
134140

databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NccPrivateEndpointRule.java

100755100644
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ public class NccPrivateEndpointRule {
2626
* and is ready to use in your serverless compute resources. - REJECTED: Connection was rejected
2727
* by the private link resource owner. - DISCONNECTED: Connection was removed by the private link
2828
* resource owner, the private endpoint becomes informative and should be deleted for clean-up. -
29-
* EXPIRED: If the endpoint was created but not approved in 14 days, it will be EXPIRED.
29+
* EXPIRED: If the endpoint was created but not approved in 14 days, it will be EXPIRED. -
30+
* CREATING: The endpoint creation is in progress. Once successfully created, the state will
31+
* transition to PENDING. - CREATE_FAILED: The endpoint creation failed. You can check the
32+
* error_message field for more details.
3033
*/
3134
@JsonProperty("connection_state")
3235
private NccPrivateEndpointRulePrivateLinkConnectionState connectionState;

databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java

100755100644
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ public ProviderInfo get(GetProviderRequest request) {
6161

6262
/**
6363
* Gets an array of available authentication providers. The caller must either be a metastore
64-
* admin or the owner of the providers. Providers not owned by the caller are not included in the
65-
* response. There is no guarantee of a specific ordering of the elements in the array.
64+
* admin, have the **USE_PROVIDER** privilege on the providers, or be the owner of the providers.
65+
* Providers not owned by the caller and for which the caller does not have the **USE_PROVIDER**
66+
* privilege are not included in the response. There is no guarantee of a specific ordering of the
67+
* elements in the array.
6668
*/
6769
public Iterable<ProviderInfo> list(ListProvidersRequest request) {
6870

databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersService.java

100755100644
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ public interface ProvidersService {
3333

3434
/**
3535
* Gets an array of available authentication providers. The caller must either be a metastore
36-
* admin or the owner of the providers. Providers not owned by the caller are not included in the
37-
* response. There is no guarantee of a specific ordering of the elements in the array.
36+
* admin, have the **USE_PROVIDER** privilege on the providers, or be the owner of the providers.
37+
* Providers not owned by the caller and for which the caller does not have the **USE_PROVIDER**
38+
* privilege are not included in the response. There is no guarantee of a specific ordering of the
39+
* elements in the array.
3840
*/
3941
ListProvidersResponse list(ListProvidersRequest listProvidersRequest);
4042

0 commit comments

Comments
 (0)