@scaleway/sdk 2.25.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 +65 -31
- 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 +763 -445
- 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 +324 -188
- 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 +145 -75
- 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 +92 -37
- 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 -32034
- package/dist/index.d.ts +15 -38373
- 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,1460 @@
|
|
|
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 = [
|
|
15
|
+
"fr-par-1",
|
|
16
|
+
"fr-par-2",
|
|
17
|
+
"nl-ams-1"
|
|
18
|
+
];
|
|
19
|
+
pageOfListServers = (request = {}) => this.client.fetch(
|
|
20
|
+
{
|
|
21
|
+
method: "GET",
|
|
22
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`,
|
|
23
|
+
urlParams: marshalling.urlParams(
|
|
24
|
+
["order_by", request.orderBy],
|
|
25
|
+
["page", request.page],
|
|
26
|
+
[
|
|
27
|
+
"page_size",
|
|
28
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"project_id",
|
|
32
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
33
|
+
],
|
|
34
|
+
["search", request.search]
|
|
35
|
+
)
|
|
36
|
+
},
|
|
37
|
+
marshalling_gen.unmarshalListServersResponse
|
|
38
|
+
);
|
|
39
|
+
/**
|
|
40
|
+
* List baremetal servers for project.
|
|
41
|
+
*
|
|
42
|
+
* @param request - The request {@link ListServersRequest}
|
|
43
|
+
* @returns A Promise of ListServersResponse
|
|
44
|
+
*/
|
|
45
|
+
listServers = (request = {}) => resourcePaginator.enrichForPagination("servers", this.pageOfListServers, request);
|
|
46
|
+
/**
|
|
47
|
+
* Get a specific baremetal server. Get the server associated with the given
|
|
48
|
+
* ID.
|
|
49
|
+
*
|
|
50
|
+
* @param request - The request {@link GetServerRequest}
|
|
51
|
+
* @returns A Promise of Server
|
|
52
|
+
*/
|
|
53
|
+
getServer = (request) => this.client.fetch(
|
|
54
|
+
{
|
|
55
|
+
method: "GET",
|
|
56
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}`
|
|
57
|
+
},
|
|
58
|
+
marshalling_gen.unmarshalServer
|
|
59
|
+
);
|
|
60
|
+
/**
|
|
61
|
+
* Waits for {@link Server} to be in a final state.
|
|
62
|
+
*
|
|
63
|
+
* @param request - The request {@link GetServerRequest}
|
|
64
|
+
* @param options - The waiting options
|
|
65
|
+
* @returns A Promise of Server
|
|
66
|
+
*/
|
|
67
|
+
waitForServer = (request, options) => intervalRetrier.waitForResource(
|
|
68
|
+
options?.stop ?? ((res) => Promise.resolve(!content_gen.SERVER_TRANSIENT_STATUSES.includes(res.status))),
|
|
69
|
+
this.getServer,
|
|
70
|
+
request,
|
|
71
|
+
options
|
|
72
|
+
);
|
|
73
|
+
getServerBackup = (request) => this.client.fetch(
|
|
74
|
+
{
|
|
75
|
+
method: "GET",
|
|
76
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/backups`
|
|
77
|
+
},
|
|
78
|
+
marshalling_gen.unmarshalBackup
|
|
79
|
+
);
|
|
80
|
+
updateServerBackup = (request) => this.client.fetch(
|
|
81
|
+
{
|
|
82
|
+
body: JSON.stringify(
|
|
83
|
+
marshalling_gen.marshalUpdateServerBackupRequest(request, this.client.settings)
|
|
84
|
+
),
|
|
85
|
+
headers: jsonContentHeaders,
|
|
86
|
+
method: "PATCH",
|
|
87
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/backups`
|
|
88
|
+
},
|
|
89
|
+
marshalling_gen.unmarshalBackup
|
|
90
|
+
);
|
|
91
|
+
pageOfListSubscribableServerOptions = (request) => this.client.fetch(
|
|
92
|
+
{
|
|
93
|
+
method: "GET",
|
|
94
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/subscribable-server-options`,
|
|
95
|
+
urlParams: marshalling.urlParams(
|
|
96
|
+
["page", request.page],
|
|
97
|
+
[
|
|
98
|
+
"page_size",
|
|
99
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
100
|
+
]
|
|
101
|
+
)
|
|
102
|
+
},
|
|
103
|
+
marshalling_gen.unmarshalListSubscribableServerOptionsResponse
|
|
104
|
+
);
|
|
105
|
+
/**
|
|
106
|
+
* List subscribable server options. List subscribable options associated to
|
|
107
|
+
* the given server ID.
|
|
108
|
+
*
|
|
109
|
+
* @param request - The request {@link ListSubscribableServerOptionsRequest}
|
|
110
|
+
* @returns A Promise of ListSubscribableServerOptionsResponse
|
|
111
|
+
*/
|
|
112
|
+
listSubscribableServerOptions = (request) => resourcePaginator.enrichForPagination(
|
|
113
|
+
"serverOptions",
|
|
114
|
+
this.pageOfListSubscribableServerOptions,
|
|
115
|
+
request
|
|
116
|
+
);
|
|
117
|
+
/**
|
|
118
|
+
* Subscribe server option. Subscribe option for the given server ID.
|
|
119
|
+
*
|
|
120
|
+
* @param request - The request {@link SubscribeServerOptionRequest}
|
|
121
|
+
* @returns A Promise of Service
|
|
122
|
+
*/
|
|
123
|
+
subscribeServerOption = (request) => this.client.fetch(
|
|
124
|
+
{
|
|
125
|
+
body: JSON.stringify(
|
|
126
|
+
marshalling_gen.marshalSubscribeServerOptionRequest(request, this.client.settings)
|
|
127
|
+
),
|
|
128
|
+
headers: jsonContentHeaders,
|
|
129
|
+
method: "PATCH",
|
|
130
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/subscribe-server-option`
|
|
131
|
+
},
|
|
132
|
+
marshalling_gen.unmarshalService
|
|
133
|
+
);
|
|
134
|
+
/**
|
|
135
|
+
* Create a baremetal server. Create a new baremetal server. The order return
|
|
136
|
+
* you a service ID to follow the provisionning status you could call
|
|
137
|
+
* GetService.
|
|
138
|
+
*
|
|
139
|
+
* @param request - The request {@link CreateServerRequest}
|
|
140
|
+
* @returns A Promise of Service
|
|
141
|
+
*/
|
|
142
|
+
createServer = (request) => this.client.fetch(
|
|
143
|
+
{
|
|
144
|
+
body: JSON.stringify(
|
|
145
|
+
marshalling_gen.marshalCreateServerRequest(request, this.client.settings)
|
|
146
|
+
),
|
|
147
|
+
headers: jsonContentHeaders,
|
|
148
|
+
method: "POST",
|
|
149
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
150
|
+
},
|
|
151
|
+
marshalling_gen.unmarshalService
|
|
152
|
+
);
|
|
153
|
+
/**
|
|
154
|
+
* Subscribe storage server option. Subscribe storage option for the given
|
|
155
|
+
* server ID.
|
|
156
|
+
*
|
|
157
|
+
* @param request - The request {@link SubscribeStorageOptionsRequest}
|
|
158
|
+
* @returns A Promise of SubscribeStorageOptionsResponse
|
|
159
|
+
*/
|
|
160
|
+
subscribeStorageOptions = (request) => this.client.fetch(
|
|
161
|
+
{
|
|
162
|
+
body: JSON.stringify(
|
|
163
|
+
marshalling_gen.marshalSubscribeStorageOptionsRequest(request, this.client.settings)
|
|
164
|
+
),
|
|
165
|
+
headers: jsonContentHeaders,
|
|
166
|
+
method: "POST",
|
|
167
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/subscribe-storage-options`
|
|
168
|
+
},
|
|
169
|
+
marshalling_gen.unmarshalSubscribeStorageOptionsResponse
|
|
170
|
+
);
|
|
171
|
+
/**
|
|
172
|
+
* Update a baremetal server. Update the server associated with the given ID.
|
|
173
|
+
*
|
|
174
|
+
* @param request - The request {@link UpdateServerRequest}
|
|
175
|
+
* @returns A Promise of Server
|
|
176
|
+
*/
|
|
177
|
+
updateServer = (request) => this.client.fetch(
|
|
178
|
+
{
|
|
179
|
+
body: JSON.stringify(
|
|
180
|
+
marshalling_gen.marshalUpdateServerRequest(request, this.client.settings)
|
|
181
|
+
),
|
|
182
|
+
headers: jsonContentHeaders,
|
|
183
|
+
method: "PATCH",
|
|
184
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}`
|
|
185
|
+
},
|
|
186
|
+
marshalling_gen.unmarshalServer
|
|
187
|
+
);
|
|
188
|
+
updateServerTags = (request) => this.client.fetch(
|
|
189
|
+
{
|
|
190
|
+
body: JSON.stringify(
|
|
191
|
+
marshalling_gen.marshalUpdateServerTagsRequest(request, this.client.settings)
|
|
192
|
+
),
|
|
193
|
+
headers: jsonContentHeaders,
|
|
194
|
+
method: "POST",
|
|
195
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/tags`
|
|
196
|
+
},
|
|
197
|
+
marshalling_gen.unmarshalServer
|
|
198
|
+
);
|
|
199
|
+
/**
|
|
200
|
+
* Reboot a baremetal server. Reboot the server associated with the given ID,
|
|
201
|
+
* use boot param to reboot in rescue.
|
|
202
|
+
*
|
|
203
|
+
* @param request - The request {@link RebootServerRequest}
|
|
204
|
+
*/
|
|
205
|
+
rebootServer = (request) => this.client.fetch({
|
|
206
|
+
body: "{}",
|
|
207
|
+
headers: jsonContentHeaders,
|
|
208
|
+
method: "POST",
|
|
209
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/reboot`
|
|
210
|
+
});
|
|
211
|
+
/**
|
|
212
|
+
* Start a baremetal server. Start the server associated with the given ID.
|
|
213
|
+
*
|
|
214
|
+
* @param request - The request {@link StartServerRequest}
|
|
215
|
+
*/
|
|
216
|
+
startServer = (request) => this.client.fetch({
|
|
217
|
+
body: "{}",
|
|
218
|
+
headers: jsonContentHeaders,
|
|
219
|
+
method: "POST",
|
|
220
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/start`
|
|
221
|
+
});
|
|
222
|
+
/**
|
|
223
|
+
* Stop a baremetal server. Stop the server associated with the given ID.
|
|
224
|
+
*
|
|
225
|
+
* @param request - The request {@link StopServerRequest}
|
|
226
|
+
*/
|
|
227
|
+
stopServer = (request) => this.client.fetch({
|
|
228
|
+
body: "{}",
|
|
229
|
+
headers: jsonContentHeaders,
|
|
230
|
+
method: "POST",
|
|
231
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/stop`
|
|
232
|
+
});
|
|
233
|
+
/**
|
|
234
|
+
* Delete a baremetal server. Delete the server associated with the given ID.
|
|
235
|
+
*
|
|
236
|
+
* @param request - The request {@link DeleteServerRequest}
|
|
237
|
+
*/
|
|
238
|
+
deleteServer = (request) => this.client.fetch({
|
|
239
|
+
method: "DELETE",
|
|
240
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}`
|
|
241
|
+
});
|
|
242
|
+
pageOfListServerEvents = (request) => this.client.fetch(
|
|
243
|
+
{
|
|
244
|
+
method: "GET",
|
|
245
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/events`,
|
|
246
|
+
urlParams: marshalling.urlParams(
|
|
247
|
+
["order_by", request.orderBy],
|
|
248
|
+
["page", request.page],
|
|
249
|
+
[
|
|
250
|
+
"page_size",
|
|
251
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
252
|
+
]
|
|
253
|
+
)
|
|
254
|
+
},
|
|
255
|
+
marshalling_gen.unmarshalListServerEventsResponse
|
|
256
|
+
);
|
|
257
|
+
/**
|
|
258
|
+
* List server events. List events associated to the given server ID.
|
|
259
|
+
*
|
|
260
|
+
* @param request - The request {@link ListServerEventsRequest}
|
|
261
|
+
* @returns A Promise of ListServerEventsResponse
|
|
262
|
+
*/
|
|
263
|
+
listServerEvents = (request) => resourcePaginator.enrichForPagination("events", this.pageOfListServerEvents, request);
|
|
264
|
+
pageOfListServerDisks = (request) => this.client.fetch(
|
|
265
|
+
{
|
|
266
|
+
method: "GET",
|
|
267
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/disks`,
|
|
268
|
+
urlParams: marshalling.urlParams(
|
|
269
|
+
["order_by", request.orderBy],
|
|
270
|
+
["page", request.page],
|
|
271
|
+
[
|
|
272
|
+
"page_size",
|
|
273
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
274
|
+
]
|
|
275
|
+
)
|
|
276
|
+
},
|
|
277
|
+
marshalling_gen.unmarshalListServerDisksResponse
|
|
278
|
+
);
|
|
279
|
+
/**
|
|
280
|
+
* List server disks. List disks associated to the given server ID.
|
|
281
|
+
*
|
|
282
|
+
* @param request - The request {@link ListServerDisksRequest}
|
|
283
|
+
* @returns A Promise of ListServerDisksResponse
|
|
284
|
+
*/
|
|
285
|
+
listServerDisks = (request) => resourcePaginator.enrichForPagination("disks", this.pageOfListServerDisks, request);
|
|
286
|
+
getOrderedService = (request) => this.client.fetch(
|
|
287
|
+
{
|
|
288
|
+
method: "GET",
|
|
289
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ordered-services/${marshalling.validatePathParam("orderedServiceId", request.orderedServiceId)}`
|
|
290
|
+
},
|
|
291
|
+
marshalling_gen.unmarshalService
|
|
292
|
+
);
|
|
293
|
+
/**
|
|
294
|
+
* Get a specific service. Get the service associated with the given ID.
|
|
295
|
+
*
|
|
296
|
+
* @param request - The request {@link GetServiceRequest}
|
|
297
|
+
* @returns A Promise of Service
|
|
298
|
+
*/
|
|
299
|
+
getService = (request) => this.client.fetch(
|
|
300
|
+
{
|
|
301
|
+
body: "{}",
|
|
302
|
+
headers: jsonContentHeaders,
|
|
303
|
+
method: "PATCH",
|
|
304
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/services/${marshalling.validatePathParam("serviceId", request.serviceId)}`
|
|
305
|
+
},
|
|
306
|
+
marshalling_gen.unmarshalService
|
|
307
|
+
);
|
|
308
|
+
/**
|
|
309
|
+
* Delete a specific service. Delete the service associated with the given ID.
|
|
310
|
+
*
|
|
311
|
+
* @param request - The request {@link DeleteServiceRequest}
|
|
312
|
+
* @returns A Promise of Service
|
|
313
|
+
*/
|
|
314
|
+
deleteService = (request) => this.client.fetch(
|
|
315
|
+
{
|
|
316
|
+
method: "DELETE",
|
|
317
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/services/${marshalling.validatePathParam("serviceId", request.serviceId)}`
|
|
318
|
+
},
|
|
319
|
+
marshalling_gen.unmarshalService
|
|
320
|
+
);
|
|
321
|
+
pageOfListServices = (request = {}) => this.client.fetch(
|
|
322
|
+
{
|
|
323
|
+
method: "GET",
|
|
324
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/services`,
|
|
325
|
+
urlParams: marshalling.urlParams(
|
|
326
|
+
["order_by", request.orderBy],
|
|
327
|
+
["page", request.page],
|
|
328
|
+
[
|
|
329
|
+
"page_size",
|
|
330
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
331
|
+
],
|
|
332
|
+
["project_id", request.projectId]
|
|
333
|
+
)
|
|
334
|
+
},
|
|
335
|
+
marshalling_gen.unmarshalListServicesResponse
|
|
336
|
+
);
|
|
337
|
+
/**
|
|
338
|
+
* List services.
|
|
339
|
+
*
|
|
340
|
+
* @param request - The request {@link ListServicesRequest}
|
|
341
|
+
* @returns A Promise of ListServicesResponse
|
|
342
|
+
*/
|
|
343
|
+
listServices = (request = {}) => resourcePaginator.enrichForPagination("services", this.pageOfListServices, request);
|
|
344
|
+
/**
|
|
345
|
+
* Install a baremetal server. Install an OS on the server associated with the
|
|
346
|
+
* given ID.
|
|
347
|
+
*
|
|
348
|
+
* @param request - The request {@link InstallServerRequest}
|
|
349
|
+
* @returns A Promise of ServerInstall
|
|
350
|
+
*/
|
|
351
|
+
installServer = (request) => this.client.fetch(
|
|
352
|
+
{
|
|
353
|
+
body: JSON.stringify(
|
|
354
|
+
marshalling_gen.marshalInstallServerRequest(request, this.client.settings)
|
|
355
|
+
),
|
|
356
|
+
headers: jsonContentHeaders,
|
|
357
|
+
method: "POST",
|
|
358
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/install`
|
|
359
|
+
},
|
|
360
|
+
marshalling_gen.unmarshalServerInstall
|
|
361
|
+
);
|
|
362
|
+
/**
|
|
363
|
+
* Get a specific server installation status. Get the server installation
|
|
364
|
+
* status associated with the given server ID.
|
|
365
|
+
*
|
|
366
|
+
* @param request - The request {@link GetServerInstallRequest}
|
|
367
|
+
* @returns A Promise of ServerInstall
|
|
368
|
+
*/
|
|
369
|
+
getServerInstall = (request) => this.client.fetch(
|
|
370
|
+
{
|
|
371
|
+
method: "GET",
|
|
372
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/install`
|
|
373
|
+
},
|
|
374
|
+
marshalling_gen.unmarshalServerInstall
|
|
375
|
+
);
|
|
376
|
+
/**
|
|
377
|
+
* Waits for {@link ServerInstall} to be in a final state.
|
|
378
|
+
*
|
|
379
|
+
* @param request - The request {@link GetServerInstallRequest}
|
|
380
|
+
* @param options - The waiting options
|
|
381
|
+
* @returns A Promise of ServerInstall
|
|
382
|
+
*/
|
|
383
|
+
waitForServerInstall = (request, options) => intervalRetrier.waitForResource(
|
|
384
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
385
|
+
!content_gen.SERVER_INSTALL_TRANSIENT_STATUSES.includes(res.status)
|
|
386
|
+
)),
|
|
387
|
+
this.getServerInstall,
|
|
388
|
+
request,
|
|
389
|
+
options
|
|
390
|
+
);
|
|
391
|
+
/**
|
|
392
|
+
* Cancels the current (running) server installation. Cancels the current
|
|
393
|
+
* server installation associated with the given server ID.
|
|
394
|
+
*
|
|
395
|
+
* @param request - The request {@link CancelServerInstallRequest}
|
|
396
|
+
*/
|
|
397
|
+
cancelServerInstall = (request) => this.client.fetch({
|
|
398
|
+
method: "POST",
|
|
399
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/cancel-install`
|
|
400
|
+
});
|
|
401
|
+
/**
|
|
402
|
+
* Get server default partitioning. Get the server default partitioning schema
|
|
403
|
+
* associated with the given server ID and OS ID.
|
|
404
|
+
*
|
|
405
|
+
* @param request - The request {@link GetServerDefaultPartitioningRequest}
|
|
406
|
+
* @returns A Promise of ServerDefaultPartitioning
|
|
407
|
+
*/
|
|
408
|
+
getServerDefaultPartitioning = (request) => this.client.fetch(
|
|
409
|
+
{
|
|
410
|
+
method: "GET",
|
|
411
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/partitioning/${marshalling.validatePathParam("osId", request.osId)}`
|
|
412
|
+
},
|
|
413
|
+
marshalling_gen.unmarshalServerDefaultPartitioning
|
|
414
|
+
);
|
|
415
|
+
/**
|
|
416
|
+
* Start BMC (Baseboard Management Controller) access for a given baremetal
|
|
417
|
+
* server. Start BMC (Baseboard Management Controller) access associated with
|
|
418
|
+
* the given ID. The BMC (Baseboard Management Controller) access is available
|
|
419
|
+
* one hour after the installation of the server.
|
|
420
|
+
*
|
|
421
|
+
* @param request - The request {@link StartBMCAccessRequest}
|
|
422
|
+
*/
|
|
423
|
+
startBMCAccess = (request) => this.client.fetch({
|
|
424
|
+
body: JSON.stringify(
|
|
425
|
+
marshalling_gen.marshalStartBMCAccessRequest(request, this.client.settings)
|
|
426
|
+
),
|
|
427
|
+
headers: jsonContentHeaders,
|
|
428
|
+
method: "POST",
|
|
429
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/bmc-access`
|
|
430
|
+
});
|
|
431
|
+
/**
|
|
432
|
+
* Get BMC (Baseboard Management Controller) access for a given baremetal
|
|
433
|
+
* server. Get the BMC (Baseboard Management Controller) access associated
|
|
434
|
+
* with the given ID.
|
|
435
|
+
*
|
|
436
|
+
* @param request - The request {@link GetBMCAccessRequest}
|
|
437
|
+
* @returns A Promise of BMCAccess
|
|
438
|
+
*/
|
|
439
|
+
getBMCAccess = (request) => this.client.fetch(
|
|
440
|
+
{
|
|
441
|
+
method: "GET",
|
|
442
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/bmc-access`
|
|
443
|
+
},
|
|
444
|
+
marshalling_gen.unmarshalBMCAccess
|
|
445
|
+
);
|
|
446
|
+
/**
|
|
447
|
+
* Waits for {@link BMCAccess} to be in a final state.
|
|
448
|
+
*
|
|
449
|
+
* @param request - The request {@link GetBMCAccessRequest}
|
|
450
|
+
* @param options - The waiting options
|
|
451
|
+
* @returns A Promise of BMCAccess
|
|
452
|
+
*/
|
|
453
|
+
waitForBMCAccess = (request, options) => intervalRetrier.waitForResource(
|
|
454
|
+
options?.stop ?? ((res) => Promise.resolve(!content_gen.BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status))),
|
|
455
|
+
this.getBMCAccess,
|
|
456
|
+
request,
|
|
457
|
+
options
|
|
458
|
+
);
|
|
459
|
+
/**
|
|
460
|
+
* Stop BMC (Baseboard Management Controller) access for a given baremetal
|
|
461
|
+
* server. Stop BMC (Baseboard Management Controller) access associated with
|
|
462
|
+
* the given ID.
|
|
463
|
+
*
|
|
464
|
+
* @param request - The request {@link StopBMCAccessRequest}
|
|
465
|
+
*/
|
|
466
|
+
stopBMCAccess = (request) => this.client.fetch({
|
|
467
|
+
method: "DELETE",
|
|
468
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/bmc-access`
|
|
469
|
+
});
|
|
470
|
+
pageOfListOffers = (request = {}) => this.client.fetch(
|
|
471
|
+
{
|
|
472
|
+
method: "GET",
|
|
473
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/offers`,
|
|
474
|
+
urlParams: marshalling.urlParams(
|
|
475
|
+
["available_only", request.availableOnly],
|
|
476
|
+
["catalog", request.catalog],
|
|
477
|
+
["commercial_range", request.commercialRange],
|
|
478
|
+
["is_failover_block", request.isFailoverBlock],
|
|
479
|
+
["is_failover_ip", request.isFailoverIp],
|
|
480
|
+
["is_rpn_san", request.isRpnSan],
|
|
481
|
+
["order_by", request.orderBy],
|
|
482
|
+
["page", request.page],
|
|
483
|
+
[
|
|
484
|
+
"page_size",
|
|
485
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
486
|
+
],
|
|
487
|
+
["project_id", request.projectId],
|
|
488
|
+
[
|
|
489
|
+
"sold_in",
|
|
490
|
+
request.soldIn && request.soldIn.length > 0 ? request.soldIn.join(",") : void 0
|
|
491
|
+
]
|
|
492
|
+
)
|
|
493
|
+
},
|
|
494
|
+
marshalling_gen.unmarshalListOffersResponse
|
|
495
|
+
);
|
|
496
|
+
/**
|
|
497
|
+
* List offers. List all available server offers.
|
|
498
|
+
*
|
|
499
|
+
* @param request - The request {@link ListOffersRequest}
|
|
500
|
+
* @returns A Promise of ListOffersResponse
|
|
501
|
+
*/
|
|
502
|
+
listOffers = (request = {}) => resourcePaginator.enrichForPagination("offers", this.pageOfListOffers, request);
|
|
503
|
+
/**
|
|
504
|
+
* Get offer. Return specific offer for the given ID.
|
|
505
|
+
*
|
|
506
|
+
* @param request - The request {@link GetOfferRequest}
|
|
507
|
+
* @returns A Promise of Offer
|
|
508
|
+
*/
|
|
509
|
+
getOffer = (request) => this.client.fetch(
|
|
510
|
+
{
|
|
511
|
+
method: "GET",
|
|
512
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/offers/${marshalling.validatePathParam("offerId", request.offerId)}`,
|
|
513
|
+
urlParams: marshalling.urlParams(["project_id", request.projectId])
|
|
514
|
+
},
|
|
515
|
+
marshalling_gen.unmarshalOffer
|
|
516
|
+
);
|
|
517
|
+
pageOfListOS = (request) => this.client.fetch(
|
|
518
|
+
{
|
|
519
|
+
method: "GET",
|
|
520
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/os`,
|
|
521
|
+
urlParams: marshalling.urlParams(
|
|
522
|
+
["order_by", request.orderBy],
|
|
523
|
+
["page", request.page],
|
|
524
|
+
[
|
|
525
|
+
"page_size",
|
|
526
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
527
|
+
],
|
|
528
|
+
["project_id", request.projectId],
|
|
529
|
+
["server_id", request.serverId],
|
|
530
|
+
["type", request.type]
|
|
531
|
+
)
|
|
532
|
+
},
|
|
533
|
+
marshalling_gen.unmarshalListOSResponse
|
|
534
|
+
);
|
|
535
|
+
/**
|
|
536
|
+
* List all available OS that can be install on a baremetal server.
|
|
537
|
+
*
|
|
538
|
+
* @param request - The request {@link ListOSRequest}
|
|
539
|
+
* @returns A Promise of ListOSResponse
|
|
540
|
+
*/
|
|
541
|
+
listOS = (request) => resourcePaginator.enrichForPagination("os", this.pageOfListOS, request);
|
|
542
|
+
/**
|
|
543
|
+
* Get an OS with a given ID. Return specific OS for the given ID.
|
|
544
|
+
*
|
|
545
|
+
* @param request - The request {@link GetOSRequest}
|
|
546
|
+
* @returns A Promise of OS
|
|
547
|
+
*/
|
|
548
|
+
getOS = (request) => this.client.fetch(
|
|
549
|
+
{
|
|
550
|
+
method: "GET",
|
|
551
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/os/${marshalling.validatePathParam("osId", request.osId)}`,
|
|
552
|
+
urlParams: marshalling.urlParams(
|
|
553
|
+
["project_id", request.projectId],
|
|
554
|
+
["server_id", request.serverId]
|
|
555
|
+
)
|
|
556
|
+
},
|
|
557
|
+
marshalling_gen.unmarshalOS
|
|
558
|
+
);
|
|
559
|
+
/**
|
|
560
|
+
* Update reverse of ip. Update reverse of ip associated with the given ID.
|
|
561
|
+
*
|
|
562
|
+
* @param request - The request {@link UpdateReverseRequest}
|
|
563
|
+
* @returns A Promise of IP
|
|
564
|
+
*/
|
|
565
|
+
updateReverse = (request) => this.client.fetch(
|
|
566
|
+
{
|
|
567
|
+
body: JSON.stringify(
|
|
568
|
+
marshalling_gen.marshalUpdateReverseRequest(request, this.client.settings)
|
|
569
|
+
),
|
|
570
|
+
headers: jsonContentHeaders,
|
|
571
|
+
method: "PATCH",
|
|
572
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/reverses/${marshalling.validatePathParam("ipId", request.ipId)}`
|
|
573
|
+
},
|
|
574
|
+
marshalling_gen.unmarshalIP
|
|
575
|
+
);
|
|
576
|
+
/**
|
|
577
|
+
* Order failover IPs. Order X failover IPs.
|
|
578
|
+
*
|
|
579
|
+
* @param request - The request {@link CreateFailoverIPsRequest}
|
|
580
|
+
* @returns A Promise of CreateFailoverIPsResponse
|
|
581
|
+
*/
|
|
582
|
+
createFailoverIPs = (request) => this.client.fetch(
|
|
583
|
+
{
|
|
584
|
+
body: JSON.stringify(
|
|
585
|
+
marshalling_gen.marshalCreateFailoverIPsRequest(request, this.client.settings)
|
|
586
|
+
),
|
|
587
|
+
headers: jsonContentHeaders,
|
|
588
|
+
method: "POST",
|
|
589
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips`
|
|
590
|
+
},
|
|
591
|
+
marshalling_gen.unmarshalCreateFailoverIPsResponse
|
|
592
|
+
);
|
|
593
|
+
/**
|
|
594
|
+
* Attach failovers on baremetal server. Attach failovers on the server
|
|
595
|
+
* associated with the given ID.
|
|
596
|
+
*
|
|
597
|
+
* @param request - The request {@link AttachFailoverIPsRequest}
|
|
598
|
+
*/
|
|
599
|
+
attachFailoverIPs = (request) => this.client.fetch({
|
|
600
|
+
body: JSON.stringify(
|
|
601
|
+
marshalling_gen.marshalAttachFailoverIPsRequest(request, this.client.settings)
|
|
602
|
+
),
|
|
603
|
+
headers: jsonContentHeaders,
|
|
604
|
+
method: "POST",
|
|
605
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/attach`
|
|
606
|
+
});
|
|
607
|
+
/**
|
|
608
|
+
* Detach failovers on baremetal server. Detach failovers on the server
|
|
609
|
+
* associated with the given ID.
|
|
610
|
+
*
|
|
611
|
+
* @param request - The request {@link DetachFailoverIPsRequest}
|
|
612
|
+
*/
|
|
613
|
+
detachFailoverIPs = (request) => this.client.fetch({
|
|
614
|
+
body: JSON.stringify(
|
|
615
|
+
marshalling_gen.marshalDetachFailoverIPsRequest(request, this.client.settings)
|
|
616
|
+
),
|
|
617
|
+
headers: jsonContentHeaders,
|
|
618
|
+
method: "POST",
|
|
619
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/detach`
|
|
620
|
+
});
|
|
621
|
+
/**
|
|
622
|
+
* Attach a failover IP to a MAC address.
|
|
623
|
+
*
|
|
624
|
+
* @param request - The request {@link AttachFailoverIPToMacAddressRequest}
|
|
625
|
+
* @returns A Promise of IP
|
|
626
|
+
*/
|
|
627
|
+
attachFailoverIPToMacAddress = (request) => this.client.fetch(
|
|
628
|
+
{
|
|
629
|
+
body: JSON.stringify(
|
|
630
|
+
marshalling_gen.marshalAttachFailoverIPToMacAddressRequest(
|
|
631
|
+
request,
|
|
632
|
+
this.client.settings
|
|
633
|
+
)
|
|
634
|
+
),
|
|
635
|
+
headers: jsonContentHeaders,
|
|
636
|
+
method: "POST",
|
|
637
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/${marshalling.validatePathParam("ipId", request.ipId)}/attach-to-mac-address`
|
|
638
|
+
},
|
|
639
|
+
marshalling_gen.unmarshalIP
|
|
640
|
+
);
|
|
641
|
+
/**
|
|
642
|
+
* Detach a failover IP from a MAC address.
|
|
643
|
+
*
|
|
644
|
+
* @param request - The request {@link DetachFailoverIPFromMacAddressRequest}
|
|
645
|
+
* @returns A Promise of IP
|
|
646
|
+
*/
|
|
647
|
+
detachFailoverIPFromMacAddress = (request) => this.client.fetch(
|
|
648
|
+
{
|
|
649
|
+
body: "{}",
|
|
650
|
+
headers: jsonContentHeaders,
|
|
651
|
+
method: "POST",
|
|
652
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/${marshalling.validatePathParam("ipId", request.ipId)}/detach-from-mac-address`
|
|
653
|
+
},
|
|
654
|
+
marshalling_gen.unmarshalIP
|
|
655
|
+
);
|
|
656
|
+
/**
|
|
657
|
+
* Delete a failover server. Delete the failover associated with the given ID.
|
|
658
|
+
*
|
|
659
|
+
* @param request - The request {@link DeleteFailoverIPRequest}
|
|
660
|
+
*/
|
|
661
|
+
deleteFailoverIP = (request) => this.client.fetch({
|
|
662
|
+
method: "DELETE",
|
|
663
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/${marshalling.validatePathParam("ipId", request.ipId)}`
|
|
664
|
+
});
|
|
665
|
+
pageOfListFailoverIPs = (request = {}) => this.client.fetch(
|
|
666
|
+
{
|
|
667
|
+
method: "GET",
|
|
668
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips`,
|
|
669
|
+
urlParams: marshalling.urlParams(
|
|
670
|
+
["only_available", request.onlyAvailable],
|
|
671
|
+
["order_by", request.orderBy],
|
|
672
|
+
["page", request.page],
|
|
673
|
+
[
|
|
674
|
+
"page_size",
|
|
675
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
676
|
+
],
|
|
677
|
+
[
|
|
678
|
+
"project_id",
|
|
679
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
680
|
+
],
|
|
681
|
+
["search", request.search]
|
|
682
|
+
)
|
|
683
|
+
},
|
|
684
|
+
marshalling_gen.unmarshalListFailoverIPsResponse
|
|
685
|
+
);
|
|
686
|
+
/**
|
|
687
|
+
* List failovers for project. List failovers servers for project.
|
|
688
|
+
*
|
|
689
|
+
* @param request - The request {@link ListFailoverIPsRequest}
|
|
690
|
+
* @returns A Promise of ListFailoverIPsResponse
|
|
691
|
+
*/
|
|
692
|
+
listFailoverIPs = (request = {}) => resourcePaginator.enrichForPagination("failoverIps", this.pageOfListFailoverIPs, request);
|
|
693
|
+
/**
|
|
694
|
+
* Get a specific baremetal server. Get the server associated with the given
|
|
695
|
+
* ID.
|
|
696
|
+
*
|
|
697
|
+
* @param request - The request {@link GetFailoverIPRequest}
|
|
698
|
+
* @returns A Promise of FailoverIP
|
|
699
|
+
*/
|
|
700
|
+
getFailoverIP = (request) => this.client.fetch(
|
|
701
|
+
{
|
|
702
|
+
method: "GET",
|
|
703
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/${marshalling.validatePathParam("ipId", request.ipId)}`
|
|
704
|
+
},
|
|
705
|
+
marshalling_gen.unmarshalFailoverIP
|
|
706
|
+
);
|
|
707
|
+
/**
|
|
708
|
+
* Get remaining quota.
|
|
709
|
+
*
|
|
710
|
+
* @param request - The request {@link GetRemainingQuotaRequest}
|
|
711
|
+
* @returns A Promise of GetRemainingQuotaResponse
|
|
712
|
+
*/
|
|
713
|
+
getRemainingQuota = (request = {}) => this.client.fetch(
|
|
714
|
+
{
|
|
715
|
+
method: "GET",
|
|
716
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/remaining-quota`,
|
|
717
|
+
urlParams: marshalling.urlParams(["project_id", request.projectId])
|
|
718
|
+
},
|
|
719
|
+
marshalling_gen.unmarshalGetRemainingQuotaResponse
|
|
720
|
+
);
|
|
721
|
+
/**
|
|
722
|
+
* Get raid. Return raid for the given server ID.
|
|
723
|
+
*
|
|
724
|
+
* @param request - The request {@link GetRaidRequest}
|
|
725
|
+
* @returns A Promise of Raid
|
|
726
|
+
*/
|
|
727
|
+
getRaid = (request) => this.client.fetch(
|
|
728
|
+
{
|
|
729
|
+
method: "GET",
|
|
730
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/raid`
|
|
731
|
+
},
|
|
732
|
+
marshalling_gen.unmarshalRaid
|
|
733
|
+
);
|
|
734
|
+
/**
|
|
735
|
+
* Update RAID. Update RAID associated with the given server ID.
|
|
736
|
+
*
|
|
737
|
+
* @param request - The request {@link UpdateRaidRequest}
|
|
738
|
+
*/
|
|
739
|
+
updateRaid = (request) => this.client.fetch({
|
|
740
|
+
body: JSON.stringify(
|
|
741
|
+
marshalling_gen.marshalUpdateRaidRequest(request, this.client.settings)
|
|
742
|
+
),
|
|
743
|
+
headers: jsonContentHeaders,
|
|
744
|
+
method: "POST",
|
|
745
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/update-raid`
|
|
746
|
+
});
|
|
747
|
+
/**
|
|
748
|
+
* Start in rescue baremetal server. Start in rescue the server associated
|
|
749
|
+
* with the given ID.
|
|
750
|
+
*
|
|
751
|
+
* @param request - The request {@link StartRescueRequest}
|
|
752
|
+
* @returns A Promise of Rescue
|
|
753
|
+
*/
|
|
754
|
+
startRescue = (request) => this.client.fetch(
|
|
755
|
+
{
|
|
756
|
+
body: JSON.stringify(
|
|
757
|
+
marshalling_gen.marshalStartRescueRequest(request, this.client.settings)
|
|
758
|
+
),
|
|
759
|
+
headers: jsonContentHeaders,
|
|
760
|
+
method: "POST",
|
|
761
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/rescue`
|
|
762
|
+
},
|
|
763
|
+
marshalling_gen.unmarshalRescue
|
|
764
|
+
);
|
|
765
|
+
/**
|
|
766
|
+
* Get rescue information. Return rescue information for the given server ID.
|
|
767
|
+
*
|
|
768
|
+
* @param request - The request {@link GetRescueRequest}
|
|
769
|
+
* @returns A Promise of Rescue
|
|
770
|
+
*/
|
|
771
|
+
getRescue = (request) => this.client.fetch(
|
|
772
|
+
{
|
|
773
|
+
method: "GET",
|
|
774
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/rescue`
|
|
775
|
+
},
|
|
776
|
+
marshalling_gen.unmarshalRescue
|
|
777
|
+
);
|
|
778
|
+
/**
|
|
779
|
+
* Stop rescue on baremetal server. Stop rescue on the server associated with
|
|
780
|
+
* the given ID.
|
|
781
|
+
*
|
|
782
|
+
* @param request - The request {@link StopRescueRequest}
|
|
783
|
+
*/
|
|
784
|
+
stopRescue = (request) => this.client.fetch({
|
|
785
|
+
method: "DELETE",
|
|
786
|
+
path: `/dedibox/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/rescue`
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
class BillingAPI extends api.API {
|
|
790
|
+
pageOfListInvoices = (request = {}) => this.client.fetch(
|
|
791
|
+
{
|
|
792
|
+
method: "GET",
|
|
793
|
+
path: `/dedibox/v1/invoices`,
|
|
794
|
+
urlParams: marshalling.urlParams(
|
|
795
|
+
["order_by", request.orderBy],
|
|
796
|
+
["page", request.page],
|
|
797
|
+
[
|
|
798
|
+
"page_size",
|
|
799
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
800
|
+
],
|
|
801
|
+
["project_id", request.projectId]
|
|
802
|
+
)
|
|
803
|
+
},
|
|
804
|
+
marshalling_gen.unmarshalListInvoicesResponse
|
|
805
|
+
);
|
|
806
|
+
listInvoices = (request = {}) => resourcePaginator.enrichForPagination("invoices", this.pageOfListInvoices, request);
|
|
807
|
+
getInvoice = (request) => this.client.fetch(
|
|
808
|
+
{
|
|
809
|
+
method: "GET",
|
|
810
|
+
path: `/dedibox/v1/invoices/${marshalling.validatePathParam("invoiceId", request.invoiceId)}`
|
|
811
|
+
},
|
|
812
|
+
marshalling_gen.unmarshalInvoice
|
|
813
|
+
);
|
|
814
|
+
downloadInvoice = (request) => this.client.fetch({
|
|
815
|
+
method: "GET",
|
|
816
|
+
path: `/dedibox/v1/invoices/${marshalling.validatePathParam("invoiceId", request.invoiceId)}/download`,
|
|
817
|
+
urlParams: marshalling.urlParams(["dl", 1]),
|
|
818
|
+
responseType: "blob"
|
|
819
|
+
});
|
|
820
|
+
pageOfListRefunds = (request = {}) => this.client.fetch(
|
|
821
|
+
{
|
|
822
|
+
method: "GET",
|
|
823
|
+
path: `/dedibox/v1/refunds`,
|
|
824
|
+
urlParams: marshalling.urlParams(
|
|
825
|
+
["order_by", request.orderBy],
|
|
826
|
+
["page", request.page],
|
|
827
|
+
[
|
|
828
|
+
"page_size",
|
|
829
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
830
|
+
],
|
|
831
|
+
["project_id", request.projectId]
|
|
832
|
+
)
|
|
833
|
+
},
|
|
834
|
+
marshalling_gen.unmarshalListRefundsResponse
|
|
835
|
+
);
|
|
836
|
+
listRefunds = (request = {}) => resourcePaginator.enrichForPagination("refunds", this.pageOfListRefunds, request);
|
|
837
|
+
getRefund = (request) => this.client.fetch(
|
|
838
|
+
{
|
|
839
|
+
method: "GET",
|
|
840
|
+
path: `/dedibox/v1/refunds/${marshalling.validatePathParam("refundId", request.refundId)}`
|
|
841
|
+
},
|
|
842
|
+
marshalling_gen.unmarshalRefund
|
|
843
|
+
);
|
|
844
|
+
downloadRefund = (request) => this.client.fetch({
|
|
845
|
+
method: "GET",
|
|
846
|
+
path: `/dedibox/v1/refunds/${marshalling.validatePathParam("refundId", request.refundId)}/download`,
|
|
847
|
+
urlParams: marshalling.urlParams(["dl", 1]),
|
|
848
|
+
responseType: "blob"
|
|
849
|
+
});
|
|
850
|
+
canOrder = (request = {}) => this.client.fetch(
|
|
851
|
+
{
|
|
852
|
+
method: "GET",
|
|
853
|
+
path: `/dedibox/v1/can-order`,
|
|
854
|
+
urlParams: marshalling.urlParams([
|
|
855
|
+
"project_id",
|
|
856
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
857
|
+
])
|
|
858
|
+
},
|
|
859
|
+
marshalling_gen.unmarshalCanOrderResponse
|
|
860
|
+
);
|
|
861
|
+
}
|
|
862
|
+
class IPv6BlockAPI extends api.API {
|
|
863
|
+
/**
|
|
864
|
+
* Get IPv6 block quota. Get IPv6 block quota with the given project ID. /48
|
|
865
|
+
* one per organization. /56 link to your number of server. /64 link to your
|
|
866
|
+
* number of failover IP.
|
|
867
|
+
*
|
|
868
|
+
* @param request - The request {@link IPv6BlockApiGetIPv6BlockQuotasRequest}
|
|
869
|
+
* @returns A Promise of GetIPv6BlockQuotasResponse
|
|
870
|
+
*/
|
|
871
|
+
getIPv6BlockQuotas = (request = {}) => this.client.fetch(
|
|
872
|
+
{
|
|
873
|
+
method: "GET",
|
|
874
|
+
path: `/dedibox/v1/ipv6-block-quotas`,
|
|
875
|
+
urlParams: marshalling.urlParams(["project_id", request.projectId])
|
|
876
|
+
},
|
|
877
|
+
marshalling_gen.unmarshalGetIPv6BlockQuotasResponse
|
|
878
|
+
);
|
|
879
|
+
/**
|
|
880
|
+
* Create IPv6 block for baremetal server. Create IPv6 block associated with
|
|
881
|
+
* the given project ID.
|
|
882
|
+
*
|
|
883
|
+
* @param request - The request {@link IPv6BlockApiCreateIPv6BlockRequest}
|
|
884
|
+
* @returns A Promise of IPv6Block
|
|
885
|
+
*/
|
|
886
|
+
createIPv6Block = (request = {}) => this.client.fetch(
|
|
887
|
+
{
|
|
888
|
+
body: JSON.stringify(
|
|
889
|
+
marshalling_gen.marshalIPv6BlockApiCreateIPv6BlockRequest(
|
|
890
|
+
request,
|
|
891
|
+
this.client.settings
|
|
892
|
+
)
|
|
893
|
+
),
|
|
894
|
+
headers: jsonContentHeaders,
|
|
895
|
+
method: "POST",
|
|
896
|
+
path: `/dedibox/v1/ipv6-block`
|
|
897
|
+
},
|
|
898
|
+
marshalling_gen.unmarshalIPv6Block
|
|
899
|
+
);
|
|
900
|
+
/**
|
|
901
|
+
* Get a specific IPv6 block. Get the IPv6 block associated with the given ID.
|
|
902
|
+
*
|
|
903
|
+
* @param request - The request {@link IPv6BlockApiGetIPv6BlockRequest}
|
|
904
|
+
* @returns A Promise of IPv6Block
|
|
905
|
+
*/
|
|
906
|
+
getIPv6Block = (request = {}) => this.client.fetch(
|
|
907
|
+
{
|
|
908
|
+
method: "GET",
|
|
909
|
+
path: `/dedibox/v1/ipv6-block`,
|
|
910
|
+
urlParams: marshalling.urlParams(["project_id", request.projectId])
|
|
911
|
+
},
|
|
912
|
+
marshalling_gen.unmarshalIPv6Block
|
|
913
|
+
);
|
|
914
|
+
/**
|
|
915
|
+
* Update IPv6 block. Update DNS associated to IPv6 block. If DNS is used,
|
|
916
|
+
* minimum of 2 is necessary and maximum of 5 (no duplicate).
|
|
917
|
+
*
|
|
918
|
+
* @param request - The request {@link IPv6BlockApiUpdateIPv6BlockRequest}
|
|
919
|
+
* @returns A Promise of IPv6Block
|
|
920
|
+
*/
|
|
921
|
+
updateIPv6Block = (request) => this.client.fetch(
|
|
922
|
+
{
|
|
923
|
+
body: JSON.stringify(
|
|
924
|
+
marshalling_gen.marshalIPv6BlockApiUpdateIPv6BlockRequest(
|
|
925
|
+
request,
|
|
926
|
+
this.client.settings
|
|
927
|
+
)
|
|
928
|
+
),
|
|
929
|
+
headers: jsonContentHeaders,
|
|
930
|
+
method: "PATCH",
|
|
931
|
+
path: `/dedibox/v1/ipv6-blocks/${marshalling.validatePathParam("blockId", request.blockId)}`
|
|
932
|
+
},
|
|
933
|
+
marshalling_gen.unmarshalIPv6Block
|
|
934
|
+
);
|
|
935
|
+
/**
|
|
936
|
+
* Delete IPv6 block. Delete IPv6 block subnet with the given ID.
|
|
937
|
+
*
|
|
938
|
+
* @param request - The request {@link IPv6BlockApiDeleteIPv6BlockRequest}
|
|
939
|
+
*/
|
|
940
|
+
deleteIPv6Block = (request) => this.client.fetch({
|
|
941
|
+
method: "DELETE",
|
|
942
|
+
path: `/dedibox/v1/ipv6-blocks/${marshalling.validatePathParam("blockId", request.blockId)}`
|
|
943
|
+
});
|
|
944
|
+
/**
|
|
945
|
+
* Create IPv6 block subnet. Create IPv6 block subnet for the given IP ID. /48
|
|
946
|
+
* could create subnet in /56 (quota link to your number of server). /56 could
|
|
947
|
+
* create subnet in /64 (quota link to your number of failover IP).
|
|
948
|
+
*
|
|
949
|
+
* @param request - The request
|
|
950
|
+
* {@link IPv6BlockApiCreateIPv6BlockSubnetRequest}
|
|
951
|
+
* @returns A Promise of IPv6Block
|
|
952
|
+
*/
|
|
953
|
+
createIPv6BlockSubnet = (request) => this.client.fetch(
|
|
954
|
+
{
|
|
955
|
+
body: JSON.stringify(
|
|
956
|
+
marshalling_gen.marshalIPv6BlockApiCreateIPv6BlockSubnetRequest(
|
|
957
|
+
request,
|
|
958
|
+
this.client.settings
|
|
959
|
+
)
|
|
960
|
+
),
|
|
961
|
+
headers: jsonContentHeaders,
|
|
962
|
+
method: "POST",
|
|
963
|
+
path: `/dedibox/v1/ipv6-blocks/${marshalling.validatePathParam("blockId", request.blockId)}/subnets`
|
|
964
|
+
},
|
|
965
|
+
marshalling_gen.unmarshalIPv6Block
|
|
966
|
+
);
|
|
967
|
+
/**
|
|
968
|
+
* List available IPv6 block subnets. List all available IPv6 block subnets
|
|
969
|
+
* for given IP ID.
|
|
970
|
+
*
|
|
971
|
+
* @param request - The request
|
|
972
|
+
* {@link IPv6BlockApiListIPv6BlockSubnetsAvailableRequest}
|
|
973
|
+
* @returns A Promise of ListIPv6BlockSubnetsAvailableResponse
|
|
974
|
+
*/
|
|
975
|
+
listIPv6BlockSubnetsAvailable = (request) => this.client.fetch(
|
|
976
|
+
{
|
|
977
|
+
method: "GET",
|
|
978
|
+
path: `/dedibox/v1/ipv6-blocks/${marshalling.validatePathParam("blockId", request.blockId)}/subnets`
|
|
979
|
+
},
|
|
980
|
+
marshalling_gen.unmarshalListIPv6BlockSubnetsAvailableResponse
|
|
981
|
+
);
|
|
982
|
+
}
|
|
983
|
+
class RpnAPI extends api.API {
|
|
984
|
+
pageOfListRpnServerCapabilities = (request = {}) => this.client.fetch(
|
|
985
|
+
{
|
|
986
|
+
method: "GET",
|
|
987
|
+
path: `/dedibox/v1/rpn/server-capabilities`,
|
|
988
|
+
urlParams: marshalling.urlParams(
|
|
989
|
+
["order_by", request.orderBy],
|
|
990
|
+
["page", request.page],
|
|
991
|
+
[
|
|
992
|
+
"page_size",
|
|
993
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
994
|
+
],
|
|
995
|
+
["project_id", request.projectId]
|
|
996
|
+
)
|
|
997
|
+
},
|
|
998
|
+
marshalling_gen.unmarshalListRpnServerCapabilitiesResponse
|
|
999
|
+
);
|
|
1000
|
+
listRpnServerCapabilities = (request = {}) => resourcePaginator.enrichForPagination(
|
|
1001
|
+
"servers",
|
|
1002
|
+
this.pageOfListRpnServerCapabilities,
|
|
1003
|
+
request
|
|
1004
|
+
);
|
|
1005
|
+
getRpnStatus = (request = {}) => this.client.fetch(
|
|
1006
|
+
{
|
|
1007
|
+
method: "GET",
|
|
1008
|
+
path: `/dedibox/v1/rpn/status`,
|
|
1009
|
+
urlParams: marshalling.urlParams(
|
|
1010
|
+
["project_id", request.projectId],
|
|
1011
|
+
["rpnv1_group_id", request.rpnv1GroupId],
|
|
1012
|
+
["rpnv2_group_id", request.rpnv2GroupId]
|
|
1013
|
+
)
|
|
1014
|
+
},
|
|
1015
|
+
marshalling_gen.unmarshalGetRpnStatusResponse
|
|
1016
|
+
);
|
|
1017
|
+
}
|
|
1018
|
+
class RpnSanAPI extends api.API {
|
|
1019
|
+
pageOfListRpnSans = (request = {}) => this.client.fetch(
|
|
1020
|
+
{
|
|
1021
|
+
method: "GET",
|
|
1022
|
+
path: `/dedibox/v1/rpn-sans`,
|
|
1023
|
+
urlParams: marshalling.urlParams(
|
|
1024
|
+
["order_by", request.orderBy],
|
|
1025
|
+
["page", request.page],
|
|
1026
|
+
[
|
|
1027
|
+
"page_size",
|
|
1028
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1029
|
+
],
|
|
1030
|
+
["project_id", request.projectId]
|
|
1031
|
+
)
|
|
1032
|
+
},
|
|
1033
|
+
marshalling_gen.unmarshalListRpnSansResponse
|
|
1034
|
+
);
|
|
1035
|
+
listRpnSans = (request = {}) => resourcePaginator.enrichForPagination("rpnSans", this.pageOfListRpnSans, request);
|
|
1036
|
+
getRpnSan = (request) => this.client.fetch(
|
|
1037
|
+
{
|
|
1038
|
+
method: "GET",
|
|
1039
|
+
path: `/dedibox/v1/rpn-sans/${marshalling.validatePathParam("rpnSanId", request.rpnSanId)}`
|
|
1040
|
+
},
|
|
1041
|
+
marshalling_gen.unmarshalRpnSan
|
|
1042
|
+
);
|
|
1043
|
+
/**
|
|
1044
|
+
* Waits for {@link RpnSan} to be in a final state.
|
|
1045
|
+
*
|
|
1046
|
+
* @param request - The request {@link RpnSanApiGetRpnSanRequest}
|
|
1047
|
+
* @param options - The waiting options
|
|
1048
|
+
* @returns A Promise of RpnSan
|
|
1049
|
+
*/
|
|
1050
|
+
waitForRpnSan = (request, options) => intervalRetrier.waitForResource(
|
|
1051
|
+
options?.stop ?? ((res) => Promise.resolve(!content_gen.RPN_SAN_TRANSIENT_STATUSES.includes(res.status))),
|
|
1052
|
+
this.getRpnSan,
|
|
1053
|
+
request,
|
|
1054
|
+
options
|
|
1055
|
+
);
|
|
1056
|
+
deleteRpnSan = (request) => this.client.fetch({
|
|
1057
|
+
method: "DELETE",
|
|
1058
|
+
path: `/dedibox/v1/rpn-sans/${marshalling.validatePathParam("rpnSanId", request.rpnSanId)}`
|
|
1059
|
+
});
|
|
1060
|
+
createRpnSan = (request) => this.client.fetch(
|
|
1061
|
+
{
|
|
1062
|
+
body: JSON.stringify(
|
|
1063
|
+
marshalling_gen.marshalRpnSanApiCreateRpnSanRequest(request, this.client.settings)
|
|
1064
|
+
),
|
|
1065
|
+
headers: jsonContentHeaders,
|
|
1066
|
+
method: "POST",
|
|
1067
|
+
path: `/dedibox/v1/rpn-sans`
|
|
1068
|
+
},
|
|
1069
|
+
marshalling_gen.unmarshalService
|
|
1070
|
+
);
|
|
1071
|
+
listIps = (request) => this.client.fetch(
|
|
1072
|
+
{
|
|
1073
|
+
method: "GET",
|
|
1074
|
+
path: `/dedibox/v1/rpn-sans/${marshalling.validatePathParam("rpnSanId", request.rpnSanId)}/ips`,
|
|
1075
|
+
urlParams: marshalling.urlParams(["type", request.type])
|
|
1076
|
+
},
|
|
1077
|
+
marshalling_gen.unmarshalListIpsResponse
|
|
1078
|
+
);
|
|
1079
|
+
addIp = (request) => this.client.fetch({
|
|
1080
|
+
body: JSON.stringify(
|
|
1081
|
+
marshalling_gen.marshalRpnSanApiAddIpRequest(request, this.client.settings)
|
|
1082
|
+
),
|
|
1083
|
+
headers: jsonContentHeaders,
|
|
1084
|
+
method: "POST",
|
|
1085
|
+
path: `/dedibox/v1/rpn-sans/${marshalling.validatePathParam("rpnSanId", request.rpnSanId)}/ips`
|
|
1086
|
+
});
|
|
1087
|
+
removeIp = (request) => this.client.fetch({
|
|
1088
|
+
body: JSON.stringify(
|
|
1089
|
+
marshalling_gen.marshalRpnSanApiRemoveIpRequest(request, this.client.settings)
|
|
1090
|
+
),
|
|
1091
|
+
headers: jsonContentHeaders,
|
|
1092
|
+
method: "DELETE",
|
|
1093
|
+
path: `/dedibox/v1/rpn-sans/${marshalling.validatePathParam("rpnSanId", request.rpnSanId)}/ips`
|
|
1094
|
+
});
|
|
1095
|
+
listAvailableIps = (request) => this.client.fetch(
|
|
1096
|
+
{
|
|
1097
|
+
method: "GET",
|
|
1098
|
+
path: `/dedibox/v1/rpn-sans/${marshalling.validatePathParam("rpnSanId", request.rpnSanId)}/available-ips`,
|
|
1099
|
+
urlParams: marshalling.urlParams(["type", request.type])
|
|
1100
|
+
},
|
|
1101
|
+
marshalling_gen.unmarshalListIpsResponse
|
|
1102
|
+
);
|
|
1103
|
+
}
|
|
1104
|
+
class RpnV1API extends api.API {
|
|
1105
|
+
pageOfListRpnGroups = (request = {}) => this.client.fetch(
|
|
1106
|
+
{
|
|
1107
|
+
method: "GET",
|
|
1108
|
+
path: `/dedibox/v1/rpnv1/groups`,
|
|
1109
|
+
urlParams: marshalling.urlParams(
|
|
1110
|
+
["order_by", request.orderBy],
|
|
1111
|
+
["page", request.page],
|
|
1112
|
+
[
|
|
1113
|
+
"page_size",
|
|
1114
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1115
|
+
],
|
|
1116
|
+
["project_id", request.projectId]
|
|
1117
|
+
)
|
|
1118
|
+
},
|
|
1119
|
+
marshalling_gen.unmarshalListRpnGroupsResponse
|
|
1120
|
+
);
|
|
1121
|
+
listRpnGroups = (request = {}) => resourcePaginator.enrichForPagination("rpnGroups", this.pageOfListRpnGroups, request);
|
|
1122
|
+
getRpnGroup = (request) => this.client.fetch(
|
|
1123
|
+
{
|
|
1124
|
+
method: "GET",
|
|
1125
|
+
path: `/dedibox/v1/rpnv1/groups/${marshalling.validatePathParam("groupId", request.groupId)}`
|
|
1126
|
+
},
|
|
1127
|
+
marshalling_gen.unmarshalRpnGroup
|
|
1128
|
+
);
|
|
1129
|
+
createRpnGroup = (request) => this.client.fetch(
|
|
1130
|
+
{
|
|
1131
|
+
body: JSON.stringify(
|
|
1132
|
+
marshalling_gen.marshalRpnV1ApiCreateRpnGroupRequest(request, this.client.settings)
|
|
1133
|
+
),
|
|
1134
|
+
headers: jsonContentHeaders,
|
|
1135
|
+
method: "POST",
|
|
1136
|
+
path: `/dedibox/v1/rpnv1/groups`
|
|
1137
|
+
},
|
|
1138
|
+
marshalling_gen.unmarshalRpnGroup
|
|
1139
|
+
);
|
|
1140
|
+
deleteRpnGroup = (request) => this.client.fetch({
|
|
1141
|
+
method: "DELETE",
|
|
1142
|
+
path: `/dedibox/v1/rpnv1/groups/${marshalling.validatePathParam("groupId", request.groupId)}`
|
|
1143
|
+
});
|
|
1144
|
+
updateRpnGroupName = (request) => this.client.fetch(
|
|
1145
|
+
{
|
|
1146
|
+
body: JSON.stringify(
|
|
1147
|
+
marshalling_gen.marshalRpnV1ApiUpdateRpnGroupNameRequest(
|
|
1148
|
+
request,
|
|
1149
|
+
this.client.settings
|
|
1150
|
+
)
|
|
1151
|
+
),
|
|
1152
|
+
headers: jsonContentHeaders,
|
|
1153
|
+
method: "PATCH",
|
|
1154
|
+
path: `/dedibox/v1/rpnv1/groups/${marshalling.validatePathParam("groupId", request.groupId)}`
|
|
1155
|
+
},
|
|
1156
|
+
marshalling_gen.unmarshalRpnGroup
|
|
1157
|
+
);
|
|
1158
|
+
pageOfListRpnGroupMembers = (request) => this.client.fetch(
|
|
1159
|
+
{
|
|
1160
|
+
method: "GET",
|
|
1161
|
+
path: `/dedibox/v1/rpnv1/groups/${marshalling.validatePathParam("groupId", request.groupId)}/members`,
|
|
1162
|
+
urlParams: marshalling.urlParams(
|
|
1163
|
+
["order_by", request.orderBy],
|
|
1164
|
+
["page", request.page],
|
|
1165
|
+
[
|
|
1166
|
+
"page_size",
|
|
1167
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1168
|
+
],
|
|
1169
|
+
["project_id", request.projectId]
|
|
1170
|
+
)
|
|
1171
|
+
},
|
|
1172
|
+
marshalling_gen.unmarshalListRpnGroupMembersResponse
|
|
1173
|
+
);
|
|
1174
|
+
listRpnGroupMembers = (request) => resourcePaginator.enrichForPagination("members", this.pageOfListRpnGroupMembers, request);
|
|
1175
|
+
rpnGroupInvite = (request) => this.client.fetch({
|
|
1176
|
+
body: JSON.stringify(
|
|
1177
|
+
marshalling_gen.marshalRpnV1ApiRpnGroupInviteRequest(request, this.client.settings)
|
|
1178
|
+
),
|
|
1179
|
+
headers: jsonContentHeaders,
|
|
1180
|
+
method: "POST",
|
|
1181
|
+
path: `/dedibox/v1/rpnv1/groups/${marshalling.validatePathParam("groupId", request.groupId)}/invite`
|
|
1182
|
+
});
|
|
1183
|
+
leaveRpnGroup = (request) => this.client.fetch({
|
|
1184
|
+
body: JSON.stringify(
|
|
1185
|
+
marshalling_gen.marshalRpnV1ApiLeaveRpnGroupRequest(request, this.client.settings)
|
|
1186
|
+
),
|
|
1187
|
+
headers: jsonContentHeaders,
|
|
1188
|
+
method: "POST",
|
|
1189
|
+
path: `/dedibox/v1/rpnv1/groups/${marshalling.validatePathParam("groupId", request.groupId)}/leave`
|
|
1190
|
+
});
|
|
1191
|
+
addRpnGroupMembers = (request) => this.client.fetch(
|
|
1192
|
+
{
|
|
1193
|
+
body: JSON.stringify(
|
|
1194
|
+
marshalling_gen.marshalRpnV1ApiAddRpnGroupMembersRequest(
|
|
1195
|
+
request,
|
|
1196
|
+
this.client.settings
|
|
1197
|
+
)
|
|
1198
|
+
),
|
|
1199
|
+
headers: jsonContentHeaders,
|
|
1200
|
+
method: "POST",
|
|
1201
|
+
path: `/dedibox/v1/rpnv1/groups/${marshalling.validatePathParam("groupId", request.groupId)}/members`
|
|
1202
|
+
},
|
|
1203
|
+
marshalling_gen.unmarshalRpnGroup
|
|
1204
|
+
);
|
|
1205
|
+
deleteRpnGroupMembers = (request) => this.client.fetch(
|
|
1206
|
+
{
|
|
1207
|
+
body: JSON.stringify(
|
|
1208
|
+
marshalling_gen.marshalRpnV1ApiDeleteRpnGroupMembersRequest(
|
|
1209
|
+
request,
|
|
1210
|
+
this.client.settings
|
|
1211
|
+
)
|
|
1212
|
+
),
|
|
1213
|
+
headers: jsonContentHeaders,
|
|
1214
|
+
method: "DELETE",
|
|
1215
|
+
path: `/dedibox/v1/rpnv1/groups/${marshalling.validatePathParam("groupId", request.groupId)}/members`
|
|
1216
|
+
},
|
|
1217
|
+
marshalling_gen.unmarshalRpnGroup
|
|
1218
|
+
);
|
|
1219
|
+
pageOfListRpnCapableServers = (request = {}) => this.client.fetch(
|
|
1220
|
+
{
|
|
1221
|
+
method: "GET",
|
|
1222
|
+
path: `/dedibox/v1/rpnv1/capable-servers`,
|
|
1223
|
+
urlParams: marshalling.urlParams(
|
|
1224
|
+
["order_by", request.orderBy],
|
|
1225
|
+
["page", request.page],
|
|
1226
|
+
[
|
|
1227
|
+
"page_size",
|
|
1228
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1229
|
+
],
|
|
1230
|
+
["project_id", request.projectId]
|
|
1231
|
+
)
|
|
1232
|
+
},
|
|
1233
|
+
marshalling_gen.unmarshalListRpnCapableServersResponse
|
|
1234
|
+
);
|
|
1235
|
+
listRpnCapableServers = (request = {}) => resourcePaginator.enrichForPagination("servers", this.pageOfListRpnCapableServers, request);
|
|
1236
|
+
pageOfListRpnCapableSanServers = (request = {}) => this.client.fetch(
|
|
1237
|
+
{
|
|
1238
|
+
method: "GET",
|
|
1239
|
+
path: `/dedibox/v1/rpnv1/capable-san-servers`,
|
|
1240
|
+
urlParams: marshalling.urlParams(
|
|
1241
|
+
["order_by", request.orderBy],
|
|
1242
|
+
["page", request.page],
|
|
1243
|
+
[
|
|
1244
|
+
"page_size",
|
|
1245
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1246
|
+
],
|
|
1247
|
+
["project_id", request.projectId]
|
|
1248
|
+
)
|
|
1249
|
+
},
|
|
1250
|
+
marshalling_gen.unmarshalListRpnCapableSanServersResponse
|
|
1251
|
+
);
|
|
1252
|
+
listRpnCapableSanServers = (request = {}) => resourcePaginator.enrichForPagination(
|
|
1253
|
+
"sanServers",
|
|
1254
|
+
this.pageOfListRpnCapableSanServers,
|
|
1255
|
+
request
|
|
1256
|
+
);
|
|
1257
|
+
pageOfListRpnInvites = (request = {}) => this.client.fetch(
|
|
1258
|
+
{
|
|
1259
|
+
method: "GET",
|
|
1260
|
+
path: `/dedibox/v1/rpnv1/invites`,
|
|
1261
|
+
urlParams: marshalling.urlParams(
|
|
1262
|
+
["order_by", request.orderBy],
|
|
1263
|
+
["page", request.page],
|
|
1264
|
+
[
|
|
1265
|
+
"page_size",
|
|
1266
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1267
|
+
],
|
|
1268
|
+
[
|
|
1269
|
+
"project_id",
|
|
1270
|
+
request.projectId ?? this.client.settings.defaultProjectId
|
|
1271
|
+
]
|
|
1272
|
+
)
|
|
1273
|
+
},
|
|
1274
|
+
marshalling_gen.unmarshalListRpnInvitesResponse
|
|
1275
|
+
);
|
|
1276
|
+
listRpnInvites = (request = {}) => resourcePaginator.enrichForPagination("members", this.pageOfListRpnInvites, request);
|
|
1277
|
+
acceptRpnInvite = (request) => this.client.fetch({
|
|
1278
|
+
method: "POST",
|
|
1279
|
+
path: `/dedibox/v1/rpnv1/invites/${marshalling.validatePathParam("memberId", request.memberId)}/accept`
|
|
1280
|
+
});
|
|
1281
|
+
refuseRpnInvite = (request) => this.client.fetch({
|
|
1282
|
+
method: "POST",
|
|
1283
|
+
path: `/dedibox/v1/rpnv1/invites/${marshalling.validatePathParam("memberId", request.memberId)}/refuse`
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1286
|
+
class RpnV2API extends api.API {
|
|
1287
|
+
pageOfListRpnV2Groups = (request = {}) => this.client.fetch(
|
|
1288
|
+
{
|
|
1289
|
+
method: "GET",
|
|
1290
|
+
path: `/dedibox/v1/rpnv2/groups`,
|
|
1291
|
+
urlParams: marshalling.urlParams(
|
|
1292
|
+
["order_by", request.orderBy],
|
|
1293
|
+
["page", request.page],
|
|
1294
|
+
[
|
|
1295
|
+
"page_size",
|
|
1296
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1297
|
+
],
|
|
1298
|
+
["project_id", request.projectId]
|
|
1299
|
+
)
|
|
1300
|
+
},
|
|
1301
|
+
marshalling_gen.unmarshalListRpnV2GroupsResponse
|
|
1302
|
+
);
|
|
1303
|
+
listRpnV2Groups = (request = {}) => resourcePaginator.enrichForPagination("rpnGroups", this.pageOfListRpnV2Groups, request);
|
|
1304
|
+
pageOfListRpnV2Members = (request) => this.client.fetch(
|
|
1305
|
+
{
|
|
1306
|
+
method: "GET",
|
|
1307
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}/members`,
|
|
1308
|
+
urlParams: marshalling.urlParams(
|
|
1309
|
+
["order_by", request.orderBy],
|
|
1310
|
+
["page", request.page],
|
|
1311
|
+
[
|
|
1312
|
+
"page_size",
|
|
1313
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1314
|
+
],
|
|
1315
|
+
["type", request.type]
|
|
1316
|
+
)
|
|
1317
|
+
},
|
|
1318
|
+
marshalling_gen.unmarshalListRpnV2MembersResponse
|
|
1319
|
+
);
|
|
1320
|
+
listRpnV2Members = (request) => resourcePaginator.enrichForPagination("members", this.pageOfListRpnV2Members, request);
|
|
1321
|
+
getRpnV2Group = (request) => this.client.fetch(
|
|
1322
|
+
{
|
|
1323
|
+
method: "GET",
|
|
1324
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}`
|
|
1325
|
+
},
|
|
1326
|
+
marshalling_gen.unmarshalRpnV2Group
|
|
1327
|
+
);
|
|
1328
|
+
/**
|
|
1329
|
+
* Waits for {@link RpnV2Group} to be in a final state.
|
|
1330
|
+
*
|
|
1331
|
+
* @param request - The request {@link RpnV2ApiGetRpnV2GroupRequest}
|
|
1332
|
+
* @param options - The waiting options
|
|
1333
|
+
* @returns A Promise of RpnV2Group
|
|
1334
|
+
*/
|
|
1335
|
+
waitForRpnV2Group = (request, options) => intervalRetrier.waitForResource(
|
|
1336
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
1337
|
+
!content_gen.RPN_V2_GROUP_TRANSIENT_STATUSES.includes(res.status)
|
|
1338
|
+
)),
|
|
1339
|
+
this.getRpnV2Group,
|
|
1340
|
+
request,
|
|
1341
|
+
options
|
|
1342
|
+
);
|
|
1343
|
+
createRpnV2Group = (request) => this.client.fetch(
|
|
1344
|
+
{
|
|
1345
|
+
body: JSON.stringify(
|
|
1346
|
+
marshalling_gen.marshalRpnV2ApiCreateRpnV2GroupRequest(request, this.client.settings)
|
|
1347
|
+
),
|
|
1348
|
+
headers: jsonContentHeaders,
|
|
1349
|
+
method: "POST",
|
|
1350
|
+
path: `/dedibox/v1/rpnv2/groups`
|
|
1351
|
+
},
|
|
1352
|
+
marshalling_gen.unmarshalRpnV2Group
|
|
1353
|
+
);
|
|
1354
|
+
deleteRpnV2Group = (request) => this.client.fetch({
|
|
1355
|
+
method: "DELETE",
|
|
1356
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}`
|
|
1357
|
+
});
|
|
1358
|
+
updateRpnV2GroupName = (request) => this.client.fetch(
|
|
1359
|
+
{
|
|
1360
|
+
body: JSON.stringify(
|
|
1361
|
+
marshalling_gen.marshalRpnV2ApiUpdateRpnV2GroupNameRequest(
|
|
1362
|
+
request,
|
|
1363
|
+
this.client.settings
|
|
1364
|
+
)
|
|
1365
|
+
),
|
|
1366
|
+
headers: jsonContentHeaders,
|
|
1367
|
+
method: "PATCH",
|
|
1368
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}`
|
|
1369
|
+
},
|
|
1370
|
+
marshalling_gen.unmarshalRpnV2Group
|
|
1371
|
+
);
|
|
1372
|
+
addRpnV2Members = (request) => this.client.fetch({
|
|
1373
|
+
body: JSON.stringify(
|
|
1374
|
+
marshalling_gen.marshalRpnV2ApiAddRpnV2MembersRequest(request, this.client.settings)
|
|
1375
|
+
),
|
|
1376
|
+
headers: jsonContentHeaders,
|
|
1377
|
+
method: "POST",
|
|
1378
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}/members`
|
|
1379
|
+
});
|
|
1380
|
+
deleteRpnV2Members = (request) => this.client.fetch({
|
|
1381
|
+
body: JSON.stringify(
|
|
1382
|
+
marshalling_gen.marshalRpnV2ApiDeleteRpnV2MembersRequest(request, this.client.settings)
|
|
1383
|
+
),
|
|
1384
|
+
headers: jsonContentHeaders,
|
|
1385
|
+
method: "DELETE",
|
|
1386
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}/members`
|
|
1387
|
+
});
|
|
1388
|
+
pageOfListRpnV2CapableResources = (request = {}) => this.client.fetch(
|
|
1389
|
+
{
|
|
1390
|
+
method: "GET",
|
|
1391
|
+
path: `/dedibox/v1/rpnv2/groups/capable`,
|
|
1392
|
+
urlParams: marshalling.urlParams(
|
|
1393
|
+
["order_by", request.orderBy],
|
|
1394
|
+
["page", request.page],
|
|
1395
|
+
[
|
|
1396
|
+
"page_size",
|
|
1397
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1398
|
+
],
|
|
1399
|
+
["project_id", request.projectId]
|
|
1400
|
+
)
|
|
1401
|
+
},
|
|
1402
|
+
marshalling_gen.unmarshalListRpnV2CapableResourcesResponse
|
|
1403
|
+
);
|
|
1404
|
+
listRpnV2CapableResources = (request = {}) => resourcePaginator.enrichForPagination(
|
|
1405
|
+
"servers",
|
|
1406
|
+
this.pageOfListRpnV2CapableResources,
|
|
1407
|
+
request
|
|
1408
|
+
);
|
|
1409
|
+
pageOfListRpnV2GroupLogs = (request) => this.client.fetch(
|
|
1410
|
+
{
|
|
1411
|
+
method: "GET",
|
|
1412
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}/logs`,
|
|
1413
|
+
urlParams: marshalling.urlParams(
|
|
1414
|
+
["order_by", request.orderBy],
|
|
1415
|
+
["page", request.page],
|
|
1416
|
+
[
|
|
1417
|
+
"page_size",
|
|
1418
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
1419
|
+
]
|
|
1420
|
+
)
|
|
1421
|
+
},
|
|
1422
|
+
marshalling_gen.unmarshalListRpnV2GroupLogsResponse
|
|
1423
|
+
);
|
|
1424
|
+
listRpnV2GroupLogs = (request) => resourcePaginator.enrichForPagination("logs", this.pageOfListRpnV2GroupLogs, request);
|
|
1425
|
+
updateRpnV2VlanForMembers = (request) => this.client.fetch({
|
|
1426
|
+
body: JSON.stringify(
|
|
1427
|
+
marshalling_gen.marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest(
|
|
1428
|
+
request,
|
|
1429
|
+
this.client.settings
|
|
1430
|
+
)
|
|
1431
|
+
),
|
|
1432
|
+
headers: jsonContentHeaders,
|
|
1433
|
+
method: "PATCH",
|
|
1434
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}/vlan`
|
|
1435
|
+
});
|
|
1436
|
+
enableRpnV2GroupCompatibility = (request) => this.client.fetch({
|
|
1437
|
+
body: JSON.stringify(
|
|
1438
|
+
marshalling_gen.marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest(
|
|
1439
|
+
request,
|
|
1440
|
+
this.client.settings
|
|
1441
|
+
)
|
|
1442
|
+
),
|
|
1443
|
+
headers: jsonContentHeaders,
|
|
1444
|
+
method: "POST",
|
|
1445
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}/enable-compatibility`
|
|
1446
|
+
});
|
|
1447
|
+
disableRpnV2GroupCompatibility = (request) => this.client.fetch({
|
|
1448
|
+
body: "{}",
|
|
1449
|
+
headers: jsonContentHeaders,
|
|
1450
|
+
method: "POST",
|
|
1451
|
+
path: `/dedibox/v1/rpnv2/groups/${marshalling.validatePathParam("groupId", request.groupId)}/disable-compatibility`
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
exports.API = API;
|
|
1455
|
+
exports.BillingAPI = BillingAPI;
|
|
1456
|
+
exports.IPv6BlockAPI = IPv6BlockAPI;
|
|
1457
|
+
exports.RpnAPI = RpnAPI;
|
|
1458
|
+
exports.RpnSanAPI = RpnSanAPI;
|
|
1459
|
+
exports.RpnV1API = RpnV1API;
|
|
1460
|
+
exports.RpnV2API = RpnV2API;
|