@scaleway/sdk 2.26.0 → 2.27.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 +119 -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 +50 -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 +79 -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 +224 -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 +300 -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 +538 -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 +117 -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 +326 -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 +475 -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 +528 -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 +115 -0
- package/dist/api/ipam/v1/api.gen.d.ts +57 -0
- package/dist/api/ipam/v1/api.gen.js +73 -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 +198 -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 +80 -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 +280 -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 +147 -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 +90 -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 +265 -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 +626 -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 +249 -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 +156 -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 +261 -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 +181 -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 +130 -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 +54 -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 +144 -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 +389 -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 +111 -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/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.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/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,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const intervalRetrier = require("../../../internal/async/interval-retrier.cjs");
|
|
4
|
+
const api = require("../../../scw/api.cjs");
|
|
5
|
+
const marshalling = require("../../../helpers/marshalling.cjs");
|
|
6
|
+
const resourcePaginator = require("../../../scw/fetch/resource-paginator.cjs");
|
|
7
|
+
const content_gen = require("./content.gen.cjs");
|
|
8
|
+
const marshalling_gen = require("./marshalling.gen.cjs");
|
|
9
|
+
const jsonContentHeaders = {
|
|
10
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
11
|
+
};
|
|
12
|
+
class API extends api.API {
|
|
13
|
+
/** Lists the available zones of the API. */
|
|
14
|
+
static LOCALITIES = ["fr-par-3"];
|
|
15
|
+
/**
|
|
16
|
+
* List server types. List all technical details about Apple silicon server
|
|
17
|
+
* types available in the specified zone. Since there is only one Availability
|
|
18
|
+
* Zone for Apple silicon servers, the targeted value is `fr-par-3`.
|
|
19
|
+
*
|
|
20
|
+
* @param request - The request {@link ListServerTypesRequest}
|
|
21
|
+
* @returns A Promise of ListServerTypesResponse
|
|
22
|
+
*/
|
|
23
|
+
listServerTypes = (request = {}) => this.client.fetch(
|
|
24
|
+
{
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/server-types`
|
|
27
|
+
},
|
|
28
|
+
marshalling_gen.unmarshalListServerTypesResponse
|
|
29
|
+
);
|
|
30
|
+
/**
|
|
31
|
+
* Get a server type. Get technical details (CPU, disk size etc.) of a server
|
|
32
|
+
* type.
|
|
33
|
+
*
|
|
34
|
+
* @param request - The request {@link GetServerTypeRequest}
|
|
35
|
+
* @returns A Promise of ServerType
|
|
36
|
+
*/
|
|
37
|
+
getServerType = (request) => this.client.fetch(
|
|
38
|
+
{
|
|
39
|
+
method: "GET",
|
|
40
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/server-type/${marshalling.validatePathParam("serverType", request.serverType)}`
|
|
41
|
+
},
|
|
42
|
+
marshalling_gen.unmarshalServerType
|
|
43
|
+
);
|
|
44
|
+
/**
|
|
45
|
+
* Create a server. Create a new server in the targeted zone, specifying its
|
|
46
|
+
* configuration including name and type.
|
|
47
|
+
*
|
|
48
|
+
* @param request - The request {@link CreateServerRequest}
|
|
49
|
+
* @returns A Promise of Server
|
|
50
|
+
*/
|
|
51
|
+
createServer = (request) => this.client.fetch(
|
|
52
|
+
{
|
|
53
|
+
body: JSON.stringify(
|
|
54
|
+
marshalling_gen.marshalCreateServerRequest(request, this.client.settings)
|
|
55
|
+
),
|
|
56
|
+
headers: jsonContentHeaders,
|
|
57
|
+
method: "POST",
|
|
58
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
59
|
+
},
|
|
60
|
+
marshalling_gen.unmarshalServer
|
|
61
|
+
);
|
|
62
|
+
pageOfListServers = (request = {}) => this.client.fetch(
|
|
63
|
+
{
|
|
64
|
+
method: "GET",
|
|
65
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`,
|
|
66
|
+
urlParams: marshalling.urlParams(
|
|
67
|
+
["order_by", request.orderBy],
|
|
68
|
+
["organization_id", request.organizationId],
|
|
69
|
+
["page", request.page],
|
|
70
|
+
[
|
|
71
|
+
"page_size",
|
|
72
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
73
|
+
],
|
|
74
|
+
["project_id", request.projectId]
|
|
75
|
+
)
|
|
76
|
+
},
|
|
77
|
+
marshalling_gen.unmarshalListServersResponse
|
|
78
|
+
);
|
|
79
|
+
/**
|
|
80
|
+
* List all servers. List all servers in the specified zone. By default,
|
|
81
|
+
* returned servers in the list are ordered by creation date in ascending
|
|
82
|
+
* order, though this can be modified via the `order_by` field.
|
|
83
|
+
*
|
|
84
|
+
* @param request - The request {@link ListServersRequest}
|
|
85
|
+
* @returns A Promise of ListServersResponse
|
|
86
|
+
*/
|
|
87
|
+
listServers = (request = {}) => resourcePaginator.enrichForPagination("servers", this.pageOfListServers, request);
|
|
88
|
+
pageOfListOS = (request = {}) => this.client.fetch(
|
|
89
|
+
{
|
|
90
|
+
method: "GET",
|
|
91
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/os`,
|
|
92
|
+
urlParams: marshalling.urlParams(
|
|
93
|
+
["name", request.name],
|
|
94
|
+
["page", request.page],
|
|
95
|
+
[
|
|
96
|
+
"page_size",
|
|
97
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
98
|
+
],
|
|
99
|
+
["server_type", request.serverType]
|
|
100
|
+
)
|
|
101
|
+
},
|
|
102
|
+
marshalling_gen.unmarshalListOSResponse
|
|
103
|
+
);
|
|
104
|
+
/**
|
|
105
|
+
* List all Operating Systems (OS). List all Operating Systems (OS). The
|
|
106
|
+
* response will include the total number of OS as well as their associated
|
|
107
|
+
* IDs, names and labels.
|
|
108
|
+
*
|
|
109
|
+
* @param request - The request {@link ListOSRequest}
|
|
110
|
+
* @returns A Promise of ListOSResponse
|
|
111
|
+
*/
|
|
112
|
+
listOS = (request = {}) => resourcePaginator.enrichForPagination("os", this.pageOfListOS, request);
|
|
113
|
+
/**
|
|
114
|
+
* Get an Operating System (OS). Get an Operating System (OS). The response
|
|
115
|
+
* will include the OS's unique ID as well as its name and label.
|
|
116
|
+
*
|
|
117
|
+
* @param request - The request {@link GetOSRequest}
|
|
118
|
+
* @returns A Promise of OS
|
|
119
|
+
*/
|
|
120
|
+
getOS = (request) => this.client.fetch(
|
|
121
|
+
{
|
|
122
|
+
method: "GET",
|
|
123
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/os/${marshalling.validatePathParam("osId", request.osId)}`
|
|
124
|
+
},
|
|
125
|
+
marshalling_gen.unmarshalOS
|
|
126
|
+
);
|
|
127
|
+
/**
|
|
128
|
+
* Get a server. Retrieve information about an existing Apple silicon server,
|
|
129
|
+
* specified by its server ID. Its full details, including name, status and IP
|
|
130
|
+
* address, are returned in the response object.
|
|
131
|
+
*
|
|
132
|
+
* @param request - The request {@link GetServerRequest}
|
|
133
|
+
* @returns A Promise of Server
|
|
134
|
+
*/
|
|
135
|
+
getServer = (request) => this.client.fetch(
|
|
136
|
+
{
|
|
137
|
+
method: "GET",
|
|
138
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}`
|
|
139
|
+
},
|
|
140
|
+
marshalling_gen.unmarshalServer
|
|
141
|
+
);
|
|
142
|
+
/**
|
|
143
|
+
* Waits for {@link Server} to be in a final state.
|
|
144
|
+
*
|
|
145
|
+
* @param request - The request {@link GetServerRequest}
|
|
146
|
+
* @param options - The waiting options
|
|
147
|
+
* @returns A Promise of Server
|
|
148
|
+
*/
|
|
149
|
+
waitForServer = (request, options) => intervalRetrier.waitForResource(
|
|
150
|
+
options?.stop ?? ((res) => Promise.resolve(!content_gen.SERVER_TRANSIENT_STATUSES.includes(res.status))),
|
|
151
|
+
this.getServer,
|
|
152
|
+
request,
|
|
153
|
+
options
|
|
154
|
+
);
|
|
155
|
+
/**
|
|
156
|
+
* Update a server. Update the parameters of an existing Apple silicon server,
|
|
157
|
+
* specified by its server ID.
|
|
158
|
+
*
|
|
159
|
+
* @param request - The request {@link UpdateServerRequest}
|
|
160
|
+
* @returns A Promise of Server
|
|
161
|
+
*/
|
|
162
|
+
updateServer = (request) => this.client.fetch(
|
|
163
|
+
{
|
|
164
|
+
body: JSON.stringify(
|
|
165
|
+
marshalling_gen.marshalUpdateServerRequest(request, this.client.settings)
|
|
166
|
+
),
|
|
167
|
+
headers: jsonContentHeaders,
|
|
168
|
+
method: "PATCH",
|
|
169
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}`
|
|
170
|
+
},
|
|
171
|
+
marshalling_gen.unmarshalServer
|
|
172
|
+
);
|
|
173
|
+
/**
|
|
174
|
+
* Delete a server. Delete an existing Apple silicon server, specified by its
|
|
175
|
+
* server ID. Deleting a server is permanent, and cannot be undone. Note that
|
|
176
|
+
* the minimum allocation period for Apple silicon-as-a-service is 24 hours,
|
|
177
|
+
* meaning you cannot delete your server prior to that.
|
|
178
|
+
*
|
|
179
|
+
* @param request - The request {@link DeleteServerRequest}
|
|
180
|
+
*/
|
|
181
|
+
deleteServer = (request) => this.client.fetch({
|
|
182
|
+
method: "DELETE",
|
|
183
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}`
|
|
184
|
+
});
|
|
185
|
+
/**
|
|
186
|
+
* Reboot a server. Reboot an existing Apple silicon server, specified by its
|
|
187
|
+
* server ID.
|
|
188
|
+
*
|
|
189
|
+
* @param request - The request {@link RebootServerRequest}
|
|
190
|
+
* @returns A Promise of Server
|
|
191
|
+
*/
|
|
192
|
+
rebootServer = (request) => this.client.fetch(
|
|
193
|
+
{
|
|
194
|
+
body: "{}",
|
|
195
|
+
headers: jsonContentHeaders,
|
|
196
|
+
method: "POST",
|
|
197
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/reboot`
|
|
198
|
+
},
|
|
199
|
+
marshalling_gen.unmarshalServer
|
|
200
|
+
);
|
|
201
|
+
/**
|
|
202
|
+
* Reinstall a server. Reinstall an existing Apple silicon server (specified
|
|
203
|
+
* by its server ID) from a new image (OS). All the data on the disk is
|
|
204
|
+
* deleted and all configuration is reset to the defailt configuration values
|
|
205
|
+
* of the image (OS).
|
|
206
|
+
*
|
|
207
|
+
* @param request - The request {@link ReinstallServerRequest}
|
|
208
|
+
* @returns A Promise of Server
|
|
209
|
+
*/
|
|
210
|
+
reinstallServer = (request) => this.client.fetch(
|
|
211
|
+
{
|
|
212
|
+
body: JSON.stringify(
|
|
213
|
+
marshalling_gen.marshalReinstallServerRequest(request, this.client.settings)
|
|
214
|
+
),
|
|
215
|
+
headers: jsonContentHeaders,
|
|
216
|
+
method: "POST",
|
|
217
|
+
path: `/apple-silicon/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/reinstall`
|
|
218
|
+
},
|
|
219
|
+
marshalling_gen.unmarshalServer
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
exports.API = API;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
+
import type { WaitForOptions, Zone } from '../../../bridge';
|
|
3
|
+
import type { CreateServerRequest, DeleteServerRequest, GetOSRequest, GetServerRequest, GetServerTypeRequest, ListOSRequest, ListOSResponse, ListServerTypesRequest, ListServerTypesResponse, ListServersRequest, ListServersResponse, OS, RebootServerRequest, ReinstallServerRequest, Server, ServerType, UpdateServerRequest } from './types.gen';
|
|
4
|
+
/** Apple silicon API. */
|
|
5
|
+
export declare class API extends ParentAPI {
|
|
6
|
+
/** Lists the available zones of the API. */
|
|
7
|
+
static readonly LOCALITIES: Zone[];
|
|
8
|
+
/**
|
|
9
|
+
* List server types. List all technical details about Apple silicon server
|
|
10
|
+
* types available in the specified zone. Since there is only one Availability
|
|
11
|
+
* Zone for Apple silicon servers, the targeted value is `fr-par-3`.
|
|
12
|
+
*
|
|
13
|
+
* @param request - The request {@link ListServerTypesRequest}
|
|
14
|
+
* @returns A Promise of ListServerTypesResponse
|
|
15
|
+
*/
|
|
16
|
+
listServerTypes: (request?: Readonly<ListServerTypesRequest>) => Promise<ListServerTypesResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get a server type. Get technical details (CPU, disk size etc.) of a server
|
|
19
|
+
* type.
|
|
20
|
+
*
|
|
21
|
+
* @param request - The request {@link GetServerTypeRequest}
|
|
22
|
+
* @returns A Promise of ServerType
|
|
23
|
+
*/
|
|
24
|
+
getServerType: (request: Readonly<GetServerTypeRequest>) => Promise<ServerType>;
|
|
25
|
+
/**
|
|
26
|
+
* Create a server. Create a new server in the targeted zone, specifying its
|
|
27
|
+
* configuration including name and type.
|
|
28
|
+
*
|
|
29
|
+
* @param request - The request {@link CreateServerRequest}
|
|
30
|
+
* @returns A Promise of Server
|
|
31
|
+
*/
|
|
32
|
+
createServer: (request: Readonly<CreateServerRequest>) => Promise<Server>;
|
|
33
|
+
protected pageOfListServers: (request?: Readonly<ListServersRequest>) => Promise<ListServersResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* List all servers. List all servers in the specified zone. By default,
|
|
36
|
+
* returned servers in the list are ordered by creation date in ascending
|
|
37
|
+
* order, though this can be modified via the `order_by` field.
|
|
38
|
+
*
|
|
39
|
+
* @param request - The request {@link ListServersRequest}
|
|
40
|
+
* @returns A Promise of ListServersResponse
|
|
41
|
+
*/
|
|
42
|
+
listServers: (request?: Readonly<ListServersRequest>) => Promise<ListServersResponse> & {
|
|
43
|
+
all: () => Promise<Server[]>;
|
|
44
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Server[], void, void>;
|
|
45
|
+
};
|
|
46
|
+
protected pageOfListOS: (request?: Readonly<ListOSRequest>) => Promise<ListOSResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* List all Operating Systems (OS). List all Operating Systems (OS). The
|
|
49
|
+
* response will include the total number of OS as well as their associated
|
|
50
|
+
* IDs, names and labels.
|
|
51
|
+
*
|
|
52
|
+
* @param request - The request {@link ListOSRequest}
|
|
53
|
+
* @returns A Promise of ListOSResponse
|
|
54
|
+
*/
|
|
55
|
+
listOS: (request?: Readonly<ListOSRequest>) => Promise<ListOSResponse> & {
|
|
56
|
+
all: () => Promise<OS[]>;
|
|
57
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<OS[], void, void>;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Get an Operating System (OS). Get an Operating System (OS). The response
|
|
61
|
+
* will include the OS's unique ID as well as its name and label.
|
|
62
|
+
*
|
|
63
|
+
* @param request - The request {@link GetOSRequest}
|
|
64
|
+
* @returns A Promise of OS
|
|
65
|
+
*/
|
|
66
|
+
getOS: (request: Readonly<GetOSRequest>) => Promise<OS>;
|
|
67
|
+
/**
|
|
68
|
+
* Get a server. Retrieve information about an existing Apple silicon server,
|
|
69
|
+
* specified by its server ID. Its full details, including name, status and IP
|
|
70
|
+
* address, are returned in the response object.
|
|
71
|
+
*
|
|
72
|
+
* @param request - The request {@link GetServerRequest}
|
|
73
|
+
* @returns A Promise of Server
|
|
74
|
+
*/
|
|
75
|
+
getServer: (request: Readonly<GetServerRequest>) => Promise<Server>;
|
|
76
|
+
/**
|
|
77
|
+
* Waits for {@link Server} to be in a final state.
|
|
78
|
+
*
|
|
79
|
+
* @param request - The request {@link GetServerRequest}
|
|
80
|
+
* @param options - The waiting options
|
|
81
|
+
* @returns A Promise of Server
|
|
82
|
+
*/
|
|
83
|
+
waitForServer: (request: Readonly<GetServerRequest>, options?: Readonly<WaitForOptions<Server>>) => Promise<Server>;
|
|
84
|
+
/**
|
|
85
|
+
* Update a server. Update the parameters of an existing Apple silicon server,
|
|
86
|
+
* specified by its server ID.
|
|
87
|
+
*
|
|
88
|
+
* @param request - The request {@link UpdateServerRequest}
|
|
89
|
+
* @returns A Promise of Server
|
|
90
|
+
*/
|
|
91
|
+
updateServer: (request: Readonly<UpdateServerRequest>) => Promise<Server>;
|
|
92
|
+
/**
|
|
93
|
+
* Delete a server. Delete an existing Apple silicon server, specified by its
|
|
94
|
+
* server ID. Deleting a server is permanent, and cannot be undone. Note that
|
|
95
|
+
* the minimum allocation period for Apple silicon-as-a-service is 24 hours,
|
|
96
|
+
* meaning you cannot delete your server prior to that.
|
|
97
|
+
*
|
|
98
|
+
* @param request - The request {@link DeleteServerRequest}
|
|
99
|
+
*/
|
|
100
|
+
deleteServer: (request: Readonly<DeleteServerRequest>) => Promise<void>;
|
|
101
|
+
/**
|
|
102
|
+
* Reboot a server. Reboot an existing Apple silicon server, specified by its
|
|
103
|
+
* server ID.
|
|
104
|
+
*
|
|
105
|
+
* @param request - The request {@link RebootServerRequest}
|
|
106
|
+
* @returns A Promise of Server
|
|
107
|
+
*/
|
|
108
|
+
rebootServer: (request: Readonly<RebootServerRequest>) => Promise<Server>;
|
|
109
|
+
/**
|
|
110
|
+
* Reinstall a server. Reinstall an existing Apple silicon server (specified
|
|
111
|
+
* by its server ID) from a new image (OS). All the data on the disk is
|
|
112
|
+
* deleted and all configuration is reset to the defailt configuration values
|
|
113
|
+
* of the image (OS).
|
|
114
|
+
*
|
|
115
|
+
* @param request - The request {@link ReinstallServerRequest}
|
|
116
|
+
* @returns A Promise of Server
|
|
117
|
+
*/
|
|
118
|
+
reinstallServer: (request: Readonly<ReinstallServerRequest>) => Promise<Server>;
|
|
119
|
+
}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { waitForResource } from
|
|
2
|
-
import { API as API$1 } from
|
|
3
|
-
import { validatePathParam, urlParams } from
|
|
4
|
-
import { enrichForPagination } from
|
|
5
|
-
import { SERVER_TRANSIENT_STATUSES } from
|
|
6
|
-
import { unmarshalListServerTypesResponse, unmarshalServerType, marshalCreateServerRequest, unmarshalServer, unmarshalListServersResponse, unmarshalListOSResponse, unmarshalOS, marshalUpdateServerRequest, marshalReinstallServerRequest } from
|
|
7
|
-
|
|
8
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
1
|
+
import { waitForResource } from "../../../internal/async/interval-retrier.js";
|
|
2
|
+
import { API as API$1 } from "../../../scw/api.js";
|
|
3
|
+
import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
4
|
+
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
5
|
+
import { SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
6
|
+
import { unmarshalListServerTypesResponse, unmarshalServerType, marshalCreateServerRequest, unmarshalServer, unmarshalListServersResponse, unmarshalListOSResponse, unmarshalOS, marshalUpdateServerRequest, marshalReinstallServerRequest } from "./marshalling.gen.js";
|
|
10
7
|
const jsonContentHeaders = {
|
|
11
|
-
|
|
8
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
12
9
|
};
|
|
13
|
-
|
|
14
|
-
/** Apple silicon API. */
|
|
15
10
|
class API extends API$1 {
|
|
16
11
|
/** Lists the available zones of the API. */
|
|
17
|
-
static LOCALITIES = [
|
|
18
|
-
|
|
12
|
+
static LOCALITIES = ["fr-par-3"];
|
|
19
13
|
/**
|
|
20
14
|
* List server types. List all technical details about Apple silicon server
|
|
21
15
|
* types available in the specified zone. Since there is only one Availability
|
|
@@ -24,11 +18,13 @@ class API extends API$1 {
|
|
|
24
18
|
* @param request - The request {@link ListServerTypesRequest}
|
|
25
19
|
* @returns A Promise of ListServerTypesResponse
|
|
26
20
|
*/
|
|
27
|
-
listServerTypes = (request = {}) => this.client.fetch(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
listServerTypes = (request = {}) => this.client.fetch(
|
|
22
|
+
{
|
|
23
|
+
method: "GET",
|
|
24
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/server-types`
|
|
25
|
+
},
|
|
26
|
+
unmarshalListServerTypesResponse
|
|
27
|
+
);
|
|
32
28
|
/**
|
|
33
29
|
* Get a server type. Get technical details (CPU, disk size etc.) of a server
|
|
34
30
|
* type.
|
|
@@ -36,11 +32,13 @@ class API extends API$1 {
|
|
|
36
32
|
* @param request - The request {@link GetServerTypeRequest}
|
|
37
33
|
* @returns A Promise of ServerType
|
|
38
34
|
*/
|
|
39
|
-
getServerType = request => this.client.fetch(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
getServerType = (request) => this.client.fetch(
|
|
36
|
+
{
|
|
37
|
+
method: "GET",
|
|
38
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/server-type/${validatePathParam("serverType", request.serverType)}`
|
|
39
|
+
},
|
|
40
|
+
unmarshalServerType
|
|
41
|
+
);
|
|
44
42
|
/**
|
|
45
43
|
* Create a server. Create a new server in the targeted zone, specifying its
|
|
46
44
|
* configuration including name and type.
|
|
@@ -48,18 +46,34 @@ class API extends API$1 {
|
|
|
48
46
|
* @param request - The request {@link CreateServerRequest}
|
|
49
47
|
* @returns A Promise of Server
|
|
50
48
|
*/
|
|
51
|
-
createServer = request => this.client.fetch(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
createServer = (request) => this.client.fetch(
|
|
50
|
+
{
|
|
51
|
+
body: JSON.stringify(
|
|
52
|
+
marshalCreateServerRequest(request, this.client.settings)
|
|
53
|
+
),
|
|
54
|
+
headers: jsonContentHeaders,
|
|
55
|
+
method: "POST",
|
|
56
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
57
|
+
},
|
|
58
|
+
unmarshalServer
|
|
59
|
+
);
|
|
60
|
+
pageOfListServers = (request = {}) => this.client.fetch(
|
|
61
|
+
{
|
|
62
|
+
method: "GET",
|
|
63
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`,
|
|
64
|
+
urlParams: urlParams(
|
|
65
|
+
["order_by", request.orderBy],
|
|
66
|
+
["organization_id", request.organizationId],
|
|
67
|
+
["page", request.page],
|
|
68
|
+
[
|
|
69
|
+
"page_size",
|
|
70
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
71
|
+
],
|
|
72
|
+
["project_id", request.projectId]
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
unmarshalListServersResponse
|
|
76
|
+
);
|
|
63
77
|
/**
|
|
64
78
|
* List all servers. List all servers in the specified zone. By default,
|
|
65
79
|
* returned servers in the list are ordered by creation date in ascending
|
|
@@ -68,13 +82,23 @@ class API extends API$1 {
|
|
|
68
82
|
* @param request - The request {@link ListServersRequest}
|
|
69
83
|
* @returns A Promise of ListServersResponse
|
|
70
84
|
*/
|
|
71
|
-
listServers = (request = {}) => enrichForPagination(
|
|
72
|
-
pageOfListOS = (request = {}) => this.client.fetch(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
85
|
+
listServers = (request = {}) => enrichForPagination("servers", this.pageOfListServers, request);
|
|
86
|
+
pageOfListOS = (request = {}) => this.client.fetch(
|
|
87
|
+
{
|
|
88
|
+
method: "GET",
|
|
89
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/os`,
|
|
90
|
+
urlParams: urlParams(
|
|
91
|
+
["name", request.name],
|
|
92
|
+
["page", request.page],
|
|
93
|
+
[
|
|
94
|
+
"page_size",
|
|
95
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
96
|
+
],
|
|
97
|
+
["server_type", request.serverType]
|
|
98
|
+
)
|
|
99
|
+
},
|
|
100
|
+
unmarshalListOSResponse
|
|
101
|
+
);
|
|
78
102
|
/**
|
|
79
103
|
* List all Operating Systems (OS). List all Operating Systems (OS). The
|
|
80
104
|
* response will include the total number of OS as well as their associated
|
|
@@ -83,8 +107,7 @@ class API extends API$1 {
|
|
|
83
107
|
* @param request - The request {@link ListOSRequest}
|
|
84
108
|
* @returns A Promise of ListOSResponse
|
|
85
109
|
*/
|
|
86
|
-
listOS = (request = {}) => enrichForPagination(
|
|
87
|
-
|
|
110
|
+
listOS = (request = {}) => enrichForPagination("os", this.pageOfListOS, request);
|
|
88
111
|
/**
|
|
89
112
|
* Get an Operating System (OS). Get an Operating System (OS). The response
|
|
90
113
|
* will include the OS's unique ID as well as its name and label.
|
|
@@ -92,11 +115,13 @@ class API extends API$1 {
|
|
|
92
115
|
* @param request - The request {@link GetOSRequest}
|
|
93
116
|
* @returns A Promise of OS
|
|
94
117
|
*/
|
|
95
|
-
getOS = request => this.client.fetch(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
118
|
+
getOS = (request) => this.client.fetch(
|
|
119
|
+
{
|
|
120
|
+
method: "GET",
|
|
121
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/os/${validatePathParam("osId", request.osId)}`
|
|
122
|
+
},
|
|
123
|
+
unmarshalOS
|
|
124
|
+
);
|
|
100
125
|
/**
|
|
101
126
|
* Get a server. Retrieve information about an existing Apple silicon server,
|
|
102
127
|
* specified by its server ID. Its full details, including name, status and IP
|
|
@@ -105,11 +130,13 @@ class API extends API$1 {
|
|
|
105
130
|
* @param request - The request {@link GetServerRequest}
|
|
106
131
|
* @returns A Promise of Server
|
|
107
132
|
*/
|
|
108
|
-
getServer = request => this.client.fetch(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
133
|
+
getServer = (request) => this.client.fetch(
|
|
134
|
+
{
|
|
135
|
+
method: "GET",
|
|
136
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
137
|
+
},
|
|
138
|
+
unmarshalServer
|
|
139
|
+
);
|
|
113
140
|
/**
|
|
114
141
|
* Waits for {@link Server} to be in a final state.
|
|
115
142
|
*
|
|
@@ -117,8 +144,12 @@ class API extends API$1 {
|
|
|
117
144
|
* @param options - The waiting options
|
|
118
145
|
* @returns A Promise of Server
|
|
119
146
|
*/
|
|
120
|
-
waitForServer = (request, options) => waitForResource(
|
|
121
|
-
|
|
147
|
+
waitForServer = (request, options) => waitForResource(
|
|
148
|
+
options?.stop ?? ((res) => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
|
|
149
|
+
this.getServer,
|
|
150
|
+
request,
|
|
151
|
+
options
|
|
152
|
+
);
|
|
122
153
|
/**
|
|
123
154
|
* Update a server. Update the parameters of an existing Apple silicon server,
|
|
124
155
|
* specified by its server ID.
|
|
@@ -126,13 +157,17 @@ class API extends API$1 {
|
|
|
126
157
|
* @param request - The request {@link UpdateServerRequest}
|
|
127
158
|
* @returns A Promise of Server
|
|
128
159
|
*/
|
|
129
|
-
updateServer = request => this.client.fetch(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
160
|
+
updateServer = (request) => this.client.fetch(
|
|
161
|
+
{
|
|
162
|
+
body: JSON.stringify(
|
|
163
|
+
marshalUpdateServerRequest(request, this.client.settings)
|
|
164
|
+
),
|
|
165
|
+
headers: jsonContentHeaders,
|
|
166
|
+
method: "PATCH",
|
|
167
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
168
|
+
},
|
|
169
|
+
unmarshalServer
|
|
170
|
+
);
|
|
136
171
|
/**
|
|
137
172
|
* Delete a server. Delete an existing Apple silicon server, specified by its
|
|
138
173
|
* server ID. Deleting a server is permanent, and cannot be undone. Note that
|
|
@@ -141,11 +176,10 @@ class API extends API$1 {
|
|
|
141
176
|
*
|
|
142
177
|
* @param request - The request {@link DeleteServerRequest}
|
|
143
178
|
*/
|
|
144
|
-
deleteServer = request => this.client.fetch({
|
|
145
|
-
method:
|
|
146
|
-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
|
|
179
|
+
deleteServer = (request) => this.client.fetch({
|
|
180
|
+
method: "DELETE",
|
|
181
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
147
182
|
});
|
|
148
|
-
|
|
149
183
|
/**
|
|
150
184
|
* Reboot a server. Reboot an existing Apple silicon server, specified by its
|
|
151
185
|
* server ID.
|
|
@@ -153,13 +187,15 @@ class API extends API$1 {
|
|
|
153
187
|
* @param request - The request {@link RebootServerRequest}
|
|
154
188
|
* @returns A Promise of Server
|
|
155
189
|
*/
|
|
156
|
-
rebootServer = request => this.client.fetch(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
190
|
+
rebootServer = (request) => this.client.fetch(
|
|
191
|
+
{
|
|
192
|
+
body: "{}",
|
|
193
|
+
headers: jsonContentHeaders,
|
|
194
|
+
method: "POST",
|
|
195
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/reboot`
|
|
196
|
+
},
|
|
197
|
+
unmarshalServer
|
|
198
|
+
);
|
|
163
199
|
/**
|
|
164
200
|
* Reinstall a server. Reinstall an existing Apple silicon server (specified
|
|
165
201
|
* by its server ID) from a new image (OS). All the data on the disk is
|
|
@@ -169,12 +205,18 @@ class API extends API$1 {
|
|
|
169
205
|
* @param request - The request {@link ReinstallServerRequest}
|
|
170
206
|
* @returns A Promise of Server
|
|
171
207
|
*/
|
|
172
|
-
reinstallServer = request => this.client.fetch(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
208
|
+
reinstallServer = (request) => this.client.fetch(
|
|
209
|
+
{
|
|
210
|
+
body: JSON.stringify(
|
|
211
|
+
marshalReinstallServerRequest(request, this.client.settings)
|
|
212
|
+
),
|
|
213
|
+
headers: jsonContentHeaders,
|
|
214
|
+
method: "POST",
|
|
215
|
+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/reinstall`
|
|
216
|
+
},
|
|
217
|
+
unmarshalServer
|
|
218
|
+
);
|
|
178
219
|
}
|
|
179
|
-
|
|
180
|
-
|
|
220
|
+
export {
|
|
221
|
+
API
|
|
222
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const SERVER_TRANSIENT_STATUSES = [
|
|
4
|
+
"starting",
|
|
5
|
+
"rebooting",
|
|
6
|
+
"updating",
|
|
7
|
+
"locking",
|
|
8
|
+
"unlocking",
|
|
9
|
+
"reinstalling"
|
|
10
|
+
];
|
|
11
|
+
exports.SERVER_TRANSIENT_STATUSES = SERVER_TRANSIENT_STATUSES;
|