//
// 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 (
	schemaTimeInterval = resource.NewSimpleSchema("notifications.alerting.grafana.app", "v0alpha1", NewTimeInterval(), &TimeIntervalList{}, resource.WithKind("TimeInterval"),
		resource.WithPlural("timeintervals"), resource.WithScope(resource.NamespacedScope))
	kindTimeInterval = resource.Kind{
		Schema: schemaTimeInterval,
		Codecs: map[resource.KindEncoding]resource.Codec{
			resource.KindEncodingJSON: &TimeIntervalJSONCodec{},
		},
	}
)

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

// Schema returns a resource.SimpleSchema representation of TimeInterval
func TimeIntervalSchema() *resource.SimpleSchema {
	return schemaTimeInterval
}

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