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

package v1beta1

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

// schema is unexported to prevent accidental overwrites
var (
	schemaShortURL = resource.NewSimpleSchema("shorturl.grafana.app", "v1beta1", NewShortURL(), &ShortURLList{}, resource.WithKind("ShortURL"),
		resource.WithPlural("shorturls"), resource.WithScope(resource.NamespacedScope))
	kindShortURL = resource.Kind{
		Schema: schemaShortURL,
		Codecs: map[resource.KindEncoding]resource.Codec{
			resource.KindEncodingJSON: &ShortURLJSONCodec{},
		},
	}
)

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

// Schema returns a resource.SimpleSchema representation of ShortURL
func ShortURLSchema() *resource.SimpleSchema {
	return schemaShortURL
}

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