Upgrade TF provider to 1.48.3 (#1600)

## Changes

This includes a fix for using periodic triggers.

## Tests

Manually confirmed this works with
https://github.com/databricks/bundle-examples/pull/32.
This commit is contained in:
Pieter Noordhuis 2024-07-17 10:49:19 +02:00 committed by GitHub
parent 235973e7b1
commit e1474a38f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 43 additions and 32 deletions

View File

@ -1,3 +1,3 @@
package schema package schema
const ProviderVersion = "1.48.0" const ProviderVersion = "1.48.3"

View File

@ -3,34 +3,36 @@
package schema package schema
type Config struct { type Config struct {
AccountId string `json:"account_id,omitempty"` AccountId string `json:"account_id,omitempty"`
AuthType string `json:"auth_type,omitempty"` ActionsIdTokenRequestToken string `json:"actions_id_token_request_token,omitempty"`
AzureClientId string `json:"azure_client_id,omitempty"` ActionsIdTokenRequestUrl string `json:"actions_id_token_request_url,omitempty"`
AzureClientSecret string `json:"azure_client_secret,omitempty"` AuthType string `json:"auth_type,omitempty"`
AzureEnvironment string `json:"azure_environment,omitempty"` AzureClientId string `json:"azure_client_id,omitempty"`
AzureLoginAppId string `json:"azure_login_app_id,omitempty"` AzureClientSecret string `json:"azure_client_secret,omitempty"`
AzureTenantId string `json:"azure_tenant_id,omitempty"` AzureEnvironment string `json:"azure_environment,omitempty"`
AzureUseMsi bool `json:"azure_use_msi,omitempty"` AzureLoginAppId string `json:"azure_login_app_id,omitempty"`
AzureWorkspaceResourceId string `json:"azure_workspace_resource_id,omitempty"` AzureTenantId string `json:"azure_tenant_id,omitempty"`
ClientId string `json:"client_id,omitempty"` AzureUseMsi bool `json:"azure_use_msi,omitempty"`
ClientSecret string `json:"client_secret,omitempty"` AzureWorkspaceResourceId string `json:"azure_workspace_resource_id,omitempty"`
ClusterId string `json:"cluster_id,omitempty"` ClientId string `json:"client_id,omitempty"`
ConfigFile string `json:"config_file,omitempty"` ClientSecret string `json:"client_secret,omitempty"`
DatabricksCliPath string `json:"databricks_cli_path,omitempty"` ClusterId string `json:"cluster_id,omitempty"`
DebugHeaders bool `json:"debug_headers,omitempty"` ConfigFile string `json:"config_file,omitempty"`
DebugTruncateBytes int `json:"debug_truncate_bytes,omitempty"` DatabricksCliPath string `json:"databricks_cli_path,omitempty"`
GoogleCredentials string `json:"google_credentials,omitempty"` DebugHeaders bool `json:"debug_headers,omitempty"`
GoogleServiceAccount string `json:"google_service_account,omitempty"` DebugTruncateBytes int `json:"debug_truncate_bytes,omitempty"`
Host string `json:"host,omitempty"` GoogleCredentials string `json:"google_credentials,omitempty"`
HttpTimeoutSeconds int `json:"http_timeout_seconds,omitempty"` GoogleServiceAccount string `json:"google_service_account,omitempty"`
MetadataServiceUrl string `json:"metadata_service_url,omitempty"` Host string `json:"host,omitempty"`
Password string `json:"password,omitempty"` HttpTimeoutSeconds int `json:"http_timeout_seconds,omitempty"`
Profile string `json:"profile,omitempty"` MetadataServiceUrl string `json:"metadata_service_url,omitempty"`
RateLimit int `json:"rate_limit,omitempty"` Password string `json:"password,omitempty"`
RetryTimeoutSeconds int `json:"retry_timeout_seconds,omitempty"` Profile string `json:"profile,omitempty"`
ServerlessComputeId string `json:"serverless_compute_id,omitempty"` RateLimit int `json:"rate_limit,omitempty"`
SkipVerify bool `json:"skip_verify,omitempty"` RetryTimeoutSeconds int `json:"retry_timeout_seconds,omitempty"`
Token string `json:"token,omitempty"` ServerlessComputeId string `json:"serverless_compute_id,omitempty"`
Username string `json:"username,omitempty"` SkipVerify bool `json:"skip_verify,omitempty"`
WarehouseId string `json:"warehouse_id,omitempty"` Token string `json:"token,omitempty"`
Username string `json:"username,omitempty"`
WarehouseId string `json:"warehouse_id,omitempty"`
} }

View File

@ -1224,6 +1224,11 @@ type DataSourceJobJobSettingsSettingsTriggerFileArrival struct {
WaitAfterLastChangeSeconds int `json:"wait_after_last_change_seconds,omitempty"` WaitAfterLastChangeSeconds int `json:"wait_after_last_change_seconds,omitempty"`
} }
type DataSourceJobJobSettingsSettingsTriggerPeriodic struct {
Interval int `json:"interval"`
Unit string `json:"unit"`
}
type DataSourceJobJobSettingsSettingsTriggerTableUpdate struct { type DataSourceJobJobSettingsSettingsTriggerTableUpdate struct {
Condition string `json:"condition,omitempty"` Condition string `json:"condition,omitempty"`
MinTimeBetweenTriggersSeconds int `json:"min_time_between_triggers_seconds,omitempty"` MinTimeBetweenTriggersSeconds int `json:"min_time_between_triggers_seconds,omitempty"`
@ -1234,6 +1239,7 @@ type DataSourceJobJobSettingsSettingsTriggerTableUpdate struct {
type DataSourceJobJobSettingsSettingsTrigger struct { type DataSourceJobJobSettingsSettingsTrigger struct {
PauseStatus string `json:"pause_status,omitempty"` PauseStatus string `json:"pause_status,omitempty"`
FileArrival *DataSourceJobJobSettingsSettingsTriggerFileArrival `json:"file_arrival,omitempty"` FileArrival *DataSourceJobJobSettingsSettingsTriggerFileArrival `json:"file_arrival,omitempty"`
Periodic *DataSourceJobJobSettingsSettingsTriggerPeriodic `json:"periodic,omitempty"`
TableUpdate *DataSourceJobJobSettingsSettingsTriggerTableUpdate `json:"table_update,omitempty"` TableUpdate *DataSourceJobJobSettingsSettingsTriggerTableUpdate `json:"table_update,omitempty"`
} }

View File

@ -18,6 +18,7 @@ type ResourceExternalLocation struct {
ForceDestroy bool `json:"force_destroy,omitempty"` ForceDestroy bool `json:"force_destroy,omitempty"`
ForceUpdate bool `json:"force_update,omitempty"` ForceUpdate bool `json:"force_update,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
IsolationMode string `json:"isolation_mode,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"` MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"` Name string `json:"name"`
Owner string `json:"owner,omitempty"` Owner string `json:"owner,omitempty"`

View File

@ -37,6 +37,7 @@ type ResourceMetastoreDataAccess struct {
ForceUpdate bool `json:"force_update,omitempty"` ForceUpdate bool `json:"force_update,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
IsDefault bool `json:"is_default,omitempty"` IsDefault bool `json:"is_default,omitempty"`
IsolationMode string `json:"isolation_mode,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"` MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"` Name string `json:"name"`
Owner string `json:"owner,omitempty"` Owner string `json:"owner,omitempty"`

View File

@ -36,6 +36,7 @@ type ResourceStorageCredential struct {
ForceDestroy bool `json:"force_destroy,omitempty"` ForceDestroy bool `json:"force_destroy,omitempty"`
ForceUpdate bool `json:"force_update,omitempty"` ForceUpdate bool `json:"force_update,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
IsolationMode string `json:"isolation_mode,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"` MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"` Name string `json:"name"`
Owner string `json:"owner,omitempty"` Owner string `json:"owner,omitempty"`

View File

@ -21,7 +21,7 @@ type Root struct {
const ProviderHost = "registry.terraform.io" const ProviderHost = "registry.terraform.io"
const ProviderSource = "databricks/databricks" const ProviderSource = "databricks/databricks"
const ProviderVersion = "1.48.0" const ProviderVersion = "1.48.3"
func NewRoot() *Root { func NewRoot() *Root {
return &Root{ return &Root{