Skip to content

Commit

Permalink
Bump Terraform provider to v1.28.0 (#871)
Browse files Browse the repository at this point in the history
## Changes

Regenerate structs for Terraform provider v1.28.0
([release](https://github.com/databricks/terraform-provider-databricks/releases/tag/v1.28.0)).

## Tests

n/a
  • Loading branch information
pietern committed Oct 16, 2023
1 parent 30c4d2e commit b940c86
Show file tree
Hide file tree
Showing 26 changed files with 195 additions and 72 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.23.0"
const ProviderVersion = "1.28.0"
5 changes: 5 additions & 0 deletions bundle/internal/tf/schema/data_source_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ type DataSourceClusterClusterInfoInitScriptsS3 struct {
Region string `json:"region,omitempty"`
}

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

type DataSourceClusterClusterInfoInitScriptsWorkspace struct {
Destination string `json:"destination,omitempty"`
}
Expand All @@ -131,6 +135,7 @@ type DataSourceClusterClusterInfoInitScripts struct {
File *DataSourceClusterClusterInfoInitScriptsFile `json:"file,omitempty"`
Gcs *DataSourceClusterClusterInfoInitScriptsGcs `json:"gcs,omitempty"`
S3 *DataSourceClusterClusterInfoInitScriptsS3 `json:"s3,omitempty"`
Volumes *DataSourceClusterClusterInfoInitScriptsVolumes `json:"volumes,omitempty"`
Workspace *DataSourceClusterClusterInfoInitScriptsWorkspace `json:"workspace,omitempty"`
}

Expand Down
15 changes: 8 additions & 7 deletions bundle/internal/tf/schema/data_source_current_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
package schema

type DataSourceCurrentUser struct {
Alphanumeric string `json:"alphanumeric,omitempty"`
ExternalId string `json:"external_id,omitempty"`
Home string `json:"home,omitempty"`
Id string `json:"id,omitempty"`
Repos string `json:"repos,omitempty"`
UserName string `json:"user_name,omitempty"`
WorkspaceUrl string `json:"workspace_url,omitempty"`
AclPrincipalId string `json:"acl_principal_id,omitempty"`
Alphanumeric string `json:"alphanumeric,omitempty"`
ExternalId string `json:"external_id,omitempty"`
Home string `json:"home,omitempty"`
Id string `json:"id,omitempty"`
Repos string `json:"repos,omitempty"`
UserName string `json:"user_name,omitempty"`
WorkspaceUrl string `json:"workspace_url,omitempty"`
}
1 change: 1 addition & 0 deletions bundle/internal/tf/schema/data_source_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package schema

type DataSourceGroup struct {
AclPrincipalId string `json:"acl_principal_id,omitempty"`
AllowClusterCreate bool `json:"allow_cluster_create,omitempty"`
AllowInstancePoolCreate bool `json:"allow_instance_pool_create,omitempty"`
ChildGroups []string `json:"child_groups,omitempty"`
Expand Down
20 changes: 18 additions & 2 deletions bundle/internal/tf/schema/data_source_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ type DataSourceJobJobSettingsSettingsJobClusterNewClusterInitScriptsS3 struct {
Region string `json:"region,omitempty"`
}

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

type DataSourceJobJobSettingsSettingsJobClusterNewClusterInitScriptsWorkspace struct {
Destination string `json:"destination,omitempty"`
}
Expand All @@ -165,6 +169,7 @@ type DataSourceJobJobSettingsSettingsJobClusterNewClusterInitScripts struct {
File *DataSourceJobJobSettingsSettingsJobClusterNewClusterInitScriptsFile `json:"file,omitempty"`
Gcs *DataSourceJobJobSettingsSettingsJobClusterNewClusterInitScriptsGcs `json:"gcs,omitempty"`
S3 *DataSourceJobJobSettingsSettingsJobClusterNewClusterInitScriptsS3 `json:"s3,omitempty"`
Volumes *DataSourceJobJobSettingsSettingsJobClusterNewClusterInitScriptsVolumes `json:"volumes,omitempty"`
Workspace *DataSourceJobJobSettingsSettingsJobClusterNewClusterInitScriptsWorkspace `json:"workspace,omitempty"`
}

Expand Down Expand Up @@ -337,6 +342,10 @@ type DataSourceJobJobSettingsSettingsNewClusterInitScriptsS3 struct {
Region string `json:"region,omitempty"`
}

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

type DataSourceJobJobSettingsSettingsNewClusterInitScriptsWorkspace struct {
Destination string `json:"destination,omitempty"`
}
Expand All @@ -347,6 +356,7 @@ type DataSourceJobJobSettingsSettingsNewClusterInitScripts struct {
File *DataSourceJobJobSettingsSettingsNewClusterInitScriptsFile `json:"file,omitempty"`
Gcs *DataSourceJobJobSettingsSettingsNewClusterInitScriptsGcs `json:"gcs,omitempty"`
S3 *DataSourceJobJobSettingsSettingsNewClusterInitScriptsS3 `json:"s3,omitempty"`
Volumes *DataSourceJobJobSettingsSettingsNewClusterInitScriptsVolumes `json:"volumes,omitempty"`
Workspace *DataSourceJobJobSettingsSettingsNewClusterInitScriptsWorkspace `json:"workspace,omitempty"`
}

Expand Down Expand Up @@ -421,6 +431,7 @@ type DataSourceJobJobSettingsSettingsPythonWheelTask struct {
}

type DataSourceJobJobSettingsSettingsQueue struct {
Enabled bool `json:"enabled"`
}

type DataSourceJobJobSettingsSettingsRunAs struct {
Expand All @@ -429,7 +440,7 @@ type DataSourceJobJobSettingsSettingsRunAs struct {
}

type DataSourceJobJobSettingsSettingsRunJobTask struct {
JobId string `json:"job_id"`
JobId int `json:"job_id"`
JobParameters map[string]string `json:"job_parameters,omitempty"`
}

Expand Down Expand Up @@ -616,6 +627,10 @@ type DataSourceJobJobSettingsSettingsTaskNewClusterInitScriptsS3 struct {
Region string `json:"region,omitempty"`
}

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

type DataSourceJobJobSettingsSettingsTaskNewClusterInitScriptsWorkspace struct {
Destination string `json:"destination,omitempty"`
}
Expand All @@ -626,6 +641,7 @@ type DataSourceJobJobSettingsSettingsTaskNewClusterInitScripts struct {
File *DataSourceJobJobSettingsSettingsTaskNewClusterInitScriptsFile `json:"file,omitempty"`
Gcs *DataSourceJobJobSettingsSettingsTaskNewClusterInitScriptsGcs `json:"gcs,omitempty"`
S3 *DataSourceJobJobSettingsSettingsTaskNewClusterInitScriptsS3 `json:"s3,omitempty"`
Volumes *DataSourceJobJobSettingsSettingsTaskNewClusterInitScriptsVolumes `json:"volumes,omitempty"`
Workspace *DataSourceJobJobSettingsSettingsTaskNewClusterInitScriptsWorkspace `json:"workspace,omitempty"`
}

Expand Down Expand Up @@ -696,7 +712,7 @@ type DataSourceJobJobSettingsSettingsTaskPythonWheelTask struct {
}

type DataSourceJobJobSettingsSettingsTaskRunJobTask struct {
JobId string `json:"job_id"`
JobId int `json:"job_id"`
JobParameters map[string]string `json:"job_parameters,omitempty"`
}

Expand Down
17 changes: 9 additions & 8 deletions bundle/internal/tf/schema/data_source_service_principal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
package schema

type DataSourceServicePrincipal struct {
Active bool `json:"active,omitempty"`
ApplicationId string `json:"application_id,omitempty"`
DisplayName string `json:"display_name,omitempty"`
ExternalId string `json:"external_id,omitempty"`
Home string `json:"home,omitempty"`
Id string `json:"id,omitempty"`
Repos string `json:"repos,omitempty"`
SpId string `json:"sp_id,omitempty"`
AclPrincipalId string `json:"acl_principal_id,omitempty"`
Active bool `json:"active,omitempty"`
ApplicationId string `json:"application_id,omitempty"`
DisplayName string `json:"display_name,omitempty"`
ExternalId string `json:"external_id,omitempty"`
Home string `json:"home,omitempty"`
Id string `json:"id,omitempty"`
Repos string `json:"repos,omitempty"`
SpId string `json:"sp_id,omitempty"`
}
19 changes: 10 additions & 9 deletions bundle/internal/tf/schema/data_source_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
package schema

type DataSourceUser struct {
Alphanumeric string `json:"alphanumeric,omitempty"`
ApplicationId string `json:"application_id,omitempty"`
DisplayName string `json:"display_name,omitempty"`
ExternalId string `json:"external_id,omitempty"`
Home string `json:"home,omitempty"`
Id string `json:"id,omitempty"`
Repos string `json:"repos,omitempty"`
UserId string `json:"user_id,omitempty"`
UserName string `json:"user_name,omitempty"`
AclPrincipalId string `json:"acl_principal_id,omitempty"`
Alphanumeric string `json:"alphanumeric,omitempty"`
ApplicationId string `json:"application_id,omitempty"`
DisplayName string `json:"display_name,omitempty"`
ExternalId string `json:"external_id,omitempty"`
Home string `json:"home,omitempty"`
Id string `json:"id,omitempty"`
Repos string `json:"repos,omitempty"`
UserId string `json:"user_id,omitempty"`
UserName string `json:"user_name,omitempty"`
}
24 changes: 13 additions & 11 deletions bundle/internal/tf/schema/resource_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
package schema

type ResourceCatalog struct {
Comment string `json:"comment,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"`
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"`
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 number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ type ResourceClusterInitScriptsS3 struct {
Region string `json:"region,omitempty"`
}

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

type ResourceClusterInitScriptsWorkspace struct {
Destination string `json:"destination,omitempty"`
}
Expand All @@ -109,6 +113,7 @@ type ResourceClusterInitScripts struct {
File *ResourceClusterInitScriptsFile `json:"file,omitempty"`
Gcs *ResourceClusterInitScriptsGcs `json:"gcs,omitempty"`
S3 *ResourceClusterInitScriptsS3 `json:"s3,omitempty"`
Volumes *ResourceClusterInitScriptsVolumes `json:"volumes,omitempty"`
Workspace *ResourceClusterInitScriptsWorkspace `json:"workspace,omitempty"`
}

Expand Down
32 changes: 22 additions & 10 deletions bundle/internal/tf/schema/resource_external_location.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@

package schema

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

type ResourceExternalLocationEncryptionDetails struct {
SseEncryptionDetails *ResourceExternalLocationEncryptionDetailsSseEncryptionDetails `json:"sse_encryption_details,omitempty"`
}

type ResourceExternalLocation struct {
Comment string `json:"comment,omitempty"`
CredentialName string `json:"credential_name"`
ForceDestroy bool `json:"force_destroy,omitempty"`
Id string `json:"id,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"`
Owner string `json:"owner,omitempty"`
ReadOnly bool `json:"read_only,omitempty"`
SkipValidation bool `json:"skip_validation,omitempty"`
Url string `json:"url"`
AccessPoint string `json:"access_point,omitempty"`
Comment string `json:"comment,omitempty"`
CredentialName string `json:"credential_name"`
ForceDestroy bool `json:"force_destroy,omitempty"`
ForceUpdate bool `json:"force_update,omitempty"`
Id string `json:"id,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"`
Owner string `json:"owner,omitempty"`
ReadOnly bool `json:"read_only,omitempty"`
SkipValidation bool `json:"skip_validation,omitempty"`
Url string `json:"url"`
EncryptionDetails *ResourceExternalLocationEncryptionDetails `json:"encryption_details,omitempty"`
}
2 changes: 2 additions & 0 deletions bundle/internal/tf/schema/resource_grants.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ type ResourceGrantsGrant struct {
type ResourceGrants struct {
Catalog string `json:"catalog,omitempty"`
ExternalLocation string `json:"external_location,omitempty"`
ForeignConnection string `json:"foreign_connection,omitempty"`
Function string `json:"function,omitempty"`
Id string `json:"id,omitempty"`
MaterializedView string `json:"materialized_view,omitempty"`
Metastore string `json:"metastore,omitempty"`
Model string `json:"model,omitempty"`
Schema string `json:"schema,omitempty"`
Share string `json:"share,omitempty"`
StorageCredential string `json:"storage_credential,omitempty"`
Expand Down
20 changes: 18 additions & 2 deletions bundle/internal/tf/schema/resource_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ type ResourceJobJobClusterNewClusterInitScriptsS3 struct {
Region string `json:"region,omitempty"`
}

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

type ResourceJobJobClusterNewClusterInitScriptsWorkspace struct {
Destination string `json:"destination,omitempty"`
}
Expand All @@ -165,6 +169,7 @@ type ResourceJobJobClusterNewClusterInitScripts struct {
File *ResourceJobJobClusterNewClusterInitScriptsFile `json:"file,omitempty"`
Gcs *ResourceJobJobClusterNewClusterInitScriptsGcs `json:"gcs,omitempty"`
S3 *ResourceJobJobClusterNewClusterInitScriptsS3 `json:"s3,omitempty"`
Volumes *ResourceJobJobClusterNewClusterInitScriptsVolumes `json:"volumes,omitempty"`
Workspace *ResourceJobJobClusterNewClusterInitScriptsWorkspace `json:"workspace,omitempty"`
}

Expand Down Expand Up @@ -337,6 +342,10 @@ type ResourceJobNewClusterInitScriptsS3 struct {
Region string `json:"region,omitempty"`
}

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

type ResourceJobNewClusterInitScriptsWorkspace struct {
Destination string `json:"destination,omitempty"`
}
Expand All @@ -347,6 +356,7 @@ type ResourceJobNewClusterInitScripts struct {
File *ResourceJobNewClusterInitScriptsFile `json:"file,omitempty"`
Gcs *ResourceJobNewClusterInitScriptsGcs `json:"gcs,omitempty"`
S3 *ResourceJobNewClusterInitScriptsS3 `json:"s3,omitempty"`
Volumes *ResourceJobNewClusterInitScriptsVolumes `json:"volumes,omitempty"`
Workspace *ResourceJobNewClusterInitScriptsWorkspace `json:"workspace,omitempty"`
}

Expand Down Expand Up @@ -421,6 +431,7 @@ type ResourceJobPythonWheelTask struct {
}

type ResourceJobQueue struct {
Enabled bool `json:"enabled"`
}

type ResourceJobRunAs struct {
Expand All @@ -429,7 +440,7 @@ type ResourceJobRunAs struct {
}

type ResourceJobRunJobTask struct {
JobId string `json:"job_id"`
JobId int `json:"job_id"`
JobParameters map[string]string `json:"job_parameters,omitempty"`
}

Expand Down Expand Up @@ -616,6 +627,10 @@ type ResourceJobTaskNewClusterInitScriptsS3 struct {
Region string `json:"region,omitempty"`
}

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

type ResourceJobTaskNewClusterInitScriptsWorkspace struct {
Destination string `json:"destination,omitempty"`
}
Expand All @@ -626,6 +641,7 @@ type ResourceJobTaskNewClusterInitScripts struct {
File *ResourceJobTaskNewClusterInitScriptsFile `json:"file,omitempty"`
Gcs *ResourceJobTaskNewClusterInitScriptsGcs `json:"gcs,omitempty"`
S3 *ResourceJobTaskNewClusterInitScriptsS3 `json:"s3,omitempty"`
Volumes *ResourceJobTaskNewClusterInitScriptsVolumes `json:"volumes,omitempty"`
Workspace *ResourceJobTaskNewClusterInitScriptsWorkspace `json:"workspace,omitempty"`
}

Expand Down Expand Up @@ -696,7 +712,7 @@ type ResourceJobTaskPythonWheelTask struct {
}

type ResourceJobTaskRunJobTask struct {
JobId string `json:"job_id"`
JobId int `json:"job_id"`
JobParameters map[string]string `json:"job_parameters,omitempty"`
}

Expand Down
2 changes: 2 additions & 0 deletions bundle/internal/tf/schema/resource_metastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ type ResourceMetastore struct {
ForceDestroy bool `json:"force_destroy,omitempty"`
GlobalMetastoreId string `json:"global_metastore_id,omitempty"`
Id string `json:"id,omitempty"`
MetastoreId string `json:"metastore_id,omitempty"`
Name string `json:"name"`
Owner string `json:"owner,omitempty"`
Region string `json:"region,omitempty"`
StorageRoot string `json:"storage_root"`
StorageRootCredentialId string `json:"storage_root_credential_id,omitempty"`
UpdatedAt int `json:"updated_at,omitempty"`
UpdatedBy string `json:"updated_by,omitempty"`
}
Loading

0 comments on commit b940c86

Please sign in to comment.