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
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 {
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"`

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"`
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),

View File

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

View File

@ -2,6 +2,31 @@
package schema
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"`
@ -11,4 +36,5 @@ type ResourceClusterPolicy struct {
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 {
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"`

View File

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

View File

@ -3,7 +3,9 @@
package schema
type ResourceMetastoreDataAccessAwsIamRole struct {
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"`

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 {

View File

@ -3,7 +3,9 @@
package schema
type ResourceStorageCredentialAwsIamRole struct {
ExternalId string `json:"external_id,omitempty"`
RoleArn string `json:"role_arn"`
UnityCatalogIamArn string `json:"unity_catalog_iam_arn,omitempty"`
}
type ResourceStorageCredentialAzureManagedIdentity struct {

View File

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

View File

@ -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),

View File

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