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