mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
304 lines
10 KiB
Go
304 lines
10 KiB
Go
|
|
//go:build !ignore_autogenerated
|
||
|
|
// +build !ignore_autogenerated
|
||
|
|
|
||
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||
|
|
|
||
|
|
// Code generated by openapi-gen. DO NOT EDIT.
|
||
|
|
|
||
|
|
// This file was autogenerated by openapi-gen. Do not edit it manually!
|
||
|
|
|
||
|
|
package v0alpha1
|
||
|
|
|
||
|
|
import (
|
||
|
|
common "k8s.io/kube-openapi/pkg/common"
|
||
|
|
spec "k8s.io/kube-openapi/pkg/validation/spec"
|
||
|
|
)
|
||
|
|
|
||
|
|
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
|
||
|
|
return map[string]common.OpenAPIDefinition{
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.Interval": schema_pkg_apis_alerting_notifications_v0alpha1_Interval(ref),
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeInterval": schema_pkg_apis_alerting_notifications_v0alpha1_TimeInterval(ref),
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeIntervalList": schema_pkg_apis_alerting_notifications_v0alpha1_TimeIntervalList(ref),
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeIntervalSpec": schema_pkg_apis_alerting_notifications_v0alpha1_TimeIntervalSpec(ref),
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeRange": schema_pkg_apis_alerting_notifications_v0alpha1_TimeRange(ref),
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func schema_pkg_apis_alerting_notifications_v0alpha1_Interval(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
|
|
return common.OpenAPIDefinition{
|
||
|
|
Schema: spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Description: "Interval defines model for Interval.",
|
||
|
|
Type: []string{"object"},
|
||
|
|
Properties: map[string]spec.Schema{
|
||
|
|
"days_of_month": {
|
||
|
|
VendorExtensible: spec.VendorExtensible{
|
||
|
|
Extensions: spec.Extensions{
|
||
|
|
"x-kubernetes-list-type": "atomic",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"array"},
|
||
|
|
Items: &spec.SchemaOrArray{
|
||
|
|
Schema: &spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: "",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"location": {
|
||
|
|
VendorExtensible: spec.VendorExtensible{
|
||
|
|
Extensions: spec.Extensions{
|
||
|
|
"x-kubernetes-list-type": "atomic",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"months": {
|
||
|
|
VendorExtensible: spec.VendorExtensible{
|
||
|
|
Extensions: spec.Extensions{
|
||
|
|
"x-kubernetes-list-type": "atomic",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"array"},
|
||
|
|
Items: &spec.SchemaOrArray{
|
||
|
|
Schema: &spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: "",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"times": {
|
||
|
|
VendorExtensible: spec.VendorExtensible{
|
||
|
|
Extensions: spec.Extensions{
|
||
|
|
"x-kubernetes-list-type": "atomic",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"array"},
|
||
|
|
Items: &spec.SchemaOrArray{
|
||
|
|
Schema: &spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: map[string]interface{}{},
|
||
|
|
Ref: ref("github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeRange"),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"weekdays": {
|
||
|
|
VendorExtensible: spec.VendorExtensible{
|
||
|
|
Extensions: spec.Extensions{
|
||
|
|
"x-kubernetes-list-type": "atomic",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"array"},
|
||
|
|
Items: &spec.SchemaOrArray{
|
||
|
|
Schema: &spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: "",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"years": {
|
||
|
|
VendorExtensible: spec.VendorExtensible{
|
||
|
|
Extensions: spec.Extensions{
|
||
|
|
"x-kubernetes-list-type": "atomic",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"array"},
|
||
|
|
Items: &spec.SchemaOrArray{
|
||
|
|
Schema: &spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: "",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Dependencies: []string{
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeRange"},
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func schema_pkg_apis_alerting_notifications_v0alpha1_TimeInterval(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
|
|
return common.OpenAPIDefinition{
|
||
|
|
Schema: spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"object"},
|
||
|
|
Properties: map[string]spec.Schema{
|
||
|
|
"kind": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"apiVersion": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"metadata": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: map[string]interface{}{},
|
||
|
|
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"spec": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: map[string]interface{}{},
|
||
|
|
Ref: ref("github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeIntervalSpec"),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Required: []string{"metadata", "spec"},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Dependencies: []string{
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeIntervalSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func schema_pkg_apis_alerting_notifications_v0alpha1_TimeIntervalList(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
|
|
return common.OpenAPIDefinition{
|
||
|
|
Schema: spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"object"},
|
||
|
|
Properties: map[string]spec.Schema{
|
||
|
|
"kind": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"apiVersion": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"metadata": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: map[string]interface{}{},
|
||
|
|
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"items": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"array"},
|
||
|
|
Items: &spec.SchemaOrArray{
|
||
|
|
Schema: &spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: map[string]interface{}{},
|
||
|
|
Ref: ref("github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeInterval"),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Required: []string{"metadata", "items"},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Dependencies: []string{
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.TimeInterval", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func schema_pkg_apis_alerting_notifications_v0alpha1_TimeIntervalSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
|
|
return common.OpenAPIDefinition{
|
||
|
|
Schema: spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Description: "Spec defines model for Spec.",
|
||
|
|
Type: []string{"object"},
|
||
|
|
Properties: map[string]spec.Schema{
|
||
|
|
"name": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: "",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"time_intervals": {
|
||
|
|
VendorExtensible: spec.VendorExtensible{
|
||
|
|
Extensions: spec.Extensions{
|
||
|
|
"x-kubernetes-list-type": "atomic",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Type: []string{"array"},
|
||
|
|
Items: &spec.SchemaOrArray{
|
||
|
|
Schema: &spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: map[string]interface{}{},
|
||
|
|
Ref: ref("github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.Interval"),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Required: []string{"name", "time_intervals"},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Dependencies: []string{
|
||
|
|
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.Interval"},
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func schema_pkg_apis_alerting_notifications_v0alpha1_TimeRange(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
|
|
return common.OpenAPIDefinition{
|
||
|
|
Schema: spec.Schema{
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Description: "TimeRange defines model for TimeRange.",
|
||
|
|
Type: []string{"object"},
|
||
|
|
Properties: map[string]spec.Schema{
|
||
|
|
"end_time": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: "",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
"start_time": {
|
||
|
|
SchemaProps: spec.SchemaProps{
|
||
|
|
Default: "",
|
||
|
|
Type: []string{"string"},
|
||
|
|
Format: "",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Required: []string{"end_time", "start_time"},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|
||
|
|
}
|