@cloudfleet/sdk 0.0.1-08e325d → 0.0.1-0cf5cae
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 +1125 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1129 -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 +1254 -576
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2528 -656
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +130 -20
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +217 -164
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1020 -348
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3468 -3582
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1165 -1043
- 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,32 +627,57 @@ 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: [
|
|
433
642
|
{
|
|
434
643
|
type: 'string',
|
|
435
644
|
format: 'uri',
|
|
436
|
-
description: 'URL of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
|
|
645
|
+
description: 'URL signed by the private CA of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster. (Deprecated, use endpoint_public instead)',
|
|
437
646
|
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.cloudfleet.dev:6443'
|
|
438
647
|
},
|
|
439
648
|
{
|
|
440
649
|
type: 'string',
|
|
441
|
-
enum: [
|
|
650
|
+
enum: [
|
|
651
|
+
''
|
|
652
|
+
]
|
|
653
|
+
}
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
endpoint_public: {
|
|
657
|
+
anyOf: [
|
|
658
|
+
{
|
|
659
|
+
type: 'string',
|
|
660
|
+
format: 'uri',
|
|
661
|
+
description: 'URL signed by a public CA of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
|
|
662
|
+
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
type: 'string',
|
|
666
|
+
enum: [
|
|
667
|
+
''
|
|
668
|
+
]
|
|
442
669
|
}
|
|
443
670
|
]
|
|
444
671
|
},
|
|
445
672
|
certificate_ca: {
|
|
446
673
|
type: 'string',
|
|
447
674
|
description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
|
|
448
|
-
example:
|
|
449
|
-
MIIC0DCCAbigAwIBAgI...`
|
|
675
|
+
example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
|
|
450
676
|
},
|
|
451
677
|
version_current: {
|
|
452
678
|
type: 'string',
|
|
453
679
|
description: 'Current version of the cluster.',
|
|
454
|
-
example: '1.
|
|
680
|
+
example: '1.33.7-cfke.264'
|
|
455
681
|
},
|
|
456
682
|
created_at: {
|
|
457
683
|
type: 'string',
|
|
@@ -467,9 +693,20 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
467
693
|
type: 'boolean',
|
|
468
694
|
description: 'Indicates if the cluster is ready to be used.',
|
|
469
695
|
example: true
|
|
696
|
+
},
|
|
697
|
+
version_channel: {
|
|
698
|
+
type: 'string',
|
|
699
|
+
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-]+)*))?$',
|
|
700
|
+
description: 'Version of the kubernetes cluster.',
|
|
701
|
+
example: '1.x.x-cfke.x'
|
|
470
702
|
}
|
|
471
703
|
},
|
|
472
|
-
required: [
|
|
704
|
+
required: [
|
|
705
|
+
'name',
|
|
706
|
+
'tier',
|
|
707
|
+
'id',
|
|
708
|
+
'status'
|
|
709
|
+
],
|
|
473
710
|
additionalProperties: false
|
|
474
711
|
};
|
|
475
712
|
export const ClusterUpdateInputSchema = {
|
|
@@ -487,16 +724,21 @@ export const ClusterUpdateInputSchema = {
|
|
|
487
724
|
type: 'string',
|
|
488
725
|
description: 'Tier of the cluster.',
|
|
489
726
|
example: 'pro',
|
|
490
|
-
enum: [
|
|
727
|
+
enum: [
|
|
728
|
+
'basic',
|
|
729
|
+
'pro'
|
|
730
|
+
]
|
|
491
731
|
},
|
|
492
732
|
version_channel: {
|
|
493
733
|
type: 'string',
|
|
494
734
|
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
735
|
description: 'Version of the kubernetes cluster.',
|
|
496
|
-
example: '1.
|
|
736
|
+
example: '1.x.x-cfke.x'
|
|
497
737
|
}
|
|
498
738
|
},
|
|
499
|
-
required: [
|
|
739
|
+
required: [
|
|
740
|
+
'tier'
|
|
741
|
+
],
|
|
500
742
|
additionalProperties: false
|
|
501
743
|
};
|
|
502
744
|
export const FleetCreateInputSchema = {
|
|
@@ -512,7 +754,6 @@ export const FleetCreateInputSchema = {
|
|
|
512
754
|
description: 'CPU limit in cores.'
|
|
513
755
|
}
|
|
514
756
|
},
|
|
515
|
-
required: ['cpu'],
|
|
516
757
|
additionalProperties: false,
|
|
517
758
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
518
759
|
},
|
|
@@ -525,10 +766,11 @@ export const FleetCreateInputSchema = {
|
|
|
525
766
|
},
|
|
526
767
|
project: {
|
|
527
768
|
type: 'string',
|
|
528
|
-
|
|
769
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
770
|
+
description: 'GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.',
|
|
771
|
+
example: 'my-cloudfleet-project'
|
|
529
772
|
}
|
|
530
773
|
},
|
|
531
|
-
required: ['project'],
|
|
532
774
|
additionalProperties: false
|
|
533
775
|
},
|
|
534
776
|
hetzner: {
|
|
@@ -540,10 +782,12 @@ export const FleetCreateInputSchema = {
|
|
|
540
782
|
},
|
|
541
783
|
apiKey: {
|
|
542
784
|
type: 'string',
|
|
543
|
-
|
|
785
|
+
maxLength: 64,
|
|
786
|
+
minLength: 64,
|
|
787
|
+
pattern: '^[A-Za-z0-9]+$',
|
|
788
|
+
description: 'Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.'
|
|
544
789
|
}
|
|
545
790
|
},
|
|
546
|
-
required: ['apiKey'],
|
|
547
791
|
additionalProperties: false
|
|
548
792
|
},
|
|
549
793
|
aws: {
|
|
@@ -555,12 +799,291 @@ export const FleetCreateInputSchema = {
|
|
|
555
799
|
},
|
|
556
800
|
controllerRoleArn: {
|
|
557
801
|
type: 'string',
|
|
558
|
-
|
|
802
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
803
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
804
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
559
805
|
}
|
|
560
806
|
},
|
|
561
|
-
required: ['controllerRoleArn'],
|
|
562
807
|
additionalProperties: false
|
|
563
808
|
},
|
|
809
|
+
constraints: {
|
|
810
|
+
type: 'object',
|
|
811
|
+
properties: {
|
|
812
|
+
'karpenter.sh/capacity-type': {
|
|
813
|
+
type: 'array',
|
|
814
|
+
items: {
|
|
815
|
+
type: 'string',
|
|
816
|
+
enum: [
|
|
817
|
+
'on-demand',
|
|
818
|
+
'spot'
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.'
|
|
822
|
+
},
|
|
823
|
+
'kubernetes.io/arch': {
|
|
824
|
+
type: 'array',
|
|
825
|
+
items: {
|
|
826
|
+
type: 'string',
|
|
827
|
+
enum: [
|
|
828
|
+
'amd64',
|
|
829
|
+
'arm64'
|
|
830
|
+
]
|
|
831
|
+
},
|
|
832
|
+
description: 'Allowed values for `kubernetes.io/arch`.'
|
|
833
|
+
},
|
|
834
|
+
'cfke.io/instance-family': {
|
|
835
|
+
type: 'array',
|
|
836
|
+
items: {
|
|
837
|
+
type: 'string',
|
|
838
|
+
enum: [
|
|
839
|
+
'a1',
|
|
840
|
+
'a2',
|
|
841
|
+
'a3',
|
|
842
|
+
'a4',
|
|
843
|
+
'c1',
|
|
844
|
+
'c2',
|
|
845
|
+
'c2d',
|
|
846
|
+
'c3',
|
|
847
|
+
'c3d',
|
|
848
|
+
'c4',
|
|
849
|
+
'c4a',
|
|
850
|
+
'c4d',
|
|
851
|
+
'c5',
|
|
852
|
+
'c5a',
|
|
853
|
+
'c5ad',
|
|
854
|
+
'c5d',
|
|
855
|
+
'c5n',
|
|
856
|
+
'c6a',
|
|
857
|
+
'c6g',
|
|
858
|
+
'c6gd',
|
|
859
|
+
'c6gn',
|
|
860
|
+
'c6i',
|
|
861
|
+
'c6id',
|
|
862
|
+
'c6in',
|
|
863
|
+
'c7a',
|
|
864
|
+
'c7g',
|
|
865
|
+
'c7gd',
|
|
866
|
+
'c7gn',
|
|
867
|
+
'c7i',
|
|
868
|
+
'c7i-flex',
|
|
869
|
+
'c8g',
|
|
870
|
+
'c8gd',
|
|
871
|
+
'cax',
|
|
872
|
+
'ccx',
|
|
873
|
+
'cpx',
|
|
874
|
+
'cx',
|
|
875
|
+
'd2',
|
|
876
|
+
'd3',
|
|
877
|
+
'd3en',
|
|
878
|
+
'dl1',
|
|
879
|
+
'dl2q',
|
|
880
|
+
'e2',
|
|
881
|
+
'f1',
|
|
882
|
+
'f2',
|
|
883
|
+
'g1',
|
|
884
|
+
'g2',
|
|
885
|
+
'g4ad',
|
|
886
|
+
'g4dn',
|
|
887
|
+
'g5',
|
|
888
|
+
'g5g',
|
|
889
|
+
'g6',
|
|
890
|
+
'g6e',
|
|
891
|
+
'gr6',
|
|
892
|
+
'h1',
|
|
893
|
+
'h3',
|
|
894
|
+
'hpc6a',
|
|
895
|
+
'hpc6id',
|
|
896
|
+
'hpc7a',
|
|
897
|
+
'hpc7g',
|
|
898
|
+
'i2',
|
|
899
|
+
'i3',
|
|
900
|
+
'i3en',
|
|
901
|
+
'i4g',
|
|
902
|
+
'i4i',
|
|
903
|
+
'i7i',
|
|
904
|
+
'i7ie',
|
|
905
|
+
'i8g',
|
|
906
|
+
'im4gn',
|
|
907
|
+
'inf1',
|
|
908
|
+
'inf2',
|
|
909
|
+
'is4gen',
|
|
910
|
+
'm1',
|
|
911
|
+
'm2',
|
|
912
|
+
'm3',
|
|
913
|
+
'm4',
|
|
914
|
+
'm5',
|
|
915
|
+
'm5a',
|
|
916
|
+
'm5ad',
|
|
917
|
+
'm5d',
|
|
918
|
+
'm5dn',
|
|
919
|
+
'm5n',
|
|
920
|
+
'm5zn',
|
|
921
|
+
'm6a',
|
|
922
|
+
'm6g',
|
|
923
|
+
'm6gd',
|
|
924
|
+
'm6i',
|
|
925
|
+
'm6id',
|
|
926
|
+
'm6idn',
|
|
927
|
+
'm6in',
|
|
928
|
+
'm7a',
|
|
929
|
+
'm7g',
|
|
930
|
+
'm7gd',
|
|
931
|
+
'm7i',
|
|
932
|
+
'm7i-flex',
|
|
933
|
+
'm8g',
|
|
934
|
+
'm8gd',
|
|
935
|
+
'n1',
|
|
936
|
+
'n2',
|
|
937
|
+
'n2d',
|
|
938
|
+
'n4',
|
|
939
|
+
'p3',
|
|
940
|
+
'p3dn',
|
|
941
|
+
'p4d',
|
|
942
|
+
'p4de',
|
|
943
|
+
'p5',
|
|
944
|
+
'p5e',
|
|
945
|
+
'p5en',
|
|
946
|
+
'p6-b200',
|
|
947
|
+
'r3',
|
|
948
|
+
'r4',
|
|
949
|
+
'r5',
|
|
950
|
+
'r5a',
|
|
951
|
+
'r5ad',
|
|
952
|
+
'r5b',
|
|
953
|
+
'r5d',
|
|
954
|
+
'r5dn',
|
|
955
|
+
'r5n',
|
|
956
|
+
'r6a',
|
|
957
|
+
'r6g',
|
|
958
|
+
'r6gd',
|
|
959
|
+
'r6i',
|
|
960
|
+
'r6id',
|
|
961
|
+
'r6idn',
|
|
962
|
+
'r6in',
|
|
963
|
+
'r7a',
|
|
964
|
+
'r7g',
|
|
965
|
+
'r7gd',
|
|
966
|
+
'r7i',
|
|
967
|
+
'r7iz',
|
|
968
|
+
'r8g',
|
|
969
|
+
'r8gd',
|
|
970
|
+
't2',
|
|
971
|
+
't2a',
|
|
972
|
+
't2d',
|
|
973
|
+
't3',
|
|
974
|
+
't3a',
|
|
975
|
+
't4g',
|
|
976
|
+
'trn1',
|
|
977
|
+
'trn1n',
|
|
978
|
+
'u-3tb1',
|
|
979
|
+
'u-6tb1',
|
|
980
|
+
'u7i-12tb',
|
|
981
|
+
'u7i-6tb',
|
|
982
|
+
'u7i-8tb',
|
|
983
|
+
'u7in-16tb',
|
|
984
|
+
'u7in-24tb',
|
|
985
|
+
'u7in-32tb',
|
|
986
|
+
'vt1',
|
|
987
|
+
'x1',
|
|
988
|
+
'x1e',
|
|
989
|
+
'x2gd',
|
|
990
|
+
'x2idn',
|
|
991
|
+
'x2iedn',
|
|
992
|
+
'x2iezn',
|
|
993
|
+
'x4',
|
|
994
|
+
'x8g',
|
|
995
|
+
'z1d',
|
|
996
|
+
'z3'
|
|
997
|
+
]
|
|
998
|
+
},
|
|
999
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
1000
|
+
},
|
|
1001
|
+
'topology.kubernetes.io/region': {
|
|
1002
|
+
type: 'array',
|
|
1003
|
+
items: {
|
|
1004
|
+
type: 'string',
|
|
1005
|
+
enum: [
|
|
1006
|
+
'africa-south1',
|
|
1007
|
+
'ap-northeast-1',
|
|
1008
|
+
'ap-northeast-2',
|
|
1009
|
+
'ap-northeast-3',
|
|
1010
|
+
'ap-south-1',
|
|
1011
|
+
'ap-southeast-1',
|
|
1012
|
+
'ap-southeast-2',
|
|
1013
|
+
'ash',
|
|
1014
|
+
'asia-east1',
|
|
1015
|
+
'asia-east2',
|
|
1016
|
+
'asia-northeast1',
|
|
1017
|
+
'asia-northeast2',
|
|
1018
|
+
'asia-northeast3',
|
|
1019
|
+
'asia-south1',
|
|
1020
|
+
'asia-south2',
|
|
1021
|
+
'asia-southeast1',
|
|
1022
|
+
'asia-southeast2',
|
|
1023
|
+
'australia-southeast1',
|
|
1024
|
+
'australia-southeast2',
|
|
1025
|
+
'ca-central-1',
|
|
1026
|
+
'eu-central-1',
|
|
1027
|
+
'eu-central-2',
|
|
1028
|
+
'eu-north-1',
|
|
1029
|
+
'eu-west-1',
|
|
1030
|
+
'eu-west-2',
|
|
1031
|
+
'eu-west-3',
|
|
1032
|
+
'europe-central2',
|
|
1033
|
+
'europe-north1',
|
|
1034
|
+
'europe-southwest1',
|
|
1035
|
+
'europe-west1',
|
|
1036
|
+
'europe-west10',
|
|
1037
|
+
'europe-west12',
|
|
1038
|
+
'europe-west2',
|
|
1039
|
+
'europe-west3',
|
|
1040
|
+
'europe-west4',
|
|
1041
|
+
'europe-west6',
|
|
1042
|
+
'europe-west8',
|
|
1043
|
+
'europe-west9',
|
|
1044
|
+
'fsn1',
|
|
1045
|
+
'hel1',
|
|
1046
|
+
'hil',
|
|
1047
|
+
'me-central1',
|
|
1048
|
+
'me-central2',
|
|
1049
|
+
'me-west1',
|
|
1050
|
+
'nbg1',
|
|
1051
|
+
'northamerica-northeast1',
|
|
1052
|
+
'northamerica-northeast2',
|
|
1053
|
+
'sa-east-1',
|
|
1054
|
+
'sin',
|
|
1055
|
+
'southamerica-east1',
|
|
1056
|
+
'southamerica-west1',
|
|
1057
|
+
'us-central1',
|
|
1058
|
+
'us-east-1',
|
|
1059
|
+
'us-east-2',
|
|
1060
|
+
'us-east1',
|
|
1061
|
+
'us-east4',
|
|
1062
|
+
'us-east5',
|
|
1063
|
+
'us-south1',
|
|
1064
|
+
'us-west-1',
|
|
1065
|
+
'us-west-2',
|
|
1066
|
+
'us-west1',
|
|
1067
|
+
'us-west2',
|
|
1068
|
+
'us-west3',
|
|
1069
|
+
'us-west4'
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1072
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
additionalProperties: false,
|
|
1076
|
+
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.'
|
|
1077
|
+
},
|
|
1078
|
+
scalingProfile: {
|
|
1079
|
+
type: 'string',
|
|
1080
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1081
|
+
example: 'conservative',
|
|
1082
|
+
enum: [
|
|
1083
|
+
'aggressive',
|
|
1084
|
+
'conservative'
|
|
1085
|
+
]
|
|
1086
|
+
},
|
|
564
1087
|
id: {
|
|
565
1088
|
type: 'string',
|
|
566
1089
|
maxLength: 63,
|
|
@@ -570,7 +1093,9 @@ export const FleetCreateInputSchema = {
|
|
|
570
1093
|
example: 'new-clouds-fleet'
|
|
571
1094
|
}
|
|
572
1095
|
},
|
|
573
|
-
required: [
|
|
1096
|
+
required: [
|
|
1097
|
+
'id'
|
|
1098
|
+
],
|
|
574
1099
|
additionalProperties: false
|
|
575
1100
|
};
|
|
576
1101
|
export const FleetSchema = {
|
|
@@ -586,7 +1111,6 @@ export const FleetSchema = {
|
|
|
586
1111
|
description: 'CPU limit in cores.'
|
|
587
1112
|
}
|
|
588
1113
|
},
|
|
589
|
-
required: ['cpu'],
|
|
590
1114
|
additionalProperties: false,
|
|
591
1115
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
592
1116
|
},
|
|
@@ -599,10 +1123,11 @@ export const FleetSchema = {
|
|
|
599
1123
|
},
|
|
600
1124
|
project: {
|
|
601
1125
|
type: 'string',
|
|
602
|
-
|
|
1126
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
1127
|
+
description: 'GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.',
|
|
1128
|
+
example: 'my-cloudfleet-project'
|
|
603
1129
|
}
|
|
604
1130
|
},
|
|
605
|
-
required: ['project'],
|
|
606
1131
|
additionalProperties: false
|
|
607
1132
|
},
|
|
608
1133
|
hetzner: {
|
|
@@ -614,10 +1139,10 @@ export const FleetSchema = {
|
|
|
614
1139
|
},
|
|
615
1140
|
apiKey: {
|
|
616
1141
|
type: 'string',
|
|
617
|
-
|
|
1142
|
+
pattern: '^\\*{64}$',
|
|
1143
|
+
description: 'Redacted Hetzner API token. Returned as 64 asterisks when a token is configured; omitted otherwise. The real value is never echoed by the API.'
|
|
618
1144
|
}
|
|
619
1145
|
},
|
|
620
|
-
required: ['apiKey'],
|
|
621
1146
|
additionalProperties: false
|
|
622
1147
|
},
|
|
623
1148
|
aws: {
|
|
@@ -629,12 +1154,291 @@ export const FleetSchema = {
|
|
|
629
1154
|
},
|
|
630
1155
|
controllerRoleArn: {
|
|
631
1156
|
type: 'string',
|
|
632
|
-
|
|
1157
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
1158
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
1159
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
633
1160
|
}
|
|
634
1161
|
},
|
|
635
|
-
required: ['controllerRoleArn'],
|
|
636
1162
|
additionalProperties: false
|
|
637
1163
|
},
|
|
1164
|
+
constraints: {
|
|
1165
|
+
type: 'object',
|
|
1166
|
+
properties: {
|
|
1167
|
+
'karpenter.sh/capacity-type': {
|
|
1168
|
+
type: 'array',
|
|
1169
|
+
items: {
|
|
1170
|
+
type: 'string',
|
|
1171
|
+
enum: [
|
|
1172
|
+
'on-demand',
|
|
1173
|
+
'spot'
|
|
1174
|
+
]
|
|
1175
|
+
},
|
|
1176
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.'
|
|
1177
|
+
},
|
|
1178
|
+
'kubernetes.io/arch': {
|
|
1179
|
+
type: 'array',
|
|
1180
|
+
items: {
|
|
1181
|
+
type: 'string',
|
|
1182
|
+
enum: [
|
|
1183
|
+
'amd64',
|
|
1184
|
+
'arm64'
|
|
1185
|
+
]
|
|
1186
|
+
},
|
|
1187
|
+
description: 'Allowed values for `kubernetes.io/arch`.'
|
|
1188
|
+
},
|
|
1189
|
+
'cfke.io/instance-family': {
|
|
1190
|
+
type: 'array',
|
|
1191
|
+
items: {
|
|
1192
|
+
type: 'string',
|
|
1193
|
+
enum: [
|
|
1194
|
+
'a1',
|
|
1195
|
+
'a2',
|
|
1196
|
+
'a3',
|
|
1197
|
+
'a4',
|
|
1198
|
+
'c1',
|
|
1199
|
+
'c2',
|
|
1200
|
+
'c2d',
|
|
1201
|
+
'c3',
|
|
1202
|
+
'c3d',
|
|
1203
|
+
'c4',
|
|
1204
|
+
'c4a',
|
|
1205
|
+
'c4d',
|
|
1206
|
+
'c5',
|
|
1207
|
+
'c5a',
|
|
1208
|
+
'c5ad',
|
|
1209
|
+
'c5d',
|
|
1210
|
+
'c5n',
|
|
1211
|
+
'c6a',
|
|
1212
|
+
'c6g',
|
|
1213
|
+
'c6gd',
|
|
1214
|
+
'c6gn',
|
|
1215
|
+
'c6i',
|
|
1216
|
+
'c6id',
|
|
1217
|
+
'c6in',
|
|
1218
|
+
'c7a',
|
|
1219
|
+
'c7g',
|
|
1220
|
+
'c7gd',
|
|
1221
|
+
'c7gn',
|
|
1222
|
+
'c7i',
|
|
1223
|
+
'c7i-flex',
|
|
1224
|
+
'c8g',
|
|
1225
|
+
'c8gd',
|
|
1226
|
+
'cax',
|
|
1227
|
+
'ccx',
|
|
1228
|
+
'cpx',
|
|
1229
|
+
'cx',
|
|
1230
|
+
'd2',
|
|
1231
|
+
'd3',
|
|
1232
|
+
'd3en',
|
|
1233
|
+
'dl1',
|
|
1234
|
+
'dl2q',
|
|
1235
|
+
'e2',
|
|
1236
|
+
'f1',
|
|
1237
|
+
'f2',
|
|
1238
|
+
'g1',
|
|
1239
|
+
'g2',
|
|
1240
|
+
'g4ad',
|
|
1241
|
+
'g4dn',
|
|
1242
|
+
'g5',
|
|
1243
|
+
'g5g',
|
|
1244
|
+
'g6',
|
|
1245
|
+
'g6e',
|
|
1246
|
+
'gr6',
|
|
1247
|
+
'h1',
|
|
1248
|
+
'h3',
|
|
1249
|
+
'hpc6a',
|
|
1250
|
+
'hpc6id',
|
|
1251
|
+
'hpc7a',
|
|
1252
|
+
'hpc7g',
|
|
1253
|
+
'i2',
|
|
1254
|
+
'i3',
|
|
1255
|
+
'i3en',
|
|
1256
|
+
'i4g',
|
|
1257
|
+
'i4i',
|
|
1258
|
+
'i7i',
|
|
1259
|
+
'i7ie',
|
|
1260
|
+
'i8g',
|
|
1261
|
+
'im4gn',
|
|
1262
|
+
'inf1',
|
|
1263
|
+
'inf2',
|
|
1264
|
+
'is4gen',
|
|
1265
|
+
'm1',
|
|
1266
|
+
'm2',
|
|
1267
|
+
'm3',
|
|
1268
|
+
'm4',
|
|
1269
|
+
'm5',
|
|
1270
|
+
'm5a',
|
|
1271
|
+
'm5ad',
|
|
1272
|
+
'm5d',
|
|
1273
|
+
'm5dn',
|
|
1274
|
+
'm5n',
|
|
1275
|
+
'm5zn',
|
|
1276
|
+
'm6a',
|
|
1277
|
+
'm6g',
|
|
1278
|
+
'm6gd',
|
|
1279
|
+
'm6i',
|
|
1280
|
+
'm6id',
|
|
1281
|
+
'm6idn',
|
|
1282
|
+
'm6in',
|
|
1283
|
+
'm7a',
|
|
1284
|
+
'm7g',
|
|
1285
|
+
'm7gd',
|
|
1286
|
+
'm7i',
|
|
1287
|
+
'm7i-flex',
|
|
1288
|
+
'm8g',
|
|
1289
|
+
'm8gd',
|
|
1290
|
+
'n1',
|
|
1291
|
+
'n2',
|
|
1292
|
+
'n2d',
|
|
1293
|
+
'n4',
|
|
1294
|
+
'p3',
|
|
1295
|
+
'p3dn',
|
|
1296
|
+
'p4d',
|
|
1297
|
+
'p4de',
|
|
1298
|
+
'p5',
|
|
1299
|
+
'p5e',
|
|
1300
|
+
'p5en',
|
|
1301
|
+
'p6-b200',
|
|
1302
|
+
'r3',
|
|
1303
|
+
'r4',
|
|
1304
|
+
'r5',
|
|
1305
|
+
'r5a',
|
|
1306
|
+
'r5ad',
|
|
1307
|
+
'r5b',
|
|
1308
|
+
'r5d',
|
|
1309
|
+
'r5dn',
|
|
1310
|
+
'r5n',
|
|
1311
|
+
'r6a',
|
|
1312
|
+
'r6g',
|
|
1313
|
+
'r6gd',
|
|
1314
|
+
'r6i',
|
|
1315
|
+
'r6id',
|
|
1316
|
+
'r6idn',
|
|
1317
|
+
'r6in',
|
|
1318
|
+
'r7a',
|
|
1319
|
+
'r7g',
|
|
1320
|
+
'r7gd',
|
|
1321
|
+
'r7i',
|
|
1322
|
+
'r7iz',
|
|
1323
|
+
'r8g',
|
|
1324
|
+
'r8gd',
|
|
1325
|
+
't2',
|
|
1326
|
+
't2a',
|
|
1327
|
+
't2d',
|
|
1328
|
+
't3',
|
|
1329
|
+
't3a',
|
|
1330
|
+
't4g',
|
|
1331
|
+
'trn1',
|
|
1332
|
+
'trn1n',
|
|
1333
|
+
'u-3tb1',
|
|
1334
|
+
'u-6tb1',
|
|
1335
|
+
'u7i-12tb',
|
|
1336
|
+
'u7i-6tb',
|
|
1337
|
+
'u7i-8tb',
|
|
1338
|
+
'u7in-16tb',
|
|
1339
|
+
'u7in-24tb',
|
|
1340
|
+
'u7in-32tb',
|
|
1341
|
+
'vt1',
|
|
1342
|
+
'x1',
|
|
1343
|
+
'x1e',
|
|
1344
|
+
'x2gd',
|
|
1345
|
+
'x2idn',
|
|
1346
|
+
'x2iedn',
|
|
1347
|
+
'x2iezn',
|
|
1348
|
+
'x4',
|
|
1349
|
+
'x8g',
|
|
1350
|
+
'z1d',
|
|
1351
|
+
'z3'
|
|
1352
|
+
]
|
|
1353
|
+
},
|
|
1354
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
1355
|
+
},
|
|
1356
|
+
'topology.kubernetes.io/region': {
|
|
1357
|
+
type: 'array',
|
|
1358
|
+
items: {
|
|
1359
|
+
type: 'string',
|
|
1360
|
+
enum: [
|
|
1361
|
+
'africa-south1',
|
|
1362
|
+
'ap-northeast-1',
|
|
1363
|
+
'ap-northeast-2',
|
|
1364
|
+
'ap-northeast-3',
|
|
1365
|
+
'ap-south-1',
|
|
1366
|
+
'ap-southeast-1',
|
|
1367
|
+
'ap-southeast-2',
|
|
1368
|
+
'ash',
|
|
1369
|
+
'asia-east1',
|
|
1370
|
+
'asia-east2',
|
|
1371
|
+
'asia-northeast1',
|
|
1372
|
+
'asia-northeast2',
|
|
1373
|
+
'asia-northeast3',
|
|
1374
|
+
'asia-south1',
|
|
1375
|
+
'asia-south2',
|
|
1376
|
+
'asia-southeast1',
|
|
1377
|
+
'asia-southeast2',
|
|
1378
|
+
'australia-southeast1',
|
|
1379
|
+
'australia-southeast2',
|
|
1380
|
+
'ca-central-1',
|
|
1381
|
+
'eu-central-1',
|
|
1382
|
+
'eu-central-2',
|
|
1383
|
+
'eu-north-1',
|
|
1384
|
+
'eu-west-1',
|
|
1385
|
+
'eu-west-2',
|
|
1386
|
+
'eu-west-3',
|
|
1387
|
+
'europe-central2',
|
|
1388
|
+
'europe-north1',
|
|
1389
|
+
'europe-southwest1',
|
|
1390
|
+
'europe-west1',
|
|
1391
|
+
'europe-west10',
|
|
1392
|
+
'europe-west12',
|
|
1393
|
+
'europe-west2',
|
|
1394
|
+
'europe-west3',
|
|
1395
|
+
'europe-west4',
|
|
1396
|
+
'europe-west6',
|
|
1397
|
+
'europe-west8',
|
|
1398
|
+
'europe-west9',
|
|
1399
|
+
'fsn1',
|
|
1400
|
+
'hel1',
|
|
1401
|
+
'hil',
|
|
1402
|
+
'me-central1',
|
|
1403
|
+
'me-central2',
|
|
1404
|
+
'me-west1',
|
|
1405
|
+
'nbg1',
|
|
1406
|
+
'northamerica-northeast1',
|
|
1407
|
+
'northamerica-northeast2',
|
|
1408
|
+
'sa-east-1',
|
|
1409
|
+
'sin',
|
|
1410
|
+
'southamerica-east1',
|
|
1411
|
+
'southamerica-west1',
|
|
1412
|
+
'us-central1',
|
|
1413
|
+
'us-east-1',
|
|
1414
|
+
'us-east-2',
|
|
1415
|
+
'us-east1',
|
|
1416
|
+
'us-east4',
|
|
1417
|
+
'us-east5',
|
|
1418
|
+
'us-south1',
|
|
1419
|
+
'us-west-1',
|
|
1420
|
+
'us-west-2',
|
|
1421
|
+
'us-west1',
|
|
1422
|
+
'us-west2',
|
|
1423
|
+
'us-west3',
|
|
1424
|
+
'us-west4'
|
|
1425
|
+
]
|
|
1426
|
+
},
|
|
1427
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
additionalProperties: false,
|
|
1431
|
+
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.'
|
|
1432
|
+
},
|
|
1433
|
+
scalingProfile: {
|
|
1434
|
+
type: 'string',
|
|
1435
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1436
|
+
example: 'conservative',
|
|
1437
|
+
enum: [
|
|
1438
|
+
'aggressive',
|
|
1439
|
+
'conservative'
|
|
1440
|
+
]
|
|
1441
|
+
},
|
|
638
1442
|
id: {
|
|
639
1443
|
type: 'string',
|
|
640
1444
|
maxLength: 63,
|
|
@@ -644,7 +1448,9 @@ export const FleetSchema = {
|
|
|
644
1448
|
example: 'new-clouds-fleet'
|
|
645
1449
|
}
|
|
646
1450
|
},
|
|
647
|
-
required: [
|
|
1451
|
+
required: [
|
|
1452
|
+
'id'
|
|
1453
|
+
],
|
|
648
1454
|
additionalProperties: false
|
|
649
1455
|
};
|
|
650
1456
|
export const FleetUpdateInputSchema = {
|
|
@@ -660,7 +1466,6 @@ export const FleetUpdateInputSchema = {
|
|
|
660
1466
|
description: 'CPU limit in cores.'
|
|
661
1467
|
}
|
|
662
1468
|
},
|
|
663
|
-
required: ['cpu'],
|
|
664
1469
|
additionalProperties: false,
|
|
665
1470
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
666
1471
|
},
|
|
@@ -673,10 +1478,11 @@ export const FleetUpdateInputSchema = {
|
|
|
673
1478
|
},
|
|
674
1479
|
project: {
|
|
675
1480
|
type: 'string',
|
|
676
|
-
|
|
1481
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
1482
|
+
description: 'GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.',
|
|
1483
|
+
example: 'my-cloudfleet-project'
|
|
677
1484
|
}
|
|
678
1485
|
},
|
|
679
|
-
required: ['project'],
|
|
680
1486
|
additionalProperties: false
|
|
681
1487
|
},
|
|
682
1488
|
hetzner: {
|
|
@@ -688,10 +1494,12 @@ export const FleetUpdateInputSchema = {
|
|
|
688
1494
|
},
|
|
689
1495
|
apiKey: {
|
|
690
1496
|
type: 'string',
|
|
691
|
-
|
|
1497
|
+
maxLength: 64,
|
|
1498
|
+
minLength: 64,
|
|
1499
|
+
pattern: '^[A-Za-z0-9]+$',
|
|
1500
|
+
description: 'Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.'
|
|
692
1501
|
}
|
|
693
1502
|
},
|
|
694
|
-
required: ['apiKey'],
|
|
695
1503
|
additionalProperties: false
|
|
696
1504
|
},
|
|
697
1505
|
aws: {
|
|
@@ -703,11 +1511,290 @@ export const FleetUpdateInputSchema = {
|
|
|
703
1511
|
},
|
|
704
1512
|
controllerRoleArn: {
|
|
705
1513
|
type: 'string',
|
|
706
|
-
|
|
1514
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
1515
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
1516
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
707
1517
|
}
|
|
708
1518
|
},
|
|
709
|
-
required: ['controllerRoleArn'],
|
|
710
1519
|
additionalProperties: false
|
|
1520
|
+
},
|
|
1521
|
+
constraints: {
|
|
1522
|
+
type: 'object',
|
|
1523
|
+
properties: {
|
|
1524
|
+
'karpenter.sh/capacity-type': {
|
|
1525
|
+
type: 'array',
|
|
1526
|
+
items: {
|
|
1527
|
+
type: 'string',
|
|
1528
|
+
enum: [
|
|
1529
|
+
'on-demand',
|
|
1530
|
+
'spot'
|
|
1531
|
+
]
|
|
1532
|
+
},
|
|
1533
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.'
|
|
1534
|
+
},
|
|
1535
|
+
'kubernetes.io/arch': {
|
|
1536
|
+
type: 'array',
|
|
1537
|
+
items: {
|
|
1538
|
+
type: 'string',
|
|
1539
|
+
enum: [
|
|
1540
|
+
'amd64',
|
|
1541
|
+
'arm64'
|
|
1542
|
+
]
|
|
1543
|
+
},
|
|
1544
|
+
description: 'Allowed values for `kubernetes.io/arch`.'
|
|
1545
|
+
},
|
|
1546
|
+
'cfke.io/instance-family': {
|
|
1547
|
+
type: 'array',
|
|
1548
|
+
items: {
|
|
1549
|
+
type: 'string',
|
|
1550
|
+
enum: [
|
|
1551
|
+
'a1',
|
|
1552
|
+
'a2',
|
|
1553
|
+
'a3',
|
|
1554
|
+
'a4',
|
|
1555
|
+
'c1',
|
|
1556
|
+
'c2',
|
|
1557
|
+
'c2d',
|
|
1558
|
+
'c3',
|
|
1559
|
+
'c3d',
|
|
1560
|
+
'c4',
|
|
1561
|
+
'c4a',
|
|
1562
|
+
'c4d',
|
|
1563
|
+
'c5',
|
|
1564
|
+
'c5a',
|
|
1565
|
+
'c5ad',
|
|
1566
|
+
'c5d',
|
|
1567
|
+
'c5n',
|
|
1568
|
+
'c6a',
|
|
1569
|
+
'c6g',
|
|
1570
|
+
'c6gd',
|
|
1571
|
+
'c6gn',
|
|
1572
|
+
'c6i',
|
|
1573
|
+
'c6id',
|
|
1574
|
+
'c6in',
|
|
1575
|
+
'c7a',
|
|
1576
|
+
'c7g',
|
|
1577
|
+
'c7gd',
|
|
1578
|
+
'c7gn',
|
|
1579
|
+
'c7i',
|
|
1580
|
+
'c7i-flex',
|
|
1581
|
+
'c8g',
|
|
1582
|
+
'c8gd',
|
|
1583
|
+
'cax',
|
|
1584
|
+
'ccx',
|
|
1585
|
+
'cpx',
|
|
1586
|
+
'cx',
|
|
1587
|
+
'd2',
|
|
1588
|
+
'd3',
|
|
1589
|
+
'd3en',
|
|
1590
|
+
'dl1',
|
|
1591
|
+
'dl2q',
|
|
1592
|
+
'e2',
|
|
1593
|
+
'f1',
|
|
1594
|
+
'f2',
|
|
1595
|
+
'g1',
|
|
1596
|
+
'g2',
|
|
1597
|
+
'g4ad',
|
|
1598
|
+
'g4dn',
|
|
1599
|
+
'g5',
|
|
1600
|
+
'g5g',
|
|
1601
|
+
'g6',
|
|
1602
|
+
'g6e',
|
|
1603
|
+
'gr6',
|
|
1604
|
+
'h1',
|
|
1605
|
+
'h3',
|
|
1606
|
+
'hpc6a',
|
|
1607
|
+
'hpc6id',
|
|
1608
|
+
'hpc7a',
|
|
1609
|
+
'hpc7g',
|
|
1610
|
+
'i2',
|
|
1611
|
+
'i3',
|
|
1612
|
+
'i3en',
|
|
1613
|
+
'i4g',
|
|
1614
|
+
'i4i',
|
|
1615
|
+
'i7i',
|
|
1616
|
+
'i7ie',
|
|
1617
|
+
'i8g',
|
|
1618
|
+
'im4gn',
|
|
1619
|
+
'inf1',
|
|
1620
|
+
'inf2',
|
|
1621
|
+
'is4gen',
|
|
1622
|
+
'm1',
|
|
1623
|
+
'm2',
|
|
1624
|
+
'm3',
|
|
1625
|
+
'm4',
|
|
1626
|
+
'm5',
|
|
1627
|
+
'm5a',
|
|
1628
|
+
'm5ad',
|
|
1629
|
+
'm5d',
|
|
1630
|
+
'm5dn',
|
|
1631
|
+
'm5n',
|
|
1632
|
+
'm5zn',
|
|
1633
|
+
'm6a',
|
|
1634
|
+
'm6g',
|
|
1635
|
+
'm6gd',
|
|
1636
|
+
'm6i',
|
|
1637
|
+
'm6id',
|
|
1638
|
+
'm6idn',
|
|
1639
|
+
'm6in',
|
|
1640
|
+
'm7a',
|
|
1641
|
+
'm7g',
|
|
1642
|
+
'm7gd',
|
|
1643
|
+
'm7i',
|
|
1644
|
+
'm7i-flex',
|
|
1645
|
+
'm8g',
|
|
1646
|
+
'm8gd',
|
|
1647
|
+
'n1',
|
|
1648
|
+
'n2',
|
|
1649
|
+
'n2d',
|
|
1650
|
+
'n4',
|
|
1651
|
+
'p3',
|
|
1652
|
+
'p3dn',
|
|
1653
|
+
'p4d',
|
|
1654
|
+
'p4de',
|
|
1655
|
+
'p5',
|
|
1656
|
+
'p5e',
|
|
1657
|
+
'p5en',
|
|
1658
|
+
'p6-b200',
|
|
1659
|
+
'r3',
|
|
1660
|
+
'r4',
|
|
1661
|
+
'r5',
|
|
1662
|
+
'r5a',
|
|
1663
|
+
'r5ad',
|
|
1664
|
+
'r5b',
|
|
1665
|
+
'r5d',
|
|
1666
|
+
'r5dn',
|
|
1667
|
+
'r5n',
|
|
1668
|
+
'r6a',
|
|
1669
|
+
'r6g',
|
|
1670
|
+
'r6gd',
|
|
1671
|
+
'r6i',
|
|
1672
|
+
'r6id',
|
|
1673
|
+
'r6idn',
|
|
1674
|
+
'r6in',
|
|
1675
|
+
'r7a',
|
|
1676
|
+
'r7g',
|
|
1677
|
+
'r7gd',
|
|
1678
|
+
'r7i',
|
|
1679
|
+
'r7iz',
|
|
1680
|
+
'r8g',
|
|
1681
|
+
'r8gd',
|
|
1682
|
+
't2',
|
|
1683
|
+
't2a',
|
|
1684
|
+
't2d',
|
|
1685
|
+
't3',
|
|
1686
|
+
't3a',
|
|
1687
|
+
't4g',
|
|
1688
|
+
'trn1',
|
|
1689
|
+
'trn1n',
|
|
1690
|
+
'u-3tb1',
|
|
1691
|
+
'u-6tb1',
|
|
1692
|
+
'u7i-12tb',
|
|
1693
|
+
'u7i-6tb',
|
|
1694
|
+
'u7i-8tb',
|
|
1695
|
+
'u7in-16tb',
|
|
1696
|
+
'u7in-24tb',
|
|
1697
|
+
'u7in-32tb',
|
|
1698
|
+
'vt1',
|
|
1699
|
+
'x1',
|
|
1700
|
+
'x1e',
|
|
1701
|
+
'x2gd',
|
|
1702
|
+
'x2idn',
|
|
1703
|
+
'x2iedn',
|
|
1704
|
+
'x2iezn',
|
|
1705
|
+
'x4',
|
|
1706
|
+
'x8g',
|
|
1707
|
+
'z1d',
|
|
1708
|
+
'z3'
|
|
1709
|
+
]
|
|
1710
|
+
},
|
|
1711
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
1712
|
+
},
|
|
1713
|
+
'topology.kubernetes.io/region': {
|
|
1714
|
+
type: 'array',
|
|
1715
|
+
items: {
|
|
1716
|
+
type: 'string',
|
|
1717
|
+
enum: [
|
|
1718
|
+
'africa-south1',
|
|
1719
|
+
'ap-northeast-1',
|
|
1720
|
+
'ap-northeast-2',
|
|
1721
|
+
'ap-northeast-3',
|
|
1722
|
+
'ap-south-1',
|
|
1723
|
+
'ap-southeast-1',
|
|
1724
|
+
'ap-southeast-2',
|
|
1725
|
+
'ash',
|
|
1726
|
+
'asia-east1',
|
|
1727
|
+
'asia-east2',
|
|
1728
|
+
'asia-northeast1',
|
|
1729
|
+
'asia-northeast2',
|
|
1730
|
+
'asia-northeast3',
|
|
1731
|
+
'asia-south1',
|
|
1732
|
+
'asia-south2',
|
|
1733
|
+
'asia-southeast1',
|
|
1734
|
+
'asia-southeast2',
|
|
1735
|
+
'australia-southeast1',
|
|
1736
|
+
'australia-southeast2',
|
|
1737
|
+
'ca-central-1',
|
|
1738
|
+
'eu-central-1',
|
|
1739
|
+
'eu-central-2',
|
|
1740
|
+
'eu-north-1',
|
|
1741
|
+
'eu-west-1',
|
|
1742
|
+
'eu-west-2',
|
|
1743
|
+
'eu-west-3',
|
|
1744
|
+
'europe-central2',
|
|
1745
|
+
'europe-north1',
|
|
1746
|
+
'europe-southwest1',
|
|
1747
|
+
'europe-west1',
|
|
1748
|
+
'europe-west10',
|
|
1749
|
+
'europe-west12',
|
|
1750
|
+
'europe-west2',
|
|
1751
|
+
'europe-west3',
|
|
1752
|
+
'europe-west4',
|
|
1753
|
+
'europe-west6',
|
|
1754
|
+
'europe-west8',
|
|
1755
|
+
'europe-west9',
|
|
1756
|
+
'fsn1',
|
|
1757
|
+
'hel1',
|
|
1758
|
+
'hil',
|
|
1759
|
+
'me-central1',
|
|
1760
|
+
'me-central2',
|
|
1761
|
+
'me-west1',
|
|
1762
|
+
'nbg1',
|
|
1763
|
+
'northamerica-northeast1',
|
|
1764
|
+
'northamerica-northeast2',
|
|
1765
|
+
'sa-east-1',
|
|
1766
|
+
'sin',
|
|
1767
|
+
'southamerica-east1',
|
|
1768
|
+
'southamerica-west1',
|
|
1769
|
+
'us-central1',
|
|
1770
|
+
'us-east-1',
|
|
1771
|
+
'us-east-2',
|
|
1772
|
+
'us-east1',
|
|
1773
|
+
'us-east4',
|
|
1774
|
+
'us-east5',
|
|
1775
|
+
'us-south1',
|
|
1776
|
+
'us-west-1',
|
|
1777
|
+
'us-west-2',
|
|
1778
|
+
'us-west1',
|
|
1779
|
+
'us-west2',
|
|
1780
|
+
'us-west3',
|
|
1781
|
+
'us-west4'
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1785
|
+
}
|
|
1786
|
+
},
|
|
1787
|
+
additionalProperties: false,
|
|
1788
|
+
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.'
|
|
1789
|
+
},
|
|
1790
|
+
scalingProfile: {
|
|
1791
|
+
type: 'string',
|
|
1792
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1793
|
+
example: 'conservative',
|
|
1794
|
+
enum: [
|
|
1795
|
+
'aggressive',
|
|
1796
|
+
'conservative'
|
|
1797
|
+
]
|
|
711
1798
|
}
|
|
712
1799
|
},
|
|
713
1800
|
additionalProperties: false
|
|
@@ -744,7 +1831,9 @@ export const InviteSchema = {
|
|
|
744
1831
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
745
1832
|
}
|
|
746
1833
|
},
|
|
747
|
-
required: [
|
|
1834
|
+
required: [
|
|
1835
|
+
'date_created'
|
|
1836
|
+
],
|
|
748
1837
|
additionalProperties: false
|
|
749
1838
|
};
|
|
750
1839
|
export const InvoiceSchema = {
|
|
@@ -752,23 +1841,18 @@ export const InvoiceSchema = {
|
|
|
752
1841
|
properties: {
|
|
753
1842
|
id: {
|
|
754
1843
|
type: 'string',
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
1844
|
+
description: 'Unique identifier of the invoice.',
|
|
1845
|
+
example: 'in_1234567890xCrwxghOTj1234'
|
|
758
1846
|
},
|
|
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'
|
|
1847
|
+
number: {
|
|
1848
|
+
type: 'string'
|
|
764
1849
|
},
|
|
765
1850
|
status: {
|
|
766
1851
|
type: 'string',
|
|
767
1852
|
description: 'Status of the invoice',
|
|
768
|
-
example: '
|
|
769
|
-
enum: ['DRAFT', 'COMMITTED', 'VOID']
|
|
1853
|
+
example: 'paid'
|
|
770
1854
|
},
|
|
771
|
-
|
|
1855
|
+
total: {
|
|
772
1856
|
type: 'number',
|
|
773
1857
|
format: 'float',
|
|
774
1858
|
description: 'Total amount of the invoice',
|
|
@@ -777,413 +1861,189 @@ export const InvoiceSchema = {
|
|
|
777
1861
|
currency: {
|
|
778
1862
|
type: 'string',
|
|
779
1863
|
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']
|
|
1864
|
+
example: 'usd'
|
|
782
1865
|
},
|
|
783
|
-
|
|
784
|
-
type: '
|
|
785
|
-
format: '
|
|
786
|
-
description: '
|
|
787
|
-
example:
|
|
788
|
-
},
|
|
789
|
-
refundAdj: {
|
|
790
|
-
type: 'number',
|
|
791
|
-
format: 'float',
|
|
792
|
-
description: 'Total amount of refund adjustments',
|
|
793
|
-
example: 0
|
|
1866
|
+
created: {
|
|
1867
|
+
type: 'string',
|
|
1868
|
+
format: 'date-time',
|
|
1869
|
+
description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
|
|
1870
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
794
1871
|
},
|
|
795
|
-
|
|
1872
|
+
period_start: {
|
|
796
1873
|
type: 'string',
|
|
797
|
-
|
|
798
|
-
|
|
1874
|
+
format: 'date-time',
|
|
1875
|
+
description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
|
|
1876
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
799
1877
|
},
|
|
800
|
-
|
|
1878
|
+
period_end: {
|
|
801
1879
|
type: 'string',
|
|
802
|
-
|
|
803
|
-
|
|
1880
|
+
format: 'date-time',
|
|
1881
|
+
description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
|
|
1882
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
804
1883
|
},
|
|
805
|
-
|
|
1884
|
+
invoice_pdf: {
|
|
1885
|
+
type: 'string'
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
required: [
|
|
1889
|
+
'created',
|
|
1890
|
+
'period_start',
|
|
1891
|
+
'period_end'
|
|
1892
|
+
],
|
|
1893
|
+
additionalProperties: false
|
|
1894
|
+
};
|
|
1895
|
+
export const MarketplaceListingFilesSchema = {
|
|
1896
|
+
type: 'object',
|
|
1897
|
+
properties: {
|
|
1898
|
+
chartYaml: {
|
|
806
1899
|
type: 'string',
|
|
807
|
-
description: '
|
|
808
|
-
example: '
|
|
1900
|
+
description: 'Raw Chart.yaml content from the Helm chart',
|
|
1901
|
+
example: 'apiVersion: v2\nname: nginx-ingress\nversion: 1.18.2-cfke.45\nappVersion: 1.9.4'
|
|
809
1902
|
},
|
|
810
|
-
|
|
811
|
-
type: '
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
example: 100
|
|
1903
|
+
valuesYaml: {
|
|
1904
|
+
type: 'string',
|
|
1905
|
+
description: 'Raw values.yaml content from the Helm chart',
|
|
1906
|
+
example: 'replicaCount: 1\nimage:\n repository: nginx\n tag: latest'
|
|
815
1907
|
},
|
|
816
|
-
|
|
1908
|
+
valuesSchemaJson: {
|
|
1909
|
+
type: 'string',
|
|
1910
|
+
description: 'JSON schema for values.yaml as a string',
|
|
1911
|
+
example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
additionalProperties: false
|
|
1915
|
+
};
|
|
1916
|
+
export const MarketplaceListingSchema = {
|
|
1917
|
+
type: 'object',
|
|
1918
|
+
properties: {
|
|
1919
|
+
name: {
|
|
817
1920
|
type: 'string',
|
|
818
|
-
description: '
|
|
819
|
-
example: '
|
|
1921
|
+
description: 'Name of the chart',
|
|
1922
|
+
example: 'nginx-ingress'
|
|
820
1923
|
},
|
|
821
|
-
|
|
1924
|
+
versions: {
|
|
822
1925
|
type: 'array',
|
|
823
1926
|
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
|
|
1927
|
+
type: 'string',
|
|
1928
|
+
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-]+)*))?$',
|
|
1929
|
+
description: 'Specific version of the chart',
|
|
1930
|
+
example: '1.18.2-cfke.45'
|
|
959
1931
|
},
|
|
960
|
-
description: '
|
|
1932
|
+
description: 'Available versions of the chart'
|
|
961
1933
|
},
|
|
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: {
|
|
1934
|
+
version_channels: {
|
|
1143
1935
|
type: 'array',
|
|
1144
1936
|
items: {
|
|
1145
1937
|
type: 'string',
|
|
1146
|
-
|
|
1938
|
+
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-]+)*))?$',
|
|
1939
|
+
description: 'Version channel pattern',
|
|
1940
|
+
example: '1.18.x-cfke.x'
|
|
1147
1941
|
},
|
|
1148
|
-
description: '
|
|
1942
|
+
description: 'Version channels for the chart'
|
|
1149
1943
|
},
|
|
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
|
-
}
|
|
1944
|
+
latestVersion: {
|
|
1945
|
+
type: 'string',
|
|
1946
|
+
description: 'Latest version of the chart',
|
|
1947
|
+
example: '1.18.2-cfke.45'
|
|
1158
1948
|
},
|
|
1159
|
-
|
|
1160
|
-
type: '
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1949
|
+
metadata: {
|
|
1950
|
+
type: 'object',
|
|
1951
|
+
properties: {
|
|
1952
|
+
name: {
|
|
1953
|
+
type: 'string',
|
|
1954
|
+
description: 'Chart name from metadata',
|
|
1955
|
+
example: 'nginx-ingress'
|
|
1956
|
+
},
|
|
1957
|
+
version: {
|
|
1958
|
+
type: 'string',
|
|
1959
|
+
description: 'Chart version from metadata',
|
|
1960
|
+
example: '1.18.2-cfke.45'
|
|
1961
|
+
},
|
|
1962
|
+
description: {
|
|
1963
|
+
type: 'string',
|
|
1964
|
+
description: 'Chart description',
|
|
1965
|
+
example: 'NGINX Ingress Controller for Kubernetes'
|
|
1966
|
+
},
|
|
1967
|
+
appVersion: {
|
|
1968
|
+
type: 'string',
|
|
1969
|
+
description: 'Application version',
|
|
1970
|
+
example: '1.9.4'
|
|
1971
|
+
},
|
|
1972
|
+
apiVersion: {
|
|
1973
|
+
type: 'string',
|
|
1974
|
+
description: 'Helm API version',
|
|
1975
|
+
example: 'v2'
|
|
1976
|
+
},
|
|
1977
|
+
keywords: {
|
|
1978
|
+
type: 'array',
|
|
1979
|
+
items: {
|
|
1980
|
+
type: 'string'
|
|
1169
1981
|
},
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1982
|
+
description: 'Chart keywords',
|
|
1983
|
+
example: [
|
|
1984
|
+
'ingress',
|
|
1985
|
+
'nginx',
|
|
1986
|
+
'load-balancer'
|
|
1987
|
+
]
|
|
1988
|
+
},
|
|
1989
|
+
home: {
|
|
1990
|
+
type: 'string',
|
|
1991
|
+
description: 'Chart home URL',
|
|
1992
|
+
example: 'https://kubernetes.github.io/ingress-nginx/'
|
|
1993
|
+
},
|
|
1994
|
+
icon: {
|
|
1995
|
+
type: 'string',
|
|
1996
|
+
description: 'A URL to an SVG or PNG image to be used as an icon',
|
|
1997
|
+
example: 'https://cloudfleet.ai/images/marketplace/icons/ingress-nginx.png'
|
|
1998
|
+
},
|
|
1999
|
+
sources: {
|
|
2000
|
+
type: 'array',
|
|
2001
|
+
items: {
|
|
2002
|
+
type: 'string'
|
|
1173
2003
|
},
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
bar: example`
|
|
1179
|
-
}
|
|
2004
|
+
description: 'Chart source URLs',
|
|
2005
|
+
example: [
|
|
2006
|
+
'https://github.com/kubernetes/ingress-nginx'
|
|
2007
|
+
]
|
|
1180
2008
|
},
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
2009
|
+
maintainers: {
|
|
2010
|
+
type: 'array',
|
|
2011
|
+
items: {
|
|
2012
|
+
type: 'object',
|
|
2013
|
+
properties: {
|
|
2014
|
+
name: {
|
|
2015
|
+
type: 'string',
|
|
2016
|
+
description: 'Maintainer name',
|
|
2017
|
+
example: 'NGINX Team'
|
|
2018
|
+
},
|
|
2019
|
+
email: {
|
|
2020
|
+
type: 'string',
|
|
2021
|
+
description: 'Maintainer email',
|
|
2022
|
+
example: 'support@nginx.org'
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
required: [
|
|
2026
|
+
'name'
|
|
2027
|
+
],
|
|
2028
|
+
additionalProperties: false
|
|
2029
|
+
},
|
|
2030
|
+
description: 'Chart maintainers'
|
|
2031
|
+
}
|
|
2032
|
+
},
|
|
2033
|
+
required: [
|
|
2034
|
+
'name',
|
|
2035
|
+
'version'
|
|
2036
|
+
],
|
|
2037
|
+
additionalProperties: false,
|
|
2038
|
+
description: 'Chart metadata'
|
|
1184
2039
|
}
|
|
1185
2040
|
},
|
|
1186
|
-
required: [
|
|
2041
|
+
required: [
|
|
2042
|
+
'name',
|
|
2043
|
+
'versions',
|
|
2044
|
+
'version_channels',
|
|
2045
|
+
'latestVersion'
|
|
2046
|
+
],
|
|
1187
2047
|
additionalProperties: false
|
|
1188
2048
|
};
|
|
1189
2049
|
export const OrganizationCreateInputSchema = {
|
|
@@ -1219,7 +2079,13 @@ export const OrganizationCreateInputSchema = {
|
|
|
1219
2079
|
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
2080
|
}
|
|
1221
2081
|
},
|
|
1222
|
-
required: [
|
|
2082
|
+
required: [
|
|
2083
|
+
'email',
|
|
2084
|
+
'first_name',
|
|
2085
|
+
'last_name',
|
|
2086
|
+
'company_name',
|
|
2087
|
+
'password'
|
|
2088
|
+
],
|
|
1223
2089
|
additionalProperties: false
|
|
1224
2090
|
};
|
|
1225
2091
|
export const OrganizationSchema = {
|
|
@@ -1279,107 +2145,1000 @@ export const OrganizationSchema = {
|
|
|
1279
2145
|
type: 'array',
|
|
1280
2146
|
items: {
|
|
1281
2147
|
type: 'string',
|
|
1282
|
-
example: 'basic'
|
|
2148
|
+
example: 'basic'
|
|
2149
|
+
},
|
|
2150
|
+
minItems: 0,
|
|
2151
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
2152
|
+
},
|
|
2153
|
+
regions: {
|
|
2154
|
+
type: 'array',
|
|
2155
|
+
items: {
|
|
2156
|
+
type: 'string',
|
|
2157
|
+
example: 'northamerica-central-1'
|
|
2158
|
+
},
|
|
2159
|
+
minItems: 1,
|
|
2160
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
2161
|
+
},
|
|
2162
|
+
versions: {
|
|
2163
|
+
type: 'array',
|
|
2164
|
+
items: {
|
|
2165
|
+
type: 'object',
|
|
2166
|
+
properties: {
|
|
2167
|
+
id: {
|
|
2168
|
+
type: 'string',
|
|
2169
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
2170
|
+
example: '1.33.x-cfke.x'
|
|
2171
|
+
},
|
|
2172
|
+
label: {
|
|
2173
|
+
type: 'string',
|
|
2174
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
2175
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
2176
|
+
}
|
|
2177
|
+
},
|
|
2178
|
+
required: [
|
|
2179
|
+
'id',
|
|
2180
|
+
'label'
|
|
2181
|
+
],
|
|
2182
|
+
additionalProperties: false
|
|
2183
|
+
},
|
|
2184
|
+
minItems: 1,
|
|
2185
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
2186
|
+
},
|
|
2187
|
+
cfcr_storage_gb: {
|
|
2188
|
+
type: 'integer',
|
|
2189
|
+
minimum: -1,
|
|
2190
|
+
description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
|
|
2191
|
+
example: 500
|
|
2192
|
+
}
|
|
2193
|
+
},
|
|
2194
|
+
required: [
|
|
2195
|
+
'basic_clusters_max',
|
|
2196
|
+
'basic_clusters_available',
|
|
2197
|
+
'pro_clusters_max',
|
|
2198
|
+
'pro_clusters_available',
|
|
2199
|
+
'fleets_max',
|
|
2200
|
+
'cluster_tiers',
|
|
2201
|
+
'regions',
|
|
2202
|
+
'versions',
|
|
2203
|
+
'cfcr_storage_gb'
|
|
2204
|
+
],
|
|
2205
|
+
additionalProperties: false,
|
|
2206
|
+
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.'
|
|
2207
|
+
},
|
|
2208
|
+
status: {
|
|
2209
|
+
type: 'string',
|
|
2210
|
+
description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
|
|
2211
|
+
enum: [
|
|
2212
|
+
'active',
|
|
2213
|
+
'closed',
|
|
2214
|
+
'suspended'
|
|
2215
|
+
]
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
2218
|
+
required: [
|
|
2219
|
+
'id',
|
|
2220
|
+
'date_created',
|
|
2221
|
+
'quota',
|
|
2222
|
+
'status'
|
|
2223
|
+
],
|
|
2224
|
+
additionalProperties: false
|
|
2225
|
+
};
|
|
2226
|
+
export const PaymentMethodSchema = {
|
|
2227
|
+
type: 'object',
|
|
2228
|
+
properties: {
|
|
2229
|
+
id: {
|
|
2230
|
+
type: 'string',
|
|
2231
|
+
format: 'uuid',
|
|
2232
|
+
description: 'Unique identifier of the organization. UUID v4 string in canonical form.',
|
|
2233
|
+
example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
|
|
2234
|
+
},
|
|
2235
|
+
setup: {
|
|
2236
|
+
type: 'boolean',
|
|
2237
|
+
description: 'Whether organization payment method was set up and ready to use for payments.',
|
|
2238
|
+
example: true
|
|
2239
|
+
},
|
|
2240
|
+
type: {
|
|
2241
|
+
type: 'string',
|
|
2242
|
+
nullable: true,
|
|
2243
|
+
description: 'Payment method type type. Only `card` payments supported at the moment.',
|
|
2244
|
+
example: 'card',
|
|
2245
|
+
enum: [
|
|
2246
|
+
'card'
|
|
2247
|
+
]
|
|
2248
|
+
},
|
|
2249
|
+
last4: {
|
|
2250
|
+
type: 'string',
|
|
2251
|
+
nullable: true,
|
|
2252
|
+
description: 'Last 4 digits of the payment card number.',
|
|
2253
|
+
example: '4242'
|
|
2254
|
+
},
|
|
2255
|
+
exp_month: {
|
|
2256
|
+
type: 'integer',
|
|
2257
|
+
minimum: 1,
|
|
2258
|
+
maximum: 12,
|
|
2259
|
+
nullable: true,
|
|
2260
|
+
description: 'Two-digit number representing the card\'s expiration month.',
|
|
2261
|
+
example: '12'
|
|
2262
|
+
},
|
|
2263
|
+
exp_year: {
|
|
2264
|
+
type: 'integer',
|
|
2265
|
+
minimum: 2024,
|
|
2266
|
+
nullable: true,
|
|
2267
|
+
description: 'Four-digit number representing the card\'s expiration year.',
|
|
2268
|
+
example: '2028'
|
|
2269
|
+
},
|
|
2270
|
+
brand: {
|
|
2271
|
+
type: 'string',
|
|
2272
|
+
nullable: true,
|
|
2273
|
+
description: 'Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.',
|
|
2274
|
+
example: 'visa',
|
|
2275
|
+
enum: [
|
|
2276
|
+
'amex',
|
|
2277
|
+
'diners',
|
|
2278
|
+
'discover',
|
|
2279
|
+
'eftpos_au',
|
|
2280
|
+
'jcb',
|
|
2281
|
+
'mastercard',
|
|
2282
|
+
'unionpay',
|
|
2283
|
+
'visa',
|
|
2284
|
+
'unknown'
|
|
2285
|
+
]
|
|
2286
|
+
}
|
|
2287
|
+
},
|
|
2288
|
+
required: [
|
|
2289
|
+
'id',
|
|
2290
|
+
'setup',
|
|
2291
|
+
'type',
|
|
2292
|
+
'last4',
|
|
2293
|
+
'exp_month',
|
|
2294
|
+
'exp_year',
|
|
2295
|
+
'brand'
|
|
2296
|
+
],
|
|
2297
|
+
additionalProperties: false
|
|
2298
|
+
};
|
|
2299
|
+
export const PlatformQuotaSchema = {
|
|
2300
|
+
type: 'object',
|
|
2301
|
+
properties: {
|
|
2302
|
+
basic_clusters_max: {
|
|
2303
|
+
type: 'integer',
|
|
2304
|
+
minimum: 0,
|
|
2305
|
+
description: 'Maximum number of Basic clusters that can be created.',
|
|
2306
|
+
example: 999
|
|
2307
|
+
},
|
|
2308
|
+
basic_clusters_available: {
|
|
2309
|
+
type: 'integer',
|
|
2310
|
+
description: 'Available number of Basic clusters that can be created.',
|
|
2311
|
+
example: 999
|
|
2312
|
+
},
|
|
2313
|
+
pro_clusters_max: {
|
|
2314
|
+
type: 'integer',
|
|
2315
|
+
minimum: 0,
|
|
2316
|
+
description: 'Maximum number of Pro clusters that can be created.',
|
|
2317
|
+
example: 999
|
|
2318
|
+
},
|
|
2319
|
+
pro_clusters_available: {
|
|
2320
|
+
type: 'integer',
|
|
2321
|
+
description: 'Available number of Pro clusters that can be created.',
|
|
2322
|
+
example: 999
|
|
2323
|
+
},
|
|
2324
|
+
fleets_max: {
|
|
2325
|
+
type: 'integer',
|
|
2326
|
+
minimum: 0,
|
|
2327
|
+
description: 'Maximum number of fleets that can be created per cluster.',
|
|
2328
|
+
example: 999
|
|
2329
|
+
},
|
|
2330
|
+
cluster_tiers: {
|
|
2331
|
+
type: 'array',
|
|
2332
|
+
items: {
|
|
2333
|
+
type: 'string',
|
|
2334
|
+
example: 'basic'
|
|
2335
|
+
},
|
|
2336
|
+
minItems: 0,
|
|
2337
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
2338
|
+
},
|
|
2339
|
+
regions: {
|
|
2340
|
+
type: 'array',
|
|
2341
|
+
items: {
|
|
2342
|
+
type: 'string',
|
|
2343
|
+
example: 'northamerica-central-1'
|
|
2344
|
+
},
|
|
2345
|
+
minItems: 1,
|
|
2346
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
2347
|
+
},
|
|
2348
|
+
versions: {
|
|
2349
|
+
type: 'array',
|
|
2350
|
+
items: {
|
|
2351
|
+
type: 'object',
|
|
2352
|
+
properties: {
|
|
2353
|
+
id: {
|
|
2354
|
+
type: 'string',
|
|
2355
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
2356
|
+
example: '1.33.x-cfke.x'
|
|
2357
|
+
},
|
|
2358
|
+
label: {
|
|
2359
|
+
type: 'string',
|
|
2360
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
2361
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
required: [
|
|
2365
|
+
'id',
|
|
2366
|
+
'label'
|
|
2367
|
+
],
|
|
2368
|
+
additionalProperties: false
|
|
2369
|
+
},
|
|
2370
|
+
minItems: 1,
|
|
2371
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
2372
|
+
},
|
|
2373
|
+
cfcr_storage_gb: {
|
|
2374
|
+
type: 'integer',
|
|
2375
|
+
minimum: -1,
|
|
2376
|
+
description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
|
|
2377
|
+
example: 500
|
|
2378
|
+
}
|
|
2379
|
+
},
|
|
2380
|
+
required: [
|
|
2381
|
+
'basic_clusters_max',
|
|
2382
|
+
'basic_clusters_available',
|
|
2383
|
+
'pro_clusters_max',
|
|
2384
|
+
'pro_clusters_available',
|
|
2385
|
+
'fleets_max',
|
|
2386
|
+
'cluster_tiers',
|
|
2387
|
+
'regions',
|
|
2388
|
+
'versions',
|
|
2389
|
+
'cfcr_storage_gb'
|
|
2390
|
+
],
|
|
2391
|
+
additionalProperties: false
|
|
2392
|
+
};
|
|
2393
|
+
export const RegistryRepositorySchema = {
|
|
2394
|
+
type: 'object',
|
|
2395
|
+
properties: {
|
|
2396
|
+
name: {
|
|
2397
|
+
type: 'string',
|
|
2398
|
+
description: 'Repository name.',
|
|
2399
|
+
example: 'my-app'
|
|
2400
|
+
},
|
|
2401
|
+
region: {
|
|
2402
|
+
type: 'string',
|
|
2403
|
+
description: 'Registry region.',
|
|
2404
|
+
example: 'northamerica'
|
|
2405
|
+
},
|
|
2406
|
+
uri: {
|
|
2407
|
+
type: 'string',
|
|
2408
|
+
description: 'Full URI of the repository.',
|
|
2409
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
|
|
2410
|
+
}
|
|
2411
|
+
},
|
|
2412
|
+
required: [
|
|
2413
|
+
'name',
|
|
2414
|
+
'region',
|
|
2415
|
+
'uri'
|
|
2416
|
+
],
|
|
2417
|
+
additionalProperties: false
|
|
2418
|
+
};
|
|
2419
|
+
export const RegistryRepositoryWithTagsSchema = {
|
|
2420
|
+
type: 'object',
|
|
2421
|
+
properties: {
|
|
2422
|
+
name: {
|
|
2423
|
+
type: 'string',
|
|
2424
|
+
description: 'Repository name.',
|
|
2425
|
+
example: 'my-app'
|
|
2426
|
+
},
|
|
2427
|
+
region: {
|
|
2428
|
+
type: 'string',
|
|
2429
|
+
description: 'Registry region.',
|
|
2430
|
+
example: 'northamerica'
|
|
2431
|
+
},
|
|
2432
|
+
uri: {
|
|
2433
|
+
type: 'string',
|
|
2434
|
+
description: 'Full URI of the repository.',
|
|
2435
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
|
|
2436
|
+
},
|
|
2437
|
+
tags: {
|
|
2438
|
+
type: 'array',
|
|
2439
|
+
items: {
|
|
2440
|
+
type: 'object',
|
|
2441
|
+
properties: {
|
|
2442
|
+
name: {
|
|
2443
|
+
type: 'string',
|
|
2444
|
+
description: 'Tag name.',
|
|
2445
|
+
example: 'latest'
|
|
2446
|
+
},
|
|
2447
|
+
size: {
|
|
2448
|
+
type: 'number',
|
|
2449
|
+
format: 'float',
|
|
2450
|
+
description: 'Size of the tag in bytes.',
|
|
2451
|
+
example: 123456789
|
|
2452
|
+
},
|
|
2453
|
+
mediaType: {
|
|
2454
|
+
type: 'string',
|
|
2455
|
+
description: 'Media type of the manifest.',
|
|
2456
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
2457
|
+
},
|
|
2458
|
+
platforms: {
|
|
2459
|
+
type: 'array',
|
|
2460
|
+
items: {
|
|
2461
|
+
type: 'string'
|
|
2462
|
+
},
|
|
2463
|
+
description: 'Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).',
|
|
2464
|
+
example: [
|
|
2465
|
+
'linux/amd64',
|
|
2466
|
+
'linux/arm64'
|
|
2467
|
+
]
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
required: [
|
|
2471
|
+
'name',
|
|
2472
|
+
'size'
|
|
2473
|
+
],
|
|
2474
|
+
additionalProperties: false
|
|
2475
|
+
},
|
|
2476
|
+
description: 'Array of tags in the repository.'
|
|
2477
|
+
},
|
|
2478
|
+
totalSize: {
|
|
2479
|
+
type: 'number',
|
|
2480
|
+
format: 'float',
|
|
2481
|
+
description: 'Total size of all tags in the repository in bytes.',
|
|
2482
|
+
example: 987654321
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
required: [
|
|
2486
|
+
'name',
|
|
2487
|
+
'region',
|
|
2488
|
+
'uri',
|
|
2489
|
+
'tags',
|
|
2490
|
+
'totalSize'
|
|
2491
|
+
],
|
|
2492
|
+
additionalProperties: false
|
|
2493
|
+
};
|
|
2494
|
+
export const RegistryTagSchema = {
|
|
2495
|
+
type: 'object',
|
|
2496
|
+
properties: {
|
|
2497
|
+
name: {
|
|
2498
|
+
type: 'string',
|
|
2499
|
+
description: 'Tag name.',
|
|
2500
|
+
example: 'latest'
|
|
2501
|
+
},
|
|
2502
|
+
digest: {
|
|
2503
|
+
type: 'string',
|
|
2504
|
+
description: 'Manifest digest for pulling by digest.',
|
|
2505
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2506
|
+
},
|
|
2507
|
+
mediaType: {
|
|
2508
|
+
type: 'string',
|
|
2509
|
+
description: 'Media type of the manifest.',
|
|
2510
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
2511
|
+
},
|
|
2512
|
+
config: {
|
|
2513
|
+
type: 'object',
|
|
2514
|
+
properties: {
|
|
2515
|
+
size: {
|
|
2516
|
+
type: 'number',
|
|
2517
|
+
format: 'float',
|
|
2518
|
+
description: 'Size of the config in bytes.',
|
|
2519
|
+
example: 1234
|
|
2520
|
+
}
|
|
2521
|
+
},
|
|
2522
|
+
required: [
|
|
2523
|
+
'size'
|
|
2524
|
+
],
|
|
2525
|
+
additionalProperties: false,
|
|
2526
|
+
description: 'Manifest config metadata.'
|
|
2527
|
+
},
|
|
2528
|
+
layers: {
|
|
2529
|
+
type: 'array',
|
|
2530
|
+
items: {
|
|
2531
|
+
type: 'object',
|
|
2532
|
+
properties: {
|
|
2533
|
+
digest: {
|
|
2534
|
+
type: 'string',
|
|
2535
|
+
description: 'Digest of the layer.',
|
|
2536
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2537
|
+
},
|
|
2538
|
+
size: {
|
|
2539
|
+
type: 'number',
|
|
2540
|
+
format: 'float',
|
|
2541
|
+
description: 'Size of the layer in bytes.',
|
|
2542
|
+
example: 5678
|
|
2543
|
+
}
|
|
2544
|
+
},
|
|
2545
|
+
required: [
|
|
2546
|
+
'size'
|
|
2547
|
+
],
|
|
2548
|
+
additionalProperties: false
|
|
2549
|
+
},
|
|
2550
|
+
description: 'Array of layer metadata.'
|
|
2551
|
+
},
|
|
2552
|
+
manifests: {
|
|
2553
|
+
type: 'array',
|
|
2554
|
+
items: {
|
|
2555
|
+
type: 'object',
|
|
2556
|
+
properties: {
|
|
2557
|
+
digest: {
|
|
2558
|
+
type: 'string',
|
|
2559
|
+
description: 'Digest of the manifest.',
|
|
2560
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2561
|
+
},
|
|
2562
|
+
platform: {
|
|
2563
|
+
type: 'object',
|
|
2564
|
+
properties: {
|
|
2565
|
+
architecture: {
|
|
2566
|
+
type: 'string',
|
|
2567
|
+
description: 'Architecture of the platform.',
|
|
2568
|
+
example: 'amd64'
|
|
2569
|
+
},
|
|
2570
|
+
os: {
|
|
2571
|
+
type: 'string',
|
|
2572
|
+
description: 'Operating system of the platform.',
|
|
2573
|
+
example: 'linux'
|
|
2574
|
+
},
|
|
2575
|
+
variant: {
|
|
2576
|
+
type: 'string',
|
|
2577
|
+
description: 'Variant of the platform (e.g., v7, v8 for ARM).',
|
|
2578
|
+
example: 'v8'
|
|
2579
|
+
}
|
|
2580
|
+
},
|
|
2581
|
+
required: [
|
|
2582
|
+
'architecture',
|
|
2583
|
+
'os'
|
|
2584
|
+
],
|
|
2585
|
+
additionalProperties: false,
|
|
2586
|
+
description: 'Platform information for the manifest.'
|
|
2587
|
+
},
|
|
2588
|
+
layers: {
|
|
2589
|
+
type: 'array',
|
|
2590
|
+
items: {
|
|
2591
|
+
type: 'object',
|
|
2592
|
+
properties: {
|
|
2593
|
+
digest: {
|
|
2594
|
+
type: 'string',
|
|
2595
|
+
description: 'Digest of the layer.',
|
|
2596
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2597
|
+
},
|
|
2598
|
+
size: {
|
|
2599
|
+
type: 'number',
|
|
2600
|
+
format: 'float',
|
|
2601
|
+
description: 'Size of the layer in bytes.',
|
|
2602
|
+
example: 5678
|
|
2603
|
+
}
|
|
2604
|
+
},
|
|
2605
|
+
required: [
|
|
2606
|
+
'size'
|
|
2607
|
+
],
|
|
2608
|
+
additionalProperties: false
|
|
2609
|
+
},
|
|
2610
|
+
description: 'Layers for this platform.'
|
|
2611
|
+
},
|
|
2612
|
+
size: {
|
|
2613
|
+
type: 'number',
|
|
2614
|
+
format: 'float',
|
|
2615
|
+
description: 'Total size of this platform manifest in bytes.',
|
|
2616
|
+
example: 12345678
|
|
2617
|
+
}
|
|
2618
|
+
},
|
|
2619
|
+
required: [
|
|
2620
|
+
'digest'
|
|
2621
|
+
],
|
|
2622
|
+
additionalProperties: false
|
|
2623
|
+
},
|
|
2624
|
+
description: 'Array of manifests for multi-arch images.'
|
|
2625
|
+
},
|
|
2626
|
+
size: {
|
|
2627
|
+
type: 'number',
|
|
2628
|
+
format: 'float',
|
|
2629
|
+
description: 'Total size of the tag in bytes.',
|
|
2630
|
+
example: 123456789
|
|
2631
|
+
},
|
|
2632
|
+
region: {
|
|
2633
|
+
type: 'string',
|
|
2634
|
+
description: 'Registry region.',
|
|
2635
|
+
example: 'northamerica'
|
|
2636
|
+
},
|
|
2637
|
+
repository: {
|
|
2638
|
+
type: 'string',
|
|
2639
|
+
description: 'Repository name.',
|
|
2640
|
+
example: 'my-app'
|
|
2641
|
+
},
|
|
2642
|
+
uri: {
|
|
2643
|
+
type: 'string',
|
|
2644
|
+
description: 'Full URI of the tag.',
|
|
2645
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
|
|
2646
|
+
}
|
|
2647
|
+
},
|
|
2648
|
+
required: [
|
|
2649
|
+
'name',
|
|
2650
|
+
'digest',
|
|
2651
|
+
'size',
|
|
2652
|
+
'region',
|
|
2653
|
+
'repository',
|
|
2654
|
+
'uri'
|
|
2655
|
+
],
|
|
2656
|
+
additionalProperties: false
|
|
2657
|
+
};
|
|
2658
|
+
export const TicketAttachmentSchema = {
|
|
2659
|
+
type: 'object',
|
|
2660
|
+
properties: {
|
|
2661
|
+
id: {
|
|
2662
|
+
type: 'string',
|
|
2663
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2664
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2665
|
+
},
|
|
2666
|
+
filename: {
|
|
2667
|
+
type: 'string',
|
|
2668
|
+
description: 'Original filename as uploaded.',
|
|
2669
|
+
example: 'debug.log'
|
|
2670
|
+
},
|
|
2671
|
+
content_type: {
|
|
2672
|
+
type: 'string',
|
|
2673
|
+
description: 'MIME content type of the attachment.',
|
|
2674
|
+
example: 'text/plain'
|
|
2675
|
+
},
|
|
2676
|
+
size: {
|
|
2677
|
+
type: 'integer',
|
|
2678
|
+
description: 'Size of the attachment in bytes.',
|
|
2679
|
+
example: 12345
|
|
2680
|
+
}
|
|
2681
|
+
},
|
|
2682
|
+
required: [
|
|
2683
|
+
'id',
|
|
2684
|
+
'filename',
|
|
2685
|
+
'content_type',
|
|
2686
|
+
'size'
|
|
2687
|
+
],
|
|
2688
|
+
additionalProperties: false
|
|
2689
|
+
};
|
|
2690
|
+
export const TicketCreateInputSchema = {
|
|
2691
|
+
type: 'object',
|
|
2692
|
+
properties: {
|
|
2693
|
+
category: {
|
|
2694
|
+
type: 'string',
|
|
2695
|
+
description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
|
|
2696
|
+
example: 'technical',
|
|
2697
|
+
enum: [
|
|
2698
|
+
'billing',
|
|
2699
|
+
'technical',
|
|
2700
|
+
'general'
|
|
2701
|
+
]
|
|
2702
|
+
},
|
|
2703
|
+
body: {
|
|
2704
|
+
type: 'string',
|
|
2705
|
+
maxLength: 50000,
|
|
2706
|
+
minLength: 1,
|
|
2707
|
+
pattern: '\\S',
|
|
2708
|
+
description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
|
|
2709
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
2710
|
+
},
|
|
2711
|
+
properties: {
|
|
2712
|
+
type: 'object',
|
|
2713
|
+
additionalProperties: true,
|
|
2714
|
+
description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
|
|
2715
|
+
example: {
|
|
2716
|
+
subcategory: 'cluster-question',
|
|
2717
|
+
cluster_id: '60c72b2f9f1b2c001f8e4d3a'
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
},
|
|
2721
|
+
required: [
|
|
2722
|
+
'category',
|
|
2723
|
+
'body'
|
|
2724
|
+
],
|
|
2725
|
+
additionalProperties: false
|
|
2726
|
+
};
|
|
2727
|
+
export const TicketListResponseSchema = {
|
|
2728
|
+
type: 'object',
|
|
2729
|
+
properties: {
|
|
2730
|
+
items: {
|
|
2731
|
+
type: 'array',
|
|
2732
|
+
items: {
|
|
2733
|
+
type: 'object',
|
|
2734
|
+
properties: {
|
|
2735
|
+
id: {
|
|
2736
|
+
type: 'string',
|
|
2737
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
2738
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
2739
|
+
},
|
|
2740
|
+
status: {
|
|
2741
|
+
type: 'string',
|
|
2742
|
+
description: 'Current state of the ticket.',
|
|
2743
|
+
example: 'waiting_on_us',
|
|
2744
|
+
enum: [
|
|
2745
|
+
'waiting_on_us',
|
|
2746
|
+
'waiting_on_user',
|
|
2747
|
+
'closed'
|
|
2748
|
+
]
|
|
2749
|
+
},
|
|
2750
|
+
category: {
|
|
2751
|
+
type: 'string',
|
|
2752
|
+
description: 'Ticket category.',
|
|
2753
|
+
example: 'technical',
|
|
2754
|
+
enum: [
|
|
2755
|
+
'billing',
|
|
2756
|
+
'technical',
|
|
2757
|
+
'general'
|
|
2758
|
+
]
|
|
2759
|
+
},
|
|
2760
|
+
summary: {
|
|
2761
|
+
type: 'string',
|
|
2762
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
2763
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
2764
|
+
},
|
|
2765
|
+
closed_at: {
|
|
2766
|
+
type: 'string',
|
|
2767
|
+
format: 'date-time',
|
|
2768
|
+
nullable: true,
|
|
2769
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
2770
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
2771
|
+
},
|
|
2772
|
+
date_created: {
|
|
2773
|
+
type: 'string',
|
|
2774
|
+
format: 'date-time',
|
|
2775
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
2776
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2777
|
+
},
|
|
2778
|
+
date_updated: {
|
|
2779
|
+
type: 'string',
|
|
2780
|
+
format: 'date-time',
|
|
2781
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
2782
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2783
|
+
},
|
|
2784
|
+
messages: {
|
|
2785
|
+
type: 'array',
|
|
2786
|
+
items: {
|
|
2787
|
+
type: 'object',
|
|
2788
|
+
properties: {
|
|
2789
|
+
id: {
|
|
2790
|
+
type: 'string',
|
|
2791
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
2792
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
2793
|
+
},
|
|
2794
|
+
type: {
|
|
2795
|
+
type: 'string',
|
|
2796
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
2797
|
+
example: 'customer_reply',
|
|
2798
|
+
enum: [
|
|
2799
|
+
'customer_reply',
|
|
2800
|
+
'agent_reply'
|
|
2801
|
+
]
|
|
2802
|
+
},
|
|
2803
|
+
body: {
|
|
2804
|
+
type: 'string',
|
|
2805
|
+
description: 'Message body in markdown.',
|
|
2806
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2807
|
+
},
|
|
2808
|
+
author_first_name: {
|
|
2809
|
+
type: 'string',
|
|
2810
|
+
nullable: true,
|
|
2811
|
+
description: 'First name of the author. Null when not provided.',
|
|
2812
|
+
example: 'Jane'
|
|
2813
|
+
},
|
|
2814
|
+
author_last_name: {
|
|
2815
|
+
type: 'string',
|
|
2816
|
+
nullable: true,
|
|
2817
|
+
description: 'Last name of the author. Null when not provided.',
|
|
2818
|
+
example: 'Doe'
|
|
2819
|
+
},
|
|
2820
|
+
attachments: {
|
|
2821
|
+
type: 'array',
|
|
2822
|
+
items: {
|
|
2823
|
+
type: 'object',
|
|
2824
|
+
properties: {
|
|
2825
|
+
id: {
|
|
2826
|
+
type: 'string',
|
|
2827
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2828
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2829
|
+
},
|
|
2830
|
+
filename: {
|
|
2831
|
+
type: 'string',
|
|
2832
|
+
description: 'Original filename as uploaded.',
|
|
2833
|
+
example: 'debug.log'
|
|
2834
|
+
},
|
|
2835
|
+
content_type: {
|
|
2836
|
+
type: 'string',
|
|
2837
|
+
description: 'MIME content type of the attachment.',
|
|
2838
|
+
example: 'text/plain'
|
|
2839
|
+
},
|
|
2840
|
+
size: {
|
|
2841
|
+
type: 'integer',
|
|
2842
|
+
description: 'Size of the attachment in bytes.',
|
|
2843
|
+
example: 12345
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
required: [
|
|
2847
|
+
'id',
|
|
2848
|
+
'filename',
|
|
2849
|
+
'content_type',
|
|
2850
|
+
'size'
|
|
2851
|
+
],
|
|
2852
|
+
additionalProperties: false
|
|
2853
|
+
},
|
|
2854
|
+
description: 'Attachments associated with this message.',
|
|
2855
|
+
example: []
|
|
2856
|
+
},
|
|
2857
|
+
date_created: {
|
|
2858
|
+
type: 'string',
|
|
2859
|
+
format: 'date-time',
|
|
2860
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
2861
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2862
|
+
}
|
|
2863
|
+
},
|
|
2864
|
+
required: [
|
|
2865
|
+
'id',
|
|
2866
|
+
'type',
|
|
2867
|
+
'body',
|
|
2868
|
+
'date_created'
|
|
2869
|
+
],
|
|
2870
|
+
additionalProperties: false
|
|
2871
|
+
},
|
|
2872
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
required: [
|
|
2876
|
+
'id',
|
|
2877
|
+
'status',
|
|
2878
|
+
'category',
|
|
2879
|
+
'summary',
|
|
2880
|
+
'date_created',
|
|
2881
|
+
'date_updated'
|
|
2882
|
+
],
|
|
2883
|
+
additionalProperties: false
|
|
2884
|
+
},
|
|
2885
|
+
description: 'Tickets for the organization, ordered newest first. Messages are omitted from list responses.'
|
|
2886
|
+
}
|
|
2887
|
+
},
|
|
2888
|
+
required: [
|
|
2889
|
+
'items'
|
|
2890
|
+
],
|
|
2891
|
+
additionalProperties: false
|
|
2892
|
+
};
|
|
2893
|
+
export const TicketMessageInputSchema = {
|
|
2894
|
+
type: 'object',
|
|
2895
|
+
properties: {
|
|
2896
|
+
body: {
|
|
2897
|
+
type: 'string',
|
|
2898
|
+
maxLength: 50000,
|
|
2899
|
+
minLength: 1,
|
|
2900
|
+
pattern: '\\S',
|
|
2901
|
+
description: 'Reply body in markdown.',
|
|
2902
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2903
|
+
}
|
|
2904
|
+
},
|
|
2905
|
+
required: [
|
|
2906
|
+
'body'
|
|
2907
|
+
],
|
|
2908
|
+
additionalProperties: false
|
|
2909
|
+
};
|
|
2910
|
+
export const TicketMessageSchema = {
|
|
2911
|
+
type: 'object',
|
|
2912
|
+
properties: {
|
|
2913
|
+
id: {
|
|
2914
|
+
type: 'string',
|
|
2915
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
2916
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
2917
|
+
},
|
|
2918
|
+
type: {
|
|
2919
|
+
type: 'string',
|
|
2920
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
2921
|
+
example: 'customer_reply',
|
|
2922
|
+
enum: [
|
|
2923
|
+
'customer_reply',
|
|
2924
|
+
'agent_reply'
|
|
2925
|
+
]
|
|
2926
|
+
},
|
|
2927
|
+
body: {
|
|
2928
|
+
type: 'string',
|
|
2929
|
+
description: 'Message body in markdown.',
|
|
2930
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2931
|
+
},
|
|
2932
|
+
author_first_name: {
|
|
2933
|
+
type: 'string',
|
|
2934
|
+
description: 'First name of the author. Null when not provided.',
|
|
2935
|
+
example: 'Jane'
|
|
2936
|
+
},
|
|
2937
|
+
author_last_name: {
|
|
2938
|
+
type: 'string',
|
|
2939
|
+
description: 'Last name of the author. Null when not provided.',
|
|
2940
|
+
example: 'Doe'
|
|
2941
|
+
},
|
|
2942
|
+
attachments: {
|
|
2943
|
+
type: 'array',
|
|
2944
|
+
items: {
|
|
2945
|
+
type: 'object',
|
|
2946
|
+
properties: {
|
|
2947
|
+
id: {
|
|
2948
|
+
type: 'string',
|
|
2949
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2950
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
1283
2951
|
},
|
|
1284
|
-
|
|
1285
|
-
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
1286
|
-
},
|
|
1287
|
-
regions: {
|
|
1288
|
-
type: 'array',
|
|
1289
|
-
items: {
|
|
2952
|
+
filename: {
|
|
1290
2953
|
type: 'string',
|
|
1291
|
-
|
|
2954
|
+
description: 'Original filename as uploaded.',
|
|
2955
|
+
example: 'debug.log'
|
|
1292
2956
|
},
|
|
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
|
|
2957
|
+
content_type: {
|
|
2958
|
+
type: 'string',
|
|
2959
|
+
description: 'MIME content type of the attachment.',
|
|
2960
|
+
example: 'text/plain'
|
|
1314
2961
|
},
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
2962
|
+
size: {
|
|
2963
|
+
type: 'integer',
|
|
2964
|
+
description: 'Size of the attachment in bytes.',
|
|
2965
|
+
example: 12345
|
|
2966
|
+
}
|
|
2967
|
+
},
|
|
2968
|
+
required: [
|
|
2969
|
+
'id',
|
|
2970
|
+
'filename',
|
|
2971
|
+
'content_type',
|
|
2972
|
+
'size'
|
|
2973
|
+
],
|
|
2974
|
+
additionalProperties: false
|
|
1318
2975
|
},
|
|
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.'
|
|
2976
|
+
description: 'Attachments associated with this message.',
|
|
2977
|
+
example: []
|
|
1322
2978
|
},
|
|
1323
|
-
|
|
2979
|
+
date_created: {
|
|
1324
2980
|
type: 'string',
|
|
1325
|
-
|
|
1326
|
-
|
|
2981
|
+
format: 'date-time',
|
|
2982
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
2983
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1327
2984
|
}
|
|
1328
2985
|
},
|
|
1329
|
-
required: [
|
|
2986
|
+
required: [
|
|
2987
|
+
'id',
|
|
2988
|
+
'type',
|
|
2989
|
+
'body',
|
|
2990
|
+
'date_created'
|
|
2991
|
+
],
|
|
1330
2992
|
additionalProperties: false
|
|
1331
2993
|
};
|
|
1332
|
-
export const
|
|
2994
|
+
export const TicketSchema = {
|
|
1333
2995
|
type: 'object',
|
|
1334
2996
|
properties: {
|
|
1335
2997
|
id: {
|
|
1336
2998
|
type: 'string',
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
|
|
2999
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
3000
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
1340
3001
|
},
|
|
1341
|
-
|
|
1342
|
-
type: '
|
|
1343
|
-
description: '
|
|
1344
|
-
example:
|
|
3002
|
+
status: {
|
|
3003
|
+
type: 'string',
|
|
3004
|
+
description: 'Current state of the ticket.',
|
|
3005
|
+
example: 'waiting_on_us',
|
|
3006
|
+
enum: [
|
|
3007
|
+
'waiting_on_us',
|
|
3008
|
+
'waiting_on_user',
|
|
3009
|
+
'closed'
|
|
3010
|
+
]
|
|
1345
3011
|
},
|
|
1346
|
-
|
|
3012
|
+
category: {
|
|
1347
3013
|
type: 'string',
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
3014
|
+
description: 'Ticket category.',
|
|
3015
|
+
example: 'technical',
|
|
3016
|
+
enum: [
|
|
3017
|
+
'billing',
|
|
3018
|
+
'technical',
|
|
3019
|
+
'general'
|
|
3020
|
+
]
|
|
1352
3021
|
},
|
|
1353
|
-
|
|
3022
|
+
summary: {
|
|
1354
3023
|
type: 'string',
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
example: '4242'
|
|
3024
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
3025
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
1358
3026
|
},
|
|
1359
|
-
|
|
1360
|
-
type: '
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
description: "Two-digit number representing the card's expiration month.",
|
|
1365
|
-
example: '12'
|
|
3027
|
+
closed_at: {
|
|
3028
|
+
type: 'string',
|
|
3029
|
+
format: 'date-time',
|
|
3030
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
3031
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
1366
3032
|
},
|
|
1367
|
-
|
|
1368
|
-
type: '
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
example: '2028'
|
|
3033
|
+
date_created: {
|
|
3034
|
+
type: 'string',
|
|
3035
|
+
format: 'date-time',
|
|
3036
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
3037
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1373
3038
|
},
|
|
1374
|
-
|
|
3039
|
+
date_updated: {
|
|
1375
3040
|
type: 'string',
|
|
1376
|
-
|
|
1377
|
-
description: '
|
|
1378
|
-
example: '
|
|
1379
|
-
|
|
3041
|
+
format: 'date-time',
|
|
3042
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
3043
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3044
|
+
},
|
|
3045
|
+
messages: {
|
|
3046
|
+
type: 'array',
|
|
3047
|
+
items: {
|
|
3048
|
+
type: 'object',
|
|
3049
|
+
properties: {
|
|
3050
|
+
id: {
|
|
3051
|
+
type: 'string',
|
|
3052
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
3053
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
3054
|
+
},
|
|
3055
|
+
type: {
|
|
3056
|
+
type: 'string',
|
|
3057
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
3058
|
+
example: 'customer_reply',
|
|
3059
|
+
enum: [
|
|
3060
|
+
'customer_reply',
|
|
3061
|
+
'agent_reply'
|
|
3062
|
+
]
|
|
3063
|
+
},
|
|
3064
|
+
body: {
|
|
3065
|
+
type: 'string',
|
|
3066
|
+
description: 'Message body in markdown.',
|
|
3067
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3068
|
+
},
|
|
3069
|
+
author_first_name: {
|
|
3070
|
+
type: 'string',
|
|
3071
|
+
description: 'First name of the author. Null when not provided.',
|
|
3072
|
+
example: 'Jane'
|
|
3073
|
+
},
|
|
3074
|
+
author_last_name: {
|
|
3075
|
+
type: 'string',
|
|
3076
|
+
description: 'Last name of the author. Null when not provided.',
|
|
3077
|
+
example: 'Doe'
|
|
3078
|
+
},
|
|
3079
|
+
attachments: {
|
|
3080
|
+
type: 'array',
|
|
3081
|
+
items: {
|
|
3082
|
+
type: 'object',
|
|
3083
|
+
properties: {
|
|
3084
|
+
id: {
|
|
3085
|
+
type: 'string',
|
|
3086
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
3087
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
3088
|
+
},
|
|
3089
|
+
filename: {
|
|
3090
|
+
type: 'string',
|
|
3091
|
+
description: 'Original filename as uploaded.',
|
|
3092
|
+
example: 'debug.log'
|
|
3093
|
+
},
|
|
3094
|
+
content_type: {
|
|
3095
|
+
type: 'string',
|
|
3096
|
+
description: 'MIME content type of the attachment.',
|
|
3097
|
+
example: 'text/plain'
|
|
3098
|
+
},
|
|
3099
|
+
size: {
|
|
3100
|
+
type: 'integer',
|
|
3101
|
+
description: 'Size of the attachment in bytes.',
|
|
3102
|
+
example: 12345
|
|
3103
|
+
}
|
|
3104
|
+
},
|
|
3105
|
+
required: [
|
|
3106
|
+
'id',
|
|
3107
|
+
'filename',
|
|
3108
|
+
'content_type',
|
|
3109
|
+
'size'
|
|
3110
|
+
],
|
|
3111
|
+
additionalProperties: false
|
|
3112
|
+
},
|
|
3113
|
+
description: 'Attachments associated with this message.',
|
|
3114
|
+
example: []
|
|
3115
|
+
},
|
|
3116
|
+
date_created: {
|
|
3117
|
+
type: 'string',
|
|
3118
|
+
format: 'date-time',
|
|
3119
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
3120
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3121
|
+
}
|
|
3122
|
+
},
|
|
3123
|
+
required: [
|
|
3124
|
+
'id',
|
|
3125
|
+
'type',
|
|
3126
|
+
'body',
|
|
3127
|
+
'date_created'
|
|
3128
|
+
],
|
|
3129
|
+
additionalProperties: false
|
|
3130
|
+
},
|
|
3131
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
1380
3132
|
}
|
|
1381
3133
|
},
|
|
1382
|
-
required: [
|
|
3134
|
+
required: [
|
|
3135
|
+
'id',
|
|
3136
|
+
'status',
|
|
3137
|
+
'category',
|
|
3138
|
+
'summary',
|
|
3139
|
+
'date_created',
|
|
3140
|
+
'date_updated'
|
|
3141
|
+
],
|
|
1383
3142
|
additionalProperties: false
|
|
1384
3143
|
};
|
|
1385
3144
|
export const TokenCreateInputSchema = {
|
|
@@ -1397,10 +3156,16 @@ export const TokenCreateInputSchema = {
|
|
|
1397
3156
|
type: 'string',
|
|
1398
3157
|
description: 'Role assumed by the token.',
|
|
1399
3158
|
example: 'User',
|
|
1400
|
-
enum: [
|
|
3159
|
+
enum: [
|
|
3160
|
+
'Administrator',
|
|
3161
|
+
'User'
|
|
3162
|
+
]
|
|
1401
3163
|
}
|
|
1402
3164
|
},
|
|
1403
|
-
required: [
|
|
3165
|
+
required: [
|
|
3166
|
+
'name',
|
|
3167
|
+
'role'
|
|
3168
|
+
],
|
|
1404
3169
|
additionalProperties: false
|
|
1405
3170
|
};
|
|
1406
3171
|
export const TokenSchema = {
|
|
@@ -1418,7 +3183,10 @@ export const TokenSchema = {
|
|
|
1418
3183
|
type: 'string',
|
|
1419
3184
|
description: 'Role assumed by the token.',
|
|
1420
3185
|
example: 'User',
|
|
1421
|
-
enum: [
|
|
3186
|
+
enum: [
|
|
3187
|
+
'Administrator',
|
|
3188
|
+
'User'
|
|
3189
|
+
]
|
|
1422
3190
|
},
|
|
1423
3191
|
id: {
|
|
1424
3192
|
type: 'string',
|
|
@@ -1437,7 +3205,11 @@ export const TokenSchema = {
|
|
|
1437
3205
|
example: '2023-12-20T13:53:32.000Z'
|
|
1438
3206
|
}
|
|
1439
3207
|
},
|
|
1440
|
-
required: [
|
|
3208
|
+
required: [
|
|
3209
|
+
'name',
|
|
3210
|
+
'role',
|
|
3211
|
+
'date_created'
|
|
3212
|
+
],
|
|
1441
3213
|
additionalProperties: false
|
|
1442
3214
|
};
|
|
1443
3215
|
export const TokenUpdateInputSchema = {
|
|
@@ -1455,9 +3227,127 @@ export const TokenUpdateInputSchema = {
|
|
|
1455
3227
|
type: 'string',
|
|
1456
3228
|
description: 'Role assumed by the token.',
|
|
1457
3229
|
example: 'User',
|
|
1458
|
-
enum: [
|
|
3230
|
+
enum: [
|
|
3231
|
+
'Administrator',
|
|
3232
|
+
'User'
|
|
3233
|
+
]
|
|
3234
|
+
}
|
|
3235
|
+
},
|
|
3236
|
+
additionalProperties: false
|
|
3237
|
+
};
|
|
3238
|
+
export const UsageFacetsSchema = {
|
|
3239
|
+
type: 'object',
|
|
3240
|
+
properties: {
|
|
3241
|
+
cluster_id: {
|
|
3242
|
+
type: 'array',
|
|
3243
|
+
items: {
|
|
3244
|
+
type: 'string'
|
|
3245
|
+
},
|
|
3246
|
+
description: 'List of unique cluster IDs',
|
|
3247
|
+
example: [
|
|
3248
|
+
'6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3249
|
+
]
|
|
3250
|
+
},
|
|
3251
|
+
product: {
|
|
3252
|
+
type: 'array',
|
|
3253
|
+
items: {
|
|
3254
|
+
type: 'string'
|
|
3255
|
+
},
|
|
3256
|
+
description: 'List of unique products',
|
|
3257
|
+
example: [
|
|
3258
|
+
'cfke_controlplane',
|
|
3259
|
+
'cfke_connected_nodes'
|
|
3260
|
+
]
|
|
3261
|
+
}
|
|
3262
|
+
},
|
|
3263
|
+
additionalProperties: false
|
|
3264
|
+
};
|
|
3265
|
+
export const UsageResponseSchema = {
|
|
3266
|
+
type: 'object',
|
|
3267
|
+
properties: {
|
|
3268
|
+
data: {
|
|
3269
|
+
type: 'array',
|
|
3270
|
+
items: {
|
|
3271
|
+
type: 'object',
|
|
3272
|
+
properties: {
|
|
3273
|
+
hour: {
|
|
3274
|
+
type: 'string',
|
|
3275
|
+
description: 'Hour of the usage',
|
|
3276
|
+
example: '2019-01-01T00:00:00.000Z'
|
|
3277
|
+
},
|
|
3278
|
+
cluster_id: {
|
|
3279
|
+
type: 'string',
|
|
3280
|
+
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
3281
|
+
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3282
|
+
},
|
|
3283
|
+
product: {
|
|
3284
|
+
type: 'string',
|
|
3285
|
+
description: 'The product the usage is associated with',
|
|
3286
|
+
example: 'cfke_controlplane'
|
|
3287
|
+
},
|
|
3288
|
+
value: {
|
|
3289
|
+
type: 'number',
|
|
3290
|
+
format: 'float',
|
|
3291
|
+
description: 'Consumption',
|
|
3292
|
+
example: 4
|
|
3293
|
+
},
|
|
3294
|
+
price: {
|
|
3295
|
+
type: 'number',
|
|
3296
|
+
format: 'float',
|
|
3297
|
+
description: 'Price per unit',
|
|
3298
|
+
example: 0.01
|
|
3299
|
+
},
|
|
3300
|
+
total: {
|
|
3301
|
+
type: 'number',
|
|
3302
|
+
format: 'float',
|
|
3303
|
+
description: 'Total cost'
|
|
3304
|
+
}
|
|
3305
|
+
},
|
|
3306
|
+
required: [
|
|
3307
|
+
'hour',
|
|
3308
|
+
'cluster_id',
|
|
3309
|
+
'product',
|
|
3310
|
+
'value',
|
|
3311
|
+
'price',
|
|
3312
|
+
'total'
|
|
3313
|
+
],
|
|
3314
|
+
additionalProperties: false
|
|
3315
|
+
},
|
|
3316
|
+
description: 'Usage data'
|
|
3317
|
+
},
|
|
3318
|
+
facets: {
|
|
3319
|
+
type: 'object',
|
|
3320
|
+
properties: {
|
|
3321
|
+
cluster_id: {
|
|
3322
|
+
type: 'array',
|
|
3323
|
+
items: {
|
|
3324
|
+
type: 'string'
|
|
3325
|
+
},
|
|
3326
|
+
description: 'List of unique cluster IDs',
|
|
3327
|
+
example: [
|
|
3328
|
+
'6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3329
|
+
]
|
|
3330
|
+
},
|
|
3331
|
+
product: {
|
|
3332
|
+
type: 'array',
|
|
3333
|
+
items: {
|
|
3334
|
+
type: 'string'
|
|
3335
|
+
},
|
|
3336
|
+
description: 'List of unique products',
|
|
3337
|
+
example: [
|
|
3338
|
+
'cfke_controlplane',
|
|
3339
|
+
'cfke_connected_nodes'
|
|
3340
|
+
]
|
|
3341
|
+
}
|
|
3342
|
+
},
|
|
3343
|
+
additionalProperties: false,
|
|
3344
|
+
description: 'Facets for filtering'
|
|
1459
3345
|
}
|
|
1460
3346
|
},
|
|
3347
|
+
required: [
|
|
3348
|
+
'data',
|
|
3349
|
+
'facets'
|
|
3350
|
+
],
|
|
1461
3351
|
additionalProperties: false
|
|
1462
3352
|
};
|
|
1463
3353
|
export const UsageSchema = {
|
|
@@ -1470,90 +3360,40 @@ export const UsageSchema = {
|
|
|
1470
3360
|
},
|
|
1471
3361
|
cluster_id: {
|
|
1472
3362
|
type: 'string',
|
|
1473
|
-
format: 'uuid',
|
|
1474
3363
|
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1475
3364
|
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1476
3365
|
},
|
|
1477
|
-
cluster_tier: {
|
|
1478
|
-
type: 'string',
|
|
1479
|
-
description: 'Tier of the cluster.',
|
|
1480
|
-
example: 'pro',
|
|
1481
|
-
enum: ['basic', 'pro', '']
|
|
1482
|
-
},
|
|
1483
3366
|
product: {
|
|
1484
3367
|
type: 'string',
|
|
1485
3368
|
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'
|
|
3369
|
+
example: 'cfke_controlplane'
|
|
1498
3370
|
},
|
|
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
|
-
]
|
|
3371
|
+
value: {
|
|
3372
|
+
type: 'number',
|
|
3373
|
+
format: 'float',
|
|
3374
|
+
description: 'Consumption',
|
|
3375
|
+
example: 4
|
|
1512
3376
|
},
|
|
1513
3377
|
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
|
-
]
|
|
3378
|
+
type: 'number',
|
|
3379
|
+
format: 'float',
|
|
3380
|
+
description: 'Price per unit',
|
|
3381
|
+
example: 0.01
|
|
1540
3382
|
},
|
|
1541
3383
|
total: {
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
format: 'float',
|
|
1546
|
-
description: 'Total',
|
|
1547
|
-
example: 4
|
|
1548
|
-
},
|
|
1549
|
-
{
|
|
1550
|
-
type: 'string',
|
|
1551
|
-
enum: ['']
|
|
1552
|
-
}
|
|
1553
|
-
]
|
|
3384
|
+
type: 'number',
|
|
3385
|
+
format: 'float',
|
|
3386
|
+
description: 'Total cost'
|
|
1554
3387
|
}
|
|
1555
3388
|
},
|
|
1556
|
-
required: [
|
|
3389
|
+
required: [
|
|
3390
|
+
'hour',
|
|
3391
|
+
'cluster_id',
|
|
3392
|
+
'product',
|
|
3393
|
+
'value',
|
|
3394
|
+
'price',
|
|
3395
|
+
'total'
|
|
3396
|
+
],
|
|
1557
3397
|
additionalProperties: false
|
|
1558
3398
|
};
|
|
1559
3399
|
export const UserCreateInputSchema = {
|
|
@@ -1594,16 +3434,28 @@ export const UserCreateInputSchema = {
|
|
|
1594
3434
|
type: 'string',
|
|
1595
3435
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1596
3436
|
example: 'active',
|
|
1597
|
-
enum: [
|
|
3437
|
+
enum: [
|
|
3438
|
+
'active',
|
|
3439
|
+
'inactive'
|
|
3440
|
+
]
|
|
1598
3441
|
},
|
|
1599
3442
|
role: {
|
|
1600
3443
|
type: 'string',
|
|
1601
|
-
description:
|
|
3444
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1602
3445
|
example: 'User',
|
|
1603
|
-
enum: [
|
|
3446
|
+
enum: [
|
|
3447
|
+
'Administrator',
|
|
3448
|
+
'User'
|
|
3449
|
+
]
|
|
1604
3450
|
}
|
|
1605
3451
|
},
|
|
1606
|
-
required: [
|
|
3452
|
+
required: [
|
|
3453
|
+
'email',
|
|
3454
|
+
'first_name',
|
|
3455
|
+
'last_name',
|
|
3456
|
+
'code',
|
|
3457
|
+
'password'
|
|
3458
|
+
],
|
|
1607
3459
|
additionalProperties: false
|
|
1608
3460
|
};
|
|
1609
3461
|
export const UserSchema = {
|
|
@@ -1631,15 +3483,21 @@ export const UserSchema = {
|
|
|
1631
3483
|
},
|
|
1632
3484
|
role: {
|
|
1633
3485
|
type: 'string',
|
|
1634
|
-
description:
|
|
3486
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1635
3487
|
example: 'User',
|
|
1636
|
-
enum: [
|
|
3488
|
+
enum: [
|
|
3489
|
+
'Administrator',
|
|
3490
|
+
'User'
|
|
3491
|
+
]
|
|
1637
3492
|
},
|
|
1638
3493
|
status: {
|
|
1639
3494
|
type: 'string',
|
|
1640
3495
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1641
3496
|
example: 'active',
|
|
1642
|
-
enum: [
|
|
3497
|
+
enum: [
|
|
3498
|
+
'active',
|
|
3499
|
+
'inactive'
|
|
3500
|
+
]
|
|
1643
3501
|
},
|
|
1644
3502
|
id: {
|
|
1645
3503
|
type: 'string',
|
|
@@ -1654,7 +3512,15 @@ export const UserSchema = {
|
|
|
1654
3512
|
example: '2023-11-02T16:08:14.338Z'
|
|
1655
3513
|
}
|
|
1656
3514
|
},
|
|
1657
|
-
required: [
|
|
3515
|
+
required: [
|
|
3516
|
+
'email',
|
|
3517
|
+
'first_name',
|
|
3518
|
+
'last_name',
|
|
3519
|
+
'role',
|
|
3520
|
+
'status',
|
|
3521
|
+
'id',
|
|
3522
|
+
'date_created'
|
|
3523
|
+
],
|
|
1658
3524
|
additionalProperties: false
|
|
1659
3525
|
};
|
|
1660
3526
|
export const UserUpdateInputSchema = {
|
|
@@ -1682,15 +3548,21 @@ export const UserUpdateInputSchema = {
|
|
|
1682
3548
|
},
|
|
1683
3549
|
role: {
|
|
1684
3550
|
type: 'string',
|
|
1685
|
-
description:
|
|
3551
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1686
3552
|
example: 'User',
|
|
1687
|
-
enum: [
|
|
3553
|
+
enum: [
|
|
3554
|
+
'Administrator',
|
|
3555
|
+
'User'
|
|
3556
|
+
]
|
|
1688
3557
|
},
|
|
1689
3558
|
status: {
|
|
1690
3559
|
type: 'string',
|
|
1691
3560
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1692
3561
|
example: 'active',
|
|
1693
|
-
enum: [
|
|
3562
|
+
enum: [
|
|
3563
|
+
'active',
|
|
3564
|
+
'inactive'
|
|
3565
|
+
]
|
|
1694
3566
|
}
|
|
1695
3567
|
},
|
|
1696
3568
|
additionalProperties: false
|