@scaleway/sdk 2.26.0 → 2.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/account/index.cjs +6 -0
- package/dist/api/account/index.d.ts +2 -0
- package/dist/api/account/index.js +6 -4
- package/dist/api/account/v2/api.gen.cjs +116 -0
- package/dist/api/account/v2/api.gen.d.ts +67 -0
- package/dist/api/account/v2/api.gen.js +61 -44
- package/dist/api/account/v2/index.gen.cjs +4 -0
- package/dist/api/account/v2/index.gen.d.ts +2 -0
- package/dist/api/account/v2/index.gen.js +4 -4
- package/dist/api/account/v2/marshalling.gen.cjs +44 -0
- package/dist/api/account/v2/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v2/marshalling.gen.js +18 -13
- package/dist/api/account/v2/types.gen.d.ts +62 -0
- package/dist/api/account/v3/api.gen.cjs +106 -0
- package/dist/api/account/v3/api.gen.d.ts +57 -0
- package/dist/api/account/v3/api.gen.js +61 -44
- package/dist/api/account/v3/index.gen.cjs +6 -0
- package/dist/api/account/v3/index.gen.d.ts +3 -0
- package/dist/api/account/v3/index.gen.js +6 -6
- package/dist/api/account/v3/marshalling.gen.cjs +44 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v3/marshalling.gen.js +18 -13
- package/dist/api/account/v3/types.gen.d.ts +62 -0
- package/dist/api/account/v3/validation-rules.gen.cjs +39 -0
- package/dist/api/account/v3/validation-rules.gen.d.ts +34 -0
- package/dist/api/account/v3/validation-rules.gen.js +5 -5
- package/dist/api/applesilicon/index.cjs +4 -0
- package/dist/api/applesilicon/index.d.ts +1 -0
- package/dist/api/applesilicon/index.js +4 -2
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +222 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +123 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.js +125 -83
- package/dist/api/applesilicon/v1alpha1/content.gen.cjs +11 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.js +11 -7
- package/dist/api/applesilicon/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.js +6 -5
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +147 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +56 -32
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +203 -0
- package/dist/api/baremetal/index.cjs +4 -0
- package/dist/api/baremetal/index.d.ts +1 -0
- package/dist/api/baremetal/index.js +4 -2
- package/dist/api/baremetal/v1/api.gen.cjs +575 -0
- package/dist/api/baremetal/v1/api.gen.d.ts +287 -0
- package/dist/api/baremetal/v1/api.gen.js +353 -205
- package/dist/api/baremetal/v1/api.utils.cjs +36 -0
- package/dist/api/baremetal/v1/api.utils.d.ts +13 -0
- package/dist/api/baremetal/v1/api.utils.js +27 -18
- package/dist/api/baremetal/v1/content.gen.cjs +18 -0
- package/dist/api/baremetal/v1/content.gen.d.ts +7 -0
- package/dist/api/baremetal/v1/content.gen.js +18 -13
- package/dist/api/baremetal/v1/index.cjs +12 -0
- package/dist/api/baremetal/v1/index.d.ts +5 -0
- package/dist/api/baremetal/v1/index.gen.d.ts +4 -0
- package/dist/api/baremetal/v1/index.js +12 -5
- package/dist/api/baremetal/v1/marshalling.gen.cjs +502 -0
- package/dist/api/baremetal/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/baremetal/v1/marshalling.gen.js +186 -90
- package/dist/api/baremetal/v1/types.gen.d.ts +682 -0
- package/dist/api/baremetal/v1/validation-rules.gen.cjs +116 -0
- package/dist/api/baremetal/v1/validation-rules.gen.d.ts +104 -0
- package/dist/api/baremetal/v1/validation-rules.gen.js +12 -5
- package/dist/api/billing/index.cjs +6 -0
- package/dist/api/billing/index.d.ts +2 -0
- package/dist/api/billing/index.js +6 -4
- package/dist/api/billing/v2alpha1/api.gen.cjs +92 -0
- package/dist/api/billing/v2alpha1/api.gen.d.ts +51 -0
- package/dist/api/billing/v2alpha1/api.gen.js +60 -39
- package/dist/api/billing/v2alpha1/index.gen.cjs +4 -0
- package/dist/api/billing/v2alpha1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2alpha1/index.gen.js +4 -4
- package/dist/api/billing/v2alpha1/marshalling.gen.cjs +117 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.d.ts +4 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.js +48 -29
- package/dist/api/billing/v2alpha1/types.gen.d.ts +136 -0
- package/dist/api/billing/v2beta1/api.gen.cjs +175 -0
- package/dist/api/billing/v2beta1/api.gen.d.ts +104 -0
- package/dist/api/billing/v2beta1/api.gen.js +122 -65
- package/dist/api/billing/v2beta1/index.gen.cjs +4 -0
- package/dist/api/billing/v2beta1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2beta1/index.gen.js +4 -4
- package/dist/api/billing/v2beta1/marshalling.gen.cjs +158 -0
- package/dist/api/billing/v2beta1/marshalling.gen.d.ts +6 -0
- package/dist/api/billing/v2beta1/marshalling.gen.js +61 -36
- package/dist/api/billing/v2beta1/types.gen.d.ts +269 -0
- package/dist/api/block/index.cjs +4 -0
- package/dist/api/block/index.d.ts +1 -0
- package/dist/api/block/index.js +4 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +272 -0
- package/dist/api/block/v1alpha1/api.gen.d.ts +144 -0
- package/dist/api/block/v1alpha1/api.gen.js +167 -90
- package/dist/api/block/v1alpha1/content.gen.cjs +20 -0
- package/dist/api/block/v1alpha1/content.gen.d.ts +7 -0
- package/dist/api/block/v1alpha1/content.gen.js +20 -13
- package/dist/api/block/v1alpha1/index.gen.cjs +10 -0
- package/dist/api/block/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/block/v1alpha1/index.gen.js +10 -7
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +194 -0
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/block/v1alpha1/marshalling.gen.js +78 -42
- package/dist/api/block/v1alpha1/types.gen.d.ts +315 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.cjs +56 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.d.ts +47 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.js +14 -5
- package/dist/api/cockpit/index.cjs +6 -0
- package/dist/api/cockpit/index.d.ts +2 -0
- package/dist/api/cockpit/index.js +6 -4
- package/dist/api/cockpit/v1/api.gen.cjs +629 -0
- package/dist/api/cockpit/v1/api.gen.d.ts +310 -0
- package/dist/api/cockpit/v1/api.gen.js +374 -201
- package/dist/api/cockpit/v1/index.gen.cjs +7 -0
- package/dist/api/cockpit/v1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1/index.gen.js +7 -6
- package/dist/api/cockpit/v1/marshalling.gen.cjs +325 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/cockpit/v1/marshalling.gen.js +131 -59
- package/dist/api/cockpit/v1/types.gen.d.ts +525 -0
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +48 -0
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +41 -0
- package/dist/api/cockpit/v1/validation-rules.gen.js +10 -8
- package/dist/api/cockpit/v1beta1/api.gen.cjs +484 -0
- package/dist/api/cockpit/v1beta1/api.gen.d.ts +223 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +298 -167
- package/dist/api/cockpit/v1beta1/content.gen.cjs +8 -0
- package/dist/api/cockpit/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/content.gen.js +8 -7
- package/dist/api/cockpit/v1beta1/index.gen.cjs +6 -0
- package/dist/api/cockpit/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/index.gen.js +6 -5
- package/dist/api/cockpit/v1beta1/marshalling.gen.cjs +343 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.d.ts +29 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +131 -60
- package/dist/api/cockpit/v1beta1/types.gen.d.ts +385 -0
- package/dist/api/container/index.cjs +4 -0
- package/dist/api/container/index.d.ts +1 -0
- package/dist/api/container/index.js +4 -2
- package/dist/api/container/v1beta1/api.gen.cjs +621 -0
- package/dist/api/container/v1beta1/api.gen.d.ts +304 -0
- package/dist/api/container/v1beta1/api.gen.js +384 -228
- package/dist/api/container/v1beta1/content.gen.cjs +34 -0
- package/dist/api/container/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/container/v1beta1/content.gen.js +34 -22
- package/dist/api/container/v1beta1/index.gen.cjs +13 -0
- package/dist/api/container/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/container/v1beta1/index.gen.js +13 -7
- package/dist/api/container/v1beta1/marshalling.gen.cjs +408 -0
- package/dist/api/container/v1beta1/marshalling.gen.d.ts +24 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +147 -71
- package/dist/api/container/v1beta1/types.gen.d.ts +785 -0
- package/dist/api/container/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/container/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/container/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/dedibox/index.cjs +4 -0
- package/dist/api/dedibox/index.d.ts +1 -0
- package/dist/api/dedibox/index.js +4 -2
- package/dist/api/dedibox/v1/api.gen.cjs +1460 -0
- package/dist/api/dedibox/v1/api.gen.d.ts +560 -0
- package/dist/api/dedibox/v1/api.gen.js +1051 -565
- package/dist/api/dedibox/v1/content.gen.cjs +49 -0
- package/dist/api/dedibox/v1/content.gen.d.ts +19 -0
- package/dist/api/dedibox/v1/content.gen.js +49 -31
- package/dist/api/dedibox/v1/index.gen.cjs +22 -0
- package/dist/api/dedibox/v1/index.gen.d.ts +4 -0
- package/dist/api/dedibox/v1/index.gen.js +22 -7
- package/dist/api/dedibox/v1/marshalling.gen.cjs +1475 -0
- package/dist/api/dedibox/v1/marshalling.gen.d.ts +82 -0
- package/dist/api/dedibox/v1/marshalling.gen.js +514 -237
- package/dist/api/dedibox/v1/types.gen.d.ts +1900 -0
- package/dist/api/dedibox/v1/validation-rules.gen.cjs +626 -0
- package/dist/api/dedibox/v1/validation-rules.gen.d.ts +539 -0
- package/dist/api/dedibox/v1/validation-rules.gen.js +87 -5
- package/dist/api/document_db/index.cjs +4 -0
- package/dist/api/document_db/index.d.ts +1 -0
- package/dist/api/document_db/index.js +4 -2
- package/dist/api/document_db/v1beta1/api.gen.cjs +1018 -0
- package/dist/api/document_db/v1beta1/api.gen.d.ts +542 -0
- package/dist/api/document_db/v1beta1/api.gen.js +561 -339
- package/dist/api/document_db/v1beta1/content.gen.cjs +31 -0
- package/dist/api/document_db/v1beta1/content.gen.d.ts +11 -0
- package/dist/api/document_db/v1beta1/content.gen.js +31 -19
- package/dist/api/document_db/v1beta1/index.gen.cjs +12 -0
- package/dist/api/document_db/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/document_db/v1beta1/index.gen.js +12 -7
- package/dist/api/document_db/v1beta1/marshalling.gen.cjs +829 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.d.ts +50 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.js +354 -181
- package/dist/api/document_db/v1beta1/types.gen.d.ts +1254 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/domain/index.cjs +4 -0
- package/dist/api/domain/index.d.ts +1 -0
- package/dist/api/domain/index.js +4 -2
- package/dist/api/domain/v2beta1/api.gen.cjs +1052 -0
- package/dist/api/domain/v2beta1/api.gen.d.ts +521 -0
- package/dist/api/domain/v2beta1/api.gen.js +638 -365
- package/dist/api/domain/v2beta1/content.gen.cjs +29 -0
- package/dist/api/domain/v2beta1/content.gen.d.ts +18 -0
- package/dist/api/domain/v2beta1/content.gen.js +29 -28
- package/dist/api/domain/v2beta1/index.gen.cjs +13 -0
- package/dist/api/domain/v2beta1/index.gen.d.ts +3 -0
- package/dist/api/domain/v2beta1/index.gen.js +13 -5
- package/dist/api/domain/v2beta1/marshalling.gen.cjs +1472 -0
- package/dist/api/domain/v2beta1/marshalling.gen.d.ts +59 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +676 -383
- package/dist/api/domain/v2beta1/types.gen.d.ts +1073 -0
- package/dist/api/flexibleip/index.cjs +4 -0
- package/dist/api/flexibleip/index.d.ts +1 -0
- package/dist/api/flexibleip/index.js +4 -2
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +227 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +115 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.js +134 -86
- package/dist/api/flexibleip/v1alpha1/content.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.js +12 -10
- package/dist/api/flexibleip/v1alpha1/index.gen.cjs +9 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.js +9 -7
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.cjs +115 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +36 -18
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +196 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +3 -5
- package/dist/api/function/index.cjs +4 -0
- package/dist/api/function/index.d.ts +1 -0
- package/dist/api/function/index.js +4 -2
- package/dist/api/function/v1beta1/api.gen.cjs +666 -0
- package/dist/api/function/v1beta1/api.gen.d.ts +330 -0
- package/dist/api/function/v1beta1/api.gen.js +406 -244
- package/dist/api/function/v1beta1/content.gen.cjs +34 -0
- package/dist/api/function/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/function/v1beta1/content.gen.js +34 -22
- package/dist/api/function/v1beta1/index.gen.cjs +13 -0
- package/dist/api/function/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/function/v1beta1/index.gen.js +13 -7
- package/dist/api/function/v1beta1/marshalling.gen.cjs +457 -0
- package/dist/api/function/v1beta1/marshalling.gen.d.ts +27 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +167 -80
- package/dist/api/function/v1beta1/types.gen.d.ts +819 -0
- package/dist/api/function/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/function/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/function/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/iam/index.cjs +4 -0
- package/dist/api/iam/index.d.ts +1 -0
- package/dist/api/iam/index.js +4 -2
- package/dist/api/iam/v1alpha1/api.gen.cjs +951 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +480 -0
- package/dist/api/iam/v1alpha1/api.gen.js +560 -302
- package/dist/api/iam/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/iam/v1alpha1/index.gen.js +6 -6
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +504 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +42 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +184 -119
- package/dist/api/iam/v1alpha1/types.gen.d.ts +886 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +235 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +211 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +29 -10
- package/dist/api/index.d.ts +34 -0
- package/dist/api/instance/index.cjs +4 -0
- package/dist/api/instance/index.d.ts +1 -0
- package/dist/api/instance/index.js +4 -2
- package/dist/api/instance/v1/api.gen.cjs +1178 -0
- package/dist/api/instance/v1/api.gen.d.ts +532 -0
- package/dist/api/instance/v1/api.gen.js +753 -436
- package/dist/api/instance/v1/api.utils.cjs +279 -0
- package/dist/api/instance/v1/api.utils.d.ts +95 -0
- package/dist/api/instance/v1/api.utils.js +145 -109
- package/dist/api/instance/v1/content.gen.cjs +44 -0
- package/dist/api/instance/v1/content.gen.d.ts +21 -0
- package/dist/api/instance/v1/content.gen.js +44 -34
- package/dist/api/instance/v1/index.cjs +15 -0
- package/dist/api/instance/v1/index.d.ts +4 -0
- package/dist/api/instance/v1/index.gen.d.ts +4 -0
- package/dist/api/instance/v1/index.js +15 -2
- package/dist/api/instance/v1/marshalling.gen.cjs +1813 -0
- package/dist/api/instance/v1/marshalling.gen.d.ts +95 -0
- package/dist/api/instance/v1/marshalling.gen.js +736 -412
- package/dist/api/instance/v1/marshalling.utils.d.ts +3 -0
- package/dist/api/instance/v1/types.gen.d.ts +1818 -0
- package/dist/api/instance/v1/types.private.gen.d.ts +167 -0
- package/dist/api/instance/v1/types.utils.d.ts +35 -0
- package/dist/api/instance/v1/validation-rules.gen.d.ts +10 -0
- package/dist/api/iot/index.cjs +4 -0
- package/dist/api/iot/index.d.ts +1 -0
- package/dist/api/iot/index.js +4 -2
- package/dist/api/iot/v1/api.gen.cjs +621 -0
- package/dist/api/iot/v1/api.gen.d.ts +325 -0
- package/dist/api/iot/v1/api.gen.js +350 -238
- package/dist/api/iot/v1/content.gen.cjs +4 -0
- package/dist/api/iot/v1/content.gen.d.ts +3 -0
- package/dist/api/iot/v1/content.gen.js +4 -7
- package/dist/api/iot/v1/index.gen.cjs +6 -0
- package/dist/api/iot/v1/index.gen.d.ts +3 -0
- package/dist/api/iot/v1/index.gen.js +6 -5
- package/dist/api/iot/v1/marshalling.gen.cjs +534 -0
- package/dist/api/iot/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/iot/v1/marshalling.gen.js +209 -114
- package/dist/api/iot/v1/types.gen.d.ts +916 -0
- package/dist/api/ipam/index.cjs +4 -0
- package/dist/api/ipam/index.d.ts +1 -0
- package/dist/api/ipam/index.js +4 -2
- package/dist/api/ipam/v1/api.gen.cjs +117 -0
- package/dist/api/ipam/v1/api.gen.d.ts +57 -0
- package/dist/api/ipam/v1/api.gen.js +75 -55
- package/dist/api/ipam/v1/index.gen.cjs +6 -0
- package/dist/api/ipam/v1/index.gen.d.ts +3 -0
- package/dist/api/ipam/v1/index.gen.js +6 -6
- package/dist/api/ipam/v1/marshalling.gen.cjs +98 -0
- package/dist/api/ipam/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/ipam/v1/marshalling.gen.js +35 -29
- package/dist/api/ipam/v1/types.gen.d.ts +209 -0
- package/dist/api/ipam/v1/validation-rules.gen.cjs +9 -0
- package/dist/api/ipam/v1/validation-rules.gen.d.ts +6 -0
- package/dist/api/ipam/v1/validation-rules.gen.js +3 -5
- package/dist/api/ipfs/index.cjs +4 -0
- package/dist/api/ipfs/index.d.ts +1 -0
- package/dist/api/ipfs/index.js +4 -2
- package/dist/api/ipfs/v1alpha1/api.gen.cjs +374 -0
- package/dist/api/ipfs/v1alpha1/api.gen.d.ts +198 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +210 -133
- package/dist/api/ipfs/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/ipfs/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +6 -10
- package/dist/api/ipfs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/ipfs/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +8 -5
- package/dist/api/ipfs/v1alpha1/marshalling.gen.cjs +208 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.d.ts +18 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +68 -33
- package/dist/api/ipfs/v1alpha1/types.gen.d.ts +317 -0
- package/dist/api/jobs/index.cjs +4 -0
- package/dist/api/jobs/index.d.ts +1 -0
- package/dist/api/jobs/index.js +4 -2
- package/dist/api/jobs/v1alpha1/api.gen.cjs +170 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +84 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +109 -69
- package/dist/api/jobs/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/jobs/v1alpha1/content.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/jobs/v1alpha1/index.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +150 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +10 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +50 -26
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +210 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +97 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.d.ts +87 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +12 -7
- package/dist/api/k8s/index.cjs +4 -0
- package/dist/api/k8s/index.d.ts +1 -0
- package/dist/api/k8s/index.js +4 -2
- package/dist/api/k8s/v1/api.gen.cjs +550 -0
- package/dist/api/k8s/v1/api.gen.d.ts +284 -0
- package/dist/api/k8s/v1/api.gen.js +317 -195
- package/dist/api/k8s/v1/api.utils.cjs +13 -0
- package/dist/api/k8s/v1/api.utils.d.ts +11 -0
- package/dist/api/k8s/v1/api.utils.js +5 -5
- package/dist/api/k8s/v1/content.gen.cjs +23 -0
- package/dist/api/k8s/v1/content.gen.d.ts +7 -0
- package/dist/api/k8s/v1/content.gen.js +23 -13
- package/dist/api/k8s/v1/index.cjs +10 -0
- package/dist/api/k8s/v1/index.d.ts +4 -0
- package/dist/api/k8s/v1/index.gen.d.ts +4 -0
- package/dist/api/k8s/v1/index.js +10 -4
- package/dist/api/k8s/v1/marshalling.gen.cjs +510 -0
- package/dist/api/k8s/v1/marshalling.gen.d.ts +22 -0
- package/dist/api/k8s/v1/marshalling.gen.js +158 -79
- package/dist/api/k8s/v1/types.gen.d.ts +1123 -0
- package/dist/api/k8s/v1/validation-rules.gen.cjs +110 -0
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +96 -0
- package/dist/api/k8s/v1/validation-rules.gen.js +14 -5
- package/dist/api/lb/index.cjs +4 -0
- package/dist/api/lb/index.d.ts +1 -0
- package/dist/api/lb/index.js +4 -2
- package/dist/api/lb/v1/api.gen.cjs +1984 -0
- package/dist/api/lb/v1/api.gen.d.ts +990 -0
- package/dist/api/lb/v1/api.gen.js +1186 -695
- package/dist/api/lb/v1/api.utils.cjs +116 -0
- package/dist/api/lb/v1/api.utils.d.ts +41 -0
- package/dist/api/lb/v1/api.utils.js +83 -48
- package/dist/api/lb/v1/content.gen.cjs +22 -0
- package/dist/api/lb/v1/content.gen.d.ts +9 -0
- package/dist/api/lb/v1/content.gen.js +22 -16
- package/dist/api/lb/v1/index.cjs +10 -0
- package/dist/api/lb/v1/index.d.ts +4 -0
- package/dist/api/lb/v1/index.gen.d.ts +3 -0
- package/dist/api/lb/v1/index.js +10 -2
- package/dist/api/lb/v1/marshalling.gen.cjs +1289 -0
- package/dist/api/lb/v1/marshalling.gen.d.ts +73 -0
- package/dist/api/lb/v1/marshalling.gen.js +576 -334
- package/dist/api/lb/v1/types.gen.d.ts +2729 -0
- package/dist/api/lb/v1/types.utils.d.ts +13 -0
- package/dist/api/llm_inference/index.cjs +4 -0
- package/dist/api/llm_inference/index.d.ts +1 -0
- package/dist/api/llm_inference/index.js +4 -2
- package/dist/api/llm_inference/v1beta1/api.gen.cjs +305 -0
- package/dist/api/llm_inference/v1beta1/api.gen.d.ts +151 -0
- package/dist/api/llm_inference/v1beta1/api.gen.js +192 -120
- package/dist/api/llm_inference/v1beta1/content.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/llm_inference/v1beta1/content.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/index.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/llm_inference/v1beta1/index.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/marshalling.gen.cjs +271 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.d.ts +18 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.js +98 -52
- package/dist/api/llm_inference/v1beta1/types.gen.d.ts +433 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.cjs +56 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.d.ts +50 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/marketplace/index.cjs +4 -0
- package/dist/api/marketplace/index.d.ts +1 -0
- package/dist/api/marketplace/index.js +4 -2
- package/dist/api/marketplace/v2/api.gen.cjs +174 -0
- package/dist/api/marketplace/v2/api.gen.d.ts +95 -0
- package/dist/api/marketplace/v2/api.gen.js +111 -67
- package/dist/api/marketplace/v2/index.gen.cjs +4 -0
- package/dist/api/marketplace/v2/index.gen.d.ts +2 -0
- package/dist/api/marketplace/v2/index.gen.js +4 -4
- package/dist/api/marketplace/v2/marshalling.gen.cjs +115 -0
- package/dist/api/marketplace/v2/marshalling.gen.d.ts +9 -0
- package/dist/api/marketplace/v2/marshalling.gen.js +44 -23
- package/dist/api/marketplace/v2/types.gen.d.ts +135 -0
- package/dist/api/mnq/index.cjs +4 -0
- package/dist/api/mnq/index.d.ts +1 -0
- package/dist/api/mnq/index.js +4 -2
- package/dist/api/mnq/v1beta1/api.gen.cjs +500 -0
- package/dist/api/mnq/v1beta1/api.gen.d.ts +267 -0
- package/dist/api/mnq/v1beta1/api.gen.js +291 -184
- package/dist/api/mnq/v1beta1/index.gen.cjs +8 -0
- package/dist/api/mnq/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/mnq/v1beta1/index.gen.js +8 -6
- package/dist/api/mnq/v1beta1/marshalling.gen.cjs +268 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.d.ts +23 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.js +105 -49
- package/dist/api/mnq/v1beta1/types.gen.d.ts +449 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.cjs +85 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.d.ts +72 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +13 -5
- package/dist/api/rdb/index.cjs +4 -0
- package/dist/api/rdb/index.d.ts +1 -0
- package/dist/api/rdb/index.js +4 -2
- package/dist/api/rdb/v1/api.gen.cjs +1192 -0
- package/dist/api/rdb/v1/api.gen.d.ts +631 -0
- package/dist/api/rdb/v1/api.gen.js +660 -393
- package/dist/api/rdb/v1/content.gen.cjs +38 -0
- package/dist/api/rdb/v1/content.gen.d.ts +13 -0
- package/dist/api/rdb/v1/content.gen.js +38 -22
- package/dist/api/rdb/v1/index.gen.cjs +13 -0
- package/dist/api/rdb/v1/index.gen.d.ts +4 -0
- package/dist/api/rdb/v1/index.gen.js +13 -7
- package/dist/api/rdb/v1/marshalling.gen.cjs +908 -0
- package/dist/api/rdb/v1/marshalling.gen.d.ts +59 -0
- package/dist/api/rdb/v1/marshalling.gen.js +385 -191
- package/dist/api/rdb/v1/types.gen.d.ts +1404 -0
- package/dist/api/rdb/v1/validation-rules.gen.cjs +8 -0
- package/dist/api/rdb/v1/validation-rules.gen.d.ts +5 -0
- package/dist/api/rdb/v1/validation-rules.gen.js +3 -5
- package/dist/api/redis/index.cjs +4 -0
- package/dist/api/redis/index.d.ts +1 -0
- package/dist/api/redis/index.js +4 -2
- package/dist/api/redis/v1/api.gen.cjs +476 -0
- package/dist/api/redis/v1/api.gen.d.ts +253 -0
- package/dist/api/redis/v1/api.gen.js +265 -162
- package/dist/api/redis/v1/content.gen.cjs +10 -0
- package/dist/api/redis/v1/content.gen.d.ts +3 -0
- package/dist/api/redis/v1/content.gen.js +10 -7
- package/dist/api/redis/v1/index.gen.cjs +6 -0
- package/dist/api/redis/v1/index.gen.d.ts +3 -0
- package/dist/api/redis/v1/index.gen.js +6 -5
- package/dist/api/redis/v1/marshalling.gen.cjs +355 -0
- package/dist/api/redis/v1/marshalling.gen.d.ts +24 -0
- package/dist/api/redis/v1/marshalling.gen.js +156 -84
- package/dist/api/redis/v1/types.gen.d.ts +473 -0
- package/dist/api/registry/index.cjs +4 -0
- package/dist/api/registry/index.d.ts +1 -0
- package/dist/api/registry/index.js +4 -2
- package/dist/api/registry/v1/api.gen.cjs +287 -0
- package/dist/api/registry/v1/api.gen.d.ts +160 -0
- package/dist/api/registry/v1/api.gen.js +161 -94
- package/dist/api/registry/v1/content.gen.cjs +8 -0
- package/dist/api/registry/v1/content.gen.d.ts +7 -0
- package/dist/api/registry/v1/content.gen.js +8 -13
- package/dist/api/registry/v1/index.gen.cjs +8 -0
- package/dist/api/registry/v1/index.gen.d.ts +3 -0
- package/dist/api/registry/v1/index.gen.js +8 -5
- package/dist/api/registry/v1/marshalling.gen.cjs +129 -0
- package/dist/api/registry/v1/marshalling.gen.d.ts +11 -0
- package/dist/api/registry/v1/marshalling.gen.js +51 -30
- package/dist/api/registry/v1/types.gen.d.ts +300 -0
- package/dist/api/secret/index.cjs +6 -0
- package/dist/api/secret/index.d.ts +2 -0
- package/dist/api/secret/index.js +6 -4
- package/dist/api/secret/v1alpha1/api.gen.cjs +483 -0
- package/dist/api/secret/v1alpha1/api.gen.d.ts +262 -0
- package/dist/api/secret/v1alpha1/api.gen.js +271 -176
- package/dist/api/secret/v1alpha1/index.gen.cjs +4 -0
- package/dist/api/secret/v1alpha1/index.gen.d.ts +2 -0
- package/dist/api/secret/v1alpha1/index.gen.js +4 -4
- package/dist/api/secret/v1alpha1/marshalling.gen.cjs +221 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.d.ts +19 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.js +67 -33
- package/dist/api/secret/v1alpha1/types.gen.d.ts +619 -0
- package/dist/api/secret/v1beta1/api.gen.cjs +359 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +182 -0
- package/dist/api/secret/v1beta1/api.gen.js +213 -135
- package/dist/api/secret/v1beta1/index.gen.cjs +6 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/secret/v1beta1/index.gen.js +6 -6
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +219 -0
- package/dist/api/secret/v1beta1/marshalling.gen.d.ts +14 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +76 -40
- package/dist/api/secret/v1beta1/types.gen.d.ts +513 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/serverless_sqldb/index.cjs +4 -0
- package/dist/api/serverless_sqldb/index.d.ts +1 -0
- package/dist/api/serverless_sqldb/index.js +4 -2
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +202 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +109 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +118 -78
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.cjs +89 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.d.ts +9 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +27 -15
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +193 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.cjs +62 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.d.ts +55 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.js +9 -7
- package/dist/api/std/index.gen.cjs +1 -0
- package/dist/api/std/index.gen.d.ts +1 -0
- package/dist/api/std/types.gen.d.ts +1 -0
- package/dist/api/tem/index.cjs +4 -0
- package/dist/api/tem/index.d.ts +1 -0
- package/dist/api/tem/index.js +4 -2
- package/dist/api/tem/v1alpha1/api.gen.cjs +260 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +134 -0
- package/dist/api/tem/v1alpha1/api.gen.js +154 -89
- package/dist/api/tem/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/tem/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/tem/v1alpha1/content.gen.js +6 -10
- package/dist/api/tem/v1alpha1/index.gen.cjs +7 -0
- package/dist/api/tem/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/tem/v1alpha1/index.gen.js +7 -5
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +255 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +90 -50
- package/dist/api/tem/v1alpha1/types.gen.d.ts +401 -0
- package/dist/api/test/index.cjs +4 -0
- package/dist/api/test/index.d.ts +1 -0
- package/dist/api/test/index.js +4 -2
- package/dist/api/test/v1/api.gen.cjs +164 -0
- package/dist/api/test/v1/api.gen.d.ts +84 -0
- package/dist/api/test/v1/api.gen.js +99 -71
- package/dist/api/test/v1/content.gen.cjs +4 -0
- package/dist/api/test/v1/content.gen.d.ts +3 -0
- package/dist/api/test/v1/content.gen.js +4 -7
- package/dist/api/test/v1/index.gen.cjs +6 -0
- package/dist/api/test/v1/index.gen.d.ts +3 -0
- package/dist/api/test/v1/index.gen.js +6 -5
- package/dist/api/test/v1/marshalling.gen.cjs +93 -0
- package/dist/api/test/v1/marshalling.gen.d.ts +8 -0
- package/dist/api/test/v1/marshalling.gen.js +34 -22
- package/dist/api/test/v1/types.gen.d.ts +91 -0
- package/dist/api/vpc/index.cjs +6 -0
- package/dist/api/vpc/index.d.ts +2 -0
- package/dist/api/vpc/index.js +6 -4
- package/dist/api/vpc/v1/api.gen.cjs +119 -0
- package/dist/api/vpc/v1/api.gen.d.ts +59 -0
- package/dist/api/vpc/v1/api.gen.js +76 -43
- package/dist/api/vpc/v1/index.gen.cjs +4 -0
- package/dist/api/vpc/v1/index.gen.d.ts +2 -0
- package/dist/api/vpc/v1/index.gen.js +4 -4
- package/dist/api/vpc/v1/marshalling.gen.cjs +52 -0
- package/dist/api/vpc/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/vpc/v1/marshalling.gen.js +22 -14
- package/dist/api/vpc/v1/types.gen.d.ts +99 -0
- package/dist/api/vpc/v2/api.gen.cjs +303 -0
- package/dist/api/vpc/v2/api.gen.d.ts +149 -0
- package/dist/api/vpc/v2/api.gen.js +181 -112
- package/dist/api/vpc/v2/index.gen.cjs +4 -0
- package/dist/api/vpc/v2/index.gen.d.ts +2 -0
- package/dist/api/vpc/v2/index.gen.js +4 -4
- package/dist/api/vpc/v2/marshalling.gen.cjs +173 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +17 -0
- package/dist/api/vpc/v2/marshalling.gen.js +70 -36
- package/dist/api/vpc/v2/types.gen.d.ts +338 -0
- package/dist/api/vpcgw/index.cjs +4 -0
- package/dist/api/vpcgw/index.d.ts +1 -0
- package/dist/api/vpcgw/index.js +4 -2
- package/dist/api/vpcgw/v1/api.gen.cjs +740 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +393 -0
- package/dist/api/vpcgw/v1/api.gen.js +408 -239
- package/dist/api/vpcgw/v1/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v1/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v1/content.gen.js +15 -10
- package/dist/api/vpcgw/v1/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v1/index.gen.js +7 -5
- package/dist/api/vpcgw/v1/marshalling.gen.cjs +437 -0
- package/dist/api/vpcgw/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +145 -74
- package/dist/api/vpcgw/v1/types.gen.d.ts +901 -0
- package/dist/api/webhosting/index.cjs +4 -0
- package/dist/api/webhosting/index.d.ts +1 -0
- package/dist/api/webhosting/index.js +4 -2
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +226 -0
- package/dist/api/webhosting/v1alpha1/api.gen.d.ts +115 -0
- package/dist/api/webhosting/v1alpha1/api.gen.js +138 -86
- package/dist/api/webhosting/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/webhosting/v1alpha1/content.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/webhosting/v1alpha1/index.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +236 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +80 -41
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +379 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +22 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +18 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +4 -5
- package/dist/bridge.d.ts +11 -0
- package/dist/helpers/is-browser.cjs +7 -0
- package/dist/helpers/is-browser.d.ts +1 -0
- package/dist/helpers/is-browser.js +7 -5
- package/dist/helpers/is-response.cjs +4 -0
- package/dist/helpers/is-response.d.ts +8 -0
- package/dist/helpers/is-response.js +4 -10
- package/dist/helpers/json.cjs +7 -0
- package/dist/helpers/json.d.ts +13 -0
- package/dist/helpers/json.js +5 -9
- package/dist/helpers/marshalling.cjs +78 -0
- package/dist/helpers/marshalling.d.ts +63 -0
- package/dist/helpers/marshalling.js +40 -77
- package/dist/index.cjs +114 -32093
- package/dist/index.d.ts +15 -38464
- package/dist/index.js +115 -81
- package/dist/internal/async/interval-retrier.cjs +55 -0
- package/dist/internal/async/interval-retrier.d.ts +111 -0
- package/dist/internal/async/interval-retrier.js +30 -72
- package/dist/internal/async/sleep.cjs +6 -0
- package/dist/internal/async/sleep.d.ts +9 -0
- package/dist/internal/async/sleep.js +4 -11
- package/dist/internal/interceptors/composer.cjs +25 -0
- package/dist/internal/interceptors/composer.d.ts +25 -0
- package/dist/internal/interceptors/composer.js +15 -36
- package/dist/internal/interceptors/helpers.cjs +12 -0
- package/dist/internal/interceptors/helpers.d.ts +21 -0
- package/dist/internal/interceptors/helpers.js +7 -26
- package/dist/internal/interceptors/types.d.ts +89 -0
- package/dist/internal/logger/console-logger.cjs +24 -0
- package/dist/internal/logger/console-logger.d.ts +23 -0
- package/dist/internal/logger/console-logger.js +11 -19
- package/dist/internal/logger/index.cjs +12 -0
- package/dist/internal/logger/index.d.ts +25 -0
- package/dist/internal/logger/index.js +9 -30
- package/dist/internal/logger/level-resolver.cjs +13 -0
- package/dist/internal/logger/level-resolver.d.ts +9 -0
- package/dist/internal/logger/level-resolver.js +12 -12
- package/dist/internal/logger/logger.d.ts +13 -0
- package/dist/internal/validations/string-validation.cjs +30 -0
- package/dist/internal/validations/string-validation.d.ts +18 -0
- package/dist/internal/validations/string-validation.js +19 -27
- package/dist/internals.d.ts +10 -0
- package/dist/scw/api.cjs +8 -0
- package/dist/scw/api.d.ts +10 -0
- package/dist/scw/api.js +3 -7
- package/dist/scw/auth.cjs +28 -0
- package/dist/scw/auth.d.ts +57 -0
- package/dist/scw/auth.js +23 -62
- package/dist/scw/client-ini-factory.cjs +66 -0
- package/dist/scw/client-ini-factory.d.ts +111 -0
- package/dist/scw/client-ini-factory.js +33 -141
- package/dist/scw/client-ini-profile.cjs +23 -0
- package/dist/scw/client-ini-profile.d.ts +82 -0
- package/dist/scw/client-ini-profile.js +15 -46
- package/dist/scw/client-settings.cjs +51 -0
- package/dist/scw/client-settings.d.ts +59 -0
- package/dist/scw/client-settings.js +26 -53
- package/dist/scw/client.cjs +28 -0
- package/dist/scw/client.d.ts +72 -0
- package/dist/scw/client.js +14 -76
- package/dist/scw/constants.cjs +6 -0
- package/dist/scw/constants.d.ts +2 -0
- package/dist/scw/constants.js +5 -3
- package/dist/scw/custom-marshalling.cjs +92 -0
- package/dist/scw/custom-marshalling.d.ts +59 -0
- package/dist/scw/custom-marshalling.js +38 -77
- package/dist/scw/custom-types.d.ts +65 -0
- package/dist/scw/errors/error-parser.cjs +76 -0
- package/dist/scw/errors/error-parser.d.ts +12 -0
- package/dist/scw/errors/error-parser.js +33 -64
- package/dist/scw/errors/non-standard/invalid-request-mapper.cjs +36 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +12 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.js +26 -23
- package/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +23 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +11 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.js +16 -20
- package/dist/scw/errors/scw-error-from-json.d.ts +10 -0
- package/dist/scw/errors/scw-error.cjs +43 -0
- package/dist/scw/errors/scw-error.d.ts +25 -0
- package/dist/scw/errors/scw-error.js +19 -35
- package/dist/scw/errors/standard/already-exists-error.cjs +31 -0
- package/dist/scw/errors/standard/already-exists-error.d.ts +16 -0
- package/dist/scw/errors/standard/already-exists-error.js +18 -13
- package/dist/scw/errors/standard/denied-authentication-error.cjs +37 -0
- package/dist/scw/errors/standard/denied-authentication-error.d.ts +15 -0
- package/dist/scw/errors/standard/denied-authentication-error.js +9 -24
- package/dist/scw/errors/standard/index.cjs +28 -0
- package/dist/scw/errors/standard/index.d.ts +17 -0
- package/dist/scw/errors/standard/index.js +28 -13
- package/dist/scw/errors/standard/invalid-arguments-error.cjs +55 -0
- package/dist/scw/errors/standard/invalid-arguments-error.d.ts +24 -0
- package/dist/scw/errors/standard/invalid-arguments-error.js +26 -38
- package/dist/scw/errors/standard/out-of-stock-error.cjs +18 -0
- package/dist/scw/errors/standard/out-of-stock-error.d.ts +14 -0
- package/dist/scw/errors/standard/out-of-stock-error.js +7 -11
- package/dist/scw/errors/standard/permissions-denied-error.cjs +30 -0
- package/dist/scw/errors/standard/permissions-denied-error.d.ts +23 -0
- package/dist/scw/errors/standard/permissions-denied-error.js +20 -35
- package/dist/scw/errors/standard/precondition-failed-error.cjs +32 -0
- package/dist/scw/errors/standard/precondition-failed-error.d.ts +15 -0
- package/dist/scw/errors/standard/precondition-failed-error.js +14 -24
- package/dist/scw/errors/standard/quotas-exceeded-error.cjs +44 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +34 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.js +29 -53
- package/dist/scw/errors/standard/resource-expired-error.cjs +31 -0
- package/dist/scw/errors/standard/resource-expired-error.d.ts +16 -0
- package/dist/scw/errors/standard/resource-expired-error.js +18 -13
- package/dist/scw/errors/standard/resource-locked-error.cjs +20 -0
- package/dist/scw/errors/standard/resource-locked-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-locked-error.js +6 -11
- package/dist/scw/errors/standard/resource-not-found-error.cjs +24 -0
- package/dist/scw/errors/standard/resource-not-found-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-not-found-error.js +11 -12
- package/dist/scw/errors/standard/too-many-requests-error.cjs +59 -0
- package/dist/scw/errors/standard/too-many-requests-error.d.ts +32 -0
- package/dist/scw/errors/standard/too-many-requests-error.js +20 -31
- package/dist/scw/errors/standard/transient-state-error.cjs +31 -0
- package/dist/scw/errors/standard/transient-state-error.d.ts +16 -0
- package/dist/scw/errors/standard/transient-state-error.js +18 -13
- package/dist/scw/errors/types.cjs +15 -0
- package/dist/scw/errors/types.d.ts +9 -0
- package/dist/scw/errors/types.js +6 -14
- package/dist/scw/fetch/build-fetcher.cjs +60 -0
- package/dist/scw/fetch/build-fetcher.d.ts +23 -0
- package/dist/scw/fetch/build-fetcher.js +29 -38
- package/dist/scw/fetch/http-dumper.cjs +20 -0
- package/dist/scw/fetch/http-dumper.d.ts +18 -0
- package/dist/scw/fetch/http-dumper.js +19 -50
- package/dist/scw/fetch/http-interceptors.cjs +43 -0
- package/dist/scw/fetch/http-interceptors.d.ts +38 -0
- package/dist/scw/fetch/http-interceptors.js +23 -66
- package/dist/scw/fetch/resource-paginator.cjs +37 -0
- package/dist/scw/fetch/resource-paginator.d.ts +47 -0
- package/dist/scw/fetch/resource-paginator.js +12 -45
- package/dist/scw/fetch/response-parser.cjs +57 -0
- package/dist/scw/fetch/response-parser.d.ts +25 -0
- package/dist/scw/fetch/response-parser.js +31 -46
- package/dist/scw/fetch/types.d.ts +16 -0
- package/dist/scw/locality.d.ts +2 -0
- package/package.json +7 -3
- package/dist/node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js +0 -11
|
@@ -1,31 +1,40 @@
|
|
|
1
|
-
import { API as API$1 } from
|
|
2
|
-
import { validatePathParam, urlParams } from
|
|
3
|
-
import { enrichForPagination } from
|
|
4
|
-
import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, marshalAttachServerVolumeRequest, unmarshalAttachServerVolumeResponse, marshalDetachServerVolumeRequest, unmarshalDetachServerVolumeResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, marshalUpdateImageRequest, unmarshalUpdateImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalUpdateSnapshotRequest, unmarshalUpdateSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, marshalUpdateSecurityGroupRequest, unmarshalUpdateSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, marshalUpdateSecurityGroupRuleRequest, unmarshalUpdateSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, marshalPlanBlockMigrationRequest, unmarshalMigrationPlan, marshalApplyBlockMigrationRequest } from
|
|
5
|
-
|
|
6
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
1
|
+
import { API as API$1 } from "../../../scw/api.js";
|
|
2
|
+
import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
3
|
+
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
4
|
+
import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, marshalAttachServerVolumeRequest, unmarshalAttachServerVolumeResponse, marshalDetachServerVolumeRequest, unmarshalDetachServerVolumeResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, marshalUpdateImageRequest, unmarshalUpdateImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalUpdateSnapshotRequest, unmarshalUpdateSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, marshalUpdateSecurityGroupRequest, unmarshalUpdateSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, marshalUpdateSecurityGroupRuleRequest, unmarshalUpdateSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, marshalPlanBlockMigrationRequest, unmarshalMigrationPlan, marshalApplyBlockMigrationRequest } from "./marshalling.gen.js";
|
|
8
5
|
const jsonContentHeaders = {
|
|
9
|
-
|
|
6
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
10
7
|
};
|
|
11
|
-
|
|
12
|
-
/** Instance API. */
|
|
13
8
|
class API extends API$1 {
|
|
14
9
|
/** Lists the available zones of the API. */
|
|
15
|
-
static LOCALITIES = [
|
|
16
|
-
|
|
10
|
+
static LOCALITIES = [
|
|
11
|
+
"fr-par-1",
|
|
12
|
+
"fr-par-2",
|
|
13
|
+
"fr-par-3",
|
|
14
|
+
"nl-ams-1",
|
|
15
|
+
"nl-ams-2",
|
|
16
|
+
"nl-ams-3",
|
|
17
|
+
"pl-waw-1",
|
|
18
|
+
"pl-waw-2",
|
|
19
|
+
"pl-waw-3"
|
|
20
|
+
];
|
|
17
21
|
/**
|
|
18
22
|
* Get availability. Get availability for all Instance types.
|
|
19
23
|
*
|
|
20
24
|
* @param request - The request {@link GetServerTypesAvailabilityRequest}
|
|
21
25
|
* @returns A Promise of GetServerTypesAvailabilityResponse
|
|
22
26
|
*/
|
|
23
|
-
getServerTypesAvailability = (request = {}) => this.client.fetch(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
getServerTypesAvailability = (request = {}) => this.client.fetch(
|
|
28
|
+
{
|
|
29
|
+
method: "GET",
|
|
30
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/products/servers/availability`,
|
|
31
|
+
urlParams: urlParams(
|
|
32
|
+
["page", request.page],
|
|
33
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize]
|
|
34
|
+
)
|
|
35
|
+
},
|
|
36
|
+
unmarshalGetServerTypesAvailabilityResponse
|
|
37
|
+
);
|
|
29
38
|
/**
|
|
30
39
|
* List Instance types. List available Instance types and their technical
|
|
31
40
|
* details.
|
|
@@ -33,29 +42,68 @@ class API extends API$1 {
|
|
|
33
42
|
* @param request - The request {@link ListServersTypesRequest}
|
|
34
43
|
* @returns A Promise of ListServersTypesResponse
|
|
35
44
|
*/
|
|
36
|
-
listServersTypes = (request = {}) => this.client.fetch(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
listServersTypes = (request = {}) => this.client.fetch(
|
|
46
|
+
{
|
|
47
|
+
method: "GET",
|
|
48
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/products/servers`,
|
|
49
|
+
urlParams: urlParams(
|
|
50
|
+
["page", request.page],
|
|
51
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize]
|
|
52
|
+
)
|
|
53
|
+
},
|
|
54
|
+
unmarshalListServersTypesResponse
|
|
55
|
+
);
|
|
42
56
|
/**
|
|
43
57
|
* List volume types. List all volume types and their technical details.
|
|
44
58
|
*
|
|
45
59
|
* @param request - The request {@link ListVolumesTypesRequest}
|
|
46
60
|
* @returns A Promise of ListVolumesTypesResponse
|
|
47
61
|
*/
|
|
48
|
-
listVolumesTypes = (request = {}) => this.client.fetch(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
62
|
+
listVolumesTypes = (request = {}) => this.client.fetch(
|
|
63
|
+
{
|
|
64
|
+
method: "GET",
|
|
65
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/products/volumes`,
|
|
66
|
+
urlParams: urlParams(
|
|
67
|
+
["page", request.page],
|
|
68
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize]
|
|
69
|
+
)
|
|
70
|
+
},
|
|
71
|
+
unmarshalListVolumesTypesResponse
|
|
72
|
+
);
|
|
73
|
+
pageOfListServers = (request = {}) => this.client.fetch(
|
|
74
|
+
{
|
|
75
|
+
method: "GET",
|
|
76
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`,
|
|
77
|
+
urlParams: urlParams(
|
|
78
|
+
["commercial_type", request.commercialType],
|
|
79
|
+
["name", request.name],
|
|
80
|
+
["order", request.order],
|
|
81
|
+
["organization", request.organization],
|
|
82
|
+
["page", request.page],
|
|
83
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
84
|
+
["private_ip", request.privateIp],
|
|
85
|
+
["private_network", request.privateNetwork],
|
|
86
|
+
[
|
|
87
|
+
"private_networks",
|
|
88
|
+
request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(",") : void 0
|
|
89
|
+
],
|
|
90
|
+
["private_nic_mac_address", request.privateNicMacAddress],
|
|
91
|
+
["project", request.project],
|
|
92
|
+
[
|
|
93
|
+
"servers",
|
|
94
|
+
request.servers && request.servers.length > 0 ? request.servers.join(",") : void 0
|
|
95
|
+
],
|
|
96
|
+
["state", request.state],
|
|
97
|
+
[
|
|
98
|
+
"tags",
|
|
99
|
+
request.tags && request.tags.length > 0 ? request.tags.join(",") : void 0
|
|
100
|
+
],
|
|
101
|
+
["with_ip", request.withIp],
|
|
102
|
+
["without_ip", request.withoutIp]
|
|
103
|
+
)
|
|
104
|
+
},
|
|
105
|
+
unmarshalListServersResponse
|
|
106
|
+
);
|
|
59
107
|
/**
|
|
60
108
|
* List all Instances. List all Instances in a specified Availability Zone,
|
|
61
109
|
* e.g. `fr-par-1`.
|
|
@@ -63,47 +111,62 @@ class API extends API$1 {
|
|
|
63
111
|
* @param request - The request {@link ListServersRequest}
|
|
64
112
|
* @returns A Promise of ListServersResponse
|
|
65
113
|
*/
|
|
66
|
-
listServers = (request = {}) => enrichForPagination(
|
|
67
|
-
_createServer = request => this.client.fetch(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
114
|
+
listServers = (request = {}) => enrichForPagination("servers", this.pageOfListServers, request);
|
|
115
|
+
_createServer = (request) => this.client.fetch(
|
|
116
|
+
{
|
|
117
|
+
body: JSON.stringify(
|
|
118
|
+
marshalCreateServerRequest(request, this.client.settings)
|
|
119
|
+
),
|
|
120
|
+
headers: jsonContentHeaders,
|
|
121
|
+
method: "POST",
|
|
122
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
123
|
+
},
|
|
124
|
+
unmarshalCreateServerResponse
|
|
125
|
+
);
|
|
74
126
|
/**
|
|
75
127
|
* Delete an Instance. Delete the Instance with the specified ID.
|
|
76
128
|
*
|
|
77
129
|
* @param request - The request {@link DeleteServerRequest}
|
|
78
130
|
*/
|
|
79
|
-
deleteServer = request => this.client.fetch({
|
|
80
|
-
method:
|
|
81
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
131
|
+
deleteServer = (request) => this.client.fetch({
|
|
132
|
+
method: "DELETE",
|
|
133
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
82
134
|
});
|
|
83
|
-
|
|
84
135
|
/**
|
|
85
136
|
* Get an Instance. Get the details of a specified Instance.
|
|
86
137
|
*
|
|
87
138
|
* @param request - The request {@link GetServerRequest}
|
|
88
139
|
* @returns A Promise of GetServerResponse
|
|
89
140
|
*/
|
|
90
|
-
getServer = request => this.client.fetch(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
141
|
+
getServer = (request) => this.client.fetch(
|
|
142
|
+
{
|
|
143
|
+
method: "GET",
|
|
144
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
145
|
+
},
|
|
146
|
+
unmarshalGetServerResponse
|
|
147
|
+
);
|
|
148
|
+
_setServer = (request) => this.client.fetch(
|
|
149
|
+
{
|
|
150
|
+
body: JSON.stringify(
|
|
151
|
+
marshalSetServerRequest(request, this.client.settings)
|
|
152
|
+
),
|
|
153
|
+
headers: jsonContentHeaders,
|
|
154
|
+
method: "PUT",
|
|
155
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("id", request.id)}`
|
|
156
|
+
},
|
|
157
|
+
unmarshalSetServerResponse
|
|
158
|
+
);
|
|
159
|
+
_updateServer = (request) => this.client.fetch(
|
|
160
|
+
{
|
|
161
|
+
body: JSON.stringify(
|
|
162
|
+
marshalUpdateServerRequest(request, this.client.settings)
|
|
163
|
+
),
|
|
164
|
+
headers: jsonContentHeaders,
|
|
165
|
+
method: "PATCH",
|
|
166
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
167
|
+
},
|
|
168
|
+
unmarshalUpdateServerResponse
|
|
169
|
+
);
|
|
107
170
|
/**
|
|
108
171
|
* List Instance actions. List all actions (e.g. power on, power off, reboot)
|
|
109
172
|
* that can currently be performed on an Instance.
|
|
@@ -111,11 +174,13 @@ class API extends API$1 {
|
|
|
111
174
|
* @param request - The request {@link ListServerActionsRequest}
|
|
112
175
|
* @returns A Promise of ListServerActionsResponse
|
|
113
176
|
*/
|
|
114
|
-
listServerActions = request => this.client.fetch(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
177
|
+
listServerActions = (request) => this.client.fetch(
|
|
178
|
+
{
|
|
179
|
+
method: "GET",
|
|
180
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/action`
|
|
181
|
+
},
|
|
182
|
+
unmarshalListServerActionsResponse
|
|
183
|
+
);
|
|
119
184
|
/**
|
|
120
185
|
* Perform action. Perform an action on an Instance. Available actions are:
|
|
121
186
|
* `poweron`: Start a stopped Instance. `poweroff`: Fully stop the Instance
|
|
@@ -135,70 +200,98 @@ class API extends API$1 {
|
|
|
135
200
|
* @param request - The request {@link ServerActionRequest}
|
|
136
201
|
* @returns A Promise of ServerActionResponse
|
|
137
202
|
*/
|
|
138
|
-
serverAction = request => this.client.fetch(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
203
|
+
serverAction = (request) => this.client.fetch(
|
|
204
|
+
{
|
|
205
|
+
body: JSON.stringify(
|
|
206
|
+
marshalServerActionRequest(request, this.client.settings)
|
|
207
|
+
),
|
|
208
|
+
headers: jsonContentHeaders,
|
|
209
|
+
method: "POST",
|
|
210
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/action`
|
|
211
|
+
},
|
|
212
|
+
unmarshalServerActionResponse
|
|
213
|
+
);
|
|
145
214
|
/**
|
|
146
215
|
* List user data. List all user data keys registered on a specified Instance.
|
|
147
216
|
*
|
|
148
217
|
* @param request - The request {@link ListServerUserDataRequest}
|
|
149
218
|
* @returns A Promise of ListServerUserDataResponse
|
|
150
219
|
*/
|
|
151
|
-
listServerUserData = request => this.client.fetch(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
220
|
+
listServerUserData = (request) => this.client.fetch(
|
|
221
|
+
{
|
|
222
|
+
method: "GET",
|
|
223
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/user_data`
|
|
224
|
+
},
|
|
225
|
+
unmarshalListServerUserDataResponse
|
|
226
|
+
);
|
|
156
227
|
/**
|
|
157
228
|
* Delete user data. Delete the specified key from an Instance's user data.
|
|
158
229
|
*
|
|
159
230
|
* @param request - The request {@link DeleteServerUserDataRequest}
|
|
160
231
|
*/
|
|
161
|
-
deleteServerUserData = request => this.client.fetch({
|
|
162
|
-
method:
|
|
163
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
232
|
+
deleteServerUserData = (request) => this.client.fetch({
|
|
233
|
+
method: "DELETE",
|
|
234
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/user_data/${validatePathParam("key", request.key)}`
|
|
164
235
|
});
|
|
165
|
-
attachServerVolume = request => this.client.fetch(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
236
|
+
attachServerVolume = (request) => this.client.fetch(
|
|
237
|
+
{
|
|
238
|
+
body: JSON.stringify(
|
|
239
|
+
marshalAttachServerVolumeRequest(request, this.client.settings)
|
|
240
|
+
),
|
|
241
|
+
headers: jsonContentHeaders,
|
|
242
|
+
method: "POST",
|
|
243
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/attach-volume`
|
|
244
|
+
},
|
|
245
|
+
unmarshalAttachServerVolumeResponse
|
|
246
|
+
);
|
|
247
|
+
detachServerVolume = (request) => this.client.fetch(
|
|
248
|
+
{
|
|
249
|
+
body: JSON.stringify(
|
|
250
|
+
marshalDetachServerVolumeRequest(request, this.client.settings)
|
|
251
|
+
),
|
|
252
|
+
headers: jsonContentHeaders,
|
|
253
|
+
method: "POST",
|
|
254
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/detach-volume`
|
|
255
|
+
},
|
|
256
|
+
unmarshalDetachServerVolumeResponse
|
|
257
|
+
);
|
|
258
|
+
pageOfListImages = (request = {}) => this.client.fetch(
|
|
259
|
+
{
|
|
260
|
+
method: "GET",
|
|
261
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/images`,
|
|
262
|
+
urlParams: urlParams(
|
|
263
|
+
["arch", request.arch],
|
|
264
|
+
["name", request.name],
|
|
265
|
+
["organization", request.organization],
|
|
266
|
+
["page", request.page],
|
|
267
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
268
|
+
["project", request.project],
|
|
269
|
+
["public", request.public],
|
|
270
|
+
["tags", request.tags]
|
|
271
|
+
)
|
|
272
|
+
},
|
|
273
|
+
unmarshalListImagesResponse
|
|
274
|
+
);
|
|
183
275
|
/**
|
|
184
276
|
* List Instance images. List all existing Instance images.
|
|
185
277
|
*
|
|
186
278
|
* @param request - The request {@link ListImagesRequest}
|
|
187
279
|
* @returns A Promise of ListImagesResponse
|
|
188
280
|
*/
|
|
189
|
-
listImages = (request = {}) => enrichForPagination(
|
|
190
|
-
|
|
281
|
+
listImages = (request = {}) => enrichForPagination("images", this.pageOfListImages, request);
|
|
191
282
|
/**
|
|
192
283
|
* Get an Instance image. Get details of an image with the specified ID.
|
|
193
284
|
*
|
|
194
285
|
* @param request - The request {@link GetImageRequest}
|
|
195
286
|
* @returns A Promise of GetImageResponse
|
|
196
287
|
*/
|
|
197
|
-
getImage = request => this.client.fetch(
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
288
|
+
getImage = (request) => this.client.fetch(
|
|
289
|
+
{
|
|
290
|
+
method: "GET",
|
|
291
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam("imageId", request.imageId)}`
|
|
292
|
+
},
|
|
293
|
+
unmarshalGetImageResponse
|
|
294
|
+
);
|
|
202
295
|
/**
|
|
203
296
|
* Create an Instance image. Create an Instance image from the specified
|
|
204
297
|
* snapshot ID.
|
|
@@ -206,47 +299,70 @@ class API extends API$1 {
|
|
|
206
299
|
* @param request - The request {@link CreateImageRequest}
|
|
207
300
|
* @returns A Promise of CreateImageResponse
|
|
208
301
|
*/
|
|
209
|
-
createImage = request => this.client.fetch(
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
302
|
+
createImage = (request) => this.client.fetch(
|
|
303
|
+
{
|
|
304
|
+
body: JSON.stringify(
|
|
305
|
+
marshalCreateImageRequest(request, this.client.settings)
|
|
306
|
+
),
|
|
307
|
+
headers: jsonContentHeaders,
|
|
308
|
+
method: "POST",
|
|
309
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/images`
|
|
310
|
+
},
|
|
311
|
+
unmarshalCreateImageResponse
|
|
312
|
+
);
|
|
313
|
+
_setImage = (request) => this.client.fetch(
|
|
314
|
+
{
|
|
315
|
+
body: JSON.stringify(
|
|
316
|
+
marshalSetImageRequest(request, this.client.settings)
|
|
317
|
+
),
|
|
318
|
+
headers: jsonContentHeaders,
|
|
319
|
+
method: "PUT",
|
|
320
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam("id", request.id)}`
|
|
321
|
+
},
|
|
322
|
+
unmarshalSetImageResponse
|
|
323
|
+
);
|
|
222
324
|
/**
|
|
223
325
|
* Update image. Update the properties of an image.
|
|
224
326
|
*
|
|
225
327
|
* @param request - The request {@link UpdateImageRequest}
|
|
226
328
|
* @returns A Promise of UpdateImageResponse
|
|
227
329
|
*/
|
|
228
|
-
updateImage = request => this.client.fetch(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
330
|
+
updateImage = (request) => this.client.fetch(
|
|
331
|
+
{
|
|
332
|
+
body: JSON.stringify(
|
|
333
|
+
marshalUpdateImageRequest(request, this.client.settings)
|
|
334
|
+
),
|
|
335
|
+
headers: jsonContentHeaders,
|
|
336
|
+
method: "PATCH",
|
|
337
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam("imageId", request.imageId)}`
|
|
338
|
+
},
|
|
339
|
+
unmarshalUpdateImageResponse
|
|
340
|
+
);
|
|
235
341
|
/**
|
|
236
342
|
* Delete an Instance image. Delete the image with the specified ID.
|
|
237
343
|
*
|
|
238
344
|
* @param request - The request {@link DeleteImageRequest}
|
|
239
345
|
*/
|
|
240
|
-
deleteImage = request => this.client.fetch({
|
|
241
|
-
method:
|
|
242
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
346
|
+
deleteImage = (request) => this.client.fetch({
|
|
347
|
+
method: "DELETE",
|
|
348
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/images/${validatePathParam("imageId", request.imageId)}`
|
|
243
349
|
});
|
|
244
|
-
pageOfListSnapshots = (request = {}) => this.client.fetch(
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
350
|
+
pageOfListSnapshots = (request = {}) => this.client.fetch(
|
|
351
|
+
{
|
|
352
|
+
method: "GET",
|
|
353
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots`,
|
|
354
|
+
urlParams: urlParams(
|
|
355
|
+
["base_volume_id", request.baseVolumeId],
|
|
356
|
+
["name", request.name],
|
|
357
|
+
["organization", request.organization],
|
|
358
|
+
["page", request.page],
|
|
359
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
360
|
+
["project", request.project],
|
|
361
|
+
["tags", request.tags]
|
|
362
|
+
)
|
|
363
|
+
},
|
|
364
|
+
unmarshalListSnapshotsResponse
|
|
365
|
+
);
|
|
250
366
|
/**
|
|
251
367
|
* List snapshots. List all snapshots of an Organization in a specified
|
|
252
368
|
* Availability Zone.
|
|
@@ -254,8 +370,7 @@ class API extends API$1 {
|
|
|
254
370
|
* @param request - The request {@link ListSnapshotsRequest}
|
|
255
371
|
* @returns A Promise of ListSnapshotsResponse
|
|
256
372
|
*/
|
|
257
|
-
listSnapshots = (request = {}) => enrichForPagination(
|
|
258
|
-
|
|
373
|
+
listSnapshots = (request = {}) => enrichForPagination("snapshots", this.pageOfListSnapshots, request);
|
|
259
374
|
/**
|
|
260
375
|
* Create a snapshot from a specified volume or from a QCOW2 file. Create a
|
|
261
376
|
* snapshot from a specified volume or from a QCOW2 file in a specified
|
|
@@ -264,53 +379,67 @@ class API extends API$1 {
|
|
|
264
379
|
* @param request - The request {@link CreateSnapshotRequest}
|
|
265
380
|
* @returns A Promise of CreateSnapshotResponse
|
|
266
381
|
*/
|
|
267
|
-
createSnapshot = (request = {}) => this.client.fetch(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
382
|
+
createSnapshot = (request = {}) => this.client.fetch(
|
|
383
|
+
{
|
|
384
|
+
body: JSON.stringify(
|
|
385
|
+
marshalCreateSnapshotRequest(request, this.client.settings)
|
|
386
|
+
),
|
|
387
|
+
headers: jsonContentHeaders,
|
|
388
|
+
method: "POST",
|
|
389
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
390
|
+
},
|
|
391
|
+
unmarshalCreateSnapshotResponse
|
|
392
|
+
);
|
|
274
393
|
/**
|
|
275
394
|
* Get a snapshot. Get details of a snapshot with the specified ID.
|
|
276
395
|
*
|
|
277
396
|
* @param request - The request {@link GetSnapshotRequest}
|
|
278
397
|
* @returns A Promise of GetSnapshotResponse
|
|
279
398
|
*/
|
|
280
|
-
getSnapshot = request => this.client.fetch(
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
399
|
+
getSnapshot = (request) => this.client.fetch(
|
|
400
|
+
{
|
|
401
|
+
method: "GET",
|
|
402
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
|
|
403
|
+
},
|
|
404
|
+
unmarshalGetSnapshotResponse
|
|
405
|
+
);
|
|
406
|
+
_setSnapshot = (request) => this.client.fetch(
|
|
407
|
+
{
|
|
408
|
+
body: JSON.stringify(
|
|
409
|
+
marshalSetSnapshotRequest(request, this.client.settings)
|
|
410
|
+
),
|
|
411
|
+
headers: jsonContentHeaders,
|
|
412
|
+
method: "PUT",
|
|
413
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
|
|
414
|
+
},
|
|
415
|
+
unmarshalSetSnapshotResponse
|
|
416
|
+
);
|
|
291
417
|
/**
|
|
292
418
|
* Update a snapshot. Update the properties of a snapshot.
|
|
293
419
|
*
|
|
294
420
|
* @param request - The request {@link UpdateSnapshotRequest}
|
|
295
421
|
* @returns A Promise of UpdateSnapshotResponse
|
|
296
422
|
*/
|
|
297
|
-
updateSnapshot = request => this.client.fetch(
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
423
|
+
updateSnapshot = (request) => this.client.fetch(
|
|
424
|
+
{
|
|
425
|
+
body: JSON.stringify(
|
|
426
|
+
marshalUpdateSnapshotRequest(request, this.client.settings)
|
|
427
|
+
),
|
|
428
|
+
headers: jsonContentHeaders,
|
|
429
|
+
method: "PATCH",
|
|
430
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
|
|
431
|
+
},
|
|
432
|
+
unmarshalUpdateSnapshotResponse
|
|
433
|
+
);
|
|
304
434
|
/**
|
|
305
435
|
* Delete a snapshot. Delete the snapshot with the specified ID.
|
|
306
436
|
*
|
|
307
437
|
* @param request - The request {@link DeleteSnapshotRequest}
|
|
308
438
|
*/
|
|
309
|
-
deleteSnapshot = request => this.client.fetch({
|
|
310
|
-
method:
|
|
311
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
439
|
+
deleteSnapshot = (request) => this.client.fetch({
|
|
440
|
+
method: "DELETE",
|
|
441
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
|
|
312
442
|
});
|
|
313
|
-
|
|
314
443
|
/**
|
|
315
444
|
* Export a snapshot. Export a snapshot to a specified S3 bucket in the same
|
|
316
445
|
* region.
|
|
@@ -318,18 +447,36 @@ class API extends API$1 {
|
|
|
318
447
|
* @param request - The request {@link ExportSnapshotRequest}
|
|
319
448
|
* @returns A Promise of ExportSnapshotResponse
|
|
320
449
|
*/
|
|
321
|
-
exportSnapshot = request => this.client.fetch(
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
450
|
+
exportSnapshot = (request) => this.client.fetch(
|
|
451
|
+
{
|
|
452
|
+
body: JSON.stringify(
|
|
453
|
+
marshalExportSnapshotRequest(request, this.client.settings)
|
|
454
|
+
),
|
|
455
|
+
headers: jsonContentHeaders,
|
|
456
|
+
method: "POST",
|
|
457
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}/export`
|
|
458
|
+
},
|
|
459
|
+
unmarshalExportSnapshotResponse
|
|
460
|
+
);
|
|
461
|
+
pageOfListVolumes = (request = {}) => this.client.fetch(
|
|
462
|
+
{
|
|
463
|
+
method: "GET",
|
|
464
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes`,
|
|
465
|
+
urlParams: urlParams(
|
|
466
|
+
["name", request.name],
|
|
467
|
+
["organization", request.organization],
|
|
468
|
+
["page", request.page],
|
|
469
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
470
|
+
["project", request.project],
|
|
471
|
+
[
|
|
472
|
+
"tags",
|
|
473
|
+
request.tags && request.tags.length > 0 ? request.tags.join(",") : void 0
|
|
474
|
+
],
|
|
475
|
+
["volume_type", request.volumeType]
|
|
476
|
+
)
|
|
477
|
+
},
|
|
478
|
+
unmarshalListVolumesResponse
|
|
479
|
+
);
|
|
333
480
|
/**
|
|
334
481
|
* List volumes. List volumes in the specified Availability Zone. You can
|
|
335
482
|
* filter the output by volume type.
|
|
@@ -337,8 +484,7 @@ class API extends API$1 {
|
|
|
337
484
|
* @param request - The request {@link ListVolumesRequest}
|
|
338
485
|
* @returns A Promise of ListVolumesResponse
|
|
339
486
|
*/
|
|
340
|
-
listVolumes = (request = {}) => enrichForPagination(
|
|
341
|
-
|
|
487
|
+
listVolumes = (request = {}) => enrichForPagination("volumes", this.pageOfListVolumes, request);
|
|
342
488
|
/**
|
|
343
489
|
* Create a volume. Create a volume of a specified type in an Availability
|
|
344
490
|
* Zone.
|
|
@@ -346,24 +492,30 @@ class API extends API$1 {
|
|
|
346
492
|
* @param request - The request {@link CreateVolumeRequest}
|
|
347
493
|
* @returns A Promise of CreateVolumeResponse
|
|
348
494
|
*/
|
|
349
|
-
createVolume = (request = {}) => this.client.fetch(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
495
|
+
createVolume = (request = {}) => this.client.fetch(
|
|
496
|
+
{
|
|
497
|
+
body: JSON.stringify(
|
|
498
|
+
marshalCreateVolumeRequest(request, this.client.settings)
|
|
499
|
+
),
|
|
500
|
+
headers: jsonContentHeaders,
|
|
501
|
+
method: "POST",
|
|
502
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes`
|
|
503
|
+
},
|
|
504
|
+
unmarshalCreateVolumeResponse
|
|
505
|
+
);
|
|
356
506
|
/**
|
|
357
507
|
* Get a volume. Get details of a volume with the specified ID.
|
|
358
508
|
*
|
|
359
509
|
* @param request - The request {@link GetVolumeRequest}
|
|
360
510
|
* @returns A Promise of GetVolumeResponse
|
|
361
511
|
*/
|
|
362
|
-
getVolume = request => this.client.fetch(
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
512
|
+
getVolume = (request) => this.client.fetch(
|
|
513
|
+
{
|
|
514
|
+
method: "GET",
|
|
515
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam("volumeId", request.volumeId)}`
|
|
516
|
+
},
|
|
517
|
+
unmarshalGetVolumeResponse
|
|
518
|
+
);
|
|
367
519
|
/**
|
|
368
520
|
* Update a volume. Replace the name and/or size properties of a volume
|
|
369
521
|
* specified by its ID, with the specified value(s). Any volume name can be
|
|
@@ -372,36 +524,56 @@ class API extends API$1 {
|
|
|
372
524
|
* @param request - The request {@link UpdateVolumeRequest}
|
|
373
525
|
* @returns A Promise of UpdateVolumeResponse
|
|
374
526
|
*/
|
|
375
|
-
updateVolume = request => this.client.fetch(
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
527
|
+
updateVolume = (request) => this.client.fetch(
|
|
528
|
+
{
|
|
529
|
+
body: JSON.stringify(
|
|
530
|
+
marshalUpdateVolumeRequest(request, this.client.settings)
|
|
531
|
+
),
|
|
532
|
+
headers: jsonContentHeaders,
|
|
533
|
+
method: "PATCH",
|
|
534
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam("volumeId", request.volumeId)}`
|
|
535
|
+
},
|
|
536
|
+
unmarshalUpdateVolumeResponse
|
|
537
|
+
);
|
|
382
538
|
/**
|
|
383
539
|
* Delete a volume. Delete the volume with the specified ID.
|
|
384
540
|
*
|
|
385
541
|
* @param request - The request {@link DeleteVolumeRequest}
|
|
386
542
|
*/
|
|
387
|
-
deleteVolume = request => this.client.fetch({
|
|
388
|
-
method:
|
|
389
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
543
|
+
deleteVolume = (request) => this.client.fetch({
|
|
544
|
+
method: "DELETE",
|
|
545
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam("volumeId", request.volumeId)}`
|
|
390
546
|
});
|
|
391
|
-
pageOfListSecurityGroups = (request = {}) => this.client.fetch(
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
547
|
+
pageOfListSecurityGroups = (request = {}) => this.client.fetch(
|
|
548
|
+
{
|
|
549
|
+
method: "GET",
|
|
550
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups`,
|
|
551
|
+
urlParams: urlParams(
|
|
552
|
+
["name", request.name],
|
|
553
|
+
["organization", request.organization],
|
|
554
|
+
["page", request.page],
|
|
555
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
556
|
+
["project", request.project],
|
|
557
|
+
["project_default", request.projectDefault],
|
|
558
|
+
[
|
|
559
|
+
"tags",
|
|
560
|
+
request.tags && request.tags.length > 0 ? request.tags.join(",") : void 0
|
|
561
|
+
]
|
|
562
|
+
)
|
|
563
|
+
},
|
|
564
|
+
unmarshalListSecurityGroupsResponse
|
|
565
|
+
);
|
|
397
566
|
/**
|
|
398
567
|
* List security groups. List all existing security groups.
|
|
399
568
|
*
|
|
400
569
|
* @param request - The request {@link ListSecurityGroupsRequest}
|
|
401
570
|
* @returns A Promise of ListSecurityGroupsResponse
|
|
402
571
|
*/
|
|
403
|
-
listSecurityGroups = (request = {}) => enrichForPagination(
|
|
404
|
-
|
|
572
|
+
listSecurityGroups = (request = {}) => enrichForPagination(
|
|
573
|
+
"securityGroups",
|
|
574
|
+
this.pageOfListSecurityGroups,
|
|
575
|
+
request
|
|
576
|
+
);
|
|
405
577
|
/**
|
|
406
578
|
* Create a security group. Create a security group with a specified name and
|
|
407
579
|
* description.
|
|
@@ -409,13 +581,17 @@ class API extends API$1 {
|
|
|
409
581
|
* @param request - The request {@link CreateSecurityGroupRequest}
|
|
410
582
|
* @returns A Promise of CreateSecurityGroupResponse
|
|
411
583
|
*/
|
|
412
|
-
createSecurityGroup = request => this.client.fetch(
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
584
|
+
createSecurityGroup = (request) => this.client.fetch(
|
|
585
|
+
{
|
|
586
|
+
body: JSON.stringify(
|
|
587
|
+
marshalCreateSecurityGroupRequest(request, this.client.settings)
|
|
588
|
+
),
|
|
589
|
+
headers: jsonContentHeaders,
|
|
590
|
+
method: "POST",
|
|
591
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups`
|
|
592
|
+
},
|
|
593
|
+
unmarshalCreateSecurityGroupResponse
|
|
594
|
+
);
|
|
419
595
|
/**
|
|
420
596
|
* Get a security group. Get the details of a security group with the
|
|
421
597
|
* specified ID.
|
|
@@ -423,40 +599,50 @@ class API extends API$1 {
|
|
|
423
599
|
* @param request - The request {@link GetSecurityGroupRequest}
|
|
424
600
|
* @returns A Promise of GetSecurityGroupResponse
|
|
425
601
|
*/
|
|
426
|
-
getSecurityGroup = request => this.client.fetch(
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
602
|
+
getSecurityGroup = (request) => this.client.fetch(
|
|
603
|
+
{
|
|
604
|
+
method: "GET",
|
|
605
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}`
|
|
606
|
+
},
|
|
607
|
+
unmarshalGetSecurityGroupResponse
|
|
608
|
+
);
|
|
431
609
|
/**
|
|
432
610
|
* Delete a security group. Delete a security group with the specified ID.
|
|
433
611
|
*
|
|
434
612
|
* @param request - The request {@link DeleteSecurityGroupRequest}
|
|
435
613
|
*/
|
|
436
|
-
deleteSecurityGroup = request => this.client.fetch({
|
|
437
|
-
method:
|
|
438
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
614
|
+
deleteSecurityGroup = (request) => this.client.fetch({
|
|
615
|
+
method: "DELETE",
|
|
616
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}`
|
|
439
617
|
});
|
|
440
|
-
_setSecurityGroup = request => this.client.fetch(
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
618
|
+
_setSecurityGroup = (request) => this.client.fetch(
|
|
619
|
+
{
|
|
620
|
+
body: JSON.stringify(
|
|
621
|
+
marshalSetSecurityGroupRequest(request, this.client.settings)
|
|
622
|
+
),
|
|
623
|
+
headers: jsonContentHeaders,
|
|
624
|
+
method: "PUT",
|
|
625
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("id", request.id)}`
|
|
626
|
+
},
|
|
627
|
+
unmarshalSetSecurityGroupResponse
|
|
628
|
+
);
|
|
447
629
|
/**
|
|
448
630
|
* Update a security group. Update the properties of security group.
|
|
449
631
|
*
|
|
450
632
|
* @param request - The request {@link UpdateSecurityGroupRequest}
|
|
451
633
|
* @returns A Promise of UpdateSecurityGroupResponse
|
|
452
634
|
*/
|
|
453
|
-
updateSecurityGroup = request => this.client.fetch(
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
635
|
+
updateSecurityGroup = (request) => this.client.fetch(
|
|
636
|
+
{
|
|
637
|
+
body: JSON.stringify(
|
|
638
|
+
marshalUpdateSecurityGroupRequest(request, this.client.settings)
|
|
639
|
+
),
|
|
640
|
+
headers: jsonContentHeaders,
|
|
641
|
+
method: "PATCH",
|
|
642
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}`
|
|
643
|
+
},
|
|
644
|
+
unmarshalUpdateSecurityGroupResponse
|
|
645
|
+
);
|
|
460
646
|
/**
|
|
461
647
|
* Get default rules. Lists the default rules applied to all the security
|
|
462
648
|
* groups.
|
|
@@ -464,37 +650,48 @@ class API extends API$1 {
|
|
|
464
650
|
* @param request - The request {@link ListDefaultSecurityGroupRulesRequest}
|
|
465
651
|
* @returns A Promise of ListSecurityGroupRulesResponse
|
|
466
652
|
*/
|
|
467
|
-
listDefaultSecurityGroupRules = (request = {}) => this.client.fetch(
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
653
|
+
listDefaultSecurityGroupRules = (request = {}) => this.client.fetch(
|
|
654
|
+
{
|
|
655
|
+
method: "GET",
|
|
656
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/default/rules`
|
|
657
|
+
},
|
|
658
|
+
unmarshalListSecurityGroupRulesResponse
|
|
659
|
+
);
|
|
660
|
+
pageOfListSecurityGroupRules = (request) => this.client.fetch(
|
|
661
|
+
{
|
|
662
|
+
method: "GET",
|
|
663
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}/rules`,
|
|
664
|
+
urlParams: urlParams(
|
|
665
|
+
["page", request.page],
|
|
666
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize]
|
|
667
|
+
)
|
|
668
|
+
},
|
|
669
|
+
unmarshalListSecurityGroupRulesResponse
|
|
670
|
+
);
|
|
477
671
|
/**
|
|
478
672
|
* List rules. List the rules of the a specified security group ID.
|
|
479
673
|
*
|
|
480
674
|
* @param request - The request {@link ListSecurityGroupRulesRequest}
|
|
481
675
|
* @returns A Promise of ListSecurityGroupRulesResponse
|
|
482
676
|
*/
|
|
483
|
-
listSecurityGroupRules = request => enrichForPagination(
|
|
484
|
-
|
|
677
|
+
listSecurityGroupRules = (request) => enrichForPagination("rules", this.pageOfListSecurityGroupRules, request);
|
|
485
678
|
/**
|
|
486
679
|
* Create rule. Create a rule in the specified security group ID.
|
|
487
680
|
*
|
|
488
681
|
* @param request - The request {@link CreateSecurityGroupRuleRequest}
|
|
489
682
|
* @returns A Promise of CreateSecurityGroupRuleResponse
|
|
490
683
|
*/
|
|
491
|
-
createSecurityGroupRule = request => this.client.fetch(
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
684
|
+
createSecurityGroupRule = (request) => this.client.fetch(
|
|
685
|
+
{
|
|
686
|
+
body: JSON.stringify(
|
|
687
|
+
marshalCreateSecurityGroupRuleRequest(request, this.client.settings)
|
|
688
|
+
),
|
|
689
|
+
headers: jsonContentHeaders,
|
|
690
|
+
method: "POST",
|
|
691
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}/rules`
|
|
692
|
+
},
|
|
693
|
+
unmarshalCreateSecurityGroupRuleResponse
|
|
694
|
+
);
|
|
498
695
|
/**
|
|
499
696
|
* Update all the rules of a security group. Replaces the existing rules of
|
|
500
697
|
* the security group with the rules provided. This endpoint supports the
|
|
@@ -504,40 +701,50 @@ class API extends API$1 {
|
|
|
504
701
|
* @param request - The request {@link SetSecurityGroupRulesRequest}
|
|
505
702
|
* @returns A Promise of SetSecurityGroupRulesResponse
|
|
506
703
|
*/
|
|
507
|
-
setSecurityGroupRules = request => this.client.fetch(
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
704
|
+
setSecurityGroupRules = (request) => this.client.fetch(
|
|
705
|
+
{
|
|
706
|
+
body: JSON.stringify(
|
|
707
|
+
marshalSetSecurityGroupRulesRequest(request, this.client.settings)
|
|
708
|
+
),
|
|
709
|
+
headers: jsonContentHeaders,
|
|
710
|
+
method: "PUT",
|
|
711
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}/rules`
|
|
712
|
+
},
|
|
713
|
+
unmarshalSetSecurityGroupRulesResponse
|
|
714
|
+
);
|
|
514
715
|
/**
|
|
515
716
|
* Delete rule. Delete a security group rule with the specified ID.
|
|
516
717
|
*
|
|
517
718
|
* @param request - The request {@link DeleteSecurityGroupRuleRequest}
|
|
518
719
|
*/
|
|
519
|
-
deleteSecurityGroupRule = request => this.client.fetch({
|
|
520
|
-
method:
|
|
521
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
720
|
+
deleteSecurityGroupRule = (request) => this.client.fetch({
|
|
721
|
+
method: "DELETE",
|
|
722
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}/rules/${validatePathParam("securityGroupRuleId", request.securityGroupRuleId)}`
|
|
522
723
|
});
|
|
523
|
-
|
|
524
724
|
/**
|
|
525
725
|
* Get rule. Get details of a security group rule with the specified ID.
|
|
526
726
|
*
|
|
527
727
|
* @param request - The request {@link GetSecurityGroupRuleRequest}
|
|
528
728
|
* @returns A Promise of GetSecurityGroupRuleResponse
|
|
529
729
|
*/
|
|
530
|
-
getSecurityGroupRule = request => this.client.fetch(
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
730
|
+
getSecurityGroupRule = (request) => this.client.fetch(
|
|
731
|
+
{
|
|
732
|
+
method: "GET",
|
|
733
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}/rules/${validatePathParam("securityGroupRuleId", request.securityGroupRuleId)}`
|
|
734
|
+
},
|
|
735
|
+
unmarshalGetSecurityGroupRuleResponse
|
|
736
|
+
);
|
|
737
|
+
_setSecurityGroupRule = (request) => this.client.fetch(
|
|
738
|
+
{
|
|
739
|
+
body: JSON.stringify(
|
|
740
|
+
marshalSetSecurityGroupRuleRequest(request, this.client.settings)
|
|
741
|
+
),
|
|
742
|
+
headers: jsonContentHeaders,
|
|
743
|
+
method: "PUT",
|
|
744
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}/rules/${validatePathParam("securityGroupRuleId", request.securityGroupRuleId)}`
|
|
745
|
+
},
|
|
746
|
+
unmarshalSetSecurityGroupRuleResponse
|
|
747
|
+
);
|
|
541
748
|
/**
|
|
542
749
|
* Update security group rule. Update the properties of a rule from a
|
|
543
750
|
* specified security group.
|
|
@@ -545,18 +752,35 @@ class API extends API$1 {
|
|
|
545
752
|
* @param request - The request {@link UpdateSecurityGroupRuleRequest}
|
|
546
753
|
* @returns A Promise of UpdateSecurityGroupRuleResponse
|
|
547
754
|
*/
|
|
548
|
-
updateSecurityGroupRule = request => this.client.fetch(
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
755
|
+
updateSecurityGroupRule = (request) => this.client.fetch(
|
|
756
|
+
{
|
|
757
|
+
body: JSON.stringify(
|
|
758
|
+
marshalUpdateSecurityGroupRuleRequest(request, this.client.settings)
|
|
759
|
+
),
|
|
760
|
+
headers: jsonContentHeaders,
|
|
761
|
+
method: "PATCH",
|
|
762
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/security_groups/${validatePathParam("securityGroupId", request.securityGroupId)}/rules/${validatePathParam("securityGroupRuleId", request.securityGroupRuleId)}`
|
|
763
|
+
},
|
|
764
|
+
unmarshalUpdateSecurityGroupRuleResponse
|
|
765
|
+
);
|
|
766
|
+
pageOfListPlacementGroups = (request = {}) => this.client.fetch(
|
|
767
|
+
{
|
|
768
|
+
method: "GET",
|
|
769
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups`,
|
|
770
|
+
urlParams: urlParams(
|
|
771
|
+
["name", request.name],
|
|
772
|
+
["organization", request.organization],
|
|
773
|
+
["page", request.page],
|
|
774
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
775
|
+
["project", request.project],
|
|
776
|
+
[
|
|
777
|
+
"tags",
|
|
778
|
+
request.tags && request.tags.length > 0 ? request.tags.join(",") : void 0
|
|
779
|
+
]
|
|
780
|
+
)
|
|
781
|
+
},
|
|
782
|
+
unmarshalListPlacementGroupsResponse
|
|
783
|
+
);
|
|
560
784
|
/**
|
|
561
785
|
* List placement groups. List all placement groups in a specified
|
|
562
786
|
* Availability Zone.
|
|
@@ -564,8 +788,11 @@ class API extends API$1 {
|
|
|
564
788
|
* @param request - The request {@link ListPlacementGroupsRequest}
|
|
565
789
|
* @returns A Promise of ListPlacementGroupsResponse
|
|
566
790
|
*/
|
|
567
|
-
listPlacementGroups = (request = {}) => enrichForPagination(
|
|
568
|
-
|
|
791
|
+
listPlacementGroups = (request = {}) => enrichForPagination(
|
|
792
|
+
"placementGroups",
|
|
793
|
+
this.pageOfListPlacementGroups,
|
|
794
|
+
request
|
|
795
|
+
);
|
|
569
796
|
/**
|
|
570
797
|
* Create a placement group. Create a new placement group in a specified
|
|
571
798
|
* Availability Zone.
|
|
@@ -573,37 +800,47 @@ class API extends API$1 {
|
|
|
573
800
|
* @param request - The request {@link CreatePlacementGroupRequest}
|
|
574
801
|
* @returns A Promise of CreatePlacementGroupResponse
|
|
575
802
|
*/
|
|
576
|
-
createPlacementGroup = (request = {}) => this.client.fetch(
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
803
|
+
createPlacementGroup = (request = {}) => this.client.fetch(
|
|
804
|
+
{
|
|
805
|
+
body: JSON.stringify(
|
|
806
|
+
marshalCreatePlacementGroupRequest(request, this.client.settings)
|
|
807
|
+
),
|
|
808
|
+
headers: jsonContentHeaders,
|
|
809
|
+
method: "POST",
|
|
810
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups`
|
|
811
|
+
},
|
|
812
|
+
unmarshalCreatePlacementGroupResponse
|
|
813
|
+
);
|
|
583
814
|
/**
|
|
584
815
|
* Get a placement group. Get the specified placement group.
|
|
585
816
|
*
|
|
586
817
|
* @param request - The request {@link GetPlacementGroupRequest}
|
|
587
818
|
* @returns A Promise of GetPlacementGroupResponse
|
|
588
819
|
*/
|
|
589
|
-
getPlacementGroup = request => this.client.fetch(
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
820
|
+
getPlacementGroup = (request) => this.client.fetch(
|
|
821
|
+
{
|
|
822
|
+
method: "GET",
|
|
823
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam("placementGroupId", request.placementGroupId)}`
|
|
824
|
+
},
|
|
825
|
+
unmarshalGetPlacementGroupResponse
|
|
826
|
+
);
|
|
594
827
|
/**
|
|
595
828
|
* Set placement group. Set all parameters of the specified placement group.
|
|
596
829
|
*
|
|
597
830
|
* @param request - The request {@link SetPlacementGroupRequest}
|
|
598
831
|
* @returns A Promise of SetPlacementGroupResponse
|
|
599
832
|
*/
|
|
600
|
-
setPlacementGroup = request => this.client.fetch(
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
833
|
+
setPlacementGroup = (request) => this.client.fetch(
|
|
834
|
+
{
|
|
835
|
+
body: JSON.stringify(
|
|
836
|
+
marshalSetPlacementGroupRequest(request, this.client.settings)
|
|
837
|
+
),
|
|
838
|
+
headers: jsonContentHeaders,
|
|
839
|
+
method: "PUT",
|
|
840
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam("placementGroupId", request.placementGroupId)}`
|
|
841
|
+
},
|
|
842
|
+
unmarshalSetPlacementGroupResponse
|
|
843
|
+
);
|
|
607
844
|
/**
|
|
608
845
|
* Update a placement group. Update one or more parameter of the specified
|
|
609
846
|
* placement group.
|
|
@@ -611,23 +848,26 @@ class API extends API$1 {
|
|
|
611
848
|
* @param request - The request {@link UpdatePlacementGroupRequest}
|
|
612
849
|
* @returns A Promise of UpdatePlacementGroupResponse
|
|
613
850
|
*/
|
|
614
|
-
updatePlacementGroup = request => this.client.fetch(
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
851
|
+
updatePlacementGroup = (request) => this.client.fetch(
|
|
852
|
+
{
|
|
853
|
+
body: JSON.stringify(
|
|
854
|
+
marshalUpdatePlacementGroupRequest(request, this.client.settings)
|
|
855
|
+
),
|
|
856
|
+
headers: jsonContentHeaders,
|
|
857
|
+
method: "PATCH",
|
|
858
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam("placementGroupId", request.placementGroupId)}`
|
|
859
|
+
},
|
|
860
|
+
unmarshalUpdatePlacementGroupResponse
|
|
861
|
+
);
|
|
621
862
|
/**
|
|
622
863
|
* Delete the specified placement group.
|
|
623
864
|
*
|
|
624
865
|
* @param request - The request {@link DeletePlacementGroupRequest}
|
|
625
866
|
*/
|
|
626
|
-
deletePlacementGroup = request => this.client.fetch({
|
|
627
|
-
method:
|
|
628
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
867
|
+
deletePlacementGroup = (request) => this.client.fetch({
|
|
868
|
+
method: "DELETE",
|
|
869
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam("placementGroupId", request.placementGroupId)}`
|
|
629
870
|
});
|
|
630
|
-
|
|
631
871
|
/**
|
|
632
872
|
* Get placement group servers. Get all Instances belonging to the specified
|
|
633
873
|
* placement group.
|
|
@@ -635,11 +875,13 @@ class API extends API$1 {
|
|
|
635
875
|
* @param request - The request {@link GetPlacementGroupServersRequest}
|
|
636
876
|
* @returns A Promise of GetPlacementGroupServersResponse
|
|
637
877
|
*/
|
|
638
|
-
getPlacementGroupServers = request => this.client.fetch(
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
878
|
+
getPlacementGroupServers = (request) => this.client.fetch(
|
|
879
|
+
{
|
|
880
|
+
method: "GET",
|
|
881
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam("placementGroupId", request.placementGroupId)}/servers`
|
|
882
|
+
},
|
|
883
|
+
unmarshalGetPlacementGroupServersResponse
|
|
884
|
+
);
|
|
643
885
|
/**
|
|
644
886
|
* Set placement group servers. Set all Instances belonging to the specified
|
|
645
887
|
* placement group.
|
|
@@ -647,13 +889,17 @@ class API extends API$1 {
|
|
|
647
889
|
* @param request - The request {@link SetPlacementGroupServersRequest}
|
|
648
890
|
* @returns A Promise of SetPlacementGroupServersResponse
|
|
649
891
|
*/
|
|
650
|
-
setPlacementGroupServers = request => this.client.fetch(
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
892
|
+
setPlacementGroupServers = (request) => this.client.fetch(
|
|
893
|
+
{
|
|
894
|
+
body: JSON.stringify(
|
|
895
|
+
marshalSetPlacementGroupServersRequest(request, this.client.settings)
|
|
896
|
+
),
|
|
897
|
+
headers: jsonContentHeaders,
|
|
898
|
+
method: "PUT",
|
|
899
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam("placementGroupId", request.placementGroupId)}/servers`
|
|
900
|
+
},
|
|
901
|
+
unmarshalSetPlacementGroupServersResponse
|
|
902
|
+
);
|
|
657
903
|
/**
|
|
658
904
|
* Update placement group servers. Update all Instances belonging to the
|
|
659
905
|
* specified placement group.
|
|
@@ -661,26 +907,46 @@ class API extends API$1 {
|
|
|
661
907
|
* @param request - The request {@link UpdatePlacementGroupServersRequest}
|
|
662
908
|
* @returns A Promise of UpdatePlacementGroupServersResponse
|
|
663
909
|
*/
|
|
664
|
-
updatePlacementGroupServers = request => this.client.fetch(
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
910
|
+
updatePlacementGroupServers = (request) => this.client.fetch(
|
|
911
|
+
{
|
|
912
|
+
body: JSON.stringify(
|
|
913
|
+
marshalUpdatePlacementGroupServersRequest(
|
|
914
|
+
request,
|
|
915
|
+
this.client.settings
|
|
916
|
+
)
|
|
917
|
+
),
|
|
918
|
+
headers: jsonContentHeaders,
|
|
919
|
+
method: "PATCH",
|
|
920
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam("placementGroupId", request.placementGroupId)}/servers`
|
|
921
|
+
},
|
|
922
|
+
unmarshalUpdatePlacementGroupServersResponse
|
|
923
|
+
);
|
|
924
|
+
pageOfListIps = (request = {}) => this.client.fetch(
|
|
925
|
+
{
|
|
926
|
+
method: "GET",
|
|
927
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
928
|
+
urlParams: urlParams(
|
|
929
|
+
["name", request.name],
|
|
930
|
+
["organization", request.organization],
|
|
931
|
+
["page", request.page],
|
|
932
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
933
|
+
["project", request.project],
|
|
934
|
+
[
|
|
935
|
+
"tags",
|
|
936
|
+
request.tags && request.tags.length > 0 ? request.tags.join(",") : void 0
|
|
937
|
+
],
|
|
938
|
+
["type", request.type]
|
|
939
|
+
)
|
|
940
|
+
},
|
|
941
|
+
unmarshalListIpsResponse
|
|
942
|
+
);
|
|
676
943
|
/**
|
|
677
944
|
* List all flexible IPs. List all flexible IPs in a specified zone.
|
|
678
945
|
*
|
|
679
946
|
* @param request - The request {@link ListIpsRequest}
|
|
680
947
|
* @returns A Promise of ListIpsResponse
|
|
681
948
|
*/
|
|
682
|
-
listIps = (request = {}) => enrichForPagination(
|
|
683
|
-
|
|
949
|
+
listIps = (request = {}) => enrichForPagination("ips", this.pageOfListIps, request);
|
|
684
950
|
/**
|
|
685
951
|
* Reserve a flexible IP. Reserve a flexible IP and attach it to the specified
|
|
686
952
|
* Instance.
|
|
@@ -688,24 +954,30 @@ class API extends API$1 {
|
|
|
688
954
|
* @param request - The request {@link CreateIpRequest}
|
|
689
955
|
* @returns A Promise of CreateIpResponse
|
|
690
956
|
*/
|
|
691
|
-
createIp = (request = {}) => this.client.fetch(
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
957
|
+
createIp = (request = {}) => this.client.fetch(
|
|
958
|
+
{
|
|
959
|
+
body: JSON.stringify(
|
|
960
|
+
marshalCreateIpRequest(request, this.client.settings)
|
|
961
|
+
),
|
|
962
|
+
headers: jsonContentHeaders,
|
|
963
|
+
method: "POST",
|
|
964
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
965
|
+
},
|
|
966
|
+
unmarshalCreateIpResponse
|
|
967
|
+
);
|
|
698
968
|
/**
|
|
699
969
|
* Get a flexible IP. Get details of an IP with the specified ID or address.
|
|
700
970
|
*
|
|
701
971
|
* @param request - The request {@link GetIpRequest}
|
|
702
972
|
* @returns A Promise of GetIpResponse
|
|
703
973
|
*/
|
|
704
|
-
getIp = request => this.client.fetch(
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
974
|
+
getIp = (request) => this.client.fetch(
|
|
975
|
+
{
|
|
976
|
+
method: "GET",
|
|
977
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ip", request.ip)}`
|
|
978
|
+
},
|
|
979
|
+
unmarshalGetIpResponse
|
|
980
|
+
);
|
|
709
981
|
/**
|
|
710
982
|
* Update a flexible IP. Update a flexible IP in the specified zone with the
|
|
711
983
|
* specified ID.
|
|
@@ -713,60 +985,78 @@ class API extends API$1 {
|
|
|
713
985
|
* @param request - The request {@link UpdateIpRequest}
|
|
714
986
|
* @returns A Promise of UpdateIpResponse
|
|
715
987
|
*/
|
|
716
|
-
updateIp = request => this.client.fetch(
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
988
|
+
updateIp = (request) => this.client.fetch(
|
|
989
|
+
{
|
|
990
|
+
body: JSON.stringify(
|
|
991
|
+
marshalUpdateIpRequest(request, this.client.settings)
|
|
992
|
+
),
|
|
993
|
+
headers: jsonContentHeaders,
|
|
994
|
+
method: "PATCH",
|
|
995
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ip", request.ip)}`
|
|
996
|
+
},
|
|
997
|
+
unmarshalUpdateIpResponse
|
|
998
|
+
);
|
|
723
999
|
/**
|
|
724
1000
|
* Delete a flexible IP. Delete the IP with the specified ID.
|
|
725
1001
|
*
|
|
726
1002
|
* @param request - The request {@link DeleteIpRequest}
|
|
727
1003
|
*/
|
|
728
|
-
deleteIp = request => this.client.fetch({
|
|
729
|
-
method:
|
|
730
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
1004
|
+
deleteIp = (request) => this.client.fetch({
|
|
1005
|
+
method: "DELETE",
|
|
1006
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ip", request.ip)}`
|
|
731
1007
|
});
|
|
732
|
-
pageOfListPrivateNICs = request => this.client.fetch(
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
1008
|
+
pageOfListPrivateNICs = (request) => this.client.fetch(
|
|
1009
|
+
{
|
|
1010
|
+
method: "GET",
|
|
1011
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private_nics`,
|
|
1012
|
+
urlParams: urlParams(
|
|
1013
|
+
["page", request.page],
|
|
1014
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
1015
|
+
[
|
|
1016
|
+
"tags",
|
|
1017
|
+
request.tags && request.tags.length > 0 ? request.tags.join(",") : void 0
|
|
1018
|
+
]
|
|
1019
|
+
)
|
|
1020
|
+
},
|
|
1021
|
+
unmarshalListPrivateNICsResponse
|
|
1022
|
+
);
|
|
738
1023
|
/**
|
|
739
1024
|
* List all private NICs. List all private NICs of a specified Instance.
|
|
740
1025
|
*
|
|
741
1026
|
* @param request - The request {@link ListPrivateNICsRequest}
|
|
742
1027
|
* @returns A Promise of ListPrivateNICsResponse
|
|
743
1028
|
*/
|
|
744
|
-
listPrivateNICs = request => enrichForPagination(
|
|
745
|
-
|
|
1029
|
+
listPrivateNICs = (request) => enrichForPagination("privateNics", this.pageOfListPrivateNICs, request);
|
|
746
1030
|
/**
|
|
747
1031
|
* Create a private NIC connecting an Instance to a Private Network.
|
|
748
1032
|
*
|
|
749
1033
|
* @param request - The request {@link CreatePrivateNICRequest}
|
|
750
1034
|
* @returns A Promise of CreatePrivateNICResponse
|
|
751
1035
|
*/
|
|
752
|
-
createPrivateNIC = request => this.client.fetch(
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
1036
|
+
createPrivateNIC = (request) => this.client.fetch(
|
|
1037
|
+
{
|
|
1038
|
+
body: JSON.stringify(
|
|
1039
|
+
marshalCreatePrivateNICRequest(request, this.client.settings)
|
|
1040
|
+
),
|
|
1041
|
+
headers: jsonContentHeaders,
|
|
1042
|
+
method: "POST",
|
|
1043
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private_nics`
|
|
1044
|
+
},
|
|
1045
|
+
unmarshalCreatePrivateNICResponse
|
|
1046
|
+
);
|
|
759
1047
|
/**
|
|
760
1048
|
* Get a private NIC. Get private NIC properties.
|
|
761
1049
|
*
|
|
762
1050
|
* @param request - The request {@link GetPrivateNICRequest}
|
|
763
1051
|
* @returns A Promise of GetPrivateNICResponse
|
|
764
1052
|
*/
|
|
765
|
-
getPrivateNIC = request => this.client.fetch(
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
1053
|
+
getPrivateNIC = (request) => this.client.fetch(
|
|
1054
|
+
{
|
|
1055
|
+
method: "GET",
|
|
1056
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private_nics/${validatePathParam("privateNicId", request.privateNicId)}`
|
|
1057
|
+
},
|
|
1058
|
+
unmarshalGetPrivateNICResponse
|
|
1059
|
+
);
|
|
770
1060
|
/**
|
|
771
1061
|
* Update a private NIC. Update one or more parameter(s) of a specified
|
|
772
1062
|
* private NIC.
|
|
@@ -774,28 +1064,41 @@ class API extends API$1 {
|
|
|
774
1064
|
* @param request - The request {@link UpdatePrivateNICRequest}
|
|
775
1065
|
* @returns A Promise of PrivateNIC
|
|
776
1066
|
*/
|
|
777
|
-
updatePrivateNIC = request => this.client.fetch(
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
1067
|
+
updatePrivateNIC = (request) => this.client.fetch(
|
|
1068
|
+
{
|
|
1069
|
+
body: JSON.stringify(
|
|
1070
|
+
marshalUpdatePrivateNICRequest(request, this.client.settings)
|
|
1071
|
+
),
|
|
1072
|
+
headers: jsonContentHeaders,
|
|
1073
|
+
method: "PATCH",
|
|
1074
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private_nics/${validatePathParam("privateNicId", request.privateNicId)}`
|
|
1075
|
+
},
|
|
1076
|
+
unmarshalPrivateNIC
|
|
1077
|
+
);
|
|
784
1078
|
/**
|
|
785
1079
|
* Delete a private NIC.
|
|
786
1080
|
*
|
|
787
1081
|
* @param request - The request {@link DeletePrivateNICRequest}
|
|
788
1082
|
*/
|
|
789
|
-
deletePrivateNIC = request => this.client.fetch({
|
|
790
|
-
method:
|
|
791
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
1083
|
+
deletePrivateNIC = (request) => this.client.fetch({
|
|
1084
|
+
method: "DELETE",
|
|
1085
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private_nics/${validatePathParam("privateNicId", request.privateNicId)}`
|
|
792
1086
|
});
|
|
793
|
-
pageOfListBootscripts = (request = {}) => this.client.fetch(
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
1087
|
+
pageOfListBootscripts = (request = {}) => this.client.fetch(
|
|
1088
|
+
{
|
|
1089
|
+
method: "GET",
|
|
1090
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/bootscripts`,
|
|
1091
|
+
urlParams: urlParams(
|
|
1092
|
+
["arch", request.arch],
|
|
1093
|
+
["default", request.default],
|
|
1094
|
+
["page", request.page],
|
|
1095
|
+
["per_page", request.perPage ?? this.client.settings.defaultPageSize],
|
|
1096
|
+
["public", request.public],
|
|
1097
|
+
["title", request.title]
|
|
1098
|
+
)
|
|
1099
|
+
},
|
|
1100
|
+
unmarshalListBootscriptsResponse
|
|
1101
|
+
);
|
|
799
1102
|
/**
|
|
800
1103
|
* List bootscripts.
|
|
801
1104
|
*
|
|
@@ -803,8 +1106,7 @@ class API extends API$1 {
|
|
|
803
1106
|
* @param request - The request {@link ListBootscriptsRequest}
|
|
804
1107
|
* @returns A Promise of ListBootscriptsResponse
|
|
805
1108
|
*/
|
|
806
|
-
listBootscripts = (request = {}) => enrichForPagination(
|
|
807
|
-
|
|
1109
|
+
listBootscripts = (request = {}) => enrichForPagination("bootscripts", this.pageOfListBootscripts, request);
|
|
808
1110
|
/**
|
|
809
1111
|
* Get bootscripts. Get details of a bootscript with the specified ID.
|
|
810
1112
|
*
|
|
@@ -812,16 +1114,24 @@ class API extends API$1 {
|
|
|
812
1114
|
* @param request - The request {@link GetBootscriptRequest}
|
|
813
1115
|
* @returns A Promise of GetBootscriptResponse
|
|
814
1116
|
*/
|
|
815
|
-
getBootscript = request => this.client.fetch(
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
1117
|
+
getBootscript = (request) => this.client.fetch(
|
|
1118
|
+
{
|
|
1119
|
+
method: "GET",
|
|
1120
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/bootscripts/${validatePathParam("bootscriptId", request.bootscriptId)}`
|
|
1121
|
+
},
|
|
1122
|
+
unmarshalGetBootscriptResponse
|
|
1123
|
+
);
|
|
1124
|
+
getDashboard = (request = {}) => this.client.fetch(
|
|
1125
|
+
{
|
|
1126
|
+
method: "GET",
|
|
1127
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dashboard`,
|
|
1128
|
+
urlParams: urlParams(
|
|
1129
|
+
["organization", request.organization],
|
|
1130
|
+
["project", request.project]
|
|
1131
|
+
)
|
|
1132
|
+
},
|
|
1133
|
+
unmarshalGetDashboardResponse
|
|
1134
|
+
);
|
|
825
1135
|
/**
|
|
826
1136
|
* Get a volume or snapshot's migration plan. Given a volume or snapshot,
|
|
827
1137
|
* returns the migration plan for a call to the "Apply a migration plan"
|
|
@@ -835,13 +1145,17 @@ class API extends API$1 {
|
|
|
835
1145
|
* @param request - The request {@link PlanBlockMigrationRequest}
|
|
836
1146
|
* @returns A Promise of MigrationPlan
|
|
837
1147
|
*/
|
|
838
|
-
planBlockMigration = (request = {}) => this.client.fetch(
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
1148
|
+
planBlockMigration = (request = {}) => this.client.fetch(
|
|
1149
|
+
{
|
|
1150
|
+
body: JSON.stringify(
|
|
1151
|
+
marshalPlanBlockMigrationRequest(request, this.client.settings)
|
|
1152
|
+
),
|
|
1153
|
+
headers: jsonContentHeaders,
|
|
1154
|
+
method: "POST",
|
|
1155
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/block-migration/plan`
|
|
1156
|
+
},
|
|
1157
|
+
unmarshalMigrationPlan
|
|
1158
|
+
);
|
|
845
1159
|
/**
|
|
846
1160
|
* Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
|
|
847
1161
|
* used, the call to this endpoint must be preceded by a call to the "Plan a
|
|
@@ -850,12 +1164,15 @@ class API extends API$1 {
|
|
|
850
1164
|
*
|
|
851
1165
|
* @param request - The request {@link ApplyBlockMigrationRequest}
|
|
852
1166
|
*/
|
|
853
|
-
applyBlockMigration = request => this.client.fetch({
|
|
854
|
-
body: JSON.stringify(
|
|
1167
|
+
applyBlockMigration = (request) => this.client.fetch({
|
|
1168
|
+
body: JSON.stringify(
|
|
1169
|
+
marshalApplyBlockMigrationRequest(request, this.client.settings)
|
|
1170
|
+
),
|
|
855
1171
|
headers: jsonContentHeaders,
|
|
856
|
-
method:
|
|
857
|
-
path: `/instance/v1/zones/${validatePathParam(
|
|
1172
|
+
method: "POST",
|
|
1173
|
+
path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
|
|
858
1174
|
});
|
|
859
1175
|
}
|
|
860
|
-
|
|
861
|
-
|
|
1176
|
+
export {
|
|
1177
|
+
API
|
|
1178
|
+
};
|