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

package v0alpha1

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

// schema is unexported to prevent accidental overwrites
var (
	schemaPlaylist = resource.NewSimpleSchema("playlist.grafana.app", "v0alpha1", &Playlist{}, &PlaylistList{}, resource.WithKind("Playlist"),
		resource.WithPlural("playlists"), resource.WithScope(resource.NamespacedScope))
	kindPlaylist = resource.Kind{
		Schema: schemaPlaylist,
		Codecs: map[resource.KindEncoding]resource.Codec{
			resource.KindEncodingJSON: &PlaylistJSONCodec{},
		},
	}
)

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

// Schema returns a resource.SimpleSchema representation of Playlist
func PlaylistSchema() *resource.SimpleSchema {
	return schemaPlaylist
}

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