@scaleway/sdk 2.26.0 → 2.28.0
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/api/account/index.cjs +6 -0
- package/dist/api/account/index.d.ts +2 -0
- package/dist/api/account/index.js +6 -4
- package/dist/api/account/v2/api.gen.cjs +116 -0
- package/dist/api/account/v2/api.gen.d.ts +67 -0
- package/dist/api/account/v2/api.gen.js +61 -44
- package/dist/api/account/v2/index.gen.cjs +4 -0
- package/dist/api/account/v2/index.gen.d.ts +2 -0
- package/dist/api/account/v2/index.gen.js +4 -4
- package/dist/api/account/v2/marshalling.gen.cjs +44 -0
- package/dist/api/account/v2/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v2/marshalling.gen.js +18 -13
- package/dist/api/account/v2/types.gen.d.ts +62 -0
- package/dist/api/account/v3/api.gen.cjs +106 -0
- package/dist/api/account/v3/api.gen.d.ts +57 -0
- package/dist/api/account/v3/api.gen.js +61 -44
- package/dist/api/account/v3/index.gen.cjs +6 -0
- package/dist/api/account/v3/index.gen.d.ts +3 -0
- package/dist/api/account/v3/index.gen.js +6 -6
- package/dist/api/account/v3/marshalling.gen.cjs +44 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v3/marshalling.gen.js +18 -13
- package/dist/api/account/v3/types.gen.d.ts +62 -0
- package/dist/api/account/v3/validation-rules.gen.cjs +39 -0
- package/dist/api/account/v3/validation-rules.gen.d.ts +34 -0
- package/dist/api/account/v3/validation-rules.gen.js +5 -5
- package/dist/api/applesilicon/index.cjs +4 -0
- package/dist/api/applesilicon/index.d.ts +1 -0
- package/dist/api/applesilicon/index.js +4 -2
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +222 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +123 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.js +125 -83
- package/dist/api/applesilicon/v1alpha1/content.gen.cjs +11 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.js +11 -7
- package/dist/api/applesilicon/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.js +6 -5
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +147 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +56 -32
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +203 -0
- package/dist/api/baremetal/index.cjs +4 -0
- package/dist/api/baremetal/index.d.ts +1 -0
- package/dist/api/baremetal/index.js +4 -2
- package/dist/api/baremetal/v1/api.gen.cjs +575 -0
- package/dist/api/baremetal/v1/api.gen.d.ts +287 -0
- package/dist/api/baremetal/v1/api.gen.js +353 -205
- package/dist/api/baremetal/v1/api.utils.cjs +36 -0
- package/dist/api/baremetal/v1/api.utils.d.ts +13 -0
- package/dist/api/baremetal/v1/api.utils.js +27 -18
- package/dist/api/baremetal/v1/content.gen.cjs +18 -0
- package/dist/api/baremetal/v1/content.gen.d.ts +7 -0
- package/dist/api/baremetal/v1/content.gen.js +18 -13
- package/dist/api/baremetal/v1/index.cjs +12 -0
- package/dist/api/baremetal/v1/index.d.ts +5 -0
- package/dist/api/baremetal/v1/index.gen.d.ts +4 -0
- package/dist/api/baremetal/v1/index.js +12 -5
- package/dist/api/baremetal/v1/marshalling.gen.cjs +502 -0
- package/dist/api/baremetal/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/baremetal/v1/marshalling.gen.js +186 -90
- package/dist/api/baremetal/v1/types.gen.d.ts +682 -0
- package/dist/api/baremetal/v1/validation-rules.gen.cjs +116 -0
- package/dist/api/baremetal/v1/validation-rules.gen.d.ts +104 -0
- package/dist/api/baremetal/v1/validation-rules.gen.js +12 -5
- package/dist/api/billing/index.cjs +6 -0
- package/dist/api/billing/index.d.ts +2 -0
- package/dist/api/billing/index.js +6 -4
- package/dist/api/billing/v2alpha1/api.gen.cjs +92 -0
- package/dist/api/billing/v2alpha1/api.gen.d.ts +51 -0
- package/dist/api/billing/v2alpha1/api.gen.js +60 -39
- package/dist/api/billing/v2alpha1/index.gen.cjs +4 -0
- package/dist/api/billing/v2alpha1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2alpha1/index.gen.js +4 -4
- package/dist/api/billing/v2alpha1/marshalling.gen.cjs +117 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.d.ts +4 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.js +48 -29
- package/dist/api/billing/v2alpha1/types.gen.d.ts +136 -0
- package/dist/api/billing/v2beta1/api.gen.cjs +175 -0
- package/dist/api/billing/v2beta1/api.gen.d.ts +104 -0
- package/dist/api/billing/v2beta1/api.gen.js +122 -65
- package/dist/api/billing/v2beta1/index.gen.cjs +4 -0
- package/dist/api/billing/v2beta1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2beta1/index.gen.js +4 -4
- package/dist/api/billing/v2beta1/marshalling.gen.cjs +158 -0
- package/dist/api/billing/v2beta1/marshalling.gen.d.ts +6 -0
- package/dist/api/billing/v2beta1/marshalling.gen.js +61 -36
- package/dist/api/billing/v2beta1/types.gen.d.ts +269 -0
- package/dist/api/block/index.cjs +4 -0
- package/dist/api/block/index.d.ts +1 -0
- package/dist/api/block/index.js +4 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +272 -0
- package/dist/api/block/v1alpha1/api.gen.d.ts +144 -0
- package/dist/api/block/v1alpha1/api.gen.js +167 -90
- package/dist/api/block/v1alpha1/content.gen.cjs +20 -0
- package/dist/api/block/v1alpha1/content.gen.d.ts +7 -0
- package/dist/api/block/v1alpha1/content.gen.js +20 -13
- package/dist/api/block/v1alpha1/index.gen.cjs +10 -0
- package/dist/api/block/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/block/v1alpha1/index.gen.js +10 -7
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +194 -0
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/block/v1alpha1/marshalling.gen.js +78 -42
- package/dist/api/block/v1alpha1/types.gen.d.ts +315 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.cjs +56 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.d.ts +47 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.js +14 -5
- package/dist/api/cockpit/index.cjs +6 -0
- package/dist/api/cockpit/index.d.ts +2 -0
- package/dist/api/cockpit/index.js +6 -4
- package/dist/api/cockpit/v1/api.gen.cjs +629 -0
- package/dist/api/cockpit/v1/api.gen.d.ts +310 -0
- package/dist/api/cockpit/v1/api.gen.js +374 -201
- package/dist/api/cockpit/v1/index.gen.cjs +7 -0
- package/dist/api/cockpit/v1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1/index.gen.js +7 -6
- package/dist/api/cockpit/v1/marshalling.gen.cjs +325 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/cockpit/v1/marshalling.gen.js +131 -59
- package/dist/api/cockpit/v1/types.gen.d.ts +525 -0
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +48 -0
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +41 -0
- package/dist/api/cockpit/v1/validation-rules.gen.js +10 -8
- package/dist/api/cockpit/v1beta1/api.gen.cjs +484 -0
- package/dist/api/cockpit/v1beta1/api.gen.d.ts +223 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +298 -167
- package/dist/api/cockpit/v1beta1/content.gen.cjs +8 -0
- package/dist/api/cockpit/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/content.gen.js +8 -7
- package/dist/api/cockpit/v1beta1/index.gen.cjs +6 -0
- package/dist/api/cockpit/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/index.gen.js +6 -5
- package/dist/api/cockpit/v1beta1/marshalling.gen.cjs +343 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.d.ts +29 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +131 -60
- package/dist/api/cockpit/v1beta1/types.gen.d.ts +385 -0
- package/dist/api/container/index.cjs +4 -0
- package/dist/api/container/index.d.ts +1 -0
- package/dist/api/container/index.js +4 -2
- package/dist/api/container/v1beta1/api.gen.cjs +621 -0
- package/dist/api/container/v1beta1/api.gen.d.ts +304 -0
- package/dist/api/container/v1beta1/api.gen.js +384 -228
- package/dist/api/container/v1beta1/content.gen.cjs +34 -0
- package/dist/api/container/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/container/v1beta1/content.gen.js +34 -22
- package/dist/api/container/v1beta1/index.gen.cjs +13 -0
- package/dist/api/container/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/container/v1beta1/index.gen.js +13 -7
- package/dist/api/container/v1beta1/marshalling.gen.cjs +408 -0
- package/dist/api/container/v1beta1/marshalling.gen.d.ts +24 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +147 -71
- package/dist/api/container/v1beta1/types.gen.d.ts +785 -0
- package/dist/api/container/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/container/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/container/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/dedibox/index.cjs +4 -0
- package/dist/api/dedibox/index.d.ts +1 -0
- package/dist/api/dedibox/index.js +4 -2
- package/dist/api/dedibox/v1/api.gen.cjs +1460 -0
- package/dist/api/dedibox/v1/api.gen.d.ts +560 -0
- package/dist/api/dedibox/v1/api.gen.js +1051 -565
- package/dist/api/dedibox/v1/content.gen.cjs +49 -0
- package/dist/api/dedibox/v1/content.gen.d.ts +19 -0
- package/dist/api/dedibox/v1/content.gen.js +49 -31
- package/dist/api/dedibox/v1/index.gen.cjs +22 -0
- package/dist/api/dedibox/v1/index.gen.d.ts +4 -0
- package/dist/api/dedibox/v1/index.gen.js +22 -7
- package/dist/api/dedibox/v1/marshalling.gen.cjs +1475 -0
- package/dist/api/dedibox/v1/marshalling.gen.d.ts +82 -0
- package/dist/api/dedibox/v1/marshalling.gen.js +514 -237
- package/dist/api/dedibox/v1/types.gen.d.ts +1900 -0
- package/dist/api/dedibox/v1/validation-rules.gen.cjs +626 -0
- package/dist/api/dedibox/v1/validation-rules.gen.d.ts +539 -0
- package/dist/api/dedibox/v1/validation-rules.gen.js +87 -5
- package/dist/api/document_db/index.cjs +4 -0
- package/dist/api/document_db/index.d.ts +1 -0
- package/dist/api/document_db/index.js +4 -2
- package/dist/api/document_db/v1beta1/api.gen.cjs +1018 -0
- package/dist/api/document_db/v1beta1/api.gen.d.ts +542 -0
- package/dist/api/document_db/v1beta1/api.gen.js +561 -339
- package/dist/api/document_db/v1beta1/content.gen.cjs +31 -0
- package/dist/api/document_db/v1beta1/content.gen.d.ts +11 -0
- package/dist/api/document_db/v1beta1/content.gen.js +31 -19
- package/dist/api/document_db/v1beta1/index.gen.cjs +12 -0
- package/dist/api/document_db/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/document_db/v1beta1/index.gen.js +12 -7
- package/dist/api/document_db/v1beta1/marshalling.gen.cjs +829 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.d.ts +50 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.js +354 -181
- package/dist/api/document_db/v1beta1/types.gen.d.ts +1254 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/domain/index.cjs +4 -0
- package/dist/api/domain/index.d.ts +1 -0
- package/dist/api/domain/index.js +4 -2
- package/dist/api/domain/v2beta1/api.gen.cjs +1052 -0
- package/dist/api/domain/v2beta1/api.gen.d.ts +521 -0
- package/dist/api/domain/v2beta1/api.gen.js +638 -365
- package/dist/api/domain/v2beta1/content.gen.cjs +29 -0
- package/dist/api/domain/v2beta1/content.gen.d.ts +18 -0
- package/dist/api/domain/v2beta1/content.gen.js +29 -28
- package/dist/api/domain/v2beta1/index.gen.cjs +13 -0
- package/dist/api/domain/v2beta1/index.gen.d.ts +3 -0
- package/dist/api/domain/v2beta1/index.gen.js +13 -5
- package/dist/api/domain/v2beta1/marshalling.gen.cjs +1472 -0
- package/dist/api/domain/v2beta1/marshalling.gen.d.ts +59 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +676 -383
- package/dist/api/domain/v2beta1/types.gen.d.ts +1073 -0
- package/dist/api/flexibleip/index.cjs +4 -0
- package/dist/api/flexibleip/index.d.ts +1 -0
- package/dist/api/flexibleip/index.js +4 -2
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +227 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +115 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.js +134 -86
- package/dist/api/flexibleip/v1alpha1/content.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.js +12 -10
- package/dist/api/flexibleip/v1alpha1/index.gen.cjs +9 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.js +9 -7
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.cjs +115 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +36 -18
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +196 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +3 -5
- package/dist/api/function/index.cjs +4 -0
- package/dist/api/function/index.d.ts +1 -0
- package/dist/api/function/index.js +4 -2
- package/dist/api/function/v1beta1/api.gen.cjs +666 -0
- package/dist/api/function/v1beta1/api.gen.d.ts +330 -0
- package/dist/api/function/v1beta1/api.gen.js +406 -244
- package/dist/api/function/v1beta1/content.gen.cjs +34 -0
- package/dist/api/function/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/function/v1beta1/content.gen.js +34 -22
- package/dist/api/function/v1beta1/index.gen.cjs +13 -0
- package/dist/api/function/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/function/v1beta1/index.gen.js +13 -7
- package/dist/api/function/v1beta1/marshalling.gen.cjs +457 -0
- package/dist/api/function/v1beta1/marshalling.gen.d.ts +27 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +167 -80
- package/dist/api/function/v1beta1/types.gen.d.ts +819 -0
- package/dist/api/function/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/function/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/function/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/iam/index.cjs +4 -0
- package/dist/api/iam/index.d.ts +1 -0
- package/dist/api/iam/index.js +4 -2
- package/dist/api/iam/v1alpha1/api.gen.cjs +951 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +480 -0
- package/dist/api/iam/v1alpha1/api.gen.js +560 -302
- package/dist/api/iam/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/iam/v1alpha1/index.gen.js +6 -6
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +504 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +42 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +184 -119
- package/dist/api/iam/v1alpha1/types.gen.d.ts +886 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +235 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +211 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +29 -10
- package/dist/api/index.d.ts +34 -0
- package/dist/api/instance/index.cjs +4 -0
- package/dist/api/instance/index.d.ts +1 -0
- package/dist/api/instance/index.js +4 -2
- package/dist/api/instance/v1/api.gen.cjs +1178 -0
- package/dist/api/instance/v1/api.gen.d.ts +532 -0
- package/dist/api/instance/v1/api.gen.js +753 -436
- package/dist/api/instance/v1/api.utils.cjs +279 -0
- package/dist/api/instance/v1/api.utils.d.ts +95 -0
- package/dist/api/instance/v1/api.utils.js +145 -109
- package/dist/api/instance/v1/content.gen.cjs +44 -0
- package/dist/api/instance/v1/content.gen.d.ts +21 -0
- package/dist/api/instance/v1/content.gen.js +44 -34
- package/dist/api/instance/v1/index.cjs +15 -0
- package/dist/api/instance/v1/index.d.ts +4 -0
- package/dist/api/instance/v1/index.gen.d.ts +4 -0
- package/dist/api/instance/v1/index.js +15 -2
- package/dist/api/instance/v1/marshalling.gen.cjs +1813 -0
- package/dist/api/instance/v1/marshalling.gen.d.ts +95 -0
- package/dist/api/instance/v1/marshalling.gen.js +736 -412
- package/dist/api/instance/v1/marshalling.utils.d.ts +3 -0
- package/dist/api/instance/v1/types.gen.d.ts +1818 -0
- package/dist/api/instance/v1/types.private.gen.d.ts +167 -0
- package/dist/api/instance/v1/types.utils.d.ts +35 -0
- package/dist/api/instance/v1/validation-rules.gen.d.ts +10 -0
- package/dist/api/iot/index.cjs +4 -0
- package/dist/api/iot/index.d.ts +1 -0
- package/dist/api/iot/index.js +4 -2
- package/dist/api/iot/v1/api.gen.cjs +621 -0
- package/dist/api/iot/v1/api.gen.d.ts +325 -0
- package/dist/api/iot/v1/api.gen.js +350 -238
- package/dist/api/iot/v1/content.gen.cjs +4 -0
- package/dist/api/iot/v1/content.gen.d.ts +3 -0
- package/dist/api/iot/v1/content.gen.js +4 -7
- package/dist/api/iot/v1/index.gen.cjs +6 -0
- package/dist/api/iot/v1/index.gen.d.ts +3 -0
- package/dist/api/iot/v1/index.gen.js +6 -5
- package/dist/api/iot/v1/marshalling.gen.cjs +534 -0
- package/dist/api/iot/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/iot/v1/marshalling.gen.js +209 -114
- package/dist/api/iot/v1/types.gen.d.ts +916 -0
- package/dist/api/ipam/index.cjs +4 -0
- package/dist/api/ipam/index.d.ts +1 -0
- package/dist/api/ipam/index.js +4 -2
- package/dist/api/ipam/v1/api.gen.cjs +117 -0
- package/dist/api/ipam/v1/api.gen.d.ts +57 -0
- package/dist/api/ipam/v1/api.gen.js +75 -55
- package/dist/api/ipam/v1/index.gen.cjs +6 -0
- package/dist/api/ipam/v1/index.gen.d.ts +3 -0
- package/dist/api/ipam/v1/index.gen.js +6 -6
- package/dist/api/ipam/v1/marshalling.gen.cjs +98 -0
- package/dist/api/ipam/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/ipam/v1/marshalling.gen.js +35 -29
- package/dist/api/ipam/v1/types.gen.d.ts +209 -0
- package/dist/api/ipam/v1/validation-rules.gen.cjs +9 -0
- package/dist/api/ipam/v1/validation-rules.gen.d.ts +6 -0
- package/dist/api/ipam/v1/validation-rules.gen.js +3 -5
- package/dist/api/ipfs/index.cjs +4 -0
- package/dist/api/ipfs/index.d.ts +1 -0
- package/dist/api/ipfs/index.js +4 -2
- package/dist/api/ipfs/v1alpha1/api.gen.cjs +374 -0
- package/dist/api/ipfs/v1alpha1/api.gen.d.ts +198 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +210 -133
- package/dist/api/ipfs/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/ipfs/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +6 -10
- package/dist/api/ipfs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/ipfs/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +8 -5
- package/dist/api/ipfs/v1alpha1/marshalling.gen.cjs +208 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.d.ts +18 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +68 -33
- package/dist/api/ipfs/v1alpha1/types.gen.d.ts +317 -0
- package/dist/api/jobs/index.cjs +4 -0
- package/dist/api/jobs/index.d.ts +1 -0
- package/dist/api/jobs/index.js +4 -2
- package/dist/api/jobs/v1alpha1/api.gen.cjs +170 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +84 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +109 -69
- package/dist/api/jobs/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/jobs/v1alpha1/content.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/jobs/v1alpha1/index.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +150 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +10 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +50 -26
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +210 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +97 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.d.ts +87 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +12 -7
- package/dist/api/k8s/index.cjs +4 -0
- package/dist/api/k8s/index.d.ts +1 -0
- package/dist/api/k8s/index.js +4 -2
- package/dist/api/k8s/v1/api.gen.cjs +550 -0
- package/dist/api/k8s/v1/api.gen.d.ts +284 -0
- package/dist/api/k8s/v1/api.gen.js +317 -195
- package/dist/api/k8s/v1/api.utils.cjs +13 -0
- package/dist/api/k8s/v1/api.utils.d.ts +11 -0
- package/dist/api/k8s/v1/api.utils.js +5 -5
- package/dist/api/k8s/v1/content.gen.cjs +23 -0
- package/dist/api/k8s/v1/content.gen.d.ts +7 -0
- package/dist/api/k8s/v1/content.gen.js +23 -13
- package/dist/api/k8s/v1/index.cjs +10 -0
- package/dist/api/k8s/v1/index.d.ts +4 -0
- package/dist/api/k8s/v1/index.gen.d.ts +4 -0
- package/dist/api/k8s/v1/index.js +10 -4
- package/dist/api/k8s/v1/marshalling.gen.cjs +510 -0
- package/dist/api/k8s/v1/marshalling.gen.d.ts +22 -0
- package/dist/api/k8s/v1/marshalling.gen.js +158 -79
- package/dist/api/k8s/v1/types.gen.d.ts +1123 -0
- package/dist/api/k8s/v1/validation-rules.gen.cjs +110 -0
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +96 -0
- package/dist/api/k8s/v1/validation-rules.gen.js +14 -5
- package/dist/api/lb/index.cjs +4 -0
- package/dist/api/lb/index.d.ts +1 -0
- package/dist/api/lb/index.js +4 -2
- package/dist/api/lb/v1/api.gen.cjs +1984 -0
- package/dist/api/lb/v1/api.gen.d.ts +990 -0
- package/dist/api/lb/v1/api.gen.js +1186 -695
- package/dist/api/lb/v1/api.utils.cjs +116 -0
- package/dist/api/lb/v1/api.utils.d.ts +41 -0
- package/dist/api/lb/v1/api.utils.js +83 -48
- package/dist/api/lb/v1/content.gen.cjs +22 -0
- package/dist/api/lb/v1/content.gen.d.ts +9 -0
- package/dist/api/lb/v1/content.gen.js +22 -16
- package/dist/api/lb/v1/index.cjs +10 -0
- package/dist/api/lb/v1/index.d.ts +4 -0
- package/dist/api/lb/v1/index.gen.d.ts +3 -0
- package/dist/api/lb/v1/index.js +10 -2
- package/dist/api/lb/v1/marshalling.gen.cjs +1289 -0
- package/dist/api/lb/v1/marshalling.gen.d.ts +73 -0
- package/dist/api/lb/v1/marshalling.gen.js +576 -334
- package/dist/api/lb/v1/types.gen.d.ts +2729 -0
- package/dist/api/lb/v1/types.utils.d.ts +13 -0
- package/dist/api/llm_inference/index.cjs +4 -0
- package/dist/api/llm_inference/index.d.ts +1 -0
- package/dist/api/llm_inference/index.js +4 -2
- package/dist/api/llm_inference/v1beta1/api.gen.cjs +305 -0
- package/dist/api/llm_inference/v1beta1/api.gen.d.ts +151 -0
- package/dist/api/llm_inference/v1beta1/api.gen.js +192 -120
- package/dist/api/llm_inference/v1beta1/content.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/llm_inference/v1beta1/content.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/index.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/llm_inference/v1beta1/index.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/marshalling.gen.cjs +271 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.d.ts +18 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.js +98 -52
- package/dist/api/llm_inference/v1beta1/types.gen.d.ts +433 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.cjs +56 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.d.ts +50 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/marketplace/index.cjs +4 -0
- package/dist/api/marketplace/index.d.ts +1 -0
- package/dist/api/marketplace/index.js +4 -2
- package/dist/api/marketplace/v2/api.gen.cjs +174 -0
- package/dist/api/marketplace/v2/api.gen.d.ts +95 -0
- package/dist/api/marketplace/v2/api.gen.js +111 -67
- package/dist/api/marketplace/v2/index.gen.cjs +4 -0
- package/dist/api/marketplace/v2/index.gen.d.ts +2 -0
- package/dist/api/marketplace/v2/index.gen.js +4 -4
- package/dist/api/marketplace/v2/marshalling.gen.cjs +115 -0
- package/dist/api/marketplace/v2/marshalling.gen.d.ts +9 -0
- package/dist/api/marketplace/v2/marshalling.gen.js +44 -23
- package/dist/api/marketplace/v2/types.gen.d.ts +135 -0
- package/dist/api/mnq/index.cjs +4 -0
- package/dist/api/mnq/index.d.ts +1 -0
- package/dist/api/mnq/index.js +4 -2
- package/dist/api/mnq/v1beta1/api.gen.cjs +500 -0
- package/dist/api/mnq/v1beta1/api.gen.d.ts +267 -0
- package/dist/api/mnq/v1beta1/api.gen.js +291 -184
- package/dist/api/mnq/v1beta1/index.gen.cjs +8 -0
- package/dist/api/mnq/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/mnq/v1beta1/index.gen.js +8 -6
- package/dist/api/mnq/v1beta1/marshalling.gen.cjs +268 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.d.ts +23 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.js +105 -49
- package/dist/api/mnq/v1beta1/types.gen.d.ts +449 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.cjs +85 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.d.ts +72 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +13 -5
- package/dist/api/rdb/index.cjs +4 -0
- package/dist/api/rdb/index.d.ts +1 -0
- package/dist/api/rdb/index.js +4 -2
- package/dist/api/rdb/v1/api.gen.cjs +1192 -0
- package/dist/api/rdb/v1/api.gen.d.ts +631 -0
- package/dist/api/rdb/v1/api.gen.js +660 -393
- package/dist/api/rdb/v1/content.gen.cjs +38 -0
- package/dist/api/rdb/v1/content.gen.d.ts +13 -0
- package/dist/api/rdb/v1/content.gen.js +38 -22
- package/dist/api/rdb/v1/index.gen.cjs +13 -0
- package/dist/api/rdb/v1/index.gen.d.ts +4 -0
- package/dist/api/rdb/v1/index.gen.js +13 -7
- package/dist/api/rdb/v1/marshalling.gen.cjs +908 -0
- package/dist/api/rdb/v1/marshalling.gen.d.ts +59 -0
- package/dist/api/rdb/v1/marshalling.gen.js +385 -191
- package/dist/api/rdb/v1/types.gen.d.ts +1404 -0
- package/dist/api/rdb/v1/validation-rules.gen.cjs +8 -0
- package/dist/api/rdb/v1/validation-rules.gen.d.ts +5 -0
- package/dist/api/rdb/v1/validation-rules.gen.js +3 -5
- package/dist/api/redis/index.cjs +4 -0
- package/dist/api/redis/index.d.ts +1 -0
- package/dist/api/redis/index.js +4 -2
- package/dist/api/redis/v1/api.gen.cjs +476 -0
- package/dist/api/redis/v1/api.gen.d.ts +253 -0
- package/dist/api/redis/v1/api.gen.js +265 -162
- package/dist/api/redis/v1/content.gen.cjs +10 -0
- package/dist/api/redis/v1/content.gen.d.ts +3 -0
- package/dist/api/redis/v1/content.gen.js +10 -7
- package/dist/api/redis/v1/index.gen.cjs +6 -0
- package/dist/api/redis/v1/index.gen.d.ts +3 -0
- package/dist/api/redis/v1/index.gen.js +6 -5
- package/dist/api/redis/v1/marshalling.gen.cjs +355 -0
- package/dist/api/redis/v1/marshalling.gen.d.ts +24 -0
- package/dist/api/redis/v1/marshalling.gen.js +156 -84
- package/dist/api/redis/v1/types.gen.d.ts +473 -0
- package/dist/api/registry/index.cjs +4 -0
- package/dist/api/registry/index.d.ts +1 -0
- package/dist/api/registry/index.js +4 -2
- package/dist/api/registry/v1/api.gen.cjs +287 -0
- package/dist/api/registry/v1/api.gen.d.ts +160 -0
- package/dist/api/registry/v1/api.gen.js +161 -94
- package/dist/api/registry/v1/content.gen.cjs +8 -0
- package/dist/api/registry/v1/content.gen.d.ts +7 -0
- package/dist/api/registry/v1/content.gen.js +8 -13
- package/dist/api/registry/v1/index.gen.cjs +8 -0
- package/dist/api/registry/v1/index.gen.d.ts +3 -0
- package/dist/api/registry/v1/index.gen.js +8 -5
- package/dist/api/registry/v1/marshalling.gen.cjs +129 -0
- package/dist/api/registry/v1/marshalling.gen.d.ts +11 -0
- package/dist/api/registry/v1/marshalling.gen.js +51 -30
- package/dist/api/registry/v1/types.gen.d.ts +300 -0
- package/dist/api/secret/index.cjs +6 -0
- package/dist/api/secret/index.d.ts +2 -0
- package/dist/api/secret/index.js +6 -4
- package/dist/api/secret/v1alpha1/api.gen.cjs +483 -0
- package/dist/api/secret/v1alpha1/api.gen.d.ts +262 -0
- package/dist/api/secret/v1alpha1/api.gen.js +271 -176
- package/dist/api/secret/v1alpha1/index.gen.cjs +4 -0
- package/dist/api/secret/v1alpha1/index.gen.d.ts +2 -0
- package/dist/api/secret/v1alpha1/index.gen.js +4 -4
- package/dist/api/secret/v1alpha1/marshalling.gen.cjs +221 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.d.ts +19 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.js +67 -33
- package/dist/api/secret/v1alpha1/types.gen.d.ts +619 -0
- package/dist/api/secret/v1beta1/api.gen.cjs +359 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +182 -0
- package/dist/api/secret/v1beta1/api.gen.js +213 -135
- package/dist/api/secret/v1beta1/index.gen.cjs +6 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/secret/v1beta1/index.gen.js +6 -6
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +219 -0
- package/dist/api/secret/v1beta1/marshalling.gen.d.ts +14 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +76 -40
- package/dist/api/secret/v1beta1/types.gen.d.ts +513 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/serverless_sqldb/index.cjs +4 -0
- package/dist/api/serverless_sqldb/index.d.ts +1 -0
- package/dist/api/serverless_sqldb/index.js +4 -2
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +202 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +109 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +118 -78
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.cjs +89 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.d.ts +9 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +27 -15
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +193 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.cjs +62 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.d.ts +55 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.js +9 -7
- package/dist/api/std/index.gen.cjs +1 -0
- package/dist/api/std/index.gen.d.ts +1 -0
- package/dist/api/std/types.gen.d.ts +1 -0
- package/dist/api/tem/index.cjs +4 -0
- package/dist/api/tem/index.d.ts +1 -0
- package/dist/api/tem/index.js +4 -2
- package/dist/api/tem/v1alpha1/api.gen.cjs +260 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +134 -0
- package/dist/api/tem/v1alpha1/api.gen.js +154 -89
- package/dist/api/tem/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/tem/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/tem/v1alpha1/content.gen.js +6 -10
- package/dist/api/tem/v1alpha1/index.gen.cjs +7 -0
- package/dist/api/tem/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/tem/v1alpha1/index.gen.js +7 -5
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +255 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +90 -50
- package/dist/api/tem/v1alpha1/types.gen.d.ts +401 -0
- package/dist/api/test/index.cjs +4 -0
- package/dist/api/test/index.d.ts +1 -0
- package/dist/api/test/index.js +4 -2
- package/dist/api/test/v1/api.gen.cjs +164 -0
- package/dist/api/test/v1/api.gen.d.ts +84 -0
- package/dist/api/test/v1/api.gen.js +99 -71
- package/dist/api/test/v1/content.gen.cjs +4 -0
- package/dist/api/test/v1/content.gen.d.ts +3 -0
- package/dist/api/test/v1/content.gen.js +4 -7
- package/dist/api/test/v1/index.gen.cjs +6 -0
- package/dist/api/test/v1/index.gen.d.ts +3 -0
- package/dist/api/test/v1/index.gen.js +6 -5
- package/dist/api/test/v1/marshalling.gen.cjs +93 -0
- package/dist/api/test/v1/marshalling.gen.d.ts +8 -0
- package/dist/api/test/v1/marshalling.gen.js +34 -22
- package/dist/api/test/v1/types.gen.d.ts +91 -0
- package/dist/api/vpc/index.cjs +6 -0
- package/dist/api/vpc/index.d.ts +2 -0
- package/dist/api/vpc/index.js +6 -4
- package/dist/api/vpc/v1/api.gen.cjs +119 -0
- package/dist/api/vpc/v1/api.gen.d.ts +59 -0
- package/dist/api/vpc/v1/api.gen.js +76 -43
- package/dist/api/vpc/v1/index.gen.cjs +4 -0
- package/dist/api/vpc/v1/index.gen.d.ts +2 -0
- package/dist/api/vpc/v1/index.gen.js +4 -4
- package/dist/api/vpc/v1/marshalling.gen.cjs +52 -0
- package/dist/api/vpc/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/vpc/v1/marshalling.gen.js +22 -14
- package/dist/api/vpc/v1/types.gen.d.ts +99 -0
- package/dist/api/vpc/v2/api.gen.cjs +303 -0
- package/dist/api/vpc/v2/api.gen.d.ts +149 -0
- package/dist/api/vpc/v2/api.gen.js +181 -112
- package/dist/api/vpc/v2/index.gen.cjs +4 -0
- package/dist/api/vpc/v2/index.gen.d.ts +2 -0
- package/dist/api/vpc/v2/index.gen.js +4 -4
- package/dist/api/vpc/v2/marshalling.gen.cjs +173 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +17 -0
- package/dist/api/vpc/v2/marshalling.gen.js +70 -36
- package/dist/api/vpc/v2/types.gen.d.ts +338 -0
- package/dist/api/vpcgw/index.cjs +4 -0
- package/dist/api/vpcgw/index.d.ts +1 -0
- package/dist/api/vpcgw/index.js +4 -2
- package/dist/api/vpcgw/v1/api.gen.cjs +740 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +393 -0
- package/dist/api/vpcgw/v1/api.gen.js +408 -239
- package/dist/api/vpcgw/v1/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v1/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v1/content.gen.js +15 -10
- package/dist/api/vpcgw/v1/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v1/index.gen.js +7 -5
- package/dist/api/vpcgw/v1/marshalling.gen.cjs +437 -0
- package/dist/api/vpcgw/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +145 -74
- package/dist/api/vpcgw/v1/types.gen.d.ts +901 -0
- package/dist/api/webhosting/index.cjs +4 -0
- package/dist/api/webhosting/index.d.ts +1 -0
- package/dist/api/webhosting/index.js +4 -2
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +226 -0
- package/dist/api/webhosting/v1alpha1/api.gen.d.ts +115 -0
- package/dist/api/webhosting/v1alpha1/api.gen.js +138 -86
- package/dist/api/webhosting/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/webhosting/v1alpha1/content.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/webhosting/v1alpha1/index.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +236 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +80 -41
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +379 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +22 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +18 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +4 -5
- package/dist/bridge.d.ts +11 -0
- package/dist/helpers/is-browser.cjs +7 -0
- package/dist/helpers/is-browser.d.ts +1 -0
- package/dist/helpers/is-browser.js +7 -5
- package/dist/helpers/is-response.cjs +4 -0
- package/dist/helpers/is-response.d.ts +8 -0
- package/dist/helpers/is-response.js +4 -10
- package/dist/helpers/json.cjs +7 -0
- package/dist/helpers/json.d.ts +13 -0
- package/dist/helpers/json.js +5 -9
- package/dist/helpers/marshalling.cjs +78 -0
- package/dist/helpers/marshalling.d.ts +63 -0
- package/dist/helpers/marshalling.js +40 -77
- package/dist/index.cjs +114 -32093
- package/dist/index.d.ts +15 -38464
- package/dist/index.js +115 -81
- package/dist/internal/async/interval-retrier.cjs +55 -0
- package/dist/internal/async/interval-retrier.d.ts +111 -0
- package/dist/internal/async/interval-retrier.js +30 -72
- package/dist/internal/async/sleep.cjs +6 -0
- package/dist/internal/async/sleep.d.ts +9 -0
- package/dist/internal/async/sleep.js +4 -11
- package/dist/internal/interceptors/composer.cjs +25 -0
- package/dist/internal/interceptors/composer.d.ts +25 -0
- package/dist/internal/interceptors/composer.js +15 -36
- package/dist/internal/interceptors/helpers.cjs +12 -0
- package/dist/internal/interceptors/helpers.d.ts +21 -0
- package/dist/internal/interceptors/helpers.js +7 -26
- package/dist/internal/interceptors/types.d.ts +89 -0
- package/dist/internal/logger/console-logger.cjs +24 -0
- package/dist/internal/logger/console-logger.d.ts +23 -0
- package/dist/internal/logger/console-logger.js +11 -19
- package/dist/internal/logger/index.cjs +12 -0
- package/dist/internal/logger/index.d.ts +25 -0
- package/dist/internal/logger/index.js +9 -30
- package/dist/internal/logger/level-resolver.cjs +13 -0
- package/dist/internal/logger/level-resolver.d.ts +9 -0
- package/dist/internal/logger/level-resolver.js +12 -12
- package/dist/internal/logger/logger.d.ts +13 -0
- package/dist/internal/validations/string-validation.cjs +30 -0
- package/dist/internal/validations/string-validation.d.ts +18 -0
- package/dist/internal/validations/string-validation.js +19 -27
- package/dist/internals.d.ts +10 -0
- package/dist/scw/api.cjs +8 -0
- package/dist/scw/api.d.ts +10 -0
- package/dist/scw/api.js +3 -7
- package/dist/scw/auth.cjs +28 -0
- package/dist/scw/auth.d.ts +57 -0
- package/dist/scw/auth.js +23 -62
- package/dist/scw/client-ini-factory.cjs +66 -0
- package/dist/scw/client-ini-factory.d.ts +111 -0
- package/dist/scw/client-ini-factory.js +33 -141
- package/dist/scw/client-ini-profile.cjs +23 -0
- package/dist/scw/client-ini-profile.d.ts +82 -0
- package/dist/scw/client-ini-profile.js +15 -46
- package/dist/scw/client-settings.cjs +51 -0
- package/dist/scw/client-settings.d.ts +59 -0
- package/dist/scw/client-settings.js +26 -53
- package/dist/scw/client.cjs +28 -0
- package/dist/scw/client.d.ts +72 -0
- package/dist/scw/client.js +14 -76
- package/dist/scw/constants.cjs +6 -0
- package/dist/scw/constants.d.ts +2 -0
- package/dist/scw/constants.js +5 -3
- package/dist/scw/custom-marshalling.cjs +92 -0
- package/dist/scw/custom-marshalling.d.ts +59 -0
- package/dist/scw/custom-marshalling.js +38 -77
- package/dist/scw/custom-types.d.ts +65 -0
- package/dist/scw/errors/error-parser.cjs +76 -0
- package/dist/scw/errors/error-parser.d.ts +12 -0
- package/dist/scw/errors/error-parser.js +33 -64
- package/dist/scw/errors/non-standard/invalid-request-mapper.cjs +36 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +12 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.js +26 -23
- package/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +23 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +11 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.js +16 -20
- package/dist/scw/errors/scw-error-from-json.d.ts +10 -0
- package/dist/scw/errors/scw-error.cjs +43 -0
- package/dist/scw/errors/scw-error.d.ts +25 -0
- package/dist/scw/errors/scw-error.js +19 -35
- package/dist/scw/errors/standard/already-exists-error.cjs +31 -0
- package/dist/scw/errors/standard/already-exists-error.d.ts +16 -0
- package/dist/scw/errors/standard/already-exists-error.js +18 -13
- package/dist/scw/errors/standard/denied-authentication-error.cjs +37 -0
- package/dist/scw/errors/standard/denied-authentication-error.d.ts +15 -0
- package/dist/scw/errors/standard/denied-authentication-error.js +9 -24
- package/dist/scw/errors/standard/index.cjs +28 -0
- package/dist/scw/errors/standard/index.d.ts +17 -0
- package/dist/scw/errors/standard/index.js +28 -13
- package/dist/scw/errors/standard/invalid-arguments-error.cjs +55 -0
- package/dist/scw/errors/standard/invalid-arguments-error.d.ts +24 -0
- package/dist/scw/errors/standard/invalid-arguments-error.js +26 -38
- package/dist/scw/errors/standard/out-of-stock-error.cjs +18 -0
- package/dist/scw/errors/standard/out-of-stock-error.d.ts +14 -0
- package/dist/scw/errors/standard/out-of-stock-error.js +7 -11
- package/dist/scw/errors/standard/permissions-denied-error.cjs +30 -0
- package/dist/scw/errors/standard/permissions-denied-error.d.ts +23 -0
- package/dist/scw/errors/standard/permissions-denied-error.js +20 -35
- package/dist/scw/errors/standard/precondition-failed-error.cjs +32 -0
- package/dist/scw/errors/standard/precondition-failed-error.d.ts +15 -0
- package/dist/scw/errors/standard/precondition-failed-error.js +14 -24
- package/dist/scw/errors/standard/quotas-exceeded-error.cjs +44 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +34 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.js +29 -53
- package/dist/scw/errors/standard/resource-expired-error.cjs +31 -0
- package/dist/scw/errors/standard/resource-expired-error.d.ts +16 -0
- package/dist/scw/errors/standard/resource-expired-error.js +18 -13
- package/dist/scw/errors/standard/resource-locked-error.cjs +20 -0
- package/dist/scw/errors/standard/resource-locked-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-locked-error.js +6 -11
- package/dist/scw/errors/standard/resource-not-found-error.cjs +24 -0
- package/dist/scw/errors/standard/resource-not-found-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-not-found-error.js +11 -12
- package/dist/scw/errors/standard/too-many-requests-error.cjs +59 -0
- package/dist/scw/errors/standard/too-many-requests-error.d.ts +32 -0
- package/dist/scw/errors/standard/too-many-requests-error.js +20 -31
- package/dist/scw/errors/standard/transient-state-error.cjs +31 -0
- package/dist/scw/errors/standard/transient-state-error.d.ts +16 -0
- package/dist/scw/errors/standard/transient-state-error.js +18 -13
- package/dist/scw/errors/types.cjs +15 -0
- package/dist/scw/errors/types.d.ts +9 -0
- package/dist/scw/errors/types.js +6 -14
- package/dist/scw/fetch/build-fetcher.cjs +60 -0
- package/dist/scw/fetch/build-fetcher.d.ts +23 -0
- package/dist/scw/fetch/build-fetcher.js +29 -38
- package/dist/scw/fetch/http-dumper.cjs +20 -0
- package/dist/scw/fetch/http-dumper.d.ts +18 -0
- package/dist/scw/fetch/http-dumper.js +19 -50
- package/dist/scw/fetch/http-interceptors.cjs +43 -0
- package/dist/scw/fetch/http-interceptors.d.ts +38 -0
- package/dist/scw/fetch/http-interceptors.js +23 -66
- package/dist/scw/fetch/resource-paginator.cjs +37 -0
- package/dist/scw/fetch/resource-paginator.d.ts +47 -0
- package/dist/scw/fetch/resource-paginator.js +12 -45
- package/dist/scw/fetch/response-parser.cjs +57 -0
- package/dist/scw/fetch/response-parser.d.ts +25 -0
- package/dist/scw/fetch/response-parser.js +31 -46
- package/dist/scw/fetch/types.d.ts +16 -0
- package/dist/scw/locality.d.ts +2 -0
- package/package.json +7 -3
- package/dist/node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js +0 -11
|
@@ -0,0 +1,1123 @@
|
|
|
1
|
+
import type { Region, Zone } from '../../../bridge';
|
|
2
|
+
export type AutoscalerEstimator = 'unknown_estimator' | 'binpacking';
|
|
3
|
+
export type AutoscalerExpander = 'unknown_expander' | 'random' | 'most_pods' | 'least_waste' | 'priority' | 'price';
|
|
4
|
+
export type CNI = 'unknown_cni' | 'cilium' | 'calico' | 'weave' | 'flannel' | 'kilo' | 'none';
|
|
5
|
+
export type ClusterStatus = 'unknown' | 'creating' | 'ready' | 'deleting' | 'deleted' | 'updating' | 'locked' | 'pool_required';
|
|
6
|
+
export type ClusterTypeAvailability = 'available' | 'scarce' | 'shortage';
|
|
7
|
+
export type ClusterTypeResiliency = 'unknown_resiliency' | 'standard' | 'high_availability';
|
|
8
|
+
export type ListClustersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
|
|
9
|
+
export type ListNodesRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
10
|
+
export type ListPoolsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc' | 'version_asc' | 'version_desc';
|
|
11
|
+
export type MaintenanceWindowDayOfTheWeek = 'any' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
12
|
+
export type NodeStatus = 'unknown' | 'creating' | 'not_ready' | 'ready' | 'deleting' | 'deleted' | 'locked' | 'rebooting' | 'creation_error' | 'upgrading' | 'starting' | 'registering';
|
|
13
|
+
export type PoolStatus = 'unknown' | 'ready' | 'deleting' | 'deleted' | 'scaling' | 'warning' | 'locked' | 'upgrading';
|
|
14
|
+
export type PoolVolumeType = 'default_volume_type' | 'l_ssd' | 'b_ssd';
|
|
15
|
+
export type Runtime = 'unknown_runtime' | 'docker' | 'containerd' | 'crio';
|
|
16
|
+
export interface MaintenanceWindow {
|
|
17
|
+
/** Start time of the two-hour maintenance window. */
|
|
18
|
+
startHour: number;
|
|
19
|
+
/** Day of the week for the maintenance window. */
|
|
20
|
+
day: MaintenanceWindowDayOfTheWeek;
|
|
21
|
+
}
|
|
22
|
+
export interface PoolUpgradePolicy {
|
|
23
|
+
maxUnavailable: number;
|
|
24
|
+
maxSurge: number;
|
|
25
|
+
}
|
|
26
|
+
export interface CreateClusterRequestPoolConfigUpgradePolicy {
|
|
27
|
+
/** The maximum number of nodes that can be not ready at the same time. */
|
|
28
|
+
maxUnavailable?: number;
|
|
29
|
+
/** The maximum number of nodes to be created during the upgrade. */
|
|
30
|
+
maxSurge?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface ClusterAutoUpgrade {
|
|
33
|
+
/** Defines whether auto upgrade is enabled for the cluster. */
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
/** Maintenance window of the cluster auto upgrades. */
|
|
36
|
+
maintenanceWindow?: MaintenanceWindow;
|
|
37
|
+
}
|
|
38
|
+
export interface ClusterAutoscalerConfig {
|
|
39
|
+
/** Disable the cluster autoscaler. */
|
|
40
|
+
scaleDownDisabled: boolean;
|
|
41
|
+
/** How long after scale up that scale down evaluation resumes. */
|
|
42
|
+
scaleDownDelayAfterAdd: string;
|
|
43
|
+
/** Type of resource estimator to be used in scale up. */
|
|
44
|
+
estimator: AutoscalerEstimator;
|
|
45
|
+
/** Type of node group expander to be used in scale up. */
|
|
46
|
+
expander: AutoscalerExpander;
|
|
47
|
+
/**
|
|
48
|
+
* Ignore DaemonSet pods when calculating resource utilization for scaling
|
|
49
|
+
* down.
|
|
50
|
+
*/
|
|
51
|
+
ignoreDaemonsetsUtilization: boolean;
|
|
52
|
+
/** Detect similar node groups and balance the number of nodes between them. */
|
|
53
|
+
balanceSimilarNodeGroups: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Pods with priority below cutoff will be expendable. They can be killed
|
|
56
|
+
* without any consideration during scale down and they won't cause scale up.
|
|
57
|
+
* Pods with null priority (PodPriority disabled) are non expendable.
|
|
58
|
+
*/
|
|
59
|
+
expendablePodsPriorityCutoff: number;
|
|
60
|
+
/** How long a node should be unneeded before it is eligible to be scaled down. */
|
|
61
|
+
scaleDownUnneededTime: string;
|
|
62
|
+
/**
|
|
63
|
+
* Node utilization level, defined as a sum of requested resources divided by
|
|
64
|
+
* capacity, below which a node can be considered for scale down.
|
|
65
|
+
*/
|
|
66
|
+
scaleDownUtilizationThreshold: number;
|
|
67
|
+
/**
|
|
68
|
+
* Maximum number of seconds the cluster autoscaler waits for pod termination
|
|
69
|
+
* when trying to scale down a node.
|
|
70
|
+
*/
|
|
71
|
+
maxGracefulTerminationSec: number;
|
|
72
|
+
}
|
|
73
|
+
export interface ClusterOpenIDConnectConfig {
|
|
74
|
+
/**
|
|
75
|
+
* URL of the provider which allows the API server to discover public signing
|
|
76
|
+
* keys. Only URLs using the `https://` scheme are accepted. This is typically
|
|
77
|
+
* the provider's discovery URL without a path, for example
|
|
78
|
+
* "https://accounts.google.com" or "https://login.salesforce.com".
|
|
79
|
+
*/
|
|
80
|
+
issuerUrl: string;
|
|
81
|
+
/** A client ID that all tokens must be issued for. */
|
|
82
|
+
clientId: string;
|
|
83
|
+
/**
|
|
84
|
+
* JWT claim to use as the user name. The default is `sub`, which is expected
|
|
85
|
+
* to be the end user's unique identifier. Admins can choose other claims,
|
|
86
|
+
* such as `email` or `name`, depending on their provider. However, claims
|
|
87
|
+
* other than `email` will be prefixed with the issuer URL to prevent name
|
|
88
|
+
* collision.
|
|
89
|
+
*/
|
|
90
|
+
usernameClaim: string;
|
|
91
|
+
/**
|
|
92
|
+
* Prefix prepended to username claims to prevent name collision (such as
|
|
93
|
+
* `system:` users). For example, the value `oidc:` will create usernames like
|
|
94
|
+
* `oidc:jane.doe`. If this flag is not provided and `username_claim` is a
|
|
95
|
+
* value other than `email`, the prefix defaults to `( Issuer URL )#` where `(
|
|
96
|
+
* Issuer URL )` is the value of `issuer_url`. The value `-` can be used to
|
|
97
|
+
* disable all prefixing.
|
|
98
|
+
*/
|
|
99
|
+
usernamePrefix: string;
|
|
100
|
+
/** JWT claim to use as the user's group. */
|
|
101
|
+
groupsClaim: string[];
|
|
102
|
+
/**
|
|
103
|
+
* Prefix prepended to group claims to prevent name collision (such as
|
|
104
|
+
* `system:` groups). For example, the value `oidc:` will create group names
|
|
105
|
+
* like `oidc:engineering` and `oidc:infra`.
|
|
106
|
+
*/
|
|
107
|
+
groupsPrefix: string;
|
|
108
|
+
/**
|
|
109
|
+
* Multiple key=value pairs describing a required claim in the ID token. If
|
|
110
|
+
* set, the claims are verified to be present in the ID token with a matching
|
|
111
|
+
* value.
|
|
112
|
+
*/
|
|
113
|
+
requiredClaim: string[];
|
|
114
|
+
}
|
|
115
|
+
export interface Pool {
|
|
116
|
+
/** Pool ID. */
|
|
117
|
+
id: string;
|
|
118
|
+
/** Cluster ID of the pool. */
|
|
119
|
+
clusterId: string;
|
|
120
|
+
/** Date on which the pool was created. */
|
|
121
|
+
createdAt?: Date;
|
|
122
|
+
/** Date on which the pool was last updated. */
|
|
123
|
+
updatedAt?: Date;
|
|
124
|
+
/** Pool name. */
|
|
125
|
+
name: string;
|
|
126
|
+
/** Pool status. */
|
|
127
|
+
status: PoolStatus;
|
|
128
|
+
/** Pool version. */
|
|
129
|
+
version: string;
|
|
130
|
+
/**
|
|
131
|
+
* Node type is the type of Scaleway Instance wanted for the pool. Nodes with
|
|
132
|
+
* insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST).
|
|
133
|
+
* 'external' is a special node type used to provision instances from other
|
|
134
|
+
* cloud providers in a Kosmos Cluster.
|
|
135
|
+
*/
|
|
136
|
+
nodeType: string;
|
|
137
|
+
/** Defines whether the autoscaling feature is enabled for the pool. */
|
|
138
|
+
autoscaling: boolean;
|
|
139
|
+
/** Size (number of nodes) of the pool. */
|
|
140
|
+
size: number;
|
|
141
|
+
/**
|
|
142
|
+
* Defines the minimum size of the pool. Note that this field is only used
|
|
143
|
+
* when autoscaling is enabled on the pool.
|
|
144
|
+
*/
|
|
145
|
+
minSize: number;
|
|
146
|
+
/**
|
|
147
|
+
* Defines the maximum size of the pool. Note that this field is only used
|
|
148
|
+
* when autoscaling is enabled on the pool.
|
|
149
|
+
*/
|
|
150
|
+
maxSize: number;
|
|
151
|
+
/**
|
|
152
|
+
* Customization of the container runtime is available for each pool. Note
|
|
153
|
+
* that `docker` has been deprecated since version 1.20 and will be removed by
|
|
154
|
+
* version 1.24.
|
|
155
|
+
*/
|
|
156
|
+
containerRuntime: Runtime;
|
|
157
|
+
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
158
|
+
autohealing: boolean;
|
|
159
|
+
/** Tags associated with the pool. */
|
|
160
|
+
tags: string[];
|
|
161
|
+
/** Placement group ID in which all the nodes of the pool will be created. */
|
|
162
|
+
placementGroupId?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Kubelet arguments to be used by this pool. Note that this feature is
|
|
165
|
+
* experimental.
|
|
166
|
+
*/
|
|
167
|
+
kubeletArgs: Record<string, string>;
|
|
168
|
+
/** Pool upgrade policy. */
|
|
169
|
+
upgradePolicy?: PoolUpgradePolicy;
|
|
170
|
+
/** Zone in which the pool's nodes will be spawned. */
|
|
171
|
+
zone: Zone;
|
|
172
|
+
/**
|
|
173
|
+
* Defines the system volume disk type. Two different types of volume
|
|
174
|
+
* (`volume_type`) are provided: `l_ssd` is a local block storage which means
|
|
175
|
+
* your system is stored locally on your node's hypervisor. `b_ssd` is a
|
|
176
|
+
* remote block storage which means your system is stored on a centralized and
|
|
177
|
+
* resilient cluster.
|
|
178
|
+
*/
|
|
179
|
+
rootVolumeType: PoolVolumeType;
|
|
180
|
+
/** System volume disk size. */
|
|
181
|
+
rootVolumeSize?: number;
|
|
182
|
+
/**
|
|
183
|
+
* Defines if the public IP should be removed from Nodes. To use this feature,
|
|
184
|
+
* your Cluster must have an attached Private Network set up with a Public
|
|
185
|
+
* Gateway.
|
|
186
|
+
*/
|
|
187
|
+
publicIpDisabled: boolean;
|
|
188
|
+
/** Cluster region of the pool. */
|
|
189
|
+
region: Region;
|
|
190
|
+
}
|
|
191
|
+
export interface CreateClusterRequestAutoUpgrade {
|
|
192
|
+
/** Defines whether auto upgrade is enabled for the cluster. */
|
|
193
|
+
enable: boolean;
|
|
194
|
+
/** Maintenance window of the cluster auto upgrades. */
|
|
195
|
+
maintenanceWindow?: MaintenanceWindow;
|
|
196
|
+
}
|
|
197
|
+
export interface CreateClusterRequestAutoscalerConfig {
|
|
198
|
+
/** Disable the cluster autoscaler. */
|
|
199
|
+
scaleDownDisabled?: boolean;
|
|
200
|
+
/** How long after scale up that scale down evaluation resumes. */
|
|
201
|
+
scaleDownDelayAfterAdd?: string;
|
|
202
|
+
/** Type of resource estimator to be used in scale up. */
|
|
203
|
+
estimator: AutoscalerEstimator;
|
|
204
|
+
/** Type of node group expander to be used in scale up. */
|
|
205
|
+
expander: AutoscalerExpander;
|
|
206
|
+
/**
|
|
207
|
+
* Ignore DaemonSet pods when calculating resource utilization for scaling
|
|
208
|
+
* down.
|
|
209
|
+
*/
|
|
210
|
+
ignoreDaemonsetsUtilization?: boolean;
|
|
211
|
+
/** Detect similar node groups and balance the number of nodes between them. */
|
|
212
|
+
balanceSimilarNodeGroups?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Pods with priority below cutoff will be expendable. They can be killed
|
|
215
|
+
* without any consideration during scale down and they won't cause scale up.
|
|
216
|
+
* Pods with null priority (PodPriority disabled) are non expendable.
|
|
217
|
+
*/
|
|
218
|
+
expendablePodsPriorityCutoff?: number;
|
|
219
|
+
/** How long a node should be unneeded before it is eligible to be scaled down. */
|
|
220
|
+
scaleDownUnneededTime?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Node utilization level, defined as a sum of requested resources divided by
|
|
223
|
+
* capacity, below which a node can be considered for scale down.
|
|
224
|
+
*/
|
|
225
|
+
scaleDownUtilizationThreshold?: number;
|
|
226
|
+
/**
|
|
227
|
+
* Maximum number of seconds the cluster autoscaler waits for pod termination
|
|
228
|
+
* when trying to scale down a node.
|
|
229
|
+
*/
|
|
230
|
+
maxGracefulTerminationSec?: number;
|
|
231
|
+
}
|
|
232
|
+
export interface CreateClusterRequestOpenIDConnectConfig {
|
|
233
|
+
/**
|
|
234
|
+
* URL of the provider which allows the API server to discover public signing
|
|
235
|
+
* keys. Only URLs using the `https://` scheme are accepted. This is typically
|
|
236
|
+
* the provider's discovery URL without a path, for example
|
|
237
|
+
* "https://accounts.google.com" or "https://login.salesforce.com".
|
|
238
|
+
*/
|
|
239
|
+
issuerUrl: string;
|
|
240
|
+
/** A client ID that all tokens must be issued for. */
|
|
241
|
+
clientId: string;
|
|
242
|
+
/**
|
|
243
|
+
* JWT claim to use as the user name. The default is `sub`, which is expected
|
|
244
|
+
* to be the end user's unique identifier. Admins can choose other claims,
|
|
245
|
+
* such as `email` or `name`, depending on their provider. However, claims
|
|
246
|
+
* other than `email` will be prefixed with the issuer URL to prevent name
|
|
247
|
+
* collision.
|
|
248
|
+
*/
|
|
249
|
+
usernameClaim?: string;
|
|
250
|
+
/**
|
|
251
|
+
* Prefix prepended to username claims to prevent name collision (such as
|
|
252
|
+
* `system:` users). For example, the value `oidc:` will create usernames like
|
|
253
|
+
* `oidc:jane.doe`. If this flag is not provided and `username_claim` is a
|
|
254
|
+
* value other than `email`, the prefix defaults to `( Issuer URL )#` where `(
|
|
255
|
+
* Issuer URL )` is the value of `issuer_url`. The value `-` can be used to
|
|
256
|
+
* disable all prefixing.
|
|
257
|
+
*/
|
|
258
|
+
usernamePrefix?: string;
|
|
259
|
+
/** JWT claim to use as the user's group. */
|
|
260
|
+
groupsClaim?: string[];
|
|
261
|
+
/**
|
|
262
|
+
* Prefix prepended to group claims to prevent name collision (such as
|
|
263
|
+
* `system:` groups). For example, the value `oidc:` will create group names
|
|
264
|
+
* like `oidc:engineering` and `oidc:infra`.
|
|
265
|
+
*/
|
|
266
|
+
groupsPrefix?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Multiple key=value pairs describing a required claim in the ID token. If
|
|
269
|
+
* set, the claims are verified to be present in the ID token with a matching
|
|
270
|
+
* value.
|
|
271
|
+
*/
|
|
272
|
+
requiredClaim?: string[];
|
|
273
|
+
}
|
|
274
|
+
export interface CreateClusterRequestPoolConfig {
|
|
275
|
+
/** Name of the pool. */
|
|
276
|
+
name: string;
|
|
277
|
+
/**
|
|
278
|
+
* Node type is the type of Scaleway Instance wanted for the pool. Nodes with
|
|
279
|
+
* insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST).
|
|
280
|
+
* 'external' is a special node type used to provision instances from other
|
|
281
|
+
* cloud providers in a Kosmos Cluster.
|
|
282
|
+
*/
|
|
283
|
+
nodeType: string;
|
|
284
|
+
/** Placement group ID in which all the nodes of the pool will be created. */
|
|
285
|
+
placementGroupId?: string;
|
|
286
|
+
/** Defines whether the autoscaling feature is enabled for the pool. */
|
|
287
|
+
autoscaling: boolean;
|
|
288
|
+
/** Size (number of nodes) of the pool. */
|
|
289
|
+
size: number;
|
|
290
|
+
/**
|
|
291
|
+
* Defines the minimum size of the pool. Note that this field is only used
|
|
292
|
+
* when autoscaling is enabled on the pool.
|
|
293
|
+
*/
|
|
294
|
+
minSize?: number;
|
|
295
|
+
/**
|
|
296
|
+
* Defines the maximum size of the pool. Note that this field is only used
|
|
297
|
+
* when autoscaling is enabled on the pool.
|
|
298
|
+
*/
|
|
299
|
+
maxSize?: number;
|
|
300
|
+
/**
|
|
301
|
+
* Customization of the container runtime is available for each pool. Note
|
|
302
|
+
* that `docker` has been deprecated since version 1.20 and will be removed by
|
|
303
|
+
* version 1.24.
|
|
304
|
+
*/
|
|
305
|
+
containerRuntime: Runtime;
|
|
306
|
+
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
307
|
+
autohealing: boolean;
|
|
308
|
+
/** Tags associated with the pool. */
|
|
309
|
+
tags: string[];
|
|
310
|
+
/**
|
|
311
|
+
* Kubelet arguments to be used by this pool. Note that this feature is
|
|
312
|
+
* experimental.
|
|
313
|
+
*/
|
|
314
|
+
kubeletArgs: Record<string, string>;
|
|
315
|
+
/** Pool upgrade policy. */
|
|
316
|
+
upgradePolicy?: CreateClusterRequestPoolConfigUpgradePolicy;
|
|
317
|
+
/** Zone in which the pool's nodes will be spawned. */
|
|
318
|
+
zone: Zone;
|
|
319
|
+
/**
|
|
320
|
+
* Defines the system volume disk type. Two different types of volume
|
|
321
|
+
* (`volume_type`) are provided: `l_ssd` is a local block storage which means
|
|
322
|
+
* your system is stored locally on your node's hypervisor. `b_ssd` is a
|
|
323
|
+
* remote block storage which means your system is stored on a centralized and
|
|
324
|
+
* resilient cluster.
|
|
325
|
+
*/
|
|
326
|
+
rootVolumeType: PoolVolumeType;
|
|
327
|
+
/** System volume disk size. */
|
|
328
|
+
rootVolumeSize?: number;
|
|
329
|
+
/**
|
|
330
|
+
* Defines if the public IP should be removed from Nodes. To use this feature,
|
|
331
|
+
* your Cluster must have an attached Private Network set up with a Public
|
|
332
|
+
* Gateway.
|
|
333
|
+
*/
|
|
334
|
+
publicIpDisabled: boolean;
|
|
335
|
+
}
|
|
336
|
+
export interface CreatePoolRequestUpgradePolicy {
|
|
337
|
+
maxUnavailable?: number;
|
|
338
|
+
maxSurge?: number;
|
|
339
|
+
}
|
|
340
|
+
export interface ExternalNodeCoreV1Taint {
|
|
341
|
+
key: string;
|
|
342
|
+
value: string;
|
|
343
|
+
effect: string;
|
|
344
|
+
}
|
|
345
|
+
export interface ClusterType {
|
|
346
|
+
/** Cluster type name. */
|
|
347
|
+
name: string;
|
|
348
|
+
/** Cluster type availability. */
|
|
349
|
+
availability: ClusterTypeAvailability;
|
|
350
|
+
/** Maximum number of nodes supported by the offer. */
|
|
351
|
+
maxNodes: number;
|
|
352
|
+
/** Time period during which you can no longer switch to a lower offer. */
|
|
353
|
+
commitmentDelay?: string;
|
|
354
|
+
/** Value of the Service Level Agreement of the offer. */
|
|
355
|
+
sla: number;
|
|
356
|
+
/** Resiliency offered by the offer. */
|
|
357
|
+
resiliency: ClusterTypeResiliency;
|
|
358
|
+
/** Max RAM allowed for the control plane. */
|
|
359
|
+
memory: number;
|
|
360
|
+
/** Returns information if this offer uses dedicated resources. */
|
|
361
|
+
dedicated: boolean;
|
|
362
|
+
/**
|
|
363
|
+
* True if the offer allows activation of the audit log functionality. Please
|
|
364
|
+
* note that audit logs are sent to Cockpit.
|
|
365
|
+
*/
|
|
366
|
+
auditLogsSupported: boolean;
|
|
367
|
+
}
|
|
368
|
+
export interface Version {
|
|
369
|
+
/** Name of the Kubernetes version. */
|
|
370
|
+
name: string;
|
|
371
|
+
/** Label of the Kubernetes version. */
|
|
372
|
+
label: string;
|
|
373
|
+
/** Region in which this version is available. */
|
|
374
|
+
region: Region;
|
|
375
|
+
/** Supported Container Network Interface (CNI) plugins for this version. */
|
|
376
|
+
availableCnis: CNI[];
|
|
377
|
+
/** Supported container runtimes for this version. */
|
|
378
|
+
availableContainerRuntimes: Runtime[];
|
|
379
|
+
/** Supported feature gates for this version. */
|
|
380
|
+
availableFeatureGates: string[];
|
|
381
|
+
/** Supported admission plugins for this version. */
|
|
382
|
+
availableAdmissionPlugins: string[];
|
|
383
|
+
/** Supported kubelet arguments for this version. */
|
|
384
|
+
availableKubeletArgs: Record<string, string>;
|
|
385
|
+
}
|
|
386
|
+
export interface Cluster {
|
|
387
|
+
/** Cluster ID. */
|
|
388
|
+
id: string;
|
|
389
|
+
/** Cluster type. */
|
|
390
|
+
type: string;
|
|
391
|
+
/** Cluster name. */
|
|
392
|
+
name: string;
|
|
393
|
+
/** Status of the cluster. */
|
|
394
|
+
status: ClusterStatus;
|
|
395
|
+
/** Kubernetes version of the cluster. */
|
|
396
|
+
version: string;
|
|
397
|
+
/** Region in which the cluster is deployed. */
|
|
398
|
+
region: Region;
|
|
399
|
+
/** ID of the Organization owning the cluster. */
|
|
400
|
+
organizationId: string;
|
|
401
|
+
/** ID of the Project owning the cluster. */
|
|
402
|
+
projectId: string;
|
|
403
|
+
/** Tags associated with the cluster. */
|
|
404
|
+
tags: string[];
|
|
405
|
+
/** Container Network Interface (CNI) plugin running in the cluster. */
|
|
406
|
+
cni: CNI;
|
|
407
|
+
/** Cluster description. */
|
|
408
|
+
description: string;
|
|
409
|
+
/** Kubernetes API server URL of the cluster. */
|
|
410
|
+
clusterUrl: string;
|
|
411
|
+
/** Wildcard DNS resolving all the ready cluster nodes. */
|
|
412
|
+
dnsWildcard: string;
|
|
413
|
+
/** Date on which the cluster was created. */
|
|
414
|
+
createdAt?: Date;
|
|
415
|
+
/** Date on which the cluster was last updated. */
|
|
416
|
+
updatedAt?: Date;
|
|
417
|
+
/** Autoscaler config for the cluster. */
|
|
418
|
+
autoscalerConfig?: ClusterAutoscalerConfig;
|
|
419
|
+
/** Auto upgrade configuration of the cluster. */
|
|
420
|
+
autoUpgrade?: ClusterAutoUpgrade;
|
|
421
|
+
/** Defines whether a new Kubernetes version is available. */
|
|
422
|
+
upgradeAvailable: boolean;
|
|
423
|
+
/** List of enabled feature gates. */
|
|
424
|
+
featureGates: string[];
|
|
425
|
+
/** List of enabled admission plugins. */
|
|
426
|
+
admissionPlugins: string[];
|
|
427
|
+
/**
|
|
428
|
+
* This configuration enables to update the OpenID Connect configuration of
|
|
429
|
+
* the Kubernetes API server.
|
|
430
|
+
*/
|
|
431
|
+
openIdConnectConfig?: ClusterOpenIDConnectConfig;
|
|
432
|
+
/**
|
|
433
|
+
* Additional Subject Alternative Names for the Kubernetes API server
|
|
434
|
+
* certificate.
|
|
435
|
+
*/
|
|
436
|
+
apiserverCertSans: string[];
|
|
437
|
+
/** Private network ID for internal cluster communication. */
|
|
438
|
+
privateNetworkId?: string;
|
|
439
|
+
/** Date on which it will be possible to switch to a smaller offer. */
|
|
440
|
+
commitmentEndsAt?: Date;
|
|
441
|
+
/**
|
|
442
|
+
* @deprecated Defines whether routed IPs are enabled for nodes of this
|
|
443
|
+
* cluster.
|
|
444
|
+
*/
|
|
445
|
+
routedIpEnabled?: boolean;
|
|
446
|
+
}
|
|
447
|
+
export interface Node {
|
|
448
|
+
/** Node ID. */
|
|
449
|
+
id: string;
|
|
450
|
+
/** Pool ID of the node. */
|
|
451
|
+
poolId: string;
|
|
452
|
+
/** Cluster ID of the node. */
|
|
453
|
+
clusterId: string;
|
|
454
|
+
/**
|
|
455
|
+
* Underlying instance ID. It is prefixed by instance type and location
|
|
456
|
+
* information (see
|
|
457
|
+
* https://pkg.go.dev/k8s.io/api/core/v1#NodeSpec.ProviderID).
|
|
458
|
+
*/
|
|
459
|
+
providerId: string;
|
|
460
|
+
/** Cluster region of the node. */
|
|
461
|
+
region: Region;
|
|
462
|
+
/** Name of the node. */
|
|
463
|
+
name: string;
|
|
464
|
+
/** @deprecated Public IPv4 address of the node. */
|
|
465
|
+
publicIpV4?: string;
|
|
466
|
+
/** @deprecated Public IPv6 address of the node. */
|
|
467
|
+
publicIpV6?: string;
|
|
468
|
+
/**
|
|
469
|
+
* @deprecated Conditions of the node. These conditions contain the Node
|
|
470
|
+
* Problem Detector conditions, as well as some in house conditions.
|
|
471
|
+
*/
|
|
472
|
+
conditions?: Record<string, string>;
|
|
473
|
+
/** Status of the node. */
|
|
474
|
+
status: NodeStatus;
|
|
475
|
+
/** Details of the error, if any occurred when managing the node. */
|
|
476
|
+
errorMessage?: string;
|
|
477
|
+
/** Date on which the node was created. */
|
|
478
|
+
createdAt?: Date;
|
|
479
|
+
/** Date on which the node was last updated. */
|
|
480
|
+
updatedAt?: Date;
|
|
481
|
+
}
|
|
482
|
+
export interface UpdateClusterRequestAutoUpgrade {
|
|
483
|
+
/** Defines whether auto upgrade is enabled for the cluster. */
|
|
484
|
+
enable?: boolean;
|
|
485
|
+
/** Maintenance window of the cluster auto upgrades. */
|
|
486
|
+
maintenanceWindow?: MaintenanceWindow;
|
|
487
|
+
}
|
|
488
|
+
export interface UpdateClusterRequestAutoscalerConfig {
|
|
489
|
+
/** Disable the cluster autoscaler. */
|
|
490
|
+
scaleDownDisabled?: boolean;
|
|
491
|
+
/** How long after scale up that scale down evaluation resumes. */
|
|
492
|
+
scaleDownDelayAfterAdd?: string;
|
|
493
|
+
/** Type of resource estimator to be used in scale up. */
|
|
494
|
+
estimator: AutoscalerEstimator;
|
|
495
|
+
/** Type of node group expander to be used in scale up. */
|
|
496
|
+
expander: AutoscalerExpander;
|
|
497
|
+
/**
|
|
498
|
+
* Ignore DaemonSet pods when calculating resource utilization for scaling
|
|
499
|
+
* down.
|
|
500
|
+
*/
|
|
501
|
+
ignoreDaemonsetsUtilization?: boolean;
|
|
502
|
+
/** Detect similar node groups and balance the number of nodes between them. */
|
|
503
|
+
balanceSimilarNodeGroups?: boolean;
|
|
504
|
+
/**
|
|
505
|
+
* Pods with priority below cutoff will be expendable. They can be killed
|
|
506
|
+
* without any consideration during scale down and they won't cause scale up.
|
|
507
|
+
* Pods with null priority (PodPriority disabled) are non expendable.
|
|
508
|
+
*/
|
|
509
|
+
expendablePodsPriorityCutoff?: number;
|
|
510
|
+
/** How long a node should be unneeded before it is eligible to be scaled down. */
|
|
511
|
+
scaleDownUnneededTime?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Node utilization level, defined as a sum of requested resources divided by
|
|
514
|
+
* capacity, below which a node can be considered for scale down.
|
|
515
|
+
*/
|
|
516
|
+
scaleDownUtilizationThreshold?: number;
|
|
517
|
+
/**
|
|
518
|
+
* Maximum number of seconds the cluster autoscaler waits for pod termination
|
|
519
|
+
* when trying to scale down a node.
|
|
520
|
+
*/
|
|
521
|
+
maxGracefulTerminationSec?: number;
|
|
522
|
+
}
|
|
523
|
+
export interface UpdateClusterRequestOpenIDConnectConfig {
|
|
524
|
+
/**
|
|
525
|
+
* URL of the provider which allows the API server to discover public signing
|
|
526
|
+
* keys. Only URLs using the `https://` scheme are accepted. This is typically
|
|
527
|
+
* the provider's discovery URL without a path, for example
|
|
528
|
+
* "https://accounts.google.com" or "https://login.salesforce.com".
|
|
529
|
+
*/
|
|
530
|
+
issuerUrl?: string;
|
|
531
|
+
/** A client ID that all tokens must be issued for. */
|
|
532
|
+
clientId?: string;
|
|
533
|
+
/**
|
|
534
|
+
* JWT claim to use as the user name. The default is `sub`, which is expected
|
|
535
|
+
* to be the end user's unique identifier. Admins can choose other claims,
|
|
536
|
+
* such as `email` or `name`, depending on their provider. However, claims
|
|
537
|
+
* other than `email` will be prefixed with the issuer URL to prevent name
|
|
538
|
+
* collision.
|
|
539
|
+
*/
|
|
540
|
+
usernameClaim?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Prefix prepended to username claims to prevent name collision (such as
|
|
543
|
+
* `system:` users). For example, the value `oidc:` will create usernames like
|
|
544
|
+
* `oidc:jane.doe`. If this flag is not provided and `username_claim` is a
|
|
545
|
+
* value other than `email`, the prefix defaults to `( Issuer URL )#` where `(
|
|
546
|
+
* Issuer URL )` is the value of `issuer_url`. The value `-` can be used to
|
|
547
|
+
* disable all prefixing.
|
|
548
|
+
*/
|
|
549
|
+
usernamePrefix?: string;
|
|
550
|
+
/** JWT claim to use as the user's group. */
|
|
551
|
+
groupsClaim?: string[];
|
|
552
|
+
/**
|
|
553
|
+
* Prefix prepended to group claims to prevent name collision (such as
|
|
554
|
+
* `system:` groups). For example, the value `oidc:` will create group names
|
|
555
|
+
* like `oidc:engineering` and `oidc:infra`.
|
|
556
|
+
*/
|
|
557
|
+
groupsPrefix?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Multiple key=value pairs describing a required claim in the ID token. If
|
|
560
|
+
* set, the claims are verified to be present in the ID token with a matching
|
|
561
|
+
* value.
|
|
562
|
+
*/
|
|
563
|
+
requiredClaim?: string[];
|
|
564
|
+
}
|
|
565
|
+
export interface UpdatePoolRequestUpgradePolicy {
|
|
566
|
+
maxUnavailable?: number;
|
|
567
|
+
maxSurge?: number;
|
|
568
|
+
}
|
|
569
|
+
export type CreateClusterRequest = {
|
|
570
|
+
/**
|
|
571
|
+
* Region to target. If none is passed will use default region from the
|
|
572
|
+
* config.
|
|
573
|
+
*/
|
|
574
|
+
region?: Region;
|
|
575
|
+
/**
|
|
576
|
+
* @deprecated Organization ID in which the cluster will be created.
|
|
577
|
+
*
|
|
578
|
+
* One-of ('projectIdentifier'): at most one of 'projectId', 'organizationId'
|
|
579
|
+
* could be set.
|
|
580
|
+
*/
|
|
581
|
+
organizationId?: string;
|
|
582
|
+
/**
|
|
583
|
+
* Project ID in which the cluster will be created.
|
|
584
|
+
*
|
|
585
|
+
* One-of ('projectIdentifier'): at most one of 'projectId', 'organizationId'
|
|
586
|
+
* could be set.
|
|
587
|
+
*/
|
|
588
|
+
projectId?: string;
|
|
589
|
+
/**
|
|
590
|
+
* Type of the cluster (possible values are kapsule, multicloud,
|
|
591
|
+
* kapsule-dedicated-8, kapsule-dedicated-16).
|
|
592
|
+
*/
|
|
593
|
+
type: string;
|
|
594
|
+
/** Cluster name. */
|
|
595
|
+
name?: string;
|
|
596
|
+
/** Cluster description. */
|
|
597
|
+
description: string;
|
|
598
|
+
/** Tags associated with the cluster. */
|
|
599
|
+
tags?: string[];
|
|
600
|
+
/** Kubernetes version of the cluster. */
|
|
601
|
+
version: string;
|
|
602
|
+
/** Container Network Interface (CNI) plugin running in the cluster. */
|
|
603
|
+
cni: CNI;
|
|
604
|
+
/** Pools created along with the cluster. */
|
|
605
|
+
pools?: CreateClusterRequestPoolConfig[];
|
|
606
|
+
/**
|
|
607
|
+
* Autoscaler configuration for the cluster. It allows you to set (to an
|
|
608
|
+
* extent) your preferred autoscaler configuration, which is an implementation
|
|
609
|
+
* of the cluster-autoscaler
|
|
610
|
+
* (https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler/).
|
|
611
|
+
*/
|
|
612
|
+
autoscalerConfig?: CreateClusterRequestAutoscalerConfig;
|
|
613
|
+
/**
|
|
614
|
+
* Auto upgrade configuration of the cluster. This configuration enables to
|
|
615
|
+
* set a specific 2-hour time window in which the cluster can be automatically
|
|
616
|
+
* updated to the latest patch version.
|
|
617
|
+
*/
|
|
618
|
+
autoUpgrade?: CreateClusterRequestAutoUpgrade;
|
|
619
|
+
/** List of feature gates to enable. */
|
|
620
|
+
featureGates?: string[];
|
|
621
|
+
/** List of admission plugins to enable. */
|
|
622
|
+
admissionPlugins?: string[];
|
|
623
|
+
/**
|
|
624
|
+
* OpenID Connect configuration of the cluster. This configuration enables to
|
|
625
|
+
* update the OpenID Connect configuration of the Kubernetes API server.
|
|
626
|
+
*/
|
|
627
|
+
openIdConnectConfig?: CreateClusterRequestOpenIDConnectConfig;
|
|
628
|
+
/**
|
|
629
|
+
* Additional Subject Alternative Names for the Kubernetes API server
|
|
630
|
+
* certificate.
|
|
631
|
+
*/
|
|
632
|
+
apiserverCertSans?: string[];
|
|
633
|
+
/**
|
|
634
|
+
* Private network ID for internal cluster communication (cannot be changed
|
|
635
|
+
* later).
|
|
636
|
+
*/
|
|
637
|
+
privateNetworkId?: string;
|
|
638
|
+
};
|
|
639
|
+
export type CreateExternalNodeRequest = {
|
|
640
|
+
/**
|
|
641
|
+
* Region to target. If none is passed will use default region from the
|
|
642
|
+
* config.
|
|
643
|
+
*/
|
|
644
|
+
region?: Region;
|
|
645
|
+
poolId: string;
|
|
646
|
+
};
|
|
647
|
+
export type CreatePoolRequest = {
|
|
648
|
+
/**
|
|
649
|
+
* Region to target. If none is passed will use default region from the
|
|
650
|
+
* config.
|
|
651
|
+
*/
|
|
652
|
+
region?: Region;
|
|
653
|
+
/** Cluster ID to which the pool will be attached. */
|
|
654
|
+
clusterId: string;
|
|
655
|
+
/** Pool name. */
|
|
656
|
+
name?: string;
|
|
657
|
+
/**
|
|
658
|
+
* Node type is the type of Scaleway Instance wanted for the pool. Nodes with
|
|
659
|
+
* insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST).
|
|
660
|
+
* 'external' is a special node type used to provision instances from other
|
|
661
|
+
* cloud providers in a Kosmos Cluster.
|
|
662
|
+
*/
|
|
663
|
+
nodeType: string;
|
|
664
|
+
/** Placement group ID in which all the nodes of the pool will be created. */
|
|
665
|
+
placementGroupId?: string;
|
|
666
|
+
/** Defines whether the autoscaling feature is enabled for the pool. */
|
|
667
|
+
autoscaling: boolean;
|
|
668
|
+
/** Size (number of nodes) of the pool. */
|
|
669
|
+
size: number;
|
|
670
|
+
/**
|
|
671
|
+
* Defines the minimum size of the pool. Note that this field is only used
|
|
672
|
+
* when autoscaling is enabled on the pool.
|
|
673
|
+
*/
|
|
674
|
+
minSize?: number;
|
|
675
|
+
/**
|
|
676
|
+
* Defines the maximum size of the pool. Note that this field is only used
|
|
677
|
+
* when autoscaling is enabled on the pool.
|
|
678
|
+
*/
|
|
679
|
+
maxSize?: number;
|
|
680
|
+
/**
|
|
681
|
+
* Customization of the container runtime is available for each pool. Note
|
|
682
|
+
* that `docker` has been deprecated since version 1.20 and will be removed by
|
|
683
|
+
* version 1.24.
|
|
684
|
+
*/
|
|
685
|
+
containerRuntime?: Runtime;
|
|
686
|
+
/** Defines whether the autohealing feature is enabled for the pool. */
|
|
687
|
+
autohealing: boolean;
|
|
688
|
+
/** Tags associated with the pool. */
|
|
689
|
+
tags?: string[];
|
|
690
|
+
/**
|
|
691
|
+
* Kubelet arguments to be used by this pool. Note that this feature is
|
|
692
|
+
* experimental.
|
|
693
|
+
*/
|
|
694
|
+
kubeletArgs?: Record<string, string>;
|
|
695
|
+
/** Pool upgrade policy. */
|
|
696
|
+
upgradePolicy?: CreatePoolRequestUpgradePolicy;
|
|
697
|
+
/** Zone in which the pool's nodes will be spawned. */
|
|
698
|
+
zone?: Zone;
|
|
699
|
+
/**
|
|
700
|
+
* Defines the system volume disk type. Two different types of volume
|
|
701
|
+
* (`volume_type`) are provided: `l_ssd` is a local block storage which means
|
|
702
|
+
* your system is stored locally on your node's hypervisor. `b_ssd` is a
|
|
703
|
+
* remote block storage which means your system is stored on a centralized and
|
|
704
|
+
* resilient cluster.
|
|
705
|
+
*/
|
|
706
|
+
rootVolumeType?: PoolVolumeType;
|
|
707
|
+
/** System volume disk size. */
|
|
708
|
+
rootVolumeSize?: number;
|
|
709
|
+
/**
|
|
710
|
+
* Defines if the public IP should be removed from Nodes. To use this feature,
|
|
711
|
+
* your Cluster must have an attached Private Network set up with a Public
|
|
712
|
+
* Gateway.
|
|
713
|
+
*/
|
|
714
|
+
publicIpDisabled: boolean;
|
|
715
|
+
};
|
|
716
|
+
export type DeleteClusterRequest = {
|
|
717
|
+
/**
|
|
718
|
+
* Region to target. If none is passed will use default region from the
|
|
719
|
+
* config.
|
|
720
|
+
*/
|
|
721
|
+
region?: Region;
|
|
722
|
+
/** ID of the cluster to delete. */
|
|
723
|
+
clusterId: string;
|
|
724
|
+
/**
|
|
725
|
+
* Defines whether all volumes (including retain volume type), empty Private
|
|
726
|
+
* Networks and Load Balancers with a name starting with the cluster ID will
|
|
727
|
+
* also be deleted.
|
|
728
|
+
*/
|
|
729
|
+
withAdditionalResources: boolean;
|
|
730
|
+
};
|
|
731
|
+
export type DeleteNodeRequest = {
|
|
732
|
+
/**
|
|
733
|
+
* Region to target. If none is passed will use default region from the
|
|
734
|
+
* config.
|
|
735
|
+
*/
|
|
736
|
+
region?: Region;
|
|
737
|
+
/** ID of the node to replace. */
|
|
738
|
+
nodeId: string;
|
|
739
|
+
/**
|
|
740
|
+
* Skip draining node from its workload (Note: this parameter is currently
|
|
741
|
+
* inactive).
|
|
742
|
+
*/
|
|
743
|
+
skipDrain: boolean;
|
|
744
|
+
/** Add a new node after the deletion of this node. */
|
|
745
|
+
replace: boolean;
|
|
746
|
+
};
|
|
747
|
+
export type DeletePoolRequest = {
|
|
748
|
+
/**
|
|
749
|
+
* Region to target. If none is passed will use default region from the
|
|
750
|
+
* config.
|
|
751
|
+
*/
|
|
752
|
+
region?: Region;
|
|
753
|
+
/** ID of the pool to delete. */
|
|
754
|
+
poolId: string;
|
|
755
|
+
};
|
|
756
|
+
export interface ExternalNode {
|
|
757
|
+
id: string;
|
|
758
|
+
name: string;
|
|
759
|
+
clusterUrl: string;
|
|
760
|
+
poolVersion: string;
|
|
761
|
+
clusterCa: string;
|
|
762
|
+
kubeToken: string;
|
|
763
|
+
kubeletConfig: string;
|
|
764
|
+
externalIp: string;
|
|
765
|
+
containerdVersion: string;
|
|
766
|
+
runcVersion: string;
|
|
767
|
+
cniPluginsVersion: string;
|
|
768
|
+
nodeLabels: Record<string, string>;
|
|
769
|
+
nodeTaints: ExternalNodeCoreV1Taint[];
|
|
770
|
+
}
|
|
771
|
+
export type GetClusterKubeConfigRequest = {
|
|
772
|
+
/**
|
|
773
|
+
* Region to target. If none is passed will use default region from the
|
|
774
|
+
* config.
|
|
775
|
+
*/
|
|
776
|
+
region?: Region;
|
|
777
|
+
/** Cluster ID for which to download the kubeconfig. */
|
|
778
|
+
clusterId: string;
|
|
779
|
+
/** Hide the legacy token from the kubeconfig. */
|
|
780
|
+
redacted?: boolean;
|
|
781
|
+
};
|
|
782
|
+
export type GetClusterRequest = {
|
|
783
|
+
/**
|
|
784
|
+
* Region to target. If none is passed will use default region from the
|
|
785
|
+
* config.
|
|
786
|
+
*/
|
|
787
|
+
region?: Region;
|
|
788
|
+
/** ID of the requested cluster. */
|
|
789
|
+
clusterId: string;
|
|
790
|
+
};
|
|
791
|
+
export type GetNodeRequest = {
|
|
792
|
+
/**
|
|
793
|
+
* Region to target. If none is passed will use default region from the
|
|
794
|
+
* config.
|
|
795
|
+
*/
|
|
796
|
+
region?: Region;
|
|
797
|
+
/** ID of the requested node. */
|
|
798
|
+
nodeId: string;
|
|
799
|
+
};
|
|
800
|
+
export type GetPoolRequest = {
|
|
801
|
+
/**
|
|
802
|
+
* Region to target. If none is passed will use default region from the
|
|
803
|
+
* config.
|
|
804
|
+
*/
|
|
805
|
+
region?: Region;
|
|
806
|
+
/** ID of the requested pool. */
|
|
807
|
+
poolId: string;
|
|
808
|
+
};
|
|
809
|
+
export type GetVersionRequest = {
|
|
810
|
+
/**
|
|
811
|
+
* Region to target. If none is passed will use default region from the
|
|
812
|
+
* config.
|
|
813
|
+
*/
|
|
814
|
+
region?: Region;
|
|
815
|
+
/** Requested version name. */
|
|
816
|
+
versionName: string;
|
|
817
|
+
};
|
|
818
|
+
export type ListClusterAvailableTypesRequest = {
|
|
819
|
+
/**
|
|
820
|
+
* Region to target. If none is passed will use default region from the
|
|
821
|
+
* config.
|
|
822
|
+
*/
|
|
823
|
+
region?: Region;
|
|
824
|
+
/** Cluster ID for which the available Kubernetes types will be listed. */
|
|
825
|
+
clusterId: string;
|
|
826
|
+
};
|
|
827
|
+
export interface ListClusterAvailableTypesResponse {
|
|
828
|
+
/** Available cluster types for the cluster. */
|
|
829
|
+
clusterTypes: ClusterType[];
|
|
830
|
+
/** Total number of types. */
|
|
831
|
+
totalCount: number;
|
|
832
|
+
}
|
|
833
|
+
export type ListClusterAvailableVersionsRequest = {
|
|
834
|
+
/**
|
|
835
|
+
* Region to target. If none is passed will use default region from the
|
|
836
|
+
* config.
|
|
837
|
+
*/
|
|
838
|
+
region?: Region;
|
|
839
|
+
/** Cluster ID for which the available Kubernetes versions will be listed. */
|
|
840
|
+
clusterId: string;
|
|
841
|
+
};
|
|
842
|
+
export interface ListClusterAvailableVersionsResponse {
|
|
843
|
+
/** Available Kubernetes versions for the cluster. */
|
|
844
|
+
versions: Version[];
|
|
845
|
+
}
|
|
846
|
+
export type ListClusterTypesRequest = {
|
|
847
|
+
/**
|
|
848
|
+
* Region to target. If none is passed will use default region from the
|
|
849
|
+
* config.
|
|
850
|
+
*/
|
|
851
|
+
region?: Region;
|
|
852
|
+
/** Page number, from the paginated results, to return for cluster-types. */
|
|
853
|
+
page?: number;
|
|
854
|
+
/** Maximum number of clusters per page. */
|
|
855
|
+
pageSize?: number;
|
|
856
|
+
};
|
|
857
|
+
export interface ListClusterTypesResponse {
|
|
858
|
+
/** Total number of cluster-types. */
|
|
859
|
+
totalCount: number;
|
|
860
|
+
/** Paginated returned cluster-types. */
|
|
861
|
+
clusterTypes: ClusterType[];
|
|
862
|
+
}
|
|
863
|
+
export type ListClustersRequest = {
|
|
864
|
+
/**
|
|
865
|
+
* Region to target. If none is passed will use default region from the
|
|
866
|
+
* config.
|
|
867
|
+
*/
|
|
868
|
+
region?: Region;
|
|
869
|
+
/** Organization ID on which to filter the returned clusters. */
|
|
870
|
+
organizationId?: string;
|
|
871
|
+
/** Project ID on which to filter the returned clusters. */
|
|
872
|
+
projectId?: string;
|
|
873
|
+
/** Sort order of returned clusters. */
|
|
874
|
+
orderBy?: ListClustersRequestOrderBy;
|
|
875
|
+
/** Page number to return for clusters, from the paginated results. */
|
|
876
|
+
page?: number;
|
|
877
|
+
/** Maximum number of clusters per page. */
|
|
878
|
+
pageSize?: number;
|
|
879
|
+
/**
|
|
880
|
+
* Name to filter on, only clusters containing this substring in their name
|
|
881
|
+
* will be returned.
|
|
882
|
+
*/
|
|
883
|
+
name?: string;
|
|
884
|
+
/** Status to filter on, only clusters with this status will be returned. */
|
|
885
|
+
status?: ClusterStatus;
|
|
886
|
+
/** Type to filter on, only clusters with this type will be returned. */
|
|
887
|
+
type?: string;
|
|
888
|
+
/**
|
|
889
|
+
* Private Network ID to filter on, only clusters within this Private Network
|
|
890
|
+
* will be returned.
|
|
891
|
+
*/
|
|
892
|
+
privateNetworkId?: string;
|
|
893
|
+
};
|
|
894
|
+
export interface ListClustersResponse {
|
|
895
|
+
/** Total number of clusters. */
|
|
896
|
+
totalCount: number;
|
|
897
|
+
/** Paginated returned clusters. */
|
|
898
|
+
clusters: Cluster[];
|
|
899
|
+
}
|
|
900
|
+
export type ListNodesRequest = {
|
|
901
|
+
/**
|
|
902
|
+
* Region to target. If none is passed will use default region from the
|
|
903
|
+
* config.
|
|
904
|
+
*/
|
|
905
|
+
region?: Region;
|
|
906
|
+
/** Cluster ID from which the nodes will be listed from. */
|
|
907
|
+
clusterId: string;
|
|
908
|
+
/** Pool ID on which to filter the returned nodes. */
|
|
909
|
+
poolId?: string;
|
|
910
|
+
/** Sort order of the returned nodes. */
|
|
911
|
+
orderBy?: ListNodesRequestOrderBy;
|
|
912
|
+
/** Page number for the returned nodes. */
|
|
913
|
+
page?: number;
|
|
914
|
+
/** Maximum number of nodes per page. */
|
|
915
|
+
pageSize?: number;
|
|
916
|
+
/**
|
|
917
|
+
* Name to filter on, only nodes containing this substring in their name will
|
|
918
|
+
* be returned.
|
|
919
|
+
*/
|
|
920
|
+
name?: string;
|
|
921
|
+
/** Status to filter on, only nodes with this status will be returned. */
|
|
922
|
+
status?: NodeStatus;
|
|
923
|
+
};
|
|
924
|
+
export interface ListNodesResponse {
|
|
925
|
+
/** Total number of nodes. */
|
|
926
|
+
totalCount: number;
|
|
927
|
+
/** Paginated returned nodes. */
|
|
928
|
+
nodes: Node[];
|
|
929
|
+
}
|
|
930
|
+
export type ListPoolsRequest = {
|
|
931
|
+
/**
|
|
932
|
+
* Region to target. If none is passed will use default region from the
|
|
933
|
+
* config.
|
|
934
|
+
*/
|
|
935
|
+
region?: Region;
|
|
936
|
+
/** ID of the cluster whose pools will be listed. */
|
|
937
|
+
clusterId: string;
|
|
938
|
+
/** Sort order of returned pools. */
|
|
939
|
+
orderBy?: ListPoolsRequestOrderBy;
|
|
940
|
+
/** Page number for the returned pools. */
|
|
941
|
+
page?: number;
|
|
942
|
+
/** Maximum number of pools per page. */
|
|
943
|
+
pageSize?: number;
|
|
944
|
+
/**
|
|
945
|
+
* Name to filter on, only pools containing this substring in their name will
|
|
946
|
+
* be returned.
|
|
947
|
+
*/
|
|
948
|
+
name?: string;
|
|
949
|
+
/** Status to filter on, only pools with this status will be returned. */
|
|
950
|
+
status?: PoolStatus;
|
|
951
|
+
};
|
|
952
|
+
export interface ListPoolsResponse {
|
|
953
|
+
/** Total number of pools that exists for the cluster. */
|
|
954
|
+
totalCount: number;
|
|
955
|
+
/** Paginated returned pools. */
|
|
956
|
+
pools: Pool[];
|
|
957
|
+
}
|
|
958
|
+
export type ListVersionsRequest = {
|
|
959
|
+
/**
|
|
960
|
+
* Region to target. If none is passed will use default region from the
|
|
961
|
+
* config.
|
|
962
|
+
*/
|
|
963
|
+
region?: Region;
|
|
964
|
+
};
|
|
965
|
+
export interface ListVersionsResponse {
|
|
966
|
+
/** Available Kubernetes versions. */
|
|
967
|
+
versions: Version[];
|
|
968
|
+
}
|
|
969
|
+
export type MigrateClusterToRoutedIPsRequest = {
|
|
970
|
+
/**
|
|
971
|
+
* Region to target. If none is passed will use default region from the
|
|
972
|
+
* config.
|
|
973
|
+
*/
|
|
974
|
+
region?: Region;
|
|
975
|
+
clusterId: string;
|
|
976
|
+
};
|
|
977
|
+
export type MigrateToPrivateNetworkClusterRequest = {
|
|
978
|
+
/**
|
|
979
|
+
* Region to target. If none is passed will use default region from the
|
|
980
|
+
* config.
|
|
981
|
+
*/
|
|
982
|
+
region?: Region;
|
|
983
|
+
/** ID of the cluster to migrate. */
|
|
984
|
+
clusterId: string;
|
|
985
|
+
/** ID of the Private Network to link to the cluster. */
|
|
986
|
+
privateNetworkId: string;
|
|
987
|
+
};
|
|
988
|
+
export type RebootNodeRequest = {
|
|
989
|
+
/**
|
|
990
|
+
* Region to target. If none is passed will use default region from the
|
|
991
|
+
* config.
|
|
992
|
+
*/
|
|
993
|
+
region?: Region;
|
|
994
|
+
/** ID of the node to reboot. */
|
|
995
|
+
nodeId: string;
|
|
996
|
+
};
|
|
997
|
+
export type ReplaceNodeRequest = {
|
|
998
|
+
/**
|
|
999
|
+
* Region to target. If none is passed will use default region from the
|
|
1000
|
+
* config.
|
|
1001
|
+
*/
|
|
1002
|
+
region?: Region;
|
|
1003
|
+
/** ID of the node to replace. */
|
|
1004
|
+
nodeId: string;
|
|
1005
|
+
};
|
|
1006
|
+
export type ResetClusterAdminTokenRequest = {
|
|
1007
|
+
/**
|
|
1008
|
+
* Region to target. If none is passed will use default region from the
|
|
1009
|
+
* config.
|
|
1010
|
+
*/
|
|
1011
|
+
region?: Region;
|
|
1012
|
+
/** Cluster ID on which the admin token will be renewed. */
|
|
1013
|
+
clusterId: string;
|
|
1014
|
+
};
|
|
1015
|
+
export type SetClusterTypeRequest = {
|
|
1016
|
+
/**
|
|
1017
|
+
* Region to target. If none is passed will use default region from the
|
|
1018
|
+
* config.
|
|
1019
|
+
*/
|
|
1020
|
+
region?: Region;
|
|
1021
|
+
/** ID of the cluster to migrate from one type to another. */
|
|
1022
|
+
clusterId: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Type of the cluster. Note that some migrations are not possible (please
|
|
1025
|
+
* refer to product documentation).
|
|
1026
|
+
*/
|
|
1027
|
+
type: string;
|
|
1028
|
+
};
|
|
1029
|
+
export type UpdateClusterRequest = {
|
|
1030
|
+
/**
|
|
1031
|
+
* Region to target. If none is passed will use default region from the
|
|
1032
|
+
* config.
|
|
1033
|
+
*/
|
|
1034
|
+
region?: Region;
|
|
1035
|
+
/** ID of the cluster to update. */
|
|
1036
|
+
clusterId: string;
|
|
1037
|
+
/** New external name for the cluster. */
|
|
1038
|
+
name?: string;
|
|
1039
|
+
/** New description for the cluster. */
|
|
1040
|
+
description?: string;
|
|
1041
|
+
/** New tags associated with the cluster. */
|
|
1042
|
+
tags?: string[];
|
|
1043
|
+
/** New autoscaler config for the cluster. */
|
|
1044
|
+
autoscalerConfig?: UpdateClusterRequestAutoscalerConfig;
|
|
1045
|
+
/**
|
|
1046
|
+
* New auto upgrade configuration for the cluster. Note that all fields need
|
|
1047
|
+
* to be set.
|
|
1048
|
+
*/
|
|
1049
|
+
autoUpgrade?: UpdateClusterRequestAutoUpgrade;
|
|
1050
|
+
/** List of feature gates to enable. */
|
|
1051
|
+
featureGates?: string[];
|
|
1052
|
+
/** List of admission plugins to enable. */
|
|
1053
|
+
admissionPlugins?: string[];
|
|
1054
|
+
/**
|
|
1055
|
+
* OpenID Connect configuration of the cluster. This configuration enables to
|
|
1056
|
+
* update the OpenID Connect configuration of the Kubernetes API server.
|
|
1057
|
+
*/
|
|
1058
|
+
openIdConnectConfig?: UpdateClusterRequestOpenIDConnectConfig;
|
|
1059
|
+
/**
|
|
1060
|
+
* Additional Subject Alternative Names for the Kubernetes API server
|
|
1061
|
+
* certificate.
|
|
1062
|
+
*/
|
|
1063
|
+
apiserverCertSans?: string[];
|
|
1064
|
+
};
|
|
1065
|
+
export type UpdatePoolRequest = {
|
|
1066
|
+
/**
|
|
1067
|
+
* Region to target. If none is passed will use default region from the
|
|
1068
|
+
* config.
|
|
1069
|
+
*/
|
|
1070
|
+
region?: Region;
|
|
1071
|
+
/** ID of the pool to update. */
|
|
1072
|
+
poolId: string;
|
|
1073
|
+
/** New value for the pool autoscaling enablement. */
|
|
1074
|
+
autoscaling?: boolean;
|
|
1075
|
+
/** New desired pool size. */
|
|
1076
|
+
size?: number;
|
|
1077
|
+
/** New minimum size for the pool. */
|
|
1078
|
+
minSize?: number;
|
|
1079
|
+
/** New maximum size for the pool. */
|
|
1080
|
+
maxSize?: number;
|
|
1081
|
+
/** New value for the pool autohealing enablement. */
|
|
1082
|
+
autohealing?: boolean;
|
|
1083
|
+
/** New tags associated with the pool. */
|
|
1084
|
+
tags?: string[];
|
|
1085
|
+
/**
|
|
1086
|
+
* New Kubelet arguments to be used by this pool. Note that this feature is
|
|
1087
|
+
* experimental.
|
|
1088
|
+
*/
|
|
1089
|
+
kubeletArgs?: Record<string, string>;
|
|
1090
|
+
/** New upgrade policy for the pool. */
|
|
1091
|
+
upgradePolicy?: UpdatePoolRequestUpgradePolicy;
|
|
1092
|
+
};
|
|
1093
|
+
export type UpgradeClusterRequest = {
|
|
1094
|
+
/**
|
|
1095
|
+
* Region to target. If none is passed will use default region from the
|
|
1096
|
+
* config.
|
|
1097
|
+
*/
|
|
1098
|
+
region?: Region;
|
|
1099
|
+
/** ID of the cluster to upgrade. */
|
|
1100
|
+
clusterId: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* New Kubernetes version of the cluster. Note that the version should either
|
|
1103
|
+
* be a higher patch version of the same minor version or the direct minor
|
|
1104
|
+
* version after the current one.
|
|
1105
|
+
*/
|
|
1106
|
+
version: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* Defines whether pools will also be upgraded once the control plane is
|
|
1109
|
+
* upgraded.
|
|
1110
|
+
*/
|
|
1111
|
+
upgradePools: boolean;
|
|
1112
|
+
};
|
|
1113
|
+
export type UpgradePoolRequest = {
|
|
1114
|
+
/**
|
|
1115
|
+
* Region to target. If none is passed will use default region from the
|
|
1116
|
+
* config.
|
|
1117
|
+
*/
|
|
1118
|
+
region?: Region;
|
|
1119
|
+
/** ID of the pool to upgrade. */
|
|
1120
|
+
poolId: string;
|
|
1121
|
+
/** New Kubernetes version for the pool. */
|
|
1122
|
+
version: string;
|
|
1123
|
+
};
|