mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			662 lines
		
	
	
		
			24 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			662 lines
		
	
	
		
			24 KiB
		
	
	
	
		
			Go
		
	
	
	
| //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/apis/scope/v0alpha1.FindScopeDashboardBindingsResults": schema_pkg_apis_scope_v0alpha1_FindScopeDashboardBindingsResults(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.FindScopeNodeChildrenResults":      schema_pkg_apis_scope_v0alpha1_FindScopeNodeChildrenResults(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.Scope":                             schema_pkg_apis_scope_v0alpha1_Scope(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBinding":             schema_pkg_apis_scope_v0alpha1_ScopeDashboardBinding(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBindingList":         schema_pkg_apis_scope_v0alpha1_ScopeDashboardBindingList(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBindingSpec":         schema_pkg_apis_scope_v0alpha1_ScopeDashboardBindingSpec(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBindingStatus":       schema_pkg_apis_scope_v0alpha1_ScopeDashboardBindingStatus(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeFilter":                       schema_pkg_apis_scope_v0alpha1_ScopeFilter(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeList":                         schema_pkg_apis_scope_v0alpha1_ScopeList(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeNode":                         schema_pkg_apis_scope_v0alpha1_ScopeNode(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeNodeList":                     schema_pkg_apis_scope_v0alpha1_ScopeNodeList(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeNodeSpec":                     schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref),
 | |
| 		"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeSpec":                         schema_pkg_apis_scope_v0alpha1_ScopeSpec(ref),
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_FindScopeDashboardBindingsResults(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:      "",
 | |
| 						},
 | |
| 					},
 | |
| 					"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/scope/v0alpha1.ScopeDashboardBinding"),
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 					"message": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Type:   []string{"string"},
 | |
| 							Format: "",
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBinding"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_FindScopeNodeChildrenResults(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/scope/v0alpha1.ScopeNode"),
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeNode", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_Scope(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/scope/v0alpha1.ScopeSpec"),
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeDashboardBinding(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/scope/v0alpha1.ScopeDashboardBindingSpec"),
 | |
| 						},
 | |
| 					},
 | |
| 					"status": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: map[string]interface{}{},
 | |
| 							Ref:     ref("github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBindingStatus"),
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBindingSpec", "github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBindingStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeDashboardBindingList(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/scope/v0alpha1.ScopeDashboardBinding"),
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeDashboardBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeDashboardBindingSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
 | |
| 	return common.OpenAPIDefinition{
 | |
| 		Schema: spec.Schema{
 | |
| 			SchemaProps: spec.SchemaProps{
 | |
| 				Type: []string{"object"},
 | |
| 				Properties: map[string]spec.Schema{
 | |
| 					"dashboard": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: "",
 | |
| 							Type:    []string{"string"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 					"scope": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: "",
 | |
| 							Type:    []string{"string"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 				Required: []string{"dashboard", "scope"},
 | |
| 			},
 | |
| 		},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeDashboardBindingStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
 | |
| 	return common.OpenAPIDefinition{
 | |
| 		Schema: spec.Schema{
 | |
| 			SchemaProps: spec.SchemaProps{
 | |
| 				Description: "Type of the item. ScopeDashboardBindingStatus contains derived information about a ScopeDashboardBinding.",
 | |
| 				Type:        []string{"object"},
 | |
| 				Properties: map[string]spec.Schema{
 | |
| 					"dashboardTitle": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Description: "DashboardTitle should be populated and update from the dashboard",
 | |
| 							Default:     "",
 | |
| 							Type:        []string{"string"},
 | |
| 							Format:      "",
 | |
| 						},
 | |
| 					},
 | |
| 					"groups": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Description: "Groups is used for the grouping of dashboards that are suggested based on a scope. The source of truth for this information has not been determined yet.",
 | |
| 							Type:        []string{"array"},
 | |
| 							Items: &spec.SchemaOrArray{
 | |
| 								Schema: &spec.Schema{
 | |
| 									SchemaProps: spec.SchemaProps{
 | |
| 										Default: "",
 | |
| 										Type:    []string{"string"},
 | |
| 										Format:  "",
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 					"dashboardTitleConditions": {
 | |
| 						VendorExtensible: spec.VendorExtensible{
 | |
| 							Extensions: spec.Extensions{
 | |
| 								"x-kubernetes-list-map-keys": []interface{}{
 | |
| 									"type",
 | |
| 								},
 | |
| 								"x-kubernetes-list-type": "map",
 | |
| 							},
 | |
| 						},
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Description: "DashboardTitleConditions is a list of conditions that are used to determine if the dashboard title is valid.",
 | |
| 							Type:        []string{"array"},
 | |
| 							Items: &spec.SchemaOrArray{
 | |
| 								Schema: &spec.Schema{
 | |
| 									SchemaProps: spec.SchemaProps{
 | |
| 										Default: map[string]interface{}{},
 | |
| 										Ref:     ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"),
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 					"groupsConditions": {
 | |
| 						VendorExtensible: spec.VendorExtensible{
 | |
| 							Extensions: spec.Extensions{
 | |
| 								"x-kubernetes-list-map-keys": []interface{}{
 | |
| 									"type",
 | |
| 								},
 | |
| 								"x-kubernetes-list-type": "map",
 | |
| 							},
 | |
| 						},
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Description: "DashboardTitleConditions is a list of conditions that are used to determine if the list of groups is valid.",
 | |
| 							Type:        []string{"array"},
 | |
| 							Items: &spec.SchemaOrArray{
 | |
| 								Schema: &spec.Schema{
 | |
| 									SchemaProps: spec.SchemaProps{
 | |
| 										Default: map[string]interface{}{},
 | |
| 										Ref:     ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"),
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 				Required: []string{"dashboardTitle"},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"k8s.io/apimachinery/pkg/apis/meta/v1.Condition"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeFilter(ref common.ReferenceCallback) common.OpenAPIDefinition {
 | |
| 	return common.OpenAPIDefinition{
 | |
| 		Schema: spec.Schema{
 | |
| 			SchemaProps: spec.SchemaProps{
 | |
| 				Type: []string{"object"},
 | |
| 				Properties: map[string]spec.Schema{
 | |
| 					"key": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: "",
 | |
| 							Type:    []string{"string"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 					"value": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: "",
 | |
| 							Type:    []string{"string"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 					"values": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Description: "Values is used for operators that require multiple values (e.g. one-of and not-one-of).",
 | |
| 							Type:        []string{"array"},
 | |
| 							Items: &spec.SchemaOrArray{
 | |
| 								Schema: &spec.Schema{
 | |
| 									SchemaProps: spec.SchemaProps{
 | |
| 										Default: "",
 | |
| 										Type:    []string{"string"},
 | |
| 										Format:  "",
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 					"operator": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Description: "Possible enum values:\n - `\"equals\"`\n - `\"not-equals\"`\n - `\"not-one-of\"`\n - `\"one-of\"`\n - `\"regex-match\"`\n - `\"regex-not-match\"`",
 | |
| 							Default:     "",
 | |
| 							Type:        []string{"string"},
 | |
| 							Format:      "",
 | |
| 							Enum:        []interface{}{"equals", "not-equals", "not-one-of", "one-of", "regex-match", "regex-not-match"},
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 				Required: []string{"key", "value", "operator"},
 | |
| 			},
 | |
| 		},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeList(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/scope/v0alpha1.Scope"),
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.Scope", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeNode(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/scope/v0alpha1.ScopeNodeSpec"),
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeNodeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeNodeList(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/scope/v0alpha1.ScopeNode"),
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeNode", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
 | |
| 	return common.OpenAPIDefinition{
 | |
| 		Schema: spec.Schema{
 | |
| 			SchemaProps: spec.SchemaProps{
 | |
| 				Type: []string{"object"},
 | |
| 				Properties: map[string]spec.Schema{
 | |
| 					"parentName": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Type:   []string{"string"},
 | |
| 							Format: "",
 | |
| 						},
 | |
| 					},
 | |
| 					"nodeType": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: "",
 | |
| 							Type:    []string{"string"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 					"title": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: "",
 | |
| 							Type:    []string{"string"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 					"description": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Type:   []string{"string"},
 | |
| 							Format: "",
 | |
| 						},
 | |
| 					},
 | |
| 					"disableMultiSelect": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: false,
 | |
| 							Type:    []string{"boolean"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 					"linkType": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Description: "Possible enum values:\n - `\"scope\"`",
 | |
| 							Type:        []string{"string"},
 | |
| 							Format:      "",
 | |
| 							Enum:        []interface{}{"scope"},
 | |
| 						},
 | |
| 					},
 | |
| 					"linkId": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Description: "scope (later more things)",
 | |
| 							Type:        []string{"string"},
 | |
| 							Format:      "",
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 				Required: []string{"nodeType", "title", "disableMultiSelect"},
 | |
| 			},
 | |
| 		},
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func schema_pkg_apis_scope_v0alpha1_ScopeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
 | |
| 	return common.OpenAPIDefinition{
 | |
| 		Schema: spec.Schema{
 | |
| 			SchemaProps: spec.SchemaProps{
 | |
| 				Type: []string{"object"},
 | |
| 				Properties: map[string]spec.Schema{
 | |
| 					"title": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: "",
 | |
| 							Type:    []string{"string"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 					"description": {
 | |
| 						SchemaProps: spec.SchemaProps{
 | |
| 							Default: "",
 | |
| 							Type:    []string{"string"},
 | |
| 							Format:  "",
 | |
| 						},
 | |
| 					},
 | |
| 					"filters": {
 | |
| 						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/scope/v0alpha1.ScopeFilter"),
 | |
| 									},
 | |
| 								},
 | |
| 							},
 | |
| 						},
 | |
| 					},
 | |
| 				},
 | |
| 				Required: []string{"title", "description", "filters"},
 | |
| 			},
 | |
| 		},
 | |
| 		Dependencies: []string{
 | |
| 			"github.com/grafana/grafana/pkg/apis/scope/v0alpha1.ScopeFilter"},
 | |
| 	}
 | |
| }
 |