Skip to content

Commit

Permalink
Upgrade TF provider to 1.49.0 (#1617)
Browse files Browse the repository at this point in the history
## Changes

This includes a fix for model serving endpoints.

See
databricks/terraform-provider-databricks#3690.

## Tests

n/a
  • Loading branch information
pietern authored Jul 23, 2024
1 parent 15ca7fe commit 52ca599
Show file tree
Hide file tree
Showing 10 changed files with 339 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bundle/internal/tf/codegen/schema/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package schema

const ProviderVersion = "1.48.3"
const ProviderVersion = "1.49.0"
232 changes: 221 additions & 11 deletions bundle/internal/tf/schema/data_source_cluster.go

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions bundle/internal/tf/schema/data_source_schema.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.

package schema

type DataSourceSchemaSchemaInfoEffectivePredictiveOptimizationFlag struct {
InheritedFromName string `json:"inherited_from_name,omitempty"`
InheritedFromType string `json:"inherited_from_type,omitempty"`
Value string `json:"value"`
}

type DataSourceSchemaSchemaInfo struct {
BrowseOnly bool `json:"browse_only,omitempty"`
CatalogName string `json:"catalog_name,omitempty"`
CatalogType string `json:"catalog_type,omitempty"`
Comment string `json:"comment,omitempty"`
CreatedAt int `json:"created_at,omitempty"`
CreatedBy string `json:"created_by,omitempty"`
EnablePredictiveOptimization string `json:"enable_predictive_optimization,omitempty"`
FullName string `json:"full_name,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name,omitempty"`
Owner string `json:"owner,omitempty"`
Properties map[string]string `json:"properties,omitempty"`
SchemaId string `json:"schema_id,omitempty"`
StorageLocation string `json:"storage_location,omitempty"`
StorageRoot string `json:"storage_root,omitempty"`
UpdatedAt int `json:"updated_at,omitempty"`
UpdatedBy string `json:"updated_by,omitempty"`
EffectivePredictiveOptimizationFlag *DataSourceSchemaSchemaInfoEffectivePredictiveOptimizationFlag `json:"effective_predictive_optimization_flag,omitempty"`
}

type DataSourceSchema struct {
Id string `json:"id,omitempty"`
Name string `json:"name"`
SchemaInfo *DataSourceSchemaSchemaInfo `json:"schema_info,omitempty"`
}
38 changes: 38 additions & 0 deletions bundle/internal/tf/schema/data_source_volume.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.

package schema

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

type DataSourceVolumeVolumeInfoEncryptionDetails struct {
SseEncryptionDetails *DataSourceVolumeVolumeInfoEncryptionDetailsSseEncryptionDetails `json:"sse_encryption_details,omitempty"`
}

type DataSourceVolumeVolumeInfo struct {
AccessPoint string `json:"access_point,omitempty"`
BrowseOnly bool `json:"browse_only,omitempty"`
CatalogName string `json:"catalog_name,omitempty"`
Comment string `json:"comment,omitempty"`
CreatedAt int `json:"created_at,omitempty"`
CreatedBy string `json:"created_by,omitempty"`
FullName string `json:"full_name,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name,omitempty"`
Owner string `json:"owner,omitempty"`
SchemaName string `json:"schema_name,omitempty"`
StorageLocation string `json:"storage_location,omitempty"`
UpdatedAt int `json:"updated_at,omitempty"`
UpdatedBy string `json:"updated_by,omitempty"`
VolumeId string `json:"volume_id,omitempty"`
VolumeType string `json:"volume_type,omitempty"`
EncryptionDetails *DataSourceVolumeVolumeInfoEncryptionDetails `json:"encryption_details,omitempty"`
}

type DataSourceVolume struct {
Id string `json:"id,omitempty"`
Name string `json:"name"`
VolumeInfo *DataSourceVolumeVolumeInfo `json:"volume_info,omitempty"`
}
4 changes: 4 additions & 0 deletions bundle/internal/tf/schema/data_sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type DataSources struct {
Notebook map[string]any `json:"databricks_notebook,omitempty"`
NotebookPaths map[string]any `json:"databricks_notebook_paths,omitempty"`
Pipelines map[string]any `json:"databricks_pipelines,omitempty"`
Schema map[string]any `json:"databricks_schema,omitempty"`
Schemas map[string]any `json:"databricks_schemas,omitempty"`
ServicePrincipal map[string]any `json:"databricks_service_principal,omitempty"`
ServicePrincipals map[string]any `json:"databricks_service_principals,omitempty"`
Expand All @@ -50,6 +51,7 @@ type DataSources struct {
Tables map[string]any `json:"databricks_tables,omitempty"`
User map[string]any `json:"databricks_user,omitempty"`
Views map[string]any `json:"databricks_views,omitempty"`
Volume map[string]any `json:"databricks_volume,omitempty"`
Volumes map[string]any `json:"databricks_volumes,omitempty"`
Zones map[string]any `json:"databricks_zones,omitempty"`
}
Expand Down Expand Up @@ -89,6 +91,7 @@ func NewDataSources() *DataSources {
Notebook: make(map[string]any),
NotebookPaths: make(map[string]any),
Pipelines: make(map[string]any),
Schema: make(map[string]any),
Schemas: make(map[string]any),
ServicePrincipal: make(map[string]any),
ServicePrincipals: make(map[string]any),
Expand All @@ -103,6 +106,7 @@ func NewDataSources() *DataSources {
Tables: make(map[string]any),
User: make(map[string]any),
Views: make(map[string]any),
Volume: make(map[string]any),
Volumes: make(map[string]any),
Zones: make(map[string]any),
}
Expand Down
21 changes: 21 additions & 0 deletions bundle/internal/tf/schema/resource_dashboard.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.

package schema

type ResourceDashboard struct {
CreateTime string `json:"create_time,omitempty"`
DashboardChangeDetected bool `json:"dashboard_change_detected,omitempty"`
DashboardId string `json:"dashboard_id,omitempty"`
DisplayName string `json:"display_name"`
EmbedCredentials bool `json:"embed_credentials,omitempty"`
Etag string `json:"etag,omitempty"`
FilePath string `json:"file_path,omitempty"`
Id string `json:"id,omitempty"`
LifecycleState string `json:"lifecycle_state,omitempty"`
Md5 string `json:"md5,omitempty"`
ParentPath string `json:"parent_path"`
Path string `json:"path,omitempty"`
SerializedDashboard string `json:"serialized_dashboard,omitempty"`
UpdateTime string `json:"update_time,omitempty"`
WarehouseId string `json:"warehouse_id"`
}
1 change: 1 addition & 0 deletions bundle/internal/tf/schema/resource_permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type ResourcePermissions struct {
Authorization string `json:"authorization,omitempty"`
ClusterId string `json:"cluster_id,omitempty"`
ClusterPolicyId string `json:"cluster_policy_id,omitempty"`
DashboardId string `json:"dashboard_id,omitempty"`
DirectoryId string `json:"directory_id,omitempty"`
DirectoryPath string `json:"directory_path,omitempty"`
ExperimentId string `json:"experiment_id,omitempty"`
Expand Down
12 changes: 12 additions & 0 deletions bundle/internal/tf/schema/resource_workspace_binding.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.

package schema

type ResourceWorkspaceBinding struct {
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"`
}
4 changes: 4 additions & 0 deletions bundle/internal/tf/schema/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type Resources struct {
ClusterPolicy map[string]any `json:"databricks_cluster_policy,omitempty"`
ComplianceSecurityProfileWorkspaceSetting map[string]any `json:"databricks_compliance_security_profile_workspace_setting,omitempty"`
Connection map[string]any `json:"databricks_connection,omitempty"`
Dashboard map[string]any `json:"databricks_dashboard,omitempty"`
DbfsFile map[string]any `json:"databricks_dbfs_file,omitempty"`
DefaultNamespaceSetting map[string]any `json:"databricks_default_namespace_setting,omitempty"`
Directory map[string]any `json:"databricks_directory,omitempty"`
Expand Down Expand Up @@ -96,6 +97,7 @@ type Resources struct {
VectorSearchEndpoint map[string]any `json:"databricks_vector_search_endpoint,omitempty"`
VectorSearchIndex map[string]any `json:"databricks_vector_search_index,omitempty"`
Volume map[string]any `json:"databricks_volume,omitempty"`
WorkspaceBinding map[string]any `json:"databricks_workspace_binding,omitempty"`
WorkspaceConf map[string]any `json:"databricks_workspace_conf,omitempty"`
WorkspaceFile map[string]any `json:"databricks_workspace_file,omitempty"`
}
Expand All @@ -115,6 +117,7 @@ func NewResources() *Resources {
ClusterPolicy: make(map[string]any),
ComplianceSecurityProfileWorkspaceSetting: make(map[string]any),
Connection: make(map[string]any),
Dashboard: make(map[string]any),
DbfsFile: make(map[string]any),
DefaultNamespaceSetting: make(map[string]any),
Directory: make(map[string]any),
Expand Down Expand Up @@ -195,6 +198,7 @@ func NewResources() *Resources {
VectorSearchEndpoint: make(map[string]any),
VectorSearchIndex: make(map[string]any),
Volume: make(map[string]any),
WorkspaceBinding: make(map[string]any),
WorkspaceConf: make(map[string]any),
WorkspaceFile: make(map[string]any),
}
Expand Down
2 changes: 1 addition & 1 deletion bundle/internal/tf/schema/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Root struct {

const ProviderHost = "registry.terraform.io"
const ProviderSource = "databricks/databricks"
const ProviderVersion = "1.48.3"
const ProviderVersion = "1.49.0"

func NewRoot() *Root {
return &Root{
Expand Down

0 comments on commit 52ca599

Please sign in to comment.