Skip to content

Commit 549d390

Browse files
committed
update go sdk to 0.80.0
1 parent 07e3362 commit 549d390

File tree

23 files changed

+1756
-328
lines changed

23 files changed

+1756
-328
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ff038204ea0f04d1ee43bc4a0221cb6c0a9be5d8
1+
3ae6f76120079424c8654263eafbc30ec0551854

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ cmd/workspace/online-tables/online-tables.go linguist-generated=true
108108
cmd/workspace/permission-migration/permission-migration.go linguist-generated=true
109109
cmd/workspace/permissions/permissions.go linguist-generated=true
110110
cmd/workspace/pipelines/pipelines.go linguist-generated=true
111+
cmd/workspace/policies/policies.go linguist-generated=true
111112
cmd/workspace/policy-compliance-for-clusters/policy-compliance-for-clusters.go linguist-generated=true
112113
cmd/workspace/policy-compliance-for-jobs/policy-compliance-for-jobs.go linguist-generated=true
113114
cmd/workspace/policy-families/policy-families.go linguist-generated=true
@@ -146,6 +147,7 @@ cmd/workspace/storage-credentials/storage-credentials.go linguist-generated=true
146147
cmd/workspace/system-schemas/system-schemas.go linguist-generated=true
147148
cmd/workspace/table-constraints/table-constraints.go linguist-generated=true
148149
cmd/workspace/tables/tables.go linguist-generated=true
150+
cmd/workspace/temporary-path-credentials/temporary-path-credentials.go linguist-generated=true
149151
cmd/workspace/temporary-table-credentials/temporary-table-credentials.go linguist-generated=true
150152
cmd/workspace/token-management/token-management.go linguist-generated=true
151153
cmd/workspace/tokens/tokens.go linguist-generated=true

bundle/internal/schema/annotations_openapi.yml

Lines changed: 151 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ github.com/databricks/cli/bundle/config/resources.App:
55
The active deployment of the app. A deployment is considered active when it has been deployed
66
to the app compute.
77
"app_status": {}
8-
"budget_policy_id":
9-
"description": |-
10-
TODO: Deprecate this field after serverless entitlements are released to all prod stages
11-
and the new usage_policy_id is properly populated and used.
8+
"budget_policy_id": {}
129
"compute_status": {}
1310
"create_time":
1411
"description": |-
@@ -23,10 +20,7 @@ github.com/databricks/cli/bundle/config/resources.App:
2320
"description":
2421
"description": |-
2522
The description of the app.
26-
"effective_budget_policy_id":
27-
"description": |-
28-
TODO: Deprecate this field after serverless entitlements are released to all prod stages
29-
and the new usage_policy_id is properly populated and used.
23+
"effective_budget_policy_id": {}
3024
"effective_user_api_scopes":
3125
"description": |-
3226
The effective api scopes granted to the user access token.
@@ -252,6 +246,83 @@ github.com/databricks/cli/bundle/config/resources.Cluster:
252246
"workload_type":
253247
"description": |-
254248
Cluster Attributes showing for clusters workload types.
249+
github.com/databricks/cli/bundle/config/resources.DatabaseInstance:
250+
"_":
251+
"description": |-
252+
A DatabaseInstance represents a logical Postgres instance, comprised of both compute and storage.
253+
"capacity":
254+
"description": |-
255+
The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8".
256+
"child_instance_refs":
257+
"description": |-
258+
The refs of the child instances. This is only available if the instance is
259+
parent instance.
260+
"creation_time":
261+
"description": |-
262+
The timestamp when the instance was created.
263+
"creator":
264+
"description": |-
265+
The email of the creator of the instance.
266+
"effective_enable_readable_secondaries":
267+
"description": |-
268+
xref AIP-129. `enable_readable_secondaries` is owned by the client, while `effective_enable_readable_secondaries` is owned by the server.
269+
`enable_readable_secondaries` will only be set in Create/Update response messages if and only if the user provides the field via the request.
270+
`effective_enable_readable_secondaries` on the other hand will always bet set in all response messages (Create/Update/Get/List).
271+
"effective_node_count":
272+
"description": |-
273+
xref AIP-129. `node_count` is owned by the client, while `effective_node_count` is owned by the server.
274+
`node_count` will only be set in Create/Update response messages if and only if the user provides the field via the request.
275+
`effective_node_count` on the other hand will always bet set in all response messages (Create/Update/Get/List).
276+
"effective_retention_window_in_days":
277+
"description": |-
278+
xref AIP-129. `retention_window_in_days` is owned by the client, while `effective_retention_window_in_days` is owned by the server.
279+
`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.
280+
`effective_retention_window_in_days` on the other hand will always bet set in all response messages (Create/Update/Get/List).
281+
"effective_stopped":
282+
"description": |-
283+
xref AIP-129. `stopped` is owned by the client, while `effective_stopped` is owned by the server.
284+
`stopped` will only be set in Create/Update response messages if and only if the user provides the field via the request.
285+
`effective_stopped` on the other hand will always bet set in all response messages (Create/Update/Get/List).
286+
"enable_readable_secondaries":
287+
"description": |-
288+
Whether to enable secondaries to serve read-only traffic. Defaults to false.
289+
"name":
290+
"description": |-
291+
The name of the instance. This is the unique identifier for the instance.
292+
"node_count":
293+
"description": |-
294+
The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
295+
1 primary and 0 secondaries.
296+
"parent_instance_ref":
297+
"description": |-
298+
The ref of the parent instance. This is only available if the instance is
299+
child instance.
300+
Input: For specifying the parent instance to create a child instance. Optional.
301+
Output: Only populated if provided as input to create a child instance.
302+
"pg_version":
303+
"description": |-
304+
The version of Postgres running on the instance.
305+
"read_only_dns":
306+
"description": |-
307+
The DNS endpoint to connect to the instance for read only access. This is only available if
308+
enable_readable_secondaries is true.
309+
"read_write_dns":
310+
"description": |-
311+
The DNS endpoint to connect to the instance for read+write access.
312+
"retention_window_in_days":
313+
"description": |-
314+
The retention window for the instance. This is the time window in days
315+
for which the historical data is retained. The default value is 7 days.
316+
Valid values are 2 to 35 days.
317+
"state":
318+
"description": |-
319+
The current state of the instance.
320+
"stopped":
321+
"description": |-
322+
Whether the instance is stopped.
323+
"uid":
324+
"description": |-
325+
An immutable UUID identifier for the instance.
255326
github.com/databricks/cli/bundle/config/resources.Job:
256327
"budget_policy_id":
257328
"description": |-
@@ -348,6 +419,13 @@ github.com/databricks/cli/bundle/config/resources.Job:
348419
"trigger":
349420
"description": |-
350421
A configuration to trigger a run when certain conditions are met. The default behavior is that the job runs only when triggered by clicking “Run Now” in the Jobs UI or sending an API request to `runNow`.
422+
"usage_policy_id":
423+
"description": |-
424+
The id of the user specified usage policy to use for this job.
425+
If not specified, a default usage policy may be applied when creating or modifying the job.
426+
See `effective_budget_policy_id` for the budget policy used by this workload.
427+
"x-databricks-preview": |-
428+
PRIVATE
351429
"webhook_notifications":
352430
"description": |-
353431
A collection of system notification IDs to notify when runs of this job begin or complete.
@@ -1538,6 +1616,15 @@ github.com/databricks/databricks-sdk-go/service/compute.GcpAttributes:
15381616
"boot_disk_size":
15391617
"description": |-
15401618
Boot disk size in GB
1619+
"first_on_demand":
1620+
"description": |-
1621+
The first `first_on_demand` nodes of the cluster will be placed on on-demand instances.
1622+
This value should be greater than 0, to make sure the cluster driver node is placed on an
1623+
on-demand instance. If this value is greater than or equal to the current cluster size, all
1624+
nodes will be placed on on-demand instances. If this value is less than the current cluster
1625+
size, `first_on_demand` nodes will be placed on on-demand instances and the remainder will
1626+
be placed on `availability` instances. Note that this value does not affect
1627+
cluster size and cannot currently be mutated over the lifetime of a cluster.
15411628
"google_service_account":
15421629
"description": |-
15431630
If provided, the cluster will impersonate the google service account when accessing
@@ -1767,6 +1854,62 @@ github.com/databricks/databricks-sdk-go/service/dashboards.LifecycleState:
17671854
ACTIVE
17681855
- |-
17691856
TRASHED
1857+
github.com/databricks/databricks-sdk-go/service/database.DatabaseInstanceRef:
1858+
"_":
1859+
"description": |-
1860+
DatabaseInstanceRef is a reference to a database instance. It is used in the
1861+
DatabaseInstance object to refer to the parent instance of an instance and
1862+
to refer the child instances of an instance.
1863+
To specify as a parent instance during creation of an instance,
1864+
the lsn and branch_time fields are optional. If not specified, the child
1865+
instance will be created from the latest lsn of the parent.
1866+
If both lsn and branch_time are specified, the lsn will be used to create
1867+
the child instance.
1868+
"branch_time":
1869+
"description": |-
1870+
Branch time of the ref database instance.
1871+
For a parent ref instance, this is the point in time on the parent instance from which the
1872+
instance was created.
1873+
For a child ref instance, this is the point in time on the instance from which the child
1874+
instance was created.
1875+
Input: For specifying the point in time to create a child instance. Optional.
1876+
Output: Only populated if provided as input to create a child instance.
1877+
"effective_lsn":
1878+
"description": |-
1879+
xref AIP-129. `lsn` is owned by the client, while `effective_lsn` is owned by the server.
1880+
`lsn` will only be set in Create/Update response messages if and only if the user provides the field via the request.
1881+
`effective_lsn` on the other hand will always bet set in all response messages (Create/Update/Get/List).
1882+
For a parent ref instance, this is the LSN on the parent instance from which the
1883+
instance was created.
1884+
For a child ref instance, this is the LSN on the instance from which the child instance
1885+
was created.
1886+
"lsn":
1887+
"description": |-
1888+
User-specified WAL LSN of the ref database instance.
1889+
1890+
Input: For specifying the WAL LSN to create a child instance. Optional.
1891+
Output: Only populated if provided as input to create a child instance.
1892+
"name":
1893+
"description": |-
1894+
Name of the ref database instance.
1895+
"uid":
1896+
"description": |-
1897+
Id of the ref database instance.
1898+
github.com/databricks/databricks-sdk-go/service/database.DatabaseInstanceState:
1899+
"_":
1900+
"enum":
1901+
- |-
1902+
STARTING
1903+
- |-
1904+
AVAILABLE
1905+
- |-
1906+
DELETING
1907+
- |-
1908+
STOPPED
1909+
- |-
1910+
UPDATING
1911+
- |-
1912+
FAILING_OVER
17701913
github.com/databricks/databricks-sdk-go/service/jobs.AuthenticationMethod:
17711914
"_":
17721915
"enum":

bundle/internal/schema/annotations_openapi_overrides.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ github.com/databricks/cli/bundle/config/resources.DashboardPermissionLevel:
182182
CAN_EDIT
183183
- |-
184184
CAN_MANAGE
185-
185+
github.com/databricks/cli/bundle/config/resources.DatabaseInstance:
186+
"permissions":
187+
"description": |-
188+
PLACEHOLDER
186189
github.com/databricks/cli/bundle/config/resources.DatabaseInstancePermissionLevel:
187190
"_":
188191
"enum":
@@ -513,19 +516,6 @@ github.com/databricks/cli/bundle/config/resources.SqlWarehousePermissionLevel:
513516
CAN_MONITOR
514517
- |-
515518
CAN_VIEW
516-
github.com/databricks/cli/bundle/config/resources.VolumeGrantPrivilege:
517-
"_":
518-
"enum":
519-
- |-
520-
ALL_PRIVILEGES
521-
- |-
522-
APPLY_TAG
523-
- |-
524-
MANAGE
525-
- |-
526-
READ_VOLUME
527-
- |-
528-
WRITE_VOLUME
529519
github.com/databricks/cli/bundle/config/resources.Volume:
530520
"_":
531521
"markdown_description": |-
@@ -553,6 +543,19 @@ github.com/databricks/cli/bundle/config/resources.Volume:
553543
"volume_type":
554544
"description": |-
555545
PLACEHOLDER
546+
github.com/databricks/cli/bundle/config/resources.VolumeGrantPrivilege:
547+
"_":
548+
"enum":
549+
- |-
550+
ALL_PRIVILEGES
551+
- |-
552+
APPLY_TAG
553+
- |-
554+
MANAGE
555+
- |-
556+
READ_VOLUME
557+
- |-
558+
WRITE_VOLUME
556559
github.com/databricks/databricks-sdk-go/service/apps.AppDeployment:
557560
"create_time":
558561
"description": |-

0 commit comments

Comments
 (0)