This commit is contained in:
Shreyas Goenka 2024-05-02 14:26:30 +02:00
parent 4724ecb324
commit d67484203d
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 26 additions and 0 deletions

View File

@ -17,6 +17,7 @@ type Resources struct {
Experiments map[string]*resources.MlflowExperiment `json:"experiments,omitempty"` Experiments map[string]*resources.MlflowExperiment `json:"experiments,omitempty"`
ModelServingEndpoints map[string]*resources.ModelServingEndpoint `json:"model_serving_endpoints,omitempty"` ModelServingEndpoints map[string]*resources.ModelServingEndpoint `json:"model_serving_endpoints,omitempty"`
RegisteredModels map[string]*resources.RegisteredModel `json:"registered_models,omitempty"` RegisteredModels map[string]*resources.RegisteredModel `json:"registered_models,omitempty"`
Schemas map[string]*resources.Schema `json:"schemas,omitempty"`
} }
type UniqueResourceIdTracker struct { type UniqueResourceIdTracker struct {

View File

@ -0,0 +1,25 @@
package resources
import (
"github.com/databricks/cli/bundle/config/paths"
"github.com/databricks/databricks-sdk-go/service/catalog"
)
type Schema struct {
// List of grants to apply on this schema.
Grants []Grant `json:"grants,omitempty"`
// This represents the id which is the full name of the schema
// (catalog_name.schema_name) that can be used
// as a reference in other resources. This value is returned by terraform.
// TODO: verify the accuracy of this comment
ID string `json:"id,omitempty" bundle:"readonly"`
// Path to config file where the resource is defined. All bundle resources
// include this for interpolation purposes.
paths.Paths
*catalog.CreateSchema
ModifiedStatus ModifiedStatus `json:"modified_status,omitempty" bundle:"internal"`
}