@cloudfleet/sdk 0.0.1-9835b73 → 0.0.1-a9e2e9a
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.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +205 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +125 -0
- 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.gen.d.ts +34 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +231 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +4 -4
- 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.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +18 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +34 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +89 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +115 -0
- 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 +100 -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 +136 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +79 -0
- 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 +555 -474
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +572 -510
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +132 -62
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +162 -73
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +12 -12
- package/dist/types.gen.d.ts +539 -329
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1657 -2586
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +597 -920
- package/dist/zod.gen.js.map +1 -1
- package/package.json +5 -6
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',
|
|
@@ -82,7 +77,7 @@ export const BillingContactSchema = {
|
|
|
82
77
|
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', '']
|
|
83
78
|
}
|
|
84
79
|
},
|
|
85
|
-
required: ['email', '
|
|
80
|
+
required: ['email', 'individual_name'],
|
|
86
81
|
additionalProperties: false
|
|
87
82
|
};
|
|
88
83
|
export const BillingCreditsSchema = {
|
|
@@ -93,10 +88,22 @@ export const BillingCreditsSchema = {
|
|
|
93
88
|
description: 'Generated unique identifier of the promotional code.',
|
|
94
89
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
95
90
|
},
|
|
96
|
-
|
|
91
|
+
type: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
description: 'Type of the promotional code.',
|
|
94
|
+
example: 'credit',
|
|
95
|
+
enum: ['credit', 'discount']
|
|
96
|
+
},
|
|
97
|
+
date_start: {
|
|
98
|
+
type: 'string',
|
|
99
|
+
format: 'date-time',
|
|
100
|
+
description: 'Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.',
|
|
101
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
102
|
+
},
|
|
103
|
+
date_end: {
|
|
97
104
|
type: 'string',
|
|
98
105
|
format: 'date-time',
|
|
99
|
-
description: '
|
|
106
|
+
description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
|
|
100
107
|
example: '2023-12-20T13:53:32.000Z'
|
|
101
108
|
},
|
|
102
109
|
code: {
|
|
@@ -109,40 +116,20 @@ export const BillingCreditsSchema = {
|
|
|
109
116
|
description: 'Description of the promotional code.',
|
|
110
117
|
example: '10% off on all products'
|
|
111
118
|
},
|
|
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: {
|
|
119
|
+
value_total: {
|
|
127
120
|
type: 'number',
|
|
128
121
|
format: 'float',
|
|
129
|
-
description: '
|
|
122
|
+
description: 'Total value of the promotional code.',
|
|
130
123
|
example: 10
|
|
131
124
|
},
|
|
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
125
|
value_remaining: {
|
|
139
126
|
type: 'number',
|
|
140
127
|
format: 'float',
|
|
141
|
-
description: '
|
|
142
|
-
example:
|
|
128
|
+
description: 'Remaining value of the promotional code.',
|
|
129
|
+
example: 8
|
|
143
130
|
}
|
|
144
131
|
},
|
|
145
|
-
required: ['
|
|
132
|
+
required: ['type', 'date_start', 'code', 'value_total'],
|
|
146
133
|
additionalProperties: false
|
|
147
134
|
};
|
|
148
135
|
export const ChartCreateInputSchema = {
|
|
@@ -289,17 +276,18 @@ export const ClusterCreateInputSchema = {
|
|
|
289
276
|
},
|
|
290
277
|
region: {
|
|
291
278
|
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.',
|
|
279
|
+
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
|
|
293
280
|
default: 'staging',
|
|
294
|
-
example: 'northamerica-central-
|
|
295
|
-
enum: ['staging', 'northamerica-central-1', 'europe-central-1a']
|
|
281
|
+
example: 'northamerica-central-1a',
|
|
282
|
+
enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
|
|
296
283
|
},
|
|
297
284
|
version_channel: {
|
|
298
285
|
type: 'string',
|
|
299
286
|
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
287
|
description: 'Version of the kubernetes cluster.',
|
|
301
288
|
default: '1.x.x-cfke.x',
|
|
302
|
-
example: '1.
|
|
289
|
+
example: '1.x.x-cfke.x',
|
|
290
|
+
enum: ['1.x.x-cfke.x', '1.31.x-cfke.x', '1.32.x-cfke.x', '1.33.x-cfke.x']
|
|
303
291
|
}
|
|
304
292
|
},
|
|
305
293
|
required: ['name', 'tier'],
|
|
@@ -336,7 +324,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
336
324
|
kubernetes: {
|
|
337
325
|
type: 'string',
|
|
338
326
|
description: 'Kubernetes version of the cluster.',
|
|
339
|
-
example: '1.
|
|
327
|
+
example: '1.33.7'
|
|
340
328
|
},
|
|
341
329
|
tailscale: {
|
|
342
330
|
type: 'string',
|
|
@@ -347,9 +335,14 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
347
335
|
type: 'string',
|
|
348
336
|
description: 'Containerd version of the cluster.',
|
|
349
337
|
example: '1.7.19'
|
|
338
|
+
},
|
|
339
|
+
nvidia_driver: {
|
|
340
|
+
type: 'string',
|
|
341
|
+
description: 'NVIDIA driver version of the cluster.',
|
|
342
|
+
example: '565.0.0'
|
|
350
343
|
}
|
|
351
344
|
},
|
|
352
|
-
required: ['kubernetes', 'tailscale', 'containerd'],
|
|
345
|
+
required: ['kubernetes', 'tailscale', 'containerd', 'nvidia_driver'],
|
|
353
346
|
additionalProperties: false,
|
|
354
347
|
description: 'Versions of the different components of the cluster.'
|
|
355
348
|
},
|
|
@@ -399,17 +392,10 @@ export const ClusterSchema = {
|
|
|
399
392
|
},
|
|
400
393
|
region: {
|
|
401
394
|
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.',
|
|
395
|
+
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
|
|
403
396
|
default: 'staging',
|
|
404
|
-
example: 'northamerica-central-
|
|
405
|
-
enum: ['staging', 'northamerica-central-1', 'europe-central-1a']
|
|
406
|
-
},
|
|
407
|
-
version_channel: {
|
|
408
|
-
type: 'string',
|
|
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-]+)*))?$',
|
|
410
|
-
description: 'Version of the kubernetes cluster.',
|
|
411
|
-
default: '1.x.x-cfke.x',
|
|
412
|
-
example: '1.29.x-cfke.x'
|
|
397
|
+
example: 'northamerica-central-1a',
|
|
398
|
+
enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
|
|
413
399
|
},
|
|
414
400
|
id: {
|
|
415
401
|
type: 'string',
|
|
@@ -421,7 +407,7 @@ export const ClusterSchema = {
|
|
|
421
407
|
type: 'string',
|
|
422
408
|
description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
|
|
423
409
|
example: 'active',
|
|
424
|
-
enum: ['active', 'deleted', 'creating', 'deployed', 'failed', 'updating']
|
|
410
|
+
enum: ['active', 'disabled', 'deleted', 'creating', 'deployed', 'failed', 'updating']
|
|
425
411
|
},
|
|
426
412
|
endpoint: {
|
|
427
413
|
anyOf: [
|
|
@@ -446,7 +432,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
446
432
|
version_current: {
|
|
447
433
|
type: 'string',
|
|
448
434
|
description: 'Current version of the cluster.',
|
|
449
|
-
example: '1.
|
|
435
|
+
example: '1.33.7-cfke.264'
|
|
450
436
|
},
|
|
451
437
|
created_at: {
|
|
452
438
|
type: 'string',
|
|
@@ -462,6 +448,12 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
462
448
|
type: 'boolean',
|
|
463
449
|
description: 'Indicates if the cluster is ready to be used.',
|
|
464
450
|
example: true
|
|
451
|
+
},
|
|
452
|
+
version_channel: {
|
|
453
|
+
type: 'string',
|
|
454
|
+
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-]+)*))?$',
|
|
455
|
+
description: 'Version of the kubernetes cluster.',
|
|
456
|
+
example: '1.x.x-cfke.x'
|
|
465
457
|
}
|
|
466
458
|
},
|
|
467
459
|
required: ['name', 'tier', 'id', 'status'],
|
|
@@ -488,7 +480,7 @@ export const ClusterUpdateInputSchema = {
|
|
|
488
480
|
type: 'string',
|
|
489
481
|
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-]+)*))?$',
|
|
490
482
|
description: 'Version of the kubernetes cluster.',
|
|
491
|
-
example: '1.
|
|
483
|
+
example: '1.x.x-cfke.x'
|
|
492
484
|
}
|
|
493
485
|
},
|
|
494
486
|
required: ['tier'],
|
|
@@ -751,19 +743,15 @@ export const InvoiceSchema = {
|
|
|
751
743
|
description: 'Unique identifier of the invoice. UUID v4 string in canonical form',
|
|
752
744
|
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
753
745
|
},
|
|
754
|
-
|
|
755
|
-
type: 'string'
|
|
756
|
-
format: 'uuid',
|
|
757
|
-
description: 'Unique identifier of the organization. UUID v4 string in canonical form',
|
|
758
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
746
|
+
number: {
|
|
747
|
+
type: 'string'
|
|
759
748
|
},
|
|
760
749
|
status: {
|
|
761
750
|
type: 'string',
|
|
762
751
|
description: 'Status of the invoice',
|
|
763
|
-
example: '
|
|
764
|
-
enum: ['DRAFT', 'COMMITTED', 'VOID']
|
|
752
|
+
example: 'paid'
|
|
765
753
|
},
|
|
766
|
-
|
|
754
|
+
total: {
|
|
767
755
|
type: 'number',
|
|
768
756
|
format: 'float',
|
|
769
757
|
description: 'Total amount of the invoice',
|
|
@@ -772,413 +760,170 @@ export const InvoiceSchema = {
|
|
|
772
760
|
currency: {
|
|
773
761
|
type: 'string',
|
|
774
762
|
description: 'Currency of the invoice',
|
|
775
|
-
example: '
|
|
776
|
-
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']
|
|
777
|
-
},
|
|
778
|
-
creditAdj: {
|
|
779
|
-
type: 'number',
|
|
780
|
-
format: 'float',
|
|
781
|
-
description: 'Total amount of credit adjustments',
|
|
782
|
-
example: 0
|
|
783
|
-
},
|
|
784
|
-
refundAdj: {
|
|
785
|
-
type: 'number',
|
|
786
|
-
format: 'float',
|
|
787
|
-
description: 'Total amount of refund adjustments',
|
|
788
|
-
example: 0
|
|
763
|
+
example: 'usd'
|
|
789
764
|
},
|
|
790
|
-
|
|
765
|
+
created: {
|
|
791
766
|
type: 'string',
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
targetDate: {
|
|
796
|
-
type: 'string',
|
|
797
|
-
description: 'Target date of the invoice',
|
|
798
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
767
|
+
format: 'date-time',
|
|
768
|
+
description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
|
|
769
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
799
770
|
},
|
|
800
|
-
|
|
771
|
+
period_start: {
|
|
801
772
|
type: 'string',
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
balance: {
|
|
806
|
-
type: 'number',
|
|
807
|
-
format: 'float',
|
|
808
|
-
description: 'Balance of the invoice',
|
|
809
|
-
example: 100
|
|
773
|
+
format: 'date-time',
|
|
774
|
+
description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
|
|
775
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
810
776
|
},
|
|
811
|
-
|
|
777
|
+
period_end: {
|
|
812
778
|
type: 'string',
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
credits: {
|
|
817
|
-
type: 'array',
|
|
818
|
-
items: {
|
|
819
|
-
type: 'object',
|
|
820
|
-
properties: {
|
|
821
|
-
id: {
|
|
822
|
-
type: 'string',
|
|
823
|
-
format: 'uuid',
|
|
824
|
-
description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
|
|
825
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
826
|
-
},
|
|
827
|
-
linkedInvoiceItemId: {
|
|
828
|
-
type: 'string',
|
|
829
|
-
format: 'uuid',
|
|
830
|
-
description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
|
|
831
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
832
|
-
},
|
|
833
|
-
productName: {
|
|
834
|
-
type: 'string',
|
|
835
|
-
description: 'Name of the product',
|
|
836
|
-
example: 'Research team'
|
|
837
|
-
},
|
|
838
|
-
planName: {
|
|
839
|
-
type: 'string',
|
|
840
|
-
description: 'Name of the plan',
|
|
841
|
-
example: 'Plan A'
|
|
842
|
-
},
|
|
843
|
-
phaseName: {
|
|
844
|
-
type: 'string',
|
|
845
|
-
description: 'Name of the phase',
|
|
846
|
-
example: 'Phase A'
|
|
847
|
-
},
|
|
848
|
-
usageName: {
|
|
849
|
-
type: 'string',
|
|
850
|
-
description: 'Name of the usage',
|
|
851
|
-
example: 'Usage A'
|
|
852
|
-
},
|
|
853
|
-
prettyProductName: {
|
|
854
|
-
type: 'string',
|
|
855
|
-
description: 'Pretty name of the product',
|
|
856
|
-
example: 'Research team'
|
|
857
|
-
},
|
|
858
|
-
prettyPlanName: {
|
|
859
|
-
type: 'string',
|
|
860
|
-
description: 'Pretty name of the plan',
|
|
861
|
-
example: 'Plan A'
|
|
862
|
-
},
|
|
863
|
-
prettyPhaseName: {
|
|
864
|
-
type: 'string',
|
|
865
|
-
description: 'Pretty name of the phase',
|
|
866
|
-
example: 'Phase A'
|
|
867
|
-
},
|
|
868
|
-
prettyUsageName: {
|
|
869
|
-
type: 'string',
|
|
870
|
-
description: 'Pretty name of the usage',
|
|
871
|
-
example: 'Usage A'
|
|
872
|
-
},
|
|
873
|
-
itemType: {
|
|
874
|
-
type: 'string',
|
|
875
|
-
description: 'Type of the invoice item',
|
|
876
|
-
example: 'EXTERNAL_CHARGE',
|
|
877
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
878
|
-
},
|
|
879
|
-
description: {
|
|
880
|
-
type: 'string',
|
|
881
|
-
description: 'Description of the invoice item',
|
|
882
|
-
example: 'Description of the invoice item'
|
|
883
|
-
},
|
|
884
|
-
startDate: {
|
|
885
|
-
type: 'string',
|
|
886
|
-
description: 'Start date of the invoice item',
|
|
887
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
888
|
-
},
|
|
889
|
-
endDate: {
|
|
890
|
-
type: 'string',
|
|
891
|
-
description: 'End date of the invoice item',
|
|
892
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
893
|
-
},
|
|
894
|
-
amount: {
|
|
895
|
-
type: 'number',
|
|
896
|
-
format: 'float',
|
|
897
|
-
description: 'Amount of the invoice item',
|
|
898
|
-
example: 100
|
|
899
|
-
},
|
|
900
|
-
rate: {
|
|
901
|
-
type: 'number',
|
|
902
|
-
format: 'float',
|
|
903
|
-
description: 'Rate of the invoice item',
|
|
904
|
-
example: 100
|
|
905
|
-
},
|
|
906
|
-
currency: {
|
|
907
|
-
type: 'string',
|
|
908
|
-
description: 'Currency of the invoice item',
|
|
909
|
-
example: 'USD',
|
|
910
|
-
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']
|
|
911
|
-
},
|
|
912
|
-
quantity: {
|
|
913
|
-
type: 'number',
|
|
914
|
-
format: 'float',
|
|
915
|
-
description: 'Quantity of the invoice item',
|
|
916
|
-
example: 1
|
|
917
|
-
},
|
|
918
|
-
itemDetails: {
|
|
919
|
-
type: 'string',
|
|
920
|
-
description: 'Details of the invoice item',
|
|
921
|
-
example: 'Details of the invoice item'
|
|
922
|
-
},
|
|
923
|
-
catalogEffectiveDate: {
|
|
924
|
-
type: 'string',
|
|
925
|
-
description: 'Effective date of the catalog',
|
|
926
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
927
|
-
},
|
|
928
|
-
childItems: {
|
|
929
|
-
type: 'array',
|
|
930
|
-
items: {
|
|
931
|
-
oneOf: [
|
|
932
|
-
{
|
|
933
|
-
type: 'array'
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
type: 'boolean'
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
type: 'number'
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
type: 'object',
|
|
943
|
-
additionalProperties: true
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
type: 'string'
|
|
947
|
-
}
|
|
948
|
-
]
|
|
949
|
-
},
|
|
950
|
-
description: 'Child items of the invoice item'
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
additionalProperties: false
|
|
954
|
-
},
|
|
955
|
-
description: 'Credits of the invoice'
|
|
779
|
+
format: 'date-time',
|
|
780
|
+
description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
|
|
781
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
956
782
|
},
|
|
957
|
-
|
|
958
|
-
type: '
|
|
959
|
-
items: {
|
|
960
|
-
type: 'object',
|
|
961
|
-
properties: {
|
|
962
|
-
id: {
|
|
963
|
-
type: 'string',
|
|
964
|
-
format: 'uuid',
|
|
965
|
-
description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
|
|
966
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
967
|
-
},
|
|
968
|
-
linkedInvoiceItemId: {
|
|
969
|
-
type: 'string',
|
|
970
|
-
format: 'uuid',
|
|
971
|
-
description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
|
|
972
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
973
|
-
},
|
|
974
|
-
productName: {
|
|
975
|
-
type: 'string',
|
|
976
|
-
description: 'Name of the product',
|
|
977
|
-
example: 'Research team'
|
|
978
|
-
},
|
|
979
|
-
planName: {
|
|
980
|
-
type: 'string',
|
|
981
|
-
description: 'Name of the plan',
|
|
982
|
-
example: 'Plan A'
|
|
983
|
-
},
|
|
984
|
-
phaseName: {
|
|
985
|
-
type: 'string',
|
|
986
|
-
description: 'Name of the phase',
|
|
987
|
-
example: 'Phase A'
|
|
988
|
-
},
|
|
989
|
-
usageName: {
|
|
990
|
-
type: 'string',
|
|
991
|
-
description: 'Name of the usage',
|
|
992
|
-
example: 'Usage A'
|
|
993
|
-
},
|
|
994
|
-
prettyProductName: {
|
|
995
|
-
type: 'string',
|
|
996
|
-
description: 'Pretty name of the product',
|
|
997
|
-
example: 'Research team'
|
|
998
|
-
},
|
|
999
|
-
prettyPlanName: {
|
|
1000
|
-
type: 'string',
|
|
1001
|
-
description: 'Pretty name of the plan',
|
|
1002
|
-
example: 'Plan A'
|
|
1003
|
-
},
|
|
1004
|
-
prettyPhaseName: {
|
|
1005
|
-
type: 'string',
|
|
1006
|
-
description: 'Pretty name of the phase',
|
|
1007
|
-
example: 'Phase A'
|
|
1008
|
-
},
|
|
1009
|
-
prettyUsageName: {
|
|
1010
|
-
type: 'string',
|
|
1011
|
-
description: 'Pretty name of the usage',
|
|
1012
|
-
example: 'Usage A'
|
|
1013
|
-
},
|
|
1014
|
-
itemType: {
|
|
1015
|
-
type: 'string',
|
|
1016
|
-
description: 'Type of the invoice item',
|
|
1017
|
-
example: 'EXTERNAL_CHARGE',
|
|
1018
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
1019
|
-
},
|
|
1020
|
-
description: {
|
|
1021
|
-
type: 'string',
|
|
1022
|
-
description: 'Description of the invoice item',
|
|
1023
|
-
example: 'Description of the invoice item'
|
|
1024
|
-
},
|
|
1025
|
-
startDate: {
|
|
1026
|
-
type: 'string',
|
|
1027
|
-
description: 'Start date of the invoice item',
|
|
1028
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1029
|
-
},
|
|
1030
|
-
endDate: {
|
|
1031
|
-
type: 'string',
|
|
1032
|
-
description: 'End date of the invoice item',
|
|
1033
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1034
|
-
},
|
|
1035
|
-
amount: {
|
|
1036
|
-
type: 'number',
|
|
1037
|
-
format: 'float',
|
|
1038
|
-
description: 'Amount of the invoice item',
|
|
1039
|
-
example: 100
|
|
1040
|
-
},
|
|
1041
|
-
rate: {
|
|
1042
|
-
type: 'number',
|
|
1043
|
-
format: 'float',
|
|
1044
|
-
description: 'Rate of the invoice item',
|
|
1045
|
-
example: 100
|
|
1046
|
-
},
|
|
1047
|
-
currency: {
|
|
1048
|
-
type: 'string',
|
|
1049
|
-
description: 'Currency of the invoice item',
|
|
1050
|
-
example: 'USD',
|
|
1051
|
-
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']
|
|
1052
|
-
},
|
|
1053
|
-
quantity: {
|
|
1054
|
-
type: 'number',
|
|
1055
|
-
format: 'float',
|
|
1056
|
-
description: 'Quantity of the invoice item',
|
|
1057
|
-
example: 1
|
|
1058
|
-
},
|
|
1059
|
-
itemDetails: {
|
|
1060
|
-
type: 'string',
|
|
1061
|
-
description: 'Details of the invoice item',
|
|
1062
|
-
example: 'Details of the invoice item'
|
|
1063
|
-
},
|
|
1064
|
-
catalogEffectiveDate: {
|
|
1065
|
-
type: 'string',
|
|
1066
|
-
description: 'Effective date of the catalog',
|
|
1067
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1068
|
-
},
|
|
1069
|
-
childItems: {
|
|
1070
|
-
type: 'array',
|
|
1071
|
-
items: {
|
|
1072
|
-
oneOf: [
|
|
1073
|
-
{
|
|
1074
|
-
type: 'array'
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
type: 'boolean'
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
type: 'number'
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
type: 'object',
|
|
1084
|
-
additionalProperties: true
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
type: 'string'
|
|
1088
|
-
}
|
|
1089
|
-
]
|
|
1090
|
-
},
|
|
1091
|
-
description: 'Child items of the invoice item'
|
|
1092
|
-
}
|
|
1093
|
-
},
|
|
1094
|
-
additionalProperties: false
|
|
1095
|
-
},
|
|
1096
|
-
description: 'Items of the invoice'
|
|
783
|
+
invoice_pdf: {
|
|
784
|
+
type: 'string'
|
|
1097
785
|
}
|
|
1098
786
|
},
|
|
787
|
+
required: ['created', 'period_start', 'period_end'],
|
|
1099
788
|
additionalProperties: false
|
|
1100
789
|
};
|
|
1101
|
-
export const
|
|
790
|
+
export const MarketplaceListingFilesSchema = {
|
|
1102
791
|
type: 'object',
|
|
1103
792
|
properties: {
|
|
1104
|
-
|
|
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: {
|
|
793
|
+
chartYaml: {
|
|
1118
794
|
type: 'string',
|
|
1119
|
-
description: '
|
|
1120
|
-
example:
|
|
795
|
+
description: 'Raw Chart.yaml content from the Helm chart',
|
|
796
|
+
example: `apiVersion: v2
|
|
797
|
+
name: nginx-ingress
|
|
798
|
+
version: 1.18.2-cfke.45
|
|
799
|
+
appVersion: 1.9.4`
|
|
1121
800
|
},
|
|
1122
|
-
|
|
801
|
+
valuesYaml: {
|
|
1123
802
|
type: 'string',
|
|
1124
|
-
description: '
|
|
1125
|
-
example:
|
|
803
|
+
description: 'Raw values.yaml content from the Helm chart',
|
|
804
|
+
example: `replicaCount: 1
|
|
805
|
+
image:
|
|
806
|
+
repository: nginx
|
|
807
|
+
tag: latest`
|
|
1126
808
|
},
|
|
1127
|
-
|
|
809
|
+
valuesSchemaJson: {
|
|
1128
810
|
type: 'string',
|
|
1129
|
-
description: '
|
|
1130
|
-
example: '
|
|
1131
|
-
}
|
|
1132
|
-
|
|
811
|
+
description: 'JSON schema for values.yaml as a string',
|
|
812
|
+
example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
additionalProperties: false
|
|
816
|
+
};
|
|
817
|
+
export const MarketplaceListingSchema = {
|
|
818
|
+
type: 'object',
|
|
819
|
+
properties: {
|
|
820
|
+
name: {
|
|
1133
821
|
type: 'string',
|
|
1134
|
-
description: '
|
|
1135
|
-
example: '
|
|
822
|
+
description: 'Name of the chart',
|
|
823
|
+
example: 'nginx-ingress'
|
|
1136
824
|
},
|
|
1137
|
-
|
|
825
|
+
versions: {
|
|
1138
826
|
type: 'array',
|
|
1139
827
|
items: {
|
|
1140
828
|
type: 'string',
|
|
1141
|
-
|
|
829
|
+
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-]+)*))?$',
|
|
830
|
+
description: 'Specific version of the chart',
|
|
831
|
+
example: '1.18.2-cfke.45'
|
|
1142
832
|
},
|
|
1143
|
-
description: '
|
|
833
|
+
description: 'Available versions of the chart'
|
|
1144
834
|
},
|
|
1145
835
|
version_channels: {
|
|
1146
836
|
type: 'array',
|
|
1147
837
|
items: {
|
|
1148
838
|
type: 'string',
|
|
1149
839
|
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
|
|
1151
|
-
example: '
|
|
1152
|
-
}
|
|
840
|
+
description: 'Version channel pattern',
|
|
841
|
+
example: '1.18.x-cfke.x'
|
|
842
|
+
},
|
|
843
|
+
description: 'Version channels for the chart'
|
|
1153
844
|
},
|
|
1154
|
-
|
|
1155
|
-
type: '
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
845
|
+
latestVersion: {
|
|
846
|
+
type: 'string',
|
|
847
|
+
description: 'Latest version of the chart',
|
|
848
|
+
example: '1.18.2-cfke.45'
|
|
849
|
+
},
|
|
850
|
+
metadata: {
|
|
851
|
+
type: 'object',
|
|
852
|
+
properties: {
|
|
853
|
+
name: {
|
|
854
|
+
type: 'string',
|
|
855
|
+
description: 'Chart name from metadata',
|
|
856
|
+
example: 'nginx-ingress'
|
|
857
|
+
},
|
|
858
|
+
version: {
|
|
859
|
+
type: 'string',
|
|
860
|
+
description: 'Chart version from metadata',
|
|
861
|
+
example: '1.18.2-cfke.45'
|
|
862
|
+
},
|
|
863
|
+
description: {
|
|
864
|
+
type: 'string',
|
|
865
|
+
description: 'Chart description',
|
|
866
|
+
example: 'NGINX Ingress Controller for Kubernetes'
|
|
867
|
+
},
|
|
868
|
+
appVersion: {
|
|
869
|
+
type: 'string',
|
|
870
|
+
description: 'Application version',
|
|
871
|
+
example: '1.9.4'
|
|
872
|
+
},
|
|
873
|
+
apiVersion: {
|
|
874
|
+
type: 'string',
|
|
875
|
+
description: 'Helm API version',
|
|
876
|
+
example: 'v2'
|
|
877
|
+
},
|
|
878
|
+
keywords: {
|
|
879
|
+
type: 'array',
|
|
880
|
+
items: {
|
|
881
|
+
type: 'string'
|
|
1164
882
|
},
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
883
|
+
description: 'Chart keywords',
|
|
884
|
+
example: ['ingress', 'nginx', 'load-balancer']
|
|
885
|
+
},
|
|
886
|
+
home: {
|
|
887
|
+
type: 'string',
|
|
888
|
+
description: 'Chart home URL',
|
|
889
|
+
example: 'https://kubernetes.github.io/ingress-nginx/'
|
|
890
|
+
},
|
|
891
|
+
sources: {
|
|
892
|
+
type: 'array',
|
|
893
|
+
items: {
|
|
894
|
+
type: 'string'
|
|
1168
895
|
},
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
description: 'Schema of the chart values',
|
|
1172
|
-
example: `foo: 1
|
|
1173
|
-
bar: example`
|
|
1174
|
-
}
|
|
896
|
+
description: 'Chart source URLs',
|
|
897
|
+
example: ['https://github.com/kubernetes/ingress-nginx']
|
|
1175
898
|
},
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
899
|
+
maintainers: {
|
|
900
|
+
type: 'array',
|
|
901
|
+
items: {
|
|
902
|
+
type: 'object',
|
|
903
|
+
properties: {
|
|
904
|
+
name: {
|
|
905
|
+
type: 'string',
|
|
906
|
+
description: 'Maintainer name',
|
|
907
|
+
example: 'NGINX Team'
|
|
908
|
+
},
|
|
909
|
+
email: {
|
|
910
|
+
type: 'string',
|
|
911
|
+
description: 'Maintainer email',
|
|
912
|
+
example: 'support@nginx.org'
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
required: ['name'],
|
|
916
|
+
additionalProperties: false
|
|
917
|
+
},
|
|
918
|
+
description: 'Chart maintainers'
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
required: ['name', 'version'],
|
|
922
|
+
additionalProperties: false,
|
|
923
|
+
description: 'Chart metadata'
|
|
1179
924
|
}
|
|
1180
925
|
},
|
|
1181
|
-
required: ['
|
|
926
|
+
required: ['name', 'versions', 'version_channels', 'latestVersion'],
|
|
1182
927
|
additionalProperties: false
|
|
1183
928
|
};
|
|
1184
929
|
export const OrganizationCreateInputSchema = {
|
|
@@ -1296,12 +1041,12 @@ export const OrganizationSchema = {
|
|
|
1296
1041
|
id: {
|
|
1297
1042
|
type: 'string',
|
|
1298
1043
|
description: 'Id of the control plane version. Used in API calls.',
|
|
1299
|
-
example: '1.
|
|
1044
|
+
example: '1.33.x-cfke.x'
|
|
1300
1045
|
},
|
|
1301
1046
|
label: {
|
|
1302
1047
|
type: 'string',
|
|
1303
1048
|
description: 'Label of the control plane version. Used in frontent UI.',
|
|
1304
|
-
example: '1.
|
|
1049
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
1305
1050
|
}
|
|
1306
1051
|
},
|
|
1307
1052
|
required: ['id', 'label'],
|
|
@@ -1309,9 +1054,21 @@ export const OrganizationSchema = {
|
|
|
1309
1054
|
},
|
|
1310
1055
|
minItems: 1,
|
|
1311
1056
|
description: 'List of CFKE control plane versions available for the organization.'
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
|
|
1057
|
+
},
|
|
1058
|
+
copilot_user_hourly_tokens: {
|
|
1059
|
+
type: 'integer',
|
|
1060
|
+
minimum: 0,
|
|
1061
|
+
description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1062
|
+
example: 42000
|
|
1063
|
+
},
|
|
1064
|
+
copilot_organization_hourly_tokens: {
|
|
1065
|
+
type: 'integer',
|
|
1066
|
+
minimum: 0,
|
|
1067
|
+
description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1068
|
+
example: 242000
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions', 'copilot_user_hourly_tokens', 'copilot_organization_hourly_tokens'],
|
|
1315
1072
|
additionalProperties: false,
|
|
1316
1073
|
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.'
|
|
1317
1074
|
},
|
|
@@ -1377,6 +1134,273 @@ export const PaymentMethodSchema = {
|
|
|
1377
1134
|
required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
|
|
1378
1135
|
additionalProperties: false
|
|
1379
1136
|
};
|
|
1137
|
+
export const PlatformQuotaSchema = {
|
|
1138
|
+
type: 'object',
|
|
1139
|
+
properties: {
|
|
1140
|
+
basic_clusters_max: {
|
|
1141
|
+
type: 'integer',
|
|
1142
|
+
minimum: 0,
|
|
1143
|
+
description: 'Maximum number of Basic clusters that can be created.',
|
|
1144
|
+
example: 999
|
|
1145
|
+
},
|
|
1146
|
+
basic_clusters_available: {
|
|
1147
|
+
type: 'integer',
|
|
1148
|
+
description: 'Available number of Basic clusters that can be created.',
|
|
1149
|
+
example: 999
|
|
1150
|
+
},
|
|
1151
|
+
pro_clusters_max: {
|
|
1152
|
+
type: 'integer',
|
|
1153
|
+
minimum: 0,
|
|
1154
|
+
description: 'Maximum number of Pro clusters that can be created.',
|
|
1155
|
+
example: 999
|
|
1156
|
+
},
|
|
1157
|
+
pro_clusters_available: {
|
|
1158
|
+
type: 'integer',
|
|
1159
|
+
description: 'Available number of Pro clusters that can be created.',
|
|
1160
|
+
example: 999
|
|
1161
|
+
},
|
|
1162
|
+
fleets_max: {
|
|
1163
|
+
type: 'integer',
|
|
1164
|
+
minimum: 0,
|
|
1165
|
+
description: 'Maximum number of fleets that can be created per cluster.',
|
|
1166
|
+
example: 999
|
|
1167
|
+
},
|
|
1168
|
+
cluster_tiers: {
|
|
1169
|
+
type: 'array',
|
|
1170
|
+
items: {
|
|
1171
|
+
type: 'string',
|
|
1172
|
+
example: 'basic'
|
|
1173
|
+
},
|
|
1174
|
+
minItems: 0,
|
|
1175
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
1176
|
+
},
|
|
1177
|
+
regions: {
|
|
1178
|
+
type: 'array',
|
|
1179
|
+
items: {
|
|
1180
|
+
type: 'string',
|
|
1181
|
+
example: 'northamerica-central-1'
|
|
1182
|
+
},
|
|
1183
|
+
minItems: 1,
|
|
1184
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
1185
|
+
},
|
|
1186
|
+
versions: {
|
|
1187
|
+
type: 'array',
|
|
1188
|
+
items: {
|
|
1189
|
+
type: 'object',
|
|
1190
|
+
properties: {
|
|
1191
|
+
id: {
|
|
1192
|
+
type: 'string',
|
|
1193
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
1194
|
+
example: '1.33.x-cfke.x'
|
|
1195
|
+
},
|
|
1196
|
+
label: {
|
|
1197
|
+
type: 'string',
|
|
1198
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
1199
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
required: ['id', 'label'],
|
|
1203
|
+
additionalProperties: false
|
|
1204
|
+
},
|
|
1205
|
+
minItems: 1,
|
|
1206
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
1207
|
+
},
|
|
1208
|
+
copilot_user_hourly_tokens: {
|
|
1209
|
+
type: 'integer',
|
|
1210
|
+
minimum: 0,
|
|
1211
|
+
description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1212
|
+
example: 42000
|
|
1213
|
+
},
|
|
1214
|
+
copilot_organization_hourly_tokens: {
|
|
1215
|
+
type: 'integer',
|
|
1216
|
+
minimum: 0,
|
|
1217
|
+
description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1218
|
+
example: 242000
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions', 'copilot_user_hourly_tokens', 'copilot_organization_hourly_tokens'],
|
|
1222
|
+
additionalProperties: false
|
|
1223
|
+
};
|
|
1224
|
+
export const RegistryRepositorySchema = {
|
|
1225
|
+
type: 'object',
|
|
1226
|
+
properties: {
|
|
1227
|
+
name: {
|
|
1228
|
+
type: 'string',
|
|
1229
|
+
description: 'Repository name.',
|
|
1230
|
+
example: 'my-app'
|
|
1231
|
+
},
|
|
1232
|
+
region: {
|
|
1233
|
+
type: 'string',
|
|
1234
|
+
description: 'Registry region.',
|
|
1235
|
+
example: 'northamerica'
|
|
1236
|
+
},
|
|
1237
|
+
uri: {
|
|
1238
|
+
type: 'string',
|
|
1239
|
+
description: 'Full URI of the repository.',
|
|
1240
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
required: ['name', 'region', 'uri'],
|
|
1244
|
+
additionalProperties: false
|
|
1245
|
+
};
|
|
1246
|
+
export const RegistryRepositoryWithTagsSchema = {
|
|
1247
|
+
type: 'object',
|
|
1248
|
+
properties: {
|
|
1249
|
+
name: {
|
|
1250
|
+
type: 'string',
|
|
1251
|
+
description: 'Repository name.',
|
|
1252
|
+
example: 'my-app'
|
|
1253
|
+
},
|
|
1254
|
+
region: {
|
|
1255
|
+
type: 'string',
|
|
1256
|
+
description: 'Registry region.',
|
|
1257
|
+
example: 'northamerica'
|
|
1258
|
+
},
|
|
1259
|
+
uri: {
|
|
1260
|
+
type: 'string',
|
|
1261
|
+
description: 'Full URI of the repository.',
|
|
1262
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
|
|
1263
|
+
},
|
|
1264
|
+
tags: {
|
|
1265
|
+
type: 'array',
|
|
1266
|
+
items: {
|
|
1267
|
+
type: 'object',
|
|
1268
|
+
properties: {
|
|
1269
|
+
name: {
|
|
1270
|
+
type: 'string',
|
|
1271
|
+
description: 'Tag name.',
|
|
1272
|
+
example: 'latest'
|
|
1273
|
+
},
|
|
1274
|
+
size: {
|
|
1275
|
+
type: 'number',
|
|
1276
|
+
format: 'float',
|
|
1277
|
+
description: 'Size of the tag in bytes.',
|
|
1278
|
+
example: 123456789
|
|
1279
|
+
},
|
|
1280
|
+
mediaType: {
|
|
1281
|
+
type: 'string',
|
|
1282
|
+
description: 'Media type of the manifest.',
|
|
1283
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
required: ['name', 'size'],
|
|
1287
|
+
additionalProperties: false
|
|
1288
|
+
},
|
|
1289
|
+
description: 'Array of tags in the repository.'
|
|
1290
|
+
},
|
|
1291
|
+
totalSize: {
|
|
1292
|
+
type: 'number',
|
|
1293
|
+
format: 'float',
|
|
1294
|
+
description: 'Total size of all tags in the repository in bytes.',
|
|
1295
|
+
example: 987654321
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
required: ['name', 'region', 'uri', 'tags', 'totalSize'],
|
|
1299
|
+
additionalProperties: false
|
|
1300
|
+
};
|
|
1301
|
+
export const RegistryTagSchema = {
|
|
1302
|
+
type: 'object',
|
|
1303
|
+
properties: {
|
|
1304
|
+
name: {
|
|
1305
|
+
type: 'string',
|
|
1306
|
+
description: 'Tag name.',
|
|
1307
|
+
example: 'latest'
|
|
1308
|
+
},
|
|
1309
|
+
mediaType: {
|
|
1310
|
+
type: 'string',
|
|
1311
|
+
description: 'Media type of the manifest.',
|
|
1312
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
1313
|
+
},
|
|
1314
|
+
config: {
|
|
1315
|
+
type: 'object',
|
|
1316
|
+
properties: {
|
|
1317
|
+
size: {
|
|
1318
|
+
type: 'number',
|
|
1319
|
+
format: 'float',
|
|
1320
|
+
description: 'Size of the config in bytes.',
|
|
1321
|
+
example: 1234
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
required: ['size'],
|
|
1325
|
+
additionalProperties: false,
|
|
1326
|
+
description: 'Manifest config metadata.'
|
|
1327
|
+
},
|
|
1328
|
+
layers: {
|
|
1329
|
+
type: 'array',
|
|
1330
|
+
items: {
|
|
1331
|
+
type: 'object',
|
|
1332
|
+
properties: {
|
|
1333
|
+
size: {
|
|
1334
|
+
type: 'number',
|
|
1335
|
+
format: 'float',
|
|
1336
|
+
description: 'Size of the layer in bytes.',
|
|
1337
|
+
example: 5678
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
required: ['size'],
|
|
1341
|
+
additionalProperties: false
|
|
1342
|
+
},
|
|
1343
|
+
description: 'Array of layer metadata.'
|
|
1344
|
+
},
|
|
1345
|
+
manifests: {
|
|
1346
|
+
type: 'array',
|
|
1347
|
+
items: {
|
|
1348
|
+
type: 'object',
|
|
1349
|
+
properties: {
|
|
1350
|
+
digest: {
|
|
1351
|
+
type: 'string',
|
|
1352
|
+
description: 'Digest of the manifest.',
|
|
1353
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
1354
|
+
},
|
|
1355
|
+
platform: {
|
|
1356
|
+
type: 'object',
|
|
1357
|
+
properties: {
|
|
1358
|
+
architecture: {
|
|
1359
|
+
type: 'string',
|
|
1360
|
+
description: 'Architecture of the platform.',
|
|
1361
|
+
example: 'amd64'
|
|
1362
|
+
},
|
|
1363
|
+
os: {
|
|
1364
|
+
type: 'string',
|
|
1365
|
+
description: 'Operating system of the platform.',
|
|
1366
|
+
example: 'linux'
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
required: ['architecture', 'os'],
|
|
1370
|
+
additionalProperties: false,
|
|
1371
|
+
description: 'Platform information for the manifest.'
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
required: ['digest'],
|
|
1375
|
+
additionalProperties: false
|
|
1376
|
+
},
|
|
1377
|
+
description: 'Array of manifests for multi-arch images.'
|
|
1378
|
+
},
|
|
1379
|
+
size: {
|
|
1380
|
+
type: 'number',
|
|
1381
|
+
format: 'float',
|
|
1382
|
+
description: 'Total size of the tag in bytes.',
|
|
1383
|
+
example: 123456789
|
|
1384
|
+
},
|
|
1385
|
+
region: {
|
|
1386
|
+
type: 'string',
|
|
1387
|
+
description: 'Registry region.',
|
|
1388
|
+
example: 'northamerica'
|
|
1389
|
+
},
|
|
1390
|
+
repository: {
|
|
1391
|
+
type: 'string',
|
|
1392
|
+
description: 'Repository name.',
|
|
1393
|
+
example: 'my-app'
|
|
1394
|
+
},
|
|
1395
|
+
uri: {
|
|
1396
|
+
type: 'string',
|
|
1397
|
+
description: 'Full URI of the tag.',
|
|
1398
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
required: ['name', 'size', 'region', 'repository', 'uri'],
|
|
1402
|
+
additionalProperties: false
|
|
1403
|
+
};
|
|
1380
1404
|
export const TokenCreateInputSchema = {
|
|
1381
1405
|
type: 'object',
|
|
1382
1406
|
properties: {
|
|
@@ -1455,6 +1479,101 @@ export const TokenUpdateInputSchema = {
|
|
|
1455
1479
|
},
|
|
1456
1480
|
additionalProperties: false
|
|
1457
1481
|
};
|
|
1482
|
+
export const UsageFacetsSchema = {
|
|
1483
|
+
type: 'object',
|
|
1484
|
+
properties: {
|
|
1485
|
+
cluster_id: {
|
|
1486
|
+
type: 'array',
|
|
1487
|
+
items: {
|
|
1488
|
+
type: 'string'
|
|
1489
|
+
},
|
|
1490
|
+
description: 'List of unique cluster IDs',
|
|
1491
|
+
example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
|
|
1492
|
+
},
|
|
1493
|
+
product: {
|
|
1494
|
+
type: 'array',
|
|
1495
|
+
items: {
|
|
1496
|
+
type: 'string'
|
|
1497
|
+
},
|
|
1498
|
+
description: 'List of unique products',
|
|
1499
|
+
example: ['cfke_controlplane', 'cfke_connected_nodes']
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
additionalProperties: false
|
|
1503
|
+
};
|
|
1504
|
+
export const UsageResponseSchema = {
|
|
1505
|
+
type: 'object',
|
|
1506
|
+
properties: {
|
|
1507
|
+
data: {
|
|
1508
|
+
type: 'array',
|
|
1509
|
+
items: {
|
|
1510
|
+
type: 'object',
|
|
1511
|
+
properties: {
|
|
1512
|
+
hour: {
|
|
1513
|
+
type: 'string',
|
|
1514
|
+
description: 'Hour of the usage',
|
|
1515
|
+
example: '2019-01-01T00:00:00.000Z'
|
|
1516
|
+
},
|
|
1517
|
+
cluster_id: {
|
|
1518
|
+
type: 'string',
|
|
1519
|
+
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1520
|
+
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1521
|
+
},
|
|
1522
|
+
product: {
|
|
1523
|
+
type: 'string',
|
|
1524
|
+
description: 'The product the usage is associated with',
|
|
1525
|
+
example: 'cfke_controlplane'
|
|
1526
|
+
},
|
|
1527
|
+
value: {
|
|
1528
|
+
type: 'number',
|
|
1529
|
+
format: 'float',
|
|
1530
|
+
description: 'Consumption',
|
|
1531
|
+
example: 4
|
|
1532
|
+
},
|
|
1533
|
+
price: {
|
|
1534
|
+
type: 'number',
|
|
1535
|
+
format: 'float',
|
|
1536
|
+
description: 'Price per unit',
|
|
1537
|
+
example: 0.01
|
|
1538
|
+
},
|
|
1539
|
+
total: {
|
|
1540
|
+
type: 'number',
|
|
1541
|
+
format: 'float',
|
|
1542
|
+
description: 'Total cost'
|
|
1543
|
+
}
|
|
1544
|
+
},
|
|
1545
|
+
required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
|
|
1546
|
+
additionalProperties: false
|
|
1547
|
+
},
|
|
1548
|
+
description: 'Usage data'
|
|
1549
|
+
},
|
|
1550
|
+
facets: {
|
|
1551
|
+
type: 'object',
|
|
1552
|
+
properties: {
|
|
1553
|
+
cluster_id: {
|
|
1554
|
+
type: 'array',
|
|
1555
|
+
items: {
|
|
1556
|
+
type: 'string'
|
|
1557
|
+
},
|
|
1558
|
+
description: 'List of unique cluster IDs',
|
|
1559
|
+
example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
|
|
1560
|
+
},
|
|
1561
|
+
product: {
|
|
1562
|
+
type: 'array',
|
|
1563
|
+
items: {
|
|
1564
|
+
type: 'string'
|
|
1565
|
+
},
|
|
1566
|
+
description: 'List of unique products',
|
|
1567
|
+
example: ['cfke_controlplane', 'cfke_connected_nodes']
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
additionalProperties: false,
|
|
1571
|
+
description: 'Facets for filtering'
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
required: ['data', 'facets'],
|
|
1575
|
+
additionalProperties: false
|
|
1576
|
+
};
|
|
1458
1577
|
export const UsageSchema = {
|
|
1459
1578
|
type: 'object',
|
|
1460
1579
|
properties: {
|
|
@@ -1465,90 +1584,33 @@ export const UsageSchema = {
|
|
|
1465
1584
|
},
|
|
1466
1585
|
cluster_id: {
|
|
1467
1586
|
type: 'string',
|
|
1468
|
-
format: 'uuid',
|
|
1469
1587
|
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1470
1588
|
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1471
1589
|
},
|
|
1472
|
-
cluster_tier: {
|
|
1473
|
-
type: 'string',
|
|
1474
|
-
description: 'Tier of the cluster.',
|
|
1475
|
-
example: 'pro',
|
|
1476
|
-
enum: ['basic', 'pro', '']
|
|
1477
|
-
},
|
|
1478
1590
|
product: {
|
|
1479
1591
|
type: 'string',
|
|
1480
1592
|
description: 'The product the usage is associated with',
|
|
1481
|
-
example: 'cfke_controlplane'
|
|
1482
|
-
enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
|
|
1483
|
-
},
|
|
1484
|
-
node_name: {
|
|
1485
|
-
type: 'string',
|
|
1486
|
-
description: 'Name of the Kubernetes node',
|
|
1487
|
-
example: 'flexible-moth-956037384'
|
|
1488
|
-
},
|
|
1489
|
-
sku: {
|
|
1490
|
-
type: 'string',
|
|
1491
|
-
description: 'SKU of the Kubernetes node',
|
|
1492
|
-
example: 'GCP-NORTHAMERICA-NORTHEAST1-A-G1-SMALL-SPOT'
|
|
1593
|
+
example: 'cfke_controlplane'
|
|
1493
1594
|
},
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
description: 'CPU core count of the node',
|
|
1500
|
-
example: 4
|
|
1501
|
-
},
|
|
1502
|
-
{
|
|
1503
|
-
type: 'string',
|
|
1504
|
-
enum: ['']
|
|
1505
|
-
}
|
|
1506
|
-
]
|
|
1595
|
+
value: {
|
|
1596
|
+
type: 'number',
|
|
1597
|
+
format: 'float',
|
|
1598
|
+
description: 'Consumption',
|
|
1599
|
+
example: 4
|
|
1507
1600
|
},
|
|
1508
1601
|
price: {
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
description: 'Price',
|
|
1514
|
-
example: 4
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
type: 'string',
|
|
1518
|
-
enum: ['']
|
|
1519
|
-
}
|
|
1520
|
-
]
|
|
1521
|
-
},
|
|
1522
|
-
value: {
|
|
1523
|
-
anyOf: [
|
|
1524
|
-
{
|
|
1525
|
-
type: 'number',
|
|
1526
|
-
format: 'float',
|
|
1527
|
-
description: 'Value',
|
|
1528
|
-
example: 4
|
|
1529
|
-
},
|
|
1530
|
-
{
|
|
1531
|
-
type: 'string',
|
|
1532
|
-
enum: ['']
|
|
1533
|
-
}
|
|
1534
|
-
]
|
|
1602
|
+
type: 'number',
|
|
1603
|
+
format: 'float',
|
|
1604
|
+
description: 'Price per unit',
|
|
1605
|
+
example: 0.01
|
|
1535
1606
|
},
|
|
1536
1607
|
total: {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
format: 'float',
|
|
1541
|
-
description: 'Total',
|
|
1542
|
-
example: 4
|
|
1543
|
-
},
|
|
1544
|
-
{
|
|
1545
|
-
type: 'string',
|
|
1546
|
-
enum: ['']
|
|
1547
|
-
}
|
|
1548
|
-
]
|
|
1608
|
+
type: 'number',
|
|
1609
|
+
format: 'float',
|
|
1610
|
+
description: 'Total cost'
|
|
1549
1611
|
}
|
|
1550
1612
|
},
|
|
1551
|
-
required: ['
|
|
1613
|
+
required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
|
|
1552
1614
|
additionalProperties: false
|
|
1553
1615
|
};
|
|
1554
1616
|
export const UserCreateInputSchema = {
|