2024-08-13 14:28:17 -05:00
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// SPDX-License-Identifier: AGPL-3.0-only
// Code generated by openapi-gen. DO NOT EDIT.
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/aggregator/apis/aggregation/v0alpha1.DataPlaneService" : schema_aggregator_apis_aggregation_v0alpha1_DataPlaneService ( ref ) ,
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceCondition" : schema_aggregator_apis_aggregation_v0alpha1_DataPlaneServiceCondition ( ref ) ,
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceList" : schema_aggregator_apis_aggregation_v0alpha1_DataPlaneServiceList ( ref ) ,
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceSpec" : schema_aggregator_apis_aggregation_v0alpha1_DataPlaneServiceSpec ( ref ) ,
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceStatus" : schema_aggregator_apis_aggregation_v0alpha1_DataPlaneServiceStatus ( ref ) ,
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.QueryDataResponse" : schema_aggregator_apis_aggregation_v0alpha1_QueryDataResponse ( ref ) ,
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.Service" : schema_aggregator_apis_aggregation_v0alpha1_Service ( ref ) ,
}
}
func schema_aggregator_apis_aggregation_v0alpha1_DataPlaneService ( 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/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceSpec" ) ,
} ,
} ,
"status" : {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceStatus" ) ,
} ,
} ,
} ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceSpec" , "github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceStatus" , "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta" } ,
}
}
func schema_aggregator_apis_aggregation_v0alpha1_DataPlaneServiceCondition ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "DataPlaneServiceCondition describes the state of an DataPlaneService at a particular point" ,
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"type" : {
SchemaProps : spec . SchemaProps {
Description : "Type is the type of the condition." ,
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"status" : {
SchemaProps : spec . SchemaProps {
Description : "Status is the status of the condition. Can be True, False, Unknown." ,
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"lastTransitionTime" : {
SchemaProps : spec . SchemaProps {
Description : "Last time the condition transitioned from one status to another." ,
Ref : ref ( "k8s.io/apimachinery/pkg/apis/meta/v1.Time" ) ,
} ,
} ,
"reason" : {
SchemaProps : spec . SchemaProps {
Description : "Unique, one-word, CamelCase reason for the condition's last transition." ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"message" : {
SchemaProps : spec . SchemaProps {
Description : "Human-readable message indicating details about last transition." ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
Required : [ ] string { "type" , "status" } ,
} ,
} ,
Dependencies : [ ] string {
"k8s.io/apimachinery/pkg/apis/meta/v1.Time" } ,
}
}
func schema_aggregator_apis_aggregation_v0alpha1_DataPlaneServiceList ( 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/aggregator/apis/aggregation/v0alpha1.DataPlaneService" ) ,
} ,
} ,
} ,
} ,
} ,
} ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneService" , "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta" } ,
}
}
func schema_aggregator_apis_aggregation_v0alpha1_DataPlaneServiceSpec ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"pluginID" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"pluginType" : {
SchemaProps : spec . SchemaProps {
Description : "Possible enum values:\n - `\"app\"`\n - `\"datasource\"`" ,
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
Enum : [ ] interface { } { "app" , "datasource" } ,
} ,
} ,
"group" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"version" : {
SchemaProps : spec . SchemaProps {
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"services" : {
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-list-map-keys" : [ ] interface { } {
"type" ,
} ,
"x-kubernetes-list-type" : "map" ,
} ,
} ,
SchemaProps : spec . SchemaProps {
Description : "Services is a list of services that the proxied service provides." ,
Type : [ ] string { "array" } ,
Items : & spec . SchemaOrArray {
Schema : & spec . Schema {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.Service" ) ,
} ,
} ,
} ,
} ,
} ,
} ,
Required : [ ] string { "pluginID" , "pluginType" , "group" , "version" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.Service" } ,
}
}
func schema_aggregator_apis_aggregation_v0alpha1_DataPlaneServiceStatus ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "DataPlaneServiceStatus contains derived information about a remote DataPlaneService." ,
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"conditions" : {
VendorExtensible : spec . VendorExtensible {
Extensions : spec . Extensions {
"x-kubernetes-list-map-keys" : [ ] interface { } {
"type" ,
} ,
"x-kubernetes-list-type" : "map" ,
} ,
} ,
SchemaProps : spec . SchemaProps {
Description : "Current service state of DataPlaneService." ,
Type : [ ] string { "array" } ,
Items : & spec . SchemaOrArray {
Schema : & spec . Schema {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceCondition" ) ,
} ,
} ,
} ,
} ,
} ,
} ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana/pkg/aggregator/apis/aggregation/v0alpha1.DataPlaneServiceCondition" } ,
}
}
func schema_aggregator_apis_aggregation_v0alpha1_QueryDataResponse ( 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 : "" ,
} ,
} ,
"results" : {
SchemaProps : spec . SchemaProps {
Description : "Responses is a map of RefIDs (Unique Query ID) to *DataResponse." ,
Type : [ ] string { "object" } ,
AdditionalProperties : & spec . SchemaOrBool {
Allows : true ,
Schema : & spec . Schema {
SchemaProps : spec . SchemaProps {
Default : map [ string ] interface { } { } ,
Ref : ref ( "github.com/grafana/grafana-plugin-sdk-go/backend.DataResponse" ) ,
} ,
} ,
} ,
} ,
} ,
} ,
Required : [ ] string { "results" } ,
} ,
} ,
Dependencies : [ ] string {
"github.com/grafana/grafana-plugin-sdk-go/backend.DataResponse" } ,
}
}
func schema_aggregator_apis_aggregation_v0alpha1_Service ( ref common . ReferenceCallback ) common . OpenAPIDefinition {
return common . OpenAPIDefinition {
Schema : spec . Schema {
SchemaProps : spec . SchemaProps {
Description : "Service defines the type of service the proxied service provides." ,
Type : [ ] string { "object" } ,
Properties : map [ string ] spec . Schema {
"type" : {
SchemaProps : spec . SchemaProps {
2024-08-14 14:28:57 -05:00
Description : "Type is the type of service to proxy.\n\nPossible enum values:\n - `\"admission\"` maps to pluginv2.AdmissionControl\n - `\"conversion\"` maps to pluginv2.ResourceConversion\n - `\"datsource-proxy\"` is a reverse proxy for making requests directly to the HTTP URL specified in datasource instance settings.\n - `\"query\"` maps to pluginv2.Data\n - `\"route\"` maps pluginv2.Resource\n - `\"stream\"` maps to pluginv2.Stream" ,
2024-08-13 14:28:17 -05:00
Default : "" ,
Type : [ ] string { "string" } ,
Format : "" ,
2024-08-14 14:28:57 -05:00
Enum : [ ] interface { } { "admission" , "conversion" , "datsource-proxy" , "query" , "route" , "stream" } ,
2024-08-13 14:28:17 -05:00
} ,
} ,
"method" : {
SchemaProps : spec . SchemaProps {
Description : "Method is the HTTP method to use when proxying the service." ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
"path" : {
SchemaProps : spec . SchemaProps {
Description : "Path is used by the CustomRouteServiceType and SubResourceServiceType to specify the path to the endpoint." ,
Type : [ ] string { "string" } ,
Format : "" ,
} ,
} ,
} ,
Required : [ ] string { "type" } ,
} ,
} ,
}
}