diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 6a9b5127c7..7b99b54628 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -2,4 +2,6 @@ ## Release v0.290.0 -### Internal: +### Dependency updates +* Upgrade TF provider to 1.109.0 ([#4561](https://github.com/databricks/cli/pull/4561)) +* Upgrade Go SDK to v0.110.0 ([#4552](https://github.com/databricks/cli/pull/4552)) diff --git a/acceptance/bundle/migrate/runas/out.create_requests.json b/acceptance/bundle/migrate/runas/out.create_requests.json index da399ecb30..12ce4b59b3 100644 --- a/acceptance/bundle/migrate/runas/out.create_requests.json +++ b/acceptance/bundle/migrate/runas/out.create_requests.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/pipeline auth/pat" + "databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/pipeline auth/pat" ] }, "method": "POST", @@ -32,7 +32,7 @@ { "headers": { "User-Agent": [ - "databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/permissions auth/pat" + "databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/permissions auth/pat" ] }, "method": "PUT", diff --git a/acceptance/bundle/state/state_present/output.txt b/acceptance/bundle/state/state_present/output.txt index 46f7de2558..0bd9da05ae 100644 --- a/acceptance/bundle/state/state_present/output.txt +++ b/acceptance/bundle/state/state_present/output.txt @@ -15,7 +15,7 @@ Updating deployment state... Deployment complete! >>> print_requests.py //api/2.1/unity-catalog/schemas -"databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" +"databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" >>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... @@ -24,7 +24,7 @@ Updating deployment state... Deployment complete! >>> print_requests.py --get //api/2.1/unity-catalog/schemas -"databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" +"databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" === Adding resources.json with lower serial does not change anything >>> DATABRICKS_BUNDLE_ENGINE=direct musterr [CLI] bundle plan diff --git a/acceptance/bundle/user_agent/output.txt b/acceptance/bundle/user_agent/output.txt index a8311d7067..5cc16a1c17 100644 --- a/acceptance/bundle/user_agent/output.txt +++ b/acceptance/bundle/user_agent/output.txt @@ -35,8 +35,8 @@ OK deploy.terraform /api/2.0/workspace-files/import-file/Workspace/Users/[USER OK deploy.terraform /api/2.0/workspace/delete engine/terraform OK deploy.terraform /api/2.0/workspace/delete engine/terraform OK deploy.terraform /api/2.0/workspace/mkdirs engine/terraform -MISS deploy.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' -MISS deploy.terraform /api/2.1/unity-catalog/schemas 'databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' +MISS deploy.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' +MISS deploy.terraform /api/2.1/unity-catalog/schemas 'databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' MISS destroy.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' MISS destroy.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' MISS destroy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' @@ -59,8 +59,8 @@ OK destroy.terraform /api/2.0/workspace/get-status engine/terraform OK destroy.terraform /api/2.0/workspace/get-status engine/terraform OK destroy.terraform /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock engine/terraform OK destroy.terraform /api/2.0/workspace/delete engine/terraform -MISS destroy.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' -MISS destroy.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' +MISS destroy.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' +MISS destroy.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' MISS plan.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' MISS plan.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' MISS plan.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' @@ -82,7 +82,7 @@ MISS plan2.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks MISS plan2.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' OK plan2.terraform /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json engine/terraform OK plan2.terraform /api/2.0/workspace/get-status engine/terraform -MISS plan2.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' +MISS plan2.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' MISS run.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' MISS run.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' MISS run.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' diff --git a/acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json index 2d120f3895..d46e1fa368 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json @@ -299,7 +299,7 @@ { "headers": { "User-Agent": [ - "databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" + "databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" ] }, "method": "GET", @@ -308,7 +308,7 @@ { "headers": { "User-Agent": [ - "databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" + "databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" ] }, "method": "POST", diff --git a/acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json index 57bfefe76a..be74397ded 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json @@ -127,7 +127,7 @@ { "headers": { "User-Agent": [ - "databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" + "databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" ] }, "method": "DELETE", @@ -139,7 +139,7 @@ { "headers": { "User-Agent": [ - "databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" + "databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" ] }, "method": "GET", diff --git a/acceptance/bundle/user_agent/simple/out.requests.plan2.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.plan2.terraform.json index f5468ea0c7..585360a109 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.plan2.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.plan2.terraform.json @@ -67,7 +67,7 @@ { "headers": { "User-Agent": [ - "databricks-tf-provider/1.106.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" + "databricks-tf-provider/1.109.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat" ] }, "method": "GET", diff --git a/bundle/internal/tf/codegen/schema/version.go b/bundle/internal/tf/codegen/schema/version.go index 0b12b1b9ba..4bf10b230b 100644 --- a/bundle/internal/tf/codegen/schema/version.go +++ b/bundle/internal/tf/codegen/schema/version.go @@ -1,3 +1,3 @@ package schema -const ProviderVersion = "1.106.0" +const ProviderVersion = "1.109.0" diff --git a/bundle/internal/tf/schema/data_source_app.go b/bundle/internal/tf/schema/data_source_app.go index 26415f2abc..74623592f0 100644 --- a/bundle/internal/tf/schema/data_source_app.go +++ b/bundle/internal/tf/schema/data_source_app.go @@ -184,6 +184,7 @@ type DataSourceAppApp struct { ServicePrincipalClientId string `json:"service_principal_client_id,omitempty"` ServicePrincipalId int `json:"service_principal_id,omitempty"` ServicePrincipalName string `json:"service_principal_name,omitempty"` + Space string `json:"space,omitempty"` UpdateTime string `json:"update_time,omitempty"` Updater string `json:"updater,omitempty"` Url string `json:"url,omitempty"` diff --git a/bundle/internal/tf/schema/data_source_apps.go b/bundle/internal/tf/schema/data_source_apps.go index fd474d931f..d9455d2798 100644 --- a/bundle/internal/tf/schema/data_source_apps.go +++ b/bundle/internal/tf/schema/data_source_apps.go @@ -184,6 +184,7 @@ type DataSourceAppsApp struct { ServicePrincipalClientId string `json:"service_principal_client_id,omitempty"` ServicePrincipalId int `json:"service_principal_id,omitempty"` ServicePrincipalName string `json:"service_principal_name,omitempty"` + Space string `json:"space,omitempty"` UpdateTime string `json:"update_time,omitempty"` Updater string `json:"updater,omitempty"` Url string `json:"url,omitempty"` diff --git a/bundle/internal/tf/schema/data_source_apps_space.go b/bundle/internal/tf/schema/data_source_apps_space.go new file mode 100644 index 0000000000..bd431afbb7 --- /dev/null +++ b/bundle/internal/tf/schema/data_source_apps_space.go @@ -0,0 +1,91 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type DataSourceAppsSpaceProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + +type DataSourceAppsSpaceResourcesDatabase struct { + DatabaseName string `json:"database_name"` + InstanceName string `json:"instance_name"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpaceResourcesExperiment struct { + ExperimentId string `json:"experiment_id"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpaceResourcesGenieSpace struct { + Name string `json:"name"` + Permission string `json:"permission"` + SpaceId string `json:"space_id"` +} + +type DataSourceAppsSpaceResourcesJob struct { + Id string `json:"id"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpaceResourcesSecret struct { + Key string `json:"key"` + Permission string `json:"permission"` + Scope string `json:"scope"` +} + +type DataSourceAppsSpaceResourcesServingEndpoint struct { + Name string `json:"name"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpaceResourcesSqlWarehouse struct { + Id string `json:"id"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpaceResourcesUcSecurable struct { + Permission string `json:"permission"` + SecurableFullName string `json:"securable_full_name"` + SecurableType string `json:"securable_type"` +} + +type DataSourceAppsSpaceResources struct { + Database *DataSourceAppsSpaceResourcesDatabase `json:"database,omitempty"` + Description string `json:"description,omitempty"` + Experiment *DataSourceAppsSpaceResourcesExperiment `json:"experiment,omitempty"` + GenieSpace *DataSourceAppsSpaceResourcesGenieSpace `json:"genie_space,omitempty"` + Job *DataSourceAppsSpaceResourcesJob `json:"job,omitempty"` + Name string `json:"name"` + Secret *DataSourceAppsSpaceResourcesSecret `json:"secret,omitempty"` + ServingEndpoint *DataSourceAppsSpaceResourcesServingEndpoint `json:"serving_endpoint,omitempty"` + SqlWarehouse *DataSourceAppsSpaceResourcesSqlWarehouse `json:"sql_warehouse,omitempty"` + UcSecurable *DataSourceAppsSpaceResourcesUcSecurable `json:"uc_securable,omitempty"` +} + +type DataSourceAppsSpaceStatus struct { + Message string `json:"message,omitempty"` + State string `json:"state,omitempty"` +} + +type DataSourceAppsSpace struct { + CreateTime string `json:"create_time,omitempty"` + Creator string `json:"creator,omitempty"` + Description string `json:"description,omitempty"` + EffectiveUsagePolicyId string `json:"effective_usage_policy_id,omitempty"` + EffectiveUserApiScopes []string `json:"effective_user_api_scopes,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name"` + Oauth2AppClientId string `json:"oauth2_app_client_id,omitempty"` + Oauth2AppIntegrationId string `json:"oauth2_app_integration_id,omitempty"` + ProviderConfig *DataSourceAppsSpaceProviderConfig `json:"provider_config,omitempty"` + Resources []DataSourceAppsSpaceResources `json:"resources,omitempty"` + ServicePrincipalClientId string `json:"service_principal_client_id,omitempty"` + ServicePrincipalId int `json:"service_principal_id,omitempty"` + ServicePrincipalName string `json:"service_principal_name,omitempty"` + Status *DataSourceAppsSpaceStatus `json:"status,omitempty"` + UpdateTime string `json:"update_time,omitempty"` + Updater string `json:"updater,omitempty"` + UsagePolicyId string `json:"usage_policy_id,omitempty"` + UserApiScopes []string `json:"user_api_scopes,omitempty"` +} diff --git a/bundle/internal/tf/schema/data_source_apps_spaces.go b/bundle/internal/tf/schema/data_source_apps_spaces.go new file mode 100644 index 0000000000..af7c793273 --- /dev/null +++ b/bundle/internal/tf/schema/data_source_apps_spaces.go @@ -0,0 +1,101 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type DataSourceAppsSpacesProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + +type DataSourceAppsSpacesSpacesProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + +type DataSourceAppsSpacesSpacesResourcesDatabase struct { + DatabaseName string `json:"database_name"` + InstanceName string `json:"instance_name"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpacesSpacesResourcesExperiment struct { + ExperimentId string `json:"experiment_id"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpacesSpacesResourcesGenieSpace struct { + Name string `json:"name"` + Permission string `json:"permission"` + SpaceId string `json:"space_id"` +} + +type DataSourceAppsSpacesSpacesResourcesJob struct { + Id string `json:"id"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpacesSpacesResourcesSecret struct { + Key string `json:"key"` + Permission string `json:"permission"` + Scope string `json:"scope"` +} + +type DataSourceAppsSpacesSpacesResourcesServingEndpoint struct { + Name string `json:"name"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpacesSpacesResourcesSqlWarehouse struct { + Id string `json:"id"` + Permission string `json:"permission"` +} + +type DataSourceAppsSpacesSpacesResourcesUcSecurable struct { + Permission string `json:"permission"` + SecurableFullName string `json:"securable_full_name"` + SecurableType string `json:"securable_type"` +} + +type DataSourceAppsSpacesSpacesResources struct { + Database *DataSourceAppsSpacesSpacesResourcesDatabase `json:"database,omitempty"` + Description string `json:"description,omitempty"` + Experiment *DataSourceAppsSpacesSpacesResourcesExperiment `json:"experiment,omitempty"` + GenieSpace *DataSourceAppsSpacesSpacesResourcesGenieSpace `json:"genie_space,omitempty"` + Job *DataSourceAppsSpacesSpacesResourcesJob `json:"job,omitempty"` + Name string `json:"name"` + Secret *DataSourceAppsSpacesSpacesResourcesSecret `json:"secret,omitempty"` + ServingEndpoint *DataSourceAppsSpacesSpacesResourcesServingEndpoint `json:"serving_endpoint,omitempty"` + SqlWarehouse *DataSourceAppsSpacesSpacesResourcesSqlWarehouse `json:"sql_warehouse,omitempty"` + UcSecurable *DataSourceAppsSpacesSpacesResourcesUcSecurable `json:"uc_securable,omitempty"` +} + +type DataSourceAppsSpacesSpacesStatus struct { + Message string `json:"message,omitempty"` + State string `json:"state,omitempty"` +} + +type DataSourceAppsSpacesSpaces struct { + CreateTime string `json:"create_time,omitempty"` + Creator string `json:"creator,omitempty"` + Description string `json:"description,omitempty"` + EffectiveUsagePolicyId string `json:"effective_usage_policy_id,omitempty"` + EffectiveUserApiScopes []string `json:"effective_user_api_scopes,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name"` + Oauth2AppClientId string `json:"oauth2_app_client_id,omitempty"` + Oauth2AppIntegrationId string `json:"oauth2_app_integration_id,omitempty"` + ProviderConfig *DataSourceAppsSpacesSpacesProviderConfig `json:"provider_config,omitempty"` + Resources []DataSourceAppsSpacesSpacesResources `json:"resources,omitempty"` + ServicePrincipalClientId string `json:"service_principal_client_id,omitempty"` + ServicePrincipalId int `json:"service_principal_id,omitempty"` + ServicePrincipalName string `json:"service_principal_name,omitempty"` + Status *DataSourceAppsSpacesSpacesStatus `json:"status,omitempty"` + UpdateTime string `json:"update_time,omitempty"` + Updater string `json:"updater,omitempty"` + UsagePolicyId string `json:"usage_policy_id,omitempty"` + UserApiScopes []string `json:"user_api_scopes,omitempty"` +} + +type DataSourceAppsSpaces struct { + PageSize int `json:"page_size,omitempty"` + ProviderConfig *DataSourceAppsSpacesProviderConfig `json:"provider_config,omitempty"` + Spaces []DataSourceAppsSpacesSpaces `json:"spaces,omitempty"` +} diff --git a/bundle/internal/tf/schema/data_source_endpoint.go b/bundle/internal/tf/schema/data_source_endpoint.go new file mode 100644 index 0000000000..39e726b8b1 --- /dev/null +++ b/bundle/internal/tf/schema/data_source_endpoint.go @@ -0,0 +1,22 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type DataSourceEndpointAzurePrivateEndpointInfo struct { + PrivateEndpointName string `json:"private_endpoint_name"` + PrivateEndpointResourceGuid string `json:"private_endpoint_resource_guid"` + PrivateEndpointResourceId string `json:"private_endpoint_resource_id,omitempty"` + PrivateLinkServiceId string `json:"private_link_service_id,omitempty"` +} + +type DataSourceEndpoint struct { + AccountId string `json:"account_id,omitempty"` + AzurePrivateEndpointInfo *DataSourceEndpointAzurePrivateEndpointInfo `json:"azure_private_endpoint_info,omitempty"` + CreateTime string `json:"create_time,omitempty"` + DisplayName string `json:"display_name,omitempty"` + EndpointId string `json:"endpoint_id,omitempty"` + Name string `json:"name"` + Region string `json:"region,omitempty"` + State string `json:"state,omitempty"` + UseCase string `json:"use_case,omitempty"` +} diff --git a/bundle/internal/tf/schema/data_source_endpoints.go b/bundle/internal/tf/schema/data_source_endpoints.go new file mode 100644 index 0000000000..1cef5b123a --- /dev/null +++ b/bundle/internal/tf/schema/data_source_endpoints.go @@ -0,0 +1,28 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type DataSourceEndpointsItemsAzurePrivateEndpointInfo struct { + PrivateEndpointName string `json:"private_endpoint_name"` + PrivateEndpointResourceGuid string `json:"private_endpoint_resource_guid"` + PrivateEndpointResourceId string `json:"private_endpoint_resource_id,omitempty"` + PrivateLinkServiceId string `json:"private_link_service_id,omitempty"` +} + +type DataSourceEndpointsItems struct { + AccountId string `json:"account_id,omitempty"` + AzurePrivateEndpointInfo *DataSourceEndpointsItemsAzurePrivateEndpointInfo `json:"azure_private_endpoint_info,omitempty"` + CreateTime string `json:"create_time,omitempty"` + DisplayName string `json:"display_name,omitempty"` + EndpointId string `json:"endpoint_id,omitempty"` + Name string `json:"name"` + Region string `json:"region,omitempty"` + State string `json:"state,omitempty"` + UseCase string `json:"use_case,omitempty"` +} + +type DataSourceEndpoints struct { + Items []DataSourceEndpointsItems `json:"items,omitempty"` + PageSize int `json:"page_size,omitempty"` + Parent string `json:"parent"` +} diff --git a/bundle/internal/tf/schema/data_source_entity_tag_assignment.go b/bundle/internal/tf/schema/data_source_entity_tag_assignment.go index 1d696dacd6..15ed8ee413 100644 --- a/bundle/internal/tf/schema/data_source_entity_tag_assignment.go +++ b/bundle/internal/tf/schema/data_source_entity_tag_assignment.go @@ -10,6 +10,9 @@ type DataSourceEntityTagAssignment struct { EntityName string `json:"entity_name"` EntityType string `json:"entity_type"` ProviderConfig *DataSourceEntityTagAssignmentProviderConfig `json:"provider_config,omitempty"` + SourceType string `json:"source_type,omitempty"` TagKey string `json:"tag_key"` TagValue string `json:"tag_value,omitempty"` + UpdateTime string `json:"update_time,omitempty"` + UpdatedBy string `json:"updated_by,omitempty"` } diff --git a/bundle/internal/tf/schema/data_source_entity_tag_assignments.go b/bundle/internal/tf/schema/data_source_entity_tag_assignments.go index 1c16a512c4..50126aa331 100644 --- a/bundle/internal/tf/schema/data_source_entity_tag_assignments.go +++ b/bundle/internal/tf/schema/data_source_entity_tag_assignments.go @@ -14,8 +14,11 @@ type DataSourceEntityTagAssignmentsTagAssignments struct { EntityName string `json:"entity_name"` EntityType string `json:"entity_type"` ProviderConfig *DataSourceEntityTagAssignmentsTagAssignmentsProviderConfig `json:"provider_config,omitempty"` + SourceType string `json:"source_type,omitempty"` TagKey string `json:"tag_key"` TagValue string `json:"tag_value,omitempty"` + UpdateTime string `json:"update_time,omitempty"` + UpdatedBy string `json:"updated_by,omitempty"` } type DataSourceEntityTagAssignments struct { diff --git a/bundle/internal/tf/schema/data_source_external_location.go b/bundle/internal/tf/schema/data_source_external_location.go index 440bdaf0d4..f818a7cbaf 100644 --- a/bundle/internal/tf/schema/data_source_external_location.go +++ b/bundle/internal/tf/schema/data_source_external_location.go @@ -55,24 +55,25 @@ type DataSourceExternalLocationExternalLocationInfoFileEventQueue struct { } type DataSourceExternalLocationExternalLocationInfo struct { - 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"` - EnableFileEvents bool `json:"enable_file_events,omitempty"` - Fallback bool `json:"fallback,omitempty"` - IsolationMode string `json:"isolation_mode,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"` - FileEventQueue *DataSourceExternalLocationExternalLocationInfoFileEventQueue `json:"file_event_queue,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"` + EffectiveEnableFileEvents bool `json:"effective_enable_file_events,omitempty"` + EnableFileEvents bool `json:"enable_file_events,omitempty"` + Fallback bool `json:"fallback,omitempty"` + IsolationMode string `json:"isolation_mode,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"` + FileEventQueue *DataSourceExternalLocationExternalLocationInfoFileEventQueue `json:"file_event_queue,omitempty"` } type DataSourceExternalLocationProviderConfig struct { diff --git a/bundle/internal/tf/schema/data_source_instance_pool.go b/bundle/internal/tf/schema/data_source_instance_pool.go index de236939c7..7deade1f45 100644 --- a/bundle/internal/tf/schema/data_source_instance_pool.go +++ b/bundle/internal/tf/schema/data_source_instance_pool.go @@ -52,6 +52,10 @@ type DataSourceInstancePoolPoolInfoInstancePoolFleetAttributes struct { LaunchTemplateOverride []DataSourceInstancePoolPoolInfoInstancePoolFleetAttributesLaunchTemplateOverride `json:"launch_template_override,omitempty"` } +type DataSourceInstancePoolPoolInfoNodeTypeFlexibility struct { + AlternateNodeTypeIds []string `json:"alternate_node_type_ids"` +} + type DataSourceInstancePoolPoolInfoPreloadedDockerImageBasicAuth struct { Password string `json:"password"` Username string `json:"username"` @@ -86,6 +90,7 @@ type DataSourceInstancePoolPoolInfo struct { DiskSpec *DataSourceInstancePoolPoolInfoDiskSpec `json:"disk_spec,omitempty"` GcpAttributes *DataSourceInstancePoolPoolInfoGcpAttributes `json:"gcp_attributes,omitempty"` InstancePoolFleetAttributes []DataSourceInstancePoolPoolInfoInstancePoolFleetAttributes `json:"instance_pool_fleet_attributes,omitempty"` + NodeTypeFlexibility *DataSourceInstancePoolPoolInfoNodeTypeFlexibility `json:"node_type_flexibility,omitempty"` PreloadedDockerImage []DataSourceInstancePoolPoolInfoPreloadedDockerImage `json:"preloaded_docker_image,omitempty"` Stats *DataSourceInstancePoolPoolInfoStats `json:"stats,omitempty"` } diff --git a/bundle/internal/tf/schema/data_source_postgres_project.go b/bundle/internal/tf/schema/data_source_postgres_project.go index b24b54df47..027b3ce101 100644 --- a/bundle/internal/tf/schema/data_source_postgres_project.go +++ b/bundle/internal/tf/schema/data_source_postgres_project.go @@ -6,6 +6,11 @@ type DataSourcePostgresProjectProviderConfig struct { WorkspaceId string `json:"workspace_id"` } +type DataSourcePostgresProjectSpecCustomTags struct { + Key string `json:"key,omitempty"` + Value string `json:"value,omitempty"` +} + type DataSourcePostgresProjectSpecDefaultEndpointSettings struct { AutoscalingLimitMaxCu float64 `json:"autoscaling_limit_max_cu,omitempty"` AutoscalingLimitMinCu float64 `json:"autoscaling_limit_min_cu,omitempty"` @@ -15,12 +20,19 @@ type DataSourcePostgresProjectSpecDefaultEndpointSettings struct { } type DataSourcePostgresProjectSpec struct { + BudgetPolicyId string `json:"budget_policy_id,omitempty"` + CustomTags []DataSourcePostgresProjectSpecCustomTags `json:"custom_tags,omitempty"` DefaultEndpointSettings *DataSourcePostgresProjectSpecDefaultEndpointSettings `json:"default_endpoint_settings,omitempty"` DisplayName string `json:"display_name,omitempty"` HistoryRetentionDuration string `json:"history_retention_duration,omitempty"` PgVersion int `json:"pg_version,omitempty"` } +type DataSourcePostgresProjectStatusCustomTags struct { + Key string `json:"key,omitempty"` + Value string `json:"value,omitempty"` +} + type DataSourcePostgresProjectStatusDefaultEndpointSettings struct { AutoscalingLimitMaxCu float64 `json:"autoscaling_limit_max_cu,omitempty"` AutoscalingLimitMinCu float64 `json:"autoscaling_limit_min_cu,omitempty"` @@ -31,6 +43,8 @@ type DataSourcePostgresProjectStatusDefaultEndpointSettings struct { type DataSourcePostgresProjectStatus struct { BranchLogicalSizeLimitBytes int `json:"branch_logical_size_limit_bytes,omitempty"` + BudgetPolicyId string `json:"budget_policy_id,omitempty"` + CustomTags []DataSourcePostgresProjectStatusCustomTags `json:"custom_tags,omitempty"` DefaultEndpointSettings *DataSourcePostgresProjectStatusDefaultEndpointSettings `json:"default_endpoint_settings,omitempty"` DisplayName string `json:"display_name,omitempty"` HistoryRetentionDuration string `json:"history_retention_duration,omitempty"` diff --git a/bundle/internal/tf/schema/data_source_postgres_projects.go b/bundle/internal/tf/schema/data_source_postgres_projects.go index 7631032f2f..ef2aee0069 100644 --- a/bundle/internal/tf/schema/data_source_postgres_projects.go +++ b/bundle/internal/tf/schema/data_source_postgres_projects.go @@ -6,6 +6,11 @@ type DataSourcePostgresProjectsProjectsProviderConfig struct { WorkspaceId string `json:"workspace_id"` } +type DataSourcePostgresProjectsProjectsSpecCustomTags struct { + Key string `json:"key,omitempty"` + Value string `json:"value,omitempty"` +} + type DataSourcePostgresProjectsProjectsSpecDefaultEndpointSettings struct { AutoscalingLimitMaxCu float64 `json:"autoscaling_limit_max_cu,omitempty"` AutoscalingLimitMinCu float64 `json:"autoscaling_limit_min_cu,omitempty"` @@ -15,12 +20,19 @@ type DataSourcePostgresProjectsProjectsSpecDefaultEndpointSettings struct { } type DataSourcePostgresProjectsProjectsSpec struct { + BudgetPolicyId string `json:"budget_policy_id,omitempty"` + CustomTags []DataSourcePostgresProjectsProjectsSpecCustomTags `json:"custom_tags,omitempty"` DefaultEndpointSettings *DataSourcePostgresProjectsProjectsSpecDefaultEndpointSettings `json:"default_endpoint_settings,omitempty"` DisplayName string `json:"display_name,omitempty"` HistoryRetentionDuration string `json:"history_retention_duration,omitempty"` PgVersion int `json:"pg_version,omitempty"` } +type DataSourcePostgresProjectsProjectsStatusCustomTags struct { + Key string `json:"key,omitempty"` + Value string `json:"value,omitempty"` +} + type DataSourcePostgresProjectsProjectsStatusDefaultEndpointSettings struct { AutoscalingLimitMaxCu float64 `json:"autoscaling_limit_max_cu,omitempty"` AutoscalingLimitMinCu float64 `json:"autoscaling_limit_min_cu,omitempty"` @@ -31,6 +43,8 @@ type DataSourcePostgresProjectsProjectsStatusDefaultEndpointSettings struct { type DataSourcePostgresProjectsProjectsStatus struct { BranchLogicalSizeLimitBytes int `json:"branch_logical_size_limit_bytes,omitempty"` + BudgetPolicyId string `json:"budget_policy_id,omitempty"` + CustomTags []DataSourcePostgresProjectsProjectsStatusCustomTags `json:"custom_tags,omitempty"` DefaultEndpointSettings *DataSourcePostgresProjectsProjectsStatusDefaultEndpointSettings `json:"default_endpoint_settings,omitempty"` DisplayName string `json:"display_name,omitempty"` HistoryRetentionDuration string `json:"history_retention_duration,omitempty"` diff --git a/bundle/internal/tf/schema/data_source_table.go b/bundle/internal/tf/schema/data_source_table.go index d1c3f3ba22..e3511d87e3 100644 --- a/bundle/internal/tf/schema/data_source_table.go +++ b/bundle/internal/tf/schema/data_source_table.go @@ -6,9 +6,15 @@ type DataSourceTableProviderConfig struct { WorkspaceId string `json:"workspace_id"` } +type DataSourceTableTableInfoColumnsMaskUsingArguments struct { + Column string `json:"column,omitempty"` + Constant string `json:"constant,omitempty"` +} + type DataSourceTableTableInfoColumnsMask struct { - FunctionName string `json:"function_name,omitempty"` - UsingColumnNames []string `json:"using_column_names,omitempty"` + FunctionName string `json:"function_name,omitempty"` + UsingColumnNames []string `json:"using_column_names,omitempty"` + UsingArguments []DataSourceTableTableInfoColumnsMaskUsingArguments `json:"using_arguments,omitempty"` } type DataSourceTableTableInfoColumns struct { @@ -45,9 +51,15 @@ type DataSourceTableTableInfoEncryptionDetails struct { SseEncryptionDetails *DataSourceTableTableInfoEncryptionDetailsSseEncryptionDetails `json:"sse_encryption_details,omitempty"` } +type DataSourceTableTableInfoRowFilterInputArguments struct { + Column string `json:"column,omitempty"` + Constant string `json:"constant,omitempty"` +} + type DataSourceTableTableInfoRowFilter struct { - FunctionName string `json:"function_name"` - InputColumnNames []string `json:"input_column_names"` + FunctionName string `json:"function_name"` + InputColumnNames []string `json:"input_column_names"` + InputArguments []DataSourceTableTableInfoRowFilterInputArguments `json:"input_arguments,omitempty"` } type DataSourceTableTableInfoSecurableKindManifestOptions struct { diff --git a/bundle/internal/tf/schema/data_sources.go b/bundle/internal/tf/schema/data_sources.go index 3b7ebcb00d..a83f5c7aeb 100644 --- a/bundle/internal/tf/schema/data_sources.go +++ b/bundle/internal/tf/schema/data_sources.go @@ -15,6 +15,8 @@ type DataSources struct { Apps map[string]any `json:"databricks_apps,omitempty"` AppsSettingsCustomTemplate map[string]any `json:"databricks_apps_settings_custom_template,omitempty"` AppsSettingsCustomTemplates map[string]any `json:"databricks_apps_settings_custom_templates,omitempty"` + AppsSpace map[string]any `json:"databricks_apps_space,omitempty"` + AppsSpaces map[string]any `json:"databricks_apps_spaces,omitempty"` AwsAssumeRolePolicy map[string]any `json:"databricks_aws_assume_role_policy,omitempty"` AwsBucketPolicy map[string]any `json:"databricks_aws_bucket_policy,omitempty"` AwsCrossaccountPolicy map[string]any `json:"databricks_aws_crossaccount_policy,omitempty"` @@ -44,6 +46,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"` + Endpoint map[string]any `json:"databricks_endpoint,omitempty"` + Endpoints map[string]any `json:"databricks_endpoints,omitempty"` EntityTagAssignment map[string]any `json:"databricks_entity_tag_assignment,omitempty"` EntityTagAssignments map[string]any `json:"databricks_entity_tag_assignments,omitempty"` ExternalLocation map[string]any `json:"databricks_external_location,omitempty"` @@ -139,6 +143,8 @@ func NewDataSources() *DataSources { Apps: make(map[string]any), AppsSettingsCustomTemplate: make(map[string]any), AppsSettingsCustomTemplates: make(map[string]any), + AppsSpace: make(map[string]any), + AppsSpaces: make(map[string]any), AwsAssumeRolePolicy: make(map[string]any), AwsBucketPolicy: make(map[string]any), AwsCrossaccountPolicy: make(map[string]any), @@ -168,6 +174,8 @@ func NewDataSources() *DataSources { DbfsFile: make(map[string]any), DbfsFilePaths: make(map[string]any), Directory: make(map[string]any), + Endpoint: make(map[string]any), + Endpoints: make(map[string]any), EntityTagAssignment: make(map[string]any), EntityTagAssignments: make(map[string]any), ExternalLocation: make(map[string]any), diff --git a/bundle/internal/tf/schema/resource_app.go b/bundle/internal/tf/schema/resource_app.go index 7134b3332a..3b69e2ee61 100644 --- a/bundle/internal/tf/schema/resource_app.go +++ b/bundle/internal/tf/schema/resource_app.go @@ -190,6 +190,7 @@ type ResourceApp struct { ServicePrincipalClientId string `json:"service_principal_client_id,omitempty"` ServicePrincipalId int `json:"service_principal_id,omitempty"` ServicePrincipalName string `json:"service_principal_name,omitempty"` + Space string `json:"space,omitempty"` UpdateTime string `json:"update_time,omitempty"` Updater string `json:"updater,omitempty"` Url string `json:"url,omitempty"` diff --git a/bundle/internal/tf/schema/resource_apps_space.go b/bundle/internal/tf/schema/resource_apps_space.go new file mode 100644 index 0000000000..a107c3974c --- /dev/null +++ b/bundle/internal/tf/schema/resource_apps_space.go @@ -0,0 +1,91 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type ResourceAppsSpaceProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + +type ResourceAppsSpaceResourcesDatabase struct { + DatabaseName string `json:"database_name"` + InstanceName string `json:"instance_name"` + Permission string `json:"permission"` +} + +type ResourceAppsSpaceResourcesExperiment struct { + ExperimentId string `json:"experiment_id"` + Permission string `json:"permission"` +} + +type ResourceAppsSpaceResourcesGenieSpace struct { + Name string `json:"name"` + Permission string `json:"permission"` + SpaceId string `json:"space_id"` +} + +type ResourceAppsSpaceResourcesJob struct { + Id string `json:"id"` + Permission string `json:"permission"` +} + +type ResourceAppsSpaceResourcesSecret struct { + Key string `json:"key"` + Permission string `json:"permission"` + Scope string `json:"scope"` +} + +type ResourceAppsSpaceResourcesServingEndpoint struct { + Name string `json:"name"` + Permission string `json:"permission"` +} + +type ResourceAppsSpaceResourcesSqlWarehouse struct { + Id string `json:"id"` + Permission string `json:"permission"` +} + +type ResourceAppsSpaceResourcesUcSecurable struct { + Permission string `json:"permission"` + SecurableFullName string `json:"securable_full_name"` + SecurableType string `json:"securable_type"` +} + +type ResourceAppsSpaceResources struct { + Database *ResourceAppsSpaceResourcesDatabase `json:"database,omitempty"` + Description string `json:"description,omitempty"` + Experiment *ResourceAppsSpaceResourcesExperiment `json:"experiment,omitempty"` + GenieSpace *ResourceAppsSpaceResourcesGenieSpace `json:"genie_space,omitempty"` + Job *ResourceAppsSpaceResourcesJob `json:"job,omitempty"` + Name string `json:"name"` + Secret *ResourceAppsSpaceResourcesSecret `json:"secret,omitempty"` + ServingEndpoint *ResourceAppsSpaceResourcesServingEndpoint `json:"serving_endpoint,omitempty"` + SqlWarehouse *ResourceAppsSpaceResourcesSqlWarehouse `json:"sql_warehouse,omitempty"` + UcSecurable *ResourceAppsSpaceResourcesUcSecurable `json:"uc_securable,omitempty"` +} + +type ResourceAppsSpaceStatus struct { + Message string `json:"message,omitempty"` + State string `json:"state,omitempty"` +} + +type ResourceAppsSpace struct { + CreateTime string `json:"create_time,omitempty"` + Creator string `json:"creator,omitempty"` + Description string `json:"description,omitempty"` + EffectiveUsagePolicyId string `json:"effective_usage_policy_id,omitempty"` + EffectiveUserApiScopes []string `json:"effective_user_api_scopes,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name,omitempty"` + Oauth2AppClientId string `json:"oauth2_app_client_id,omitempty"` + Oauth2AppIntegrationId string `json:"oauth2_app_integration_id,omitempty"` + ProviderConfig *ResourceAppsSpaceProviderConfig `json:"provider_config,omitempty"` + Resources []ResourceAppsSpaceResources `json:"resources,omitempty"` + ServicePrincipalClientId string `json:"service_principal_client_id,omitempty"` + ServicePrincipalId int `json:"service_principal_id,omitempty"` + ServicePrincipalName string `json:"service_principal_name,omitempty"` + Status *ResourceAppsSpaceStatus `json:"status,omitempty"` + UpdateTime string `json:"update_time,omitempty"` + Updater string `json:"updater,omitempty"` + UsagePolicyId string `json:"usage_policy_id,omitempty"` + UserApiScopes []string `json:"user_api_scopes,omitempty"` +} diff --git a/bundle/internal/tf/schema/resource_cluster_policy.go b/bundle/internal/tf/schema/resource_cluster_policy.go index 71ad7877c0..e1c7c41464 100644 --- a/bundle/internal/tf/schema/resource_cluster_policy.go +++ b/bundle/internal/tf/schema/resource_cluster_policy.go @@ -33,14 +33,19 @@ type ResourceClusterPolicyLibraries struct { Pypi *ResourceClusterPolicyLibrariesPypi `json:"pypi,omitempty"` } +type ResourceClusterPolicyProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceClusterPolicy struct { - Definition string `json:"definition,omitempty"` - Description string `json:"description,omitempty"` - Id string `json:"id,omitempty"` - MaxClustersPerUser int `json:"max_clusters_per_user,omitempty"` - Name string `json:"name,omitempty"` - 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"` + Definition string `json:"definition,omitempty"` + Description string `json:"description,omitempty"` + Id string `json:"id,omitempty"` + MaxClustersPerUser int `json:"max_clusters_per_user,omitempty"` + Name string `json:"name,omitempty"` + 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"` + ProviderConfig *ResourceClusterPolicyProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_dbfs_file.go b/bundle/internal/tf/schema/resource_dbfs_file.go index d3938843d2..4af4f426a0 100644 --- a/bundle/internal/tf/schema/resource_dbfs_file.go +++ b/bundle/internal/tf/schema/resource_dbfs_file.go @@ -2,12 +2,17 @@ package schema +type ResourceDbfsFileProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceDbfsFile struct { - ContentBase64 string `json:"content_base64,omitempty"` - DbfsPath string `json:"dbfs_path,omitempty"` - FileSize int `json:"file_size,omitempty"` - Id string `json:"id,omitempty"` - Md5 string `json:"md5,omitempty"` - Path string `json:"path"` - Source string `json:"source,omitempty"` + ContentBase64 string `json:"content_base64,omitempty"` + DbfsPath string `json:"dbfs_path,omitempty"` + FileSize int `json:"file_size,omitempty"` + Id string `json:"id,omitempty"` + Md5 string `json:"md5,omitempty"` + Path string `json:"path"` + Source string `json:"source,omitempty"` + ProviderConfig *ResourceDbfsFileProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_endpoint.go b/bundle/internal/tf/schema/resource_endpoint.go new file mode 100644 index 0000000000..0b010ce55b --- /dev/null +++ b/bundle/internal/tf/schema/resource_endpoint.go @@ -0,0 +1,23 @@ +// Generated from Databricks Terraform provider schema. DO NOT EDIT. + +package schema + +type ResourceEndpointAzurePrivateEndpointInfo struct { + PrivateEndpointName string `json:"private_endpoint_name"` + PrivateEndpointResourceGuid string `json:"private_endpoint_resource_guid"` + PrivateEndpointResourceId string `json:"private_endpoint_resource_id,omitempty"` + PrivateLinkServiceId string `json:"private_link_service_id,omitempty"` +} + +type ResourceEndpoint struct { + AccountId string `json:"account_id,omitempty"` + AzurePrivateEndpointInfo *ResourceEndpointAzurePrivateEndpointInfo `json:"azure_private_endpoint_info,omitempty"` + CreateTime string `json:"create_time,omitempty"` + DisplayName string `json:"display_name"` + EndpointId string `json:"endpoint_id,omitempty"` + Name string `json:"name,omitempty"` + Parent string `json:"parent"` + Region string `json:"region"` + State string `json:"state,omitempty"` + UseCase string `json:"use_case,omitempty"` +} diff --git a/bundle/internal/tf/schema/resource_entitlements.go b/bundle/internal/tf/schema/resource_entitlements.go index 5da838eef1..b59277f725 100644 --- a/bundle/internal/tf/schema/resource_entitlements.go +++ b/bundle/internal/tf/schema/resource_entitlements.go @@ -2,14 +2,19 @@ package schema +type ResourceEntitlementsProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceEntitlements struct { - AllowClusterCreate bool `json:"allow_cluster_create,omitempty"` - AllowInstancePoolCreate bool `json:"allow_instance_pool_create,omitempty"` - DatabricksSqlAccess bool `json:"databricks_sql_access,omitempty"` - GroupId string `json:"group_id,omitempty"` - Id string `json:"id,omitempty"` - ServicePrincipalId string `json:"service_principal_id,omitempty"` - UserId string `json:"user_id,omitempty"` - WorkspaceAccess bool `json:"workspace_access,omitempty"` - WorkspaceConsume bool `json:"workspace_consume,omitempty"` + AllowClusterCreate bool `json:"allow_cluster_create,omitempty"` + AllowInstancePoolCreate bool `json:"allow_instance_pool_create,omitempty"` + DatabricksSqlAccess bool `json:"databricks_sql_access,omitempty"` + GroupId string `json:"group_id,omitempty"` + Id string `json:"id,omitempty"` + ServicePrincipalId string `json:"service_principal_id,omitempty"` + UserId string `json:"user_id,omitempty"` + WorkspaceAccess bool `json:"workspace_access,omitempty"` + WorkspaceConsume bool `json:"workspace_consume,omitempty"` + ProviderConfig *ResourceEntitlementsProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_entity_tag_assignment.go b/bundle/internal/tf/schema/resource_entity_tag_assignment.go index a8cbb6250d..3b7da58ffe 100644 --- a/bundle/internal/tf/schema/resource_entity_tag_assignment.go +++ b/bundle/internal/tf/schema/resource_entity_tag_assignment.go @@ -10,6 +10,9 @@ type ResourceEntityTagAssignment struct { EntityName string `json:"entity_name"` EntityType string `json:"entity_type"` ProviderConfig *ResourceEntityTagAssignmentProviderConfig `json:"provider_config,omitempty"` + SourceType string `json:"source_type,omitempty"` TagKey string `json:"tag_key"` TagValue string `json:"tag_value,omitempty"` + UpdateTime string `json:"update_time,omitempty"` + UpdatedBy string `json:"updated_by,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_external_location.go b/bundle/internal/tf/schema/resource_external_location.go index cd695d7440..c865fea7a7 100644 --- a/bundle/internal/tf/schema/resource_external_location.go +++ b/bundle/internal/tf/schema/resource_external_location.go @@ -59,27 +59,28 @@ type ResourceExternalLocationProviderConfig struct { } type ResourceExternalLocation struct { - 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"` - EnableFileEvents bool `json:"enable_file_events,omitempty"` - Fallback bool `json:"fallback,omitempty"` - ForceDestroy bool `json:"force_destroy,omitempty"` - ForceUpdate bool `json:"force_update,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"` - ReadOnly bool `json:"read_only,omitempty"` - SkipValidation bool `json:"skip_validation,omitempty"` - UpdatedAt int `json:"updated_at,omitempty"` - UpdatedBy string `json:"updated_by,omitempty"` - Url string `json:"url"` - EncryptionDetails *ResourceExternalLocationEncryptionDetails `json:"encryption_details,omitempty"` - FileEventQueue *ResourceExternalLocationFileEventQueue `json:"file_event_queue,omitempty"` - ProviderConfig *ResourceExternalLocationProviderConfig `json:"provider_config,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"` + EffectiveEnableFileEvents bool `json:"effective_enable_file_events,omitempty"` + EnableFileEvents bool `json:"enable_file_events,omitempty"` + Fallback bool `json:"fallback,omitempty"` + ForceDestroy bool `json:"force_destroy,omitempty"` + ForceUpdate bool `json:"force_update,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"` + ReadOnly bool `json:"read_only,omitempty"` + SkipValidation bool `json:"skip_validation,omitempty"` + UpdatedAt int `json:"updated_at,omitempty"` + UpdatedBy string `json:"updated_by,omitempty"` + Url string `json:"url"` + EncryptionDetails *ResourceExternalLocationEncryptionDetails `json:"encryption_details,omitempty"` + FileEventQueue *ResourceExternalLocationFileEventQueue `json:"file_event_queue,omitempty"` + ProviderConfig *ResourceExternalLocationProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_instance_pool.go b/bundle/internal/tf/schema/resource_instance_pool.go index 0e690b2584..aed4cf775d 100644 --- a/bundle/internal/tf/schema/resource_instance_pool.go +++ b/bundle/internal/tf/schema/resource_instance_pool.go @@ -52,6 +52,10 @@ type ResourceInstancePoolInstancePoolFleetAttributes struct { LaunchTemplateOverride []ResourceInstancePoolInstancePoolFleetAttributesLaunchTemplateOverride `json:"launch_template_override,omitempty"` } +type ResourceInstancePoolNodeTypeFlexibility struct { + AlternateNodeTypeIds []string `json:"alternate_node_type_ids"` +} + type ResourceInstancePoolPreloadedDockerImageBasicAuth struct { Password string `json:"password"` Username string `json:"username"` @@ -62,6 +66,10 @@ type ResourceInstancePoolPreloadedDockerImage struct { BasicAuth *ResourceInstancePoolPreloadedDockerImageBasicAuth `json:"basic_auth,omitempty"` } +type ResourceInstancePoolProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceInstancePool struct { CustomTags map[string]string `json:"custom_tags,omitempty"` EnableElasticDisk bool `json:"enable_elastic_disk,omitempty"` @@ -78,5 +86,7 @@ type ResourceInstancePool struct { DiskSpec *ResourceInstancePoolDiskSpec `json:"disk_spec,omitempty"` GcpAttributes *ResourceInstancePoolGcpAttributes `json:"gcp_attributes,omitempty"` InstancePoolFleetAttributes *ResourceInstancePoolInstancePoolFleetAttributes `json:"instance_pool_fleet_attributes,omitempty"` + NodeTypeFlexibility *ResourceInstancePoolNodeTypeFlexibility `json:"node_type_flexibility,omitempty"` PreloadedDockerImage []ResourceInstancePoolPreloadedDockerImage `json:"preloaded_docker_image,omitempty"` + ProviderConfig *ResourceInstancePoolProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_instance_profile.go b/bundle/internal/tf/schema/resource_instance_profile.go index 78f0c94e80..c80e0f1118 100644 --- a/bundle/internal/tf/schema/resource_instance_profile.go +++ b/bundle/internal/tf/schema/resource_instance_profile.go @@ -2,10 +2,15 @@ package schema +type ResourceInstanceProfileProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceInstanceProfile struct { - IamRoleArn string `json:"iam_role_arn,omitempty"` - Id string `json:"id,omitempty"` - InstanceProfileArn string `json:"instance_profile_arn"` - IsMetaInstanceProfile bool `json:"is_meta_instance_profile,omitempty"` - SkipValidation bool `json:"skip_validation,omitempty"` + IamRoleArn string `json:"iam_role_arn,omitempty"` + Id string `json:"id,omitempty"` + InstanceProfileArn string `json:"instance_profile_arn"` + IsMetaInstanceProfile bool `json:"is_meta_instance_profile,omitempty"` + SkipValidation bool `json:"skip_validation,omitempty"` + ProviderConfig *ResourceInstanceProfileProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_job.go b/bundle/internal/tf/schema/resource_job.go index 988f5c97fe..f4334b2240 100644 --- a/bundle/internal/tf/schema/resource_job.go +++ b/bundle/internal/tf/schema/resource_job.go @@ -54,14 +54,19 @@ type ResourceJobGitSourceJobSource struct { JobConfigPath string `json:"job_config_path"` } +type ResourceJobGitSourceSparseCheckout struct { + Patterns []string `json:"patterns,omitempty"` +} + type ResourceJobGitSource struct { - Branch string `json:"branch,omitempty"` - Commit string `json:"commit,omitempty"` - Provider string `json:"provider,omitempty"` - Tag string `json:"tag,omitempty"` - Url string `json:"url"` - GitSnapshot *ResourceJobGitSourceGitSnapshot `json:"git_snapshot,omitempty"` - JobSource *ResourceJobGitSourceJobSource `json:"job_source,omitempty"` + Branch string `json:"branch,omitempty"` + Commit string `json:"commit,omitempty"` + Provider string `json:"provider,omitempty"` + Tag string `json:"tag,omitempty"` + Url string `json:"url"` + GitSnapshot *ResourceJobGitSourceGitSnapshot `json:"git_snapshot,omitempty"` + JobSource *ResourceJobGitSourceJobSource `json:"job_source,omitempty"` + SparseCheckout *ResourceJobGitSourceSparseCheckout `json:"sparse_checkout,omitempty"` } type ResourceJobHealthRules struct { diff --git a/bundle/internal/tf/schema/resource_mount.go b/bundle/internal/tf/schema/resource_mount.go index ab8b935c34..d1220b03b3 100644 --- a/bundle/internal/tf/schema/resource_mount.go +++ b/bundle/internal/tf/schema/resource_mount.go @@ -28,6 +28,10 @@ type ResourceMountGs struct { ServiceAccount string `json:"service_account,omitempty"` } +type ResourceMountProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceMountS3 struct { BucketName string `json:"bucket_name"` InstanceProfile string `json:"instance_profile,omitempty"` @@ -43,17 +47,18 @@ type ResourceMountWasb struct { } type ResourceMount struct { - ClusterId string `json:"cluster_id,omitempty"` - EncryptionType string `json:"encryption_type,omitempty"` - ExtraConfigs map[string]string `json:"extra_configs,omitempty"` - Id string `json:"id,omitempty"` - Name string `json:"name,omitempty"` - ResourceId string `json:"resource_id,omitempty"` - Source string `json:"source,omitempty"` - Uri string `json:"uri,omitempty"` - Abfs *ResourceMountAbfs `json:"abfs,omitempty"` - Adl *ResourceMountAdl `json:"adl,omitempty"` - Gs *ResourceMountGs `json:"gs,omitempty"` - S3 *ResourceMountS3 `json:"s3,omitempty"` - Wasb *ResourceMountWasb `json:"wasb,omitempty"` + ClusterId string `json:"cluster_id,omitempty"` + EncryptionType string `json:"encryption_type,omitempty"` + ExtraConfigs map[string]string `json:"extra_configs,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name,omitempty"` + ResourceId string `json:"resource_id,omitempty"` + Source string `json:"source,omitempty"` + Uri string `json:"uri,omitempty"` + Abfs *ResourceMountAbfs `json:"abfs,omitempty"` + Adl *ResourceMountAdl `json:"adl,omitempty"` + Gs *ResourceMountGs `json:"gs,omitempty"` + ProviderConfig *ResourceMountProviderConfig `json:"provider_config,omitempty"` + S3 *ResourceMountS3 `json:"s3,omitempty"` + Wasb *ResourceMountWasb `json:"wasb,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_notification_destination.go b/bundle/internal/tf/schema/resource_notification_destination.go index 8cd132c2f5..541e1561df 100644 --- a/bundle/internal/tf/schema/resource_notification_destination.go +++ b/bundle/internal/tf/schema/resource_notification_destination.go @@ -50,9 +50,14 @@ type ResourceNotificationDestinationConfig struct { Slack *ResourceNotificationDestinationConfigSlack `json:"slack,omitempty"` } +type ResourceNotificationDestinationProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceNotificationDestination struct { - DestinationType string `json:"destination_type,omitempty"` - DisplayName string `json:"display_name"` - Id string `json:"id,omitempty"` - Config *ResourceNotificationDestinationConfig `json:"config,omitempty"` + DestinationType string `json:"destination_type,omitempty"` + DisplayName string `json:"display_name"` + Id string `json:"id,omitempty"` + Config *ResourceNotificationDestinationConfig `json:"config,omitempty"` + ProviderConfig *ResourceNotificationDestinationProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_obo_token.go b/bundle/internal/tf/schema/resource_obo_token.go index aefddcbdd5..5a603d2d7d 100644 --- a/bundle/internal/tf/schema/resource_obo_token.go +++ b/bundle/internal/tf/schema/resource_obo_token.go @@ -2,10 +2,15 @@ package schema +type ResourceOboTokenProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceOboToken struct { - ApplicationId string `json:"application_id"` - Comment string `json:"comment,omitempty"` - Id string `json:"id,omitempty"` - LifetimeSeconds int `json:"lifetime_seconds,omitempty"` - TokenValue string `json:"token_value,omitempty"` + ApplicationId string `json:"application_id"` + Comment string `json:"comment,omitempty"` + Id string `json:"id,omitempty"` + LifetimeSeconds int `json:"lifetime_seconds,omitempty"` + TokenValue string `json:"token_value,omitempty"` + ProviderConfig *ResourceOboTokenProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_permissions.go b/bundle/internal/tf/schema/resource_permissions.go index 0a4ca7f2b6..1f9d8a38b8 100644 --- a/bundle/internal/tf/schema/resource_permissions.go +++ b/bundle/internal/tf/schema/resource_permissions.go @@ -9,6 +9,10 @@ type ResourcePermissionsAccessControl struct { UserName string `json:"user_name,omitempty"` } +type ResourcePermissionsProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourcePermissions struct { AlertV2Id string `json:"alert_v2_id,omitempty"` AppName string `json:"app_name,omitempty"` @@ -17,6 +21,7 @@ type ResourcePermissions struct { ClusterPolicyId string `json:"cluster_policy_id,omitempty"` DashboardId string `json:"dashboard_id,omitempty"` DatabaseInstanceName string `json:"database_instance_name,omitempty"` + DatabaseProjectName string `json:"database_project_name,omitempty"` DirectoryId string `json:"directory_id,omitempty"` DirectoryPath string `json:"directory_path,omitempty"` ExperimentId string `json:"experiment_id,omitempty"` @@ -39,4 +44,5 @@ type ResourcePermissions struct { WorkspaceFileId string `json:"workspace_file_id,omitempty"` WorkspaceFilePath string `json:"workspace_file_path,omitempty"` AccessControl []ResourcePermissionsAccessControl `json:"access_control,omitempty"` + ProviderConfig *ResourcePermissionsProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_pipeline.go b/bundle/internal/tf/schema/resource_pipeline.go index f4d16ec230..eecad5de6c 100644 --- a/bundle/internal/tf/schema/resource_pipeline.go +++ b/bundle/internal/tf/schema/resource_pipeline.go @@ -410,6 +410,10 @@ type ResourcePipelineNotification struct { EmailRecipients []string `json:"email_recipients,omitempty"` } +type ResourcePipelineProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourcePipelineRestartWindow struct { DaysOfWeek []string `json:"days_of_week,omitempty"` StartHour int `json:"start_hour"` @@ -472,6 +476,7 @@ type ResourcePipeline struct { LatestUpdates []ResourcePipelineLatestUpdates `json:"latest_updates,omitempty"` Library []ResourcePipelineLibrary `json:"library,omitempty"` Notification []ResourcePipelineNotification `json:"notification,omitempty"` + ProviderConfig *ResourcePipelineProviderConfig `json:"provider_config,omitempty"` RestartWindow *ResourcePipelineRestartWindow `json:"restart_window,omitempty"` RunAs *ResourcePipelineRunAs `json:"run_as,omitempty"` Trigger *ResourcePipelineTrigger `json:"trigger,omitempty"` diff --git a/bundle/internal/tf/schema/resource_postgres_project.go b/bundle/internal/tf/schema/resource_postgres_project.go index 9f30c05678..0196c154f1 100644 --- a/bundle/internal/tf/schema/resource_postgres_project.go +++ b/bundle/internal/tf/schema/resource_postgres_project.go @@ -6,6 +6,11 @@ type ResourcePostgresProjectProviderConfig struct { WorkspaceId string `json:"workspace_id"` } +type ResourcePostgresProjectSpecCustomTags struct { + Key string `json:"key,omitempty"` + Value string `json:"value,omitempty"` +} + type ResourcePostgresProjectSpecDefaultEndpointSettings struct { AutoscalingLimitMaxCu float64 `json:"autoscaling_limit_max_cu,omitempty"` AutoscalingLimitMinCu float64 `json:"autoscaling_limit_min_cu,omitempty"` @@ -15,12 +20,19 @@ type ResourcePostgresProjectSpecDefaultEndpointSettings struct { } type ResourcePostgresProjectSpec struct { + BudgetPolicyId string `json:"budget_policy_id,omitempty"` + CustomTags []ResourcePostgresProjectSpecCustomTags `json:"custom_tags,omitempty"` DefaultEndpointSettings *ResourcePostgresProjectSpecDefaultEndpointSettings `json:"default_endpoint_settings,omitempty"` DisplayName string `json:"display_name,omitempty"` HistoryRetentionDuration string `json:"history_retention_duration,omitempty"` PgVersion int `json:"pg_version,omitempty"` } +type ResourcePostgresProjectStatusCustomTags struct { + Key string `json:"key,omitempty"` + Value string `json:"value,omitempty"` +} + type ResourcePostgresProjectStatusDefaultEndpointSettings struct { AutoscalingLimitMaxCu float64 `json:"autoscaling_limit_max_cu,omitempty"` AutoscalingLimitMinCu float64 `json:"autoscaling_limit_min_cu,omitempty"` @@ -31,6 +43,8 @@ type ResourcePostgresProjectStatusDefaultEndpointSettings struct { type ResourcePostgresProjectStatus struct { BranchLogicalSizeLimitBytes int `json:"branch_logical_size_limit_bytes,omitempty"` + BudgetPolicyId string `json:"budget_policy_id,omitempty"` + CustomTags []ResourcePostgresProjectStatusCustomTags `json:"custom_tags,omitempty"` DefaultEndpointSettings *ResourcePostgresProjectStatusDefaultEndpointSettings `json:"default_endpoint_settings,omitempty"` DisplayName string `json:"display_name,omitempty"` HistoryRetentionDuration string `json:"history_retention_duration,omitempty"` diff --git a/bundle/internal/tf/schema/resource_provider.go b/bundle/internal/tf/schema/resource_provider.go index aff9378a71..16934efa7f 100644 --- a/bundle/internal/tf/schema/resource_provider.go +++ b/bundle/internal/tf/schema/resource_provider.go @@ -2,10 +2,15 @@ package schema +type ResourceProviderProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceProvider struct { - AuthenticationType string `json:"authentication_type"` - Comment string `json:"comment,omitempty"` - Id string `json:"id,omitempty"` - Name string `json:"name"` - RecipientProfileStr string `json:"recipient_profile_str"` + AuthenticationType string `json:"authentication_type"` + Comment string `json:"comment,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name"` + RecipientProfileStr string `json:"recipient_profile_str"` + ProviderConfig *ResourceProviderProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_repo.go b/bundle/internal/tf/schema/resource_repo.go index 6f29450723..e1a5ff8fef 100644 --- a/bundle/internal/tf/schema/resource_repo.go +++ b/bundle/internal/tf/schema/resource_repo.go @@ -2,6 +2,10 @@ package schema +type ResourceRepoProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceRepoSparseCheckout struct { Patterns []string `json:"patterns"` } @@ -15,5 +19,6 @@ type ResourceRepo struct { Tag string `json:"tag,omitempty"` Url string `json:"url"` WorkspacePath string `json:"workspace_path,omitempty"` + ProviderConfig *ResourceRepoProviderConfig `json:"provider_config,omitempty"` SparseCheckout *ResourceRepoSparseCheckout `json:"sparse_checkout,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_secret_scope.go b/bundle/internal/tf/schema/resource_secret_scope.go index 49a988b72c..ca539d8d02 100644 --- a/bundle/internal/tf/schema/resource_secret_scope.go +++ b/bundle/internal/tf/schema/resource_secret_scope.go @@ -7,10 +7,15 @@ type ResourceSecretScopeKeyvaultMetadata struct { ResourceId string `json:"resource_id"` } +type ResourceSecretScopeProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceSecretScope struct { BackendType string `json:"backend_type,omitempty"` Id string `json:"id,omitempty"` InitialManagePrincipal string `json:"initial_manage_principal,omitempty"` Name string `json:"name"` KeyvaultMetadata *ResourceSecretScopeKeyvaultMetadata `json:"keyvault_metadata,omitempty"` + ProviderConfig *ResourceSecretScopeProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_service_principal_secret.go b/bundle/internal/tf/schema/resource_service_principal_secret.go index c5e79026bb..f08b3cd490 100644 --- a/bundle/internal/tf/schema/resource_service_principal_secret.go +++ b/bundle/internal/tf/schema/resource_service_principal_secret.go @@ -2,15 +2,20 @@ package schema +type ResourceServicePrincipalSecretProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceServicePrincipalSecret struct { - CreateTime string `json:"create_time,omitempty"` - ExpireTime string `json:"expire_time,omitempty"` - Id string `json:"id,omitempty"` - Lifetime string `json:"lifetime,omitempty"` - Secret string `json:"secret,omitempty"` - SecretHash string `json:"secret_hash,omitempty"` - ServicePrincipalId string `json:"service_principal_id"` - Status string `json:"status,omitempty"` - TimeRotating string `json:"time_rotating,omitempty"` - UpdateTime string `json:"update_time,omitempty"` + CreateTime string `json:"create_time,omitempty"` + ExpireTime string `json:"expire_time,omitempty"` + Id string `json:"id,omitempty"` + Lifetime string `json:"lifetime,omitempty"` + Secret string `json:"secret,omitempty"` + SecretHash string `json:"secret_hash,omitempty"` + ServicePrincipalId string `json:"service_principal_id"` + Status string `json:"status,omitempty"` + TimeRotating string `json:"time_rotating,omitempty"` + UpdateTime string `json:"update_time,omitempty"` + ProviderConfig *ResourceServicePrincipalSecretProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_sql_dashboard.go b/bundle/internal/tf/schema/resource_sql_dashboard.go index eb6162d798..fc37c98d1d 100644 --- a/bundle/internal/tf/schema/resource_sql_dashboard.go +++ b/bundle/internal/tf/schema/resource_sql_dashboard.go @@ -2,13 +2,18 @@ package schema +type ResourceSqlDashboardProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceSqlDashboard struct { - CreatedAt string `json:"created_at,omitempty"` - DashboardFiltersEnabled bool `json:"dashboard_filters_enabled,omitempty"` - 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"` + CreatedAt string `json:"created_at,omitempty"` + DashboardFiltersEnabled bool `json:"dashboard_filters_enabled,omitempty"` + 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"` + ProviderConfig *ResourceSqlDashboardProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_sql_global_config.go b/bundle/internal/tf/schema/resource_sql_global_config.go index 62eddceed3..b17c91275a 100644 --- a/bundle/internal/tf/schema/resource_sql_global_config.go +++ b/bundle/internal/tf/schema/resource_sql_global_config.go @@ -2,12 +2,17 @@ package schema +type ResourceSqlGlobalConfigProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceSqlGlobalConfig struct { - DataAccessConfig map[string]string `json:"data_access_config,omitempty"` - EnableServerlessCompute bool `json:"enable_serverless_compute,omitempty"` - GoogleServiceAccount string `json:"google_service_account,omitempty"` - Id string `json:"id,omitempty"` - InstanceProfileArn string `json:"instance_profile_arn,omitempty"` - SecurityPolicy string `json:"security_policy,omitempty"` - SqlConfigParams map[string]string `json:"sql_config_params,omitempty"` + DataAccessConfig map[string]string `json:"data_access_config,omitempty"` + EnableServerlessCompute bool `json:"enable_serverless_compute,omitempty"` + GoogleServiceAccount string `json:"google_service_account,omitempty"` + Id string `json:"id,omitempty"` + InstanceProfileArn string `json:"instance_profile_arn,omitempty"` + SecurityPolicy string `json:"security_policy,omitempty"` + SqlConfigParams map[string]string `json:"sql_config_params,omitempty"` + ProviderConfig *ResourceSqlGlobalConfigProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_sql_query.go b/bundle/internal/tf/schema/resource_sql_query.go index 6c355a0931..445ec90aac 100644 --- a/bundle/internal/tf/schema/resource_sql_query.go +++ b/bundle/internal/tf/schema/resource_sql_query.go @@ -93,6 +93,10 @@ type ResourceSqlQueryParameter struct { Text *ResourceSqlQueryParameterText `json:"text,omitempty"` } +type ResourceSqlQueryProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceSqlQueryScheduleContinuous struct { IntervalSeconds int `json:"interval_seconds"` UntilDate string `json:"until_date,omitempty"` @@ -118,16 +122,17 @@ type ResourceSqlQuerySchedule struct { } type ResourceSqlQuery struct { - CreatedAt string `json:"created_at,omitempty"` - DataSourceId string `json:"data_source_id"` - Description string `json:"description,omitempty"` - Id string `json:"id,omitempty"` - Name string `json:"name"` - Parent string `json:"parent,omitempty"` - Query string `json:"query"` - RunAsRole string `json:"run_as_role,omitempty"` - Tags []string `json:"tags,omitempty"` - UpdatedAt string `json:"updated_at,omitempty"` - Parameter []ResourceSqlQueryParameter `json:"parameter,omitempty"` - Schedule *ResourceSqlQuerySchedule `json:"schedule,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + DataSourceId string `json:"data_source_id"` + Description string `json:"description,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name"` + Parent string `json:"parent,omitempty"` + Query string `json:"query"` + RunAsRole string `json:"run_as_role,omitempty"` + Tags []string `json:"tags,omitempty"` + UpdatedAt string `json:"updated_at,omitempty"` + Parameter []ResourceSqlQueryParameter `json:"parameter,omitempty"` + ProviderConfig *ResourceSqlQueryProviderConfig `json:"provider_config,omitempty"` + Schedule *ResourceSqlQuerySchedule `json:"schedule,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_sql_visualization.go b/bundle/internal/tf/schema/resource_sql_visualization.go index fef0f151b6..11f5e9060c 100644 --- a/bundle/internal/tf/schema/resource_sql_visualization.go +++ b/bundle/internal/tf/schema/resource_sql_visualization.go @@ -2,13 +2,18 @@ package schema +type ResourceSqlVisualizationProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceSqlVisualization struct { - Description string `json:"description,omitempty"` - Id string `json:"id,omitempty"` - Name string `json:"name"` - Options string `json:"options"` - QueryId string `json:"query_id"` - QueryPlan string `json:"query_plan,omitempty"` - Type string `json:"type"` - VisualizationId string `json:"visualization_id,omitempty"` + Description string `json:"description,omitempty"` + Id string `json:"id,omitempty"` + Name string `json:"name"` + Options string `json:"options"` + QueryId string `json:"query_id"` + QueryPlan string `json:"query_plan,omitempty"` + Type string `json:"type"` + VisualizationId string `json:"visualization_id,omitempty"` + ProviderConfig *ResourceSqlVisualizationProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_sql_widget.go b/bundle/internal/tf/schema/resource_sql_widget.go index 64f789296a..bb024d9024 100644 --- a/bundle/internal/tf/schema/resource_sql_widget.go +++ b/bundle/internal/tf/schema/resource_sql_widget.go @@ -19,14 +19,19 @@ type ResourceSqlWidgetPosition struct { SizeY int `json:"size_y"` } +type ResourceSqlWidgetProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceSqlWidget struct { - DashboardId string `json:"dashboard_id"` - Description string `json:"description,omitempty"` - Id string `json:"id,omitempty"` - Text string `json:"text,omitempty"` - Title string `json:"title,omitempty"` - VisualizationId string `json:"visualization_id,omitempty"` - WidgetId string `json:"widget_id,omitempty"` - Parameter []ResourceSqlWidgetParameter `json:"parameter,omitempty"` - Position *ResourceSqlWidgetPosition `json:"position,omitempty"` + DashboardId string `json:"dashboard_id"` + Description string `json:"description,omitempty"` + Id string `json:"id,omitempty"` + Text string `json:"text,omitempty"` + Title string `json:"title,omitempty"` + VisualizationId string `json:"visualization_id,omitempty"` + WidgetId string `json:"widget_id,omitempty"` + Parameter []ResourceSqlWidgetParameter `json:"parameter,omitempty"` + Position *ResourceSqlWidgetPosition `json:"position,omitempty"` + ProviderConfig *ResourceSqlWidgetProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_table.go b/bundle/internal/tf/schema/resource_table.go index 92c0bacdd3..9d3fba1341 100644 --- a/bundle/internal/tf/schema/resource_table.go +++ b/bundle/internal/tf/schema/resource_table.go @@ -16,18 +16,23 @@ type ResourceTableColumn struct { TypeText string `json:"type_text"` } +type ResourceTableProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceTable struct { - CatalogName string `json:"catalog_name"` - Comment string `json:"comment,omitempty"` - DataSourceFormat string `json:"data_source_format"` - Id string `json:"id,omitempty"` - Name string `json:"name"` - Owner string `json:"owner,omitempty"` - Properties map[string]string `json:"properties,omitempty"` - SchemaName string `json:"schema_name"` - StorageCredentialName string `json:"storage_credential_name,omitempty"` - StorageLocation string `json:"storage_location,omitempty"` - TableType string `json:"table_type"` - ViewDefinition string `json:"view_definition,omitempty"` - Column []ResourceTableColumn `json:"column,omitempty"` + CatalogName string `json:"catalog_name"` + Comment string `json:"comment,omitempty"` + DataSourceFormat string `json:"data_source_format"` + Id string `json:"id,omitempty"` + Name string `json:"name"` + Owner string `json:"owner,omitempty"` + Properties map[string]string `json:"properties,omitempty"` + SchemaName string `json:"schema_name"` + StorageCredentialName string `json:"storage_credential_name,omitempty"` + StorageLocation string `json:"storage_location,omitempty"` + TableType string `json:"table_type"` + ViewDefinition string `json:"view_definition,omitempty"` + Column []ResourceTableColumn `json:"column,omitempty"` + ProviderConfig *ResourceTableProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_token.go b/bundle/internal/tf/schema/resource_token.go index 36494fca1d..648cd6d3c8 100644 --- a/bundle/internal/tf/schema/resource_token.go +++ b/bundle/internal/tf/schema/resource_token.go @@ -2,12 +2,17 @@ package schema +type ResourceTokenProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceToken struct { - Comment string `json:"comment,omitempty"` - CreationTime int `json:"creation_time,omitempty"` - ExpiryTime int `json:"expiry_time,omitempty"` - Id string `json:"id,omitempty"` - LifetimeSeconds int `json:"lifetime_seconds,omitempty"` - TokenId string `json:"token_id,omitempty"` - TokenValue string `json:"token_value,omitempty"` + Comment string `json:"comment,omitempty"` + CreationTime int `json:"creation_time,omitempty"` + ExpiryTime int `json:"expiry_time,omitempty"` + Id string `json:"id,omitempty"` + LifetimeSeconds int `json:"lifetime_seconds,omitempty"` + TokenId string `json:"token_id,omitempty"` + TokenValue string `json:"token_value,omitempty"` + ProviderConfig *ResourceTokenProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resource_workspace_conf.go b/bundle/internal/tf/schema/resource_workspace_conf.go index ee181f2b32..9c3a94c850 100644 --- a/bundle/internal/tf/schema/resource_workspace_conf.go +++ b/bundle/internal/tf/schema/resource_workspace_conf.go @@ -2,7 +2,12 @@ package schema +type ResourceWorkspaceConfProviderConfig struct { + WorkspaceId string `json:"workspace_id"` +} + type ResourceWorkspaceConf struct { - CustomConfig map[string]string `json:"custom_config,omitempty"` - Id string `json:"id,omitempty"` + CustomConfig map[string]string `json:"custom_config,omitempty"` + Id string `json:"id,omitempty"` + ProviderConfig *ResourceWorkspaceConfProviderConfig `json:"provider_config,omitempty"` } diff --git a/bundle/internal/tf/schema/resources.go b/bundle/internal/tf/schema/resources.go index 321dd011fb..a2115df652 100644 --- a/bundle/internal/tf/schema/resources.go +++ b/bundle/internal/tf/schema/resources.go @@ -14,6 +14,7 @@ type Resources struct { AlertV2 map[string]any `json:"databricks_alert_v2,omitempty"` App map[string]any `json:"databricks_app,omitempty"` AppsSettingsCustomTemplate map[string]any `json:"databricks_apps_settings_custom_template,omitempty"` + AppsSpace map[string]any `json:"databricks_apps_space,omitempty"` ArtifactAllowlist map[string]any `json:"databricks_artifact_allowlist,omitempty"` AutomaticClusterUpdateWorkspaceSetting map[string]any `json:"databricks_automatic_cluster_update_workspace_setting,omitempty"` AwsS3Mount map[string]any `json:"databricks_aws_s3_mount,omitempty"` @@ -42,6 +43,7 @@ type Resources struct { DisableLegacyAccessSetting map[string]any `json:"databricks_disable_legacy_access_setting,omitempty"` DisableLegacyDbfsSetting map[string]any `json:"databricks_disable_legacy_dbfs_setting,omitempty"` DisableLegacyFeaturesSetting map[string]any `json:"databricks_disable_legacy_features_setting,omitempty"` + Endpoint map[string]any `json:"databricks_endpoint,omitempty"` EnhancedSecurityMonitoringWorkspaceSetting map[string]any `json:"databricks_enhanced_security_monitoring_workspace_setting,omitempty"` Entitlements map[string]any `json:"databricks_entitlements,omitempty"` EntityTagAssignment map[string]any `json:"databricks_entity_tag_assignment,omitempty"` @@ -159,6 +161,7 @@ func NewResources() *Resources { AlertV2: make(map[string]any), App: make(map[string]any), AppsSettingsCustomTemplate: make(map[string]any), + AppsSpace: make(map[string]any), ArtifactAllowlist: make(map[string]any), AutomaticClusterUpdateWorkspaceSetting: make(map[string]any), AwsS3Mount: make(map[string]any), @@ -187,6 +190,7 @@ func NewResources() *Resources { DisableLegacyAccessSetting: make(map[string]any), DisableLegacyDbfsSetting: make(map[string]any), DisableLegacyFeaturesSetting: make(map[string]any), + Endpoint: make(map[string]any), EnhancedSecurityMonitoringWorkspaceSetting: make(map[string]any), Entitlements: make(map[string]any), EntityTagAssignment: make(map[string]any), diff --git a/bundle/internal/tf/schema/root.go b/bundle/internal/tf/schema/root.go index 885fd9685a..3c28365c66 100644 --- a/bundle/internal/tf/schema/root.go +++ b/bundle/internal/tf/schema/root.go @@ -21,7 +21,7 @@ type Root struct { const ProviderHost = "registry.terraform.io" const ProviderSource = "databricks/databricks" -const ProviderVersion = "1.106.0" +const ProviderVersion = "1.109.0" func NewRoot() *Root { return &Root{