2024-06-20 16:52:03 -04:00
//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 {
2024-06-26 13:03:25 -04:00
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.Integration" : schema_pkg_apis_alerting_notifications_v0alpha1_Integration ( ref ) ,
2024-06-20 16:52:03 -04:00
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.Interval" : schema_pkg_apis_alerting_notifications_v0alpha1_Interval ( ref ) ,
2024-06-26 13:03:25 -04:00
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.Receiver" : schema_pkg_apis_alerting_notifications_v0alpha1_Receiver ( ref ) ,
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.ReceiverList" : schema_pkg_apis_alerting_notifications_v0alpha1_ReceiverList ( ref ) ,
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.ReceiverSpec" : schema_pkg_apis_alerting_notifications_v0alpha1_ReceiverSpec ( ref ) ,
2024-06-20 16:52:03 -04:00
"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 ) ,
}
}
2024-06-26 13:03:25 -04:00
func schema_pkg_apis_alerting_notifications_v0alpha1_Integration ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "Integration defines model for Integration." ,
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"disableResolveMessage" : {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "boolean" } ,
Format : "" ,
} ,
} ,
"SecureFields" : {
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-map-type" : "atomic" ,
} ,
} ,
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
AdditionalProperties : & spec . SchemaOrBool {
Allows : true ,
Schema : & spec . Schema {
SchemaProps : spec . SchemaProps {
Default : false ,
Type : [ ] string { "boolean" } ,
Format : "" ,
} ,
} ,
} ,
} ,
} ,
"settings" : {
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-list-type" : "atomic" ,
} ,
} ,
SchemaProps : spec . SchemaProps {
Type : [ ] string { "string" } ,
Format : "byte" ,
} ,
} ,
"type" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"uid" : {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
Required : [ ] string { "settings" , "type" } ,
} ,
} ,
}
}
2024-06-20 16:52:03 -04:00
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" } ,
}
}
2024-06-26 13:03:25 -04:00
func schema_pkg_apis_alerting_notifications_v0alpha1_Receiver ( 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.ReceiverSpec" ) ,
} ,
} ,
} ,
Required : [ ] string { "metadata" , "spec" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.ReceiverSpec" , "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta" } ,
}
}
func schema_pkg_apis_alerting_notifications_v0alpha1_ReceiverList ( 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.Receiver" ) ,
} ,
} ,
} ,
} ,
} ,
} ,
Required : [ ] string { "metadata" , "items" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.Receiver" , "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta" } ,
}
}
func schema_pkg_apis_alerting_notifications_v0alpha1_ReceiverSpec ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "ReceiverSpec defines model for Spec." ,
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"integrations" : {
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.Integration" ) ,
} ,
} ,
} ,
} ,
} ,
"title" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
Required : [ ] string { "integrations" , "title" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/apis/alerting_notifications/v0alpha1.Integration" } ,
}
}
2024-06-20 16:52:03 -04:00
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" } ,
} ,
} ,
}
}