@cloudfleet/sdk 0.0.1-f1d40ff → 0.0.1-f367cfd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@tanstack/react-query.gen.d.ts +1156 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1148 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +220 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +8 -7
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +6 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/{utils.d.ts → utils.gen.d.ts} +15 -23
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/{utils.js → utils.gen.js} +63 -119
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +3 -3
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -3
- package/dist/client.gen.js.map +1 -1
- package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/{auth.js → auth.gen.js} +2 -1
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/{params.d.ts → params.gen.d.ts} +21 -1
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/{params.js → params.gen.js} +20 -7
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/{types.d.ts → types.gen.d.ts} +21 -16
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1212 -558
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2507 -652
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +137 -20
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +226 -164
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1029 -334
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3453 -3572
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1162 -1037
- package/dist/zod.gen.js.map +1 -1
- package/package.json +29 -6
- package/dist/client/client.d.ts +0 -3
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/client.js +0 -144
- package/dist/client/client.js.map +0 -1
- package/dist/client/types.d.ts.map +0 -1
- package/dist/client/types.js +0 -2
- package/dist/client/types.js.map +0 -1
- package/dist/client/utils.d.ts.map +0 -1
- package/dist/client/utils.js.map +0 -1
- package/dist/core/auth.d.ts.map +0 -1
- package/dist/core/auth.js.map +0 -1
- package/dist/core/bodySerializer.d.ts +0 -18
- package/dist/core/bodySerializer.d.ts.map +0 -1
- package/dist/core/bodySerializer.js.map +0 -1
- package/dist/core/params.d.ts.map +0 -1
- package/dist/core/params.js.map +0 -1
- package/dist/core/pathSerializer.d.ts.map +0 -1
- package/dist/core/pathSerializer.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -2
- package/dist/core/types.js.map +0 -1
package/dist/schemas.gen.js
CHANGED
|
@@ -58,15 +58,10 @@ export const BillingContactSchema = {
|
|
|
58
58
|
description: 'Email address used for billing as a string.',
|
|
59
59
|
example: 'email@example.com'
|
|
60
60
|
},
|
|
61
|
-
|
|
62
|
-
type: 'string',
|
|
63
|
-
description: 'First name of the billing contact person.',
|
|
64
|
-
example: 'John'
|
|
65
|
-
},
|
|
66
|
-
last_name: {
|
|
61
|
+
individual_name: {
|
|
67
62
|
type: 'string',
|
|
68
|
-
description: '
|
|
69
|
-
example: 'Doe'
|
|
63
|
+
description: 'Name of the billing contact person.',
|
|
64
|
+
example: 'John Doe'
|
|
70
65
|
},
|
|
71
66
|
tax_id: {
|
|
72
67
|
type: 'string',
|
|
@@ -79,10 +74,142 @@ export const BillingContactSchema = {
|
|
|
79
74
|
nullable: true,
|
|
80
75
|
description: 'Type of the tax ID.',
|
|
81
76
|
example: 'de_vat',
|
|
82
|
-
enum: [
|
|
77
|
+
enum: [
|
|
78
|
+
'ad_nrt',
|
|
79
|
+
'ae_trn',
|
|
80
|
+
'al_tin',
|
|
81
|
+
'am_tin',
|
|
82
|
+
'ao_tin',
|
|
83
|
+
'ar_cuit',
|
|
84
|
+
'at_vat',
|
|
85
|
+
'au_abn',
|
|
86
|
+
'au_arn',
|
|
87
|
+
'ba_tin',
|
|
88
|
+
'bb_tin',
|
|
89
|
+
'be_vat',
|
|
90
|
+
'bg_uic',
|
|
91
|
+
'bg_vat',
|
|
92
|
+
'bh_vat',
|
|
93
|
+
'bo_tin',
|
|
94
|
+
'br_cnpj',
|
|
95
|
+
'br_cpf',
|
|
96
|
+
'bs_tin',
|
|
97
|
+
'by_tin',
|
|
98
|
+
'ca_bn',
|
|
99
|
+
'ca_gst_hst',
|
|
100
|
+
'ca_pst_bc',
|
|
101
|
+
'ca_pst_mb',
|
|
102
|
+
'ca_pst_sk',
|
|
103
|
+
'ca_qst',
|
|
104
|
+
'cd_nif',
|
|
105
|
+
'ch_uid',
|
|
106
|
+
'ch_vat',
|
|
107
|
+
'cl_tin',
|
|
108
|
+
'cn_tin',
|
|
109
|
+
'co_nit',
|
|
110
|
+
'cr_tin',
|
|
111
|
+
'cy_vat',
|
|
112
|
+
'cz_vat',
|
|
113
|
+
'de_stn',
|
|
114
|
+
'de_vat',
|
|
115
|
+
'dk_vat',
|
|
116
|
+
'do_rcn',
|
|
117
|
+
'ec_ruc',
|
|
118
|
+
'ee_vat',
|
|
119
|
+
'eg_tin',
|
|
120
|
+
'es_cif',
|
|
121
|
+
'es_vat',
|
|
122
|
+
'eu_oss_vat',
|
|
123
|
+
'fi_vat',
|
|
124
|
+
'fr_vat',
|
|
125
|
+
'gb_vat',
|
|
126
|
+
'ge_vat',
|
|
127
|
+
'gn_nif',
|
|
128
|
+
'gr_vat',
|
|
129
|
+
'hk_br',
|
|
130
|
+
'hr_oib',
|
|
131
|
+
'hr_vat',
|
|
132
|
+
'hu_tin',
|
|
133
|
+
'hu_vat',
|
|
134
|
+
'id_npwp',
|
|
135
|
+
'ie_vat',
|
|
136
|
+
'il_vat',
|
|
137
|
+
'in_gst',
|
|
138
|
+
'is_vat',
|
|
139
|
+
'it_vat',
|
|
140
|
+
'jp_cn',
|
|
141
|
+
'jp_rn',
|
|
142
|
+
'jp_trn',
|
|
143
|
+
'ke_pin',
|
|
144
|
+
'kh_tin',
|
|
145
|
+
'kr_brn',
|
|
146
|
+
'kz_bin',
|
|
147
|
+
'li_uid',
|
|
148
|
+
'li_vat',
|
|
149
|
+
'lt_vat',
|
|
150
|
+
'lu_vat',
|
|
151
|
+
'lv_vat',
|
|
152
|
+
'ma_vat',
|
|
153
|
+
'md_vat',
|
|
154
|
+
'me_pib',
|
|
155
|
+
'mk_vat',
|
|
156
|
+
'mr_nif',
|
|
157
|
+
'mt_vat',
|
|
158
|
+
'mx_rfc',
|
|
159
|
+
'my_frp',
|
|
160
|
+
'my_itn',
|
|
161
|
+
'my_sst',
|
|
162
|
+
'ng_tin',
|
|
163
|
+
'nl_vat',
|
|
164
|
+
'no_vat',
|
|
165
|
+
'no_voec',
|
|
166
|
+
'np_pan',
|
|
167
|
+
'nz_gst',
|
|
168
|
+
'om_vat',
|
|
169
|
+
'pe_ruc',
|
|
170
|
+
'ph_tin',
|
|
171
|
+
'pl_vat',
|
|
172
|
+
'pt_vat',
|
|
173
|
+
'ro_tin',
|
|
174
|
+
'ro_vat',
|
|
175
|
+
'rs_pib',
|
|
176
|
+
'ru_inn',
|
|
177
|
+
'ru_kpp',
|
|
178
|
+
'sa_vat',
|
|
179
|
+
'se_vat',
|
|
180
|
+
'sg_gst',
|
|
181
|
+
'sg_uen',
|
|
182
|
+
'si_tin',
|
|
183
|
+
'si_vat',
|
|
184
|
+
'sk_vat',
|
|
185
|
+
'sn_ninea',
|
|
186
|
+
'sr_fin',
|
|
187
|
+
'sv_nit',
|
|
188
|
+
'th_vat',
|
|
189
|
+
'tj_tin',
|
|
190
|
+
'tr_tin',
|
|
191
|
+
'tw_vat',
|
|
192
|
+
'tz_vat',
|
|
193
|
+
'ua_vat',
|
|
194
|
+
'ug_tin',
|
|
195
|
+
'us_ein',
|
|
196
|
+
'uy_ruc',
|
|
197
|
+
'uz_tin',
|
|
198
|
+
'uz_vat',
|
|
199
|
+
've_rif',
|
|
200
|
+
'vn_tin',
|
|
201
|
+
'xi_vat',
|
|
202
|
+
'za_vat',
|
|
203
|
+
'zm_tin',
|
|
204
|
+
'zw_tin',
|
|
205
|
+
''
|
|
206
|
+
]
|
|
83
207
|
}
|
|
84
208
|
},
|
|
85
|
-
required: [
|
|
209
|
+
required: [
|
|
210
|
+
'email',
|
|
211
|
+
'individual_name'
|
|
212
|
+
],
|
|
86
213
|
additionalProperties: false
|
|
87
214
|
};
|
|
88
215
|
export const BillingCreditsSchema = {
|
|
@@ -93,10 +220,25 @@ export const BillingCreditsSchema = {
|
|
|
93
220
|
description: 'Generated unique identifier of the promotional code.',
|
|
94
221
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
95
222
|
},
|
|
96
|
-
|
|
223
|
+
type: {
|
|
224
|
+
type: 'string',
|
|
225
|
+
description: 'Type of the promotional code.',
|
|
226
|
+
example: 'credit',
|
|
227
|
+
enum: [
|
|
228
|
+
'credit',
|
|
229
|
+
'discount'
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
date_start: {
|
|
97
233
|
type: 'string',
|
|
98
234
|
format: 'date-time',
|
|
99
|
-
description: '
|
|
235
|
+
description: 'Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.',
|
|
236
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
237
|
+
},
|
|
238
|
+
date_end: {
|
|
239
|
+
type: 'string',
|
|
240
|
+
format: 'date-time',
|
|
241
|
+
description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
|
|
100
242
|
example: '2023-12-20T13:53:32.000Z'
|
|
101
243
|
},
|
|
102
244
|
code: {
|
|
@@ -109,40 +251,25 @@ export const BillingCreditsSchema = {
|
|
|
109
251
|
description: 'Description of the promotional code.',
|
|
110
252
|
example: '10% off on all products'
|
|
111
253
|
},
|
|
112
|
-
|
|
113
|
-
type: 'array',
|
|
114
|
-
items: {
|
|
115
|
-
type: 'string'
|
|
116
|
-
},
|
|
117
|
-
description: 'List of product SKUs that the promotional code can be used on.',
|
|
118
|
-
example: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
|
|
119
|
-
},
|
|
120
|
-
type: {
|
|
121
|
-
type: 'string',
|
|
122
|
-
description: 'Type of the promotional code.',
|
|
123
|
-
example: 'credit',
|
|
124
|
-
enum: ['credit', 'discount']
|
|
125
|
-
},
|
|
126
|
-
value: {
|
|
254
|
+
value_total: {
|
|
127
255
|
type: 'number',
|
|
128
256
|
format: 'float',
|
|
129
|
-
description: '
|
|
257
|
+
description: 'Total value of the promotional code.',
|
|
130
258
|
example: 10
|
|
131
259
|
},
|
|
132
|
-
billing_period: {
|
|
133
|
-
type: 'string',
|
|
134
|
-
format: 'date-time',
|
|
135
|
-
description: 'Date of the billing cycle. An ISO 8601 date string in the UTC timezone.',
|
|
136
|
-
example: '2023-12-20T13:53:32.000Z'
|
|
137
|
-
},
|
|
138
260
|
value_remaining: {
|
|
139
261
|
type: 'number',
|
|
140
262
|
format: 'float',
|
|
141
|
-
description: '
|
|
142
|
-
example:
|
|
263
|
+
description: 'Remaining value of the promotional code.',
|
|
264
|
+
example: 8
|
|
143
265
|
}
|
|
144
266
|
},
|
|
145
|
-
required: [
|
|
267
|
+
required: [
|
|
268
|
+
'type',
|
|
269
|
+
'date_start',
|
|
270
|
+
'code',
|
|
271
|
+
'value_total'
|
|
272
|
+
],
|
|
146
273
|
additionalProperties: false
|
|
147
274
|
};
|
|
148
275
|
export const ChartCreateInputSchema = {
|
|
@@ -183,7 +310,13 @@ export const ChartCreateInputSchema = {
|
|
|
183
310
|
example: 'postgresql'
|
|
184
311
|
}
|
|
185
312
|
},
|
|
186
|
-
required: [
|
|
313
|
+
required: [
|
|
314
|
+
'values',
|
|
315
|
+
'version_channel',
|
|
316
|
+
'name',
|
|
317
|
+
'namespace',
|
|
318
|
+
'chart'
|
|
319
|
+
],
|
|
187
320
|
additionalProperties: false
|
|
188
321
|
};
|
|
189
322
|
export const ChartSchema = {
|
|
@@ -227,7 +360,22 @@ export const ChartSchema = {
|
|
|
227
360
|
type: 'string',
|
|
228
361
|
description: 'Status of the chart deployment.',
|
|
229
362
|
example: 'active',
|
|
230
|
-
enum: [
|
|
363
|
+
enum: [
|
|
364
|
+
'InstallSucceeded',
|
|
365
|
+
'InstallFailed',
|
|
366
|
+
'UpgradeSucceeded',
|
|
367
|
+
'UpgradeFailed',
|
|
368
|
+
'TestSucceeded',
|
|
369
|
+
'TestFailed',
|
|
370
|
+
'RollbackSucceeded',
|
|
371
|
+
'RollbackFailed',
|
|
372
|
+
'UninstallSucceeded',
|
|
373
|
+
'UninstallFailed',
|
|
374
|
+
'ArtifactFailed',
|
|
375
|
+
'DependencyNotReady',
|
|
376
|
+
'Progressing',
|
|
377
|
+
'SourceNotReady'
|
|
378
|
+
]
|
|
231
379
|
},
|
|
232
380
|
version_current: {
|
|
233
381
|
type: 'string',
|
|
@@ -250,7 +398,18 @@ export const ChartSchema = {
|
|
|
250
398
|
example: true
|
|
251
399
|
}
|
|
252
400
|
},
|
|
253
|
-
required: [
|
|
401
|
+
required: [
|
|
402
|
+
'values',
|
|
403
|
+
'version_channel',
|
|
404
|
+
'name',
|
|
405
|
+
'namespace',
|
|
406
|
+
'chart',
|
|
407
|
+
'status',
|
|
408
|
+
'version_current',
|
|
409
|
+
'created_at',
|
|
410
|
+
'updated_at',
|
|
411
|
+
'ready'
|
|
412
|
+
],
|
|
254
413
|
additionalProperties: false
|
|
255
414
|
};
|
|
256
415
|
export const ChartUpdateInputSchema = {
|
|
@@ -267,7 +426,10 @@ export const ChartUpdateInputSchema = {
|
|
|
267
426
|
example: '2.x.x-cfke.x'
|
|
268
427
|
}
|
|
269
428
|
},
|
|
270
|
-
required: [
|
|
429
|
+
required: [
|
|
430
|
+
'values',
|
|
431
|
+
'version_channel'
|
|
432
|
+
],
|
|
271
433
|
additionalProperties: false
|
|
272
434
|
};
|
|
273
435
|
export const ClusterCreateInputSchema = {
|
|
@@ -285,24 +447,41 @@ export const ClusterCreateInputSchema = {
|
|
|
285
447
|
type: 'string',
|
|
286
448
|
description: 'Tier of the cluster.',
|
|
287
449
|
example: 'pro',
|
|
288
|
-
enum: [
|
|
450
|
+
enum: [
|
|
451
|
+
'basic',
|
|
452
|
+
'pro'
|
|
453
|
+
]
|
|
289
454
|
},
|
|
290
455
|
region: {
|
|
291
456
|
type: 'string',
|
|
292
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.',
|
|
293
|
-
default: 'staging',
|
|
294
|
-
example: 'northamerica-central-
|
|
295
|
-
enum: [
|
|
457
|
+
description: 'Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
|
|
458
|
+
default: 'staging-1a',
|
|
459
|
+
example: 'northamerica-central-1a',
|
|
460
|
+
enum: [
|
|
461
|
+
'staging-1a',
|
|
462
|
+
'northamerica-central-1',
|
|
463
|
+
'europe-central-1a',
|
|
464
|
+
'northamerica-central-1a'
|
|
465
|
+
]
|
|
296
466
|
},
|
|
297
467
|
version_channel: {
|
|
298
468
|
type: 'string',
|
|
299
469
|
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
300
470
|
description: 'Version of the kubernetes cluster.',
|
|
301
471
|
default: '1.x.x-cfke.x',
|
|
302
|
-
example: '1.
|
|
472
|
+
example: '1.x.x-cfke.x',
|
|
473
|
+
enum: [
|
|
474
|
+
'1.x.x-cfke.x',
|
|
475
|
+
'1.31.x-cfke.x',
|
|
476
|
+
'1.32.x-cfke.x',
|
|
477
|
+
'1.33.x-cfke.x'
|
|
478
|
+
]
|
|
303
479
|
}
|
|
304
480
|
},
|
|
305
|
-
required: [
|
|
481
|
+
required: [
|
|
482
|
+
'name',
|
|
483
|
+
'tier'
|
|
484
|
+
],
|
|
306
485
|
additionalProperties: false
|
|
307
486
|
};
|
|
308
487
|
export const ClusterJoinInformationSchema = {
|
|
@@ -311,8 +490,7 @@ export const ClusterJoinInformationSchema = {
|
|
|
311
490
|
certificate_authority: {
|
|
312
491
|
type: 'string',
|
|
313
492
|
description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
|
|
314
|
-
example:
|
|
315
|
-
MIIC0DCCAbigAwIBAgI...`
|
|
493
|
+
example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
|
|
316
494
|
},
|
|
317
495
|
endpoint: {
|
|
318
496
|
type: 'string',
|
|
@@ -320,6 +498,11 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
320
498
|
description: 'Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.',
|
|
321
499
|
example: 'https://10.31.64.7:6443'
|
|
322
500
|
},
|
|
501
|
+
cluster_dns: {
|
|
502
|
+
type: 'string',
|
|
503
|
+
description: 'Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.',
|
|
504
|
+
example: '10.96.0.10'
|
|
505
|
+
},
|
|
323
506
|
auth_key: {
|
|
324
507
|
type: 'string',
|
|
325
508
|
description: 'Authentication key for the cluster.',
|
|
@@ -336,7 +519,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
336
519
|
kubernetes: {
|
|
337
520
|
type: 'string',
|
|
338
521
|
description: 'Kubernetes version of the cluster.',
|
|
339
|
-
example: '1.
|
|
522
|
+
example: '1.33.7'
|
|
340
523
|
},
|
|
341
524
|
tailscale: {
|
|
342
525
|
type: 'string',
|
|
@@ -354,7 +537,12 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
354
537
|
example: '565.0.0'
|
|
355
538
|
}
|
|
356
539
|
},
|
|
357
|
-
required: [
|
|
540
|
+
required: [
|
|
541
|
+
'kubernetes',
|
|
542
|
+
'tailscale',
|
|
543
|
+
'containerd',
|
|
544
|
+
'nvidia_driver'
|
|
545
|
+
],
|
|
358
546
|
additionalProperties: false,
|
|
359
547
|
description: 'Versions of the different components of the cluster.'
|
|
360
548
|
},
|
|
@@ -377,12 +565,24 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
377
565
|
example: '//iam.googleapis.com/projects/89014267864/locations/global/workloadIdentityPools/cfke/providers/oidc'
|
|
378
566
|
}
|
|
379
567
|
},
|
|
380
|
-
required: [
|
|
568
|
+
required: [
|
|
569
|
+
'metadata_url',
|
|
570
|
+
'aws_role_arn',
|
|
571
|
+
'gcp_workload_identity_provider'
|
|
572
|
+
],
|
|
381
573
|
additionalProperties: false,
|
|
382
|
-
description:
|
|
574
|
+
description: 'OIDC Information for hosts to access to third party API\'s.'
|
|
383
575
|
}
|
|
384
576
|
},
|
|
385
|
-
required: [
|
|
577
|
+
required: [
|
|
578
|
+
'certificate_authority',
|
|
579
|
+
'endpoint',
|
|
580
|
+
'cluster_dns',
|
|
581
|
+
'auth_key',
|
|
582
|
+
'bootstrap_token',
|
|
583
|
+
'versions',
|
|
584
|
+
'third_party_api_access_config'
|
|
585
|
+
],
|
|
386
586
|
additionalProperties: false
|
|
387
587
|
};
|
|
388
588
|
export const ClusterSchema = {
|
|
@@ -400,21 +600,22 @@ export const ClusterSchema = {
|
|
|
400
600
|
type: 'string',
|
|
401
601
|
description: 'Tier of the cluster.',
|
|
402
602
|
example: 'pro',
|
|
403
|
-
enum: [
|
|
603
|
+
enum: [
|
|
604
|
+
'basic',
|
|
605
|
+
'pro'
|
|
606
|
+
]
|
|
404
607
|
},
|
|
405
608
|
region: {
|
|
406
609
|
type: 'string',
|
|
407
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.',
|
|
408
|
-
default: 'staging',
|
|
409
|
-
example: 'northamerica-central-
|
|
410
|
-
enum: [
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
default: '1.x.x-cfke.x',
|
|
417
|
-
example: '1.29.x-cfke.x'
|
|
610
|
+
description: 'Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
|
|
611
|
+
default: 'staging-1a',
|
|
612
|
+
example: 'northamerica-central-1a',
|
|
613
|
+
enum: [
|
|
614
|
+
'staging-1a',
|
|
615
|
+
'northamerica-central-1',
|
|
616
|
+
'europe-central-1a',
|
|
617
|
+
'northamerica-central-1a'
|
|
618
|
+
]
|
|
418
619
|
},
|
|
419
620
|
id: {
|
|
420
621
|
type: 'string',
|
|
@@ -426,7 +627,15 @@ export const ClusterSchema = {
|
|
|
426
627
|
type: 'string',
|
|
427
628
|
description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
|
|
428
629
|
example: 'active',
|
|
429
|
-
enum: [
|
|
630
|
+
enum: [
|
|
631
|
+
'active',
|
|
632
|
+
'disabled',
|
|
633
|
+
'deleted',
|
|
634
|
+
'creating',
|
|
635
|
+
'deployed',
|
|
636
|
+
'failed',
|
|
637
|
+
'updating'
|
|
638
|
+
]
|
|
430
639
|
},
|
|
431
640
|
endpoint: {
|
|
432
641
|
anyOf: [
|
|
@@ -438,20 +647,21 @@ export const ClusterSchema = {
|
|
|
438
647
|
},
|
|
439
648
|
{
|
|
440
649
|
type: 'string',
|
|
441
|
-
enum: [
|
|
650
|
+
enum: [
|
|
651
|
+
''
|
|
652
|
+
]
|
|
442
653
|
}
|
|
443
654
|
]
|
|
444
655
|
},
|
|
445
656
|
certificate_ca: {
|
|
446
657
|
type: 'string',
|
|
447
658
|
description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
|
|
448
|
-
example:
|
|
449
|
-
MIIC0DCCAbigAwIBAgI...`
|
|
659
|
+
example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
|
|
450
660
|
},
|
|
451
661
|
version_current: {
|
|
452
662
|
type: 'string',
|
|
453
663
|
description: 'Current version of the cluster.',
|
|
454
|
-
example: '1.
|
|
664
|
+
example: '1.33.7-cfke.264'
|
|
455
665
|
},
|
|
456
666
|
created_at: {
|
|
457
667
|
type: 'string',
|
|
@@ -467,9 +677,20 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
467
677
|
type: 'boolean',
|
|
468
678
|
description: 'Indicates if the cluster is ready to be used.',
|
|
469
679
|
example: true
|
|
680
|
+
},
|
|
681
|
+
version_channel: {
|
|
682
|
+
type: 'string',
|
|
683
|
+
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
684
|
+
description: 'Version of the kubernetes cluster.',
|
|
685
|
+
example: '1.x.x-cfke.x'
|
|
470
686
|
}
|
|
471
687
|
},
|
|
472
|
-
required: [
|
|
688
|
+
required: [
|
|
689
|
+
'name',
|
|
690
|
+
'tier',
|
|
691
|
+
'id',
|
|
692
|
+
'status'
|
|
693
|
+
],
|
|
473
694
|
additionalProperties: false
|
|
474
695
|
};
|
|
475
696
|
export const ClusterUpdateInputSchema = {
|
|
@@ -487,16 +708,21 @@ export const ClusterUpdateInputSchema = {
|
|
|
487
708
|
type: 'string',
|
|
488
709
|
description: 'Tier of the cluster.',
|
|
489
710
|
example: 'pro',
|
|
490
|
-
enum: [
|
|
711
|
+
enum: [
|
|
712
|
+
'basic',
|
|
713
|
+
'pro'
|
|
714
|
+
]
|
|
491
715
|
},
|
|
492
716
|
version_channel: {
|
|
493
717
|
type: 'string',
|
|
494
718
|
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
495
719
|
description: 'Version of the kubernetes cluster.',
|
|
496
|
-
example: '1.
|
|
720
|
+
example: '1.x.x-cfke.x'
|
|
497
721
|
}
|
|
498
722
|
},
|
|
499
|
-
required: [
|
|
723
|
+
required: [
|
|
724
|
+
'tier'
|
|
725
|
+
],
|
|
500
726
|
additionalProperties: false
|
|
501
727
|
};
|
|
502
728
|
export const FleetCreateInputSchema = {
|
|
@@ -508,11 +734,10 @@ export const FleetCreateInputSchema = {
|
|
|
508
734
|
cpu: {
|
|
509
735
|
type: 'number',
|
|
510
736
|
format: 'float',
|
|
511
|
-
minimum:
|
|
737
|
+
minimum: 8,
|
|
512
738
|
description: 'CPU limit in cores.'
|
|
513
739
|
}
|
|
514
740
|
},
|
|
515
|
-
required: ['cpu'],
|
|
516
741
|
additionalProperties: false,
|
|
517
742
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
518
743
|
},
|
|
@@ -528,7 +753,9 @@ export const FleetCreateInputSchema = {
|
|
|
528
753
|
description: 'Project GCP Project id to deploy instances into'
|
|
529
754
|
}
|
|
530
755
|
},
|
|
531
|
-
required: [
|
|
756
|
+
required: [
|
|
757
|
+
'project'
|
|
758
|
+
],
|
|
532
759
|
additionalProperties: false
|
|
533
760
|
},
|
|
534
761
|
hetzner: {
|
|
@@ -540,10 +767,9 @@ export const FleetCreateInputSchema = {
|
|
|
540
767
|
},
|
|
541
768
|
apiKey: {
|
|
542
769
|
type: 'string',
|
|
543
|
-
description: 'Hetzner Cloud API key with read / write access'
|
|
770
|
+
description: 'Hetzner Cloud API key with read / write access. On update, omit this field to keep the existing value.'
|
|
544
771
|
}
|
|
545
772
|
},
|
|
546
|
-
required: ['apiKey'],
|
|
547
773
|
additionalProperties: false
|
|
548
774
|
},
|
|
549
775
|
aws: {
|
|
@@ -558,9 +784,289 @@ export const FleetCreateInputSchema = {
|
|
|
558
784
|
description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
|
|
559
785
|
}
|
|
560
786
|
},
|
|
561
|
-
required: [
|
|
787
|
+
required: [
|
|
788
|
+
'controllerRoleArn'
|
|
789
|
+
],
|
|
562
790
|
additionalProperties: false
|
|
563
791
|
},
|
|
792
|
+
constraints: {
|
|
793
|
+
type: 'object',
|
|
794
|
+
properties: {
|
|
795
|
+
'karpenter.sh/capacity-type': {
|
|
796
|
+
type: 'array',
|
|
797
|
+
items: {
|
|
798
|
+
type: 'string',
|
|
799
|
+
enum: [
|
|
800
|
+
'on-demand',
|
|
801
|
+
'spot'
|
|
802
|
+
]
|
|
803
|
+
},
|
|
804
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.'
|
|
805
|
+
},
|
|
806
|
+
'kubernetes.io/arch': {
|
|
807
|
+
type: 'array',
|
|
808
|
+
items: {
|
|
809
|
+
type: 'string',
|
|
810
|
+
enum: [
|
|
811
|
+
'amd64',
|
|
812
|
+
'arm64'
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
description: 'Allowed values for `kubernetes.io/arch`.'
|
|
816
|
+
},
|
|
817
|
+
'cfke.io/instance-family': {
|
|
818
|
+
type: 'array',
|
|
819
|
+
items: {
|
|
820
|
+
type: 'string',
|
|
821
|
+
enum: [
|
|
822
|
+
'a1',
|
|
823
|
+
'a2',
|
|
824
|
+
'a3',
|
|
825
|
+
'a4',
|
|
826
|
+
'c1',
|
|
827
|
+
'c2',
|
|
828
|
+
'c2d',
|
|
829
|
+
'c3',
|
|
830
|
+
'c3d',
|
|
831
|
+
'c4',
|
|
832
|
+
'c4a',
|
|
833
|
+
'c4d',
|
|
834
|
+
'c5',
|
|
835
|
+
'c5a',
|
|
836
|
+
'c5ad',
|
|
837
|
+
'c5d',
|
|
838
|
+
'c5n',
|
|
839
|
+
'c6a',
|
|
840
|
+
'c6g',
|
|
841
|
+
'c6gd',
|
|
842
|
+
'c6gn',
|
|
843
|
+
'c6i',
|
|
844
|
+
'c6id',
|
|
845
|
+
'c6in',
|
|
846
|
+
'c7a',
|
|
847
|
+
'c7g',
|
|
848
|
+
'c7gd',
|
|
849
|
+
'c7gn',
|
|
850
|
+
'c7i',
|
|
851
|
+
'c7i-flex',
|
|
852
|
+
'c8g',
|
|
853
|
+
'c8gd',
|
|
854
|
+
'cax',
|
|
855
|
+
'ccx',
|
|
856
|
+
'cpx',
|
|
857
|
+
'cx',
|
|
858
|
+
'd2',
|
|
859
|
+
'd3',
|
|
860
|
+
'd3en',
|
|
861
|
+
'dl1',
|
|
862
|
+
'dl2q',
|
|
863
|
+
'e2',
|
|
864
|
+
'f1',
|
|
865
|
+
'f2',
|
|
866
|
+
'g1',
|
|
867
|
+
'g2',
|
|
868
|
+
'g4ad',
|
|
869
|
+
'g4dn',
|
|
870
|
+
'g5',
|
|
871
|
+
'g5g',
|
|
872
|
+
'g6',
|
|
873
|
+
'g6e',
|
|
874
|
+
'gr6',
|
|
875
|
+
'h1',
|
|
876
|
+
'h3',
|
|
877
|
+
'hpc6a',
|
|
878
|
+
'hpc6id',
|
|
879
|
+
'hpc7a',
|
|
880
|
+
'hpc7g',
|
|
881
|
+
'i2',
|
|
882
|
+
'i3',
|
|
883
|
+
'i3en',
|
|
884
|
+
'i4g',
|
|
885
|
+
'i4i',
|
|
886
|
+
'i7i',
|
|
887
|
+
'i7ie',
|
|
888
|
+
'i8g',
|
|
889
|
+
'im4gn',
|
|
890
|
+
'inf1',
|
|
891
|
+
'inf2',
|
|
892
|
+
'is4gen',
|
|
893
|
+
'm1',
|
|
894
|
+
'm2',
|
|
895
|
+
'm3',
|
|
896
|
+
'm4',
|
|
897
|
+
'm5',
|
|
898
|
+
'm5a',
|
|
899
|
+
'm5ad',
|
|
900
|
+
'm5d',
|
|
901
|
+
'm5dn',
|
|
902
|
+
'm5n',
|
|
903
|
+
'm5zn',
|
|
904
|
+
'm6a',
|
|
905
|
+
'm6g',
|
|
906
|
+
'm6gd',
|
|
907
|
+
'm6i',
|
|
908
|
+
'm6id',
|
|
909
|
+
'm6idn',
|
|
910
|
+
'm6in',
|
|
911
|
+
'm7a',
|
|
912
|
+
'm7g',
|
|
913
|
+
'm7gd',
|
|
914
|
+
'm7i',
|
|
915
|
+
'm7i-flex',
|
|
916
|
+
'm8g',
|
|
917
|
+
'm8gd',
|
|
918
|
+
'n1',
|
|
919
|
+
'n2',
|
|
920
|
+
'n2d',
|
|
921
|
+
'n4',
|
|
922
|
+
'p3',
|
|
923
|
+
'p3dn',
|
|
924
|
+
'p4d',
|
|
925
|
+
'p4de',
|
|
926
|
+
'p5',
|
|
927
|
+
'p5e',
|
|
928
|
+
'p5en',
|
|
929
|
+
'p6-b200',
|
|
930
|
+
'r3',
|
|
931
|
+
'r4',
|
|
932
|
+
'r5',
|
|
933
|
+
'r5a',
|
|
934
|
+
'r5ad',
|
|
935
|
+
'r5b',
|
|
936
|
+
'r5d',
|
|
937
|
+
'r5dn',
|
|
938
|
+
'r5n',
|
|
939
|
+
'r6a',
|
|
940
|
+
'r6g',
|
|
941
|
+
'r6gd',
|
|
942
|
+
'r6i',
|
|
943
|
+
'r6id',
|
|
944
|
+
'r6idn',
|
|
945
|
+
'r6in',
|
|
946
|
+
'r7a',
|
|
947
|
+
'r7g',
|
|
948
|
+
'r7gd',
|
|
949
|
+
'r7i',
|
|
950
|
+
'r7iz',
|
|
951
|
+
'r8g',
|
|
952
|
+
'r8gd',
|
|
953
|
+
't2',
|
|
954
|
+
't2a',
|
|
955
|
+
't2d',
|
|
956
|
+
't3',
|
|
957
|
+
't3a',
|
|
958
|
+
't4g',
|
|
959
|
+
'trn1',
|
|
960
|
+
'trn1n',
|
|
961
|
+
'u-3tb1',
|
|
962
|
+
'u-6tb1',
|
|
963
|
+
'u7i-12tb',
|
|
964
|
+
'u7i-6tb',
|
|
965
|
+
'u7i-8tb',
|
|
966
|
+
'u7in-16tb',
|
|
967
|
+
'u7in-24tb',
|
|
968
|
+
'u7in-32tb',
|
|
969
|
+
'vt1',
|
|
970
|
+
'x1',
|
|
971
|
+
'x1e',
|
|
972
|
+
'x2gd',
|
|
973
|
+
'x2idn',
|
|
974
|
+
'x2iedn',
|
|
975
|
+
'x2iezn',
|
|
976
|
+
'x4',
|
|
977
|
+
'x8g',
|
|
978
|
+
'z1d',
|
|
979
|
+
'z3'
|
|
980
|
+
]
|
|
981
|
+
},
|
|
982
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
983
|
+
},
|
|
984
|
+
'topology.kubernetes.io/region': {
|
|
985
|
+
type: 'array',
|
|
986
|
+
items: {
|
|
987
|
+
type: 'string',
|
|
988
|
+
enum: [
|
|
989
|
+
'africa-south1',
|
|
990
|
+
'ap-northeast-1',
|
|
991
|
+
'ap-northeast-2',
|
|
992
|
+
'ap-northeast-3',
|
|
993
|
+
'ap-south-1',
|
|
994
|
+
'ap-southeast-1',
|
|
995
|
+
'ap-southeast-2',
|
|
996
|
+
'ash',
|
|
997
|
+
'asia-east1',
|
|
998
|
+
'asia-east2',
|
|
999
|
+
'asia-northeast1',
|
|
1000
|
+
'asia-northeast2',
|
|
1001
|
+
'asia-northeast3',
|
|
1002
|
+
'asia-south1',
|
|
1003
|
+
'asia-south2',
|
|
1004
|
+
'asia-southeast1',
|
|
1005
|
+
'asia-southeast2',
|
|
1006
|
+
'australia-southeast1',
|
|
1007
|
+
'australia-southeast2',
|
|
1008
|
+
'ca-central-1',
|
|
1009
|
+
'eu-central-1',
|
|
1010
|
+
'eu-central-2',
|
|
1011
|
+
'eu-north-1',
|
|
1012
|
+
'eu-west-1',
|
|
1013
|
+
'eu-west-2',
|
|
1014
|
+
'eu-west-3',
|
|
1015
|
+
'europe-central2',
|
|
1016
|
+
'europe-north1',
|
|
1017
|
+
'europe-southwest1',
|
|
1018
|
+
'europe-west1',
|
|
1019
|
+
'europe-west10',
|
|
1020
|
+
'europe-west12',
|
|
1021
|
+
'europe-west2',
|
|
1022
|
+
'europe-west3',
|
|
1023
|
+
'europe-west4',
|
|
1024
|
+
'europe-west6',
|
|
1025
|
+
'europe-west8',
|
|
1026
|
+
'europe-west9',
|
|
1027
|
+
'fsn1',
|
|
1028
|
+
'hel1',
|
|
1029
|
+
'hil',
|
|
1030
|
+
'me-central1',
|
|
1031
|
+
'me-central2',
|
|
1032
|
+
'me-west1',
|
|
1033
|
+
'nbg1',
|
|
1034
|
+
'northamerica-northeast1',
|
|
1035
|
+
'northamerica-northeast2',
|
|
1036
|
+
'sa-east-1',
|
|
1037
|
+
'sin',
|
|
1038
|
+
'southamerica-east1',
|
|
1039
|
+
'southamerica-west1',
|
|
1040
|
+
'us-central1',
|
|
1041
|
+
'us-east-1',
|
|
1042
|
+
'us-east-2',
|
|
1043
|
+
'us-east1',
|
|
1044
|
+
'us-east4',
|
|
1045
|
+
'us-east5',
|
|
1046
|
+
'us-south1',
|
|
1047
|
+
'us-west-1',
|
|
1048
|
+
'us-west-2',
|
|
1049
|
+
'us-west1',
|
|
1050
|
+
'us-west2',
|
|
1051
|
+
'us-west3',
|
|
1052
|
+
'us-west4'
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
additionalProperties: false,
|
|
1059
|
+
description: 'Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together. Omit a field to place no restriction on that key.'
|
|
1060
|
+
},
|
|
1061
|
+
scalingProfile: {
|
|
1062
|
+
type: 'string',
|
|
1063
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1064
|
+
example: 'conservative',
|
|
1065
|
+
enum: [
|
|
1066
|
+
'aggressive',
|
|
1067
|
+
'conservative'
|
|
1068
|
+
]
|
|
1069
|
+
},
|
|
564
1070
|
id: {
|
|
565
1071
|
type: 'string',
|
|
566
1072
|
maxLength: 63,
|
|
@@ -570,7 +1076,9 @@ export const FleetCreateInputSchema = {
|
|
|
570
1076
|
example: 'new-clouds-fleet'
|
|
571
1077
|
}
|
|
572
1078
|
},
|
|
573
|
-
required: [
|
|
1079
|
+
required: [
|
|
1080
|
+
'id'
|
|
1081
|
+
],
|
|
574
1082
|
additionalProperties: false
|
|
575
1083
|
};
|
|
576
1084
|
export const FleetSchema = {
|
|
@@ -582,11 +1090,10 @@ export const FleetSchema = {
|
|
|
582
1090
|
cpu: {
|
|
583
1091
|
type: 'number',
|
|
584
1092
|
format: 'float',
|
|
585
|
-
minimum:
|
|
1093
|
+
minimum: 8,
|
|
586
1094
|
description: 'CPU limit in cores.'
|
|
587
1095
|
}
|
|
588
1096
|
},
|
|
589
|
-
required: ['cpu'],
|
|
590
1097
|
additionalProperties: false,
|
|
591
1098
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
592
1099
|
},
|
|
@@ -602,7 +1109,9 @@ export const FleetSchema = {
|
|
|
602
1109
|
description: 'Project GCP Project id to deploy instances into'
|
|
603
1110
|
}
|
|
604
1111
|
},
|
|
605
|
-
required: [
|
|
1112
|
+
required: [
|
|
1113
|
+
'project'
|
|
1114
|
+
],
|
|
606
1115
|
additionalProperties: false
|
|
607
1116
|
},
|
|
608
1117
|
hetzner: {
|
|
@@ -614,10 +1123,9 @@ export const FleetSchema = {
|
|
|
614
1123
|
},
|
|
615
1124
|
apiKey: {
|
|
616
1125
|
type: 'string',
|
|
617
|
-
description: 'Hetzner Cloud API key with read / write access'
|
|
1126
|
+
description: 'Hetzner Cloud API key with read / write access. On update, omit this field to keep the existing value.'
|
|
618
1127
|
}
|
|
619
1128
|
},
|
|
620
|
-
required: ['apiKey'],
|
|
621
1129
|
additionalProperties: false
|
|
622
1130
|
},
|
|
623
1131
|
aws: {
|
|
@@ -632,9 +1140,289 @@ export const FleetSchema = {
|
|
|
632
1140
|
description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
|
|
633
1141
|
}
|
|
634
1142
|
},
|
|
635
|
-
required: [
|
|
1143
|
+
required: [
|
|
1144
|
+
'controllerRoleArn'
|
|
1145
|
+
],
|
|
636
1146
|
additionalProperties: false
|
|
637
1147
|
},
|
|
1148
|
+
constraints: {
|
|
1149
|
+
type: 'object',
|
|
1150
|
+
properties: {
|
|
1151
|
+
'karpenter.sh/capacity-type': {
|
|
1152
|
+
type: 'array',
|
|
1153
|
+
items: {
|
|
1154
|
+
type: 'string',
|
|
1155
|
+
enum: [
|
|
1156
|
+
'on-demand',
|
|
1157
|
+
'spot'
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.'
|
|
1161
|
+
},
|
|
1162
|
+
'kubernetes.io/arch': {
|
|
1163
|
+
type: 'array',
|
|
1164
|
+
items: {
|
|
1165
|
+
type: 'string',
|
|
1166
|
+
enum: [
|
|
1167
|
+
'amd64',
|
|
1168
|
+
'arm64'
|
|
1169
|
+
]
|
|
1170
|
+
},
|
|
1171
|
+
description: 'Allowed values for `kubernetes.io/arch`.'
|
|
1172
|
+
},
|
|
1173
|
+
'cfke.io/instance-family': {
|
|
1174
|
+
type: 'array',
|
|
1175
|
+
items: {
|
|
1176
|
+
type: 'string',
|
|
1177
|
+
enum: [
|
|
1178
|
+
'a1',
|
|
1179
|
+
'a2',
|
|
1180
|
+
'a3',
|
|
1181
|
+
'a4',
|
|
1182
|
+
'c1',
|
|
1183
|
+
'c2',
|
|
1184
|
+
'c2d',
|
|
1185
|
+
'c3',
|
|
1186
|
+
'c3d',
|
|
1187
|
+
'c4',
|
|
1188
|
+
'c4a',
|
|
1189
|
+
'c4d',
|
|
1190
|
+
'c5',
|
|
1191
|
+
'c5a',
|
|
1192
|
+
'c5ad',
|
|
1193
|
+
'c5d',
|
|
1194
|
+
'c5n',
|
|
1195
|
+
'c6a',
|
|
1196
|
+
'c6g',
|
|
1197
|
+
'c6gd',
|
|
1198
|
+
'c6gn',
|
|
1199
|
+
'c6i',
|
|
1200
|
+
'c6id',
|
|
1201
|
+
'c6in',
|
|
1202
|
+
'c7a',
|
|
1203
|
+
'c7g',
|
|
1204
|
+
'c7gd',
|
|
1205
|
+
'c7gn',
|
|
1206
|
+
'c7i',
|
|
1207
|
+
'c7i-flex',
|
|
1208
|
+
'c8g',
|
|
1209
|
+
'c8gd',
|
|
1210
|
+
'cax',
|
|
1211
|
+
'ccx',
|
|
1212
|
+
'cpx',
|
|
1213
|
+
'cx',
|
|
1214
|
+
'd2',
|
|
1215
|
+
'd3',
|
|
1216
|
+
'd3en',
|
|
1217
|
+
'dl1',
|
|
1218
|
+
'dl2q',
|
|
1219
|
+
'e2',
|
|
1220
|
+
'f1',
|
|
1221
|
+
'f2',
|
|
1222
|
+
'g1',
|
|
1223
|
+
'g2',
|
|
1224
|
+
'g4ad',
|
|
1225
|
+
'g4dn',
|
|
1226
|
+
'g5',
|
|
1227
|
+
'g5g',
|
|
1228
|
+
'g6',
|
|
1229
|
+
'g6e',
|
|
1230
|
+
'gr6',
|
|
1231
|
+
'h1',
|
|
1232
|
+
'h3',
|
|
1233
|
+
'hpc6a',
|
|
1234
|
+
'hpc6id',
|
|
1235
|
+
'hpc7a',
|
|
1236
|
+
'hpc7g',
|
|
1237
|
+
'i2',
|
|
1238
|
+
'i3',
|
|
1239
|
+
'i3en',
|
|
1240
|
+
'i4g',
|
|
1241
|
+
'i4i',
|
|
1242
|
+
'i7i',
|
|
1243
|
+
'i7ie',
|
|
1244
|
+
'i8g',
|
|
1245
|
+
'im4gn',
|
|
1246
|
+
'inf1',
|
|
1247
|
+
'inf2',
|
|
1248
|
+
'is4gen',
|
|
1249
|
+
'm1',
|
|
1250
|
+
'm2',
|
|
1251
|
+
'm3',
|
|
1252
|
+
'm4',
|
|
1253
|
+
'm5',
|
|
1254
|
+
'm5a',
|
|
1255
|
+
'm5ad',
|
|
1256
|
+
'm5d',
|
|
1257
|
+
'm5dn',
|
|
1258
|
+
'm5n',
|
|
1259
|
+
'm5zn',
|
|
1260
|
+
'm6a',
|
|
1261
|
+
'm6g',
|
|
1262
|
+
'm6gd',
|
|
1263
|
+
'm6i',
|
|
1264
|
+
'm6id',
|
|
1265
|
+
'm6idn',
|
|
1266
|
+
'm6in',
|
|
1267
|
+
'm7a',
|
|
1268
|
+
'm7g',
|
|
1269
|
+
'm7gd',
|
|
1270
|
+
'm7i',
|
|
1271
|
+
'm7i-flex',
|
|
1272
|
+
'm8g',
|
|
1273
|
+
'm8gd',
|
|
1274
|
+
'n1',
|
|
1275
|
+
'n2',
|
|
1276
|
+
'n2d',
|
|
1277
|
+
'n4',
|
|
1278
|
+
'p3',
|
|
1279
|
+
'p3dn',
|
|
1280
|
+
'p4d',
|
|
1281
|
+
'p4de',
|
|
1282
|
+
'p5',
|
|
1283
|
+
'p5e',
|
|
1284
|
+
'p5en',
|
|
1285
|
+
'p6-b200',
|
|
1286
|
+
'r3',
|
|
1287
|
+
'r4',
|
|
1288
|
+
'r5',
|
|
1289
|
+
'r5a',
|
|
1290
|
+
'r5ad',
|
|
1291
|
+
'r5b',
|
|
1292
|
+
'r5d',
|
|
1293
|
+
'r5dn',
|
|
1294
|
+
'r5n',
|
|
1295
|
+
'r6a',
|
|
1296
|
+
'r6g',
|
|
1297
|
+
'r6gd',
|
|
1298
|
+
'r6i',
|
|
1299
|
+
'r6id',
|
|
1300
|
+
'r6idn',
|
|
1301
|
+
'r6in',
|
|
1302
|
+
'r7a',
|
|
1303
|
+
'r7g',
|
|
1304
|
+
'r7gd',
|
|
1305
|
+
'r7i',
|
|
1306
|
+
'r7iz',
|
|
1307
|
+
'r8g',
|
|
1308
|
+
'r8gd',
|
|
1309
|
+
't2',
|
|
1310
|
+
't2a',
|
|
1311
|
+
't2d',
|
|
1312
|
+
't3',
|
|
1313
|
+
't3a',
|
|
1314
|
+
't4g',
|
|
1315
|
+
'trn1',
|
|
1316
|
+
'trn1n',
|
|
1317
|
+
'u-3tb1',
|
|
1318
|
+
'u-6tb1',
|
|
1319
|
+
'u7i-12tb',
|
|
1320
|
+
'u7i-6tb',
|
|
1321
|
+
'u7i-8tb',
|
|
1322
|
+
'u7in-16tb',
|
|
1323
|
+
'u7in-24tb',
|
|
1324
|
+
'u7in-32tb',
|
|
1325
|
+
'vt1',
|
|
1326
|
+
'x1',
|
|
1327
|
+
'x1e',
|
|
1328
|
+
'x2gd',
|
|
1329
|
+
'x2idn',
|
|
1330
|
+
'x2iedn',
|
|
1331
|
+
'x2iezn',
|
|
1332
|
+
'x4',
|
|
1333
|
+
'x8g',
|
|
1334
|
+
'z1d',
|
|
1335
|
+
'z3'
|
|
1336
|
+
]
|
|
1337
|
+
},
|
|
1338
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
1339
|
+
},
|
|
1340
|
+
'topology.kubernetes.io/region': {
|
|
1341
|
+
type: 'array',
|
|
1342
|
+
items: {
|
|
1343
|
+
type: 'string',
|
|
1344
|
+
enum: [
|
|
1345
|
+
'africa-south1',
|
|
1346
|
+
'ap-northeast-1',
|
|
1347
|
+
'ap-northeast-2',
|
|
1348
|
+
'ap-northeast-3',
|
|
1349
|
+
'ap-south-1',
|
|
1350
|
+
'ap-southeast-1',
|
|
1351
|
+
'ap-southeast-2',
|
|
1352
|
+
'ash',
|
|
1353
|
+
'asia-east1',
|
|
1354
|
+
'asia-east2',
|
|
1355
|
+
'asia-northeast1',
|
|
1356
|
+
'asia-northeast2',
|
|
1357
|
+
'asia-northeast3',
|
|
1358
|
+
'asia-south1',
|
|
1359
|
+
'asia-south2',
|
|
1360
|
+
'asia-southeast1',
|
|
1361
|
+
'asia-southeast2',
|
|
1362
|
+
'australia-southeast1',
|
|
1363
|
+
'australia-southeast2',
|
|
1364
|
+
'ca-central-1',
|
|
1365
|
+
'eu-central-1',
|
|
1366
|
+
'eu-central-2',
|
|
1367
|
+
'eu-north-1',
|
|
1368
|
+
'eu-west-1',
|
|
1369
|
+
'eu-west-2',
|
|
1370
|
+
'eu-west-3',
|
|
1371
|
+
'europe-central2',
|
|
1372
|
+
'europe-north1',
|
|
1373
|
+
'europe-southwest1',
|
|
1374
|
+
'europe-west1',
|
|
1375
|
+
'europe-west10',
|
|
1376
|
+
'europe-west12',
|
|
1377
|
+
'europe-west2',
|
|
1378
|
+
'europe-west3',
|
|
1379
|
+
'europe-west4',
|
|
1380
|
+
'europe-west6',
|
|
1381
|
+
'europe-west8',
|
|
1382
|
+
'europe-west9',
|
|
1383
|
+
'fsn1',
|
|
1384
|
+
'hel1',
|
|
1385
|
+
'hil',
|
|
1386
|
+
'me-central1',
|
|
1387
|
+
'me-central2',
|
|
1388
|
+
'me-west1',
|
|
1389
|
+
'nbg1',
|
|
1390
|
+
'northamerica-northeast1',
|
|
1391
|
+
'northamerica-northeast2',
|
|
1392
|
+
'sa-east-1',
|
|
1393
|
+
'sin',
|
|
1394
|
+
'southamerica-east1',
|
|
1395
|
+
'southamerica-west1',
|
|
1396
|
+
'us-central1',
|
|
1397
|
+
'us-east-1',
|
|
1398
|
+
'us-east-2',
|
|
1399
|
+
'us-east1',
|
|
1400
|
+
'us-east4',
|
|
1401
|
+
'us-east5',
|
|
1402
|
+
'us-south1',
|
|
1403
|
+
'us-west-1',
|
|
1404
|
+
'us-west-2',
|
|
1405
|
+
'us-west1',
|
|
1406
|
+
'us-west2',
|
|
1407
|
+
'us-west3',
|
|
1408
|
+
'us-west4'
|
|
1409
|
+
]
|
|
1410
|
+
},
|
|
1411
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1414
|
+
additionalProperties: false,
|
|
1415
|
+
description: 'Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together. Omit a field to place no restriction on that key.'
|
|
1416
|
+
},
|
|
1417
|
+
scalingProfile: {
|
|
1418
|
+
type: 'string',
|
|
1419
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1420
|
+
example: 'conservative',
|
|
1421
|
+
enum: [
|
|
1422
|
+
'aggressive',
|
|
1423
|
+
'conservative'
|
|
1424
|
+
]
|
|
1425
|
+
},
|
|
638
1426
|
id: {
|
|
639
1427
|
type: 'string',
|
|
640
1428
|
maxLength: 63,
|
|
@@ -644,7 +1432,9 @@ export const FleetSchema = {
|
|
|
644
1432
|
example: 'new-clouds-fleet'
|
|
645
1433
|
}
|
|
646
1434
|
},
|
|
647
|
-
required: [
|
|
1435
|
+
required: [
|
|
1436
|
+
'id'
|
|
1437
|
+
],
|
|
648
1438
|
additionalProperties: false
|
|
649
1439
|
};
|
|
650
1440
|
export const FleetUpdateInputSchema = {
|
|
@@ -656,11 +1446,10 @@ export const FleetUpdateInputSchema = {
|
|
|
656
1446
|
cpu: {
|
|
657
1447
|
type: 'number',
|
|
658
1448
|
format: 'float',
|
|
659
|
-
minimum:
|
|
1449
|
+
minimum: 8,
|
|
660
1450
|
description: 'CPU limit in cores.'
|
|
661
1451
|
}
|
|
662
1452
|
},
|
|
663
|
-
required: ['cpu'],
|
|
664
1453
|
additionalProperties: false,
|
|
665
1454
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
666
1455
|
},
|
|
@@ -676,7 +1465,9 @@ export const FleetUpdateInputSchema = {
|
|
|
676
1465
|
description: 'Project GCP Project id to deploy instances into'
|
|
677
1466
|
}
|
|
678
1467
|
},
|
|
679
|
-
required: [
|
|
1468
|
+
required: [
|
|
1469
|
+
'project'
|
|
1470
|
+
],
|
|
680
1471
|
additionalProperties: false
|
|
681
1472
|
},
|
|
682
1473
|
hetzner: {
|
|
@@ -688,10 +1479,9 @@ export const FleetUpdateInputSchema = {
|
|
|
688
1479
|
},
|
|
689
1480
|
apiKey: {
|
|
690
1481
|
type: 'string',
|
|
691
|
-
description: 'Hetzner Cloud API key with read / write access'
|
|
1482
|
+
description: 'Hetzner Cloud API key with read / write access. On update, omit this field to keep the existing value.'
|
|
692
1483
|
}
|
|
693
1484
|
},
|
|
694
|
-
required: ['apiKey'],
|
|
695
1485
|
additionalProperties: false
|
|
696
1486
|
},
|
|
697
1487
|
aws: {
|
|
@@ -706,8 +1496,288 @@ export const FleetUpdateInputSchema = {
|
|
|
706
1496
|
description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
|
|
707
1497
|
}
|
|
708
1498
|
},
|
|
709
|
-
required: [
|
|
1499
|
+
required: [
|
|
1500
|
+
'controllerRoleArn'
|
|
1501
|
+
],
|
|
710
1502
|
additionalProperties: false
|
|
1503
|
+
},
|
|
1504
|
+
constraints: {
|
|
1505
|
+
type: 'object',
|
|
1506
|
+
properties: {
|
|
1507
|
+
'karpenter.sh/capacity-type': {
|
|
1508
|
+
type: 'array',
|
|
1509
|
+
items: {
|
|
1510
|
+
type: 'string',
|
|
1511
|
+
enum: [
|
|
1512
|
+
'on-demand',
|
|
1513
|
+
'spot'
|
|
1514
|
+
]
|
|
1515
|
+
},
|
|
1516
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.'
|
|
1517
|
+
},
|
|
1518
|
+
'kubernetes.io/arch': {
|
|
1519
|
+
type: 'array',
|
|
1520
|
+
items: {
|
|
1521
|
+
type: 'string',
|
|
1522
|
+
enum: [
|
|
1523
|
+
'amd64',
|
|
1524
|
+
'arm64'
|
|
1525
|
+
]
|
|
1526
|
+
},
|
|
1527
|
+
description: 'Allowed values for `kubernetes.io/arch`.'
|
|
1528
|
+
},
|
|
1529
|
+
'cfke.io/instance-family': {
|
|
1530
|
+
type: 'array',
|
|
1531
|
+
items: {
|
|
1532
|
+
type: 'string',
|
|
1533
|
+
enum: [
|
|
1534
|
+
'a1',
|
|
1535
|
+
'a2',
|
|
1536
|
+
'a3',
|
|
1537
|
+
'a4',
|
|
1538
|
+
'c1',
|
|
1539
|
+
'c2',
|
|
1540
|
+
'c2d',
|
|
1541
|
+
'c3',
|
|
1542
|
+
'c3d',
|
|
1543
|
+
'c4',
|
|
1544
|
+
'c4a',
|
|
1545
|
+
'c4d',
|
|
1546
|
+
'c5',
|
|
1547
|
+
'c5a',
|
|
1548
|
+
'c5ad',
|
|
1549
|
+
'c5d',
|
|
1550
|
+
'c5n',
|
|
1551
|
+
'c6a',
|
|
1552
|
+
'c6g',
|
|
1553
|
+
'c6gd',
|
|
1554
|
+
'c6gn',
|
|
1555
|
+
'c6i',
|
|
1556
|
+
'c6id',
|
|
1557
|
+
'c6in',
|
|
1558
|
+
'c7a',
|
|
1559
|
+
'c7g',
|
|
1560
|
+
'c7gd',
|
|
1561
|
+
'c7gn',
|
|
1562
|
+
'c7i',
|
|
1563
|
+
'c7i-flex',
|
|
1564
|
+
'c8g',
|
|
1565
|
+
'c8gd',
|
|
1566
|
+
'cax',
|
|
1567
|
+
'ccx',
|
|
1568
|
+
'cpx',
|
|
1569
|
+
'cx',
|
|
1570
|
+
'd2',
|
|
1571
|
+
'd3',
|
|
1572
|
+
'd3en',
|
|
1573
|
+
'dl1',
|
|
1574
|
+
'dl2q',
|
|
1575
|
+
'e2',
|
|
1576
|
+
'f1',
|
|
1577
|
+
'f2',
|
|
1578
|
+
'g1',
|
|
1579
|
+
'g2',
|
|
1580
|
+
'g4ad',
|
|
1581
|
+
'g4dn',
|
|
1582
|
+
'g5',
|
|
1583
|
+
'g5g',
|
|
1584
|
+
'g6',
|
|
1585
|
+
'g6e',
|
|
1586
|
+
'gr6',
|
|
1587
|
+
'h1',
|
|
1588
|
+
'h3',
|
|
1589
|
+
'hpc6a',
|
|
1590
|
+
'hpc6id',
|
|
1591
|
+
'hpc7a',
|
|
1592
|
+
'hpc7g',
|
|
1593
|
+
'i2',
|
|
1594
|
+
'i3',
|
|
1595
|
+
'i3en',
|
|
1596
|
+
'i4g',
|
|
1597
|
+
'i4i',
|
|
1598
|
+
'i7i',
|
|
1599
|
+
'i7ie',
|
|
1600
|
+
'i8g',
|
|
1601
|
+
'im4gn',
|
|
1602
|
+
'inf1',
|
|
1603
|
+
'inf2',
|
|
1604
|
+
'is4gen',
|
|
1605
|
+
'm1',
|
|
1606
|
+
'm2',
|
|
1607
|
+
'm3',
|
|
1608
|
+
'm4',
|
|
1609
|
+
'm5',
|
|
1610
|
+
'm5a',
|
|
1611
|
+
'm5ad',
|
|
1612
|
+
'm5d',
|
|
1613
|
+
'm5dn',
|
|
1614
|
+
'm5n',
|
|
1615
|
+
'm5zn',
|
|
1616
|
+
'm6a',
|
|
1617
|
+
'm6g',
|
|
1618
|
+
'm6gd',
|
|
1619
|
+
'm6i',
|
|
1620
|
+
'm6id',
|
|
1621
|
+
'm6idn',
|
|
1622
|
+
'm6in',
|
|
1623
|
+
'm7a',
|
|
1624
|
+
'm7g',
|
|
1625
|
+
'm7gd',
|
|
1626
|
+
'm7i',
|
|
1627
|
+
'm7i-flex',
|
|
1628
|
+
'm8g',
|
|
1629
|
+
'm8gd',
|
|
1630
|
+
'n1',
|
|
1631
|
+
'n2',
|
|
1632
|
+
'n2d',
|
|
1633
|
+
'n4',
|
|
1634
|
+
'p3',
|
|
1635
|
+
'p3dn',
|
|
1636
|
+
'p4d',
|
|
1637
|
+
'p4de',
|
|
1638
|
+
'p5',
|
|
1639
|
+
'p5e',
|
|
1640
|
+
'p5en',
|
|
1641
|
+
'p6-b200',
|
|
1642
|
+
'r3',
|
|
1643
|
+
'r4',
|
|
1644
|
+
'r5',
|
|
1645
|
+
'r5a',
|
|
1646
|
+
'r5ad',
|
|
1647
|
+
'r5b',
|
|
1648
|
+
'r5d',
|
|
1649
|
+
'r5dn',
|
|
1650
|
+
'r5n',
|
|
1651
|
+
'r6a',
|
|
1652
|
+
'r6g',
|
|
1653
|
+
'r6gd',
|
|
1654
|
+
'r6i',
|
|
1655
|
+
'r6id',
|
|
1656
|
+
'r6idn',
|
|
1657
|
+
'r6in',
|
|
1658
|
+
'r7a',
|
|
1659
|
+
'r7g',
|
|
1660
|
+
'r7gd',
|
|
1661
|
+
'r7i',
|
|
1662
|
+
'r7iz',
|
|
1663
|
+
'r8g',
|
|
1664
|
+
'r8gd',
|
|
1665
|
+
't2',
|
|
1666
|
+
't2a',
|
|
1667
|
+
't2d',
|
|
1668
|
+
't3',
|
|
1669
|
+
't3a',
|
|
1670
|
+
't4g',
|
|
1671
|
+
'trn1',
|
|
1672
|
+
'trn1n',
|
|
1673
|
+
'u-3tb1',
|
|
1674
|
+
'u-6tb1',
|
|
1675
|
+
'u7i-12tb',
|
|
1676
|
+
'u7i-6tb',
|
|
1677
|
+
'u7i-8tb',
|
|
1678
|
+
'u7in-16tb',
|
|
1679
|
+
'u7in-24tb',
|
|
1680
|
+
'u7in-32tb',
|
|
1681
|
+
'vt1',
|
|
1682
|
+
'x1',
|
|
1683
|
+
'x1e',
|
|
1684
|
+
'x2gd',
|
|
1685
|
+
'x2idn',
|
|
1686
|
+
'x2iedn',
|
|
1687
|
+
'x2iezn',
|
|
1688
|
+
'x4',
|
|
1689
|
+
'x8g',
|
|
1690
|
+
'z1d',
|
|
1691
|
+
'z3'
|
|
1692
|
+
]
|
|
1693
|
+
},
|
|
1694
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
1695
|
+
},
|
|
1696
|
+
'topology.kubernetes.io/region': {
|
|
1697
|
+
type: 'array',
|
|
1698
|
+
items: {
|
|
1699
|
+
type: 'string',
|
|
1700
|
+
enum: [
|
|
1701
|
+
'africa-south1',
|
|
1702
|
+
'ap-northeast-1',
|
|
1703
|
+
'ap-northeast-2',
|
|
1704
|
+
'ap-northeast-3',
|
|
1705
|
+
'ap-south-1',
|
|
1706
|
+
'ap-southeast-1',
|
|
1707
|
+
'ap-southeast-2',
|
|
1708
|
+
'ash',
|
|
1709
|
+
'asia-east1',
|
|
1710
|
+
'asia-east2',
|
|
1711
|
+
'asia-northeast1',
|
|
1712
|
+
'asia-northeast2',
|
|
1713
|
+
'asia-northeast3',
|
|
1714
|
+
'asia-south1',
|
|
1715
|
+
'asia-south2',
|
|
1716
|
+
'asia-southeast1',
|
|
1717
|
+
'asia-southeast2',
|
|
1718
|
+
'australia-southeast1',
|
|
1719
|
+
'australia-southeast2',
|
|
1720
|
+
'ca-central-1',
|
|
1721
|
+
'eu-central-1',
|
|
1722
|
+
'eu-central-2',
|
|
1723
|
+
'eu-north-1',
|
|
1724
|
+
'eu-west-1',
|
|
1725
|
+
'eu-west-2',
|
|
1726
|
+
'eu-west-3',
|
|
1727
|
+
'europe-central2',
|
|
1728
|
+
'europe-north1',
|
|
1729
|
+
'europe-southwest1',
|
|
1730
|
+
'europe-west1',
|
|
1731
|
+
'europe-west10',
|
|
1732
|
+
'europe-west12',
|
|
1733
|
+
'europe-west2',
|
|
1734
|
+
'europe-west3',
|
|
1735
|
+
'europe-west4',
|
|
1736
|
+
'europe-west6',
|
|
1737
|
+
'europe-west8',
|
|
1738
|
+
'europe-west9',
|
|
1739
|
+
'fsn1',
|
|
1740
|
+
'hel1',
|
|
1741
|
+
'hil',
|
|
1742
|
+
'me-central1',
|
|
1743
|
+
'me-central2',
|
|
1744
|
+
'me-west1',
|
|
1745
|
+
'nbg1',
|
|
1746
|
+
'northamerica-northeast1',
|
|
1747
|
+
'northamerica-northeast2',
|
|
1748
|
+
'sa-east-1',
|
|
1749
|
+
'sin',
|
|
1750
|
+
'southamerica-east1',
|
|
1751
|
+
'southamerica-west1',
|
|
1752
|
+
'us-central1',
|
|
1753
|
+
'us-east-1',
|
|
1754
|
+
'us-east-2',
|
|
1755
|
+
'us-east1',
|
|
1756
|
+
'us-east4',
|
|
1757
|
+
'us-east5',
|
|
1758
|
+
'us-south1',
|
|
1759
|
+
'us-west-1',
|
|
1760
|
+
'us-west-2',
|
|
1761
|
+
'us-west1',
|
|
1762
|
+
'us-west2',
|
|
1763
|
+
'us-west3',
|
|
1764
|
+
'us-west4'
|
|
1765
|
+
]
|
|
1766
|
+
},
|
|
1767
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1768
|
+
}
|
|
1769
|
+
},
|
|
1770
|
+
additionalProperties: false,
|
|
1771
|
+
description: 'Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together. Omit a field to place no restriction on that key.'
|
|
1772
|
+
},
|
|
1773
|
+
scalingProfile: {
|
|
1774
|
+
type: 'string',
|
|
1775
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1776
|
+
example: 'conservative',
|
|
1777
|
+
enum: [
|
|
1778
|
+
'aggressive',
|
|
1779
|
+
'conservative'
|
|
1780
|
+
]
|
|
711
1781
|
}
|
|
712
1782
|
},
|
|
713
1783
|
additionalProperties: false
|
|
@@ -744,7 +1814,9 @@ export const InviteSchema = {
|
|
|
744
1814
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
745
1815
|
}
|
|
746
1816
|
},
|
|
747
|
-
required: [
|
|
1817
|
+
required: [
|
|
1818
|
+
'date_created'
|
|
1819
|
+
],
|
|
748
1820
|
additionalProperties: false
|
|
749
1821
|
};
|
|
750
1822
|
export const InvoiceSchema = {
|
|
@@ -752,23 +1824,18 @@ export const InvoiceSchema = {
|
|
|
752
1824
|
properties: {
|
|
753
1825
|
id: {
|
|
754
1826
|
type: 'string',
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
1827
|
+
description: 'Unique identifier of the invoice.',
|
|
1828
|
+
example: 'in_1234567890xCrwxghOTj1234'
|
|
758
1829
|
},
|
|
759
|
-
|
|
760
|
-
type: 'string'
|
|
761
|
-
format: 'uuid',
|
|
762
|
-
description: 'Unique identifier of the organization. UUID v4 string in canonical form',
|
|
763
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
1830
|
+
number: {
|
|
1831
|
+
type: 'string'
|
|
764
1832
|
},
|
|
765
1833
|
status: {
|
|
766
1834
|
type: 'string',
|
|
767
1835
|
description: 'Status of the invoice',
|
|
768
|
-
example: '
|
|
769
|
-
enum: ['DRAFT', 'COMMITTED', 'VOID']
|
|
1836
|
+
example: 'paid'
|
|
770
1837
|
},
|
|
771
|
-
|
|
1838
|
+
total: {
|
|
772
1839
|
type: 'number',
|
|
773
1840
|
format: 'float',
|
|
774
1841
|
description: 'Total amount of the invoice',
|
|
@@ -777,413 +1844,189 @@ export const InvoiceSchema = {
|
|
|
777
1844
|
currency: {
|
|
778
1845
|
type: 'string',
|
|
779
1846
|
description: 'Currency of the invoice',
|
|
780
|
-
example: '
|
|
781
|
-
enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
|
|
782
|
-
},
|
|
783
|
-
creditAdj: {
|
|
784
|
-
type: 'number',
|
|
785
|
-
format: 'float',
|
|
786
|
-
description: 'Total amount of credit adjustments',
|
|
787
|
-
example: 0
|
|
1847
|
+
example: 'usd'
|
|
788
1848
|
},
|
|
789
|
-
|
|
790
|
-
type: '
|
|
791
|
-
format: '
|
|
792
|
-
description: '
|
|
793
|
-
example:
|
|
1849
|
+
created: {
|
|
1850
|
+
type: 'string',
|
|
1851
|
+
format: 'date-time',
|
|
1852
|
+
description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
|
|
1853
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
794
1854
|
},
|
|
795
|
-
|
|
1855
|
+
period_start: {
|
|
796
1856
|
type: 'string',
|
|
797
|
-
|
|
798
|
-
|
|
1857
|
+
format: 'date-time',
|
|
1858
|
+
description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
|
|
1859
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
799
1860
|
},
|
|
800
|
-
|
|
1861
|
+
period_end: {
|
|
801
1862
|
type: 'string',
|
|
802
|
-
|
|
803
|
-
|
|
1863
|
+
format: 'date-time',
|
|
1864
|
+
description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
|
|
1865
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
804
1866
|
},
|
|
805
|
-
|
|
1867
|
+
invoice_pdf: {
|
|
1868
|
+
type: 'string'
|
|
1869
|
+
}
|
|
1870
|
+
},
|
|
1871
|
+
required: [
|
|
1872
|
+
'created',
|
|
1873
|
+
'period_start',
|
|
1874
|
+
'period_end'
|
|
1875
|
+
],
|
|
1876
|
+
additionalProperties: false
|
|
1877
|
+
};
|
|
1878
|
+
export const MarketplaceListingFilesSchema = {
|
|
1879
|
+
type: 'object',
|
|
1880
|
+
properties: {
|
|
1881
|
+
chartYaml: {
|
|
806
1882
|
type: 'string',
|
|
807
|
-
description: '
|
|
808
|
-
example: '
|
|
1883
|
+
description: 'Raw Chart.yaml content from the Helm chart',
|
|
1884
|
+
example: 'apiVersion: v2\nname: nginx-ingress\nversion: 1.18.2-cfke.45\nappVersion: 1.9.4'
|
|
809
1885
|
},
|
|
810
|
-
|
|
811
|
-
type: '
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
example: 100
|
|
1886
|
+
valuesYaml: {
|
|
1887
|
+
type: 'string',
|
|
1888
|
+
description: 'Raw values.yaml content from the Helm chart',
|
|
1889
|
+
example: 'replicaCount: 1\nimage:\n repository: nginx\n tag: latest'
|
|
815
1890
|
},
|
|
816
|
-
|
|
1891
|
+
valuesSchemaJson: {
|
|
1892
|
+
type: 'string',
|
|
1893
|
+
description: 'JSON schema for values.yaml as a string',
|
|
1894
|
+
example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
additionalProperties: false
|
|
1898
|
+
};
|
|
1899
|
+
export const MarketplaceListingSchema = {
|
|
1900
|
+
type: 'object',
|
|
1901
|
+
properties: {
|
|
1902
|
+
name: {
|
|
817
1903
|
type: 'string',
|
|
818
|
-
description: '
|
|
819
|
-
example: '
|
|
1904
|
+
description: 'Name of the chart',
|
|
1905
|
+
example: 'nginx-ingress'
|
|
820
1906
|
},
|
|
821
|
-
|
|
1907
|
+
versions: {
|
|
822
1908
|
type: 'array',
|
|
823
1909
|
items: {
|
|
824
|
-
type: '
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
format: 'uuid',
|
|
829
|
-
description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
|
|
830
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
831
|
-
},
|
|
832
|
-
linkedInvoiceItemId: {
|
|
833
|
-
type: 'string',
|
|
834
|
-
format: 'uuid',
|
|
835
|
-
description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
|
|
836
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
837
|
-
},
|
|
838
|
-
productName: {
|
|
839
|
-
type: 'string',
|
|
840
|
-
description: 'Name of the product',
|
|
841
|
-
example: 'Research team'
|
|
842
|
-
},
|
|
843
|
-
planName: {
|
|
844
|
-
type: 'string',
|
|
845
|
-
description: 'Name of the plan',
|
|
846
|
-
example: 'Plan A'
|
|
847
|
-
},
|
|
848
|
-
phaseName: {
|
|
849
|
-
type: 'string',
|
|
850
|
-
description: 'Name of the phase',
|
|
851
|
-
example: 'Phase A'
|
|
852
|
-
},
|
|
853
|
-
usageName: {
|
|
854
|
-
type: 'string',
|
|
855
|
-
description: 'Name of the usage',
|
|
856
|
-
example: 'Usage A'
|
|
857
|
-
},
|
|
858
|
-
prettyProductName: {
|
|
859
|
-
type: 'string',
|
|
860
|
-
description: 'Pretty name of the product',
|
|
861
|
-
example: 'Research team'
|
|
862
|
-
},
|
|
863
|
-
prettyPlanName: {
|
|
864
|
-
type: 'string',
|
|
865
|
-
description: 'Pretty name of the plan',
|
|
866
|
-
example: 'Plan A'
|
|
867
|
-
},
|
|
868
|
-
prettyPhaseName: {
|
|
869
|
-
type: 'string',
|
|
870
|
-
description: 'Pretty name of the phase',
|
|
871
|
-
example: 'Phase A'
|
|
872
|
-
},
|
|
873
|
-
prettyUsageName: {
|
|
874
|
-
type: 'string',
|
|
875
|
-
description: 'Pretty name of the usage',
|
|
876
|
-
example: 'Usage A'
|
|
877
|
-
},
|
|
878
|
-
itemType: {
|
|
879
|
-
type: 'string',
|
|
880
|
-
description: 'Type of the invoice item',
|
|
881
|
-
example: 'EXTERNAL_CHARGE',
|
|
882
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
883
|
-
},
|
|
884
|
-
description: {
|
|
885
|
-
type: 'string',
|
|
886
|
-
description: 'Description of the invoice item',
|
|
887
|
-
example: 'Description of the invoice item'
|
|
888
|
-
},
|
|
889
|
-
startDate: {
|
|
890
|
-
type: 'string',
|
|
891
|
-
description: 'Start date of the invoice item',
|
|
892
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
893
|
-
},
|
|
894
|
-
endDate: {
|
|
895
|
-
type: 'string',
|
|
896
|
-
description: 'End date of the invoice item',
|
|
897
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
898
|
-
},
|
|
899
|
-
amount: {
|
|
900
|
-
type: 'number',
|
|
901
|
-
format: 'float',
|
|
902
|
-
description: 'Amount of the invoice item',
|
|
903
|
-
example: 100
|
|
904
|
-
},
|
|
905
|
-
rate: {
|
|
906
|
-
type: 'number',
|
|
907
|
-
format: 'float',
|
|
908
|
-
description: 'Rate of the invoice item',
|
|
909
|
-
example: 100
|
|
910
|
-
},
|
|
911
|
-
currency: {
|
|
912
|
-
type: 'string',
|
|
913
|
-
description: 'Currency of the invoice item',
|
|
914
|
-
example: 'USD',
|
|
915
|
-
enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
|
|
916
|
-
},
|
|
917
|
-
quantity: {
|
|
918
|
-
type: 'number',
|
|
919
|
-
format: 'float',
|
|
920
|
-
description: 'Quantity of the invoice item',
|
|
921
|
-
example: 1
|
|
922
|
-
},
|
|
923
|
-
itemDetails: {
|
|
924
|
-
type: 'string',
|
|
925
|
-
description: 'Details of the invoice item',
|
|
926
|
-
example: 'Details of the invoice item'
|
|
927
|
-
},
|
|
928
|
-
catalogEffectiveDate: {
|
|
929
|
-
type: 'string',
|
|
930
|
-
description: 'Effective date of the catalog',
|
|
931
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
932
|
-
},
|
|
933
|
-
childItems: {
|
|
934
|
-
type: 'array',
|
|
935
|
-
items: {
|
|
936
|
-
oneOf: [
|
|
937
|
-
{
|
|
938
|
-
type: 'array'
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
type: 'boolean'
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
type: 'number'
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
type: 'object',
|
|
948
|
-
additionalProperties: true
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
type: 'string'
|
|
952
|
-
}
|
|
953
|
-
]
|
|
954
|
-
},
|
|
955
|
-
description: 'Child items of the invoice item'
|
|
956
|
-
}
|
|
957
|
-
},
|
|
958
|
-
additionalProperties: false
|
|
1910
|
+
type: 'string',
|
|
1911
|
+
pattern: '^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
1912
|
+
description: 'Specific version of the chart',
|
|
1913
|
+
example: '1.18.2-cfke.45'
|
|
959
1914
|
},
|
|
960
|
-
description: '
|
|
1915
|
+
description: 'Available versions of the chart'
|
|
961
1916
|
},
|
|
962
|
-
|
|
963
|
-
type: 'array',
|
|
964
|
-
items: {
|
|
965
|
-
type: 'object',
|
|
966
|
-
properties: {
|
|
967
|
-
id: {
|
|
968
|
-
type: 'string',
|
|
969
|
-
format: 'uuid',
|
|
970
|
-
description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
|
|
971
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
972
|
-
},
|
|
973
|
-
linkedInvoiceItemId: {
|
|
974
|
-
type: 'string',
|
|
975
|
-
format: 'uuid',
|
|
976
|
-
description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
|
|
977
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
978
|
-
},
|
|
979
|
-
productName: {
|
|
980
|
-
type: 'string',
|
|
981
|
-
description: 'Name of the product',
|
|
982
|
-
example: 'Research team'
|
|
983
|
-
},
|
|
984
|
-
planName: {
|
|
985
|
-
type: 'string',
|
|
986
|
-
description: 'Name of the plan',
|
|
987
|
-
example: 'Plan A'
|
|
988
|
-
},
|
|
989
|
-
phaseName: {
|
|
990
|
-
type: 'string',
|
|
991
|
-
description: 'Name of the phase',
|
|
992
|
-
example: 'Phase A'
|
|
993
|
-
},
|
|
994
|
-
usageName: {
|
|
995
|
-
type: 'string',
|
|
996
|
-
description: 'Name of the usage',
|
|
997
|
-
example: 'Usage A'
|
|
998
|
-
},
|
|
999
|
-
prettyProductName: {
|
|
1000
|
-
type: 'string',
|
|
1001
|
-
description: 'Pretty name of the product',
|
|
1002
|
-
example: 'Research team'
|
|
1003
|
-
},
|
|
1004
|
-
prettyPlanName: {
|
|
1005
|
-
type: 'string',
|
|
1006
|
-
description: 'Pretty name of the plan',
|
|
1007
|
-
example: 'Plan A'
|
|
1008
|
-
},
|
|
1009
|
-
prettyPhaseName: {
|
|
1010
|
-
type: 'string',
|
|
1011
|
-
description: 'Pretty name of the phase',
|
|
1012
|
-
example: 'Phase A'
|
|
1013
|
-
},
|
|
1014
|
-
prettyUsageName: {
|
|
1015
|
-
type: 'string',
|
|
1016
|
-
description: 'Pretty name of the usage',
|
|
1017
|
-
example: 'Usage A'
|
|
1018
|
-
},
|
|
1019
|
-
itemType: {
|
|
1020
|
-
type: 'string',
|
|
1021
|
-
description: 'Type of the invoice item',
|
|
1022
|
-
example: 'EXTERNAL_CHARGE',
|
|
1023
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
1024
|
-
},
|
|
1025
|
-
description: {
|
|
1026
|
-
type: 'string',
|
|
1027
|
-
description: 'Description of the invoice item',
|
|
1028
|
-
example: 'Description of the invoice item'
|
|
1029
|
-
},
|
|
1030
|
-
startDate: {
|
|
1031
|
-
type: 'string',
|
|
1032
|
-
description: 'Start date of the invoice item',
|
|
1033
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1034
|
-
},
|
|
1035
|
-
endDate: {
|
|
1036
|
-
type: 'string',
|
|
1037
|
-
description: 'End date of the invoice item',
|
|
1038
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1039
|
-
},
|
|
1040
|
-
amount: {
|
|
1041
|
-
type: 'number',
|
|
1042
|
-
format: 'float',
|
|
1043
|
-
description: 'Amount of the invoice item',
|
|
1044
|
-
example: 100
|
|
1045
|
-
},
|
|
1046
|
-
rate: {
|
|
1047
|
-
type: 'number',
|
|
1048
|
-
format: 'float',
|
|
1049
|
-
description: 'Rate of the invoice item',
|
|
1050
|
-
example: 100
|
|
1051
|
-
},
|
|
1052
|
-
currency: {
|
|
1053
|
-
type: 'string',
|
|
1054
|
-
description: 'Currency of the invoice item',
|
|
1055
|
-
example: 'USD',
|
|
1056
|
-
enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
|
|
1057
|
-
},
|
|
1058
|
-
quantity: {
|
|
1059
|
-
type: 'number',
|
|
1060
|
-
format: 'float',
|
|
1061
|
-
description: 'Quantity of the invoice item',
|
|
1062
|
-
example: 1
|
|
1063
|
-
},
|
|
1064
|
-
itemDetails: {
|
|
1065
|
-
type: 'string',
|
|
1066
|
-
description: 'Details of the invoice item',
|
|
1067
|
-
example: 'Details of the invoice item'
|
|
1068
|
-
},
|
|
1069
|
-
catalogEffectiveDate: {
|
|
1070
|
-
type: 'string',
|
|
1071
|
-
description: 'Effective date of the catalog',
|
|
1072
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1073
|
-
},
|
|
1074
|
-
childItems: {
|
|
1075
|
-
type: 'array',
|
|
1076
|
-
items: {
|
|
1077
|
-
oneOf: [
|
|
1078
|
-
{
|
|
1079
|
-
type: 'array'
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
type: 'boolean'
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
type: 'number'
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
type: 'object',
|
|
1089
|
-
additionalProperties: true
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
type: 'string'
|
|
1093
|
-
}
|
|
1094
|
-
]
|
|
1095
|
-
},
|
|
1096
|
-
description: 'Child items of the invoice item'
|
|
1097
|
-
}
|
|
1098
|
-
},
|
|
1099
|
-
additionalProperties: false
|
|
1100
|
-
},
|
|
1101
|
-
description: 'Items of the invoice'
|
|
1102
|
-
}
|
|
1103
|
-
},
|
|
1104
|
-
additionalProperties: false
|
|
1105
|
-
};
|
|
1106
|
-
export const MarketplaceListingSchema = {
|
|
1107
|
-
type: 'object',
|
|
1108
|
-
properties: {
|
|
1109
|
-
id: {
|
|
1110
|
-
type: 'string',
|
|
1111
|
-
maxLength: 63,
|
|
1112
|
-
minLength: 1,
|
|
1113
|
-
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
1114
|
-
description: 'Id of the chart listing',
|
|
1115
|
-
example: 'portworx-enterprise-disaster-recovery-baremetal'
|
|
1116
|
-
},
|
|
1117
|
-
name: {
|
|
1118
|
-
type: 'string',
|
|
1119
|
-
description: 'Name of the chart listing',
|
|
1120
|
-
example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
|
|
1121
|
-
},
|
|
1122
|
-
developer: {
|
|
1123
|
-
type: 'string',
|
|
1124
|
-
description: 'Author of the chart listing',
|
|
1125
|
-
example: 'Portworx'
|
|
1126
|
-
},
|
|
1127
|
-
description: {
|
|
1128
|
-
type: 'string',
|
|
1129
|
-
description: 'Short description of the chart listing',
|
|
1130
|
-
example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
|
|
1131
|
-
},
|
|
1132
|
-
logoUrl: {
|
|
1133
|
-
type: 'string',
|
|
1134
|
-
description: 'Logo of the chart listing',
|
|
1135
|
-
example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
|
|
1136
|
-
},
|
|
1137
|
-
longDescription: {
|
|
1138
|
-
type: 'string',
|
|
1139
|
-
description: 'Long description of the chart listing',
|
|
1140
|
-
example: 'Portworx-Enterprise is the complete multi-cloud ready Kubernetes storage platform for running mission-critical apps in production....'
|
|
1141
|
-
},
|
|
1142
|
-
categories: {
|
|
1917
|
+
version_channels: {
|
|
1143
1918
|
type: 'array',
|
|
1144
1919
|
items: {
|
|
1145
1920
|
type: 'string',
|
|
1146
|
-
|
|
1921
|
+
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
1922
|
+
description: 'Version channel pattern',
|
|
1923
|
+
example: '1.18.x-cfke.x'
|
|
1147
1924
|
},
|
|
1148
|
-
description: '
|
|
1925
|
+
description: 'Version channels for the chart'
|
|
1149
1926
|
},
|
|
1150
|
-
|
|
1151
|
-
type: '
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
1155
|
-
description: 'Version of the chart.',
|
|
1156
|
-
example: '2.x.x-cfke.x'
|
|
1157
|
-
}
|
|
1927
|
+
latestVersion: {
|
|
1928
|
+
type: 'string',
|
|
1929
|
+
description: 'Latest version of the chart',
|
|
1930
|
+
example: '1.18.2-cfke.45'
|
|
1158
1931
|
},
|
|
1159
|
-
|
|
1160
|
-
type: '
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1932
|
+
metadata: {
|
|
1933
|
+
type: 'object',
|
|
1934
|
+
properties: {
|
|
1935
|
+
name: {
|
|
1936
|
+
type: 'string',
|
|
1937
|
+
description: 'Chart name from metadata',
|
|
1938
|
+
example: 'nginx-ingress'
|
|
1939
|
+
},
|
|
1940
|
+
version: {
|
|
1941
|
+
type: 'string',
|
|
1942
|
+
description: 'Chart version from metadata',
|
|
1943
|
+
example: '1.18.2-cfke.45'
|
|
1944
|
+
},
|
|
1945
|
+
description: {
|
|
1946
|
+
type: 'string',
|
|
1947
|
+
description: 'Chart description',
|
|
1948
|
+
example: 'NGINX Ingress Controller for Kubernetes'
|
|
1949
|
+
},
|
|
1950
|
+
appVersion: {
|
|
1951
|
+
type: 'string',
|
|
1952
|
+
description: 'Application version',
|
|
1953
|
+
example: '1.9.4'
|
|
1954
|
+
},
|
|
1955
|
+
apiVersion: {
|
|
1956
|
+
type: 'string',
|
|
1957
|
+
description: 'Helm API version',
|
|
1958
|
+
example: 'v2'
|
|
1959
|
+
},
|
|
1960
|
+
keywords: {
|
|
1961
|
+
type: 'array',
|
|
1962
|
+
items: {
|
|
1963
|
+
type: 'string'
|
|
1169
1964
|
},
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1965
|
+
description: 'Chart keywords',
|
|
1966
|
+
example: [
|
|
1967
|
+
'ingress',
|
|
1968
|
+
'nginx',
|
|
1969
|
+
'load-balancer'
|
|
1970
|
+
]
|
|
1971
|
+
},
|
|
1972
|
+
home: {
|
|
1973
|
+
type: 'string',
|
|
1974
|
+
description: 'Chart home URL',
|
|
1975
|
+
example: 'https://kubernetes.github.io/ingress-nginx/'
|
|
1976
|
+
},
|
|
1977
|
+
icon: {
|
|
1978
|
+
type: 'string',
|
|
1979
|
+
description: 'A URL to an SVG or PNG image to be used as an icon',
|
|
1980
|
+
example: 'https://cloudfleet.ai/images/marketplace/icons/ingress-nginx.png'
|
|
1981
|
+
},
|
|
1982
|
+
sources: {
|
|
1983
|
+
type: 'array',
|
|
1984
|
+
items: {
|
|
1985
|
+
type: 'string'
|
|
1173
1986
|
},
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
bar: example`
|
|
1179
|
-
}
|
|
1987
|
+
description: 'Chart source URLs',
|
|
1988
|
+
example: [
|
|
1989
|
+
'https://github.com/kubernetes/ingress-nginx'
|
|
1990
|
+
]
|
|
1180
1991
|
},
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1992
|
+
maintainers: {
|
|
1993
|
+
type: 'array',
|
|
1994
|
+
items: {
|
|
1995
|
+
type: 'object',
|
|
1996
|
+
properties: {
|
|
1997
|
+
name: {
|
|
1998
|
+
type: 'string',
|
|
1999
|
+
description: 'Maintainer name',
|
|
2000
|
+
example: 'NGINX Team'
|
|
2001
|
+
},
|
|
2002
|
+
email: {
|
|
2003
|
+
type: 'string',
|
|
2004
|
+
description: 'Maintainer email',
|
|
2005
|
+
example: 'support@nginx.org'
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
required: [
|
|
2009
|
+
'name'
|
|
2010
|
+
],
|
|
2011
|
+
additionalProperties: false
|
|
2012
|
+
},
|
|
2013
|
+
description: 'Chart maintainers'
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
2016
|
+
required: [
|
|
2017
|
+
'name',
|
|
2018
|
+
'version'
|
|
2019
|
+
],
|
|
2020
|
+
additionalProperties: false,
|
|
2021
|
+
description: 'Chart metadata'
|
|
1184
2022
|
}
|
|
1185
2023
|
},
|
|
1186
|
-
required: [
|
|
2024
|
+
required: [
|
|
2025
|
+
'name',
|
|
2026
|
+
'versions',
|
|
2027
|
+
'version_channels',
|
|
2028
|
+
'latestVersion'
|
|
2029
|
+
],
|
|
1187
2030
|
additionalProperties: false
|
|
1188
2031
|
};
|
|
1189
2032
|
export const OrganizationCreateInputSchema = {
|
|
@@ -1219,7 +2062,13 @@ export const OrganizationCreateInputSchema = {
|
|
|
1219
2062
|
description: 'Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.'
|
|
1220
2063
|
}
|
|
1221
2064
|
},
|
|
1222
|
-
required: [
|
|
2065
|
+
required: [
|
|
2066
|
+
'email',
|
|
2067
|
+
'first_name',
|
|
2068
|
+
'last_name',
|
|
2069
|
+
'company_name',
|
|
2070
|
+
'password'
|
|
2071
|
+
],
|
|
1223
2072
|
additionalProperties: false
|
|
1224
2073
|
};
|
|
1225
2074
|
export const OrganizationSchema = {
|
|
@@ -1279,107 +2128,1000 @@ export const OrganizationSchema = {
|
|
|
1279
2128
|
type: 'array',
|
|
1280
2129
|
items: {
|
|
1281
2130
|
type: 'string',
|
|
1282
|
-
example: 'basic'
|
|
2131
|
+
example: 'basic'
|
|
2132
|
+
},
|
|
2133
|
+
minItems: 0,
|
|
2134
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
2135
|
+
},
|
|
2136
|
+
regions: {
|
|
2137
|
+
type: 'array',
|
|
2138
|
+
items: {
|
|
2139
|
+
type: 'string',
|
|
2140
|
+
example: 'northamerica-central-1'
|
|
2141
|
+
},
|
|
2142
|
+
minItems: 1,
|
|
2143
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
2144
|
+
},
|
|
2145
|
+
versions: {
|
|
2146
|
+
type: 'array',
|
|
2147
|
+
items: {
|
|
2148
|
+
type: 'object',
|
|
2149
|
+
properties: {
|
|
2150
|
+
id: {
|
|
2151
|
+
type: 'string',
|
|
2152
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
2153
|
+
example: '1.33.x-cfke.x'
|
|
2154
|
+
},
|
|
2155
|
+
label: {
|
|
2156
|
+
type: 'string',
|
|
2157
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
2158
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
required: [
|
|
2162
|
+
'id',
|
|
2163
|
+
'label'
|
|
2164
|
+
],
|
|
2165
|
+
additionalProperties: false
|
|
2166
|
+
},
|
|
2167
|
+
minItems: 1,
|
|
2168
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
2169
|
+
},
|
|
2170
|
+
cfcr_storage_gb: {
|
|
2171
|
+
type: 'integer',
|
|
2172
|
+
minimum: -1,
|
|
2173
|
+
description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
|
|
2174
|
+
example: 500
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
required: [
|
|
2178
|
+
'basic_clusters_max',
|
|
2179
|
+
'basic_clusters_available',
|
|
2180
|
+
'pro_clusters_max',
|
|
2181
|
+
'pro_clusters_available',
|
|
2182
|
+
'fleets_max',
|
|
2183
|
+
'cluster_tiers',
|
|
2184
|
+
'regions',
|
|
2185
|
+
'versions',
|
|
2186
|
+
'cfcr_storage_gb'
|
|
2187
|
+
],
|
|
2188
|
+
additionalProperties: false,
|
|
2189
|
+
description: 'For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.'
|
|
2190
|
+
},
|
|
2191
|
+
status: {
|
|
2192
|
+
type: 'string',
|
|
2193
|
+
description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
|
|
2194
|
+
enum: [
|
|
2195
|
+
'active',
|
|
2196
|
+
'closed',
|
|
2197
|
+
'suspended'
|
|
2198
|
+
]
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
|
+
required: [
|
|
2202
|
+
'id',
|
|
2203
|
+
'date_created',
|
|
2204
|
+
'quota',
|
|
2205
|
+
'status'
|
|
2206
|
+
],
|
|
2207
|
+
additionalProperties: false
|
|
2208
|
+
};
|
|
2209
|
+
export const PaymentMethodSchema = {
|
|
2210
|
+
type: 'object',
|
|
2211
|
+
properties: {
|
|
2212
|
+
id: {
|
|
2213
|
+
type: 'string',
|
|
2214
|
+
format: 'uuid',
|
|
2215
|
+
description: 'Unique identifier of the organization. UUID v4 string in canonical form.',
|
|
2216
|
+
example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
|
|
2217
|
+
},
|
|
2218
|
+
setup: {
|
|
2219
|
+
type: 'boolean',
|
|
2220
|
+
description: 'Whether organization payment method was set up and ready to use for payments.',
|
|
2221
|
+
example: true
|
|
2222
|
+
},
|
|
2223
|
+
type: {
|
|
2224
|
+
type: 'string',
|
|
2225
|
+
nullable: true,
|
|
2226
|
+
description: 'Payment method type type. Only `card` payments supported at the moment.',
|
|
2227
|
+
example: 'card',
|
|
2228
|
+
enum: [
|
|
2229
|
+
'card'
|
|
2230
|
+
]
|
|
2231
|
+
},
|
|
2232
|
+
last4: {
|
|
2233
|
+
type: 'string',
|
|
2234
|
+
nullable: true,
|
|
2235
|
+
description: 'Last 4 digits of the payment card number.',
|
|
2236
|
+
example: '4242'
|
|
2237
|
+
},
|
|
2238
|
+
exp_month: {
|
|
2239
|
+
type: 'integer',
|
|
2240
|
+
minimum: 1,
|
|
2241
|
+
maximum: 12,
|
|
2242
|
+
nullable: true,
|
|
2243
|
+
description: 'Two-digit number representing the card\'s expiration month.',
|
|
2244
|
+
example: '12'
|
|
2245
|
+
},
|
|
2246
|
+
exp_year: {
|
|
2247
|
+
type: 'integer',
|
|
2248
|
+
minimum: 2024,
|
|
2249
|
+
nullable: true,
|
|
2250
|
+
description: 'Four-digit number representing the card\'s expiration year.',
|
|
2251
|
+
example: '2028'
|
|
2252
|
+
},
|
|
2253
|
+
brand: {
|
|
2254
|
+
type: 'string',
|
|
2255
|
+
nullable: true,
|
|
2256
|
+
description: 'Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.',
|
|
2257
|
+
example: 'visa',
|
|
2258
|
+
enum: [
|
|
2259
|
+
'amex',
|
|
2260
|
+
'diners',
|
|
2261
|
+
'discover',
|
|
2262
|
+
'eftpos_au',
|
|
2263
|
+
'jcb',
|
|
2264
|
+
'mastercard',
|
|
2265
|
+
'unionpay',
|
|
2266
|
+
'visa',
|
|
2267
|
+
'unknown'
|
|
2268
|
+
]
|
|
2269
|
+
}
|
|
2270
|
+
},
|
|
2271
|
+
required: [
|
|
2272
|
+
'id',
|
|
2273
|
+
'setup',
|
|
2274
|
+
'type',
|
|
2275
|
+
'last4',
|
|
2276
|
+
'exp_month',
|
|
2277
|
+
'exp_year',
|
|
2278
|
+
'brand'
|
|
2279
|
+
],
|
|
2280
|
+
additionalProperties: false
|
|
2281
|
+
};
|
|
2282
|
+
export const PlatformQuotaSchema = {
|
|
2283
|
+
type: 'object',
|
|
2284
|
+
properties: {
|
|
2285
|
+
basic_clusters_max: {
|
|
2286
|
+
type: 'integer',
|
|
2287
|
+
minimum: 0,
|
|
2288
|
+
description: 'Maximum number of Basic clusters that can be created.',
|
|
2289
|
+
example: 999
|
|
2290
|
+
},
|
|
2291
|
+
basic_clusters_available: {
|
|
2292
|
+
type: 'integer',
|
|
2293
|
+
description: 'Available number of Basic clusters that can be created.',
|
|
2294
|
+
example: 999
|
|
2295
|
+
},
|
|
2296
|
+
pro_clusters_max: {
|
|
2297
|
+
type: 'integer',
|
|
2298
|
+
minimum: 0,
|
|
2299
|
+
description: 'Maximum number of Pro clusters that can be created.',
|
|
2300
|
+
example: 999
|
|
2301
|
+
},
|
|
2302
|
+
pro_clusters_available: {
|
|
2303
|
+
type: 'integer',
|
|
2304
|
+
description: 'Available number of Pro clusters that can be created.',
|
|
2305
|
+
example: 999
|
|
2306
|
+
},
|
|
2307
|
+
fleets_max: {
|
|
2308
|
+
type: 'integer',
|
|
2309
|
+
minimum: 0,
|
|
2310
|
+
description: 'Maximum number of fleets that can be created per cluster.',
|
|
2311
|
+
example: 999
|
|
2312
|
+
},
|
|
2313
|
+
cluster_tiers: {
|
|
2314
|
+
type: 'array',
|
|
2315
|
+
items: {
|
|
2316
|
+
type: 'string',
|
|
2317
|
+
example: 'basic'
|
|
2318
|
+
},
|
|
2319
|
+
minItems: 0,
|
|
2320
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
2321
|
+
},
|
|
2322
|
+
regions: {
|
|
2323
|
+
type: 'array',
|
|
2324
|
+
items: {
|
|
2325
|
+
type: 'string',
|
|
2326
|
+
example: 'northamerica-central-1'
|
|
2327
|
+
},
|
|
2328
|
+
minItems: 1,
|
|
2329
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
2330
|
+
},
|
|
2331
|
+
versions: {
|
|
2332
|
+
type: 'array',
|
|
2333
|
+
items: {
|
|
2334
|
+
type: 'object',
|
|
2335
|
+
properties: {
|
|
2336
|
+
id: {
|
|
2337
|
+
type: 'string',
|
|
2338
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
2339
|
+
example: '1.33.x-cfke.x'
|
|
2340
|
+
},
|
|
2341
|
+
label: {
|
|
2342
|
+
type: 'string',
|
|
2343
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
2344
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
required: [
|
|
2348
|
+
'id',
|
|
2349
|
+
'label'
|
|
2350
|
+
],
|
|
2351
|
+
additionalProperties: false
|
|
2352
|
+
},
|
|
2353
|
+
minItems: 1,
|
|
2354
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
2355
|
+
},
|
|
2356
|
+
cfcr_storage_gb: {
|
|
2357
|
+
type: 'integer',
|
|
2358
|
+
minimum: -1,
|
|
2359
|
+
description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
|
|
2360
|
+
example: 500
|
|
2361
|
+
}
|
|
2362
|
+
},
|
|
2363
|
+
required: [
|
|
2364
|
+
'basic_clusters_max',
|
|
2365
|
+
'basic_clusters_available',
|
|
2366
|
+
'pro_clusters_max',
|
|
2367
|
+
'pro_clusters_available',
|
|
2368
|
+
'fleets_max',
|
|
2369
|
+
'cluster_tiers',
|
|
2370
|
+
'regions',
|
|
2371
|
+
'versions',
|
|
2372
|
+
'cfcr_storage_gb'
|
|
2373
|
+
],
|
|
2374
|
+
additionalProperties: false
|
|
2375
|
+
};
|
|
2376
|
+
export const RegistryRepositorySchema = {
|
|
2377
|
+
type: 'object',
|
|
2378
|
+
properties: {
|
|
2379
|
+
name: {
|
|
2380
|
+
type: 'string',
|
|
2381
|
+
description: 'Repository name.',
|
|
2382
|
+
example: 'my-app'
|
|
2383
|
+
},
|
|
2384
|
+
region: {
|
|
2385
|
+
type: 'string',
|
|
2386
|
+
description: 'Registry region.',
|
|
2387
|
+
example: 'northamerica'
|
|
2388
|
+
},
|
|
2389
|
+
uri: {
|
|
2390
|
+
type: 'string',
|
|
2391
|
+
description: 'Full URI of the repository.',
|
|
2392
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
|
|
2393
|
+
}
|
|
2394
|
+
},
|
|
2395
|
+
required: [
|
|
2396
|
+
'name',
|
|
2397
|
+
'region',
|
|
2398
|
+
'uri'
|
|
2399
|
+
],
|
|
2400
|
+
additionalProperties: false
|
|
2401
|
+
};
|
|
2402
|
+
export const RegistryRepositoryWithTagsSchema = {
|
|
2403
|
+
type: 'object',
|
|
2404
|
+
properties: {
|
|
2405
|
+
name: {
|
|
2406
|
+
type: 'string',
|
|
2407
|
+
description: 'Repository name.',
|
|
2408
|
+
example: 'my-app'
|
|
2409
|
+
},
|
|
2410
|
+
region: {
|
|
2411
|
+
type: 'string',
|
|
2412
|
+
description: 'Registry region.',
|
|
2413
|
+
example: 'northamerica'
|
|
2414
|
+
},
|
|
2415
|
+
uri: {
|
|
2416
|
+
type: 'string',
|
|
2417
|
+
description: 'Full URI of the repository.',
|
|
2418
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
|
|
2419
|
+
},
|
|
2420
|
+
tags: {
|
|
2421
|
+
type: 'array',
|
|
2422
|
+
items: {
|
|
2423
|
+
type: 'object',
|
|
2424
|
+
properties: {
|
|
2425
|
+
name: {
|
|
2426
|
+
type: 'string',
|
|
2427
|
+
description: 'Tag name.',
|
|
2428
|
+
example: 'latest'
|
|
2429
|
+
},
|
|
2430
|
+
size: {
|
|
2431
|
+
type: 'number',
|
|
2432
|
+
format: 'float',
|
|
2433
|
+
description: 'Size of the tag in bytes.',
|
|
2434
|
+
example: 123456789
|
|
2435
|
+
},
|
|
2436
|
+
mediaType: {
|
|
2437
|
+
type: 'string',
|
|
2438
|
+
description: 'Media type of the manifest.',
|
|
2439
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
2440
|
+
},
|
|
2441
|
+
platforms: {
|
|
2442
|
+
type: 'array',
|
|
2443
|
+
items: {
|
|
2444
|
+
type: 'string'
|
|
2445
|
+
},
|
|
2446
|
+
description: 'Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).',
|
|
2447
|
+
example: [
|
|
2448
|
+
'linux/amd64',
|
|
2449
|
+
'linux/arm64'
|
|
2450
|
+
]
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
required: [
|
|
2454
|
+
'name',
|
|
2455
|
+
'size'
|
|
2456
|
+
],
|
|
2457
|
+
additionalProperties: false
|
|
2458
|
+
},
|
|
2459
|
+
description: 'Array of tags in the repository.'
|
|
2460
|
+
},
|
|
2461
|
+
totalSize: {
|
|
2462
|
+
type: 'number',
|
|
2463
|
+
format: 'float',
|
|
2464
|
+
description: 'Total size of all tags in the repository in bytes.',
|
|
2465
|
+
example: 987654321
|
|
2466
|
+
}
|
|
2467
|
+
},
|
|
2468
|
+
required: [
|
|
2469
|
+
'name',
|
|
2470
|
+
'region',
|
|
2471
|
+
'uri',
|
|
2472
|
+
'tags',
|
|
2473
|
+
'totalSize'
|
|
2474
|
+
],
|
|
2475
|
+
additionalProperties: false
|
|
2476
|
+
};
|
|
2477
|
+
export const RegistryTagSchema = {
|
|
2478
|
+
type: 'object',
|
|
2479
|
+
properties: {
|
|
2480
|
+
name: {
|
|
2481
|
+
type: 'string',
|
|
2482
|
+
description: 'Tag name.',
|
|
2483
|
+
example: 'latest'
|
|
2484
|
+
},
|
|
2485
|
+
digest: {
|
|
2486
|
+
type: 'string',
|
|
2487
|
+
description: 'Manifest digest for pulling by digest.',
|
|
2488
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2489
|
+
},
|
|
2490
|
+
mediaType: {
|
|
2491
|
+
type: 'string',
|
|
2492
|
+
description: 'Media type of the manifest.',
|
|
2493
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
2494
|
+
},
|
|
2495
|
+
config: {
|
|
2496
|
+
type: 'object',
|
|
2497
|
+
properties: {
|
|
2498
|
+
size: {
|
|
2499
|
+
type: 'number',
|
|
2500
|
+
format: 'float',
|
|
2501
|
+
description: 'Size of the config in bytes.',
|
|
2502
|
+
example: 1234
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
required: [
|
|
2506
|
+
'size'
|
|
2507
|
+
],
|
|
2508
|
+
additionalProperties: false,
|
|
2509
|
+
description: 'Manifest config metadata.'
|
|
2510
|
+
},
|
|
2511
|
+
layers: {
|
|
2512
|
+
type: 'array',
|
|
2513
|
+
items: {
|
|
2514
|
+
type: 'object',
|
|
2515
|
+
properties: {
|
|
2516
|
+
digest: {
|
|
2517
|
+
type: 'string',
|
|
2518
|
+
description: 'Digest of the layer.',
|
|
2519
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2520
|
+
},
|
|
2521
|
+
size: {
|
|
2522
|
+
type: 'number',
|
|
2523
|
+
format: 'float',
|
|
2524
|
+
description: 'Size of the layer in bytes.',
|
|
2525
|
+
example: 5678
|
|
2526
|
+
}
|
|
2527
|
+
},
|
|
2528
|
+
required: [
|
|
2529
|
+
'size'
|
|
2530
|
+
],
|
|
2531
|
+
additionalProperties: false
|
|
2532
|
+
},
|
|
2533
|
+
description: 'Array of layer metadata.'
|
|
2534
|
+
},
|
|
2535
|
+
manifests: {
|
|
2536
|
+
type: 'array',
|
|
2537
|
+
items: {
|
|
2538
|
+
type: 'object',
|
|
2539
|
+
properties: {
|
|
2540
|
+
digest: {
|
|
2541
|
+
type: 'string',
|
|
2542
|
+
description: 'Digest of the manifest.',
|
|
2543
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2544
|
+
},
|
|
2545
|
+
platform: {
|
|
2546
|
+
type: 'object',
|
|
2547
|
+
properties: {
|
|
2548
|
+
architecture: {
|
|
2549
|
+
type: 'string',
|
|
2550
|
+
description: 'Architecture of the platform.',
|
|
2551
|
+
example: 'amd64'
|
|
2552
|
+
},
|
|
2553
|
+
os: {
|
|
2554
|
+
type: 'string',
|
|
2555
|
+
description: 'Operating system of the platform.',
|
|
2556
|
+
example: 'linux'
|
|
2557
|
+
},
|
|
2558
|
+
variant: {
|
|
2559
|
+
type: 'string',
|
|
2560
|
+
description: 'Variant of the platform (e.g., v7, v8 for ARM).',
|
|
2561
|
+
example: 'v8'
|
|
2562
|
+
}
|
|
2563
|
+
},
|
|
2564
|
+
required: [
|
|
2565
|
+
'architecture',
|
|
2566
|
+
'os'
|
|
2567
|
+
],
|
|
2568
|
+
additionalProperties: false,
|
|
2569
|
+
description: 'Platform information for the manifest.'
|
|
2570
|
+
},
|
|
2571
|
+
layers: {
|
|
2572
|
+
type: 'array',
|
|
2573
|
+
items: {
|
|
2574
|
+
type: 'object',
|
|
2575
|
+
properties: {
|
|
2576
|
+
digest: {
|
|
2577
|
+
type: 'string',
|
|
2578
|
+
description: 'Digest of the layer.',
|
|
2579
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2580
|
+
},
|
|
2581
|
+
size: {
|
|
2582
|
+
type: 'number',
|
|
2583
|
+
format: 'float',
|
|
2584
|
+
description: 'Size of the layer in bytes.',
|
|
2585
|
+
example: 5678
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
required: [
|
|
2589
|
+
'size'
|
|
2590
|
+
],
|
|
2591
|
+
additionalProperties: false
|
|
2592
|
+
},
|
|
2593
|
+
description: 'Layers for this platform.'
|
|
2594
|
+
},
|
|
2595
|
+
size: {
|
|
2596
|
+
type: 'number',
|
|
2597
|
+
format: 'float',
|
|
2598
|
+
description: 'Total size of this platform manifest in bytes.',
|
|
2599
|
+
example: 12345678
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
required: [
|
|
2603
|
+
'digest'
|
|
2604
|
+
],
|
|
2605
|
+
additionalProperties: false
|
|
2606
|
+
},
|
|
2607
|
+
description: 'Array of manifests for multi-arch images.'
|
|
2608
|
+
},
|
|
2609
|
+
size: {
|
|
2610
|
+
type: 'number',
|
|
2611
|
+
format: 'float',
|
|
2612
|
+
description: 'Total size of the tag in bytes.',
|
|
2613
|
+
example: 123456789
|
|
2614
|
+
},
|
|
2615
|
+
region: {
|
|
2616
|
+
type: 'string',
|
|
2617
|
+
description: 'Registry region.',
|
|
2618
|
+
example: 'northamerica'
|
|
2619
|
+
},
|
|
2620
|
+
repository: {
|
|
2621
|
+
type: 'string',
|
|
2622
|
+
description: 'Repository name.',
|
|
2623
|
+
example: 'my-app'
|
|
2624
|
+
},
|
|
2625
|
+
uri: {
|
|
2626
|
+
type: 'string',
|
|
2627
|
+
description: 'Full URI of the tag.',
|
|
2628
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
|
|
2629
|
+
}
|
|
2630
|
+
},
|
|
2631
|
+
required: [
|
|
2632
|
+
'name',
|
|
2633
|
+
'digest',
|
|
2634
|
+
'size',
|
|
2635
|
+
'region',
|
|
2636
|
+
'repository',
|
|
2637
|
+
'uri'
|
|
2638
|
+
],
|
|
2639
|
+
additionalProperties: false
|
|
2640
|
+
};
|
|
2641
|
+
export const TicketAttachmentSchema = {
|
|
2642
|
+
type: 'object',
|
|
2643
|
+
properties: {
|
|
2644
|
+
id: {
|
|
2645
|
+
type: 'string',
|
|
2646
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2647
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2648
|
+
},
|
|
2649
|
+
filename: {
|
|
2650
|
+
type: 'string',
|
|
2651
|
+
description: 'Original filename as uploaded.',
|
|
2652
|
+
example: 'debug.log'
|
|
2653
|
+
},
|
|
2654
|
+
content_type: {
|
|
2655
|
+
type: 'string',
|
|
2656
|
+
description: 'MIME content type of the attachment.',
|
|
2657
|
+
example: 'text/plain'
|
|
2658
|
+
},
|
|
2659
|
+
size: {
|
|
2660
|
+
type: 'integer',
|
|
2661
|
+
description: 'Size of the attachment in bytes.',
|
|
2662
|
+
example: 12345
|
|
2663
|
+
}
|
|
2664
|
+
},
|
|
2665
|
+
required: [
|
|
2666
|
+
'id',
|
|
2667
|
+
'filename',
|
|
2668
|
+
'content_type',
|
|
2669
|
+
'size'
|
|
2670
|
+
],
|
|
2671
|
+
additionalProperties: false
|
|
2672
|
+
};
|
|
2673
|
+
export const TicketCreateInputSchema = {
|
|
2674
|
+
type: 'object',
|
|
2675
|
+
properties: {
|
|
2676
|
+
category: {
|
|
2677
|
+
type: 'string',
|
|
2678
|
+
description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
|
|
2679
|
+
example: 'technical',
|
|
2680
|
+
enum: [
|
|
2681
|
+
'billing',
|
|
2682
|
+
'technical',
|
|
2683
|
+
'general'
|
|
2684
|
+
]
|
|
2685
|
+
},
|
|
2686
|
+
body: {
|
|
2687
|
+
type: 'string',
|
|
2688
|
+
maxLength: 50000,
|
|
2689
|
+
minLength: 1,
|
|
2690
|
+
pattern: '\\S',
|
|
2691
|
+
description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
|
|
2692
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
2693
|
+
},
|
|
2694
|
+
properties: {
|
|
2695
|
+
type: 'object',
|
|
2696
|
+
additionalProperties: true,
|
|
2697
|
+
description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
|
|
2698
|
+
example: {
|
|
2699
|
+
subcategory: 'cluster-question',
|
|
2700
|
+
cluster_id: '60c72b2f9f1b2c001f8e4d3a'
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
},
|
|
2704
|
+
required: [
|
|
2705
|
+
'category',
|
|
2706
|
+
'body'
|
|
2707
|
+
],
|
|
2708
|
+
additionalProperties: false
|
|
2709
|
+
};
|
|
2710
|
+
export const TicketListResponseSchema = {
|
|
2711
|
+
type: 'object',
|
|
2712
|
+
properties: {
|
|
2713
|
+
items: {
|
|
2714
|
+
type: 'array',
|
|
2715
|
+
items: {
|
|
2716
|
+
type: 'object',
|
|
2717
|
+
properties: {
|
|
2718
|
+
id: {
|
|
2719
|
+
type: 'string',
|
|
2720
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
2721
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
2722
|
+
},
|
|
2723
|
+
status: {
|
|
2724
|
+
type: 'string',
|
|
2725
|
+
description: 'Current state of the ticket.',
|
|
2726
|
+
example: 'waiting_on_us',
|
|
2727
|
+
enum: [
|
|
2728
|
+
'waiting_on_us',
|
|
2729
|
+
'waiting_on_user',
|
|
2730
|
+
'closed'
|
|
2731
|
+
]
|
|
2732
|
+
},
|
|
2733
|
+
category: {
|
|
2734
|
+
type: 'string',
|
|
2735
|
+
description: 'Ticket category.',
|
|
2736
|
+
example: 'technical',
|
|
2737
|
+
enum: [
|
|
2738
|
+
'billing',
|
|
2739
|
+
'technical',
|
|
2740
|
+
'general'
|
|
2741
|
+
]
|
|
2742
|
+
},
|
|
2743
|
+
summary: {
|
|
2744
|
+
type: 'string',
|
|
2745
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
2746
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
2747
|
+
},
|
|
2748
|
+
closed_at: {
|
|
2749
|
+
type: 'string',
|
|
2750
|
+
format: 'date-time',
|
|
2751
|
+
nullable: true,
|
|
2752
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
2753
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
2754
|
+
},
|
|
2755
|
+
date_created: {
|
|
2756
|
+
type: 'string',
|
|
2757
|
+
format: 'date-time',
|
|
2758
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
2759
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2760
|
+
},
|
|
2761
|
+
date_updated: {
|
|
2762
|
+
type: 'string',
|
|
2763
|
+
format: 'date-time',
|
|
2764
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
2765
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2766
|
+
},
|
|
2767
|
+
messages: {
|
|
2768
|
+
type: 'array',
|
|
2769
|
+
items: {
|
|
2770
|
+
type: 'object',
|
|
2771
|
+
properties: {
|
|
2772
|
+
id: {
|
|
2773
|
+
type: 'string',
|
|
2774
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
2775
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
2776
|
+
},
|
|
2777
|
+
type: {
|
|
2778
|
+
type: 'string',
|
|
2779
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
2780
|
+
example: 'customer_reply',
|
|
2781
|
+
enum: [
|
|
2782
|
+
'customer_reply',
|
|
2783
|
+
'agent_reply'
|
|
2784
|
+
]
|
|
2785
|
+
},
|
|
2786
|
+
body: {
|
|
2787
|
+
type: 'string',
|
|
2788
|
+
description: 'Message body in markdown.',
|
|
2789
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2790
|
+
},
|
|
2791
|
+
author_first_name: {
|
|
2792
|
+
type: 'string',
|
|
2793
|
+
nullable: true,
|
|
2794
|
+
description: 'First name of the author. Null when not provided.',
|
|
2795
|
+
example: 'Jane'
|
|
2796
|
+
},
|
|
2797
|
+
author_last_name: {
|
|
2798
|
+
type: 'string',
|
|
2799
|
+
nullable: true,
|
|
2800
|
+
description: 'Last name of the author. Null when not provided.',
|
|
2801
|
+
example: 'Doe'
|
|
2802
|
+
},
|
|
2803
|
+
attachments: {
|
|
2804
|
+
type: 'array',
|
|
2805
|
+
items: {
|
|
2806
|
+
type: 'object',
|
|
2807
|
+
properties: {
|
|
2808
|
+
id: {
|
|
2809
|
+
type: 'string',
|
|
2810
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2811
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2812
|
+
},
|
|
2813
|
+
filename: {
|
|
2814
|
+
type: 'string',
|
|
2815
|
+
description: 'Original filename as uploaded.',
|
|
2816
|
+
example: 'debug.log'
|
|
2817
|
+
},
|
|
2818
|
+
content_type: {
|
|
2819
|
+
type: 'string',
|
|
2820
|
+
description: 'MIME content type of the attachment.',
|
|
2821
|
+
example: 'text/plain'
|
|
2822
|
+
},
|
|
2823
|
+
size: {
|
|
2824
|
+
type: 'integer',
|
|
2825
|
+
description: 'Size of the attachment in bytes.',
|
|
2826
|
+
example: 12345
|
|
2827
|
+
}
|
|
2828
|
+
},
|
|
2829
|
+
required: [
|
|
2830
|
+
'id',
|
|
2831
|
+
'filename',
|
|
2832
|
+
'content_type',
|
|
2833
|
+
'size'
|
|
2834
|
+
],
|
|
2835
|
+
additionalProperties: false
|
|
2836
|
+
},
|
|
2837
|
+
description: 'Attachments associated with this message.',
|
|
2838
|
+
example: []
|
|
2839
|
+
},
|
|
2840
|
+
date_created: {
|
|
2841
|
+
type: 'string',
|
|
2842
|
+
format: 'date-time',
|
|
2843
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
2844
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2845
|
+
}
|
|
2846
|
+
},
|
|
2847
|
+
required: [
|
|
2848
|
+
'id',
|
|
2849
|
+
'type',
|
|
2850
|
+
'body',
|
|
2851
|
+
'date_created'
|
|
2852
|
+
],
|
|
2853
|
+
additionalProperties: false
|
|
2854
|
+
},
|
|
2855
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
2856
|
+
}
|
|
2857
|
+
},
|
|
2858
|
+
required: [
|
|
2859
|
+
'id',
|
|
2860
|
+
'status',
|
|
2861
|
+
'category',
|
|
2862
|
+
'summary',
|
|
2863
|
+
'date_created',
|
|
2864
|
+
'date_updated'
|
|
2865
|
+
],
|
|
2866
|
+
additionalProperties: false
|
|
2867
|
+
},
|
|
2868
|
+
description: 'Tickets for the organization, ordered newest first. Messages are omitted from list responses.'
|
|
2869
|
+
}
|
|
2870
|
+
},
|
|
2871
|
+
required: [
|
|
2872
|
+
'items'
|
|
2873
|
+
],
|
|
2874
|
+
additionalProperties: false
|
|
2875
|
+
};
|
|
2876
|
+
export const TicketMessageInputSchema = {
|
|
2877
|
+
type: 'object',
|
|
2878
|
+
properties: {
|
|
2879
|
+
body: {
|
|
2880
|
+
type: 'string',
|
|
2881
|
+
maxLength: 50000,
|
|
2882
|
+
minLength: 1,
|
|
2883
|
+
pattern: '\\S',
|
|
2884
|
+
description: 'Reply body in markdown.',
|
|
2885
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2886
|
+
}
|
|
2887
|
+
},
|
|
2888
|
+
required: [
|
|
2889
|
+
'body'
|
|
2890
|
+
],
|
|
2891
|
+
additionalProperties: false
|
|
2892
|
+
};
|
|
2893
|
+
export const TicketMessageSchema = {
|
|
2894
|
+
type: 'object',
|
|
2895
|
+
properties: {
|
|
2896
|
+
id: {
|
|
2897
|
+
type: 'string',
|
|
2898
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
2899
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
2900
|
+
},
|
|
2901
|
+
type: {
|
|
2902
|
+
type: 'string',
|
|
2903
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
2904
|
+
example: 'customer_reply',
|
|
2905
|
+
enum: [
|
|
2906
|
+
'customer_reply',
|
|
2907
|
+
'agent_reply'
|
|
2908
|
+
]
|
|
2909
|
+
},
|
|
2910
|
+
body: {
|
|
2911
|
+
type: 'string',
|
|
2912
|
+
description: 'Message body in markdown.',
|
|
2913
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2914
|
+
},
|
|
2915
|
+
author_first_name: {
|
|
2916
|
+
type: 'string',
|
|
2917
|
+
description: 'First name of the author. Null when not provided.',
|
|
2918
|
+
example: 'Jane'
|
|
2919
|
+
},
|
|
2920
|
+
author_last_name: {
|
|
2921
|
+
type: 'string',
|
|
2922
|
+
description: 'Last name of the author. Null when not provided.',
|
|
2923
|
+
example: 'Doe'
|
|
2924
|
+
},
|
|
2925
|
+
attachments: {
|
|
2926
|
+
type: 'array',
|
|
2927
|
+
items: {
|
|
2928
|
+
type: 'object',
|
|
2929
|
+
properties: {
|
|
2930
|
+
id: {
|
|
2931
|
+
type: 'string',
|
|
2932
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2933
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
1283
2934
|
},
|
|
1284
|
-
|
|
1285
|
-
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
1286
|
-
},
|
|
1287
|
-
regions: {
|
|
1288
|
-
type: 'array',
|
|
1289
|
-
items: {
|
|
2935
|
+
filename: {
|
|
1290
2936
|
type: 'string',
|
|
1291
|
-
|
|
2937
|
+
description: 'Original filename as uploaded.',
|
|
2938
|
+
example: 'debug.log'
|
|
1292
2939
|
},
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
type: 'array',
|
|
1298
|
-
items: {
|
|
1299
|
-
type: 'object',
|
|
1300
|
-
properties: {
|
|
1301
|
-
id: {
|
|
1302
|
-
type: 'string',
|
|
1303
|
-
description: 'Id of the control plane version. Used in API calls.',
|
|
1304
|
-
example: '1.29.x-cfke.x'
|
|
1305
|
-
},
|
|
1306
|
-
label: {
|
|
1307
|
-
type: 'string',
|
|
1308
|
-
description: 'Label of the control plane version. Used in frontent UI.',
|
|
1309
|
-
example: '1.29.x (Always latest 1.29 patch version)'
|
|
1310
|
-
}
|
|
1311
|
-
},
|
|
1312
|
-
required: ['id', 'label'],
|
|
1313
|
-
additionalProperties: false
|
|
2940
|
+
content_type: {
|
|
2941
|
+
type: 'string',
|
|
2942
|
+
description: 'MIME content type of the attachment.',
|
|
2943
|
+
example: 'text/plain'
|
|
1314
2944
|
},
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
2945
|
+
size: {
|
|
2946
|
+
type: 'integer',
|
|
2947
|
+
description: 'Size of the attachment in bytes.',
|
|
2948
|
+
example: 12345
|
|
2949
|
+
}
|
|
2950
|
+
},
|
|
2951
|
+
required: [
|
|
2952
|
+
'id',
|
|
2953
|
+
'filename',
|
|
2954
|
+
'content_type',
|
|
2955
|
+
'size'
|
|
2956
|
+
],
|
|
2957
|
+
additionalProperties: false
|
|
1318
2958
|
},
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
description: 'For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.'
|
|
2959
|
+
description: 'Attachments associated with this message.',
|
|
2960
|
+
example: []
|
|
1322
2961
|
},
|
|
1323
|
-
|
|
2962
|
+
date_created: {
|
|
1324
2963
|
type: 'string',
|
|
1325
|
-
|
|
1326
|
-
|
|
2964
|
+
format: 'date-time',
|
|
2965
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
2966
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1327
2967
|
}
|
|
1328
2968
|
},
|
|
1329
|
-
required: [
|
|
2969
|
+
required: [
|
|
2970
|
+
'id',
|
|
2971
|
+
'type',
|
|
2972
|
+
'body',
|
|
2973
|
+
'date_created'
|
|
2974
|
+
],
|
|
1330
2975
|
additionalProperties: false
|
|
1331
2976
|
};
|
|
1332
|
-
export const
|
|
2977
|
+
export const TicketSchema = {
|
|
1333
2978
|
type: 'object',
|
|
1334
2979
|
properties: {
|
|
1335
2980
|
id: {
|
|
1336
2981
|
type: 'string',
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
|
|
2982
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
2983
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
1340
2984
|
},
|
|
1341
|
-
|
|
1342
|
-
type: '
|
|
1343
|
-
description: '
|
|
1344
|
-
example:
|
|
2985
|
+
status: {
|
|
2986
|
+
type: 'string',
|
|
2987
|
+
description: 'Current state of the ticket.',
|
|
2988
|
+
example: 'waiting_on_us',
|
|
2989
|
+
enum: [
|
|
2990
|
+
'waiting_on_us',
|
|
2991
|
+
'waiting_on_user',
|
|
2992
|
+
'closed'
|
|
2993
|
+
]
|
|
1345
2994
|
},
|
|
1346
|
-
|
|
2995
|
+
category: {
|
|
1347
2996
|
type: 'string',
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
2997
|
+
description: 'Ticket category.',
|
|
2998
|
+
example: 'technical',
|
|
2999
|
+
enum: [
|
|
3000
|
+
'billing',
|
|
3001
|
+
'technical',
|
|
3002
|
+
'general'
|
|
3003
|
+
]
|
|
1352
3004
|
},
|
|
1353
|
-
|
|
3005
|
+
summary: {
|
|
1354
3006
|
type: 'string',
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
example: '4242'
|
|
3007
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
3008
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
1358
3009
|
},
|
|
1359
|
-
|
|
1360
|
-
type: '
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
description: "Two-digit number representing the card's expiration month.",
|
|
1365
|
-
example: '12'
|
|
3010
|
+
closed_at: {
|
|
3011
|
+
type: 'string',
|
|
3012
|
+
format: 'date-time',
|
|
3013
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
3014
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
1366
3015
|
},
|
|
1367
|
-
|
|
1368
|
-
type: '
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
example: '2028'
|
|
3016
|
+
date_created: {
|
|
3017
|
+
type: 'string',
|
|
3018
|
+
format: 'date-time',
|
|
3019
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
3020
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1373
3021
|
},
|
|
1374
|
-
|
|
3022
|
+
date_updated: {
|
|
1375
3023
|
type: 'string',
|
|
1376
|
-
|
|
1377
|
-
description: '
|
|
1378
|
-
example: '
|
|
1379
|
-
|
|
3024
|
+
format: 'date-time',
|
|
3025
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
3026
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3027
|
+
},
|
|
3028
|
+
messages: {
|
|
3029
|
+
type: 'array',
|
|
3030
|
+
items: {
|
|
3031
|
+
type: 'object',
|
|
3032
|
+
properties: {
|
|
3033
|
+
id: {
|
|
3034
|
+
type: 'string',
|
|
3035
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
3036
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
3037
|
+
},
|
|
3038
|
+
type: {
|
|
3039
|
+
type: 'string',
|
|
3040
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
3041
|
+
example: 'customer_reply',
|
|
3042
|
+
enum: [
|
|
3043
|
+
'customer_reply',
|
|
3044
|
+
'agent_reply'
|
|
3045
|
+
]
|
|
3046
|
+
},
|
|
3047
|
+
body: {
|
|
3048
|
+
type: 'string',
|
|
3049
|
+
description: 'Message body in markdown.',
|
|
3050
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3051
|
+
},
|
|
3052
|
+
author_first_name: {
|
|
3053
|
+
type: 'string',
|
|
3054
|
+
description: 'First name of the author. Null when not provided.',
|
|
3055
|
+
example: 'Jane'
|
|
3056
|
+
},
|
|
3057
|
+
author_last_name: {
|
|
3058
|
+
type: 'string',
|
|
3059
|
+
description: 'Last name of the author. Null when not provided.',
|
|
3060
|
+
example: 'Doe'
|
|
3061
|
+
},
|
|
3062
|
+
attachments: {
|
|
3063
|
+
type: 'array',
|
|
3064
|
+
items: {
|
|
3065
|
+
type: 'object',
|
|
3066
|
+
properties: {
|
|
3067
|
+
id: {
|
|
3068
|
+
type: 'string',
|
|
3069
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
3070
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
3071
|
+
},
|
|
3072
|
+
filename: {
|
|
3073
|
+
type: 'string',
|
|
3074
|
+
description: 'Original filename as uploaded.',
|
|
3075
|
+
example: 'debug.log'
|
|
3076
|
+
},
|
|
3077
|
+
content_type: {
|
|
3078
|
+
type: 'string',
|
|
3079
|
+
description: 'MIME content type of the attachment.',
|
|
3080
|
+
example: 'text/plain'
|
|
3081
|
+
},
|
|
3082
|
+
size: {
|
|
3083
|
+
type: 'integer',
|
|
3084
|
+
description: 'Size of the attachment in bytes.',
|
|
3085
|
+
example: 12345
|
|
3086
|
+
}
|
|
3087
|
+
},
|
|
3088
|
+
required: [
|
|
3089
|
+
'id',
|
|
3090
|
+
'filename',
|
|
3091
|
+
'content_type',
|
|
3092
|
+
'size'
|
|
3093
|
+
],
|
|
3094
|
+
additionalProperties: false
|
|
3095
|
+
},
|
|
3096
|
+
description: 'Attachments associated with this message.',
|
|
3097
|
+
example: []
|
|
3098
|
+
},
|
|
3099
|
+
date_created: {
|
|
3100
|
+
type: 'string',
|
|
3101
|
+
format: 'date-time',
|
|
3102
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
3103
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
3106
|
+
required: [
|
|
3107
|
+
'id',
|
|
3108
|
+
'type',
|
|
3109
|
+
'body',
|
|
3110
|
+
'date_created'
|
|
3111
|
+
],
|
|
3112
|
+
additionalProperties: false
|
|
3113
|
+
},
|
|
3114
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
1380
3115
|
}
|
|
1381
3116
|
},
|
|
1382
|
-
required: [
|
|
3117
|
+
required: [
|
|
3118
|
+
'id',
|
|
3119
|
+
'status',
|
|
3120
|
+
'category',
|
|
3121
|
+
'summary',
|
|
3122
|
+
'date_created',
|
|
3123
|
+
'date_updated'
|
|
3124
|
+
],
|
|
1383
3125
|
additionalProperties: false
|
|
1384
3126
|
};
|
|
1385
3127
|
export const TokenCreateInputSchema = {
|
|
@@ -1397,10 +3139,16 @@ export const TokenCreateInputSchema = {
|
|
|
1397
3139
|
type: 'string',
|
|
1398
3140
|
description: 'Role assumed by the token.',
|
|
1399
3141
|
example: 'User',
|
|
1400
|
-
enum: [
|
|
3142
|
+
enum: [
|
|
3143
|
+
'Administrator',
|
|
3144
|
+
'User'
|
|
3145
|
+
]
|
|
1401
3146
|
}
|
|
1402
3147
|
},
|
|
1403
|
-
required: [
|
|
3148
|
+
required: [
|
|
3149
|
+
'name',
|
|
3150
|
+
'role'
|
|
3151
|
+
],
|
|
1404
3152
|
additionalProperties: false
|
|
1405
3153
|
};
|
|
1406
3154
|
export const TokenSchema = {
|
|
@@ -1418,7 +3166,10 @@ export const TokenSchema = {
|
|
|
1418
3166
|
type: 'string',
|
|
1419
3167
|
description: 'Role assumed by the token.',
|
|
1420
3168
|
example: 'User',
|
|
1421
|
-
enum: [
|
|
3169
|
+
enum: [
|
|
3170
|
+
'Administrator',
|
|
3171
|
+
'User'
|
|
3172
|
+
]
|
|
1422
3173
|
},
|
|
1423
3174
|
id: {
|
|
1424
3175
|
type: 'string',
|
|
@@ -1437,7 +3188,11 @@ export const TokenSchema = {
|
|
|
1437
3188
|
example: '2023-12-20T13:53:32.000Z'
|
|
1438
3189
|
}
|
|
1439
3190
|
},
|
|
1440
|
-
required: [
|
|
3191
|
+
required: [
|
|
3192
|
+
'name',
|
|
3193
|
+
'role',
|
|
3194
|
+
'date_created'
|
|
3195
|
+
],
|
|
1441
3196
|
additionalProperties: false
|
|
1442
3197
|
};
|
|
1443
3198
|
export const TokenUpdateInputSchema = {
|
|
@@ -1455,9 +3210,127 @@ export const TokenUpdateInputSchema = {
|
|
|
1455
3210
|
type: 'string',
|
|
1456
3211
|
description: 'Role assumed by the token.',
|
|
1457
3212
|
example: 'User',
|
|
1458
|
-
enum: [
|
|
3213
|
+
enum: [
|
|
3214
|
+
'Administrator',
|
|
3215
|
+
'User'
|
|
3216
|
+
]
|
|
3217
|
+
}
|
|
3218
|
+
},
|
|
3219
|
+
additionalProperties: false
|
|
3220
|
+
};
|
|
3221
|
+
export const UsageFacetsSchema = {
|
|
3222
|
+
type: 'object',
|
|
3223
|
+
properties: {
|
|
3224
|
+
cluster_id: {
|
|
3225
|
+
type: 'array',
|
|
3226
|
+
items: {
|
|
3227
|
+
type: 'string'
|
|
3228
|
+
},
|
|
3229
|
+
description: 'List of unique cluster IDs',
|
|
3230
|
+
example: [
|
|
3231
|
+
'6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3232
|
+
]
|
|
3233
|
+
},
|
|
3234
|
+
product: {
|
|
3235
|
+
type: 'array',
|
|
3236
|
+
items: {
|
|
3237
|
+
type: 'string'
|
|
3238
|
+
},
|
|
3239
|
+
description: 'List of unique products',
|
|
3240
|
+
example: [
|
|
3241
|
+
'cfke_controlplane',
|
|
3242
|
+
'cfke_connected_nodes'
|
|
3243
|
+
]
|
|
3244
|
+
}
|
|
3245
|
+
},
|
|
3246
|
+
additionalProperties: false
|
|
3247
|
+
};
|
|
3248
|
+
export const UsageResponseSchema = {
|
|
3249
|
+
type: 'object',
|
|
3250
|
+
properties: {
|
|
3251
|
+
data: {
|
|
3252
|
+
type: 'array',
|
|
3253
|
+
items: {
|
|
3254
|
+
type: 'object',
|
|
3255
|
+
properties: {
|
|
3256
|
+
hour: {
|
|
3257
|
+
type: 'string',
|
|
3258
|
+
description: 'Hour of the usage',
|
|
3259
|
+
example: '2019-01-01T00:00:00.000Z'
|
|
3260
|
+
},
|
|
3261
|
+
cluster_id: {
|
|
3262
|
+
type: 'string',
|
|
3263
|
+
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
3264
|
+
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3265
|
+
},
|
|
3266
|
+
product: {
|
|
3267
|
+
type: 'string',
|
|
3268
|
+
description: 'The product the usage is associated with',
|
|
3269
|
+
example: 'cfke_controlplane'
|
|
3270
|
+
},
|
|
3271
|
+
value: {
|
|
3272
|
+
type: 'number',
|
|
3273
|
+
format: 'float',
|
|
3274
|
+
description: 'Consumption',
|
|
3275
|
+
example: 4
|
|
3276
|
+
},
|
|
3277
|
+
price: {
|
|
3278
|
+
type: 'number',
|
|
3279
|
+
format: 'float',
|
|
3280
|
+
description: 'Price per unit',
|
|
3281
|
+
example: 0.01
|
|
3282
|
+
},
|
|
3283
|
+
total: {
|
|
3284
|
+
type: 'number',
|
|
3285
|
+
format: 'float',
|
|
3286
|
+
description: 'Total cost'
|
|
3287
|
+
}
|
|
3288
|
+
},
|
|
3289
|
+
required: [
|
|
3290
|
+
'hour',
|
|
3291
|
+
'cluster_id',
|
|
3292
|
+
'product',
|
|
3293
|
+
'value',
|
|
3294
|
+
'price',
|
|
3295
|
+
'total'
|
|
3296
|
+
],
|
|
3297
|
+
additionalProperties: false
|
|
3298
|
+
},
|
|
3299
|
+
description: 'Usage data'
|
|
3300
|
+
},
|
|
3301
|
+
facets: {
|
|
3302
|
+
type: 'object',
|
|
3303
|
+
properties: {
|
|
3304
|
+
cluster_id: {
|
|
3305
|
+
type: 'array',
|
|
3306
|
+
items: {
|
|
3307
|
+
type: 'string'
|
|
3308
|
+
},
|
|
3309
|
+
description: 'List of unique cluster IDs',
|
|
3310
|
+
example: [
|
|
3311
|
+
'6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3312
|
+
]
|
|
3313
|
+
},
|
|
3314
|
+
product: {
|
|
3315
|
+
type: 'array',
|
|
3316
|
+
items: {
|
|
3317
|
+
type: 'string'
|
|
3318
|
+
},
|
|
3319
|
+
description: 'List of unique products',
|
|
3320
|
+
example: [
|
|
3321
|
+
'cfke_controlplane',
|
|
3322
|
+
'cfke_connected_nodes'
|
|
3323
|
+
]
|
|
3324
|
+
}
|
|
3325
|
+
},
|
|
3326
|
+
additionalProperties: false,
|
|
3327
|
+
description: 'Facets for filtering'
|
|
1459
3328
|
}
|
|
1460
3329
|
},
|
|
3330
|
+
required: [
|
|
3331
|
+
'data',
|
|
3332
|
+
'facets'
|
|
3333
|
+
],
|
|
1461
3334
|
additionalProperties: false
|
|
1462
3335
|
};
|
|
1463
3336
|
export const UsageSchema = {
|
|
@@ -1470,90 +3343,40 @@ export const UsageSchema = {
|
|
|
1470
3343
|
},
|
|
1471
3344
|
cluster_id: {
|
|
1472
3345
|
type: 'string',
|
|
1473
|
-
format: 'uuid',
|
|
1474
3346
|
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1475
3347
|
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1476
3348
|
},
|
|
1477
|
-
cluster_tier: {
|
|
1478
|
-
type: 'string',
|
|
1479
|
-
description: 'Tier of the cluster.',
|
|
1480
|
-
example: 'pro',
|
|
1481
|
-
enum: ['basic', 'pro', '']
|
|
1482
|
-
},
|
|
1483
3349
|
product: {
|
|
1484
3350
|
type: 'string',
|
|
1485
3351
|
description: 'The product the usage is associated with',
|
|
1486
|
-
example: 'cfke_controlplane'
|
|
1487
|
-
enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
|
|
1488
|
-
},
|
|
1489
|
-
node_name: {
|
|
1490
|
-
type: 'string',
|
|
1491
|
-
description: 'Name of the Kubernetes node',
|
|
1492
|
-
example: 'flexible-moth-956037384'
|
|
1493
|
-
},
|
|
1494
|
-
sku: {
|
|
1495
|
-
type: 'string',
|
|
1496
|
-
description: 'SKU of the Kubernetes node',
|
|
1497
|
-
example: 'GCP-NORTHAMERICA-NORTHEAST1-A-G1-SMALL-SPOT'
|
|
3352
|
+
example: 'cfke_controlplane'
|
|
1498
3353
|
},
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
description: 'CPU core count of the node',
|
|
1505
|
-
example: 4
|
|
1506
|
-
},
|
|
1507
|
-
{
|
|
1508
|
-
type: 'string',
|
|
1509
|
-
enum: ['']
|
|
1510
|
-
}
|
|
1511
|
-
]
|
|
3354
|
+
value: {
|
|
3355
|
+
type: 'number',
|
|
3356
|
+
format: 'float',
|
|
3357
|
+
description: 'Consumption',
|
|
3358
|
+
example: 4
|
|
1512
3359
|
},
|
|
1513
3360
|
price: {
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
description: 'Price',
|
|
1519
|
-
example: 4
|
|
1520
|
-
},
|
|
1521
|
-
{
|
|
1522
|
-
type: 'string',
|
|
1523
|
-
enum: ['']
|
|
1524
|
-
}
|
|
1525
|
-
]
|
|
1526
|
-
},
|
|
1527
|
-
value: {
|
|
1528
|
-
anyOf: [
|
|
1529
|
-
{
|
|
1530
|
-
type: 'number',
|
|
1531
|
-
format: 'float',
|
|
1532
|
-
description: 'Value',
|
|
1533
|
-
example: 4
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
type: 'string',
|
|
1537
|
-
enum: ['']
|
|
1538
|
-
}
|
|
1539
|
-
]
|
|
3361
|
+
type: 'number',
|
|
3362
|
+
format: 'float',
|
|
3363
|
+
description: 'Price per unit',
|
|
3364
|
+
example: 0.01
|
|
1540
3365
|
},
|
|
1541
3366
|
total: {
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
format: 'float',
|
|
1546
|
-
description: 'Total',
|
|
1547
|
-
example: 4
|
|
1548
|
-
},
|
|
1549
|
-
{
|
|
1550
|
-
type: 'string',
|
|
1551
|
-
enum: ['']
|
|
1552
|
-
}
|
|
1553
|
-
]
|
|
3367
|
+
type: 'number',
|
|
3368
|
+
format: 'float',
|
|
3369
|
+
description: 'Total cost'
|
|
1554
3370
|
}
|
|
1555
3371
|
},
|
|
1556
|
-
required: [
|
|
3372
|
+
required: [
|
|
3373
|
+
'hour',
|
|
3374
|
+
'cluster_id',
|
|
3375
|
+
'product',
|
|
3376
|
+
'value',
|
|
3377
|
+
'price',
|
|
3378
|
+
'total'
|
|
3379
|
+
],
|
|
1557
3380
|
additionalProperties: false
|
|
1558
3381
|
};
|
|
1559
3382
|
export const UserCreateInputSchema = {
|
|
@@ -1594,16 +3417,28 @@ export const UserCreateInputSchema = {
|
|
|
1594
3417
|
type: 'string',
|
|
1595
3418
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1596
3419
|
example: 'active',
|
|
1597
|
-
enum: [
|
|
3420
|
+
enum: [
|
|
3421
|
+
'active',
|
|
3422
|
+
'inactive'
|
|
3423
|
+
]
|
|
1598
3424
|
},
|
|
1599
3425
|
role: {
|
|
1600
3426
|
type: 'string',
|
|
1601
|
-
description:
|
|
3427
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1602
3428
|
example: 'User',
|
|
1603
|
-
enum: [
|
|
3429
|
+
enum: [
|
|
3430
|
+
'Administrator',
|
|
3431
|
+
'User'
|
|
3432
|
+
]
|
|
1604
3433
|
}
|
|
1605
3434
|
},
|
|
1606
|
-
required: [
|
|
3435
|
+
required: [
|
|
3436
|
+
'email',
|
|
3437
|
+
'first_name',
|
|
3438
|
+
'last_name',
|
|
3439
|
+
'code',
|
|
3440
|
+
'password'
|
|
3441
|
+
],
|
|
1607
3442
|
additionalProperties: false
|
|
1608
3443
|
};
|
|
1609
3444
|
export const UserSchema = {
|
|
@@ -1631,15 +3466,21 @@ export const UserSchema = {
|
|
|
1631
3466
|
},
|
|
1632
3467
|
role: {
|
|
1633
3468
|
type: 'string',
|
|
1634
|
-
description:
|
|
3469
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1635
3470
|
example: 'User',
|
|
1636
|
-
enum: [
|
|
3471
|
+
enum: [
|
|
3472
|
+
'Administrator',
|
|
3473
|
+
'User'
|
|
3474
|
+
]
|
|
1637
3475
|
},
|
|
1638
3476
|
status: {
|
|
1639
3477
|
type: 'string',
|
|
1640
3478
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1641
3479
|
example: 'active',
|
|
1642
|
-
enum: [
|
|
3480
|
+
enum: [
|
|
3481
|
+
'active',
|
|
3482
|
+
'inactive'
|
|
3483
|
+
]
|
|
1643
3484
|
},
|
|
1644
3485
|
id: {
|
|
1645
3486
|
type: 'string',
|
|
@@ -1654,7 +3495,15 @@ export const UserSchema = {
|
|
|
1654
3495
|
example: '2023-11-02T16:08:14.338Z'
|
|
1655
3496
|
}
|
|
1656
3497
|
},
|
|
1657
|
-
required: [
|
|
3498
|
+
required: [
|
|
3499
|
+
'email',
|
|
3500
|
+
'first_name',
|
|
3501
|
+
'last_name',
|
|
3502
|
+
'role',
|
|
3503
|
+
'status',
|
|
3504
|
+
'id',
|
|
3505
|
+
'date_created'
|
|
3506
|
+
],
|
|
1658
3507
|
additionalProperties: false
|
|
1659
3508
|
};
|
|
1660
3509
|
export const UserUpdateInputSchema = {
|
|
@@ -1682,15 +3531,21 @@ export const UserUpdateInputSchema = {
|
|
|
1682
3531
|
},
|
|
1683
3532
|
role: {
|
|
1684
3533
|
type: 'string',
|
|
1685
|
-
description:
|
|
3534
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1686
3535
|
example: 'User',
|
|
1687
|
-
enum: [
|
|
3536
|
+
enum: [
|
|
3537
|
+
'Administrator',
|
|
3538
|
+
'User'
|
|
3539
|
+
]
|
|
1688
3540
|
},
|
|
1689
3541
|
status: {
|
|
1690
3542
|
type: 'string',
|
|
1691
3543
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1692
3544
|
example: 'active',
|
|
1693
|
-
enum: [
|
|
3545
|
+
enum: [
|
|
3546
|
+
'active',
|
|
3547
|
+
'inactive'
|
|
3548
|
+
]
|
|
1694
3549
|
}
|
|
1695
3550
|
},
|
|
1696
3551
|
additionalProperties: false
|