3 // This file was autogenerated by openapi-gen. Do not edit it manually!
8 spec "github.com/go-openapi/spec"
9 common "k8s.io/kube-openapi/pkg/common"
12 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
13 return map[string]common.OpenAPIDefinition{
14 "./pkg/apis/onap/v1alpha1.Datasource": schema_pkg_apis_onap_v1alpha1_Datasource(ref),
15 "./pkg/apis/onap/v1alpha1.GrafanaDataSource": schema_pkg_apis_onap_v1alpha1_GrafanaDataSource(ref),
16 "./pkg/apis/onap/v1alpha1.GrafanaDataSourceSpec": schema_pkg_apis_onap_v1alpha1_GrafanaDataSourceSpec(ref),
17 "./pkg/apis/onap/v1alpha1.GrafanaDataSourceStatus": schema_pkg_apis_onap_v1alpha1_GrafanaDataSourceStatus(ref),
21 func schema_pkg_apis_onap_v1alpha1_Datasource(ref common.ReferenceCallback) common.OpenAPIDefinition {
22 return common.OpenAPIDefinition{
24 SchemaProps: spec.SchemaProps{
25 Description: "Datasource defines the fields in a GrafanaDataSource",
26 Properties: map[string]spec.Schema{
28 SchemaProps: spec.SchemaProps{
29 Type: []string{"string"},
34 SchemaProps: spec.SchemaProps{
35 Type: []string{"string"},
40 SchemaProps: spec.SchemaProps{
41 Type: []string{"string"},
46 SchemaProps: spec.SchemaProps{
47 Type: []string{"boolean"},
52 SchemaProps: spec.SchemaProps{
53 Type: []string{"string"},
58 SchemaProps: spec.SchemaProps{
59 Type: []string{"boolean"},
64 SchemaProps: spec.SchemaProps{
65 Type: []string{"boolean"},
70 SchemaProps: spec.SchemaProps{
71 Type: []string{"string"},
75 "basicAuthPassword": {
76 SchemaProps: spec.SchemaProps{
77 Type: []string{"string"},
82 SchemaProps: spec.SchemaProps{
83 Type: []string{"object"},
84 AdditionalProperties: &spec.SchemaOrBool{
86 SchemaProps: spec.SchemaProps{
87 Type: []string{"string"},
95 SchemaProps: spec.SchemaProps{
96 Type: []string{"string"},
101 SchemaProps: spec.SchemaProps{
102 Type: []string{"string"},
107 SchemaProps: spec.SchemaProps{
108 Type: []string{"string"},
113 SchemaProps: spec.SchemaProps{
114 Type: []string{"boolean"},
119 Required: []string{"name", "type", "url", "access"},
122 Dependencies: []string{},
126 func schema_pkg_apis_onap_v1alpha1_GrafanaDataSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
127 return common.OpenAPIDefinition{
129 SchemaProps: spec.SchemaProps{
130 Description: "GrafanaDataSource is the Schema for the grafanadatasources API",
131 Properties: map[string]spec.Schema{
133 SchemaProps: spec.SchemaProps{
134 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/api-conventions.md#types-kinds",
135 Type: []string{"string"},
140 SchemaProps: spec.SchemaProps{
141 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/api-conventions.md#resources",
142 Type: []string{"string"},
147 SchemaProps: spec.SchemaProps{
148 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
152 SchemaProps: spec.SchemaProps{
153 Ref: ref("./pkg/apis/onap/v1alpha1.GrafanaDataSourceSpec"),
157 SchemaProps: spec.SchemaProps{
158 Ref: ref("./pkg/apis/onap/v1alpha1.GrafanaDataSourceStatus"),
164 Dependencies: []string{
165 "./pkg/apis/onap/v1alpha1.GrafanaDataSourceSpec", "./pkg/apis/onap/v1alpha1.GrafanaDataSourceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
169 func schema_pkg_apis_onap_v1alpha1_GrafanaDataSourceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
170 return common.OpenAPIDefinition{
172 SchemaProps: spec.SchemaProps{
173 Description: "GrafanaDataSourceSpec defines the desired state of GrafanaDataSource",
174 Properties: map[string]spec.Schema{
176 SchemaProps: spec.SchemaProps{
177 Description: "INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run \"operator-sdk generate k8s\" to regenerate code after modifying this file Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html",
178 Type: []string{"array"},
179 Items: &spec.SchemaOrArray{
180 Schema: &spec.Schema{
181 SchemaProps: spec.SchemaProps{
182 Ref: ref("./pkg/apis/onap/v1alpha1.Datasource"),
189 SchemaProps: spec.SchemaProps{
190 Type: []string{"object"},
191 AdditionalProperties: &spec.SchemaOrBool{
192 Schema: &spec.Schema{
193 SchemaProps: spec.SchemaProps{
194 Type: []string{"string"},
202 Required: []string{"datasources", "grafana"},
205 Dependencies: []string{
206 "./pkg/apis/onap/v1alpha1.Datasource"},
210 func schema_pkg_apis_onap_v1alpha1_GrafanaDataSourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
211 return common.OpenAPIDefinition{
213 SchemaProps: spec.SchemaProps{
214 Description: "GrafanaDataSourceStatus defines the observed state of GrafanaDataSource",
215 Properties: map[string]spec.Schema{},
218 Dependencies: []string{},