@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
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const SERVER_TRANSIENT_STATUSES = [
|
|
2
|
+
"starting",
|
|
3
|
+
"rebooting",
|
|
4
|
+
"updating",
|
|
5
|
+
"locking",
|
|
6
|
+
"unlocking",
|
|
7
|
+
"reinstalling"
|
|
8
|
+
];
|
|
9
|
+
export {
|
|
10
|
+
SERVER_TRANSIENT_STATUSES
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const api_gen = require("./api.gen.cjs");
|
|
4
|
+
const content_gen = require("./content.gen.cjs");
|
|
5
|
+
exports.API = api_gen.API;
|
|
6
|
+
exports.SERVER_TRANSIENT_STATUSES = content_gen.SERVER_TRANSIENT_STATUSES;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { API } from './api.gen';
|
|
2
|
+
export * from './content.gen';
|
|
3
|
+
export type { CreateServerRequest, DeleteServerRequest, GetOSRequest, GetServerRequest, GetServerTypeRequest, ListOSRequest, ListOSResponse, ListServerTypesRequest, ListServerTypesResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, OS, RebootServerRequest, ReinstallServerRequest, Server, ServerStatus, ServerType, ServerTypeCPU, ServerTypeDisk, ServerTypeMemory, ServerTypeStock, UpdateServerRequest, } from './types.gen';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { API } from "./api.gen.js";
|
|
2
|
+
import { SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
+
export {
|
|
4
|
+
API,
|
|
5
|
+
SERVER_TRANSIENT_STATUSES
|
|
6
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const randomName = require("@scaleway/random-name");
|
|
4
|
+
const json = require("../../../helpers/json.cjs");
|
|
5
|
+
const marshalling = require("../../../helpers/marshalling.cjs");
|
|
6
|
+
const unmarshalOS = (data) => {
|
|
7
|
+
if (!json.isJSONObject(data)) {
|
|
8
|
+
throw new TypeError(
|
|
9
|
+
`Unmarshalling the type 'OS' failed as data isn't a dictionary.`
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
compatibleServerTypes: data.compatible_server_types,
|
|
14
|
+
family: data.family,
|
|
15
|
+
id: data.id,
|
|
16
|
+
imageUrl: data.image_url,
|
|
17
|
+
isBeta: data.is_beta,
|
|
18
|
+
label: data.label,
|
|
19
|
+
name: data.name,
|
|
20
|
+
version: data.version,
|
|
21
|
+
xcodeVersion: data.xcode_version
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const unmarshalServerTypeCPU = (data) => {
|
|
25
|
+
if (!json.isJSONObject(data)) {
|
|
26
|
+
throw new TypeError(
|
|
27
|
+
`Unmarshalling the type 'ServerTypeCPU' failed as data isn't a dictionary.`
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
coreCount: data.core_count,
|
|
32
|
+
name: data.name
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
const unmarshalServerTypeDisk = (data) => {
|
|
36
|
+
if (!json.isJSONObject(data)) {
|
|
37
|
+
throw new TypeError(
|
|
38
|
+
`Unmarshalling the type 'ServerTypeDisk' failed as data isn't a dictionary.`
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
capacity: data.capacity,
|
|
43
|
+
type: data.type
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
const unmarshalServerTypeMemory = (data) => {
|
|
47
|
+
if (!json.isJSONObject(data)) {
|
|
48
|
+
throw new TypeError(
|
|
49
|
+
`Unmarshalling the type 'ServerTypeMemory' failed as data isn't a dictionary.`
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
capacity: data.capacity,
|
|
54
|
+
type: data.type
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
const unmarshalServerType = (data) => {
|
|
58
|
+
if (!json.isJSONObject(data)) {
|
|
59
|
+
throw new TypeError(
|
|
60
|
+
`Unmarshalling the type 'ServerType' failed as data isn't a dictionary.`
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
cpu: data.cpu ? unmarshalServerTypeCPU(data.cpu) : void 0,
|
|
65
|
+
defaultOs: data.default_os ? unmarshalOS(data.default_os) : void 0,
|
|
66
|
+
disk: data.disk ? unmarshalServerTypeDisk(data.disk) : void 0,
|
|
67
|
+
memory: data.memory ? unmarshalServerTypeMemory(data.memory) : void 0,
|
|
68
|
+
minimumLeaseDuration: data.minimum_lease_duration,
|
|
69
|
+
name: data.name,
|
|
70
|
+
stock: data.stock
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
const unmarshalServer = (data) => {
|
|
74
|
+
if (!json.isJSONObject(data)) {
|
|
75
|
+
throw new TypeError(
|
|
76
|
+
`Unmarshalling the type 'Server' failed as data isn't a dictionary.`
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
81
|
+
deletableAt: marshalling.unmarshalDate(data.deletable_at),
|
|
82
|
+
id: data.id,
|
|
83
|
+
ip: data.ip,
|
|
84
|
+
name: data.name,
|
|
85
|
+
organizationId: data.organization_id,
|
|
86
|
+
os: data.os ? unmarshalOS(data.os) : void 0,
|
|
87
|
+
projectId: data.project_id,
|
|
88
|
+
status: data.status,
|
|
89
|
+
type: data.type,
|
|
90
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at),
|
|
91
|
+
vncUrl: data.vnc_url,
|
|
92
|
+
zone: data.zone
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
const unmarshalListOSResponse = (data) => {
|
|
96
|
+
if (!json.isJSONObject(data)) {
|
|
97
|
+
throw new TypeError(
|
|
98
|
+
`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
os: marshalling.unmarshalArrayOfObject(data.os, unmarshalOS),
|
|
103
|
+
totalCount: data.total_count
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
const unmarshalListServerTypesResponse = (data) => {
|
|
107
|
+
if (!json.isJSONObject(data)) {
|
|
108
|
+
throw new TypeError(
|
|
109
|
+
`Unmarshalling the type 'ListServerTypesResponse' failed as data isn't a dictionary.`
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
serverTypes: marshalling.unmarshalArrayOfObject(data.server_types, unmarshalServerType)
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
const unmarshalListServersResponse = (data) => {
|
|
117
|
+
if (!json.isJSONObject(data)) {
|
|
118
|
+
throw new TypeError(
|
|
119
|
+
`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
servers: marshalling.unmarshalArrayOfObject(data.servers, unmarshalServer),
|
|
124
|
+
totalCount: data.total_count
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
const marshalCreateServerRequest = (request, defaults) => ({
|
|
128
|
+
name: request.name || randomName("as"),
|
|
129
|
+
os_id: request.osId,
|
|
130
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
131
|
+
type: request.type
|
|
132
|
+
});
|
|
133
|
+
const marshalReinstallServerRequest = (request, defaults) => ({
|
|
134
|
+
os_id: request.osId
|
|
135
|
+
});
|
|
136
|
+
const marshalUpdateServerRequest = (request, defaults) => ({
|
|
137
|
+
name: request.name
|
|
138
|
+
});
|
|
139
|
+
exports.marshalCreateServerRequest = marshalCreateServerRequest;
|
|
140
|
+
exports.marshalReinstallServerRequest = marshalReinstallServerRequest;
|
|
141
|
+
exports.marshalUpdateServerRequest = marshalUpdateServerRequest;
|
|
142
|
+
exports.unmarshalListOSResponse = unmarshalListOSResponse;
|
|
143
|
+
exports.unmarshalListServerTypesResponse = unmarshalListServerTypesResponse;
|
|
144
|
+
exports.unmarshalListServersResponse = unmarshalListServersResponse;
|
|
145
|
+
exports.unmarshalOS = unmarshalOS;
|
|
146
|
+
exports.unmarshalServer = unmarshalServer;
|
|
147
|
+
exports.unmarshalServerType = unmarshalServerType;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DefaultValues } from '../../../bridge';
|
|
2
|
+
import type { CreateServerRequest, ListOSResponse, ListServerTypesResponse, ListServersResponse, OS, ReinstallServerRequest, Server, ServerType, UpdateServerRequest } from './types.gen';
|
|
3
|
+
export declare const unmarshalOS: (data: unknown) => OS;
|
|
4
|
+
export declare const unmarshalServerType: (data: unknown) => ServerType;
|
|
5
|
+
export declare const unmarshalServer: (data: unknown) => Server;
|
|
6
|
+
export declare const unmarshalListOSResponse: (data: unknown) => ListOSResponse;
|
|
7
|
+
export declare const unmarshalListServerTypesResponse: (data: unknown) => ListServerTypesResponse;
|
|
8
|
+
export declare const unmarshalListServersResponse: (data: unknown) => ListServersResponse;
|
|
9
|
+
export declare const marshalCreateServerRequest: (request: CreateServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
10
|
+
export declare const marshalReinstallServerRequest: (request: ReinstallServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
11
|
+
export declare const marshalUpdateServerRequest: (request: UpdateServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import randomName from
|
|
2
|
-
import { isJSONObject } from
|
|
3
|
-
import { unmarshalDate, unmarshalArrayOfObject } from
|
|
4
|
-
|
|
5
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
|
-
const unmarshalOS = data => {
|
|
1
|
+
import randomName from "@scaleway/random-name";
|
|
2
|
+
import { isJSONObject } from "../../../helpers/json.js";
|
|
3
|
+
import { unmarshalDate, unmarshalArrayOfObject } from "../../../helpers/marshalling.js";
|
|
4
|
+
const unmarshalOS = (data) => {
|
|
8
5
|
if (!isJSONObject(data)) {
|
|
9
|
-
throw new TypeError(
|
|
6
|
+
throw new TypeError(
|
|
7
|
+
`Unmarshalling the type 'OS' failed as data isn't a dictionary.`
|
|
8
|
+
);
|
|
10
9
|
}
|
|
11
10
|
return {
|
|
12
11
|
compatibleServerTypes: data.compatible_server_types,
|
|
@@ -20,50 +19,60 @@ const unmarshalOS = data => {
|
|
|
20
19
|
xcodeVersion: data.xcode_version
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
|
-
const unmarshalServerTypeCPU = data => {
|
|
22
|
+
const unmarshalServerTypeCPU = (data) => {
|
|
24
23
|
if (!isJSONObject(data)) {
|
|
25
|
-
throw new TypeError(
|
|
24
|
+
throw new TypeError(
|
|
25
|
+
`Unmarshalling the type 'ServerTypeCPU' failed as data isn't a dictionary.`
|
|
26
|
+
);
|
|
26
27
|
}
|
|
27
28
|
return {
|
|
28
29
|
coreCount: data.core_count,
|
|
29
30
|
name: data.name
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
|
-
const unmarshalServerTypeDisk = data => {
|
|
33
|
+
const unmarshalServerTypeDisk = (data) => {
|
|
33
34
|
if (!isJSONObject(data)) {
|
|
34
|
-
throw new TypeError(
|
|
35
|
+
throw new TypeError(
|
|
36
|
+
`Unmarshalling the type 'ServerTypeDisk' failed as data isn't a dictionary.`
|
|
37
|
+
);
|
|
35
38
|
}
|
|
36
39
|
return {
|
|
37
40
|
capacity: data.capacity,
|
|
38
41
|
type: data.type
|
|
39
42
|
};
|
|
40
43
|
};
|
|
41
|
-
const unmarshalServerTypeMemory = data => {
|
|
44
|
+
const unmarshalServerTypeMemory = (data) => {
|
|
42
45
|
if (!isJSONObject(data)) {
|
|
43
|
-
throw new TypeError(
|
|
46
|
+
throw new TypeError(
|
|
47
|
+
`Unmarshalling the type 'ServerTypeMemory' failed as data isn't a dictionary.`
|
|
48
|
+
);
|
|
44
49
|
}
|
|
45
50
|
return {
|
|
46
51
|
capacity: data.capacity,
|
|
47
52
|
type: data.type
|
|
48
53
|
};
|
|
49
54
|
};
|
|
50
|
-
const unmarshalServerType = data => {
|
|
55
|
+
const unmarshalServerType = (data) => {
|
|
51
56
|
if (!isJSONObject(data)) {
|
|
52
|
-
throw new TypeError(
|
|
57
|
+
throw new TypeError(
|
|
58
|
+
`Unmarshalling the type 'ServerType' failed as data isn't a dictionary.`
|
|
59
|
+
);
|
|
53
60
|
}
|
|
54
61
|
return {
|
|
55
|
-
cpu: data.cpu ? unmarshalServerTypeCPU(data.cpu) :
|
|
56
|
-
defaultOs: data.default_os ? unmarshalOS(data.default_os) :
|
|
57
|
-
disk: data.disk ? unmarshalServerTypeDisk(data.disk) :
|
|
58
|
-
memory: data.memory ? unmarshalServerTypeMemory(data.memory) :
|
|
62
|
+
cpu: data.cpu ? unmarshalServerTypeCPU(data.cpu) : void 0,
|
|
63
|
+
defaultOs: data.default_os ? unmarshalOS(data.default_os) : void 0,
|
|
64
|
+
disk: data.disk ? unmarshalServerTypeDisk(data.disk) : void 0,
|
|
65
|
+
memory: data.memory ? unmarshalServerTypeMemory(data.memory) : void 0,
|
|
59
66
|
minimumLeaseDuration: data.minimum_lease_duration,
|
|
60
67
|
name: data.name,
|
|
61
68
|
stock: data.stock
|
|
62
69
|
};
|
|
63
70
|
};
|
|
64
|
-
const unmarshalServer = data => {
|
|
71
|
+
const unmarshalServer = (data) => {
|
|
65
72
|
if (!isJSONObject(data)) {
|
|
66
|
-
throw new TypeError(
|
|
73
|
+
throw new TypeError(
|
|
74
|
+
`Unmarshalling the type 'Server' failed as data isn't a dictionary.`
|
|
75
|
+
);
|
|
67
76
|
}
|
|
68
77
|
return {
|
|
69
78
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -72,7 +81,7 @@ const unmarshalServer = data => {
|
|
|
72
81
|
ip: data.ip,
|
|
73
82
|
name: data.name,
|
|
74
83
|
organizationId: data.organization_id,
|
|
75
|
-
os: data.os ? unmarshalOS(data.os) :
|
|
84
|
+
os: data.os ? unmarshalOS(data.os) : void 0,
|
|
76
85
|
projectId: data.project_id,
|
|
77
86
|
status: data.status,
|
|
78
87
|
type: data.type,
|
|
@@ -81,26 +90,32 @@ const unmarshalServer = data => {
|
|
|
81
90
|
zone: data.zone
|
|
82
91
|
};
|
|
83
92
|
};
|
|
84
|
-
const unmarshalListOSResponse = data => {
|
|
93
|
+
const unmarshalListOSResponse = (data) => {
|
|
85
94
|
if (!isJSONObject(data)) {
|
|
86
|
-
throw new TypeError(
|
|
95
|
+
throw new TypeError(
|
|
96
|
+
`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`
|
|
97
|
+
);
|
|
87
98
|
}
|
|
88
99
|
return {
|
|
89
100
|
os: unmarshalArrayOfObject(data.os, unmarshalOS),
|
|
90
101
|
totalCount: data.total_count
|
|
91
102
|
};
|
|
92
103
|
};
|
|
93
|
-
const unmarshalListServerTypesResponse = data => {
|
|
104
|
+
const unmarshalListServerTypesResponse = (data) => {
|
|
94
105
|
if (!isJSONObject(data)) {
|
|
95
|
-
throw new TypeError(
|
|
106
|
+
throw new TypeError(
|
|
107
|
+
`Unmarshalling the type 'ListServerTypesResponse' failed as data isn't a dictionary.`
|
|
108
|
+
);
|
|
96
109
|
}
|
|
97
110
|
return {
|
|
98
111
|
serverTypes: unmarshalArrayOfObject(data.server_types, unmarshalServerType)
|
|
99
112
|
};
|
|
100
113
|
};
|
|
101
|
-
const unmarshalListServersResponse = data => {
|
|
114
|
+
const unmarshalListServersResponse = (data) => {
|
|
102
115
|
if (!isJSONObject(data)) {
|
|
103
|
-
throw new TypeError(
|
|
116
|
+
throw new TypeError(
|
|
117
|
+
`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`
|
|
118
|
+
);
|
|
104
119
|
}
|
|
105
120
|
return {
|
|
106
121
|
servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
|
|
@@ -108,7 +123,7 @@ const unmarshalListServersResponse = data => {
|
|
|
108
123
|
};
|
|
109
124
|
};
|
|
110
125
|
const marshalCreateServerRequest = (request, defaults) => ({
|
|
111
|
-
name: request.name || randomName(
|
|
126
|
+
name: request.name || randomName("as"),
|
|
112
127
|
os_id: request.osId,
|
|
113
128
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
114
129
|
type: request.type
|
|
@@ -119,5 +134,14 @@ const marshalReinstallServerRequest = (request, defaults) => ({
|
|
|
119
134
|
const marshalUpdateServerRequest = (request, defaults) => ({
|
|
120
135
|
name: request.name
|
|
121
136
|
});
|
|
122
|
-
|
|
123
|
-
|
|
137
|
+
export {
|
|
138
|
+
marshalCreateServerRequest,
|
|
139
|
+
marshalReinstallServerRequest,
|
|
140
|
+
marshalUpdateServerRequest,
|
|
141
|
+
unmarshalListOSResponse,
|
|
142
|
+
unmarshalListServerTypesResponse,
|
|
143
|
+
unmarshalListServersResponse,
|
|
144
|
+
unmarshalOS,
|
|
145
|
+
unmarshalServer,
|
|
146
|
+
unmarshalServerType
|
|
147
|
+
};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import type { Zone } from '../../../bridge';
|
|
2
|
+
export type ListServersRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
3
|
+
export type ServerStatus = 'unknown_status' | 'starting' | 'ready' | 'error' | 'rebooting' | 'updating' | 'locking' | 'locked' | 'unlocking' | 'reinstalling';
|
|
4
|
+
export type ServerTypeStock = 'unknown_stock' | 'no_stock' | 'low_stock' | 'high_stock';
|
|
5
|
+
export interface OS {
|
|
6
|
+
/** Unique ID of the OS. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** OS name. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** OS name as it should be displayed. */
|
|
11
|
+
label: string;
|
|
12
|
+
/** URL of the image. */
|
|
13
|
+
imageUrl: string;
|
|
14
|
+
/** The OS family to which this OS belongs, eg. 13 or 14. */
|
|
15
|
+
family: string;
|
|
16
|
+
/** Describes if the OS is in beta. */
|
|
17
|
+
isBeta: boolean;
|
|
18
|
+
/** The OS version number, eg. Sonoma has version number 14.3. */
|
|
19
|
+
version: string;
|
|
20
|
+
/** The current xcode version for this OS. */
|
|
21
|
+
xcodeVersion: string;
|
|
22
|
+
/** List of compatible server types. */
|
|
23
|
+
compatibleServerTypes: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface ServerTypeCPU {
|
|
26
|
+
name: string;
|
|
27
|
+
coreCount: number;
|
|
28
|
+
}
|
|
29
|
+
export interface ServerTypeDisk {
|
|
30
|
+
capacity: number;
|
|
31
|
+
type: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ServerTypeMemory {
|
|
34
|
+
capacity: number;
|
|
35
|
+
type: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ServerType {
|
|
38
|
+
/** CPU description. */
|
|
39
|
+
cpu?: ServerTypeCPU;
|
|
40
|
+
/** Size of the local disk of the server. */
|
|
41
|
+
disk?: ServerTypeDisk;
|
|
42
|
+
/** Name of the type. */
|
|
43
|
+
name: string;
|
|
44
|
+
/** Size of memory available. */
|
|
45
|
+
memory?: ServerTypeMemory;
|
|
46
|
+
/** Current stock. */
|
|
47
|
+
stock: ServerTypeStock;
|
|
48
|
+
/** Minimum duration of the lease in seconds (example. 3.4s). */
|
|
49
|
+
minimumLeaseDuration?: string;
|
|
50
|
+
/** The default OS for this server type. */
|
|
51
|
+
defaultOs?: OS;
|
|
52
|
+
}
|
|
53
|
+
export interface Server {
|
|
54
|
+
/** UUID of the server. */
|
|
55
|
+
id: string;
|
|
56
|
+
/** Type of the server. */
|
|
57
|
+
type: string;
|
|
58
|
+
/** Name of the server. */
|
|
59
|
+
name: string;
|
|
60
|
+
/** Project this server is associated with. */
|
|
61
|
+
projectId: string;
|
|
62
|
+
/** Organization this server is associated with. */
|
|
63
|
+
organizationId: string;
|
|
64
|
+
/** IPv4 address of the server. */
|
|
65
|
+
ip: string;
|
|
66
|
+
/** URL of the VNC. */
|
|
67
|
+
vncUrl: string;
|
|
68
|
+
/**
|
|
69
|
+
* Initially installed OS, this does not necessarily reflect the current OS
|
|
70
|
+
* version.
|
|
71
|
+
*/
|
|
72
|
+
os?: OS;
|
|
73
|
+
/** Current status of the server. */
|
|
74
|
+
status: ServerStatus;
|
|
75
|
+
/** Date on which the server was created. */
|
|
76
|
+
createdAt?: Date;
|
|
77
|
+
/** Date on which the server was last updated. */
|
|
78
|
+
updatedAt?: Date;
|
|
79
|
+
/** Date on which the server was last deleted. */
|
|
80
|
+
deletableAt?: Date;
|
|
81
|
+
/** Zone of the server. */
|
|
82
|
+
zone: Zone;
|
|
83
|
+
}
|
|
84
|
+
export type CreateServerRequest = {
|
|
85
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
86
|
+
zone?: Zone;
|
|
87
|
+
/** Create a server with this given name. */
|
|
88
|
+
name?: string;
|
|
89
|
+
/** Create a server in the given project ID. */
|
|
90
|
+
projectId?: string;
|
|
91
|
+
/** Create a server of the given type. */
|
|
92
|
+
type: string;
|
|
93
|
+
/**
|
|
94
|
+
* Create a server & install the given os_id, when no os_id provided the
|
|
95
|
+
* default OS for this server type is chosen. Requesting a non-default OS will
|
|
96
|
+
* induce an extended delivery time.
|
|
97
|
+
*/
|
|
98
|
+
osId?: string;
|
|
99
|
+
};
|
|
100
|
+
export type DeleteServerRequest = {
|
|
101
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
102
|
+
zone?: Zone;
|
|
103
|
+
/** UUID of the server you want to delete. */
|
|
104
|
+
serverId: string;
|
|
105
|
+
};
|
|
106
|
+
export type GetOSRequest = {
|
|
107
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
108
|
+
zone?: Zone;
|
|
109
|
+
/** UUID of the OS you want to get. */
|
|
110
|
+
osId: string;
|
|
111
|
+
};
|
|
112
|
+
export type GetServerRequest = {
|
|
113
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
114
|
+
zone?: Zone;
|
|
115
|
+
/** UUID of the server you want to get. */
|
|
116
|
+
serverId: string;
|
|
117
|
+
};
|
|
118
|
+
export type GetServerTypeRequest = {
|
|
119
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
120
|
+
zone?: Zone;
|
|
121
|
+
/** Server type identifier. */
|
|
122
|
+
serverType: string;
|
|
123
|
+
};
|
|
124
|
+
export type ListOSRequest = {
|
|
125
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
126
|
+
zone?: Zone;
|
|
127
|
+
/** Positive integer to choose the page to return. */
|
|
128
|
+
page?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Positive integer lower or equal to 100 to select the number of items to
|
|
131
|
+
* return.
|
|
132
|
+
*/
|
|
133
|
+
pageSize?: number;
|
|
134
|
+
/** List of compatible server types. */
|
|
135
|
+
serverType?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Filter OS by name (note that "11.1" will return "11.1.2" and "11.1" but not
|
|
138
|
+
* "12")).
|
|
139
|
+
*/
|
|
140
|
+
name?: string;
|
|
141
|
+
};
|
|
142
|
+
export interface ListOSResponse {
|
|
143
|
+
/** Total number of OS. */
|
|
144
|
+
totalCount: number;
|
|
145
|
+
/** List of OS. */
|
|
146
|
+
os: OS[];
|
|
147
|
+
}
|
|
148
|
+
export type ListServerTypesRequest = {
|
|
149
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
150
|
+
zone?: Zone;
|
|
151
|
+
};
|
|
152
|
+
export interface ListServerTypesResponse {
|
|
153
|
+
/** Available server types. */
|
|
154
|
+
serverTypes: ServerType[];
|
|
155
|
+
}
|
|
156
|
+
export type ListServersRequest = {
|
|
157
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
158
|
+
zone?: Zone;
|
|
159
|
+
/** Sort order of the returned servers. */
|
|
160
|
+
orderBy?: ListServersRequestOrderBy;
|
|
161
|
+
/** Only list servers of this project ID. */
|
|
162
|
+
projectId?: string;
|
|
163
|
+
/** Only list servers of this Organization ID. */
|
|
164
|
+
organizationId?: string;
|
|
165
|
+
/** Positive integer to choose the page to return. */
|
|
166
|
+
page?: number;
|
|
167
|
+
/**
|
|
168
|
+
* Positive integer lower or equal to 100 to select the number of items to
|
|
169
|
+
* return.
|
|
170
|
+
*/
|
|
171
|
+
pageSize?: number;
|
|
172
|
+
};
|
|
173
|
+
export interface ListServersResponse {
|
|
174
|
+
/** Total number of servers. */
|
|
175
|
+
totalCount: number;
|
|
176
|
+
/** Paginated returned servers. */
|
|
177
|
+
servers: Server[];
|
|
178
|
+
}
|
|
179
|
+
export type RebootServerRequest = {
|
|
180
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
181
|
+
zone?: Zone;
|
|
182
|
+
/** UUID of the server you want to reboot. */
|
|
183
|
+
serverId: string;
|
|
184
|
+
};
|
|
185
|
+
export type ReinstallServerRequest = {
|
|
186
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
187
|
+
zone?: Zone;
|
|
188
|
+
/** UUID of the server you want to reinstall. */
|
|
189
|
+
serverId: string;
|
|
190
|
+
/**
|
|
191
|
+
* Reinstall the server with the target OS, when no os_id provided the default
|
|
192
|
+
* OS for the server type is used.
|
|
193
|
+
*/
|
|
194
|
+
osId?: string;
|
|
195
|
+
};
|
|
196
|
+
export type UpdateServerRequest = {
|
|
197
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
198
|
+
zone?: Zone;
|
|
199
|
+
/** UUID of the server you want to update. */
|
|
200
|
+
serverId: string;
|
|
201
|
+
/** Updated name for your server. */
|
|
202
|
+
name?: string;
|
|
203
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from './v1';
|