2022-12-06 15:26:19 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
type Providers struct {
|
|
|
|
Databricks *Config `json:"databricks,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewProviders() *Providers {
|
|
|
|
return &Providers{
|
|
|
|
Databricks: &Config{},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type Root struct {
|
|
|
|
Terraform map[string]any `json:"terraform"`
|
|
|
|
|
|
|
|
Provider *Providers `json:"provider,omitempty"`
|
|
|
|
Data *DataSources `json:"data,omitempty"`
|
|
|
|
Resource *Resources `json:"resource,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRoot() *Root {
|
|
|
|
return &Root{
|
|
|
|
Terraform: map[string]interface{}{
|
|
|
|
"required_providers": map[string]interface{}{
|
|
|
|
"databricks": map[string]interface{}{
|
|
|
|
"source": "databricks/databricks",
|
2023-08-30 13:58:28 +00:00
|
|
|
"version": "1.23.0",
|
2022-12-06 15:26:19 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|