Skip to content

Commit 01e06ae

Browse files
committed
Update CLI to latest API Definitions
1 parent edabd9b commit 01e06ae

File tree

30 files changed

+4492
-149
lines changed

30 files changed

+4492
-149
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b95c2c6e21bec9551ec7d7d51ddf2dfe390b4522
1+
f2843dd06e095a39dda2d454a97ceaf6767a2bf3

.gitattributes

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ cmd/account/enable-ip-access-lists/enable-ip-access-lists.go linguist-generated=
1111
cmd/account/encryption-keys/encryption-keys.go linguist-generated=true
1212
cmd/account/esm-enablement-account/esm-enablement-account.go linguist-generated=true
1313
cmd/account/federation-policy/federation-policy.go linguist-generated=true
14-
cmd/account/groups/groups.go linguist-generated=true
14+
cmd/account/groups-v2/groups-v2.go linguist-generated=true
15+
cmd/account/iam-v2/iam-v2.go linguist-generated=true
1516
cmd/account/ip-access-lists/ip-access-lists.go linguist-generated=true
1617
cmd/account/llm-proxy-partner-powered-account/llm-proxy-partner-powered-account.go linguist-generated=true
1718
cmd/account/llm-proxy-partner-powered-enforce/llm-proxy-partner-powered-enforce.go linguist-generated=true
@@ -27,13 +28,13 @@ cmd/account/private-access/private-access.go linguist-generated=true
2728
cmd/account/published-app-integration/published-app-integration.go linguist-generated=true
2829
cmd/account/service-principal-federation-policy/service-principal-federation-policy.go linguist-generated=true
2930
cmd/account/service-principal-secrets/service-principal-secrets.go linguist-generated=true
30-
cmd/account/service-principals/service-principals.go linguist-generated=true
31+
cmd/account/service-principals-v2/service-principals-v2.go linguist-generated=true
3132
cmd/account/settings-v2/settings-v2.go linguist-generated=true
3233
cmd/account/settings/settings.go linguist-generated=true
3334
cmd/account/storage-credentials/storage-credentials.go linguist-generated=true
3435
cmd/account/storage/storage.go linguist-generated=true
3536
cmd/account/usage-dashboards/usage-dashboards.go linguist-generated=true
36-
cmd/account/users/users.go linguist-generated=true
37+
cmd/account/users-v2/users-v2.go linguist-generated=true
3738
cmd/account/vpc-endpoints/vpc-endpoints.go linguist-generated=true
3839
cmd/account/workspace-assignment/workspace-assignment.go linguist-generated=true
3940
cmd/account/workspace-network-configuration/workspace-network-configuration.go linguist-generated=true
@@ -86,14 +87,15 @@ cmd/workspace/experiments/experiments.go linguist-generated=true
8687
cmd/workspace/external-lineage/external-lineage.go linguist-generated=true
8788
cmd/workspace/external-locations/external-locations.go linguist-generated=true
8889
cmd/workspace/external-metadata/external-metadata.go linguist-generated=true
90+
cmd/workspace/feature-engineering/feature-engineering.go linguist-generated=true
8991
cmd/workspace/feature-store/feature-store.go linguist-generated=true
9092
cmd/workspace/forecasting/forecasting.go linguist-generated=true
9193
cmd/workspace/functions/functions.go linguist-generated=true
9294
cmd/workspace/genie/genie.go linguist-generated=true
9395
cmd/workspace/git-credentials/git-credentials.go linguist-generated=true
9496
cmd/workspace/global-init-scripts/global-init-scripts.go linguist-generated=true
9597
cmd/workspace/grants/grants.go linguist-generated=true
96-
cmd/workspace/groups/groups.go linguist-generated=true
98+
cmd/workspace/groups-v2/groups-v2.go linguist-generated=true
9799
cmd/workspace/instance-pools/instance-pools.go linguist-generated=true
98100
cmd/workspace/instance-profiles/instance-profiles.go linguist-generated=true
99101
cmd/workspace/ip-access-lists/ip-access-lists.go linguist-generated=true
@@ -142,7 +144,7 @@ cmd/workspace/rfa/rfa.go linguist-generated=true
142144
cmd/workspace/schemas/schemas.go linguist-generated=true
143145
cmd/workspace/secrets/secrets.go linguist-generated=true
144146
cmd/workspace/service-principal-secrets-proxy/service-principal-secrets-proxy.go linguist-generated=true
145-
cmd/workspace/service-principals/service-principals.go linguist-generated=true
147+
cmd/workspace/service-principals-v2/service-principals-v2.go linguist-generated=true
146148
cmd/workspace/serving-endpoints/serving-endpoints.go linguist-generated=true
147149
cmd/workspace/settings/settings.go linguist-generated=true
148150
cmd/workspace/shares/shares.go linguist-generated=true
@@ -156,12 +158,13 @@ cmd/workspace/temporary-path-credentials/temporary-path-credentials.go linguist-
156158
cmd/workspace/temporary-table-credentials/temporary-table-credentials.go linguist-generated=true
157159
cmd/workspace/token-management/token-management.go linguist-generated=true
158160
cmd/workspace/tokens/tokens.go linguist-generated=true
159-
cmd/workspace/users/users.go linguist-generated=true
161+
cmd/workspace/users-v2/users-v2.go linguist-generated=true
160162
cmd/workspace/vector-search-endpoints/vector-search-endpoints.go linguist-generated=true
161163
cmd/workspace/vector-search-indexes/vector-search-indexes.go linguist-generated=true
162164
cmd/workspace/volumes/volumes.go linguist-generated=true
163165
cmd/workspace/warehouses/warehouses.go linguist-generated=true
164166
cmd/workspace/workspace-bindings/workspace-bindings.go linguist-generated=true
165167
cmd/workspace/workspace-conf/workspace-conf.go linguist-generated=true
168+
cmd/workspace/workspace-iam-v2/workspace-iam-v2.go linguist-generated=true
166169
cmd/workspace/workspace-settings-v2/workspace-settings-v2.go linguist-generated=true
167170
cmd/workspace/workspace/workspace.go linguist-generated=true

NEXT_CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@
1212
* Add new Lakeflow Pipelines support for bundle generate ([#3568](https://github.com/databricks/cli/pull/3568))
1313

1414
### API Changes
15+
* Added `databricks account account-groups-v2` command group.
16+
* Added `databricks account account-iam-v2` command group.
17+
* Added `databricks feature-engineering` command group.
18+
* Added `databricks shares list-shares` command.

bundle/internal/schema/annotations_openapi.yml

Lines changed: 79 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -275,34 +275,31 @@ github.com/databricks/cli/bundle/config/resources.DatabaseInstance:
275275
"creator":
276276
"description": |-
277277
The email of the creator of the instance.
278+
"effective_capacity":
279+
"description": |-
280+
Deprecated. The sku of the instance; this field will always match the value of capacity.
281+
"deprecation_message": |-
282+
This field is deprecated
278283
"effective_enable_pg_native_login":
279284
"description": |-
280-
xref AIP-129. `enable_pg_native_login` is owned by the client, while `effective_enable_pg_native_login` is owned by the server.
281-
`enable_pg_native_login` will only be set in Create/Update response messages if and only if the user provides the field via the request.
282-
`effective_enable_pg_native_login` on the other hand will always bet set in all response messages (Create/Update/Get/List).
285+
Whether the instance has PG native password login enabled.
283286
"effective_enable_readable_secondaries":
284287
"description": |-
285-
xref AIP-129. `enable_readable_secondaries` is owned by the client, while `effective_enable_readable_secondaries` is owned by the server.
286-
`enable_readable_secondaries` will only be set in Create/Update response messages if and only if the user provides the field via the request.
287-
`effective_enable_readable_secondaries` on the other hand will always bet set in all response messages (Create/Update/Get/List).
288+
Whether secondaries serving read-only traffic are enabled. Defaults to false.
288289
"effective_node_count":
289290
"description": |-
290-
xref AIP-129. `node_count` is owned by the client, while `effective_node_count` is owned by the server.
291-
`node_count` will only be set in Create/Update response messages if and only if the user provides the field via the request.
292-
`effective_node_count` on the other hand will always bet set in all response messages (Create/Update/Get/List).
291+
The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
292+
1 primary and 0 secondaries.
293293
"effective_retention_window_in_days":
294294
"description": |-
295-
xref AIP-129. `retention_window_in_days` is owned by the client, while `effective_retention_window_in_days` is owned by the server.
296-
`retention_window_in_days` will only be set in Create/Update response messages if and only if the user provides the field via the request.
297-
`effective_retention_window_in_days` on the other hand will always bet set in all response messages (Create/Update/Get/List).
295+
The retention window for the instance. This is the time window in days
296+
for which the historical data is retained.
298297
"effective_stopped":
299298
"description": |-
300-
xref AIP-129. `stopped` is owned by the client, while `effective_stopped` is owned by the server.
301-
`stopped` will only be set in Create/Update response messages if and only if the user provides the field via the request.
302-
`effective_stopped` on the other hand will always bet set in all response messages (Create/Update/Get/List).
299+
Whether the instance is stopped.
303300
"enable_pg_native_login":
304301
"description": |-
305-
Whether the instance has PG native password login enabled. Defaults to true.
302+
Whether to enable PG native password login on the instance. Defaults to false.
306303
"enable_readable_secondaries":
307304
"description": |-
308305
Whether to enable secondaries to serve read-only traffic. Defaults to false.
@@ -312,7 +309,7 @@ github.com/databricks/cli/bundle/config/resources.DatabaseInstance:
312309
"node_count":
313310
"description": |-
314311
The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
315-
1 primary and 0 secondaries.
312+
1 primary and 0 secondaries. This field is input only, see effective_node_count for the output.
316313
"parent_instance_ref":
317314
"description": |-
318315
The ref of the parent instance. This is only available if the instance is
@@ -339,7 +336,7 @@ github.com/databricks/cli/bundle/config/resources.DatabaseInstance:
339336
The current state of the instance.
340337
"stopped":
341338
"description": |-
342-
Whether the instance is stopped.
339+
Whether to stop the instance. An input only param, see effective_stopped for the output.
343340
"uid":
344341
"description": |-
345342
An immutable UUID identifier for the instance.
@@ -595,8 +592,6 @@ github.com/databricks/cli/bundle/config/resources.Pipeline:
595592
Write-only setting, available only in Create/Update calls. Specifies the user or service principal that the pipeline runs as. If not specified, the pipeline runs as the user who created the pipeline.
596593
597594
Only `user_name` or `service_principal_name` can be specified. If both are specified, an error is thrown.
598-
"x-databricks-preview": |-
599-
PRIVATE
600595
"schema":
601596
"description": |-
602597
The default schema (database) where tables are read from or published to.
@@ -1664,6 +1659,13 @@ github.com/databricks/databricks-sdk-go/service/compute.Environment:
16641659
Each version comes with a specific Python version and a set of Python packages.
16651660
The version is a string, consisting of an integer.
16661661
"jar_dependencies":
1662+
"description": |-
1663+
Use `java_dependencies` instead.
1664+
"deprecation_message": |-
1665+
This field is deprecated
1666+
"x-databricks-preview": |-
1667+
PRIVATE
1668+
"java_dependencies":
16671669
"description": |-
16681670
List of jar dependencies, should be string representing volume paths. For example: `/Volumes/path/to/test.jar`.
16691671
"x-databricks-preview": |-
@@ -1939,9 +1941,6 @@ github.com/databricks/databricks-sdk-go/service/database.DatabaseInstanceRef:
19391941
Output: Only populated if provided as input to create a child instance.
19401942
"effective_lsn":
19411943
"description": |-
1942-
xref AIP-129. `lsn` is owned by the client, while `effective_lsn` is owned by the server.
1943-
`lsn` will only be set in Create/Update response messages if and only if the user provides the field via the request.
1944-
`effective_lsn` on the other hand will always bet set in all response messages (Create/Update/Get/List).
19451944
For a parent ref instance, this is the LSN on the parent instance from which the
19461945
instance was created.
19471946
For a child ref instance, this is the LSN on the instance from which the child instance
@@ -3087,7 +3086,7 @@ github.com/databricks/databricks-sdk-go/service/jobs.TableUpdateTriggerConfigura
30873086
github.com/databricks/databricks-sdk-go/service/jobs.Task:
30883087
"clean_rooms_notebook_task":
30893088
"description": |-
3090-
The task runs a [clean rooms](https://docs.databricks.com/en/clean-rooms/index.html) notebook
3089+
The task runs a [clean rooms](https://docs.databricks.com/clean-rooms/index.html) notebook
30913090
when the `clean_rooms_notebook_task` field is present.
30923091
"condition_task":
30933092
"description": |-
@@ -3119,6 +3118,11 @@ github.com/databricks/databricks-sdk-go/service/jobs.Task:
31193118
"disable_auto_optimization":
31203119
"description": |-
31213120
An option to disable auto optimization in serverless
3121+
"disabled":
3122+
"description": |-
3123+
An optional flag to disable the task. If set to true, the task will not run even if it is part of a job.
3124+
"x-databricks-preview": |-
3125+
PRIVATE
31223126
"email_notifications":
31233127
"description": |-
31243128
An optional set of email addresses that is notified when runs of this task begin or complete as well as when this task is deleted. The default behavior is to not send any emails.
@@ -3196,15 +3200,9 @@ github.com/databricks/databricks-sdk-go/service/jobs.Task:
31963200
The task runs a Python file when the `spark_python_task` field is present.
31973201
"spark_submit_task":
31983202
"description": |-
3199-
(Legacy) The task runs the spark-submit script when the `spark_submit_task` field is present. This task can run only on new clusters and is not compatible with serverless compute.
3200-
3201-
In the `new_cluster` specification, `libraries` and `spark_conf` are not supported. Instead, use `--jars` and `--py-files` to add Java and Python libraries and `--conf` to set the Spark configurations.
3202-
3203-
`master`, `deploy-mode`, and `executor-cores` are automatically configured by Databricks; you _cannot_ specify them in parameters.
3204-
3205-
By default, the Spark submit job uses all available memory (excluding reserved memory for Databricks services). You can set `--driver-memory`, and `--executor-memory` to a smaller value to leave some room for off-heap usage.
3206-
3207-
The `--jars`, `--py-files`, `--files` arguments support DBFS and S3 paths.
3203+
(Legacy) The task runs the spark-submit script when the spark_submit_task field is present. Databricks recommends using the spark_jar_task instead; see [Spark Submit task for jobs](/jobs/spark-submit).
3204+
"deprecation_message": |-
3205+
This field is deprecated
32083206
"sql_task":
32093207
"description": |-
32103208
The task runs a SQL query or file, or it refreshes a SQL alert or a legacy SQL dashboard when the `sql_task` field is present.
@@ -3425,6 +3423,13 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefin
34253423
"ingestion_gateway_id":
34263424
"description": |-
34273425
Immutable. Identifier for the gateway that is used by this ingestion pipeline to communicate with the source database. This is used with connectors to databases like SQL Server.
3426+
"netsuite_jar_path":
3427+
"description": |-
3428+
Netsuite only configuration. When the field is set for a netsuite connector,
3429+
the jar stored in the field will be validated and added to the classpath of
3430+
pipeline's cluster.
3431+
"x-databricks-preview": |-
3432+
PRIVATE
34283433
"objects":
34293434
"description": |-
34303435
Required. Settings specifying tables to replicate and the destination for the replicated tables.
@@ -3478,6 +3483,40 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefin
34783483
This field is mutable and can be updated without triggering a full snapshot.
34793484
"x-databricks-preview": |-
34803485
PRIVATE
3486+
github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefinitionWorkdayReportParameters:
3487+
"incremental":
3488+
"description": |-
3489+
(Optional) Marks the report as incremental.
3490+
This field is deprecated and should not be used. Use `parameters` instead. The incremental behavior is now
3491+
controlled by the `parameters` field.
3492+
"deprecation_message": |-
3493+
This field is deprecated
3494+
"parameters":
3495+
"description": |-
3496+
Parameters for the Workday report. Each key represents the parameter name (e.g., "start_date", "end_date"),
3497+
and the corresponding value is a SQL-like expression used to compute the parameter value at runtime.
3498+
Example:
3499+
{
3500+
"start_date": "{ coalesce(current_offset(), date(\"2025-02-01\")) }",
3501+
"end_date": "{ current_date() - INTERVAL 1 DAY }"
3502+
}
3503+
"report_parameters":
3504+
"description": |-
3505+
(Optional) Additional custom parameters for Workday Report
3506+
This field is deprecated and should not be used. Use `parameters` instead.
3507+
"deprecation_message": |-
3508+
This field is deprecated
3509+
github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefinitionWorkdayReportParametersQueryKeyValue:
3510+
"key":
3511+
"description": |-
3512+
Key for the report parameter, can be a column name or other metadata
3513+
"value":
3514+
"description": |-
3515+
Value for the report parameter.
3516+
Possible values it can take are these sql functions:
3517+
1. coalesce(current_offset(), date("YYYY-MM-DD")) -> if current_offset() is null, then the passed date, else current_offset()
3518+
2. current_date()
3519+
3. date_sub(current_date(), x) -> subtract x (some non-negative integer) days from current date
34813520
github.com/databricks/databricks-sdk-go/service/pipelines.IngestionSourceType:
34823521
"_":
34833522
"enum":
@@ -3517,6 +3556,8 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionSourceType:
35173556
CONFLUENCE
35183557
- |-
35193558
META_MARKETING
3559+
- |-
3560+
FOREIGN_CATALOG
35203561
github.com/databricks/databricks-sdk-go/service/pipelines.ManualTrigger: {}
35213562
github.com/databricks/databricks-sdk-go/service/pipelines.NotebookLibrary:
35223563
"path":
@@ -3869,6 +3910,11 @@ github.com/databricks/databricks-sdk-go/service/pipelines.TableSpecificConfig:
38693910
"sequence_by":
38703911
"description": |-
38713912
The column names specifying the logical order of events in the source data. Delta Live Tables uses this sequencing to handle change events that arrive out of order.
3913+
"workday_report_parameters":
3914+
"description": |-
3915+
(Optional) Additional custom parameters for Workday Report
3916+
"x-databricks-preview": |-
3917+
PRIVATE
38723918
github.com/databricks/databricks-sdk-go/service/pipelines.TableSpecificConfigScdType:
38733919
"_":
38743920
"description": |-

bundle/internal/schema/annotations_openapi_overrides.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,10 @@ github.com/databricks/cli/bundle/config/resources.SqlWarehousePermissionLevel:
591591
CAN_MONITOR
592592
- |-
593593
CAN_VIEW
594+
github.com/databricks/cli/bundle/config/resources.SyncedDatabaseTable:
595+
"lifecycle":
596+
"description": |-
597+
PLACEHOLDER
594598
github.com/databricks/cli/bundle/config/resources.Volume:
595599
"_":
596600
"markdown_description": |-

bundle/internal/validation/generated/enum_fields.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)