Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bundle/internal/tf/codegen/schema/version.go
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
package schema

const ProviderVersion = "1.39.0"
const ProviderVersion = "1.40.0"
36 changes: 36 additions & 0 deletions bundle/internal/tf/schema/data_source_external_location.go
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.

package schema

type DataSourceExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetails struct {
Algorithm string `json:"algorithm,omitempty"`
AwsKmsKeyArn string `json:"aws_kms_key_arn,omitempty"`
}

type DataSourceExternalLocationExternalLocationInfoEncryptionDetails struct {
SseEncryptionDetails *DataSourceExternalLocationExternalLocationInfoEncryptionDetailsSseEncryptionDetails `json:"sse_encryption_details,omitempty"`
}

type DataSourceExternalLocationExternalLocationInfo struct {
AccessPoint string `json:"access_point,omitempty"`
BrowseOnly bool `json:"browse_only,omitempty"`
Comment string `json:"comment,omitempty"`
CreatedAt int `json:"created_at,omitempty"`
CreatedBy string `json:"created_by,omitempty"`
CredentialId string `json:"credential_id,omitempty"`
CredentialName string `json:"credential_name,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name,omitempty"`
Owner string `json:"owner,omitempty"`
ReadOnly bool `json:"read_only,omitempty"`
UpdatedAt int `json:"updated_at,omitempty"`
UpdatedBy string `json:"updated_by,omitempty"`
Url string `json:"url,omitempty"`
EncryptionDetails *DataSourceExternalLocationExternalLocationInfoEncryptionDetails `json:"encryption_details,omitempty"`
}

type DataSourceExternalLocation struct {
Id string `json:"id,omitempty"`
Name string `json:"name"`
ExternalLocationInfo *DataSourceExternalLocationExternalLocationInfo `json:"external_location_info,omitempty"`
}
8 changes: 8 additions & 0 deletions bundle/internal/tf/schema/data_source_external_locations.go
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.

package schema

type DataSourceExternalLocations struct {
Id string `json:"id,omitempty"`
Names []string `json:"names,omitempty"`
}
1 change: 1 addition & 0 deletions bundle/internal/tf/schema/data_source_instance_pool.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@ type DataSourceInstancePoolPoolInfoDiskSpec struct {
type DataSourceInstancePoolPoolInfoGcpAttributes struct {
GcpAvailability string `json:"gcp_availability,omitempty"`
LocalSsdCount int `json:"local_ssd_count,omitempty"`
ZoneId string `json:"zone_id,omitempty"`
}

type DataSourceInstancePoolPoolInfoInstancePoolFleetAttributesFleetOnDemandOption struct {
Expand Down
28 changes: 16 additions & 12 deletions bundle/internal/tf/schema/data_source_job.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,15 +2,6 @@

package schema

type DataSourceJobJobSettingsSettingsComputeSpec struct {
Kind string `json:"kind,omitempty"`
}

type DataSourceJobJobSettingsSettingsCompute struct {
ComputeKey string `json:"compute_key,omitempty"`
Spec *DataSourceJobJobSettingsSettingsComputeSpec `json:"spec,omitempty"`
}

type DataSourceJobJobSettingsSettingsContinuous struct {
PauseStatus string `json:"pause_status,omitempty"`
}
Expand DownExpand Up@@ -38,6 +29,16 @@ type DataSourceJobJobSettingsSettingsEmailNotifications struct {
OnSuccess []string `json:"on_success,omitempty"`
}

type DataSourceJobJobSettingsSettingsEnvironmentSpec struct {
Client string `json:"client"`
Dependencies []string `json:"dependencies,omitempty"`
}

type DataSourceJobJobSettingsSettingsEnvironment struct {
EnvironmentKey string `json:"environment_key"`
Spec *DataSourceJobJobSettingsSettingsEnvironmentSpec `json:"spec,omitempty"`
}

type DataSourceJobJobSettingsSettingsGitSourceJobSource struct {
DirtyState string `json:"dirty_state,omitempty"`
ImportFromGitBranch string `json:"import_from_git_branch"`
Expand DownExpand Up@@ -411,6 +412,7 @@ type DataSourceJobJobSettingsSettingsNotebookTask struct {
BaseParameters map[string]string `json:"base_parameters,omitempty"`
NotebookPath string `json:"notebook_path"`
Source string `json:"source,omitempty"`
WarehouseId string `json:"warehouse_id,omitempty"`
}

type DataSourceJobJobSettingsSettingsNotificationSettings struct {
Expand DownExpand Up@@ -725,6 +727,7 @@ type DataSourceJobJobSettingsSettingsTaskForEachTaskTaskNotebookTask struct {
BaseParameters map[string]string `json:"base_parameters,omitempty"`
NotebookPath string `json:"notebook_path"`
Source string `json:"source,omitempty"`
WarehouseId string `json:"warehouse_id,omitempty"`
}

type DataSourceJobJobSettingsSettingsTaskForEachTaskTaskNotificationSettings struct {
Expand DownExpand Up@@ -831,8 +834,8 @@ type DataSourceJobJobSettingsSettingsTaskForEachTaskTaskWebhookNotifications str
}

type DataSourceJobJobSettingsSettingsTaskForEachTaskTask struct {
ComputeKey string `json:"compute_key,omitempty"`
Description string `json:"description,omitempty"`
EnvironmentKey string `json:"environment_key,omitempty"`
ExistingClusterId string `json:"existing_cluster_id,omitempty"`
JobClusterKey string `json:"job_cluster_key,omitempty"`
MaxRetries int `json:"max_retries,omitempty"`
Expand DownExpand Up@@ -1062,6 +1065,7 @@ type DataSourceJobJobSettingsSettingsTaskNotebookTask struct {
BaseParameters map[string]string `json:"base_parameters,omitempty"`
NotebookPath string `json:"notebook_path"`
Source string `json:"source,omitempty"`
WarehouseId string `json:"warehouse_id,omitempty"`
}

type DataSourceJobJobSettingsSettingsTaskNotificationSettings struct {
Expand DownExpand Up@@ -1168,8 +1172,8 @@ type DataSourceJobJobSettingsSettingsTaskWebhookNotifications struct {
}

type DataSourceJobJobSettingsSettingsTask struct {
ComputeKey string `json:"compute_key,omitempty"`
Description string `json:"description,omitempty"`
EnvironmentKey string `json:"environment_key,omitempty"`
ExistingClusterId string `json:"existing_cluster_id,omitempty"`
JobClusterKey string `json:"job_cluster_key,omitempty"`
MaxRetries int `json:"max_retries,omitempty"`
Expand DownExpand Up@@ -1252,11 +1256,11 @@ type DataSourceJobJobSettingsSettings struct {
RetryOnTimeout bool `json:"retry_on_timeout,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
TimeoutSeconds int `json:"timeout_seconds,omitempty"`
Compute []DataSourceJobJobSettingsSettingsCompute `json:"compute,omitempty"`
Continuous *DataSourceJobJobSettingsSettingsContinuous `json:"continuous,omitempty"`
DbtTask *DataSourceJobJobSettingsSettingsDbtTask `json:"dbt_task,omitempty"`
Deployment *DataSourceJobJobSettingsSettingsDeployment `json:"deployment,omitempty"`
EmailNotifications *DataSourceJobJobSettingsSettingsEmailNotifications `json:"email_notifications,omitempty"`
Environment []DataSourceJobJobSettingsSettingsEnvironment `json:"environment,omitempty"`
GitSource *DataSourceJobJobSettingsSettingsGitSource `json:"git_source,omitempty"`
Health *DataSourceJobJobSettingsSettingsHealth `json:"health,omitempty"`
JobCluster []DataSourceJobJobSettingsSettingsJobCluster `json:"job_cluster,omitempty"`
Expand Down
4 changes: 3 additions & 1 deletion bundle/internal/tf/schema/data_source_metastore.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,6 +25,8 @@ type DataSourceMetastoreMetastoreInfo struct {

type DataSourceMetastore struct {
Id string `json:"id,omitempty"`
MetastoreId string `json:"metastore_id"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name,omitempty"`
Region string `json:"region,omitempty"`
MetastoreInfo *DataSourceMetastoreMetastoreInfo `json:"metastore_info,omitempty"`
}
4 changes: 4 additions & 0 deletions bundle/internal/tf/schema/data_sources.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,6 +17,8 @@ type DataSources struct {
DbfsFile map[string]any `json:"databricks_dbfs_file,omitempty"`
DbfsFilePaths map[string]any `json:"databricks_dbfs_file_paths,omitempty"`
Directory map[string]any `json:"databricks_directory,omitempty"`
ExternalLocation map[string]any `json:"databricks_external_location,omitempty"`
ExternalLocations map[string]any `json:"databricks_external_locations,omitempty"`
Group map[string]any `json:"databricks_group,omitempty"`
InstancePool map[string]any `json:"databricks_instance_pool,omitempty"`
InstanceProfiles map[string]any `json:"databricks_instance_profiles,omitempty"`
Expand DownExpand Up@@ -64,6 +66,8 @@ func NewDataSources() *DataSources {
DbfsFile: make(map[string]any),
DbfsFilePaths: make(map[string]any),
Directory: make(map[string]any),
ExternalLocation: make(map[string]any),
ExternalLocations: make(map[string]any),
Group: make(map[string]any),
InstancePool: make(map[string]any),
InstanceProfiles: make(map[string]any),
Expand Down
27 changes: 14 additions & 13 deletions bundle/internal/tf/schema/resource_catalog.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,17 +3,18 @@
package schema

type ResourceCatalog struct {
Comment string `json:"comment,omitempty"`
ConnectionName string `json:"connection_name,omitempty"`
ForceDestroy bool `json:"force_destroy,omitempty"`
Id string `json:"id,omitempty"`
IsolationMode string `json:"isolation_mode,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"`
Options map[string]string `json:"options,omitempty"`
Owner string `json:"owner,omitempty"`
Properties map[string]string `json:"properties,omitempty"`
ProviderName string `json:"provider_name,omitempty"`
ShareName string `json:"share_name,omitempty"`
StorageRoot string `json:"storage_root,omitempty"`
Comment string `json:"comment,omitempty"`
ConnectionName string `json:"connection_name,omitempty"`
EnablePredictiveOptimization string `json:"enable_predictive_optimization,omitempty"`
ForceDestroy bool `json:"force_destroy,omitempty"`
Id string `json:"id,omitempty"`
IsolationMode string `json:"isolation_mode,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"`
Options map[string]string `json:"options,omitempty"`
Owner string `json:"owner,omitempty"`
Properties map[string]string `json:"properties,omitempty"`
ProviderName string `json:"provider_name,omitempty"`
ShareName string `json:"share_name,omitempty"`
StorageRoot string `json:"storage_root,omitempty"`
}
5 changes: 5 additions & 0 deletions bundle/internal/tf/schema/resource_cluster.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,6 +32,10 @@ type ResourceClusterAzureAttributes struct {
LogAnalyticsInfo *ResourceClusterAzureAttributesLogAnalyticsInfo `json:"log_analytics_info,omitempty"`
}

type ResourceClusterCloneFrom struct {
SourceClusterId string `json:"source_cluster_id"`
}

type ResourceClusterClusterLogConfDbfs struct {
Destination string `json:"destination"`
}
Expand DownExpand Up@@ -190,6 +194,7 @@ type ResourceCluster struct {
Autoscale *ResourceClusterAutoscale `json:"autoscale,omitempty"`
AwsAttributes *ResourceClusterAwsAttributes `json:"aws_attributes,omitempty"`
AzureAttributes *ResourceClusterAzureAttributes `json:"azure_attributes,omitempty"`
CloneFrom *ResourceClusterCloneFrom `json:"clone_from,omitempty"`
ClusterLogConf *ResourceClusterClusterLogConf `json:"cluster_log_conf,omitempty"`
ClusterMountInfo []ResourceClusterClusterMountInfo `json:"cluster_mount_info,omitempty"`
DockerImage *ResourceClusterDockerImage `json:"docker_image,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions bundle/internal/tf/schema/resource_instance_pool.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@ type ResourceInstancePoolDiskSpec struct {
type ResourceInstancePoolGcpAttributes struct {
GcpAvailability string `json:"gcp_availability,omitempty"`
LocalSsdCount int `json:"local_ssd_count,omitempty"`
ZoneId string `json:"zone_id,omitempty"`
}

type ResourceInstancePoolInstancePoolFleetAttributesFleetOnDemandOption struct {
Expand Down
28 changes: 16 additions & 12 deletions bundle/internal/tf/schema/resource_job.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,15 +2,6 @@

package schema

type ResourceJobComputeSpec struct {
Kind string `json:"kind,omitempty"`
}

type ResourceJobCompute struct {
ComputeKey string `json:"compute_key,omitempty"`
Spec *ResourceJobComputeSpec `json:"spec,omitempty"`
}

type ResourceJobContinuous struct {
PauseStatus string `json:"pause_status,omitempty"`
}
Expand DownExpand Up@@ -38,6 +29,16 @@ type ResourceJobEmailNotifications struct {
OnSuccess []string `json:"on_success,omitempty"`
}

type ResourceJobEnvironmentSpec struct {
Client string `json:"client"`
Dependencies []string `json:"dependencies,omitempty"`
}

type ResourceJobEnvironment struct {
EnvironmentKey string `json:"environment_key"`
Spec *ResourceJobEnvironmentSpec `json:"spec,omitempty"`
}

type ResourceJobGitSourceJobSource struct {
DirtyState string `json:"dirty_state,omitempty"`
ImportFromGitBranch string `json:"import_from_git_branch"`
Expand DownExpand Up@@ -411,6 +412,7 @@ type ResourceJobNotebookTask struct {
BaseParameters map[string]string `json:"base_parameters,omitempty"`
NotebookPath string `json:"notebook_path"`
Source string `json:"source,omitempty"`
WarehouseId string `json:"warehouse_id,omitempty"`
}

type ResourceJobNotificationSettings struct {
Expand DownExpand Up@@ -725,6 +727,7 @@ type ResourceJobTaskForEachTaskTaskNotebookTask struct {
BaseParameters map[string]string `json:"base_parameters,omitempty"`
NotebookPath string `json:"notebook_path"`
Source string `json:"source,omitempty"`
WarehouseId string `json:"warehouse_id,omitempty"`
}

type ResourceJobTaskForEachTaskTaskNotificationSettings struct {
Expand DownExpand Up@@ -831,8 +834,8 @@ type ResourceJobTaskForEachTaskTaskWebhookNotifications struct {
}

type ResourceJobTaskForEachTaskTask struct {
ComputeKey string `json:"compute_key,omitempty"`
Description string `json:"description,omitempty"`
EnvironmentKey string `json:"environment_key,omitempty"`
ExistingClusterId string `json:"existing_cluster_id,omitempty"`
JobClusterKey string `json:"job_cluster_key,omitempty"`
MaxRetries int `json:"max_retries,omitempty"`
Expand DownExpand Up@@ -1062,6 +1065,7 @@ type ResourceJobTaskNotebookTask struct {
BaseParameters map[string]string `json:"base_parameters,omitempty"`
NotebookPath string `json:"notebook_path"`
Source string `json:"source,omitempty"`
WarehouseId string `json:"warehouse_id,omitempty"`
}

type ResourceJobTaskNotificationSettings struct {
Expand DownExpand Up@@ -1168,8 +1172,8 @@ type ResourceJobTaskWebhookNotifications struct {
}

type ResourceJobTask struct {
ComputeKey string `json:"compute_key,omitempty"`
Description string `json:"description,omitempty"`
EnvironmentKey string `json:"environment_key,omitempty"`
ExistingClusterId string `json:"existing_cluster_id,omitempty"`
JobClusterKey string `json:"job_cluster_key,omitempty"`
MaxRetries int `json:"max_retries,omitempty"`
Expand DownExpand Up@@ -1256,11 +1260,11 @@ type ResourceJob struct {
Tags map[string]string `json:"tags,omitempty"`
TimeoutSeconds int `json:"timeout_seconds,omitempty"`
Url string `json:"url,omitempty"`
Compute []ResourceJobCompute `json:"compute,omitempty"`
Continuous *ResourceJobContinuous `json:"continuous,omitempty"`
DbtTask *ResourceJobDbtTask `json:"dbt_task,omitempty"`
Deployment *ResourceJobDeployment `json:"deployment,omitempty"`
EmailNotifications *ResourceJobEmailNotifications `json:"email_notifications,omitempty"`
Environment []ResourceJobEnvironment `json:"environment,omitempty"`
GitSource *ResourceJobGitSource `json:"git_source,omitempty"`
Health *ResourceJobHealth `json:"health,omitempty"`
JobCluster []ResourceJobJobCluster `json:"job_cluster,omitempty"`
Expand Down
Loading