@cloudfleet/sdk 0.0.1-8e8e76c → 0.0.1-964486e
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/client/client.d.ts +3 -0
- package/dist/client/client.d.ts.map +1 -0
- package/dist/client/client.js +144 -0
- package/dist/client/client.js.map +1 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.d.ts +120 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +2 -0
- package/dist/client/types.js.map +1 -0
- package/dist/client/utils.d.ts +46 -0
- package/dist/client/utils.d.ts.map +1 -0
- package/dist/client/utils.js +285 -0
- package/dist/client/utils.js.map +1 -0
- package/dist/client.gen.d.ts +2 -2
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -1
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.d.ts +19 -0
- package/dist/core/auth.d.ts.map +1 -0
- package/dist/core/auth.js +14 -0
- package/dist/core/auth.js.map +1 -0
- package/dist/core/bodySerializer.d.ts +18 -0
- package/dist/core/bodySerializer.d.ts.map +1 -0
- package/dist/core/bodySerializer.js +54 -0
- package/dist/core/bodySerializer.js.map +1 -0
- package/dist/core/params.d.ts +24 -0
- package/dist/core/params.d.ts.map +1 -0
- package/dist/core/params.js +88 -0
- package/dist/core/params.js.map +1 -0
- package/dist/core/pathSerializer.d.ts +34 -0
- package/dist/core/pathSerializer.d.ts.map +1 -0
- package/dist/core/pathSerializer.js +114 -0
- package/dist/core/pathSerializer.js.map +1 -0
- package/dist/core/types.d.ts +74 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/schemas.gen.d.ts +281 -106
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +282 -115
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +107 -56
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +120 -19
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +298 -34
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1999 -216
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +672 -55
- package/dist/zod.gen.js.map +1 -1
- package/package.json +5 -6
package/dist/schemas.gen.js
CHANGED
|
@@ -67,6 +67,19 @@ export const BillingContactSchema = {
|
|
|
67
67
|
type: 'string',
|
|
68
68
|
description: 'Last name of the billing contact person.',
|
|
69
69
|
example: 'Doe'
|
|
70
|
+
},
|
|
71
|
+
tax_id: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
nullable: true,
|
|
74
|
+
description: 'Tax ID of the organization.',
|
|
75
|
+
example: 'DE123456789'
|
|
76
|
+
},
|
|
77
|
+
tax_id_type: {
|
|
78
|
+
type: 'string',
|
|
79
|
+
nullable: true,
|
|
80
|
+
description: 'Type of the tax ID.',
|
|
81
|
+
example: 'de_vat',
|
|
82
|
+
enum: ['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'at_vat', 'au_abn', 'au_arn', 'ba_tin', 'bb_tin', 'be_vat', 'bg_uic', 'bg_vat', 'bh_vat', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cn_tin', 'co_nit', 'cr_tin', 'cy_vat', 'cz_vat', 'de_stn', 'de_vat', 'dk_vat', 'do_rcn', 'ec_ruc', 'ee_vat', 'eg_tin', 'es_cif', 'es_vat', 'eu_oss_vat', 'fi_vat', 'fr_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'gr_vat', 'hk_br', 'hr_oib', 'hr_vat', 'hu_tin', 'hu_vat', 'id_npwp', 'ie_vat', 'il_vat', 'in_gst', 'is_vat', 'it_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kh_tin', 'kr_brn', 'kz_bin', 'li_uid', 'li_vat', 'lt_vat', 'lu_vat', 'lv_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mt_vat', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'nl_vat', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'pl_vat', 'pt_vat', 'ro_tin', 'ro_vat', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'se_vat', 'sg_gst', 'sg_uen', 'si_tin', 'si_vat', 'sk_vat', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'xi_vat', 'za_vat', 'zm_tin', 'zw_tin', '']
|
|
70
83
|
}
|
|
71
84
|
},
|
|
72
85
|
required: ['email', 'first_name', 'last_name'],
|
|
@@ -102,7 +115,7 @@ export const BillingCreditsSchema = {
|
|
|
102
115
|
type: 'string'
|
|
103
116
|
},
|
|
104
117
|
description: 'List of product SKUs that the promotional code can be used on.',
|
|
105
|
-
example: ['
|
|
118
|
+
example: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
|
|
106
119
|
},
|
|
107
120
|
type: {
|
|
108
121
|
type: 'string',
|
|
@@ -132,6 +145,131 @@ export const BillingCreditsSchema = {
|
|
|
132
145
|
required: ['date_created', 'code', 'type', 'value', 'billing_period'],
|
|
133
146
|
additionalProperties: false
|
|
134
147
|
};
|
|
148
|
+
export const ChartCreateInputSchema = {
|
|
149
|
+
type: 'object',
|
|
150
|
+
properties: {
|
|
151
|
+
values: {
|
|
152
|
+
type: 'string',
|
|
153
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
154
|
+
},
|
|
155
|
+
version_channel: {
|
|
156
|
+
type: 'string',
|
|
157
|
+
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-]+)*))?$',
|
|
158
|
+
description: 'Desired version range or channel for the chart.',
|
|
159
|
+
example: '2.x.x-cfke.x'
|
|
160
|
+
},
|
|
161
|
+
name: {
|
|
162
|
+
type: 'string',
|
|
163
|
+
maxLength: 63,
|
|
164
|
+
minLength: 1,
|
|
165
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
166
|
+
description: 'Unique identifier of the chart deployment aka name of the helm release.',
|
|
167
|
+
example: 'postgresql-0'
|
|
168
|
+
},
|
|
169
|
+
namespace: {
|
|
170
|
+
type: 'string',
|
|
171
|
+
maxLength: 63,
|
|
172
|
+
minLength: 1,
|
|
173
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
174
|
+
description: 'Namespace of the chart deployment',
|
|
175
|
+
example: 'default'
|
|
176
|
+
},
|
|
177
|
+
chart: {
|
|
178
|
+
type: 'string',
|
|
179
|
+
maxLength: 63,
|
|
180
|
+
minLength: 1,
|
|
181
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
182
|
+
description: 'Name of the chart listing',
|
|
183
|
+
example: 'postgresql'
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
required: ['values', 'version_channel', 'name', 'namespace', 'chart'],
|
|
187
|
+
additionalProperties: false
|
|
188
|
+
};
|
|
189
|
+
export const ChartSchema = {
|
|
190
|
+
type: 'object',
|
|
191
|
+
properties: {
|
|
192
|
+
values: {
|
|
193
|
+
type: 'string',
|
|
194
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
195
|
+
},
|
|
196
|
+
version_channel: {
|
|
197
|
+
type: 'string',
|
|
198
|
+
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-]+)*))?$',
|
|
199
|
+
description: 'Desired version range or channel for the chart.',
|
|
200
|
+
example: '2.x.x-cfke.x'
|
|
201
|
+
},
|
|
202
|
+
name: {
|
|
203
|
+
type: 'string',
|
|
204
|
+
maxLength: 63,
|
|
205
|
+
minLength: 1,
|
|
206
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
207
|
+
description: 'Unique identifier of the chart deployment aka name of the helm release.',
|
|
208
|
+
example: 'postgresql-0'
|
|
209
|
+
},
|
|
210
|
+
namespace: {
|
|
211
|
+
type: 'string',
|
|
212
|
+
maxLength: 63,
|
|
213
|
+
minLength: 1,
|
|
214
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
215
|
+
description: 'Namespace of the chart deployment',
|
|
216
|
+
example: 'default'
|
|
217
|
+
},
|
|
218
|
+
chart: {
|
|
219
|
+
type: 'string',
|
|
220
|
+
maxLength: 63,
|
|
221
|
+
minLength: 1,
|
|
222
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
223
|
+
description: 'Name of the chart listing',
|
|
224
|
+
example: 'postgresql'
|
|
225
|
+
},
|
|
226
|
+
status: {
|
|
227
|
+
type: 'string',
|
|
228
|
+
description: 'Status of the chart deployment.',
|
|
229
|
+
example: 'active',
|
|
230
|
+
enum: ['InstallSucceeded', 'InstallFailed', 'UpgradeSucceeded', 'UpgradeFailed', 'TestSucceeded', 'TestFailed', 'RollbackSucceeded', 'RollbackFailed', 'UninstallSucceeded', 'UninstallFailed', 'ArtifactFailed', 'DependencyNotReady', 'Progressing', 'SourceNotReady']
|
|
231
|
+
},
|
|
232
|
+
version_current: {
|
|
233
|
+
type: 'string',
|
|
234
|
+
description: 'Current version of the chart deployment.',
|
|
235
|
+
example: '2.1.33-cfke.11'
|
|
236
|
+
},
|
|
237
|
+
created_at: {
|
|
238
|
+
type: 'string',
|
|
239
|
+
description: 'Creation date and time of the chart deployment.',
|
|
240
|
+
example: '2024-09-12T09:11:27Z'
|
|
241
|
+
},
|
|
242
|
+
updated_at: {
|
|
243
|
+
type: 'string',
|
|
244
|
+
description: 'Last update date and time of the chart deployment.',
|
|
245
|
+
example: '2024-09-12T09:11:27Z'
|
|
246
|
+
},
|
|
247
|
+
ready: {
|
|
248
|
+
type: 'boolean',
|
|
249
|
+
description: 'Indicates if the chart deployment is ready to be used.',
|
|
250
|
+
example: true
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
required: ['values', 'version_channel', 'name', 'namespace', 'chart', 'status', 'version_current', 'created_at', 'updated_at', 'ready'],
|
|
254
|
+
additionalProperties: false
|
|
255
|
+
};
|
|
256
|
+
export const ChartUpdateInputSchema = {
|
|
257
|
+
type: 'object',
|
|
258
|
+
properties: {
|
|
259
|
+
values: {
|
|
260
|
+
type: 'string',
|
|
261
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
262
|
+
},
|
|
263
|
+
version_channel: {
|
|
264
|
+
type: 'string',
|
|
265
|
+
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-]+)*))?$',
|
|
266
|
+
description: 'Desired version range or channel for the chart.',
|
|
267
|
+
example: '2.x.x-cfke.x'
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
required: ['values', 'version_channel'],
|
|
271
|
+
additionalProperties: false
|
|
272
|
+
};
|
|
135
273
|
export const ClusterCreateInputSchema = {
|
|
136
274
|
type: 'object',
|
|
137
275
|
properties: {
|
|
@@ -143,19 +281,19 @@ export const ClusterCreateInputSchema = {
|
|
|
143
281
|
description: 'Name of the cluster.',
|
|
144
282
|
example: 'production-cluster'
|
|
145
283
|
},
|
|
146
|
-
region: {
|
|
147
|
-
type: 'string',
|
|
148
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
|
|
149
|
-
default: 'staging',
|
|
150
|
-
example: 'northamerica-central-1',
|
|
151
|
-
enum: ['staging', 'northamerica-central-1']
|
|
152
|
-
},
|
|
153
284
|
tier: {
|
|
154
285
|
type: 'string',
|
|
155
286
|
description: 'Tier of the cluster.',
|
|
156
287
|
example: 'pro',
|
|
157
288
|
enum: ['basic', 'pro']
|
|
158
289
|
},
|
|
290
|
+
region: {
|
|
291
|
+
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-1',
|
|
295
|
+
enum: ['staging', 'northamerica-central-1', 'europe-central-1a']
|
|
296
|
+
},
|
|
159
297
|
version_channel: {
|
|
160
298
|
type: 'string',
|
|
161
299
|
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-]+)*))?$',
|
|
@@ -253,19 +391,19 @@ export const ClusterSchema = {
|
|
|
253
391
|
description: 'Name of the cluster.',
|
|
254
392
|
example: 'production-cluster'
|
|
255
393
|
},
|
|
256
|
-
region: {
|
|
257
|
-
type: 'string',
|
|
258
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
|
|
259
|
-
default: 'staging',
|
|
260
|
-
example: 'northamerica-central-1',
|
|
261
|
-
enum: ['staging', 'northamerica-central-1']
|
|
262
|
-
},
|
|
263
394
|
tier: {
|
|
264
395
|
type: 'string',
|
|
265
396
|
description: 'Tier of the cluster.',
|
|
266
397
|
example: 'pro',
|
|
267
398
|
enum: ['basic', 'pro']
|
|
268
399
|
},
|
|
400
|
+
region: {
|
|
401
|
+
type: 'string',
|
|
402
|
+
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.',
|
|
403
|
+
default: 'staging',
|
|
404
|
+
example: 'northamerica-central-1',
|
|
405
|
+
enum: ['staging', 'northamerica-central-1', 'europe-central-1a']
|
|
406
|
+
},
|
|
269
407
|
version_channel: {
|
|
270
408
|
type: 'string',
|
|
271
409
|
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-]+)*))?$',
|
|
@@ -340,6 +478,12 @@ export const ClusterUpdateInputSchema = {
|
|
|
340
478
|
description: 'Name of the cluster.',
|
|
341
479
|
example: 'production-cluster'
|
|
342
480
|
},
|
|
481
|
+
tier: {
|
|
482
|
+
type: 'string',
|
|
483
|
+
description: 'Tier of the cluster.',
|
|
484
|
+
example: 'pro',
|
|
485
|
+
enum: ['basic', 'pro']
|
|
486
|
+
},
|
|
343
487
|
version_channel: {
|
|
344
488
|
type: 'string',
|
|
345
489
|
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-]+)*))?$',
|
|
@@ -347,6 +491,7 @@ export const ClusterUpdateInputSchema = {
|
|
|
347
491
|
example: '1.29.x-cfke.x'
|
|
348
492
|
}
|
|
349
493
|
},
|
|
494
|
+
required: ['tier'],
|
|
350
495
|
additionalProperties: false
|
|
351
496
|
};
|
|
352
497
|
export const FleetCreateInputSchema = {
|
|
@@ -382,34 +527,19 @@ export const FleetCreateInputSchema = {
|
|
|
382
527
|
additionalProperties: false
|
|
383
528
|
},
|
|
384
529
|
hetzner: {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
type: 'boolean',
|
|
391
|
-
default: true
|
|
392
|
-
},
|
|
393
|
-
apiKey: {
|
|
394
|
-
type: 'string'
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
additionalProperties: false
|
|
530
|
+
type: 'object',
|
|
531
|
+
properties: {
|
|
532
|
+
enabled: {
|
|
533
|
+
type: 'boolean',
|
|
534
|
+
default: true
|
|
398
535
|
},
|
|
399
|
-
{
|
|
400
|
-
type: '
|
|
401
|
-
|
|
402
|
-
apiKey: {
|
|
403
|
-
type: 'string'
|
|
404
|
-
},
|
|
405
|
-
enabled: {
|
|
406
|
-
type: 'boolean',
|
|
407
|
-
default: true
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
additionalProperties: false
|
|
536
|
+
apiKey: {
|
|
537
|
+
type: 'string',
|
|
538
|
+
description: 'Hetzner Cloud API key with read / write access'
|
|
411
539
|
}
|
|
412
|
-
|
|
540
|
+
},
|
|
541
|
+
required: ['apiKey'],
|
|
542
|
+
additionalProperties: false
|
|
413
543
|
},
|
|
414
544
|
aws: {
|
|
415
545
|
type: 'object',
|
|
@@ -433,14 +563,9 @@ export const FleetCreateInputSchema = {
|
|
|
433
563
|
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
434
564
|
description: 'Unique identifier of the kubernetes fleet.',
|
|
435
565
|
example: 'new-clouds-fleet'
|
|
436
|
-
},
|
|
437
|
-
type: {
|
|
438
|
-
type: 'string',
|
|
439
|
-
description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
|
|
440
|
-
enum: ['managed', 'connected']
|
|
441
566
|
}
|
|
442
567
|
},
|
|
443
|
-
required: ['id'
|
|
568
|
+
required: ['id'],
|
|
444
569
|
additionalProperties: false
|
|
445
570
|
};
|
|
446
571
|
export const FleetSchema = {
|
|
@@ -476,34 +601,19 @@ export const FleetSchema = {
|
|
|
476
601
|
additionalProperties: false
|
|
477
602
|
},
|
|
478
603
|
hetzner: {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
type: 'boolean',
|
|
485
|
-
default: true
|
|
486
|
-
},
|
|
487
|
-
apiKey: {
|
|
488
|
-
type: 'string'
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
additionalProperties: false
|
|
604
|
+
type: 'object',
|
|
605
|
+
properties: {
|
|
606
|
+
enabled: {
|
|
607
|
+
type: 'boolean',
|
|
608
|
+
default: true
|
|
492
609
|
},
|
|
493
|
-
{
|
|
494
|
-
type: '
|
|
495
|
-
|
|
496
|
-
apiKey: {
|
|
497
|
-
type: 'string'
|
|
498
|
-
},
|
|
499
|
-
enabled: {
|
|
500
|
-
type: 'boolean',
|
|
501
|
-
default: true
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
additionalProperties: false
|
|
610
|
+
apiKey: {
|
|
611
|
+
type: 'string',
|
|
612
|
+
description: 'Hetzner Cloud API key with read / write access'
|
|
505
613
|
}
|
|
506
|
-
|
|
614
|
+
},
|
|
615
|
+
required: ['apiKey'],
|
|
616
|
+
additionalProperties: false
|
|
507
617
|
},
|
|
508
618
|
aws: {
|
|
509
619
|
type: 'object',
|
|
@@ -527,14 +637,9 @@ export const FleetSchema = {
|
|
|
527
637
|
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
528
638
|
description: 'Unique identifier of the kubernetes fleet.',
|
|
529
639
|
example: 'new-clouds-fleet'
|
|
530
|
-
},
|
|
531
|
-
type: {
|
|
532
|
-
type: 'string',
|
|
533
|
-
description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
|
|
534
|
-
enum: ['managed', 'connected']
|
|
535
640
|
}
|
|
536
641
|
},
|
|
537
|
-
required: ['id'
|
|
642
|
+
required: ['id'],
|
|
538
643
|
additionalProperties: false
|
|
539
644
|
};
|
|
540
645
|
export const FleetUpdateInputSchema = {
|
|
@@ -570,34 +675,19 @@ export const FleetUpdateInputSchema = {
|
|
|
570
675
|
additionalProperties: false
|
|
571
676
|
},
|
|
572
677
|
hetzner: {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
type: 'boolean',
|
|
579
|
-
default: true
|
|
580
|
-
},
|
|
581
|
-
apiKey: {
|
|
582
|
-
type: 'string'
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
additionalProperties: false
|
|
678
|
+
type: 'object',
|
|
679
|
+
properties: {
|
|
680
|
+
enabled: {
|
|
681
|
+
type: 'boolean',
|
|
682
|
+
default: true
|
|
586
683
|
},
|
|
587
|
-
{
|
|
588
|
-
type: '
|
|
589
|
-
|
|
590
|
-
apiKey: {
|
|
591
|
-
type: 'string'
|
|
592
|
-
},
|
|
593
|
-
enabled: {
|
|
594
|
-
type: 'boolean',
|
|
595
|
-
default: true
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
additionalProperties: false
|
|
684
|
+
apiKey: {
|
|
685
|
+
type: 'string',
|
|
686
|
+
description: 'Hetzner Cloud API key with read / write access'
|
|
599
687
|
}
|
|
600
|
-
|
|
688
|
+
},
|
|
689
|
+
required: ['apiKey'],
|
|
690
|
+
additionalProperties: false
|
|
601
691
|
},
|
|
602
692
|
aws: {
|
|
603
693
|
type: 'object',
|
|
@@ -1008,6 +1098,89 @@ export const InvoiceSchema = {
|
|
|
1008
1098
|
},
|
|
1009
1099
|
additionalProperties: false
|
|
1010
1100
|
};
|
|
1101
|
+
export const MarketplaceListingSchema = {
|
|
1102
|
+
type: 'object',
|
|
1103
|
+
properties: {
|
|
1104
|
+
id: {
|
|
1105
|
+
type: 'string',
|
|
1106
|
+
maxLength: 63,
|
|
1107
|
+
minLength: 1,
|
|
1108
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
1109
|
+
description: 'Id of the chart listing',
|
|
1110
|
+
example: 'portworx-enterprise-disaster-recovery-baremetal'
|
|
1111
|
+
},
|
|
1112
|
+
name: {
|
|
1113
|
+
type: 'string',
|
|
1114
|
+
description: 'Name of the chart listing',
|
|
1115
|
+
example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
|
|
1116
|
+
},
|
|
1117
|
+
developer: {
|
|
1118
|
+
type: 'string',
|
|
1119
|
+
description: 'Author of the chart listing',
|
|
1120
|
+
example: 'Portworx'
|
|
1121
|
+
},
|
|
1122
|
+
description: {
|
|
1123
|
+
type: 'string',
|
|
1124
|
+
description: 'Short description of the chart listing',
|
|
1125
|
+
example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
|
|
1126
|
+
},
|
|
1127
|
+
logoUrl: {
|
|
1128
|
+
type: 'string',
|
|
1129
|
+
description: 'Logo of the chart listing',
|
|
1130
|
+
example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
|
|
1131
|
+
},
|
|
1132
|
+
longDescription: {
|
|
1133
|
+
type: 'string',
|
|
1134
|
+
description: 'Long description of the chart listing',
|
|
1135
|
+
example: 'Portworx-Enterprise is the complete multi-cloud ready Kubernetes storage platform for running mission-critical apps in production....'
|
|
1136
|
+
},
|
|
1137
|
+
categories: {
|
|
1138
|
+
type: 'array',
|
|
1139
|
+
items: {
|
|
1140
|
+
type: 'string',
|
|
1141
|
+
example: 'AI & Machine Learning'
|
|
1142
|
+
},
|
|
1143
|
+
description: 'Tags of the chart'
|
|
1144
|
+
},
|
|
1145
|
+
version_channels: {
|
|
1146
|
+
type: 'array',
|
|
1147
|
+
items: {
|
|
1148
|
+
type: 'string',
|
|
1149
|
+
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-]+)*))?$',
|
|
1150
|
+
description: 'Version of the chart.',
|
|
1151
|
+
example: '2.x.x-cfke.x'
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1154
|
+
value_schemas: {
|
|
1155
|
+
type: 'array',
|
|
1156
|
+
items: {
|
|
1157
|
+
type: 'object',
|
|
1158
|
+
properties: {
|
|
1159
|
+
version: {
|
|
1160
|
+
type: 'string',
|
|
1161
|
+
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-]+)*))?$',
|
|
1162
|
+
description: 'Version of the chart.',
|
|
1163
|
+
example: '2.1.1-cfke.123'
|
|
1164
|
+
},
|
|
1165
|
+
schema: {
|
|
1166
|
+
type: 'string',
|
|
1167
|
+
description: 'Schema of the chart values. JSON Schema as string'
|
|
1168
|
+
},
|
|
1169
|
+
placeholder: {
|
|
1170
|
+
type: 'string',
|
|
1171
|
+
description: 'Schema of the chart values',
|
|
1172
|
+
example: `foo: 1
|
|
1173
|
+
bar: example`
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
required: ['version', 'schema', 'placeholder'],
|
|
1177
|
+
additionalProperties: false
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
required: ['id', 'name', 'developer', 'description', 'logoUrl', 'longDescription', 'categories', 'version_channels', 'value_schemas'],
|
|
1182
|
+
additionalProperties: false
|
|
1183
|
+
};
|
|
1011
1184
|
export const OrganizationCreateInputSchema = {
|
|
1012
1185
|
type: 'object',
|
|
1013
1186
|
properties: {
|
|
@@ -1097,12 +1270,6 @@ export const OrganizationSchema = {
|
|
|
1097
1270
|
description: 'Maximum number of fleets that can be created per cluster.',
|
|
1098
1271
|
example: 999
|
|
1099
1272
|
},
|
|
1100
|
-
managed_fleets_cpu_max: {
|
|
1101
|
-
type: 'integer',
|
|
1102
|
-
minimum: 0,
|
|
1103
|
-
description: 'Maximum number of CPU cores per managed fleet.',
|
|
1104
|
-
example: 999
|
|
1105
|
-
},
|
|
1106
1273
|
cluster_tiers: {
|
|
1107
1274
|
type: 'array',
|
|
1108
1275
|
items: {
|
|
@@ -1144,7 +1311,7 @@ export const OrganizationSchema = {
|
|
|
1144
1311
|
description: 'List of CFKE control plane versions available for the organization.'
|
|
1145
1312
|
}
|
|
1146
1313
|
},
|
|
1147
|
-
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', '
|
|
1314
|
+
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
|
|
1148
1315
|
additionalProperties: false,
|
|
1149
1316
|
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.'
|
|
1150
1317
|
},
|
|
@@ -1306,13 +1473,13 @@ export const UsageSchema = {
|
|
|
1306
1473
|
type: 'string',
|
|
1307
1474
|
description: 'Tier of the cluster.',
|
|
1308
1475
|
example: 'pro',
|
|
1309
|
-
enum: ['']
|
|
1476
|
+
enum: ['basic', 'pro', '']
|
|
1310
1477
|
},
|
|
1311
1478
|
product: {
|
|
1312
1479
|
type: 'string',
|
|
1313
1480
|
description: 'The product the usage is associated with',
|
|
1314
|
-
example: '
|
|
1315
|
-
enum: ['
|
|
1481
|
+
example: 'cfke_controlplane',
|
|
1482
|
+
enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
|
|
1316
1483
|
},
|
|
1317
1484
|
node_name: {
|
|
1318
1485
|
type: 'string',
|