Skip to content

Commit

Permalink
Upgrade Terraform provider to 1.37.0 (#1235)
Browse files Browse the repository at this point in the history
## Changes
Upgrade Terraform provider to 1.37.0

Currently we're using 1.36.2 version which uses Go SDK 0.30 which does
not have U2M enabled for all clouds.
Upgrading to 1.37.0 allows TF provider (and thus DABs) to use U2M

Fixes #1231
  • Loading branch information
andrewnester authored Feb 23, 2024
1 parent f69b707 commit 1dbc086
Show file tree
Hide file tree
Showing 14 changed files with 855 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.36.2"
const ProviderVersion = "1.37.0"
2 changes: 1 addition & 1 deletion bundle/internal/tf/schema/data_source_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ type DataSourceClusterClusterInfoInitScriptsS3 struct {
}

type DataSourceClusterClusterInfoInitScriptsVolumes struct {
Destination string `json:"destination,omitempty"`
Destination string `json:"destination"`
}

type DataSourceClusterClusterInfoInitScriptsWorkspace struct {
Expand Down
377 changes: 373 additions & 4 deletions bundle/internal/tf/schema/data_source_job.go

Large diffs are not rendered by default.

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

package schema

type DataSourceStorageCredentialStorageCredentialInfoAwsIamRole struct {
ExternalId string `json:"external_id,omitempty"`
RoleArn string `json:"role_arn"`
UnityCatalogIamArn string `json:"unity_catalog_iam_arn,omitempty"`
}

type DataSourceStorageCredentialStorageCredentialInfoAzureManagedIdentity struct {
AccessConnectorId string `json:"access_connector_id"`
CredentialId string `json:"credential_id,omitempty"`
ManagedIdentityId string `json:"managed_identity_id,omitempty"`
}

type DataSourceStorageCredentialStorageCredentialInfoAzureServicePrincipal struct {
ApplicationId string `json:"application_id"`
ClientSecret string `json:"client_secret"`
DirectoryId string `json:"directory_id"`
}

type DataSourceStorageCredentialStorageCredentialInfoCloudflareApiToken struct {
AccessKeyId string `json:"access_key_id"`
AccountId string `json:"account_id"`
SecretAccessKey string `json:"secret_access_key"`
}

type DataSourceStorageCredentialStorageCredentialInfoDatabricksGcpServiceAccount struct {
CredentialId string `json:"credential_id,omitempty"`
Email string `json:"email,omitempty"`
}

type DataSourceStorageCredentialStorageCredentialInfo struct {
Comment string `json:"comment,omitempty"`
CreatedAt int `json:"created_at,omitempty"`
CreatedBy string `json:"created_by,omitempty"`
Id string `json:"id,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"`
UsedForManagedStorage bool `json:"used_for_managed_storage,omitempty"`
AwsIamRole *DataSourceStorageCredentialStorageCredentialInfoAwsIamRole `json:"aws_iam_role,omitempty"`
AzureManagedIdentity *DataSourceStorageCredentialStorageCredentialInfoAzureManagedIdentity `json:"azure_managed_identity,omitempty"`
AzureServicePrincipal *DataSourceStorageCredentialStorageCredentialInfoAzureServicePrincipal `json:"azure_service_principal,omitempty"`
CloudflareApiToken *DataSourceStorageCredentialStorageCredentialInfoCloudflareApiToken `json:"cloudflare_api_token,omitempty"`
DatabricksGcpServiceAccount *DataSourceStorageCredentialStorageCredentialInfoDatabricksGcpServiceAccount `json:"databricks_gcp_service_account,omitempty"`
}

type DataSourceStorageCredential struct {
Id string `json:"id,omitempty"`
Name string `json:"name"`
StorageCredentialInfo *DataSourceStorageCredentialStorageCredentialInfo `json:"storage_credential_info,omitempty"`
}
8 changes: 8 additions & 0 deletions bundle/internal/tf/schema/data_source_storage_credentials.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.

package schema

type DataSourceStorageCredentials struct {
Id string `json:"id,omitempty"`
Names []string `json:"names,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 @@ -39,6 +39,8 @@ type DataSources struct {
SparkVersion map[string]any `json:"databricks_spark_version,omitempty"`
SqlWarehouse map[string]any `json:"databricks_sql_warehouse,omitempty"`
SqlWarehouses map[string]any `json:"databricks_sql_warehouses,omitempty"`
StorageCredential map[string]any `json:"databricks_storage_credential,omitempty"`
StorageCredentials map[string]any `json:"databricks_storage_credentials,omitempty"`
Tables map[string]any `json:"databricks_tables,omitempty"`
User map[string]any `json:"databricks_user,omitempty"`
Views map[string]any `json:"databricks_views,omitempty"`
Expand Down Expand Up @@ -84,6 +86,8 @@ func NewDataSources() *DataSources {
SparkVersion: make(map[string]any),
SqlWarehouse: make(map[string]any),
SqlWarehouses: make(map[string]any),
StorageCredential: make(map[string]any),
StorageCredentials: make(map[string]any),
Tables: make(map[string]any),
User: make(map[string]any),
Views: make(map[string]any),
Expand Down
2 changes: 1 addition & 1 deletion bundle/internal/tf/schema/resource_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type ResourceClusterInitScriptsDbfs struct {
}

type ResourceClusterInitScriptsFile struct {
Destination string `json:"destination,omitempty"`
Destination string `json:"destination"`
}

type ResourceClusterInitScriptsGcs struct {
Expand Down
14 changes: 14 additions & 0 deletions bundle/internal/tf/schema/resource_file.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Generated from Databricks Terraform provider schema. DO NOT EDIT.

package schema

type ResourceFile struct {
ContentBase64 string `json:"content_base64,omitempty"`
FileSize int `json:"file_size,omitempty"`
Id string `json:"id,omitempty"`
Md5 string `json:"md5,omitempty"`
ModificationTime string `json:"modification_time,omitempty"`
Path string `json:"path"`
RemoteFileModified bool `json:"remote_file_modified,omitempty"`
Source string `json:"source,omitempty"`
}
Loading

0 comments on commit 1dbc086

Please sign in to comment.