//
// 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 (
	schemaResourcePermission = resource.NewSimpleSchema("iam.grafana.app", "v0alpha1", NewResourcePermission(), &ResourcePermissionList{}, resource.WithKind("ResourcePermission"),
		resource.WithPlural("resourcepermissions"), resource.WithScope(resource.NamespacedScope))
	kindResourcePermission = resource.Kind{
		Schema: schemaResourcePermission,
		Codecs: map[resource.KindEncoding]resource.Codec{
			resource.KindEncodingJSON: &ResourcePermissionJSONCodec{},
		},
	}
)

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

// Schema returns a resource.SimpleSchema representation of ResourcePermission
func ResourcePermissionSchema() *resource.SimpleSchema {
	return schemaResourcePermission
}

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