//
// Code generated by grafana-app-sdk. DO NOT EDIT.
//

package v1alpha1

import (
	"github.com/grafana/grafana-app-sdk/resource"
)

// schema is unexported to prevent accidental overwrites
var (
	schemaPreferences = resource.NewSimpleSchema("preferences.grafana.app", "v1alpha1", NewPreferences(), &PreferencesList{}, resource.WithKind("Preferences"),
		resource.WithPlural("preferences"), resource.WithScope(resource.NamespacedScope))
	kindPreferences = resource.Kind{
		Schema: schemaPreferences,
		Codecs: map[resource.KindEncoding]resource.Codec{
			resource.KindEncodingJSON: &PreferencesJSONCodec{},
		},
	}
)

// Kind returns a resource.Kind for this Schema with a JSON codec
func PreferencesKind() resource.Kind {
	return kindPreferences
}

// Schema returns a resource.SimpleSchema representation of Preferences
func PreferencesSchema() *resource.SimpleSchema {
	return schemaPreferences
}

// Interface compliance checks
var _ resource.Schema = kindPreferences
