Skip to content

Commit ce5a3f2

Browse files
authored
Upgrade TF provider to 1.48.0 (#1527)
## Changes This includes a fix for library order not being respected. ## Tests Manually confirmed the fix works in databricks/bundle-examples#29.
1 parent 482d83c commit ce5a3f2

File tree

8 files changed

+52
-6
lines changed

8 files changed

+52
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package schema
22

3-
const ProviderVersion = "1.47.0"
3+
const ProviderVersion = "1.48.0"

bundle/internal/tf/schema/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type Config struct {
2828
Profile string `json:"profile,omitempty"`
2929
RateLimit int `json:"rate_limit,omitempty"`
3030
RetryTimeoutSeconds int `json:"retry_timeout_seconds,omitempty"`
31+
ServerlessComputeId string `json:"serverless_compute_id,omitempty"`
3132
SkipVerify bool `json:"skip_verify,omitempty"`
3233
Token string `json:"token,omitempty"`
3334
Username string `json:"username,omitempty"`

bundle/internal/tf/schema/data_source_external_location.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type DataSourceExternalLocationExternalLocationInfo struct {
1919
CreatedBy string `json:"created_by,omitempty"`
2020
CredentialId string `json:"credential_id,omitempty"`
2121
CredentialName string `json:"credential_name,omitempty"`
22+
IsolationMode string `json:"isolation_mode,omitempty"`
2223
MetastoreId string `json:"metastore_id,omitempty"`
2324
Name string `json:"name,omitempty"`
2425
Owner string `json:"owner,omitempty"`

bundle/internal/tf/schema/data_source_job.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type DataSourceJobJobSettingsSettingsEmailNotifications struct {
2626
OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
2727
OnFailure []string `json:"on_failure,omitempty"`
2828
OnStart []string `json:"on_start,omitempty"`
29+
OnStreamingBacklogExceeded []string `json:"on_streaming_backlog_exceeded,omitempty"`
2930
OnSuccess []string `json:"on_success,omitempty"`
3031
}
3132

@@ -500,6 +501,7 @@ type DataSourceJobJobSettingsSettingsTaskEmailNotifications struct {
500501
OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
501502
OnFailure []string `json:"on_failure,omitempty"`
502503
OnStart []string `json:"on_start,omitempty"`
504+
OnStreamingBacklogExceeded []string `json:"on_streaming_backlog_exceeded,omitempty"`
503505
OnSuccess []string `json:"on_success,omitempty"`
504506
}
505507

@@ -529,6 +531,7 @@ type DataSourceJobJobSettingsSettingsTaskForEachTaskTaskEmailNotifications struc
529531
OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
530532
OnFailure []string `json:"on_failure,omitempty"`
531533
OnStart []string `json:"on_start,omitempty"`
534+
OnStreamingBacklogExceeded []string `json:"on_streaming_backlog_exceeded,omitempty"`
532535
OnSuccess []string `json:"on_success,omitempty"`
533536
}
534537

@@ -824,6 +827,10 @@ type DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotificationsOnSt
824827
Id string `json:"id"`
825828
}
826829

830+
type DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotificationsOnStreamingBacklogExceeded struct {
831+
Id string `json:"id"`
832+
}
833+
827834
type DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotificationsOnSuccess struct {
828835
Id string `json:"id"`
829836
}
@@ -832,6 +839,7 @@ type DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotifications str
832839
OnDurationWarningThresholdExceeded []DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotificationsOnDurationWarningThresholdExceeded `json:"on_duration_warning_threshold_exceeded,omitempty"`
833840
OnFailure []DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotificationsOnFailure `json:"on_failure,omitempty"`
834841
OnStart []DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotificationsOnStart `json:"on_start,omitempty"`
842+
OnStreamingBacklogExceeded []DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotificationsOnStreamingBacklogExceeded `json:"on_streaming_backlog_exceeded,omitempty"`
835843
OnSuccess []DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotificationsOnSuccess `json:"on_success,omitempty"`
836844
}
837845

@@ -1163,6 +1171,10 @@ type DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnStart struct {
11631171
Id string `json:"id"`
11641172
}
11651173

1174+
type DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnStreamingBacklogExceeded struct {
1175+
Id string `json:"id"`
1176+
}
1177+
11661178
type DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnSuccess struct {
11671179
Id string `json:"id"`
11681180
}
@@ -1171,6 +1183,7 @@ type DataSourceJobJobSettingsSettingsTaskWebhookNotifications struct {
11711183
OnDurationWarningThresholdExceeded []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnDurationWarningThresholdExceeded `json:"on_duration_warning_threshold_exceeded,omitempty"`
11721184
OnFailure []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnFailure `json:"on_failure,omitempty"`
11731185
OnStart []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnStart `json:"on_start,omitempty"`
1186+
OnStreamingBacklogExceeded []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnStreamingBacklogExceeded `json:"on_streaming_backlog_exceeded,omitempty"`
11741187
OnSuccess []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnSuccess `json:"on_success,omitempty"`
11751188
}
11761189

@@ -1236,6 +1249,10 @@ type DataSourceJobJobSettingsSettingsWebhookNotificationsOnStart struct {
12361249
Id string `json:"id"`
12371250
}
12381251

1252+
type DataSourceJobJobSettingsSettingsWebhookNotificationsOnStreamingBacklogExceeded struct {
1253+
Id string `json:"id"`
1254+
}
1255+
12391256
type DataSourceJobJobSettingsSettingsWebhookNotificationsOnSuccess struct {
12401257
Id string `json:"id"`
12411258
}
@@ -1244,6 +1261,7 @@ type DataSourceJobJobSettingsSettingsWebhookNotifications struct {
12441261
OnDurationWarningThresholdExceeded []DataSourceJobJobSettingsSettingsWebhookNotificationsOnDurationWarningThresholdExceeded `json:"on_duration_warning_threshold_exceeded,omitempty"`
12451262
OnFailure []DataSourceJobJobSettingsSettingsWebhookNotificationsOnFailure `json:"on_failure,omitempty"`
12461263
OnStart []DataSourceJobJobSettingsSettingsWebhookNotificationsOnStart `json:"on_start,omitempty"`
1264+
OnStreamingBacklogExceeded []DataSourceJobJobSettingsSettingsWebhookNotificationsOnStreamingBacklogExceeded `json:"on_streaming_backlog_exceeded,omitempty"`
12471265
OnSuccess []DataSourceJobJobSettingsSettingsWebhookNotificationsOnSuccess `json:"on_success,omitempty"`
12481266
}
12491267

bundle/internal/tf/schema/data_source_storage_credential.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type DataSourceStorageCredentialStorageCredentialInfo struct {
3636
CreatedAt int `json:"created_at,omitempty"`
3737
CreatedBy string `json:"created_by,omitempty"`
3838
Id string `json:"id,omitempty"`
39+
IsolationMode string `json:"isolation_mode,omitempty"`
3940
MetastoreId string `json:"metastore_id,omitempty"`
4041
Name string `json:"name,omitempty"`
4142
Owner string `json:"owner,omitempty"`

bundle/internal/tf/schema/resource_job.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type ResourceJobEmailNotifications struct {
2626
OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
2727
OnFailure []string `json:"on_failure,omitempty"`
2828
OnStart []string `json:"on_start,omitempty"`
29+
OnStreamingBacklogExceeded []string `json:"on_streaming_backlog_exceeded,omitempty"`
2930
OnSuccess []string `json:"on_success,omitempty"`
3031
}
3132

@@ -573,6 +574,7 @@ type ResourceJobTaskEmailNotifications struct {
573574
OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
574575
OnFailure []string `json:"on_failure,omitempty"`
575576
OnStart []string `json:"on_start,omitempty"`
577+
OnStreamingBacklogExceeded []string `json:"on_streaming_backlog_exceeded,omitempty"`
576578
OnSuccess []string `json:"on_success,omitempty"`
577579
}
578580

@@ -602,6 +604,7 @@ type ResourceJobTaskForEachTaskTaskEmailNotifications struct {
602604
OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
603605
OnFailure []string `json:"on_failure,omitempty"`
604606
OnStart []string `json:"on_start,omitempty"`
607+
OnStreamingBacklogExceeded []string `json:"on_streaming_backlog_exceeded,omitempty"`
605608
OnSuccess []string `json:"on_success,omitempty"`
606609
}
607610

@@ -943,6 +946,10 @@ type ResourceJobTaskForEachTaskTaskWebhookNotificationsOnStart struct {
943946
Id string `json:"id"`
944947
}
945948

949+
type ResourceJobTaskForEachTaskTaskWebhookNotificationsOnStreamingBacklogExceeded struct {
950+
Id string `json:"id"`
951+
}
952+
946953
type ResourceJobTaskForEachTaskTaskWebhookNotificationsOnSuccess struct {
947954
Id string `json:"id"`
948955
}
@@ -951,6 +958,7 @@ type ResourceJobTaskForEachTaskTaskWebhookNotifications struct {
951958
OnDurationWarningThresholdExceeded []ResourceJobTaskForEachTaskTaskWebhookNotificationsOnDurationWarningThresholdExceeded `json:"on_duration_warning_threshold_exceeded,omitempty"`
952959
OnFailure []ResourceJobTaskForEachTaskTaskWebhookNotificationsOnFailure `json:"on_failure,omitempty"`
953960
OnStart []ResourceJobTaskForEachTaskTaskWebhookNotificationsOnStart `json:"on_start,omitempty"`
961+
OnStreamingBacklogExceeded []ResourceJobTaskForEachTaskTaskWebhookNotificationsOnStreamingBacklogExceeded `json:"on_streaming_backlog_exceeded,omitempty"`
954962
OnSuccess []ResourceJobTaskForEachTaskTaskWebhookNotificationsOnSuccess `json:"on_success,omitempty"`
955963
}
956964

@@ -1329,6 +1337,10 @@ type ResourceJobTaskWebhookNotificationsOnStart struct {
13291337
Id string `json:"id"`
13301338
}
13311339

1340+
type ResourceJobTaskWebhookNotificationsOnStreamingBacklogExceeded struct {
1341+
Id string `json:"id"`
1342+
}
1343+
13321344
type ResourceJobTaskWebhookNotificationsOnSuccess struct {
13331345
Id string `json:"id"`
13341346
}
@@ -1337,6 +1349,7 @@ type ResourceJobTaskWebhookNotifications struct {
13371349
OnDurationWarningThresholdExceeded []ResourceJobTaskWebhookNotificationsOnDurationWarningThresholdExceeded `json:"on_duration_warning_threshold_exceeded,omitempty"`
13381350
OnFailure []ResourceJobTaskWebhookNotificationsOnFailure `json:"on_failure,omitempty"`
13391351
OnStart []ResourceJobTaskWebhookNotificationsOnStart `json:"on_start,omitempty"`
1352+
OnStreamingBacklogExceeded []ResourceJobTaskWebhookNotificationsOnStreamingBacklogExceeded `json:"on_streaming_backlog_exceeded,omitempty"`
13401353
OnSuccess []ResourceJobTaskWebhookNotificationsOnSuccess `json:"on_success,omitempty"`
13411354
}
13421355

@@ -1378,6 +1391,11 @@ type ResourceJobTriggerFileArrival struct {
13781391
WaitAfterLastChangeSeconds int `json:"wait_after_last_change_seconds,omitempty"`
13791392
}
13801393

1394+
type ResourceJobTriggerPeriodic struct {
1395+
Interval int `json:"interval"`
1396+
Unit string `json:"unit"`
1397+
}
1398+
13811399
type ResourceJobTriggerTable struct {
13821400
Condition string `json:"condition,omitempty"`
13831401
MinTimeBetweenTriggersSeconds int `json:"min_time_between_triggers_seconds,omitempty"`
@@ -1395,6 +1413,7 @@ type ResourceJobTriggerTableUpdate struct {
13951413
type ResourceJobTrigger struct {
13961414
PauseStatus string `json:"pause_status,omitempty"`
13971415
FileArrival *ResourceJobTriggerFileArrival `json:"file_arrival,omitempty"`
1416+
Periodic *ResourceJobTriggerPeriodic `json:"periodic,omitempty"`
13981417
Table *ResourceJobTriggerTable `json:"table,omitempty"`
13991418
TableUpdate *ResourceJobTriggerTableUpdate `json:"table_update,omitempty"`
14001419
}
@@ -1411,6 +1430,10 @@ type ResourceJobWebhookNotificationsOnStart struct {
14111430
Id string `json:"id"`
14121431
}
14131432

1433+
type ResourceJobWebhookNotificationsOnStreamingBacklogExceeded struct {
1434+
Id string `json:"id"`
1435+
}
1436+
14141437
type ResourceJobWebhookNotificationsOnSuccess struct {
14151438
Id string `json:"id"`
14161439
}
@@ -1419,6 +1442,7 @@ type ResourceJobWebhookNotifications struct {
14191442
OnDurationWarningThresholdExceeded []ResourceJobWebhookNotificationsOnDurationWarningThresholdExceeded `json:"on_duration_warning_threshold_exceeded,omitempty"`
14201443
OnFailure []ResourceJobWebhookNotificationsOnFailure `json:"on_failure,omitempty"`
14211444
OnStart []ResourceJobWebhookNotificationsOnStart `json:"on_start,omitempty"`
1445+
OnStreamingBacklogExceeded []ResourceJobWebhookNotificationsOnStreamingBacklogExceeded `json:"on_streaming_backlog_exceeded,omitempty"`
14221446
OnSuccess []ResourceJobWebhookNotificationsOnSuccess `json:"on_success,omitempty"`
14231447
}
14241448

bundle/internal/tf/schema/resource_online_table.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ type ResourceOnlineTableSpec struct {
1919
}
2020

2121
type ResourceOnlineTable struct {
22-
Id string `json:"id,omitempty"`
23-
Name string `json:"name"`
24-
Status []any `json:"status,omitempty"`
25-
Spec *ResourceOnlineTableSpec `json:"spec,omitempty"`
22+
Id string `json:"id,omitempty"`
23+
Name string `json:"name"`
24+
Status []any `json:"status,omitempty"`
25+
TableServingUrl string `json:"table_serving_url,omitempty"`
26+
Spec *ResourceOnlineTableSpec `json:"spec,omitempty"`
2627
}

bundle/internal/tf/schema/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Root struct {
2121

2222
const ProviderHost = "registry.terraform.io"
2323
const ProviderSource = "databricks/databricks"
24-
const ProviderVersion = "1.47.0"
24+
const ProviderVersion = "1.48.0"
2525

2626
func NewRoot() *Root {
2727
return &Root{

0 commit comments

Comments
 (0)