Upgrade Terraform schema version to v1.31.1 (#1055)

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
This commit is contained in:
shreyas-goenka 2023-12-12 03:23:21 +05:30 committed by GitHub
parent 8b9930a49a
commit b479a7cf67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 213 additions and 46 deletions

View File

@ -1,3 +1,3 @@
package schema package schema
const ProviderVersion = "1.29.0" const ProviderVersion = "1.31.1"

View File

@ -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"`
}

View File

@ -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"`
}

View File

@ -30,7 +30,6 @@ type DataSourceJobJobSettingsSettingsDeployment struct {
} }
type DataSourceJobJobSettingsSettingsEmailNotifications struct { type DataSourceJobJobSettingsSettingsEmailNotifications struct {
AlertOnLastAttempt bool `json:"alert_on_last_attempt,omitempty"`
NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"` NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"`
OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"` OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
OnFailure []string `json:"on_failure,omitempty"` OnFailure []string `json:"on_failure,omitempty"`
@ -492,8 +491,6 @@ type DataSourceJobJobSettingsSettingsTaskDependsOn struct {
} }
type DataSourceJobJobSettingsSettingsTaskEmailNotifications 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"` OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
OnFailure []string `json:"on_failure,omitempty"` OnFailure []string `json:"on_failure,omitempty"`
OnStart []string `json:"on_start,omitempty"` OnStart []string `json:"on_start,omitempty"`
@ -777,6 +774,29 @@ type DataSourceJobJobSettingsSettingsTaskSqlTask struct {
Query *DataSourceJobJobSettingsSettingsTaskSqlTaskQuery `json:"query,omitempty"` 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 { type DataSourceJobJobSettingsSettingsTask struct {
ComputeKey string `json:"compute_key,omitempty"` ComputeKey string `json:"compute_key,omitempty"`
Description string `json:"description,omitempty"` Description string `json:"description,omitempty"`
@ -804,6 +824,7 @@ type DataSourceJobJobSettingsSettingsTask struct {
SparkPythonTask *DataSourceJobJobSettingsSettingsTaskSparkPythonTask `json:"spark_python_task,omitempty"` SparkPythonTask *DataSourceJobJobSettingsSettingsTaskSparkPythonTask `json:"spark_python_task,omitempty"`
SparkSubmitTask *DataSourceJobJobSettingsSettingsTaskSparkSubmitTask `json:"spark_submit_task,omitempty"` SparkSubmitTask *DataSourceJobJobSettingsSettingsTaskSparkSubmitTask `json:"spark_submit_task,omitempty"`
SqlTask *DataSourceJobJobSettingsSettingsTaskSqlTask `json:"sql_task,omitempty"` SqlTask *DataSourceJobJobSettingsSettingsTaskSqlTask `json:"sql_task,omitempty"`
WebhookNotifications *DataSourceJobJobSettingsSettingsTaskWebhookNotifications `json:"webhook_notifications,omitempty"`
} }
type DataSourceJobJobSettingsSettingsTriggerFileArrival struct { type DataSourceJobJobSettingsSettingsTriggerFileArrival struct {
@ -818,19 +839,19 @@ type DataSourceJobJobSettingsSettingsTrigger struct {
} }
type DataSourceJobJobSettingsSettingsWebhookNotificationsOnDurationWarningThresholdExceeded struct { type DataSourceJobJobSettingsSettingsWebhookNotificationsOnDurationWarningThresholdExceeded struct {
Id string `json:"id"` Id string `json:"id,omitempty"`
} }
type DataSourceJobJobSettingsSettingsWebhookNotificationsOnFailure struct { type DataSourceJobJobSettingsSettingsWebhookNotificationsOnFailure struct {
Id string `json:"id"` Id string `json:"id,omitempty"`
} }
type DataSourceJobJobSettingsSettingsWebhookNotificationsOnStart struct { type DataSourceJobJobSettingsSettingsWebhookNotificationsOnStart struct {
Id string `json:"id"` Id string `json:"id,omitempty"`
} }
type DataSourceJobJobSettingsSettingsWebhookNotificationsOnSuccess struct { type DataSourceJobJobSettingsSettingsWebhookNotificationsOnSuccess struct {
Id string `json:"id"` Id string `json:"id,omitempty"`
} }
type DataSourceJobJobSettingsSettingsWebhookNotifications struct { type DataSourceJobJobSettingsSettingsWebhookNotifications struct {
@ -841,6 +862,8 @@ type DataSourceJobJobSettingsSettingsWebhookNotifications struct {
} }
type DataSourceJobJobSettingsSettings struct { type DataSourceJobJobSettingsSettings struct {
Description string `json:"description,omitempty"`
EditMode string `json:"edit_mode,omitempty"`
ExistingClusterId string `json:"existing_cluster_id,omitempty"` ExistingClusterId string `json:"existing_cluster_id,omitempty"`
Format string `json:"format,omitempty"` Format string `json:"format,omitempty"`
MaxConcurrentRuns int `json:"max_concurrent_runs,omitempty"` MaxConcurrentRuns int `json:"max_concurrent_runs,omitempty"`

View File

@ -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"`
}

View File

@ -10,16 +10,19 @@ type DataSources struct {
Cluster map[string]*DataSourceCluster `json:"databricks_cluster,omitempty"` Cluster map[string]*DataSourceCluster `json:"databricks_cluster,omitempty"`
ClusterPolicy map[string]*DataSourceClusterPolicy `json:"databricks_cluster_policy,omitempty"` ClusterPolicy map[string]*DataSourceClusterPolicy `json:"databricks_cluster_policy,omitempty"`
Clusters map[string]*DataSourceClusters `json:"databricks_clusters,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"` CurrentUser map[string]*DataSourceCurrentUser `json:"databricks_current_user,omitempty"`
DbfsFile map[string]*DataSourceDbfsFile `json:"databricks_dbfs_file,omitempty"` DbfsFile map[string]*DataSourceDbfsFile `json:"databricks_dbfs_file,omitempty"`
DbfsFilePaths map[string]*DataSourceDbfsFilePaths `json:"databricks_dbfs_file_paths,omitempty"` DbfsFilePaths map[string]*DataSourceDbfsFilePaths `json:"databricks_dbfs_file_paths,omitempty"`
Directory map[string]*DataSourceDirectory `json:"databricks_directory,omitempty"` Directory map[string]*DataSourceDirectory `json:"databricks_directory,omitempty"`
Group map[string]*DataSourceGroup `json:"databricks_group,omitempty"` Group map[string]*DataSourceGroup `json:"databricks_group,omitempty"`
InstancePool map[string]*DataSourceInstancePool `json:"databricks_instance_pool,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"` Job map[string]*DataSourceJob `json:"databricks_job,omitempty"`
Jobs map[string]*DataSourceJobs `json:"databricks_jobs,omitempty"` Jobs map[string]*DataSourceJobs `json:"databricks_jobs,omitempty"`
Metastore map[string]*DataSourceMetastore `json:"databricks_metastore,omitempty"` Metastore map[string]*DataSourceMetastore `json:"databricks_metastore,omitempty"`
Metastores map[string]*DataSourceMetastores `json:"databricks_metastores,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"` MwsCredentials map[string]*DataSourceMwsCredentials `json:"databricks_mws_credentials,omitempty"`
MwsWorkspaces map[string]*DataSourceMwsWorkspaces `json:"databricks_mws_workspaces,omitempty"` MwsWorkspaces map[string]*DataSourceMwsWorkspaces `json:"databricks_mws_workspaces,omitempty"`
NodeType map[string]*DataSourceNodeType `json:"databricks_node_type,omitempty"` NodeType map[string]*DataSourceNodeType `json:"databricks_node_type,omitempty"`
@ -49,16 +52,19 @@ func NewDataSources() *DataSources {
Cluster: make(map[string]*DataSourceCluster), Cluster: make(map[string]*DataSourceCluster),
ClusterPolicy: make(map[string]*DataSourceClusterPolicy), ClusterPolicy: make(map[string]*DataSourceClusterPolicy),
Clusters: make(map[string]*DataSourceClusters), Clusters: make(map[string]*DataSourceClusters),
CurrentConfig: make(map[string]*DataSourceCurrentConfig),
CurrentUser: make(map[string]*DataSourceCurrentUser), CurrentUser: make(map[string]*DataSourceCurrentUser),
DbfsFile: make(map[string]*DataSourceDbfsFile), DbfsFile: make(map[string]*DataSourceDbfsFile),
DbfsFilePaths: make(map[string]*DataSourceDbfsFilePaths), DbfsFilePaths: make(map[string]*DataSourceDbfsFilePaths),
Directory: make(map[string]*DataSourceDirectory), Directory: make(map[string]*DataSourceDirectory),
Group: make(map[string]*DataSourceGroup), Group: make(map[string]*DataSourceGroup),
InstancePool: make(map[string]*DataSourceInstancePool), InstancePool: make(map[string]*DataSourceInstancePool),
InstanceProfiles: make(map[string]*DataSourceInstanceProfiles),
Job: make(map[string]*DataSourceJob), Job: make(map[string]*DataSourceJob),
Jobs: make(map[string]*DataSourceJobs), Jobs: make(map[string]*DataSourceJobs),
Metastore: make(map[string]*DataSourceMetastore), Metastore: make(map[string]*DataSourceMetastore),
Metastores: make(map[string]*DataSourceMetastores), Metastores: make(map[string]*DataSourceMetastores),
MlflowModel: make(map[string]*DataSourceMlflowModel),
MwsCredentials: make(map[string]*DataSourceMwsCredentials), MwsCredentials: make(map[string]*DataSourceMwsCredentials),
MwsWorkspaces: make(map[string]*DataSourceMwsWorkspaces), MwsWorkspaces: make(map[string]*DataSourceMwsWorkspaces),
NodeType: make(map[string]*DataSourceNodeType), NodeType: make(map[string]*DataSourceNodeType),

View File

@ -3,7 +3,10 @@
package schema package schema
type ResourceCatalogWorkspaceBinding struct { type ResourceCatalogWorkspaceBinding struct {
CatalogName string `json:"catalog_name"` BindingType string `json:"binding_type,omitempty"`
Id string `json:"id,omitempty"` CatalogName string `json:"catalog_name,omitempty"`
WorkspaceId string `json:"workspace_id"` Id string `json:"id,omitempty"`
SecurableName string `json:"securable_name,omitempty"`
SecurableType string `json:"securable_type,omitempty"`
WorkspaceId int `json:"workspace_id,omitempty"`
} }

View File

@ -2,13 +2,39 @@
package schema package schema
type ResourceClusterPolicy struct { type ResourceClusterPolicyLibrariesCran struct {
Definition string `json:"definition,omitempty"` Package string `json:"package"`
Description string `json:"description,omitempty"` Repo string `json:"repo,omitempty"`
Id string `json:"id,omitempty"` }
MaxClustersPerUser int `json:"max_clusters_per_user,omitempty"`
Name string `json:"name"` type ResourceClusterPolicyLibrariesMaven struct {
PolicyFamilyDefinitionOverrides string `json:"policy_family_definition_overrides,omitempty"` Coordinates string `json:"coordinates"`
PolicyFamilyId string `json:"policy_family_id,omitempty"` Exclusions []string `json:"exclusions,omitempty"`
PolicyId string `json:"policy_id,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"`
} }

View File

@ -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"`
}

View File

@ -30,7 +30,6 @@ type ResourceJobDeployment struct {
} }
type ResourceJobEmailNotifications struct { type ResourceJobEmailNotifications struct {
AlertOnLastAttempt bool `json:"alert_on_last_attempt,omitempty"`
NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"` NoAlertForSkippedRuns bool `json:"no_alert_for_skipped_runs,omitempty"`
OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"` OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
OnFailure []string `json:"on_failure,omitempty"` OnFailure []string `json:"on_failure,omitempty"`
@ -492,8 +491,6 @@ type ResourceJobTaskDependsOn struct {
} }
type ResourceJobTaskEmailNotifications 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"` OnDurationWarningThresholdExceeded []string `json:"on_duration_warning_threshold_exceeded,omitempty"`
OnFailure []string `json:"on_failure,omitempty"` OnFailure []string `json:"on_failure,omitempty"`
OnStart []string `json:"on_start,omitempty"` OnStart []string `json:"on_start,omitempty"`
@ -777,6 +774,29 @@ type ResourceJobTaskSqlTask struct {
Query *ResourceJobTaskSqlTaskQuery `json:"query,omitempty"` 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 { type ResourceJobTask struct {
ComputeKey string `json:"compute_key,omitempty"` ComputeKey string `json:"compute_key,omitempty"`
Description string `json:"description,omitempty"` Description string `json:"description,omitempty"`
@ -804,6 +824,7 @@ type ResourceJobTask struct {
SparkPythonTask *ResourceJobTaskSparkPythonTask `json:"spark_python_task,omitempty"` SparkPythonTask *ResourceJobTaskSparkPythonTask `json:"spark_python_task,omitempty"`
SparkSubmitTask *ResourceJobTaskSparkSubmitTask `json:"spark_submit_task,omitempty"` SparkSubmitTask *ResourceJobTaskSparkSubmitTask `json:"spark_submit_task,omitempty"`
SqlTask *ResourceJobTaskSqlTask `json:"sql_task,omitempty"` SqlTask *ResourceJobTaskSqlTask `json:"sql_task,omitempty"`
WebhookNotifications *ResourceJobTaskWebhookNotifications `json:"webhook_notifications,omitempty"`
} }
type ResourceJobTriggerFileArrival struct { type ResourceJobTriggerFileArrival struct {
@ -818,19 +839,19 @@ type ResourceJobTrigger struct {
} }
type ResourceJobWebhookNotificationsOnDurationWarningThresholdExceeded struct { type ResourceJobWebhookNotificationsOnDurationWarningThresholdExceeded struct {
Id string `json:"id"` Id string `json:"id,omitempty"`
} }
type ResourceJobWebhookNotificationsOnFailure struct { type ResourceJobWebhookNotificationsOnFailure struct {
Id string `json:"id"` Id string `json:"id,omitempty"`
} }
type ResourceJobWebhookNotificationsOnStart struct { type ResourceJobWebhookNotificationsOnStart struct {
Id string `json:"id"` Id string `json:"id,omitempty"`
} }
type ResourceJobWebhookNotificationsOnSuccess struct { type ResourceJobWebhookNotificationsOnSuccess struct {
Id string `json:"id"` Id string `json:"id,omitempty"`
} }
type ResourceJobWebhookNotifications struct { type ResourceJobWebhookNotifications struct {
@ -843,6 +864,8 @@ type ResourceJobWebhookNotifications struct {
type ResourceJob struct { type ResourceJob struct {
AlwaysRunning bool `json:"always_running,omitempty"` AlwaysRunning bool `json:"always_running,omitempty"`
ControlRunState bool `json:"control_run_state,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"` ExistingClusterId string `json:"existing_cluster_id,omitempty"`
Format string `json:"format,omitempty"` Format string `json:"format,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`

View File

@ -17,7 +17,7 @@ type ResourceMetastore struct {
Name string `json:"name"` Name string `json:"name"`
Owner string `json:"owner,omitempty"` Owner string `json:"owner,omitempty"`
Region string `json:"region,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"` StorageRootCredentialId string `json:"storage_root_credential_id,omitempty"`
UpdatedAt int `json:"updated_at,omitempty"` UpdatedAt int `json:"updated_at,omitempty"`
UpdatedBy string `json:"updated_by,omitempty"` UpdatedBy string `json:"updated_by,omitempty"`

View File

@ -3,7 +3,9 @@
package schema package schema
type ResourceMetastoreDataAccessAwsIamRole struct { 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 { type ResourceMetastoreDataAccessAzureManagedIdentity struct {
@ -34,7 +36,7 @@ type ResourceMetastoreDataAccess struct {
ForceDestroy bool `json:"force_destroy,omitempty"` ForceDestroy bool `json:"force_destroy,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
IsDefault bool `json:"is_default,omitempty"` IsDefault bool `json:"is_default,omitempty"`
MetastoreId string `json:"metastore_id"` MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"` Name string `json:"name"`
Owner string `json:"owner,omitempty"` Owner string `json:"owner,omitempty"`
ReadOnly bool `json:"read_only,omitempty"` ReadOnly bool `json:"read_only,omitempty"`

View File

@ -8,12 +8,9 @@ type ResourceMlflowModelTags struct {
} }
type ResourceMlflowModel struct { type ResourceMlflowModel struct {
CreationTimestamp int `json:"creation_timestamp,omitempty"` Description string `json:"description,omitempty"`
Description string `json:"description,omitempty"` Id string `json:"id,omitempty"`
Id string `json:"id,omitempty"` Name string `json:"name"`
LastUpdatedTimestamp int `json:"last_updated_timestamp,omitempty"` RegisteredModelId string `json:"registered_model_id,omitempty"`
Name string `json:"name"` Tags []ResourceMlflowModelTags `json:"tags,omitempty"`
RegisteredModelId string `json:"registered_model_id,omitempty"`
UserId string `json:"user_id,omitempty"`
Tags []ResourceMlflowModelTags `json:"tags,omitempty"`
} }

View File

@ -3,7 +3,7 @@
package schema package schema
type ResourceMwsCredentials struct { type ResourceMwsCredentials struct {
AccountId string `json:"account_id"` AccountId string `json:"account_id,omitempty"`
CreationTime int `json:"creation_time,omitempty"` CreationTime int `json:"creation_time,omitempty"`
CredentialsId string `json:"credentials_id,omitempty"` CredentialsId string `json:"credentials_id,omitempty"`
CredentialsName string `json:"credentials_name"` CredentialsName string `json:"credentials_name"`

View File

@ -3,7 +3,7 @@
package schema package schema
type ResourceMwsCustomerManagedKeysAwsKeyInfo struct { type ResourceMwsCustomerManagedKeysAwsKeyInfo struct {
KeyAlias string `json:"key_alias"` KeyAlias string `json:"key_alias,omitempty"`
KeyArn string `json:"key_arn"` KeyArn string `json:"key_arn"`
KeyRegion string `json:"key_region,omitempty"` KeyRegion string `json:"key_region,omitempty"`
} }

View File

@ -22,6 +22,7 @@ type ResourceRecipient struct {
DataRecipientGlobalMetastoreId string `json:"data_recipient_global_metastore_id,omitempty"` DataRecipientGlobalMetastoreId string `json:"data_recipient_global_metastore_id,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
Name string `json:"name"` Name string `json:"name"`
Owner string `json:"owner,omitempty"`
SharingCode string `json:"sharing_code,omitempty"` SharingCode string `json:"sharing_code,omitempty"`
IpAccessList *ResourceRecipientIpAccessList `json:"ip_access_list,omitempty"` IpAccessList *ResourceRecipientIpAccessList `json:"ip_access_list,omitempty"`
Tokens []ResourceRecipientTokens `json:"tokens,omitempty"` Tokens []ResourceRecipientTokens `json:"tokens,omitempty"`

View File

@ -8,6 +8,7 @@ type ResourceSqlDashboard struct {
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
Name string `json:"name"` Name string `json:"name"`
Parent string `json:"parent,omitempty"` Parent string `json:"parent,omitempty"`
RunAsRole string `json:"run_as_role,omitempty"`
Tags []string `json:"tags,omitempty"` Tags []string `json:"tags,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"` UpdatedAt string `json:"updated_at,omitempty"`
} }

View File

@ -45,9 +45,9 @@ type ResourceSqlQueryParameterDatetimesecRange struct {
} }
type ResourceSqlQueryParameterEnumMultiple struct { type ResourceSqlQueryParameterEnumMultiple struct {
Prefix string `json:"prefix"` Prefix string `json:"prefix,omitempty"`
Separator string `json:"separator"` Separator string `json:"separator"`
Suffix string `json:"suffix"` Suffix string `json:"suffix,omitempty"`
} }
type ResourceSqlQueryParameterEnum struct { type ResourceSqlQueryParameterEnum struct {
@ -62,9 +62,9 @@ type ResourceSqlQueryParameterNumber struct {
} }
type ResourceSqlQueryParameterQueryMultiple struct { type ResourceSqlQueryParameterQueryMultiple struct {
Prefix string `json:"prefix"` Prefix string `json:"prefix,omitempty"`
Separator string `json:"separator"` Separator string `json:"separator"`
Suffix string `json:"suffix"` Suffix string `json:"suffix,omitempty"`
} }
type ResourceSqlQueryParameterQuery struct { type ResourceSqlQueryParameterQuery struct {

View File

@ -3,7 +3,9 @@
package schema package schema
type ResourceStorageCredentialAwsIamRole struct { 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 { type ResourceStorageCredentialAzureManagedIdentity struct {

View File

@ -10,4 +10,5 @@ type ResourceWorkspaceFile struct {
Path string `json:"path"` Path string `json:"path"`
Source string `json:"source,omitempty"` Source string `json:"source,omitempty"`
Url string `json:"url,omitempty"` Url string `json:"url,omitempty"`
WorkspacePath string `json:"workspace_path,omitempty"`
} }

View File

@ -15,6 +15,7 @@ type Resources struct {
ClusterPolicy map[string]*ResourceClusterPolicy `json:"databricks_cluster_policy,omitempty"` ClusterPolicy map[string]*ResourceClusterPolicy `json:"databricks_cluster_policy,omitempty"`
Connection map[string]*ResourceConnection `json:"databricks_connection,omitempty"` Connection map[string]*ResourceConnection `json:"databricks_connection,omitempty"`
DbfsFile map[string]*ResourceDbfsFile `json:"databricks_dbfs_file,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"` Directory map[string]*ResourceDirectory `json:"databricks_directory,omitempty"`
Entitlements map[string]*ResourceEntitlements `json:"databricks_entitlements,omitempty"` Entitlements map[string]*ResourceEntitlements `json:"databricks_entitlements,omitempty"`
ExternalLocation map[string]*ResourceExternalLocation `json:"databricks_external_location,omitempty"` ExternalLocation map[string]*ResourceExternalLocation `json:"databricks_external_location,omitempty"`
@ -99,6 +100,7 @@ func NewResources() *Resources {
ClusterPolicy: make(map[string]*ResourceClusterPolicy), ClusterPolicy: make(map[string]*ResourceClusterPolicy),
Connection: make(map[string]*ResourceConnection), Connection: make(map[string]*ResourceConnection),
DbfsFile: make(map[string]*ResourceDbfsFile), DbfsFile: make(map[string]*ResourceDbfsFile),
DefaultNamespaceSetting: make(map[string]*ResourceDefaultNamespaceSetting),
Directory: make(map[string]*ResourceDirectory), Directory: make(map[string]*ResourceDirectory),
Entitlements: make(map[string]*ResourceEntitlements), Entitlements: make(map[string]*ResourceEntitlements),
ExternalLocation: make(map[string]*ResourceExternalLocation), ExternalLocation: make(map[string]*ResourceExternalLocation),

View File

@ -25,7 +25,7 @@ func NewRoot() *Root {
"required_providers": map[string]interface{}{ "required_providers": map[string]interface{}{
"databricks": map[string]interface{}{ "databricks": map[string]interface{}{
"source": "databricks/databricks", "source": "databricks/databricks",
"version": "1.29.0", "version": "1.31.1",
}, },
}, },
}, },