-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathschema.d.ts
More file actions
234 lines (225 loc) · 6.2 KB
/
schema.d.ts
File metadata and controls
234 lines (225 loc) · 6.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
/** OneOf type helpers */
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
type XOR<T, U> = (T | U) extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
type OneOf<T extends any[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR<A, B>, ...Rest]> : never;
export interface paths {
"/demos": {
/** Retrieves all demos. */
get: operations["get_demos"];
};
"/demos/{name}": {
/** Retrieves one demo identified by `name`. */
get: operations["get_demo"];
};
"/login": {
post: operations["log_in"];
};
"/ping": {
get: operations["ping"];
};
"/releases": {
/** Retrieves all releases. */
get: operations["get_releases"];
};
"/releases/{name}": {
/** Retrieves one release identified by `name`. */
get: operations["get_release"];
};
"/stacklets": {
/** Retrieves all stacklets. */
get: operations["get_stacklets"];
};
}
export type webhooks = Record<string, never>;
export interface components {
schemas: {
/** @description This struct describes a demo with the v2 spec */
DemoSpec: {
/** @description A short description of the demo */
description: string;
/** @description An optional link to a documentation page */
documentation?: string | null;
/** @description A variable number of labels (tags) */
labels?: string[];
/** @description A variable number of Helm or YAML manifests */
manifests?: components["schemas"]["ManifestSpec"][];
/** @description A variable number of supported parameters */
parameters?: components["schemas"]["Parameter"][];
resourceRequests?: components["schemas"]["ResourceRequests"] | null;
/** @description The name of the underlying stack */
stackableStack: string;
/**
* @description Supported namespaces this demo can run in. An empty list indicates that
* the demo can run in any namespace.
*/
supportedNamespaces?: string[];
};
DisplayCondition: {
condition: string;
is_good?: boolean | null;
message?: string | null;
};
ManifestSpec: OneOf<[{
helmChart: string;
}, {
plainYaml: string;
}]>;
ObjectMeta: {
name: string;
namespace: string;
};
/**
* @description Parameter descibes a common parameter format. This format is used in demo
* and stack definitions.
*/
Parameter: {
/** @description Parameter default value */
default: string;
/** @description Parameter description */
description: string;
/** @description Parameter name */
name: string;
};
ProductSpec: {
operatorVersion: string;
};
ReleaseSpec: {
/** @description A short description of this release */
description: string;
/** @description List of products and their version in this release */
products: {
[key: string]: components["schemas"]["product.ProductSpec"];
};
/** @description Date this released was released */
releaseDate: string;
};
/**
* @description Demos and stacks can define how much cluster resources they need to run
* via their definition. The struct [`ResourceRequests`] contains information
* how many CPU cores and how much memory and disk space are required to run
* the demo/stack.
*/
ResourceRequests: {
cpu: string;
memory: string;
pvc: string;
};
Session: {
sessionToken: components["schemas"]["SessionToken"];
};
SessionToken: string;
Stacklet: {
/** @description Multiple cluster conditions. */
conditions: components["schemas"]["k8s.DisplayCondition"][];
/**
* @description Endpoint addresses the product is reachable at.
* The key is the service name (e.g. `web-ui`), the value is the URL.
*/
endpoints: {
[key: string]: string;
};
/** @description Name of the stacklet. */
name: string;
/** @description Some CRDs are cluster scoped. */
namespace?: string | null;
/** @description Name of the product. */
product: string;
};
};
responses: never;
parameters: never;
requestBodies: never;
headers: never;
pathItems: never;
}
export type $defs = Record<string, never>;
export type external = Record<string, never>;
export interface operations {
/** Retrieves all demos. */
get_demos: {
responses: {
/** @description Retrieving a list of demos succeeded */
200: {
content: {
"application/json": components["schemas"]["DemoSpecV2"][];
};
};
/** @description Retrieving a list of demos failed */
404: {
content: never;
};
};
};
/** Retrieves one demo identified by `name`. */
get_demo: {
responses: {
/** @description Retrieving the demo with 'name' succeeded */
200: {
content: {
"application/json": components["schemas"]["DemoSpecV2"];
};
};
/** @description Retrieving the demo with 'name' failed */
404: {
content: never;
};
};
};
log_in: {
responses: {
200: {
content: {
"application/json": components["schemas"]["Session"];
};
};
401: {
content: {
"text/plain": string;
};
};
};
};
ping: {
responses: {
200: {
content: {
"text/plain": string;
};
};
};
};
/** Retrieves all releases. */
get_releases: {
responses: {
/** @description Retrieving a list of releases succeeded */
200: {
content: {
"application/json": components["schemas"]["ReleaseSpec"][];
};
};
/** @description Retrieving a list of releases failed */
404: {
content: never;
};
};
};
/** Retrieves one release identified by `name`. */
get_release: {
responses: {
};
};
/** Retrieves all stacklets. */
get_stacklets: {
responses: {
200: {
content: {
"application/json": components["schemas"]["Stacklet"][];
};
};
};
};
}