diff --git a/bundle/internal/tf/codegen/schema/version.go b/bundle/internal/tf/codegen/schema/version.go index 3269a971..d141592a 100644 --- a/bundle/internal/tf/codegen/schema/version.go +++ b/bundle/internal/tf/codegen/schema/version.go @@ -1,3 +1,3 @@ package schema -const ProviderVersion = "1.29.0" +const ProviderVersion = "1.31.1" diff --git a/bundle/internal/tf/schema/data_source_current_config.go b/bundle/internal/tf/schema/data_source_current_config.go new file mode 100644 index 00000000..52be33fc --- /dev/null +++ b/bundle/internal/tf/schema/data_source_current_config.go @@ -0,0 +1,12 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type DataSourceCurrentConfig struct { + AccountId string `json:"account_id,omitempty"` + AuthType string `json:"auth_type,omitempty"` + CloudType string `json:"cloud_type,omitempty"` + Host string `json:"host,omitempty"` + Id string `json:"id,omitempty"` + IsAccount bool `json:"is_account,omitempty"` +} diff --git a/bundle/internal/tf/schema/data_source_instance_profiles.go b/bundle/internal/tf/schema/data_source_instance_profiles.go new file mode 100644 index 00000000..fa2d014d --- /dev/null +++ b/bundle/internal/tf/schema/data_source_instance_profiles.go @@ -0,0 +1,15 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type DataSourceInstanceProfilesInstanceProfiles struct { + Arn string `json:"arn,omitempty"` + IsMeta bool `json:"is_meta,omitempty"` + Name string `json:"name,omitempty"` + RoleArn string `json:"role_arn,omitempty"` +} + +type DataSourceInstanceProfiles struct { + Id string `json:"id,omitempty"` + InstanceProfiles []DataSourceInstanceProfilesInstanceProfiles `json:"instance_profiles,omitempty"` +} diff --git a/bundle/internal/tf/schema/data_source_job.go b/bundle/internal/tf/schema/data_source_job.go index 49be8f01..75d3672b 100644 --- a/bundle/internal/tf/schema/data_source_job.go +++ b/bundle/internal/tf/schema/data_source_job.go @@ -30,7 +30,6 @@ type DataSourceJobJobSettingsSettingsDeployment struct { } type DataSourceJobJobSettingsSettingsEmailNotifications struct { - AlertOnLastAttempt bool `json:"alert_on_last_attempt,omitempty"` NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"` OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"` OnFailure []string `json:"on_failure,omitempty"` @@ -492,8 +491,6 @@ type DataSourceJobJobSettingsSettingsTaskDependsOn struct { } type DataSourceJobJobSettingsSettingsTaskEmailNotifications struct { - AlertOnLastAttempt bool `json:"alert_on_last_attempt,omitempty"` - NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"` OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"` OnFailure []string `json:"on_failure,omitempty"` OnStart []string `json:"on_start,omitempty"` @@ -777,6 +774,29 @@ type DataSourceJobJobSettingsSettingsTaskSqlTask struct { Query *DataSourceJobJobSettingsSettingsTaskSqlTaskQuery `json:"query,omitempty"` } +type DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnDurationWarningThresholdExceeded struct { + Id string `json:"id,omitempty"` +} + +type DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnFailure struct { + Id string `json:"id,omitempty"` +} + +type DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnStart struct { + Id string `json:"id,omitempty"` +} + +type DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnSuccess struct { + Id string `json:"id,omitempty"` +} + +type DataSourceJobJobSettingsSettingsTaskWebhookNotifications struct { + OnDurationWarningThresholdExceeded []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnDurationWarningThresholdExceeded `json:"on_duration_warning_threshold_exceeded,omitempty"` + OnFailure []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnFailure `json:"on_failure,omitempty"` + OnStart []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnStart `json:"on_start,omitempty"` + OnSuccess []DataSourceJobJobSettingsSettingsTaskWebhookNotificationsOnSuccess `json:"on_success,omitempty"` +} + type DataSourceJobJobSettingsSettingsTask struct { ComputeKey string `json:"compute_key,omitempty"` Description string `json:"description,omitempty"` @@ -804,6 +824,7 @@ type DataSourceJobJobSettingsSettingsTask struct { SparkPythonTask *DataSourceJobJobSettingsSettingsTaskSparkPythonTask `json:"spark_python_task,omitempty"` SparkSubmitTask *DataSourceJobJobSettingsSettingsTaskSparkSubmitTask `json:"spark_submit_task,omitempty"` SqlTask *DataSourceJobJobSettingsSettingsTaskSqlTask `json:"sql_task,omitempty"` + WebhookNotifications *DataSourceJobJobSettingsSettingsTaskWebhookNotifications `json:"webhook_notifications,omitempty"` } type DataSourceJobJobSettingsSettingsTriggerFileArrival struct { @@ -818,19 +839,19 @@ type DataSourceJobJobSettingsSettingsTrigger struct { } type DataSourceJobJobSettingsSettingsWebhookNotificationsOnDurationWarningThresholdExceeded struct { - Id string `json:"id"` + Id string `json:"id,omitempty"` } type DataSourceJobJobSettingsSettingsWebhookNotificationsOnFailure struct { - Id string `json:"id"` + Id string `json:"id,omitempty"` } type DataSourceJobJobSettingsSettingsWebhookNotificationsOnStart struct { - Id string `json:"id"` + Id string `json:"id,omitempty"` } type DataSourceJobJobSettingsSettingsWebhookNotificationsOnSuccess struct { - Id string `json:"id"` + Id string `json:"id,omitempty"` } type DataSourceJobJobSettingsSettingsWebhookNotifications struct { @@ -841,6 +862,8 @@ type DataSourceJobJobSettingsSettingsWebhookNotifications struct { } type DataSourceJobJobSettingsSettings struct { + Description string `json:"description,omitempty"` + EditMode string `json:"edit_mode,omitempty"` ExistingClusterId string `json:"existing_cluster_id,omitempty"` Format string `json:"format,omitempty"` MaxConcurrentRuns int `json:"max_concurrent_runs,omitempty"` diff --git a/bundle/internal/tf/schema/data_source_mlflow_model.go b/bundle/internal/tf/schema/data_source_mlflow_model.go new file mode 100644 index 00000000..a7f26d7c --- /dev/null +++ b/bundle/internal/tf/schema/data_source_mlflow_model.go @@ -0,0 +1,39 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type DataSourceMlflowModelLatestVersionsTags struct { + Key string `json:"key,omitempty"` + Value string `json:"value,omitempty"` +} + +type DataSourceMlflowModelLatestVersions struct { + CreationTimestamp int `json:"creation_timestamp,omitempty"` + CurrentStage string `json:"current_stage,omitempty"` + Description string `json:"description,omitempty"` + LastUpdatedTimestamp int `json:"last_updated_timestamp,omitempty"` + Name string `json:"name,omitempty"` + RunId string `json:"run_id,omitempty"` + RunLink string `json:"run_link,omitempty"` + Source string `json:"source,omitempty"` + Status string `json:"status,omitempty"` + StatusMessage string `json:"status_message,omitempty"` + UserId string `json:"user_id,omitempty"` + Version string `json:"version,omitempty"` + Tags []DataSourceMlflowModelLatestVersionsTags `json:"tags,omitempty"` +} + +type DataSourceMlflowModelTags struct { + Key string `json:"key,omitempty"` + Value string `json:"value,omitempty"` +} + +type DataSourceMlflowModel struct { + Description string `json:"description,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name"` + PermissionLevel string `json:"permission_level,omitempty"` + UserId string `json:"user_id,omitempty"` + LatestVersions []DataSourceMlflowModelLatestVersions `json:"latest_versions,omitempty"` + Tags []DataSourceMlflowModelTags `json:"tags,omitempty"` +} diff --git a/bundle/internal/tf/schema/data_sources.go b/bundle/internal/tf/schema/data_sources.go index 79658298..c61ab909 100644 --- a/bundle/internal/tf/schema/data_sources.go +++ b/bundle/internal/tf/schema/data_sources.go @@ -10,16 +10,19 @@ type DataSources struct { Cluster map[string]*DataSourceCluster `json:"databricks_cluster,omitempty"` ClusterPolicy map[string]*DataSourceClusterPolicy `json:"databricks_cluster_policy,omitempty"` Clusters map[string]*DataSourceClusters `json:"databricks_clusters,omitempty"` + CurrentConfig map[string]*DataSourceCurrentConfig `json:"databricks_current_config,omitempty"` CurrentUser map[string]*DataSourceCurrentUser `json:"databricks_current_user,omitempty"` DbfsFile map[string]*DataSourceDbfsFile `json:"databricks_dbfs_file,omitempty"` DbfsFilePaths map[string]*DataSourceDbfsFilePaths `json:"databricks_dbfs_file_paths,omitempty"` Directory map[string]*DataSourceDirectory `json:"databricks_directory,omitempty"` Group map[string]*DataSourceGroup `json:"databricks_group,omitempty"` InstancePool map[string]*DataSourceInstancePool `json:"databricks_instance_pool,omitempty"` + InstanceProfiles map[string]*DataSourceInstanceProfiles `json:"databricks_instance_profiles,omitempty"` Job map[string]*DataSourceJob `json:"databricks_job,omitempty"` Jobs map[string]*DataSourceJobs `json:"databricks_jobs,omitempty"` Metastore map[string]*DataSourceMetastore `json:"databricks_metastore,omitempty"` Metastores map[string]*DataSourceMetastores `json:"databricks_metastores,omitempty"` + MlflowModel map[string]*DataSourceMlflowModel `json:"databricks_mlflow_model,omitempty"` MwsCredentials map[string]*DataSourceMwsCredentials `json:"databricks_mws_credentials,omitempty"` MwsWorkspaces map[string]*DataSourceMwsWorkspaces `json:"databricks_mws_workspaces,omitempty"` NodeType map[string]*DataSourceNodeType `json:"databricks_node_type,omitempty"` @@ -49,16 +52,19 @@ func NewDataSources() *DataSources { Cluster: make(map[string]*DataSourceCluster), ClusterPolicy: make(map[string]*DataSourceClusterPolicy), Clusters: make(map[string]*DataSourceClusters), + CurrentConfig: make(map[string]*DataSourceCurrentConfig), CurrentUser: make(map[string]*DataSourceCurrentUser), DbfsFile: make(map[string]*DataSourceDbfsFile), DbfsFilePaths: make(map[string]*DataSourceDbfsFilePaths), Directory: make(map[string]*DataSourceDirectory), Group: make(map[string]*DataSourceGroup), InstancePool: make(map[string]*DataSourceInstancePool), + InstanceProfiles: make(map[string]*DataSourceInstanceProfiles), Job: make(map[string]*DataSourceJob), Jobs: make(map[string]*DataSourceJobs), Metastore: make(map[string]*DataSourceMetastore), Metastores: make(map[string]*DataSourceMetastores), + MlflowModel: make(map[string]*DataSourceMlflowModel), MwsCredentials: make(map[string]*DataSourceMwsCredentials), MwsWorkspaces: make(map[string]*DataSourceMwsWorkspaces), NodeType: make(map[string]*DataSourceNodeType), diff --git a/bundle/internal/tf/schema/resource_catalog_workspace_binding.go b/bundle/internal/tf/schema/resource_catalog_workspace_binding.go index 40bced98..f828de8f 100644 --- a/bundle/internal/tf/schema/resource_catalog_workspace_binding.go +++ b/bundle/internal/tf/schema/resource_catalog_workspace_binding.go @@ -3,7 +3,10 @@ package schema type ResourceCatalogWorkspaceBinding struct { - CatalogName string `json:"catalog_name"` - Id string `json:"id,omitempty"` - WorkspaceId string `json:"workspace_id"` + BindingType string `json:"binding_type,omitempty"` + CatalogName string `json:"catalog_name,omitempty"` + Id string `json:"id,omitempty"` + SecurableName string `json:"securable_name,omitempty"` + SecurableType string `json:"securable_type,omitempty"` + WorkspaceId int `json:"workspace_id,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_cluster_policy.go b/bundle/internal/tf/schema/resource_cluster_policy.go index a5d28bcc..637fe645 100644 --- a/bundle/internal/tf/schema/resource_cluster_policy.go +++ b/bundle/internal/tf/schema/resource_cluster_policy.go @@ -2,13 +2,39 @@ package schema -type ResourceClusterPolicy struct { - Definition string `json:"definition,omitempty"` - Description string `json:"description,omitempty"` - Id string `json:"id,omitempty"` - MaxClustersPerUser int `json:"max_clusters_per_user,omitempty"` - Name string `json:"name"` - PolicyFamilyDefinitionOverrides string `json:"policy_family_definition_overrides,omitempty"` - PolicyFamilyId string `json:"policy_family_id,omitempty"` - PolicyId string `json:"policy_id,omitempty"` +type ResourceClusterPolicyLibrariesCran struct { + Package string `json:"package"` + Repo string `json:"repo,omitempty"` +} + +type ResourceClusterPolicyLibrariesMaven struct { + Coordinates string `json:"coordinates"` + Exclusions []string `json:"exclusions,omitempty"` + Repo string `json:"repo,omitempty"` +} + +type ResourceClusterPolicyLibrariesPypi struct { + Package string `json:"package"` + Repo string `json:"repo,omitempty"` +} + +type ResourceClusterPolicyLibraries struct { + Egg string `json:"egg,omitempty"` + Jar string `json:"jar,omitempty"` + Whl string `json:"whl,omitempty"` + Cran *ResourceClusterPolicyLibrariesCran `json:"cran,omitempty"` + Maven *ResourceClusterPolicyLibrariesMaven `json:"maven,omitempty"` + Pypi *ResourceClusterPolicyLibrariesPypi `json:"pypi,omitempty"` +} + +type ResourceClusterPolicy struct { + Definition string `json:"definition,omitempty"` + Description string `json:"description,omitempty"` + Id string `json:"id,omitempty"` + MaxClustersPerUser int `json:"max_clusters_per_user,omitempty"` + Name string `json:"name"` + PolicyFamilyDefinitionOverrides string `json:"policy_family_definition_overrides,omitempty"` + PolicyFamilyId string `json:"policy_family_id,omitempty"` + PolicyId string `json:"policy_id,omitempty"` + Libraries []ResourceClusterPolicyLibraries `json:"libraries,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_default_namespace_setting.go b/bundle/internal/tf/schema/resource_default_namespace_setting.go new file mode 100644 index 00000000..1fa01194 --- /dev/null +++ b/bundle/internal/tf/schema/resource_default_namespace_setting.go @@ -0,0 +1,14 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type ResourceDefaultNamespaceSettingNamespace struct { + Value string `json:"value,omitempty"` +} + +type ResourceDefaultNamespaceSetting struct { + Etag string `json:"etag,omitempty"` + Id string `json:"id,omitempty"` + SettingName string `json:"setting_name,omitempty"` + Namespace *ResourceDefaultNamespaceSettingNamespace `json:"namespace,omitempty"` +} diff --git a/bundle/internal/tf/schema/resource_job.go b/bundle/internal/tf/schema/resource_job.go index b4a33bdf..7884efd7 100644 --- a/bundle/internal/tf/schema/resource_job.go +++ b/bundle/internal/tf/schema/resource_job.go @@ -30,7 +30,6 @@ type ResourceJobDeployment struct { } type ResourceJobEmailNotifications struct { - AlertOnLastAttempt bool `json:"alert_on_last_attempt,omitempty"` NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"` OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"` OnFailure []string `json:"on_failure,omitempty"` @@ -492,8 +491,6 @@ type ResourceJobTaskDependsOn struct { } type ResourceJobTaskEmailNotifications struct { - AlertOnLastAttempt bool `json:"alert_on_last_attempt,omitempty"` - NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"` OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"` OnFailure []string `json:"on_failure,omitempty"` OnStart []string `json:"on_start,omitempty"` @@ -777,6 +774,29 @@ type ResourceJobTaskSqlTask struct { Query *ResourceJobTaskSqlTaskQuery `json:"query,omitempty"` } +type ResourceJobTaskWebhookNotificationsOnDurationWarningThresholdExceeded struct { + Id string `json:"id,omitempty"` +} + +type ResourceJobTaskWebhookNotificationsOnFailure struct { + Id string `json:"id,omitempty"` +} + +type ResourceJobTaskWebhookNotificationsOnStart struct { + Id string `json:"id,omitempty"` +} + +type ResourceJobTaskWebhookNotificationsOnSuccess struct { + Id string `json:"id,omitempty"` +} + +type ResourceJobTaskWebhookNotifications struct { + OnDurationWarningThresholdExceeded []ResourceJobTaskWebhookNotificationsOnDurationWarningThresholdExceeded `json:"on_duration_warning_threshold_exceeded,omitempty"` + OnFailure []ResourceJobTaskWebhookNotificationsOnFailure `json:"on_failure,omitempty"` + OnStart []ResourceJobTaskWebhookNotificationsOnStart `json:"on_start,omitempty"` + OnSuccess []ResourceJobTaskWebhookNotificationsOnSuccess `json:"on_success,omitempty"` +} + type ResourceJobTask struct { ComputeKey string `json:"compute_key,omitempty"` Description string `json:"description,omitempty"` @@ -804,6 +824,7 @@ type ResourceJobTask struct { SparkPythonTask *ResourceJobTaskSparkPythonTask `json:"spark_python_task,omitempty"` SparkSubmitTask *ResourceJobTaskSparkSubmitTask `json:"spark_submit_task,omitempty"` SqlTask *ResourceJobTaskSqlTask `json:"sql_task,omitempty"` + WebhookNotifications *ResourceJobTaskWebhookNotifications `json:"webhook_notifications,omitempty"` } type ResourceJobTriggerFileArrival struct { @@ -818,19 +839,19 @@ type ResourceJobTrigger struct { } type ResourceJobWebhookNotificationsOnDurationWarningThresholdExceeded struct { - Id string `json:"id"` + Id string `json:"id,omitempty"` } type ResourceJobWebhookNotificationsOnFailure struct { - Id string `json:"id"` + Id string `json:"id,omitempty"` } type ResourceJobWebhookNotificationsOnStart struct { - Id string `json:"id"` + Id string `json:"id,omitempty"` } type ResourceJobWebhookNotificationsOnSuccess struct { - Id string `json:"id"` + Id string `json:"id,omitempty"` } type ResourceJobWebhookNotifications struct { @@ -843,6 +864,8 @@ type ResourceJobWebhookNotifications struct { type ResourceJob struct { AlwaysRunning bool `json:"always_running,omitempty"` ControlRunState bool `json:"control_run_state,omitempty"` + Description string `json:"description,omitempty"` + EditMode string `json:"edit_mode,omitempty"` ExistingClusterId string `json:"existing_cluster_id,omitempty"` Format string `json:"format,omitempty"` Id string `json:"id,omitempty"` diff --git a/bundle/internal/tf/schema/resource_metastore.go b/bundle/internal/tf/schema/resource_metastore.go index 3561d2bf..31535b21 100644 --- a/bundle/internal/tf/schema/resource_metastore.go +++ b/bundle/internal/tf/schema/resource_metastore.go @@ -17,7 +17,7 @@ type ResourceMetastore struct { Name string `json:"name"` Owner string `json:"owner,omitempty"` Region string `json:"region,omitempty"` - StorageRoot string `json:"storage_root"` + StorageRoot string `json:"storage_root,omitempty"` StorageRootCredentialId string `json:"storage_root_credential_id,omitempty"` UpdatedAt int `json:"updated_at,omitempty"` UpdatedBy string `json:"updated_by,omitempty"` diff --git a/bundle/internal/tf/schema/resource_metastore_data_access.go b/bundle/internal/tf/schema/resource_metastore_data_access.go index 86df5e4b..ec1395f7 100644 --- a/bundle/internal/tf/schema/resource_metastore_data_access.go +++ b/bundle/internal/tf/schema/resource_metastore_data_access.go @@ -3,7 +3,9 @@ package schema type ResourceMetastoreDataAccessAwsIamRole struct { - RoleArn string `json:"role_arn"` + ExternalId string `json:"external_id,omitempty"` + RoleArn string `json:"role_arn"` + UnityCatalogIamArn string `json:"unity_catalog_iam_arn,omitempty"` } type ResourceMetastoreDataAccessAzureManagedIdentity struct { @@ -34,7 +36,7 @@ type ResourceMetastoreDataAccess struct { ForceDestroy bool `json:"force_destroy,omitempty"` Id string `json:"id,omitempty"` IsDefault bool `json:"is_default,omitempty"` - MetastoreId string `json:"metastore_id"` + MetastoreId string `json:"metastore_id,omitempty"` Name string `json:"name"` Owner string `json:"owner,omitempty"` ReadOnly bool `json:"read_only,omitempty"` diff --git a/bundle/internal/tf/schema/resource_mlflow_model.go b/bundle/internal/tf/schema/resource_mlflow_model.go index 406c124f..41f8e0f3 100644 --- a/bundle/internal/tf/schema/resource_mlflow_model.go +++ b/bundle/internal/tf/schema/resource_mlflow_model.go @@ -8,12 +8,9 @@ type ResourceMlflowModelTags struct { } type ResourceMlflowModel struct { - CreationTimestamp int `json:"creation_timestamp,omitempty"` - Description string `json:"description,omitempty"` - Id string `json:"id,omitempty"` - LastUpdatedTimestamp int `json:"last_updated_timestamp,omitempty"` - Name string `json:"name"` - RegisteredModelId string `json:"registered_model_id,omitempty"` - UserId string `json:"user_id,omitempty"` - Tags []ResourceMlflowModelTags `json:"tags,omitempty"` + Description string `json:"description,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name"` + RegisteredModelId string `json:"registered_model_id,omitempty"` + Tags []ResourceMlflowModelTags `json:"tags,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_mws_credentials.go b/bundle/internal/tf/schema/resource_mws_credentials.go index 265ad3ec..859663ed 100644 --- a/bundle/internal/tf/schema/resource_mws_credentials.go +++ b/bundle/internal/tf/schema/resource_mws_credentials.go @@ -3,7 +3,7 @@ package schema type ResourceMwsCredentials struct { - AccountId string `json:"account_id"` + AccountId string `json:"account_id,omitempty"` CreationTime int `json:"creation_time,omitempty"` CredentialsId string `json:"credentials_id,omitempty"` CredentialsName string `json:"credentials_name"` diff --git a/bundle/internal/tf/schema/resource_mws_customer_managed_keys.go b/bundle/internal/tf/schema/resource_mws_customer_managed_keys.go index 6c288479..411602b5 100644 --- a/bundle/internal/tf/schema/resource_mws_customer_managed_keys.go +++ b/bundle/internal/tf/schema/resource_mws_customer_managed_keys.go @@ -3,7 +3,7 @@ package schema type ResourceMwsCustomerManagedKeysAwsKeyInfo struct { - KeyAlias string `json:"key_alias"` + KeyAlias string `json:"key_alias,omitempty"` KeyArn string `json:"key_arn"` KeyRegion string `json:"key_region,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_recipient.go b/bundle/internal/tf/schema/resource_recipient.go index f2bb0e75..47d6de37 100644 --- a/bundle/internal/tf/schema/resource_recipient.go +++ b/bundle/internal/tf/schema/resource_recipient.go @@ -22,6 +22,7 @@ type ResourceRecipient struct { DataRecipientGlobalMetastoreId string `json:"data_recipient_global_metastore_id,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name"` + Owner string `json:"owner,omitempty"` SharingCode string `json:"sharing_code,omitempty"` IpAccessList *ResourceRecipientIpAccessList `json:"ip_access_list,omitempty"` Tokens []ResourceRecipientTokens `json:"tokens,omitempty"` diff --git a/bundle/internal/tf/schema/resource_sql_dashboard.go b/bundle/internal/tf/schema/resource_sql_dashboard.go index fc97bbde..eb6162d7 100644 --- a/bundle/internal/tf/schema/resource_sql_dashboard.go +++ b/bundle/internal/tf/schema/resource_sql_dashboard.go @@ -8,6 +8,7 @@ type ResourceSqlDashboard struct { Id string `json:"id,omitempty"` Name string `json:"name"` Parent string `json:"parent,omitempty"` + RunAsRole string `json:"run_as_role,omitempty"` Tags []string `json:"tags,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_sql_query.go b/bundle/internal/tf/schema/resource_sql_query.go index 27c653fc..6c355a09 100644 --- a/bundle/internal/tf/schema/resource_sql_query.go +++ b/bundle/internal/tf/schema/resource_sql_query.go @@ -45,9 +45,9 @@ type ResourceSqlQueryParameterDatetimesecRange struct { } type ResourceSqlQueryParameterEnumMultiple struct { - Prefix string `json:"prefix"` + Prefix string `json:"prefix,omitempty"` Separator string `json:"separator"` - Suffix string `json:"suffix"` + Suffix string `json:"suffix,omitempty"` } type ResourceSqlQueryParameterEnum struct { @@ -62,9 +62,9 @@ type ResourceSqlQueryParameterNumber struct { } type ResourceSqlQueryParameterQueryMultiple struct { - Prefix string `json:"prefix"` + Prefix string `json:"prefix,omitempty"` Separator string `json:"separator"` - Suffix string `json:"suffix"` + Suffix string `json:"suffix,omitempty"` } type ResourceSqlQueryParameterQuery struct { diff --git a/bundle/internal/tf/schema/resource_storage_credential.go b/bundle/internal/tf/schema/resource_storage_credential.go index 1687c79a..1f103023 100644 --- a/bundle/internal/tf/schema/resource_storage_credential.go +++ b/bundle/internal/tf/schema/resource_storage_credential.go @@ -3,7 +3,9 @@ package schema type ResourceStorageCredentialAwsIamRole struct { - RoleArn string `json:"role_arn"` + ExternalId string `json:"external_id,omitempty"` + RoleArn string `json:"role_arn"` + UnityCatalogIamArn string `json:"unity_catalog_iam_arn,omitempty"` } type ResourceStorageCredentialAzureManagedIdentity struct { diff --git a/bundle/internal/tf/schema/resource_workspace_file.go b/bundle/internal/tf/schema/resource_workspace_file.go index 053085a2..f3ff5f88 100644 --- a/bundle/internal/tf/schema/resource_workspace_file.go +++ b/bundle/internal/tf/schema/resource_workspace_file.go @@ -10,4 +10,5 @@ type ResourceWorkspaceFile struct { Path string `json:"path"` Source string `json:"source,omitempty"` Url string `json:"url,omitempty"` + WorkspacePath string `json:"workspace_path,omitempty"` } diff --git a/bundle/internal/tf/schema/resources.go b/bundle/internal/tf/schema/resources.go index 9a04be7e..4519a568 100644 --- a/bundle/internal/tf/schema/resources.go +++ b/bundle/internal/tf/schema/resources.go @@ -15,6 +15,7 @@ type Resources struct { ClusterPolicy map[string]*ResourceClusterPolicy `json:"databricks_cluster_policy,omitempty"` Connection map[string]*ResourceConnection `json:"databricks_connection,omitempty"` DbfsFile map[string]*ResourceDbfsFile `json:"databricks_dbfs_file,omitempty"` + DefaultNamespaceSetting map[string]*ResourceDefaultNamespaceSetting `json:"databricks_default_namespace_setting,omitempty"` Directory map[string]*ResourceDirectory `json:"databricks_directory,omitempty"` Entitlements map[string]*ResourceEntitlements `json:"databricks_entitlements,omitempty"` ExternalLocation map[string]*ResourceExternalLocation `json:"databricks_external_location,omitempty"` @@ -99,6 +100,7 @@ func NewResources() *Resources { ClusterPolicy: make(map[string]*ResourceClusterPolicy), Connection: make(map[string]*ResourceConnection), DbfsFile: make(map[string]*ResourceDbfsFile), + DefaultNamespaceSetting: make(map[string]*ResourceDefaultNamespaceSetting), Directory: make(map[string]*ResourceDirectory), Entitlements: make(map[string]*ResourceEntitlements), ExternalLocation: make(map[string]*ResourceExternalLocation), diff --git a/bundle/internal/tf/schema/root.go b/bundle/internal/tf/schema/root.go index 3ad8cf4d..937182d4 100644 --- a/bundle/internal/tf/schema/root.go +++ b/bundle/internal/tf/schema/root.go @@ -25,7 +25,7 @@ func NewRoot() *Root { "required_providers": map[string]interface{}{ "databricks": map[string]interface{}{ "source": "databricks/databricks", - "version": "1.29.0", + "version": "1.31.1", }, }, },