7f74f2f75e616d792a90df7707929a8887ebb59f
[demo.git] / vnfs / DAaaS / microservices / visualization-operator / pkg / apis / onap / v1alpha1 / zz_generated.openapi.go
1 // +build !
2
3 // This file was autogenerated by openapi-gen. Do not edit it manually!
4
5 package v1alpha1
6
7 import (
8         spec "github.com/go-openapi/spec"
9         common "k8s.io/kube-openapi/pkg/common"
10 )
11
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),
18         }
19 }
20
21 func schema_pkg_apis_onap_v1alpha1_Datasource(ref common.ReferenceCallback) common.OpenAPIDefinition {
22         return common.OpenAPIDefinition{
23                 Schema: spec.Schema{
24                         SchemaProps: spec.SchemaProps{
25                                 Description: "Datasource defines the fields in a GrafanaDataSource",
26                                 Properties: map[string]spec.Schema{
27                                         "name": {
28                                                 SchemaProps: spec.SchemaProps{
29                                                         Type:   []string{"string"},
30                                                         Format: "",
31                                                 },
32                                         },
33                                         "type": {
34                                                 SchemaProps: spec.SchemaProps{
35                                                         Type:   []string{"string"},
36                                                         Format: "",
37                                                 },
38                                         },
39                                         "url": {
40                                                 SchemaProps: spec.SchemaProps{
41                                                         Type:   []string{"string"},
42                                                         Format: "",
43                                                 },
44                                         },
45                                         "isDefault": {
46                                                 SchemaProps: spec.SchemaProps{
47                                                         Type:   []string{"boolean"},
48                                                         Format: "",
49                                                 },
50                                         },
51                                         "access": {
52                                                 SchemaProps: spec.SchemaProps{
53                                                         Type:   []string{"string"},
54                                                         Format: "",
55                                                 },
56                                         },
57                                         "withCredentials": {
58                                                 SchemaProps: spec.SchemaProps{
59                                                         Type:   []string{"boolean"},
60                                                         Format: "",
61                                                 },
62                                         },
63                                         "basicAuth": {
64                                                 SchemaProps: spec.SchemaProps{
65                                                         Type:   []string{"boolean"},
66                                                         Format: "",
67                                                 },
68                                         },
69                                         "basicAuthUser": {
70                                                 SchemaProps: spec.SchemaProps{
71                                                         Type:   []string{"string"},
72                                                         Format: "",
73                                                 },
74                                         },
75                                         "basicAuthPassword": {
76                                                 SchemaProps: spec.SchemaProps{
77                                                         Type:   []string{"string"},
78                                                         Format: "",
79                                                 },
80                                         },
81                                         "jsonData": {
82                                                 SchemaProps: spec.SchemaProps{
83                                                         Type: []string{"object"},
84                                                         AdditionalProperties: &spec.SchemaOrBool{
85                                                                 Schema: &spec.Schema{
86                                                                         SchemaProps: spec.SchemaProps{
87                                                                                 Type:   []string{"string"},
88                                                                                 Format: "",
89                                                                         },
90                                                                 },
91                                                         },
92                                                 },
93                                         },
94                                         "database": {
95                                                 SchemaProps: spec.SchemaProps{
96                                                         Type:   []string{"string"},
97                                                         Format: "",
98                                                 },
99                                         },
100                                         "user": {
101                                                 SchemaProps: spec.SchemaProps{
102                                                         Type:   []string{"string"},
103                                                         Format: "",
104                                                 },
105                                         },
106                                         "password": {
107                                                 SchemaProps: spec.SchemaProps{
108                                                         Type:   []string{"string"},
109                                                         Format: "",
110                                                 },
111                                         },
112                                         "readOnly": {
113                                                 SchemaProps: spec.SchemaProps{
114                                                         Type:   []string{"boolean"},
115                                                         Format: "",
116                                                 },
117                                         },
118                                 },
119                                 Required: []string{"name", "type", "url", "access"},
120                         },
121                 },
122                 Dependencies: []string{},
123         }
124 }
125
126 func schema_pkg_apis_onap_v1alpha1_GrafanaDataSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
127         return common.OpenAPIDefinition{
128                 Schema: spec.Schema{
129                         SchemaProps: spec.SchemaProps{
130                                 Description: "GrafanaDataSource is the Schema for the grafanadatasources API",
131                                 Properties: map[string]spec.Schema{
132                                         "kind": {
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"},
136                                                         Format:      "",
137                                                 },
138                                         },
139                                         "apiVersion": {
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"},
143                                                         Format:      "",
144                                                 },
145                                         },
146                                         "metadata": {
147                                                 SchemaProps: spec.SchemaProps{
148                                                         Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
149                                                 },
150                                         },
151                                         "spec": {
152                                                 SchemaProps: spec.SchemaProps{
153                                                         Ref: ref("./pkg/apis/onap/v1alpha1.GrafanaDataSourceSpec"),
154                                                 },
155                                         },
156                                         "status": {
157                                                 SchemaProps: spec.SchemaProps{
158                                                         Ref: ref("./pkg/apis/onap/v1alpha1.GrafanaDataSourceStatus"),
159                                                 },
160                                         },
161                                 },
162                         },
163                 },
164                 Dependencies: []string{
165                         "./pkg/apis/onap/v1alpha1.GrafanaDataSourceSpec", "./pkg/apis/onap/v1alpha1.GrafanaDataSourceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
166         }
167 }
168
169 func schema_pkg_apis_onap_v1alpha1_GrafanaDataSourceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
170         return common.OpenAPIDefinition{
171                 Schema: spec.Schema{
172                         SchemaProps: spec.SchemaProps{
173                                 Description: "GrafanaDataSourceSpec defines the desired state of GrafanaDataSource",
174                                 Properties: map[string]spec.Schema{
175                                         "datasources": {
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"),
183                                                                         },
184                                                                 },
185                                                         },
186                                                 },
187                                         },
188                                         "grafana": {
189                                                 SchemaProps: spec.SchemaProps{
190                                                         Type: []string{"object"},
191                                                         AdditionalProperties: &spec.SchemaOrBool{
192                                                                 Schema: &spec.Schema{
193                                                                         SchemaProps: spec.SchemaProps{
194                                                                                 Type:   []string{"string"},
195                                                                                 Format: "",
196                                                                         },
197                                                                 },
198                                                         },
199                                                 },
200                                         },
201                                 },
202                                 Required: []string{"datasources", "grafana"},
203                         },
204                 },
205                 Dependencies: []string{
206                         "./pkg/apis/onap/v1alpha1.Datasource"},
207         }
208 }
209
210 func schema_pkg_apis_onap_v1alpha1_GrafanaDataSourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
211         return common.OpenAPIDefinition{
212                 Schema: spec.Schema{
213                         SchemaProps: spec.SchemaProps{
214                                 Description: "GrafanaDataSourceStatus defines the observed state of GrafanaDataSource",
215                                 Properties:  map[string]spec.Schema{},
216                         },
217                 },
218                 Dependencies: []string{},
219         }
220 }