@scaleway/sdk 2.26.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/account/index.cjs +6 -0
- package/dist/api/account/index.d.ts +2 -0
- package/dist/api/account/index.js +6 -4
- package/dist/api/account/v2/api.gen.cjs +116 -0
- package/dist/api/account/v2/api.gen.d.ts +67 -0
- package/dist/api/account/v2/api.gen.js +61 -44
- package/dist/api/account/v2/index.gen.cjs +4 -0
- package/dist/api/account/v2/index.gen.d.ts +2 -0
- package/dist/api/account/v2/index.gen.js +4 -4
- package/dist/api/account/v2/marshalling.gen.cjs +44 -0
- package/dist/api/account/v2/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v2/marshalling.gen.js +18 -13
- package/dist/api/account/v2/types.gen.d.ts +62 -0
- package/dist/api/account/v3/api.gen.cjs +106 -0
- package/dist/api/account/v3/api.gen.d.ts +57 -0
- package/dist/api/account/v3/api.gen.js +61 -44
- package/dist/api/account/v3/index.gen.cjs +6 -0
- package/dist/api/account/v3/index.gen.d.ts +3 -0
- package/dist/api/account/v3/index.gen.js +6 -6
- package/dist/api/account/v3/marshalling.gen.cjs +44 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v3/marshalling.gen.js +18 -13
- package/dist/api/account/v3/types.gen.d.ts +62 -0
- package/dist/api/account/v3/validation-rules.gen.cjs +39 -0
- package/dist/api/account/v3/validation-rules.gen.d.ts +34 -0
- package/dist/api/account/v3/validation-rules.gen.js +5 -5
- package/dist/api/applesilicon/index.cjs +4 -0
- package/dist/api/applesilicon/index.d.ts +1 -0
- package/dist/api/applesilicon/index.js +4 -2
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +222 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +119 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.js +125 -83
- package/dist/api/applesilicon/v1alpha1/content.gen.cjs +11 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.js +11 -7
- package/dist/api/applesilicon/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.js +6 -5
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +147 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +56 -32
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +203 -0
- package/dist/api/baremetal/index.cjs +4 -0
- package/dist/api/baremetal/index.d.ts +1 -0
- package/dist/api/baremetal/index.js +4 -2
- package/dist/api/baremetal/v1/api.gen.cjs +575 -0
- package/dist/api/baremetal/v1/api.gen.d.ts +287 -0
- package/dist/api/baremetal/v1/api.gen.js +353 -205
- package/dist/api/baremetal/v1/api.utils.cjs +36 -0
- package/dist/api/baremetal/v1/api.utils.d.ts +13 -0
- package/dist/api/baremetal/v1/api.utils.js +27 -18
- package/dist/api/baremetal/v1/content.gen.cjs +18 -0
- package/dist/api/baremetal/v1/content.gen.d.ts +7 -0
- package/dist/api/baremetal/v1/content.gen.js +18 -13
- package/dist/api/baremetal/v1/index.cjs +12 -0
- package/dist/api/baremetal/v1/index.d.ts +5 -0
- package/dist/api/baremetal/v1/index.gen.d.ts +4 -0
- package/dist/api/baremetal/v1/index.js +12 -5
- package/dist/api/baremetal/v1/marshalling.gen.cjs +502 -0
- package/dist/api/baremetal/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/baremetal/v1/marshalling.gen.js +186 -90
- package/dist/api/baremetal/v1/types.gen.d.ts +682 -0
- package/dist/api/baremetal/v1/validation-rules.gen.cjs +116 -0
- package/dist/api/baremetal/v1/validation-rules.gen.d.ts +104 -0
- package/dist/api/baremetal/v1/validation-rules.gen.js +12 -5
- package/dist/api/billing/index.cjs +6 -0
- package/dist/api/billing/index.d.ts +2 -0
- package/dist/api/billing/index.js +6 -4
- package/dist/api/billing/v2alpha1/api.gen.cjs +92 -0
- package/dist/api/billing/v2alpha1/api.gen.d.ts +50 -0
- package/dist/api/billing/v2alpha1/api.gen.js +60 -39
- package/dist/api/billing/v2alpha1/index.gen.cjs +4 -0
- package/dist/api/billing/v2alpha1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2alpha1/index.gen.js +4 -4
- package/dist/api/billing/v2alpha1/marshalling.gen.cjs +117 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.d.ts +4 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.js +48 -29
- package/dist/api/billing/v2alpha1/types.gen.d.ts +136 -0
- package/dist/api/billing/v2beta1/api.gen.cjs +175 -0
- package/dist/api/billing/v2beta1/api.gen.d.ts +79 -0
- package/dist/api/billing/v2beta1/api.gen.js +122 -65
- package/dist/api/billing/v2beta1/index.gen.cjs +4 -0
- package/dist/api/billing/v2beta1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2beta1/index.gen.js +4 -4
- package/dist/api/billing/v2beta1/marshalling.gen.cjs +158 -0
- package/dist/api/billing/v2beta1/marshalling.gen.d.ts +6 -0
- package/dist/api/billing/v2beta1/marshalling.gen.js +61 -36
- package/dist/api/billing/v2beta1/types.gen.d.ts +269 -0
- package/dist/api/block/index.cjs +4 -0
- package/dist/api/block/index.d.ts +1 -0
- package/dist/api/block/index.js +4 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +272 -0
- package/dist/api/block/v1alpha1/api.gen.d.ts +144 -0
- package/dist/api/block/v1alpha1/api.gen.js +167 -90
- package/dist/api/block/v1alpha1/content.gen.cjs +20 -0
- package/dist/api/block/v1alpha1/content.gen.d.ts +7 -0
- package/dist/api/block/v1alpha1/content.gen.js +20 -13
- package/dist/api/block/v1alpha1/index.gen.cjs +10 -0
- package/dist/api/block/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/block/v1alpha1/index.gen.js +10 -7
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +194 -0
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/block/v1alpha1/marshalling.gen.js +78 -42
- package/dist/api/block/v1alpha1/types.gen.d.ts +315 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.cjs +56 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.d.ts +47 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.js +14 -5
- package/dist/api/cockpit/index.cjs +6 -0
- package/dist/api/cockpit/index.d.ts +2 -0
- package/dist/api/cockpit/index.js +6 -4
- package/dist/api/cockpit/v1/api.gen.cjs +629 -0
- package/dist/api/cockpit/v1/api.gen.d.ts +310 -0
- package/dist/api/cockpit/v1/api.gen.js +374 -201
- package/dist/api/cockpit/v1/index.gen.cjs +7 -0
- package/dist/api/cockpit/v1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1/index.gen.js +7 -6
- package/dist/api/cockpit/v1/marshalling.gen.cjs +325 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/cockpit/v1/marshalling.gen.js +131 -59
- package/dist/api/cockpit/v1/types.gen.d.ts +525 -0
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +48 -0
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +41 -0
- package/dist/api/cockpit/v1/validation-rules.gen.js +10 -8
- package/dist/api/cockpit/v1beta1/api.gen.cjs +484 -0
- package/dist/api/cockpit/v1beta1/api.gen.d.ts +224 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +298 -167
- package/dist/api/cockpit/v1beta1/content.gen.cjs +8 -0
- package/dist/api/cockpit/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/content.gen.js +8 -7
- package/dist/api/cockpit/v1beta1/index.gen.cjs +6 -0
- package/dist/api/cockpit/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/index.gen.js +6 -5
- package/dist/api/cockpit/v1beta1/marshalling.gen.cjs +343 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.d.ts +29 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +131 -60
- package/dist/api/cockpit/v1beta1/types.gen.d.ts +385 -0
- package/dist/api/container/index.cjs +4 -0
- package/dist/api/container/index.d.ts +1 -0
- package/dist/api/container/index.js +4 -2
- package/dist/api/container/v1beta1/api.gen.cjs +621 -0
- package/dist/api/container/v1beta1/api.gen.d.ts +300 -0
- package/dist/api/container/v1beta1/api.gen.js +384 -228
- package/dist/api/container/v1beta1/content.gen.cjs +34 -0
- package/dist/api/container/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/container/v1beta1/content.gen.js +34 -22
- package/dist/api/container/v1beta1/index.gen.cjs +13 -0
- package/dist/api/container/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/container/v1beta1/index.gen.js +13 -7
- package/dist/api/container/v1beta1/marshalling.gen.cjs +408 -0
- package/dist/api/container/v1beta1/marshalling.gen.d.ts +24 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +147 -71
- package/dist/api/container/v1beta1/types.gen.d.ts +785 -0
- package/dist/api/container/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/container/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/container/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/dedibox/index.cjs +4 -0
- package/dist/api/dedibox/index.d.ts +1 -0
- package/dist/api/dedibox/index.js +4 -2
- package/dist/api/dedibox/v1/api.gen.cjs +1460 -0
- package/dist/api/dedibox/v1/api.gen.d.ts +560 -0
- package/dist/api/dedibox/v1/api.gen.js +1051 -565
- package/dist/api/dedibox/v1/content.gen.cjs +49 -0
- package/dist/api/dedibox/v1/content.gen.d.ts +19 -0
- package/dist/api/dedibox/v1/content.gen.js +49 -31
- package/dist/api/dedibox/v1/index.gen.cjs +22 -0
- package/dist/api/dedibox/v1/index.gen.d.ts +4 -0
- package/dist/api/dedibox/v1/index.gen.js +22 -7
- package/dist/api/dedibox/v1/marshalling.gen.cjs +1475 -0
- package/dist/api/dedibox/v1/marshalling.gen.d.ts +82 -0
- package/dist/api/dedibox/v1/marshalling.gen.js +514 -237
- package/dist/api/dedibox/v1/types.gen.d.ts +1900 -0
- package/dist/api/dedibox/v1/validation-rules.gen.cjs +626 -0
- package/dist/api/dedibox/v1/validation-rules.gen.d.ts +539 -0
- package/dist/api/dedibox/v1/validation-rules.gen.js +87 -5
- package/dist/api/document_db/index.cjs +4 -0
- package/dist/api/document_db/index.d.ts +1 -0
- package/dist/api/document_db/index.js +4 -2
- package/dist/api/document_db/v1beta1/api.gen.cjs +1018 -0
- package/dist/api/document_db/v1beta1/api.gen.d.ts +538 -0
- package/dist/api/document_db/v1beta1/api.gen.js +561 -339
- package/dist/api/document_db/v1beta1/content.gen.cjs +31 -0
- package/dist/api/document_db/v1beta1/content.gen.d.ts +11 -0
- package/dist/api/document_db/v1beta1/content.gen.js +31 -19
- package/dist/api/document_db/v1beta1/index.gen.cjs +12 -0
- package/dist/api/document_db/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/document_db/v1beta1/index.gen.js +12 -7
- package/dist/api/document_db/v1beta1/marshalling.gen.cjs +829 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.d.ts +50 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.js +354 -181
- package/dist/api/document_db/v1beta1/types.gen.d.ts +1254 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/domain/index.cjs +4 -0
- package/dist/api/domain/index.d.ts +1 -0
- package/dist/api/domain/index.js +4 -2
- package/dist/api/domain/v2beta1/api.gen.cjs +1052 -0
- package/dist/api/domain/v2beta1/api.gen.d.ts +521 -0
- package/dist/api/domain/v2beta1/api.gen.js +638 -365
- package/dist/api/domain/v2beta1/content.gen.cjs +29 -0
- package/dist/api/domain/v2beta1/content.gen.d.ts +18 -0
- package/dist/api/domain/v2beta1/content.gen.js +29 -28
- package/dist/api/domain/v2beta1/index.gen.cjs +13 -0
- package/dist/api/domain/v2beta1/index.gen.d.ts +3 -0
- package/dist/api/domain/v2beta1/index.gen.js +13 -5
- package/dist/api/domain/v2beta1/marshalling.gen.cjs +1472 -0
- package/dist/api/domain/v2beta1/marshalling.gen.d.ts +59 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +676 -383
- package/dist/api/domain/v2beta1/types.gen.d.ts +1073 -0
- package/dist/api/flexibleip/index.cjs +4 -0
- package/dist/api/flexibleip/index.d.ts +1 -0
- package/dist/api/flexibleip/index.js +4 -2
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +227 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +117 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.js +134 -86
- package/dist/api/flexibleip/v1alpha1/content.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.js +12 -10
- package/dist/api/flexibleip/v1alpha1/index.gen.cjs +9 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.js +9 -7
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.cjs +115 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +36 -18
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +196 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +3 -5
- package/dist/api/function/index.cjs +4 -0
- package/dist/api/function/index.d.ts +1 -0
- package/dist/api/function/index.js +4 -2
- package/dist/api/function/v1beta1/api.gen.cjs +666 -0
- package/dist/api/function/v1beta1/api.gen.d.ts +326 -0
- package/dist/api/function/v1beta1/api.gen.js +406 -244
- package/dist/api/function/v1beta1/content.gen.cjs +34 -0
- package/dist/api/function/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/function/v1beta1/content.gen.js +34 -22
- package/dist/api/function/v1beta1/index.gen.cjs +13 -0
- package/dist/api/function/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/function/v1beta1/index.gen.js +13 -7
- package/dist/api/function/v1beta1/marshalling.gen.cjs +457 -0
- package/dist/api/function/v1beta1/marshalling.gen.d.ts +27 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +167 -80
- package/dist/api/function/v1beta1/types.gen.d.ts +819 -0
- package/dist/api/function/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/function/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/function/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/iam/index.cjs +4 -0
- package/dist/api/iam/index.d.ts +1 -0
- package/dist/api/iam/index.js +4 -2
- package/dist/api/iam/v1alpha1/api.gen.cjs +951 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +475 -0
- package/dist/api/iam/v1alpha1/api.gen.js +560 -302
- package/dist/api/iam/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/iam/v1alpha1/index.gen.js +6 -6
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +504 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +42 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +184 -119
- package/dist/api/iam/v1alpha1/types.gen.d.ts +886 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +235 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +211 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +29 -10
- package/dist/api/index.d.ts +34 -0
- package/dist/api/instance/index.cjs +4 -0
- package/dist/api/instance/index.d.ts +1 -0
- package/dist/api/instance/index.js +4 -2
- package/dist/api/instance/v1/api.gen.cjs +1178 -0
- package/dist/api/instance/v1/api.gen.d.ts +528 -0
- package/dist/api/instance/v1/api.gen.js +753 -436
- package/dist/api/instance/v1/api.utils.cjs +279 -0
- package/dist/api/instance/v1/api.utils.d.ts +95 -0
- package/dist/api/instance/v1/api.utils.js +145 -109
- package/dist/api/instance/v1/content.gen.cjs +44 -0
- package/dist/api/instance/v1/content.gen.d.ts +21 -0
- package/dist/api/instance/v1/content.gen.js +44 -34
- package/dist/api/instance/v1/index.cjs +15 -0
- package/dist/api/instance/v1/index.d.ts +4 -0
- package/dist/api/instance/v1/index.gen.d.ts +4 -0
- package/dist/api/instance/v1/index.js +15 -2
- package/dist/api/instance/v1/marshalling.gen.cjs +1813 -0
- package/dist/api/instance/v1/marshalling.gen.d.ts +95 -0
- package/dist/api/instance/v1/marshalling.gen.js +736 -412
- package/dist/api/instance/v1/marshalling.utils.d.ts +3 -0
- package/dist/api/instance/v1/types.gen.d.ts +1818 -0
- package/dist/api/instance/v1/types.private.gen.d.ts +167 -0
- package/dist/api/instance/v1/types.utils.d.ts +35 -0
- package/dist/api/instance/v1/validation-rules.gen.d.ts +10 -0
- package/dist/api/iot/index.cjs +4 -0
- package/dist/api/iot/index.d.ts +1 -0
- package/dist/api/iot/index.js +4 -2
- package/dist/api/iot/v1/api.gen.cjs +621 -0
- package/dist/api/iot/v1/api.gen.d.ts +325 -0
- package/dist/api/iot/v1/api.gen.js +350 -238
- package/dist/api/iot/v1/content.gen.cjs +4 -0
- package/dist/api/iot/v1/content.gen.d.ts +3 -0
- package/dist/api/iot/v1/content.gen.js +4 -7
- package/dist/api/iot/v1/index.gen.cjs +6 -0
- package/dist/api/iot/v1/index.gen.d.ts +3 -0
- package/dist/api/iot/v1/index.gen.js +6 -5
- package/dist/api/iot/v1/marshalling.gen.cjs +534 -0
- package/dist/api/iot/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/iot/v1/marshalling.gen.js +209 -114
- package/dist/api/iot/v1/types.gen.d.ts +916 -0
- package/dist/api/ipam/index.cjs +4 -0
- package/dist/api/ipam/index.d.ts +1 -0
- package/dist/api/ipam/index.js +4 -2
- package/dist/api/ipam/v1/api.gen.cjs +115 -0
- package/dist/api/ipam/v1/api.gen.d.ts +57 -0
- package/dist/api/ipam/v1/api.gen.js +73 -55
- package/dist/api/ipam/v1/index.gen.cjs +6 -0
- package/dist/api/ipam/v1/index.gen.d.ts +3 -0
- package/dist/api/ipam/v1/index.gen.js +6 -6
- package/dist/api/ipam/v1/marshalling.gen.cjs +98 -0
- package/dist/api/ipam/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/ipam/v1/marshalling.gen.js +35 -29
- package/dist/api/ipam/v1/types.gen.d.ts +198 -0
- package/dist/api/ipam/v1/validation-rules.gen.cjs +9 -0
- package/dist/api/ipam/v1/validation-rules.gen.d.ts +6 -0
- package/dist/api/ipam/v1/validation-rules.gen.js +3 -5
- package/dist/api/ipfs/index.cjs +4 -0
- package/dist/api/ipfs/index.d.ts +1 -0
- package/dist/api/ipfs/index.js +4 -2
- package/dist/api/ipfs/v1alpha1/api.gen.cjs +374 -0
- package/dist/api/ipfs/v1alpha1/api.gen.d.ts +198 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +210 -133
- package/dist/api/ipfs/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/ipfs/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +6 -10
- package/dist/api/ipfs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/ipfs/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +8 -5
- package/dist/api/ipfs/v1alpha1/marshalling.gen.cjs +208 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.d.ts +18 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +68 -33
- package/dist/api/ipfs/v1alpha1/types.gen.d.ts +317 -0
- package/dist/api/jobs/index.cjs +4 -0
- package/dist/api/jobs/index.d.ts +1 -0
- package/dist/api/jobs/index.js +4 -2
- package/dist/api/jobs/v1alpha1/api.gen.cjs +170 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +80 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +109 -69
- package/dist/api/jobs/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/jobs/v1alpha1/content.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/jobs/v1alpha1/index.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +150 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +10 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +50 -26
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +210 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +97 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.d.ts +87 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +12 -7
- package/dist/api/k8s/index.cjs +4 -0
- package/dist/api/k8s/index.d.ts +1 -0
- package/dist/api/k8s/index.js +4 -2
- package/dist/api/k8s/v1/api.gen.cjs +550 -0
- package/dist/api/k8s/v1/api.gen.d.ts +280 -0
- package/dist/api/k8s/v1/api.gen.js +317 -195
- package/dist/api/k8s/v1/api.utils.cjs +13 -0
- package/dist/api/k8s/v1/api.utils.d.ts +11 -0
- package/dist/api/k8s/v1/api.utils.js +5 -5
- package/dist/api/k8s/v1/content.gen.cjs +23 -0
- package/dist/api/k8s/v1/content.gen.d.ts +7 -0
- package/dist/api/k8s/v1/content.gen.js +23 -13
- package/dist/api/k8s/v1/index.cjs +10 -0
- package/dist/api/k8s/v1/index.d.ts +4 -0
- package/dist/api/k8s/v1/index.gen.d.ts +4 -0
- package/dist/api/k8s/v1/index.js +10 -4
- package/dist/api/k8s/v1/marshalling.gen.cjs +510 -0
- package/dist/api/k8s/v1/marshalling.gen.d.ts +22 -0
- package/dist/api/k8s/v1/marshalling.gen.js +158 -79
- package/dist/api/k8s/v1/types.gen.d.ts +1123 -0
- package/dist/api/k8s/v1/validation-rules.gen.cjs +110 -0
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +96 -0
- package/dist/api/k8s/v1/validation-rules.gen.js +14 -5
- package/dist/api/lb/index.cjs +4 -0
- package/dist/api/lb/index.d.ts +1 -0
- package/dist/api/lb/index.js +4 -2
- package/dist/api/lb/v1/api.gen.cjs +1984 -0
- package/dist/api/lb/v1/api.gen.d.ts +990 -0
- package/dist/api/lb/v1/api.gen.js +1186 -695
- package/dist/api/lb/v1/api.utils.cjs +116 -0
- package/dist/api/lb/v1/api.utils.d.ts +41 -0
- package/dist/api/lb/v1/api.utils.js +83 -48
- package/dist/api/lb/v1/content.gen.cjs +22 -0
- package/dist/api/lb/v1/content.gen.d.ts +9 -0
- package/dist/api/lb/v1/content.gen.js +22 -16
- package/dist/api/lb/v1/index.cjs +10 -0
- package/dist/api/lb/v1/index.d.ts +4 -0
- package/dist/api/lb/v1/index.gen.d.ts +3 -0
- package/dist/api/lb/v1/index.js +10 -2
- package/dist/api/lb/v1/marshalling.gen.cjs +1289 -0
- package/dist/api/lb/v1/marshalling.gen.d.ts +73 -0
- package/dist/api/lb/v1/marshalling.gen.js +576 -334
- package/dist/api/lb/v1/types.gen.d.ts +2729 -0
- package/dist/api/lb/v1/types.utils.d.ts +13 -0
- package/dist/api/llm_inference/index.cjs +4 -0
- package/dist/api/llm_inference/index.d.ts +1 -0
- package/dist/api/llm_inference/index.js +4 -2
- package/dist/api/llm_inference/v1beta1/api.gen.cjs +305 -0
- package/dist/api/llm_inference/v1beta1/api.gen.d.ts +147 -0
- package/dist/api/llm_inference/v1beta1/api.gen.js +192 -120
- package/dist/api/llm_inference/v1beta1/content.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/llm_inference/v1beta1/content.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/index.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/llm_inference/v1beta1/index.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/marshalling.gen.cjs +271 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.d.ts +18 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.js +98 -52
- package/dist/api/llm_inference/v1beta1/types.gen.d.ts +433 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.cjs +56 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.d.ts +50 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/marketplace/index.cjs +4 -0
- package/dist/api/marketplace/index.d.ts +1 -0
- package/dist/api/marketplace/index.js +4 -2
- package/dist/api/marketplace/v2/api.gen.cjs +174 -0
- package/dist/api/marketplace/v2/api.gen.d.ts +90 -0
- package/dist/api/marketplace/v2/api.gen.js +111 -67
- package/dist/api/marketplace/v2/index.gen.cjs +4 -0
- package/dist/api/marketplace/v2/index.gen.d.ts +2 -0
- package/dist/api/marketplace/v2/index.gen.js +4 -4
- package/dist/api/marketplace/v2/marshalling.gen.cjs +115 -0
- package/dist/api/marketplace/v2/marshalling.gen.d.ts +9 -0
- package/dist/api/marketplace/v2/marshalling.gen.js +44 -23
- package/dist/api/marketplace/v2/types.gen.d.ts +135 -0
- package/dist/api/mnq/index.cjs +4 -0
- package/dist/api/mnq/index.d.ts +1 -0
- package/dist/api/mnq/index.js +4 -2
- package/dist/api/mnq/v1beta1/api.gen.cjs +500 -0
- package/dist/api/mnq/v1beta1/api.gen.d.ts +265 -0
- package/dist/api/mnq/v1beta1/api.gen.js +291 -184
- package/dist/api/mnq/v1beta1/index.gen.cjs +8 -0
- package/dist/api/mnq/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/mnq/v1beta1/index.gen.js +8 -6
- package/dist/api/mnq/v1beta1/marshalling.gen.cjs +268 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.d.ts +23 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.js +105 -49
- package/dist/api/mnq/v1beta1/types.gen.d.ts +449 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.cjs +85 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.d.ts +72 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +13 -5
- package/dist/api/rdb/index.cjs +4 -0
- package/dist/api/rdb/index.d.ts +1 -0
- package/dist/api/rdb/index.js +4 -2
- package/dist/api/rdb/v1/api.gen.cjs +1192 -0
- package/dist/api/rdb/v1/api.gen.d.ts +626 -0
- package/dist/api/rdb/v1/api.gen.js +660 -393
- package/dist/api/rdb/v1/content.gen.cjs +38 -0
- package/dist/api/rdb/v1/content.gen.d.ts +13 -0
- package/dist/api/rdb/v1/content.gen.js +38 -22
- package/dist/api/rdb/v1/index.gen.cjs +13 -0
- package/dist/api/rdb/v1/index.gen.d.ts +4 -0
- package/dist/api/rdb/v1/index.gen.js +13 -7
- package/dist/api/rdb/v1/marshalling.gen.cjs +908 -0
- package/dist/api/rdb/v1/marshalling.gen.d.ts +59 -0
- package/dist/api/rdb/v1/marshalling.gen.js +385 -191
- package/dist/api/rdb/v1/types.gen.d.ts +1404 -0
- package/dist/api/rdb/v1/validation-rules.gen.cjs +8 -0
- package/dist/api/rdb/v1/validation-rules.gen.d.ts +5 -0
- package/dist/api/rdb/v1/validation-rules.gen.js +3 -5
- package/dist/api/redis/index.cjs +4 -0
- package/dist/api/redis/index.d.ts +1 -0
- package/dist/api/redis/index.js +4 -2
- package/dist/api/redis/v1/api.gen.cjs +476 -0
- package/dist/api/redis/v1/api.gen.d.ts +249 -0
- package/dist/api/redis/v1/api.gen.js +265 -162
- package/dist/api/redis/v1/content.gen.cjs +10 -0
- package/dist/api/redis/v1/content.gen.d.ts +3 -0
- package/dist/api/redis/v1/content.gen.js +10 -7
- package/dist/api/redis/v1/index.gen.cjs +6 -0
- package/dist/api/redis/v1/index.gen.d.ts +3 -0
- package/dist/api/redis/v1/index.gen.js +6 -5
- package/dist/api/redis/v1/marshalling.gen.cjs +355 -0
- package/dist/api/redis/v1/marshalling.gen.d.ts +24 -0
- package/dist/api/redis/v1/marshalling.gen.js +156 -84
- package/dist/api/redis/v1/types.gen.d.ts +473 -0
- package/dist/api/registry/index.cjs +4 -0
- package/dist/api/registry/index.d.ts +1 -0
- package/dist/api/registry/index.js +4 -2
- package/dist/api/registry/v1/api.gen.cjs +287 -0
- package/dist/api/registry/v1/api.gen.d.ts +156 -0
- package/dist/api/registry/v1/api.gen.js +161 -94
- package/dist/api/registry/v1/content.gen.cjs +8 -0
- package/dist/api/registry/v1/content.gen.d.ts +7 -0
- package/dist/api/registry/v1/content.gen.js +8 -13
- package/dist/api/registry/v1/index.gen.cjs +8 -0
- package/dist/api/registry/v1/index.gen.d.ts +3 -0
- package/dist/api/registry/v1/index.gen.js +8 -5
- package/dist/api/registry/v1/marshalling.gen.cjs +129 -0
- package/dist/api/registry/v1/marshalling.gen.d.ts +11 -0
- package/dist/api/registry/v1/marshalling.gen.js +51 -30
- package/dist/api/registry/v1/types.gen.d.ts +300 -0
- package/dist/api/secret/index.cjs +6 -0
- package/dist/api/secret/index.d.ts +2 -0
- package/dist/api/secret/index.js +6 -4
- package/dist/api/secret/v1alpha1/api.gen.cjs +483 -0
- package/dist/api/secret/v1alpha1/api.gen.d.ts +261 -0
- package/dist/api/secret/v1alpha1/api.gen.js +271 -176
- package/dist/api/secret/v1alpha1/index.gen.cjs +4 -0
- package/dist/api/secret/v1alpha1/index.gen.d.ts +2 -0
- package/dist/api/secret/v1alpha1/index.gen.js +4 -4
- package/dist/api/secret/v1alpha1/marshalling.gen.cjs +221 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.d.ts +19 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.js +67 -33
- package/dist/api/secret/v1alpha1/types.gen.d.ts +619 -0
- package/dist/api/secret/v1beta1/api.gen.cjs +359 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +181 -0
- package/dist/api/secret/v1beta1/api.gen.js +213 -135
- package/dist/api/secret/v1beta1/index.gen.cjs +6 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/secret/v1beta1/index.gen.js +6 -6
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +219 -0
- package/dist/api/secret/v1beta1/marshalling.gen.d.ts +14 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +76 -40
- package/dist/api/secret/v1beta1/types.gen.d.ts +513 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/serverless_sqldb/index.cjs +4 -0
- package/dist/api/serverless_sqldb/index.d.ts +1 -0
- package/dist/api/serverless_sqldb/index.js +4 -2
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +202 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +109 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +118 -78
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.cjs +89 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.d.ts +9 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +27 -15
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +193 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.cjs +62 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.d.ts +55 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.js +9 -7
- package/dist/api/std/index.gen.cjs +1 -0
- package/dist/api/std/index.gen.d.ts +1 -0
- package/dist/api/std/types.gen.d.ts +1 -0
- package/dist/api/tem/index.cjs +4 -0
- package/dist/api/tem/index.d.ts +1 -0
- package/dist/api/tem/index.js +4 -2
- package/dist/api/tem/v1alpha1/api.gen.cjs +260 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +130 -0
- package/dist/api/tem/v1alpha1/api.gen.js +154 -89
- package/dist/api/tem/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/tem/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/tem/v1alpha1/content.gen.js +6 -10
- package/dist/api/tem/v1alpha1/index.gen.cjs +7 -0
- package/dist/api/tem/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/tem/v1alpha1/index.gen.js +7 -5
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +255 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +90 -50
- package/dist/api/tem/v1alpha1/types.gen.d.ts +401 -0
- package/dist/api/test/index.cjs +4 -0
- package/dist/api/test/index.d.ts +1 -0
- package/dist/api/test/index.js +4 -2
- package/dist/api/test/v1/api.gen.cjs +164 -0
- package/dist/api/test/v1/api.gen.d.ts +84 -0
- package/dist/api/test/v1/api.gen.js +99 -71
- package/dist/api/test/v1/content.gen.cjs +4 -0
- package/dist/api/test/v1/content.gen.d.ts +3 -0
- package/dist/api/test/v1/content.gen.js +4 -7
- package/dist/api/test/v1/index.gen.cjs +6 -0
- package/dist/api/test/v1/index.gen.d.ts +3 -0
- package/dist/api/test/v1/index.gen.js +6 -5
- package/dist/api/test/v1/marshalling.gen.cjs +93 -0
- package/dist/api/test/v1/marshalling.gen.d.ts +8 -0
- package/dist/api/test/v1/marshalling.gen.js +34 -22
- package/dist/api/test/v1/types.gen.d.ts +91 -0
- package/dist/api/vpc/index.cjs +6 -0
- package/dist/api/vpc/index.d.ts +2 -0
- package/dist/api/vpc/index.js +6 -4
- package/dist/api/vpc/v1/api.gen.cjs +119 -0
- package/dist/api/vpc/v1/api.gen.d.ts +54 -0
- package/dist/api/vpc/v1/api.gen.js +76 -43
- package/dist/api/vpc/v1/index.gen.cjs +4 -0
- package/dist/api/vpc/v1/index.gen.d.ts +2 -0
- package/dist/api/vpc/v1/index.gen.js +4 -4
- package/dist/api/vpc/v1/marshalling.gen.cjs +52 -0
- package/dist/api/vpc/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/vpc/v1/marshalling.gen.js +22 -14
- package/dist/api/vpc/v1/types.gen.d.ts +99 -0
- package/dist/api/vpc/v2/api.gen.cjs +303 -0
- package/dist/api/vpc/v2/api.gen.d.ts +144 -0
- package/dist/api/vpc/v2/api.gen.js +181 -112
- package/dist/api/vpc/v2/index.gen.cjs +4 -0
- package/dist/api/vpc/v2/index.gen.d.ts +2 -0
- package/dist/api/vpc/v2/index.gen.js +4 -4
- package/dist/api/vpc/v2/marshalling.gen.cjs +173 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +17 -0
- package/dist/api/vpc/v2/marshalling.gen.js +70 -36
- package/dist/api/vpc/v2/types.gen.d.ts +338 -0
- package/dist/api/vpcgw/index.cjs +4 -0
- package/dist/api/vpcgw/index.d.ts +1 -0
- package/dist/api/vpcgw/index.js +4 -2
- package/dist/api/vpcgw/v1/api.gen.cjs +740 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +389 -0
- package/dist/api/vpcgw/v1/api.gen.js +408 -239
- package/dist/api/vpcgw/v1/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v1/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v1/content.gen.js +15 -10
- package/dist/api/vpcgw/v1/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v1/index.gen.js +7 -5
- package/dist/api/vpcgw/v1/marshalling.gen.cjs +437 -0
- package/dist/api/vpcgw/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +145 -74
- package/dist/api/vpcgw/v1/types.gen.d.ts +901 -0
- package/dist/api/webhosting/index.cjs +4 -0
- package/dist/api/webhosting/index.d.ts +1 -0
- package/dist/api/webhosting/index.js +4 -2
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +226 -0
- package/dist/api/webhosting/v1alpha1/api.gen.d.ts +111 -0
- package/dist/api/webhosting/v1alpha1/api.gen.js +138 -86
- package/dist/api/webhosting/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/webhosting/v1alpha1/content.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/webhosting/v1alpha1/index.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +236 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +80 -41
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +379 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +22 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +18 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +4 -5
- package/dist/bridge.d.ts +11 -0
- package/dist/helpers/is-browser.cjs +7 -0
- package/dist/helpers/is-browser.d.ts +1 -0
- package/dist/helpers/is-browser.js +7 -5
- package/dist/helpers/is-response.cjs +4 -0
- package/dist/helpers/is-response.d.ts +8 -0
- package/dist/helpers/is-response.js +4 -10
- package/dist/helpers/json.cjs +7 -0
- package/dist/helpers/json.d.ts +13 -0
- package/dist/helpers/json.js +5 -9
- package/dist/helpers/marshalling.cjs +78 -0
- package/dist/helpers/marshalling.d.ts +63 -0
- package/dist/helpers/marshalling.js +40 -77
- package/dist/index.cjs +114 -32093
- package/dist/index.d.ts +15 -38464
- package/dist/index.js +115 -81
- package/dist/internal/async/interval-retrier.cjs +55 -0
- package/dist/internal/async/interval-retrier.d.ts +111 -0
- package/dist/internal/async/interval-retrier.js +30 -72
- package/dist/internal/async/sleep.cjs +6 -0
- package/dist/internal/async/sleep.d.ts +9 -0
- package/dist/internal/async/sleep.js +4 -11
- package/dist/internal/interceptors/composer.cjs +25 -0
- package/dist/internal/interceptors/composer.d.ts +25 -0
- package/dist/internal/interceptors/composer.js +15 -36
- package/dist/internal/interceptors/helpers.cjs +12 -0
- package/dist/internal/interceptors/helpers.d.ts +21 -0
- package/dist/internal/interceptors/helpers.js +7 -26
- package/dist/internal/interceptors/types.d.ts +89 -0
- package/dist/internal/logger/console-logger.cjs +24 -0
- package/dist/internal/logger/console-logger.d.ts +23 -0
- package/dist/internal/logger/console-logger.js +11 -19
- package/dist/internal/logger/index.cjs +12 -0
- package/dist/internal/logger/index.d.ts +25 -0
- package/dist/internal/logger/index.js +9 -30
- package/dist/internal/logger/level-resolver.cjs +13 -0
- package/dist/internal/logger/level-resolver.d.ts +9 -0
- package/dist/internal/logger/level-resolver.js +12 -12
- package/dist/internal/logger/logger.d.ts +13 -0
- package/dist/internal/validations/string-validation.cjs +30 -0
- package/dist/internal/validations/string-validation.d.ts +18 -0
- package/dist/internal/validations/string-validation.js +19 -27
- package/dist/internals.d.ts +10 -0
- package/dist/scw/api.cjs +8 -0
- package/dist/scw/api.d.ts +10 -0
- package/dist/scw/api.js +3 -7
- package/dist/scw/auth.cjs +28 -0
- package/dist/scw/auth.d.ts +57 -0
- package/dist/scw/auth.js +23 -62
- package/dist/scw/client-ini-factory.cjs +66 -0
- package/dist/scw/client-ini-factory.d.ts +111 -0
- package/dist/scw/client-ini-factory.js +33 -141
- package/dist/scw/client-ini-profile.cjs +23 -0
- package/dist/scw/client-ini-profile.d.ts +82 -0
- package/dist/scw/client-ini-profile.js +15 -46
- package/dist/scw/client-settings.cjs +51 -0
- package/dist/scw/client-settings.d.ts +59 -0
- package/dist/scw/client-settings.js +26 -53
- package/dist/scw/client.cjs +28 -0
- package/dist/scw/client.d.ts +72 -0
- package/dist/scw/client.js +14 -76
- package/dist/scw/constants.cjs +6 -0
- package/dist/scw/constants.d.ts +2 -0
- package/dist/scw/constants.js +5 -3
- package/dist/scw/custom-marshalling.cjs +92 -0
- package/dist/scw/custom-marshalling.d.ts +59 -0
- package/dist/scw/custom-marshalling.js +38 -77
- package/dist/scw/errors/error-parser.cjs +76 -0
- package/dist/scw/errors/error-parser.d.ts +12 -0
- package/dist/scw/errors/error-parser.js +33 -64
- package/dist/scw/errors/non-standard/invalid-request-mapper.cjs +36 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +12 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.js +26 -23
- package/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +23 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +11 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.js +16 -20
- package/dist/scw/errors/scw-error.cjs +43 -0
- package/dist/scw/errors/scw-error.d.ts +25 -0
- package/dist/scw/errors/scw-error.js +19 -35
- package/dist/scw/errors/standard/already-exists-error.cjs +31 -0
- package/dist/scw/errors/standard/already-exists-error.d.ts +16 -0
- package/dist/scw/errors/standard/already-exists-error.js +18 -13
- package/dist/scw/errors/standard/denied-authentication-error.cjs +37 -0
- package/dist/scw/errors/standard/denied-authentication-error.d.ts +15 -0
- package/dist/scw/errors/standard/denied-authentication-error.js +9 -24
- package/dist/scw/errors/standard/index.cjs +28 -0
- package/dist/scw/errors/standard/index.d.ts +17 -0
- package/dist/scw/errors/standard/index.js +28 -13
- package/dist/scw/errors/standard/invalid-arguments-error.cjs +55 -0
- package/dist/scw/errors/standard/invalid-arguments-error.d.ts +24 -0
- package/dist/scw/errors/standard/invalid-arguments-error.js +26 -38
- package/dist/scw/errors/standard/out-of-stock-error.cjs +18 -0
- package/dist/scw/errors/standard/out-of-stock-error.d.ts +14 -0
- package/dist/scw/errors/standard/out-of-stock-error.js +7 -11
- package/dist/scw/errors/standard/permissions-denied-error.cjs +30 -0
- package/dist/scw/errors/standard/permissions-denied-error.d.ts +23 -0
- package/dist/scw/errors/standard/permissions-denied-error.js +20 -35
- package/dist/scw/errors/standard/precondition-failed-error.cjs +32 -0
- package/dist/scw/errors/standard/precondition-failed-error.d.ts +15 -0
- package/dist/scw/errors/standard/precondition-failed-error.js +14 -24
- package/dist/scw/errors/standard/quotas-exceeded-error.cjs +44 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +34 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.js +29 -53
- package/dist/scw/errors/standard/resource-expired-error.cjs +31 -0
- package/dist/scw/errors/standard/resource-expired-error.d.ts +16 -0
- package/dist/scw/errors/standard/resource-expired-error.js +18 -13
- package/dist/scw/errors/standard/resource-locked-error.cjs +20 -0
- package/dist/scw/errors/standard/resource-locked-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-locked-error.js +6 -11
- package/dist/scw/errors/standard/resource-not-found-error.cjs +24 -0
- package/dist/scw/errors/standard/resource-not-found-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-not-found-error.js +11 -12
- package/dist/scw/errors/standard/too-many-requests-error.cjs +59 -0
- package/dist/scw/errors/standard/too-many-requests-error.d.ts +32 -0
- package/dist/scw/errors/standard/too-many-requests-error.js +20 -31
- package/dist/scw/errors/standard/transient-state-error.cjs +31 -0
- package/dist/scw/errors/standard/transient-state-error.d.ts +16 -0
- package/dist/scw/errors/standard/transient-state-error.js +18 -13
- package/dist/scw/errors/types.cjs +15 -0
- package/dist/scw/errors/types.d.ts +9 -0
- package/dist/scw/errors/types.js +6 -14
- package/dist/scw/fetch/build-fetcher.cjs +60 -0
- package/dist/scw/fetch/build-fetcher.d.ts +23 -0
- package/dist/scw/fetch/build-fetcher.js +29 -38
- package/dist/scw/fetch/http-dumper.cjs +20 -0
- package/dist/scw/fetch/http-dumper.d.ts +18 -0
- package/dist/scw/fetch/http-dumper.js +19 -50
- package/dist/scw/fetch/http-interceptors.cjs +43 -0
- package/dist/scw/fetch/http-interceptors.d.ts +38 -0
- package/dist/scw/fetch/http-interceptors.js +23 -66
- package/dist/scw/fetch/resource-paginator.cjs +37 -0
- package/dist/scw/fetch/resource-paginator.d.ts +47 -0
- package/dist/scw/fetch/resource-paginator.js +12 -45
- package/dist/scw/fetch/response-parser.cjs +57 -0
- package/dist/scw/fetch/response-parser.d.ts +25 -0
- package/dist/scw/fetch/response-parser.js +31 -46
- package/package.json +7 -3
- package/dist/node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js +0 -11
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import randomName from
|
|
2
|
-
import { isJSONObject } from
|
|
3
|
-
import { unmarshalArrayOfObject, unmarshalMapOfObject, resolveOneOf, unmarshalDate } from
|
|
4
|
-
|
|
5
|
-
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
-
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
|
-
const unmarshalPrivateNIC = data => {
|
|
1
|
+
import randomName from "@scaleway/random-name";
|
|
2
|
+
import { isJSONObject } from "../../../helpers/json.js";
|
|
3
|
+
import { unmarshalArrayOfObject, unmarshalMapOfObject, resolveOneOf, unmarshalDate } from "../../../helpers/marshalling.js";
|
|
4
|
+
const unmarshalPrivateNIC = (data) => {
|
|
8
5
|
if (!isJSONObject(data)) {
|
|
9
|
-
throw new TypeError(
|
|
6
|
+
throw new TypeError(
|
|
7
|
+
`Unmarshalling the type 'PrivateNIC' failed as data isn't a dictionary.`
|
|
8
|
+
);
|
|
10
9
|
}
|
|
11
10
|
return {
|
|
12
11
|
id: data.id,
|
|
@@ -17,18 +16,22 @@ const unmarshalPrivateNIC = data => {
|
|
|
17
16
|
tags: data.tags
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
|
-
const unmarshalServerSummary = data => {
|
|
19
|
+
const unmarshalServerSummary = (data) => {
|
|
21
20
|
if (!isJSONObject(data)) {
|
|
22
|
-
throw new TypeError(
|
|
21
|
+
throw new TypeError(
|
|
22
|
+
`Unmarshalling the type 'ServerSummary' failed as data isn't a dictionary.`
|
|
23
|
+
);
|
|
23
24
|
}
|
|
24
25
|
return {
|
|
25
26
|
id: data.id,
|
|
26
27
|
name: data.name
|
|
27
28
|
};
|
|
28
29
|
};
|
|
29
|
-
const unmarshalBootscript = data => {
|
|
30
|
+
const unmarshalBootscript = (data) => {
|
|
30
31
|
if (!isJSONObject(data)) {
|
|
31
|
-
throw new TypeError(
|
|
32
|
+
throw new TypeError(
|
|
33
|
+
`Unmarshalling the type 'Bootscript' failed as data isn't a dictionary.`
|
|
34
|
+
);
|
|
32
35
|
}
|
|
33
36
|
return {
|
|
34
37
|
arch: data.arch,
|
|
@@ -45,9 +48,11 @@ const unmarshalBootscript = data => {
|
|
|
45
48
|
zone: data.zone
|
|
46
49
|
};
|
|
47
50
|
};
|
|
48
|
-
const unmarshalVolume = data => {
|
|
51
|
+
const unmarshalVolume = (data) => {
|
|
49
52
|
if (!isJSONObject(data)) {
|
|
50
|
-
throw new TypeError(
|
|
53
|
+
throw new TypeError(
|
|
54
|
+
`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`
|
|
55
|
+
);
|
|
51
56
|
}
|
|
52
57
|
return {
|
|
53
58
|
creationDate: unmarshalDate(data.creation_date),
|
|
@@ -57,7 +62,7 @@ const unmarshalVolume = data => {
|
|
|
57
62
|
name: data.name,
|
|
58
63
|
organization: data.organization,
|
|
59
64
|
project: data.project,
|
|
60
|
-
server: data.server ? unmarshalServerSummary(data.server) :
|
|
65
|
+
server: data.server ? unmarshalServerSummary(data.server) : void 0,
|
|
61
66
|
size: data.size,
|
|
62
67
|
state: data.state,
|
|
63
68
|
tags: data.tags,
|
|
@@ -65,9 +70,11 @@ const unmarshalVolume = data => {
|
|
|
65
70
|
zone: data.zone
|
|
66
71
|
};
|
|
67
72
|
};
|
|
68
|
-
const unmarshalVolumeSummary = data => {
|
|
73
|
+
const unmarshalVolumeSummary = (data) => {
|
|
69
74
|
if (!isJSONObject(data)) {
|
|
70
|
-
throw new TypeError(
|
|
75
|
+
throw new TypeError(
|
|
76
|
+
`Unmarshalling the type 'VolumeSummary' failed as data isn't a dictionary.`
|
|
77
|
+
);
|
|
71
78
|
}
|
|
72
79
|
return {
|
|
73
80
|
id: data.id,
|
|
@@ -76,14 +83,16 @@ const unmarshalVolumeSummary = data => {
|
|
|
76
83
|
volumeType: data.volume_type
|
|
77
84
|
};
|
|
78
85
|
};
|
|
79
|
-
const unmarshalImage = data => {
|
|
86
|
+
const unmarshalImage = (data) => {
|
|
80
87
|
if (!isJSONObject(data)) {
|
|
81
|
-
throw new TypeError(
|
|
88
|
+
throw new TypeError(
|
|
89
|
+
`Unmarshalling the type 'Image' failed as data isn't a dictionary.`
|
|
90
|
+
);
|
|
82
91
|
}
|
|
83
92
|
return {
|
|
84
93
|
arch: data.arch,
|
|
85
94
|
creationDate: unmarshalDate(data.creation_date),
|
|
86
|
-
defaultBootscript: data.default_bootscript ? unmarshalBootscript(data.default_bootscript) :
|
|
95
|
+
defaultBootscript: data.default_bootscript ? unmarshalBootscript(data.default_bootscript) : void 0,
|
|
87
96
|
extraVolumes: unmarshalMapOfObject(data.extra_volumes, unmarshalVolume),
|
|
88
97
|
fromServer: data.from_server,
|
|
89
98
|
id: data.id,
|
|
@@ -92,15 +101,17 @@ const unmarshalImage = data => {
|
|
|
92
101
|
organization: data.organization,
|
|
93
102
|
project: data.project,
|
|
94
103
|
public: data.public,
|
|
95
|
-
rootVolume: data.root_volume ? unmarshalVolumeSummary(data.root_volume) :
|
|
104
|
+
rootVolume: data.root_volume ? unmarshalVolumeSummary(data.root_volume) : void 0,
|
|
96
105
|
state: data.state,
|
|
97
106
|
tags: data.tags,
|
|
98
107
|
zone: data.zone
|
|
99
108
|
};
|
|
100
109
|
};
|
|
101
|
-
const unmarshalPlacementGroup = data => {
|
|
110
|
+
const unmarshalPlacementGroup = (data) => {
|
|
102
111
|
if (!isJSONObject(data)) {
|
|
103
|
-
throw new TypeError(
|
|
112
|
+
throw new TypeError(
|
|
113
|
+
`Unmarshalling the type 'PlacementGroup' failed as data isn't a dictionary.`
|
|
114
|
+
);
|
|
104
115
|
}
|
|
105
116
|
return {
|
|
106
117
|
id: data.id,
|
|
@@ -114,18 +125,22 @@ const unmarshalPlacementGroup = data => {
|
|
|
114
125
|
zone: data.zone
|
|
115
126
|
};
|
|
116
127
|
};
|
|
117
|
-
const unmarshalSecurityGroupSummary = data => {
|
|
128
|
+
const unmarshalSecurityGroupSummary = (data) => {
|
|
118
129
|
if (!isJSONObject(data)) {
|
|
119
|
-
throw new TypeError(
|
|
130
|
+
throw new TypeError(
|
|
131
|
+
`Unmarshalling the type 'SecurityGroupSummary' failed as data isn't a dictionary.`
|
|
132
|
+
);
|
|
120
133
|
}
|
|
121
134
|
return {
|
|
122
135
|
id: data.id,
|
|
123
136
|
name: data.name
|
|
124
137
|
};
|
|
125
138
|
};
|
|
126
|
-
const unmarshalServerIp = data => {
|
|
139
|
+
const unmarshalServerIp = (data) => {
|
|
127
140
|
if (!isJSONObject(data)) {
|
|
128
|
-
throw new TypeError(
|
|
141
|
+
throw new TypeError(
|
|
142
|
+
`Unmarshalling the type 'ServerIp' failed as data isn't a dictionary.`
|
|
143
|
+
);
|
|
129
144
|
}
|
|
130
145
|
return {
|
|
131
146
|
address: data.address,
|
|
@@ -140,9 +155,11 @@ const unmarshalServerIp = data => {
|
|
|
140
155
|
tags: data.tags
|
|
141
156
|
};
|
|
142
157
|
};
|
|
143
|
-
const unmarshalServerIpv6 = data => {
|
|
158
|
+
const unmarshalServerIpv6 = (data) => {
|
|
144
159
|
if (!isJSONObject(data)) {
|
|
145
|
-
throw new TypeError(
|
|
160
|
+
throw new TypeError(
|
|
161
|
+
`Unmarshalling the type 'ServerIpv6' failed as data isn't a dictionary.`
|
|
162
|
+
);
|
|
146
163
|
}
|
|
147
164
|
return {
|
|
148
165
|
address: data.address,
|
|
@@ -150,9 +167,11 @@ const unmarshalServerIpv6 = data => {
|
|
|
150
167
|
netmask: data.netmask
|
|
151
168
|
};
|
|
152
169
|
};
|
|
153
|
-
const unmarshalServerLocation = data => {
|
|
170
|
+
const unmarshalServerLocation = (data) => {
|
|
154
171
|
if (!isJSONObject(data)) {
|
|
155
|
-
throw new TypeError(
|
|
172
|
+
throw new TypeError(
|
|
173
|
+
`Unmarshalling the type 'ServerLocation' failed as data isn't a dictionary.`
|
|
174
|
+
);
|
|
156
175
|
}
|
|
157
176
|
return {
|
|
158
177
|
clusterId: data.cluster_id,
|
|
@@ -162,18 +181,22 @@ const unmarshalServerLocation = data => {
|
|
|
162
181
|
zoneId: data.zone_id
|
|
163
182
|
};
|
|
164
183
|
};
|
|
165
|
-
const unmarshalServerMaintenance = data => {
|
|
184
|
+
const unmarshalServerMaintenance = (data) => {
|
|
166
185
|
if (!isJSONObject(data)) {
|
|
167
|
-
throw new TypeError(
|
|
186
|
+
throw new TypeError(
|
|
187
|
+
`Unmarshalling the type 'ServerMaintenance' failed as data isn't a dictionary.`
|
|
188
|
+
);
|
|
168
189
|
}
|
|
169
190
|
return {
|
|
170
191
|
reason: data.reason,
|
|
171
192
|
startDate: unmarshalDate(data.start_date)
|
|
172
193
|
};
|
|
173
194
|
};
|
|
174
|
-
const unmarshalVolumeServer = data => {
|
|
195
|
+
const unmarshalVolumeServer = (data) => {
|
|
175
196
|
if (!isJSONObject(data)) {
|
|
176
|
-
throw new TypeError(
|
|
197
|
+
throw new TypeError(
|
|
198
|
+
`Unmarshalling the type 'VolumeServer' failed as data isn't a dictionary.`
|
|
199
|
+
);
|
|
177
200
|
}
|
|
178
201
|
return {
|
|
179
202
|
boot: data.boot,
|
|
@@ -184,45 +207,50 @@ const unmarshalVolumeServer = data => {
|
|
|
184
207
|
name: data.name,
|
|
185
208
|
organization: data.organization,
|
|
186
209
|
project: data.project,
|
|
187
|
-
server: data.server ? unmarshalServerSummary(data.server) :
|
|
210
|
+
server: data.server ? unmarshalServerSummary(data.server) : void 0,
|
|
188
211
|
size: data.size,
|
|
189
212
|
state: data.state,
|
|
190
213
|
volumeType: data.volume_type,
|
|
191
214
|
zone: data.zone
|
|
192
215
|
};
|
|
193
216
|
};
|
|
194
|
-
const unmarshalServer = data => {
|
|
217
|
+
const unmarshalServer = (data) => {
|
|
195
218
|
if (!isJSONObject(data)) {
|
|
196
|
-
throw new TypeError(
|
|
219
|
+
throw new TypeError(
|
|
220
|
+
`Unmarshalling the type 'Server' failed as data isn't a dictionary.`
|
|
221
|
+
);
|
|
197
222
|
}
|
|
198
223
|
return {
|
|
199
224
|
allowedActions: data.allowed_actions,
|
|
200
225
|
arch: data.arch,
|
|
201
226
|
bootType: data.boot_type,
|
|
202
|
-
bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) :
|
|
227
|
+
bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : void 0,
|
|
203
228
|
commercialType: data.commercial_type,
|
|
204
229
|
creationDate: unmarshalDate(data.creation_date),
|
|
205
230
|
dynamicIpRequired: data.dynamic_ip_required,
|
|
206
231
|
enableIpv6: data.enable_ipv6,
|
|
207
232
|
hostname: data.hostname,
|
|
208
233
|
id: data.id,
|
|
209
|
-
image: data.image ? unmarshalImage(data.image) :
|
|
210
|
-
ipv6: data.ipv6 ? unmarshalServerIpv6(data.ipv6) :
|
|
211
|
-
location: data.location ? unmarshalServerLocation(data.location) :
|
|
234
|
+
image: data.image ? unmarshalImage(data.image) : void 0,
|
|
235
|
+
ipv6: data.ipv6 ? unmarshalServerIpv6(data.ipv6) : void 0,
|
|
236
|
+
location: data.location ? unmarshalServerLocation(data.location) : void 0,
|
|
212
237
|
macAddress: data.mac_address,
|
|
213
|
-
maintenances: unmarshalArrayOfObject(
|
|
238
|
+
maintenances: unmarshalArrayOfObject(
|
|
239
|
+
data.maintenances,
|
|
240
|
+
unmarshalServerMaintenance
|
|
241
|
+
),
|
|
214
242
|
modificationDate: unmarshalDate(data.modification_date),
|
|
215
243
|
name: data.name,
|
|
216
244
|
organization: data.organization,
|
|
217
|
-
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) :
|
|
245
|
+
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0,
|
|
218
246
|
privateIp: data.private_ip,
|
|
219
247
|
privateNics: unmarshalArrayOfObject(data.private_nics, unmarshalPrivateNIC),
|
|
220
248
|
project: data.project,
|
|
221
249
|
protected: data.protected,
|
|
222
|
-
publicIp: data.public_ip ? unmarshalServerIp(data.public_ip) :
|
|
250
|
+
publicIp: data.public_ip ? unmarshalServerIp(data.public_ip) : void 0,
|
|
223
251
|
publicIps: unmarshalArrayOfObject(data.public_ips, unmarshalServerIp),
|
|
224
252
|
routedIpEnabled: data.routed_ip_enabled,
|
|
225
|
-
securityGroup: data.security_group ? unmarshalSecurityGroupSummary(data.security_group) :
|
|
253
|
+
securityGroup: data.security_group ? unmarshalSecurityGroupSummary(data.security_group) : void 0,
|
|
226
254
|
state: data.state,
|
|
227
255
|
stateDetail: data.state_detail,
|
|
228
256
|
tags: data.tags,
|
|
@@ -230,25 +258,31 @@ const unmarshalServer = data => {
|
|
|
230
258
|
zone: data.zone
|
|
231
259
|
};
|
|
232
260
|
};
|
|
233
|
-
const unmarshalAttachServerVolumeResponse = data => {
|
|
261
|
+
const unmarshalAttachServerVolumeResponse = (data) => {
|
|
234
262
|
if (!isJSONObject(data)) {
|
|
235
|
-
throw new TypeError(
|
|
263
|
+
throw new TypeError(
|
|
264
|
+
`Unmarshalling the type 'AttachServerVolumeResponse' failed as data isn't a dictionary.`
|
|
265
|
+
);
|
|
236
266
|
}
|
|
237
267
|
return {
|
|
238
|
-
server: data.server ? unmarshalServer(data.server) :
|
|
268
|
+
server: data.server ? unmarshalServer(data.server) : void 0
|
|
239
269
|
};
|
|
240
270
|
};
|
|
241
|
-
const unmarshalCreateImageResponse = data => {
|
|
271
|
+
const unmarshalCreateImageResponse = (data) => {
|
|
242
272
|
if (!isJSONObject(data)) {
|
|
243
|
-
throw new TypeError(
|
|
273
|
+
throw new TypeError(
|
|
274
|
+
`Unmarshalling the type 'CreateImageResponse' failed as data isn't a dictionary.`
|
|
275
|
+
);
|
|
244
276
|
}
|
|
245
277
|
return {
|
|
246
|
-
image: data.image ? unmarshalImage(data.image) :
|
|
278
|
+
image: data.image ? unmarshalImage(data.image) : void 0
|
|
247
279
|
};
|
|
248
280
|
};
|
|
249
|
-
const unmarshalIp = data => {
|
|
281
|
+
const unmarshalIp = (data) => {
|
|
250
282
|
if (!isJSONObject(data)) {
|
|
251
|
-
throw new TypeError(
|
|
283
|
+
throw new TypeError(
|
|
284
|
+
`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`
|
|
285
|
+
);
|
|
252
286
|
}
|
|
253
287
|
return {
|
|
254
288
|
address: data.address,
|
|
@@ -258,40 +292,48 @@ const unmarshalIp = data => {
|
|
|
258
292
|
prefix: data.prefix,
|
|
259
293
|
project: data.project,
|
|
260
294
|
reverse: data.reverse,
|
|
261
|
-
server: data.server ? unmarshalServerSummary(data.server) :
|
|
295
|
+
server: data.server ? unmarshalServerSummary(data.server) : void 0,
|
|
262
296
|
state: data.state,
|
|
263
297
|
tags: data.tags,
|
|
264
298
|
type: data.type,
|
|
265
299
|
zone: data.zone
|
|
266
300
|
};
|
|
267
301
|
};
|
|
268
|
-
const unmarshalCreateIpResponse = data => {
|
|
302
|
+
const unmarshalCreateIpResponse = (data) => {
|
|
269
303
|
if (!isJSONObject(data)) {
|
|
270
|
-
throw new TypeError(
|
|
304
|
+
throw new TypeError(
|
|
305
|
+
`Unmarshalling the type 'CreateIpResponse' failed as data isn't a dictionary.`
|
|
306
|
+
);
|
|
271
307
|
}
|
|
272
308
|
return {
|
|
273
|
-
ip: data.ip ? unmarshalIp(data.ip) :
|
|
309
|
+
ip: data.ip ? unmarshalIp(data.ip) : void 0
|
|
274
310
|
};
|
|
275
311
|
};
|
|
276
|
-
const unmarshalCreatePlacementGroupResponse = data => {
|
|
312
|
+
const unmarshalCreatePlacementGroupResponse = (data) => {
|
|
277
313
|
if (!isJSONObject(data)) {
|
|
278
|
-
throw new TypeError(
|
|
314
|
+
throw new TypeError(
|
|
315
|
+
`Unmarshalling the type 'CreatePlacementGroupResponse' failed as data isn't a dictionary.`
|
|
316
|
+
);
|
|
279
317
|
}
|
|
280
318
|
return {
|
|
281
|
-
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) :
|
|
319
|
+
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0
|
|
282
320
|
};
|
|
283
321
|
};
|
|
284
|
-
const unmarshalCreatePrivateNICResponse = data => {
|
|
322
|
+
const unmarshalCreatePrivateNICResponse = (data) => {
|
|
285
323
|
if (!isJSONObject(data)) {
|
|
286
|
-
throw new TypeError(
|
|
324
|
+
throw new TypeError(
|
|
325
|
+
`Unmarshalling the type 'CreatePrivateNICResponse' failed as data isn't a dictionary.`
|
|
326
|
+
);
|
|
287
327
|
}
|
|
288
328
|
return {
|
|
289
|
-
privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) :
|
|
329
|
+
privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : void 0
|
|
290
330
|
};
|
|
291
331
|
};
|
|
292
|
-
const unmarshalSecurityGroup = data => {
|
|
332
|
+
const unmarshalSecurityGroup = (data) => {
|
|
293
333
|
if (!isJSONObject(data)) {
|
|
294
|
-
throw new TypeError(
|
|
334
|
+
throw new TypeError(
|
|
335
|
+
`Unmarshalling the type 'SecurityGroup' failed as data isn't a dictionary.`
|
|
336
|
+
);
|
|
295
337
|
}
|
|
296
338
|
return {
|
|
297
339
|
creationDate: unmarshalDate(data.creation_date),
|
|
@@ -313,17 +355,21 @@ const unmarshalSecurityGroup = data => {
|
|
|
313
355
|
zone: data.zone
|
|
314
356
|
};
|
|
315
357
|
};
|
|
316
|
-
const unmarshalCreateSecurityGroupResponse = data => {
|
|
358
|
+
const unmarshalCreateSecurityGroupResponse = (data) => {
|
|
317
359
|
if (!isJSONObject(data)) {
|
|
318
|
-
throw new TypeError(
|
|
360
|
+
throw new TypeError(
|
|
361
|
+
`Unmarshalling the type 'CreateSecurityGroupResponse' failed as data isn't a dictionary.`
|
|
362
|
+
);
|
|
319
363
|
}
|
|
320
364
|
return {
|
|
321
|
-
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) :
|
|
365
|
+
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : void 0
|
|
322
366
|
};
|
|
323
367
|
};
|
|
324
|
-
const unmarshalSecurityGroupRule = data => {
|
|
368
|
+
const unmarshalSecurityGroupRule = (data) => {
|
|
325
369
|
if (!isJSONObject(data)) {
|
|
326
|
-
throw new TypeError(
|
|
370
|
+
throw new TypeError(
|
|
371
|
+
`Unmarshalling the type 'SecurityGroupRule' failed as data isn't a dictionary.`
|
|
372
|
+
);
|
|
327
373
|
}
|
|
328
374
|
return {
|
|
329
375
|
action: data.action,
|
|
@@ -338,37 +384,45 @@ const unmarshalSecurityGroupRule = data => {
|
|
|
338
384
|
zone: data.zone
|
|
339
385
|
};
|
|
340
386
|
};
|
|
341
|
-
const unmarshalCreateSecurityGroupRuleResponse = data => {
|
|
387
|
+
const unmarshalCreateSecurityGroupRuleResponse = (data) => {
|
|
342
388
|
if (!isJSONObject(data)) {
|
|
343
|
-
throw new TypeError(
|
|
389
|
+
throw new TypeError(
|
|
390
|
+
`Unmarshalling the type 'CreateSecurityGroupRuleResponse' failed as data isn't a dictionary.`
|
|
391
|
+
);
|
|
344
392
|
}
|
|
345
393
|
return {
|
|
346
|
-
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) :
|
|
394
|
+
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : void 0
|
|
347
395
|
};
|
|
348
396
|
};
|
|
349
|
-
const unmarshalCreateServerResponse = data => {
|
|
397
|
+
const unmarshalCreateServerResponse = (data) => {
|
|
350
398
|
if (!isJSONObject(data)) {
|
|
351
|
-
throw new TypeError(
|
|
399
|
+
throw new TypeError(
|
|
400
|
+
`Unmarshalling the type 'CreateServerResponse' failed as data isn't a dictionary.`
|
|
401
|
+
);
|
|
352
402
|
}
|
|
353
403
|
return {
|
|
354
|
-
server: data.server ? unmarshalServer(data.server) :
|
|
404
|
+
server: data.server ? unmarshalServer(data.server) : void 0
|
|
355
405
|
};
|
|
356
406
|
};
|
|
357
|
-
const unmarshalSnapshotBaseVolume = data => {
|
|
407
|
+
const unmarshalSnapshotBaseVolume = (data) => {
|
|
358
408
|
if (!isJSONObject(data)) {
|
|
359
|
-
throw new TypeError(
|
|
409
|
+
throw new TypeError(
|
|
410
|
+
`Unmarshalling the type 'SnapshotBaseVolume' failed as data isn't a dictionary.`
|
|
411
|
+
);
|
|
360
412
|
}
|
|
361
413
|
return {
|
|
362
414
|
id: data.id,
|
|
363
415
|
name: data.name
|
|
364
416
|
};
|
|
365
417
|
};
|
|
366
|
-
const unmarshalSnapshot = data => {
|
|
418
|
+
const unmarshalSnapshot = (data) => {
|
|
367
419
|
if (!isJSONObject(data)) {
|
|
368
|
-
throw new TypeError(
|
|
420
|
+
throw new TypeError(
|
|
421
|
+
`Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`
|
|
422
|
+
);
|
|
369
423
|
}
|
|
370
424
|
return {
|
|
371
|
-
baseVolume: data.base_volume ? unmarshalSnapshotBaseVolume(data.base_volume) :
|
|
425
|
+
baseVolume: data.base_volume ? unmarshalSnapshotBaseVolume(data.base_volume) : void 0,
|
|
372
426
|
creationDate: unmarshalDate(data.creation_date),
|
|
373
427
|
errorReason: data.error_reason,
|
|
374
428
|
id: data.id,
|
|
@@ -383,9 +437,11 @@ const unmarshalSnapshot = data => {
|
|
|
383
437
|
zone: data.zone
|
|
384
438
|
};
|
|
385
439
|
};
|
|
386
|
-
const unmarshalTask = data => {
|
|
440
|
+
const unmarshalTask = (data) => {
|
|
387
441
|
if (!isJSONObject(data)) {
|
|
388
|
-
throw new TypeError(
|
|
442
|
+
throw new TypeError(
|
|
443
|
+
`Unmarshalling the type 'Task' failed as data isn't a dictionary.`
|
|
444
|
+
);
|
|
389
445
|
}
|
|
390
446
|
return {
|
|
391
447
|
description: data.description,
|
|
@@ -399,50 +455,62 @@ const unmarshalTask = data => {
|
|
|
399
455
|
zone: data.zone
|
|
400
456
|
};
|
|
401
457
|
};
|
|
402
|
-
const unmarshalCreateSnapshotResponse = data => {
|
|
458
|
+
const unmarshalCreateSnapshotResponse = (data) => {
|
|
403
459
|
if (!isJSONObject(data)) {
|
|
404
|
-
throw new TypeError(
|
|
460
|
+
throw new TypeError(
|
|
461
|
+
`Unmarshalling the type 'CreateSnapshotResponse' failed as data isn't a dictionary.`
|
|
462
|
+
);
|
|
405
463
|
}
|
|
406
464
|
return {
|
|
407
|
-
snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) :
|
|
408
|
-
task: data.task ? unmarshalTask(data.task) :
|
|
465
|
+
snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : void 0,
|
|
466
|
+
task: data.task ? unmarshalTask(data.task) : void 0
|
|
409
467
|
};
|
|
410
468
|
};
|
|
411
|
-
const unmarshalCreateVolumeResponse = data => {
|
|
469
|
+
const unmarshalCreateVolumeResponse = (data) => {
|
|
412
470
|
if (!isJSONObject(data)) {
|
|
413
|
-
throw new TypeError(
|
|
471
|
+
throw new TypeError(
|
|
472
|
+
`Unmarshalling the type 'CreateVolumeResponse' failed as data isn't a dictionary.`
|
|
473
|
+
);
|
|
414
474
|
}
|
|
415
475
|
return {
|
|
416
|
-
volume: data.volume ? unmarshalVolume(data.volume) :
|
|
476
|
+
volume: data.volume ? unmarshalVolume(data.volume) : void 0
|
|
417
477
|
};
|
|
418
478
|
};
|
|
419
|
-
const unmarshalDetachServerVolumeResponse = data => {
|
|
479
|
+
const unmarshalDetachServerVolumeResponse = (data) => {
|
|
420
480
|
if (!isJSONObject(data)) {
|
|
421
|
-
throw new TypeError(
|
|
481
|
+
throw new TypeError(
|
|
482
|
+
`Unmarshalling the type 'DetachServerVolumeResponse' failed as data isn't a dictionary.`
|
|
483
|
+
);
|
|
422
484
|
}
|
|
423
485
|
return {
|
|
424
|
-
server: data.server ? unmarshalServer(data.server) :
|
|
486
|
+
server: data.server ? unmarshalServer(data.server) : void 0
|
|
425
487
|
};
|
|
426
488
|
};
|
|
427
|
-
const unmarshalExportSnapshotResponse = data => {
|
|
489
|
+
const unmarshalExportSnapshotResponse = (data) => {
|
|
428
490
|
if (!isJSONObject(data)) {
|
|
429
|
-
throw new TypeError(
|
|
491
|
+
throw new TypeError(
|
|
492
|
+
`Unmarshalling the type 'ExportSnapshotResponse' failed as data isn't a dictionary.`
|
|
493
|
+
);
|
|
430
494
|
}
|
|
431
495
|
return {
|
|
432
|
-
task: data.task ? unmarshalTask(data.task) :
|
|
496
|
+
task: data.task ? unmarshalTask(data.task) : void 0
|
|
433
497
|
};
|
|
434
498
|
};
|
|
435
|
-
const unmarshalGetBootscriptResponse = data => {
|
|
499
|
+
const unmarshalGetBootscriptResponse = (data) => {
|
|
436
500
|
if (!isJSONObject(data)) {
|
|
437
|
-
throw new TypeError(
|
|
501
|
+
throw new TypeError(
|
|
502
|
+
`Unmarshalling the type 'GetBootscriptResponse' failed as data isn't a dictionary.`
|
|
503
|
+
);
|
|
438
504
|
}
|
|
439
505
|
return {
|
|
440
|
-
bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) :
|
|
506
|
+
bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : void 0
|
|
441
507
|
};
|
|
442
508
|
};
|
|
443
|
-
const unmarshalDashboard = data => {
|
|
509
|
+
const unmarshalDashboard = (data) => {
|
|
444
510
|
if (!isJSONObject(data)) {
|
|
445
|
-
throw new TypeError(
|
|
511
|
+
throw new TypeError(
|
|
512
|
+
`Unmarshalling the type 'Dashboard' failed as data isn't a dictionary.`
|
|
513
|
+
);
|
|
446
514
|
}
|
|
447
515
|
return {
|
|
448
516
|
imagesCount: data.images_count,
|
|
@@ -462,41 +530,51 @@ const unmarshalDashboard = data => {
|
|
|
462
530
|
volumesLSsdTotalSize: data.volumes_l_ssd_total_size
|
|
463
531
|
};
|
|
464
532
|
};
|
|
465
|
-
const unmarshalGetDashboardResponse = data => {
|
|
533
|
+
const unmarshalGetDashboardResponse = (data) => {
|
|
466
534
|
if (!isJSONObject(data)) {
|
|
467
|
-
throw new TypeError(
|
|
535
|
+
throw new TypeError(
|
|
536
|
+
`Unmarshalling the type 'GetDashboardResponse' failed as data isn't a dictionary.`
|
|
537
|
+
);
|
|
468
538
|
}
|
|
469
539
|
return {
|
|
470
|
-
dashboard: data.dashboard ? unmarshalDashboard(data.dashboard) :
|
|
540
|
+
dashboard: data.dashboard ? unmarshalDashboard(data.dashboard) : void 0
|
|
471
541
|
};
|
|
472
542
|
};
|
|
473
|
-
const unmarshalGetImageResponse = data => {
|
|
543
|
+
const unmarshalGetImageResponse = (data) => {
|
|
474
544
|
if (!isJSONObject(data)) {
|
|
475
|
-
throw new TypeError(
|
|
545
|
+
throw new TypeError(
|
|
546
|
+
`Unmarshalling the type 'GetImageResponse' failed as data isn't a dictionary.`
|
|
547
|
+
);
|
|
476
548
|
}
|
|
477
549
|
return {
|
|
478
|
-
image: data.image ? unmarshalImage(data.image) :
|
|
550
|
+
image: data.image ? unmarshalImage(data.image) : void 0
|
|
479
551
|
};
|
|
480
552
|
};
|
|
481
|
-
const unmarshalGetIpResponse = data => {
|
|
553
|
+
const unmarshalGetIpResponse = (data) => {
|
|
482
554
|
if (!isJSONObject(data)) {
|
|
483
|
-
throw new TypeError(
|
|
555
|
+
throw new TypeError(
|
|
556
|
+
`Unmarshalling the type 'GetIpResponse' failed as data isn't a dictionary.`
|
|
557
|
+
);
|
|
484
558
|
}
|
|
485
559
|
return {
|
|
486
|
-
ip: data.ip ? unmarshalIp(data.ip) :
|
|
560
|
+
ip: data.ip ? unmarshalIp(data.ip) : void 0
|
|
487
561
|
};
|
|
488
562
|
};
|
|
489
|
-
const unmarshalGetPlacementGroupResponse = data => {
|
|
563
|
+
const unmarshalGetPlacementGroupResponse = (data) => {
|
|
490
564
|
if (!isJSONObject(data)) {
|
|
491
|
-
throw new TypeError(
|
|
565
|
+
throw new TypeError(
|
|
566
|
+
`Unmarshalling the type 'GetPlacementGroupResponse' failed as data isn't a dictionary.`
|
|
567
|
+
);
|
|
492
568
|
}
|
|
493
569
|
return {
|
|
494
|
-
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) :
|
|
570
|
+
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0
|
|
495
571
|
};
|
|
496
572
|
};
|
|
497
|
-
const unmarshalPlacementGroupServer = data => {
|
|
573
|
+
const unmarshalPlacementGroupServer = (data) => {
|
|
498
574
|
if (!isJSONObject(data)) {
|
|
499
|
-
throw new TypeError(
|
|
575
|
+
throw new TypeError(
|
|
576
|
+
`Unmarshalling the type 'PlacementGroupServer' failed as data isn't a dictionary.`
|
|
577
|
+
);
|
|
500
578
|
}
|
|
501
579
|
return {
|
|
502
580
|
id: data.id,
|
|
@@ -504,459 +582,579 @@ const unmarshalPlacementGroupServer = data => {
|
|
|
504
582
|
policyRespected: data.policy_respected
|
|
505
583
|
};
|
|
506
584
|
};
|
|
507
|
-
const unmarshalGetPlacementGroupServersResponse = data => {
|
|
585
|
+
const unmarshalGetPlacementGroupServersResponse = (data) => {
|
|
508
586
|
if (!isJSONObject(data)) {
|
|
509
|
-
throw new TypeError(
|
|
587
|
+
throw new TypeError(
|
|
588
|
+
`Unmarshalling the type 'GetPlacementGroupServersResponse' failed as data isn't a dictionary.`
|
|
589
|
+
);
|
|
510
590
|
}
|
|
511
591
|
return {
|
|
512
|
-
servers: unmarshalArrayOfObject(
|
|
592
|
+
servers: unmarshalArrayOfObject(
|
|
593
|
+
data.servers,
|
|
594
|
+
unmarshalPlacementGroupServer
|
|
595
|
+
)
|
|
513
596
|
};
|
|
514
597
|
};
|
|
515
|
-
const unmarshalGetPrivateNICResponse = data => {
|
|
598
|
+
const unmarshalGetPrivateNICResponse = (data) => {
|
|
516
599
|
if (!isJSONObject(data)) {
|
|
517
|
-
throw new TypeError(
|
|
600
|
+
throw new TypeError(
|
|
601
|
+
`Unmarshalling the type 'GetPrivateNICResponse' failed as data isn't a dictionary.`
|
|
602
|
+
);
|
|
518
603
|
}
|
|
519
604
|
return {
|
|
520
|
-
privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) :
|
|
605
|
+
privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : void 0
|
|
521
606
|
};
|
|
522
607
|
};
|
|
523
|
-
const unmarshalGetSecurityGroupResponse = data => {
|
|
608
|
+
const unmarshalGetSecurityGroupResponse = (data) => {
|
|
524
609
|
if (!isJSONObject(data)) {
|
|
525
|
-
throw new TypeError(
|
|
610
|
+
throw new TypeError(
|
|
611
|
+
`Unmarshalling the type 'GetSecurityGroupResponse' failed as data isn't a dictionary.`
|
|
612
|
+
);
|
|
526
613
|
}
|
|
527
614
|
return {
|
|
528
|
-
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) :
|
|
615
|
+
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : void 0
|
|
529
616
|
};
|
|
530
617
|
};
|
|
531
|
-
const unmarshalGetSecurityGroupRuleResponse = data => {
|
|
618
|
+
const unmarshalGetSecurityGroupRuleResponse = (data) => {
|
|
532
619
|
if (!isJSONObject(data)) {
|
|
533
|
-
throw new TypeError(
|
|
620
|
+
throw new TypeError(
|
|
621
|
+
`Unmarshalling the type 'GetSecurityGroupRuleResponse' failed as data isn't a dictionary.`
|
|
622
|
+
);
|
|
534
623
|
}
|
|
535
624
|
return {
|
|
536
|
-
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) :
|
|
625
|
+
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : void 0
|
|
537
626
|
};
|
|
538
627
|
};
|
|
539
|
-
const unmarshalGetServerResponse = data => {
|
|
628
|
+
const unmarshalGetServerResponse = (data) => {
|
|
540
629
|
if (!isJSONObject(data)) {
|
|
541
|
-
throw new TypeError(
|
|
630
|
+
throw new TypeError(
|
|
631
|
+
`Unmarshalling the type 'GetServerResponse' failed as data isn't a dictionary.`
|
|
632
|
+
);
|
|
542
633
|
}
|
|
543
634
|
return {
|
|
544
|
-
server: data.server ? unmarshalServer(data.server) :
|
|
635
|
+
server: data.server ? unmarshalServer(data.server) : void 0
|
|
545
636
|
};
|
|
546
637
|
};
|
|
547
|
-
const unmarshalGetServerTypesAvailabilityResponseAvailability = data => {
|
|
638
|
+
const unmarshalGetServerTypesAvailabilityResponseAvailability = (data) => {
|
|
548
639
|
if (!isJSONObject(data)) {
|
|
549
|
-
throw new TypeError(
|
|
640
|
+
throw new TypeError(
|
|
641
|
+
`Unmarshalling the type 'GetServerTypesAvailabilityResponseAvailability' failed as data isn't a dictionary.`
|
|
642
|
+
);
|
|
550
643
|
}
|
|
551
644
|
return {
|
|
552
645
|
availability: data.availability
|
|
553
646
|
};
|
|
554
647
|
};
|
|
555
|
-
const unmarshalGetServerTypesAvailabilityResponse = data => {
|
|
648
|
+
const unmarshalGetServerTypesAvailabilityResponse = (data) => {
|
|
556
649
|
if (!isJSONObject(data)) {
|
|
557
|
-
throw new TypeError(
|
|
650
|
+
throw new TypeError(
|
|
651
|
+
`Unmarshalling the type 'GetServerTypesAvailabilityResponse' failed as data isn't a dictionary.`
|
|
652
|
+
);
|
|
558
653
|
}
|
|
559
654
|
return {
|
|
560
|
-
servers: unmarshalMapOfObject(
|
|
655
|
+
servers: unmarshalMapOfObject(
|
|
656
|
+
data.servers,
|
|
657
|
+
unmarshalGetServerTypesAvailabilityResponseAvailability
|
|
658
|
+
),
|
|
561
659
|
totalCount: data.total_count
|
|
562
660
|
};
|
|
563
661
|
};
|
|
564
|
-
const unmarshalGetSnapshotResponse = data => {
|
|
662
|
+
const unmarshalGetSnapshotResponse = (data) => {
|
|
565
663
|
if (!isJSONObject(data)) {
|
|
566
|
-
throw new TypeError(
|
|
664
|
+
throw new TypeError(
|
|
665
|
+
`Unmarshalling the type 'GetSnapshotResponse' failed as data isn't a dictionary.`
|
|
666
|
+
);
|
|
567
667
|
}
|
|
568
668
|
return {
|
|
569
|
-
snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) :
|
|
669
|
+
snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : void 0
|
|
570
670
|
};
|
|
571
671
|
};
|
|
572
|
-
const unmarshalGetVolumeResponse = data => {
|
|
672
|
+
const unmarshalGetVolumeResponse = (data) => {
|
|
573
673
|
if (!isJSONObject(data)) {
|
|
574
|
-
throw new TypeError(
|
|
674
|
+
throw new TypeError(
|
|
675
|
+
`Unmarshalling the type 'GetVolumeResponse' failed as data isn't a dictionary.`
|
|
676
|
+
);
|
|
575
677
|
}
|
|
576
678
|
return {
|
|
577
|
-
volume: data.volume ? unmarshalVolume(data.volume) :
|
|
679
|
+
volume: data.volume ? unmarshalVolume(data.volume) : void 0
|
|
578
680
|
};
|
|
579
681
|
};
|
|
580
|
-
const unmarshalListBootscriptsResponse = data => {
|
|
682
|
+
const unmarshalListBootscriptsResponse = (data) => {
|
|
581
683
|
if (!isJSONObject(data)) {
|
|
582
|
-
throw new TypeError(
|
|
684
|
+
throw new TypeError(
|
|
685
|
+
`Unmarshalling the type 'ListBootscriptsResponse' failed as data isn't a dictionary.`
|
|
686
|
+
);
|
|
583
687
|
}
|
|
584
688
|
return {
|
|
585
689
|
bootscripts: unmarshalArrayOfObject(data.bootscripts, unmarshalBootscript),
|
|
586
690
|
totalCount: data.total_count
|
|
587
691
|
};
|
|
588
692
|
};
|
|
589
|
-
const unmarshalListImagesResponse = data => {
|
|
693
|
+
const unmarshalListImagesResponse = (data) => {
|
|
590
694
|
if (!isJSONObject(data)) {
|
|
591
|
-
throw new TypeError(
|
|
695
|
+
throw new TypeError(
|
|
696
|
+
`Unmarshalling the type 'ListImagesResponse' failed as data isn't a dictionary.`
|
|
697
|
+
);
|
|
592
698
|
}
|
|
593
699
|
return {
|
|
594
700
|
images: unmarshalArrayOfObject(data.images, unmarshalImage),
|
|
595
701
|
totalCount: data.total_count
|
|
596
702
|
};
|
|
597
703
|
};
|
|
598
|
-
const unmarshalListIpsResponse = data => {
|
|
704
|
+
const unmarshalListIpsResponse = (data) => {
|
|
599
705
|
if (!isJSONObject(data)) {
|
|
600
|
-
throw new TypeError(
|
|
706
|
+
throw new TypeError(
|
|
707
|
+
`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`
|
|
708
|
+
);
|
|
601
709
|
}
|
|
602
710
|
return {
|
|
603
711
|
ips: unmarshalArrayOfObject(data.ips, unmarshalIp),
|
|
604
712
|
totalCount: data.total_count
|
|
605
713
|
};
|
|
606
714
|
};
|
|
607
|
-
const unmarshalListPlacementGroupsResponse = data => {
|
|
715
|
+
const unmarshalListPlacementGroupsResponse = (data) => {
|
|
608
716
|
if (!isJSONObject(data)) {
|
|
609
|
-
throw new TypeError(
|
|
717
|
+
throw new TypeError(
|
|
718
|
+
`Unmarshalling the type 'ListPlacementGroupsResponse' failed as data isn't a dictionary.`
|
|
719
|
+
);
|
|
610
720
|
}
|
|
611
721
|
return {
|
|
612
|
-
placementGroups: unmarshalArrayOfObject(
|
|
722
|
+
placementGroups: unmarshalArrayOfObject(
|
|
723
|
+
data.placement_groups,
|
|
724
|
+
unmarshalPlacementGroup
|
|
725
|
+
),
|
|
613
726
|
totalCount: data.total_count
|
|
614
727
|
};
|
|
615
728
|
};
|
|
616
|
-
const unmarshalListPrivateNICsResponse = data => {
|
|
729
|
+
const unmarshalListPrivateNICsResponse = (data) => {
|
|
617
730
|
if (!isJSONObject(data)) {
|
|
618
|
-
throw new TypeError(
|
|
731
|
+
throw new TypeError(
|
|
732
|
+
`Unmarshalling the type 'ListPrivateNICsResponse' failed as data isn't a dictionary.`
|
|
733
|
+
);
|
|
619
734
|
}
|
|
620
735
|
return {
|
|
621
736
|
privateNics: unmarshalArrayOfObject(data.private_nics, unmarshalPrivateNIC),
|
|
622
737
|
totalCount: data.total_count
|
|
623
738
|
};
|
|
624
739
|
};
|
|
625
|
-
const unmarshalListSecurityGroupRulesResponse = data => {
|
|
740
|
+
const unmarshalListSecurityGroupRulesResponse = (data) => {
|
|
626
741
|
if (!isJSONObject(data)) {
|
|
627
|
-
throw new TypeError(
|
|
742
|
+
throw new TypeError(
|
|
743
|
+
`Unmarshalling the type 'ListSecurityGroupRulesResponse' failed as data isn't a dictionary.`
|
|
744
|
+
);
|
|
628
745
|
}
|
|
629
746
|
return {
|
|
630
747
|
rules: unmarshalArrayOfObject(data.rules, unmarshalSecurityGroupRule),
|
|
631
748
|
totalCount: data.total_count
|
|
632
749
|
};
|
|
633
750
|
};
|
|
634
|
-
const unmarshalListSecurityGroupsResponse = data => {
|
|
751
|
+
const unmarshalListSecurityGroupsResponse = (data) => {
|
|
635
752
|
if (!isJSONObject(data)) {
|
|
636
|
-
throw new TypeError(
|
|
753
|
+
throw new TypeError(
|
|
754
|
+
`Unmarshalling the type 'ListSecurityGroupsResponse' failed as data isn't a dictionary.`
|
|
755
|
+
);
|
|
637
756
|
}
|
|
638
757
|
return {
|
|
639
|
-
securityGroups: unmarshalArrayOfObject(
|
|
758
|
+
securityGroups: unmarshalArrayOfObject(
|
|
759
|
+
data.security_groups,
|
|
760
|
+
unmarshalSecurityGroup
|
|
761
|
+
),
|
|
640
762
|
totalCount: data.total_count
|
|
641
763
|
};
|
|
642
764
|
};
|
|
643
|
-
const unmarshalListServerActionsResponse = data => {
|
|
765
|
+
const unmarshalListServerActionsResponse = (data) => {
|
|
644
766
|
if (!isJSONObject(data)) {
|
|
645
|
-
throw new TypeError(
|
|
767
|
+
throw new TypeError(
|
|
768
|
+
`Unmarshalling the type 'ListServerActionsResponse' failed as data isn't a dictionary.`
|
|
769
|
+
);
|
|
646
770
|
}
|
|
647
771
|
return {
|
|
648
772
|
actions: data.actions
|
|
649
773
|
};
|
|
650
774
|
};
|
|
651
|
-
const unmarshalListServerUserDataResponse = data => {
|
|
775
|
+
const unmarshalListServerUserDataResponse = (data) => {
|
|
652
776
|
if (!isJSONObject(data)) {
|
|
653
|
-
throw new TypeError(
|
|
777
|
+
throw new TypeError(
|
|
778
|
+
`Unmarshalling the type 'ListServerUserDataResponse' failed as data isn't a dictionary.`
|
|
779
|
+
);
|
|
654
780
|
}
|
|
655
781
|
return {
|
|
656
782
|
userData: data.user_data
|
|
657
783
|
};
|
|
658
784
|
};
|
|
659
|
-
const unmarshalListServersResponse = data => {
|
|
785
|
+
const unmarshalListServersResponse = (data) => {
|
|
660
786
|
if (!isJSONObject(data)) {
|
|
661
|
-
throw new TypeError(
|
|
787
|
+
throw new TypeError(
|
|
788
|
+
`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`
|
|
789
|
+
);
|
|
662
790
|
}
|
|
663
791
|
return {
|
|
664
792
|
servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
|
|
665
793
|
totalCount: data.total_count
|
|
666
794
|
};
|
|
667
795
|
};
|
|
668
|
-
const unmarshalServerTypeNetworkInterface = data => {
|
|
796
|
+
const unmarshalServerTypeNetworkInterface = (data) => {
|
|
669
797
|
if (!isJSONObject(data)) {
|
|
670
|
-
throw new TypeError(
|
|
798
|
+
throw new TypeError(
|
|
799
|
+
`Unmarshalling the type 'ServerTypeNetworkInterface' failed as data isn't a dictionary.`
|
|
800
|
+
);
|
|
671
801
|
}
|
|
672
802
|
return {
|
|
673
803
|
internalBandwidth: data.internal_bandwidth,
|
|
674
804
|
internetBandwidth: data.internet_bandwidth
|
|
675
805
|
};
|
|
676
806
|
};
|
|
677
|
-
const unmarshalServerTypeVolumeConstraintSizes = data => {
|
|
807
|
+
const unmarshalServerTypeVolumeConstraintSizes = (data) => {
|
|
678
808
|
if (!isJSONObject(data)) {
|
|
679
|
-
throw new TypeError(
|
|
809
|
+
throw new TypeError(
|
|
810
|
+
`Unmarshalling the type 'ServerTypeVolumeConstraintSizes' failed as data isn't a dictionary.`
|
|
811
|
+
);
|
|
680
812
|
}
|
|
681
813
|
return {
|
|
682
814
|
maxSize: data.max_size,
|
|
683
815
|
minSize: data.min_size
|
|
684
816
|
};
|
|
685
817
|
};
|
|
686
|
-
const unmarshalServerTypeCapabilities = data => {
|
|
818
|
+
const unmarshalServerTypeCapabilities = (data) => {
|
|
687
819
|
if (!isJSONObject(data)) {
|
|
688
|
-
throw new TypeError(
|
|
820
|
+
throw new TypeError(
|
|
821
|
+
`Unmarshalling the type 'ServerTypeCapabilities' failed as data isn't a dictionary.`
|
|
822
|
+
);
|
|
689
823
|
}
|
|
690
824
|
return {
|
|
691
825
|
blockStorage: data.block_storage,
|
|
692
826
|
bootTypes: data.boot_types
|
|
693
827
|
};
|
|
694
828
|
};
|
|
695
|
-
const unmarshalServerTypeNetwork = data => {
|
|
829
|
+
const unmarshalServerTypeNetwork = (data) => {
|
|
696
830
|
if (!isJSONObject(data)) {
|
|
697
|
-
throw new TypeError(
|
|
831
|
+
throw new TypeError(
|
|
832
|
+
`Unmarshalling the type 'ServerTypeNetwork' failed as data isn't a dictionary.`
|
|
833
|
+
);
|
|
698
834
|
}
|
|
699
835
|
return {
|
|
700
|
-
interfaces: unmarshalArrayOfObject(
|
|
836
|
+
interfaces: unmarshalArrayOfObject(
|
|
837
|
+
data.interfaces,
|
|
838
|
+
unmarshalServerTypeNetworkInterface
|
|
839
|
+
),
|
|
701
840
|
ipv6Support: data.ipv6_support,
|
|
702
841
|
sumInternalBandwidth: data.sum_internal_bandwidth,
|
|
703
842
|
sumInternetBandwidth: data.sum_internet_bandwidth
|
|
704
843
|
};
|
|
705
844
|
};
|
|
706
|
-
const unmarshalServerTypeVolumeConstraintsByType = data => {
|
|
845
|
+
const unmarshalServerTypeVolumeConstraintsByType = (data) => {
|
|
707
846
|
if (!isJSONObject(data)) {
|
|
708
|
-
throw new TypeError(
|
|
847
|
+
throw new TypeError(
|
|
848
|
+
`Unmarshalling the type 'ServerTypeVolumeConstraintsByType' failed as data isn't a dictionary.`
|
|
849
|
+
);
|
|
709
850
|
}
|
|
710
851
|
return {
|
|
711
|
-
lSsd: data.l_ssd ? unmarshalServerTypeVolumeConstraintSizes(data.l_ssd) :
|
|
852
|
+
lSsd: data.l_ssd ? unmarshalServerTypeVolumeConstraintSizes(data.l_ssd) : void 0
|
|
712
853
|
};
|
|
713
854
|
};
|
|
714
|
-
const unmarshalServerType = data => {
|
|
855
|
+
const unmarshalServerType = (data) => {
|
|
715
856
|
if (!isJSONObject(data)) {
|
|
716
|
-
throw new TypeError(
|
|
857
|
+
throw new TypeError(
|
|
858
|
+
`Unmarshalling the type 'ServerType' failed as data isn't a dictionary.`
|
|
859
|
+
);
|
|
717
860
|
}
|
|
718
861
|
return {
|
|
719
862
|
altNames: data.alt_names,
|
|
720
863
|
arch: data.arch,
|
|
721
864
|
baremetal: data.baremetal,
|
|
722
|
-
capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) :
|
|
865
|
+
capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
|
|
723
866
|
gpu: data.gpu,
|
|
724
867
|
hourlyPrice: data.hourly_price,
|
|
725
868
|
monthlyPrice: data.monthly_price,
|
|
726
869
|
ncpus: data.ncpus,
|
|
727
|
-
network: data.network ? unmarshalServerTypeNetwork(data.network) :
|
|
728
|
-
perVolumeConstraint: data.per_volume_constraint ? unmarshalServerTypeVolumeConstraintsByType(data.per_volume_constraint) :
|
|
870
|
+
network: data.network ? unmarshalServerTypeNetwork(data.network) : void 0,
|
|
871
|
+
perVolumeConstraint: data.per_volume_constraint ? unmarshalServerTypeVolumeConstraintsByType(data.per_volume_constraint) : void 0,
|
|
729
872
|
ram: data.ram,
|
|
730
873
|
scratchStorageMaxSize: data.scratch_storage_max_size,
|
|
731
|
-
volumesConstraint: data.volumes_constraint ? unmarshalServerTypeVolumeConstraintSizes(data.volumes_constraint) :
|
|
874
|
+
volumesConstraint: data.volumes_constraint ? unmarshalServerTypeVolumeConstraintSizes(data.volumes_constraint) : void 0
|
|
732
875
|
};
|
|
733
876
|
};
|
|
734
|
-
const unmarshalListServersTypesResponse = data => {
|
|
877
|
+
const unmarshalListServersTypesResponse = (data) => {
|
|
735
878
|
if (!isJSONObject(data)) {
|
|
736
|
-
throw new TypeError(
|
|
879
|
+
throw new TypeError(
|
|
880
|
+
`Unmarshalling the type 'ListServersTypesResponse' failed as data isn't a dictionary.`
|
|
881
|
+
);
|
|
737
882
|
}
|
|
738
883
|
return {
|
|
739
884
|
servers: unmarshalMapOfObject(data.servers, unmarshalServerType),
|
|
740
885
|
totalCount: data.total_count
|
|
741
886
|
};
|
|
742
887
|
};
|
|
743
|
-
const unmarshalListSnapshotsResponse = data => {
|
|
888
|
+
const unmarshalListSnapshotsResponse = (data) => {
|
|
744
889
|
if (!isJSONObject(data)) {
|
|
745
|
-
throw new TypeError(
|
|
890
|
+
throw new TypeError(
|
|
891
|
+
`Unmarshalling the type 'ListSnapshotsResponse' failed as data isn't a dictionary.`
|
|
892
|
+
);
|
|
746
893
|
}
|
|
747
894
|
return {
|
|
748
895
|
snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
|
|
749
896
|
totalCount: data.total_count
|
|
750
897
|
};
|
|
751
898
|
};
|
|
752
|
-
const unmarshalListVolumesResponse = data => {
|
|
899
|
+
const unmarshalListVolumesResponse = (data) => {
|
|
753
900
|
if (!isJSONObject(data)) {
|
|
754
|
-
throw new TypeError(
|
|
901
|
+
throw new TypeError(
|
|
902
|
+
`Unmarshalling the type 'ListVolumesResponse' failed as data isn't a dictionary.`
|
|
903
|
+
);
|
|
755
904
|
}
|
|
756
905
|
return {
|
|
757
906
|
totalCount: data.total_count,
|
|
758
907
|
volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume)
|
|
759
908
|
};
|
|
760
909
|
};
|
|
761
|
-
const unmarshalVolumeTypeCapabilities = data => {
|
|
910
|
+
const unmarshalVolumeTypeCapabilities = (data) => {
|
|
762
911
|
if (!isJSONObject(data)) {
|
|
763
|
-
throw new TypeError(
|
|
912
|
+
throw new TypeError(
|
|
913
|
+
`Unmarshalling the type 'VolumeTypeCapabilities' failed as data isn't a dictionary.`
|
|
914
|
+
);
|
|
764
915
|
}
|
|
765
916
|
return {
|
|
766
917
|
snapshot: data.snapshot
|
|
767
918
|
};
|
|
768
919
|
};
|
|
769
|
-
const unmarshalVolumeTypeConstraints = data => {
|
|
920
|
+
const unmarshalVolumeTypeConstraints = (data) => {
|
|
770
921
|
if (!isJSONObject(data)) {
|
|
771
|
-
throw new TypeError(
|
|
922
|
+
throw new TypeError(
|
|
923
|
+
`Unmarshalling the type 'VolumeTypeConstraints' failed as data isn't a dictionary.`
|
|
924
|
+
);
|
|
772
925
|
}
|
|
773
926
|
return {
|
|
774
927
|
max: data.max,
|
|
775
928
|
min: data.min
|
|
776
929
|
};
|
|
777
930
|
};
|
|
778
|
-
const unmarshalVolumeType = data => {
|
|
931
|
+
const unmarshalVolumeType = (data) => {
|
|
779
932
|
if (!isJSONObject(data)) {
|
|
780
|
-
throw new TypeError(
|
|
933
|
+
throw new TypeError(
|
|
934
|
+
`Unmarshalling the type 'VolumeType' failed as data isn't a dictionary.`
|
|
935
|
+
);
|
|
781
936
|
}
|
|
782
937
|
return {
|
|
783
|
-
capabilities: data.capabilities ? unmarshalVolumeTypeCapabilities(data.capabilities) :
|
|
784
|
-
constraints: data.constraints ? unmarshalVolumeTypeConstraints(data.constraints) :
|
|
938
|
+
capabilities: data.capabilities ? unmarshalVolumeTypeCapabilities(data.capabilities) : void 0,
|
|
939
|
+
constraints: data.constraints ? unmarshalVolumeTypeConstraints(data.constraints) : void 0,
|
|
785
940
|
displayName: data.display_name
|
|
786
941
|
};
|
|
787
942
|
};
|
|
788
|
-
const unmarshalListVolumesTypesResponse = data => {
|
|
943
|
+
const unmarshalListVolumesTypesResponse = (data) => {
|
|
789
944
|
if (!isJSONObject(data)) {
|
|
790
|
-
throw new TypeError(
|
|
945
|
+
throw new TypeError(
|
|
946
|
+
`Unmarshalling the type 'ListVolumesTypesResponse' failed as data isn't a dictionary.`
|
|
947
|
+
);
|
|
791
948
|
}
|
|
792
949
|
return {
|
|
793
950
|
totalCount: data.total_count,
|
|
794
951
|
volumes: unmarshalMapOfObject(data.volumes, unmarshalVolumeType)
|
|
795
952
|
};
|
|
796
953
|
};
|
|
797
|
-
const unmarshalMigrationPlan = data => {
|
|
954
|
+
const unmarshalMigrationPlan = (data) => {
|
|
798
955
|
if (!isJSONObject(data)) {
|
|
799
|
-
throw new TypeError(
|
|
956
|
+
throw new TypeError(
|
|
957
|
+
`Unmarshalling the type 'MigrationPlan' failed as data isn't a dictionary.`
|
|
958
|
+
);
|
|
800
959
|
}
|
|
801
960
|
return {
|
|
802
961
|
snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
|
|
803
962
|
validationKey: data.validation_key,
|
|
804
|
-
volume: data.volume ? unmarshalVolume(data.volume) :
|
|
963
|
+
volume: data.volume ? unmarshalVolume(data.volume) : void 0
|
|
805
964
|
};
|
|
806
965
|
};
|
|
807
|
-
const unmarshalServerActionResponse = data => {
|
|
966
|
+
const unmarshalServerActionResponse = (data) => {
|
|
808
967
|
if (!isJSONObject(data)) {
|
|
809
|
-
throw new TypeError(
|
|
968
|
+
throw new TypeError(
|
|
969
|
+
`Unmarshalling the type 'ServerActionResponse' failed as data isn't a dictionary.`
|
|
970
|
+
);
|
|
810
971
|
}
|
|
811
972
|
return {
|
|
812
|
-
task: data.task ? unmarshalTask(data.task) :
|
|
973
|
+
task: data.task ? unmarshalTask(data.task) : void 0
|
|
813
974
|
};
|
|
814
975
|
};
|
|
815
|
-
const unmarshalSetImageResponse = data => {
|
|
976
|
+
const unmarshalSetImageResponse = (data) => {
|
|
816
977
|
if (!isJSONObject(data)) {
|
|
817
|
-
throw new TypeError(
|
|
978
|
+
throw new TypeError(
|
|
979
|
+
`Unmarshalling the type 'SetImageResponse' failed as data isn't a dictionary.`
|
|
980
|
+
);
|
|
818
981
|
}
|
|
819
982
|
return {
|
|
820
|
-
image: data.image ? unmarshalImage(data.image) :
|
|
983
|
+
image: data.image ? unmarshalImage(data.image) : void 0
|
|
821
984
|
};
|
|
822
985
|
};
|
|
823
|
-
const unmarshalSetPlacementGroupResponse = data => {
|
|
986
|
+
const unmarshalSetPlacementGroupResponse = (data) => {
|
|
824
987
|
if (!isJSONObject(data)) {
|
|
825
|
-
throw new TypeError(
|
|
988
|
+
throw new TypeError(
|
|
989
|
+
`Unmarshalling the type 'SetPlacementGroupResponse' failed as data isn't a dictionary.`
|
|
990
|
+
);
|
|
826
991
|
}
|
|
827
992
|
return {
|
|
828
|
-
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) :
|
|
993
|
+
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0
|
|
829
994
|
};
|
|
830
995
|
};
|
|
831
|
-
const unmarshalSetPlacementGroupServersResponse = data => {
|
|
996
|
+
const unmarshalSetPlacementGroupServersResponse = (data) => {
|
|
832
997
|
if (!isJSONObject(data)) {
|
|
833
|
-
throw new TypeError(
|
|
998
|
+
throw new TypeError(
|
|
999
|
+
`Unmarshalling the type 'SetPlacementGroupServersResponse' failed as data isn't a dictionary.`
|
|
1000
|
+
);
|
|
834
1001
|
}
|
|
835
1002
|
return {
|
|
836
|
-
servers: unmarshalArrayOfObject(
|
|
1003
|
+
servers: unmarshalArrayOfObject(
|
|
1004
|
+
data.servers,
|
|
1005
|
+
unmarshalPlacementGroupServer
|
|
1006
|
+
)
|
|
837
1007
|
};
|
|
838
1008
|
};
|
|
839
|
-
const unmarshalSetSecurityGroupResponse = data => {
|
|
1009
|
+
const unmarshalSetSecurityGroupResponse = (data) => {
|
|
840
1010
|
if (!isJSONObject(data)) {
|
|
841
|
-
throw new TypeError(
|
|
1011
|
+
throw new TypeError(
|
|
1012
|
+
`Unmarshalling the type 'SetSecurityGroupResponse' failed as data isn't a dictionary.`
|
|
1013
|
+
);
|
|
842
1014
|
}
|
|
843
1015
|
return {
|
|
844
|
-
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) :
|
|
1016
|
+
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : void 0
|
|
845
1017
|
};
|
|
846
1018
|
};
|
|
847
|
-
const unmarshalSetSecurityGroupRuleResponse = data => {
|
|
1019
|
+
const unmarshalSetSecurityGroupRuleResponse = (data) => {
|
|
848
1020
|
if (!isJSONObject(data)) {
|
|
849
|
-
throw new TypeError(
|
|
1021
|
+
throw new TypeError(
|
|
1022
|
+
`Unmarshalling the type 'SetSecurityGroupRuleResponse' failed as data isn't a dictionary.`
|
|
1023
|
+
);
|
|
850
1024
|
}
|
|
851
1025
|
return {
|
|
852
|
-
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) :
|
|
1026
|
+
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : void 0
|
|
853
1027
|
};
|
|
854
1028
|
};
|
|
855
|
-
const unmarshalSetSecurityGroupRulesResponse = data => {
|
|
1029
|
+
const unmarshalSetSecurityGroupRulesResponse = (data) => {
|
|
856
1030
|
if (!isJSONObject(data)) {
|
|
857
|
-
throw new TypeError(
|
|
1031
|
+
throw new TypeError(
|
|
1032
|
+
`Unmarshalling the type 'SetSecurityGroupRulesResponse' failed as data isn't a dictionary.`
|
|
1033
|
+
);
|
|
858
1034
|
}
|
|
859
1035
|
return {
|
|
860
1036
|
rules: unmarshalArrayOfObject(data.rules, unmarshalSecurityGroupRule)
|
|
861
1037
|
};
|
|
862
1038
|
};
|
|
863
|
-
const unmarshalSetServerResponse = data => {
|
|
1039
|
+
const unmarshalSetServerResponse = (data) => {
|
|
864
1040
|
if (!isJSONObject(data)) {
|
|
865
|
-
throw new TypeError(
|
|
1041
|
+
throw new TypeError(
|
|
1042
|
+
`Unmarshalling the type 'SetServerResponse' failed as data isn't a dictionary.`
|
|
1043
|
+
);
|
|
866
1044
|
}
|
|
867
1045
|
return {
|
|
868
|
-
server: data.server ? unmarshalServer(data.server) :
|
|
1046
|
+
server: data.server ? unmarshalServer(data.server) : void 0
|
|
869
1047
|
};
|
|
870
1048
|
};
|
|
871
|
-
const unmarshalSetSnapshotResponse = data => {
|
|
1049
|
+
const unmarshalSetSnapshotResponse = (data) => {
|
|
872
1050
|
if (!isJSONObject(data)) {
|
|
873
|
-
throw new TypeError(
|
|
1051
|
+
throw new TypeError(
|
|
1052
|
+
`Unmarshalling the type 'SetSnapshotResponse' failed as data isn't a dictionary.`
|
|
1053
|
+
);
|
|
874
1054
|
}
|
|
875
1055
|
return {
|
|
876
|
-
snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) :
|
|
1056
|
+
snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : void 0
|
|
877
1057
|
};
|
|
878
1058
|
};
|
|
879
|
-
const unmarshalUpdateImageResponse = data => {
|
|
1059
|
+
const unmarshalUpdateImageResponse = (data) => {
|
|
880
1060
|
if (!isJSONObject(data)) {
|
|
881
|
-
throw new TypeError(
|
|
1061
|
+
throw new TypeError(
|
|
1062
|
+
`Unmarshalling the type 'UpdateImageResponse' failed as data isn't a dictionary.`
|
|
1063
|
+
);
|
|
882
1064
|
}
|
|
883
1065
|
return {
|
|
884
|
-
image: data.image ? unmarshalImage(data.image) :
|
|
1066
|
+
image: data.image ? unmarshalImage(data.image) : void 0
|
|
885
1067
|
};
|
|
886
1068
|
};
|
|
887
|
-
const unmarshalUpdateIpResponse = data => {
|
|
1069
|
+
const unmarshalUpdateIpResponse = (data) => {
|
|
888
1070
|
if (!isJSONObject(data)) {
|
|
889
|
-
throw new TypeError(
|
|
1071
|
+
throw new TypeError(
|
|
1072
|
+
`Unmarshalling the type 'UpdateIpResponse' failed as data isn't a dictionary.`
|
|
1073
|
+
);
|
|
890
1074
|
}
|
|
891
1075
|
return {
|
|
892
|
-
ip: data.ip ? unmarshalIp(data.ip) :
|
|
1076
|
+
ip: data.ip ? unmarshalIp(data.ip) : void 0
|
|
893
1077
|
};
|
|
894
1078
|
};
|
|
895
|
-
const unmarshalUpdatePlacementGroupResponse = data => {
|
|
1079
|
+
const unmarshalUpdatePlacementGroupResponse = (data) => {
|
|
896
1080
|
if (!isJSONObject(data)) {
|
|
897
|
-
throw new TypeError(
|
|
1081
|
+
throw new TypeError(
|
|
1082
|
+
`Unmarshalling the type 'UpdatePlacementGroupResponse' failed as data isn't a dictionary.`
|
|
1083
|
+
);
|
|
898
1084
|
}
|
|
899
1085
|
return {
|
|
900
|
-
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) :
|
|
1086
|
+
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0
|
|
901
1087
|
};
|
|
902
1088
|
};
|
|
903
|
-
const unmarshalUpdatePlacementGroupServersResponse = data => {
|
|
1089
|
+
const unmarshalUpdatePlacementGroupServersResponse = (data) => {
|
|
904
1090
|
if (!isJSONObject(data)) {
|
|
905
|
-
throw new TypeError(
|
|
1091
|
+
throw new TypeError(
|
|
1092
|
+
`Unmarshalling the type 'UpdatePlacementGroupServersResponse' failed as data isn't a dictionary.`
|
|
1093
|
+
);
|
|
906
1094
|
}
|
|
907
1095
|
return {
|
|
908
|
-
servers: unmarshalArrayOfObject(
|
|
1096
|
+
servers: unmarshalArrayOfObject(
|
|
1097
|
+
data.servers,
|
|
1098
|
+
unmarshalPlacementGroupServer
|
|
1099
|
+
)
|
|
909
1100
|
};
|
|
910
1101
|
};
|
|
911
|
-
const unmarshalUpdateSecurityGroupResponse = data => {
|
|
1102
|
+
const unmarshalUpdateSecurityGroupResponse = (data) => {
|
|
912
1103
|
if (!isJSONObject(data)) {
|
|
913
|
-
throw new TypeError(
|
|
1104
|
+
throw new TypeError(
|
|
1105
|
+
`Unmarshalling the type 'UpdateSecurityGroupResponse' failed as data isn't a dictionary.`
|
|
1106
|
+
);
|
|
914
1107
|
}
|
|
915
1108
|
return {
|
|
916
|
-
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) :
|
|
1109
|
+
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : void 0
|
|
917
1110
|
};
|
|
918
1111
|
};
|
|
919
|
-
const unmarshalUpdateSecurityGroupRuleResponse = data => {
|
|
1112
|
+
const unmarshalUpdateSecurityGroupRuleResponse = (data) => {
|
|
920
1113
|
if (!isJSONObject(data)) {
|
|
921
|
-
throw new TypeError(
|
|
1114
|
+
throw new TypeError(
|
|
1115
|
+
`Unmarshalling the type 'UpdateSecurityGroupRuleResponse' failed as data isn't a dictionary.`
|
|
1116
|
+
);
|
|
922
1117
|
}
|
|
923
1118
|
return {
|
|
924
|
-
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) :
|
|
1119
|
+
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : void 0
|
|
925
1120
|
};
|
|
926
1121
|
};
|
|
927
|
-
const unmarshalUpdateServerResponse = data => {
|
|
1122
|
+
const unmarshalUpdateServerResponse = (data) => {
|
|
928
1123
|
if (!isJSONObject(data)) {
|
|
929
|
-
throw new TypeError(
|
|
1124
|
+
throw new TypeError(
|
|
1125
|
+
`Unmarshalling the type 'UpdateServerResponse' failed as data isn't a dictionary.`
|
|
1126
|
+
);
|
|
930
1127
|
}
|
|
931
1128
|
return {
|
|
932
|
-
server: data.server ? unmarshalServer(data.server) :
|
|
1129
|
+
server: data.server ? unmarshalServer(data.server) : void 0
|
|
933
1130
|
};
|
|
934
1131
|
};
|
|
935
|
-
const unmarshalUpdateSnapshotResponse = data => {
|
|
1132
|
+
const unmarshalUpdateSnapshotResponse = (data) => {
|
|
936
1133
|
if (!isJSONObject(data)) {
|
|
937
|
-
throw new TypeError(
|
|
1134
|
+
throw new TypeError(
|
|
1135
|
+
`Unmarshalling the type 'UpdateSnapshotResponse' failed as data isn't a dictionary.`
|
|
1136
|
+
);
|
|
938
1137
|
}
|
|
939
1138
|
return {
|
|
940
|
-
snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) :
|
|
1139
|
+
snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : void 0
|
|
941
1140
|
};
|
|
942
1141
|
};
|
|
943
|
-
const unmarshalUpdateVolumeResponse = data => {
|
|
1142
|
+
const unmarshalUpdateVolumeResponse = (data) => {
|
|
944
1143
|
if (!isJSONObject(data)) {
|
|
945
|
-
throw new TypeError(
|
|
1144
|
+
throw new TypeError(
|
|
1145
|
+
`Unmarshalling the type 'UpdateVolumeResponse' failed as data isn't a dictionary.`
|
|
1146
|
+
);
|
|
946
1147
|
}
|
|
947
1148
|
return {
|
|
948
|
-
volume: data.volume ? unmarshalVolume(data.volume) :
|
|
1149
|
+
volume: data.volume ? unmarshalVolume(data.volume) : void 0
|
|
949
1150
|
};
|
|
950
1151
|
};
|
|
951
1152
|
const marshalApplyBlockMigrationRequest = (request, defaults) => ({
|
|
952
1153
|
validation_key: request.validationKey,
|
|
953
|
-
...resolveOneOf([
|
|
954
|
-
param:
|
|
955
|
-
value: request.
|
|
956
|
-
|
|
957
|
-
param: 'snapshot_id',
|
|
958
|
-
value: request.snapshotId
|
|
959
|
-
}])
|
|
1154
|
+
...resolveOneOf([
|
|
1155
|
+
{ param: "volume_id", value: request.volumeId },
|
|
1156
|
+
{ param: "snapshot_id", value: request.snapshotId }
|
|
1157
|
+
])
|
|
960
1158
|
});
|
|
961
1159
|
const marshalAttachServerVolumeRequest = (request, defaults) => ({
|
|
962
1160
|
boot: request.boot,
|
|
@@ -968,63 +1166,72 @@ const marshalVolumeTemplate = (request, defaults) => ({
|
|
|
968
1166
|
name: request.name,
|
|
969
1167
|
size: request.size,
|
|
970
1168
|
volume_type: request.volumeType,
|
|
971
|
-
...resolveOneOf([
|
|
972
|
-
param:
|
|
973
|
-
value: request.
|
|
974
|
-
|
|
975
|
-
param: 'organization',
|
|
976
|
-
value: request.organization
|
|
977
|
-
}])
|
|
1169
|
+
...resolveOneOf([
|
|
1170
|
+
{ param: "project", value: request.project },
|
|
1171
|
+
{ param: "organization", value: request.organization }
|
|
1172
|
+
])
|
|
978
1173
|
});
|
|
979
1174
|
const marshalCreateImageRequest = (request, defaults) => ({
|
|
980
1175
|
arch: request.arch,
|
|
981
1176
|
default_bootscript: request.defaultBootscript,
|
|
982
|
-
extra_volumes: request.extraVolumes !==
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1177
|
+
extra_volumes: request.extraVolumes !== void 0 ? Object.entries(request.extraVolumes).reduce(
|
|
1178
|
+
(acc, [key, value]) => ({
|
|
1179
|
+
...acc,
|
|
1180
|
+
[key]: marshalVolumeTemplate(value)
|
|
1181
|
+
}),
|
|
1182
|
+
{}
|
|
1183
|
+
) : void 0,
|
|
1184
|
+
name: request.name || randomName("img"),
|
|
987
1185
|
public: request.public,
|
|
988
1186
|
root_volume: request.rootVolume,
|
|
989
1187
|
tags: request.tags,
|
|
990
|
-
...resolveOneOf([
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1188
|
+
...resolveOneOf([
|
|
1189
|
+
{
|
|
1190
|
+
default: defaults.defaultProjectId,
|
|
1191
|
+
param: "project",
|
|
1192
|
+
value: request.project
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
default: defaults.defaultOrganizationId,
|
|
1196
|
+
param: "organization",
|
|
1197
|
+
value: request.organization
|
|
1198
|
+
}
|
|
1199
|
+
])
|
|
999
1200
|
});
|
|
1000
1201
|
const marshalCreateIpRequest = (request, defaults) => ({
|
|
1001
1202
|
server: request.server,
|
|
1002
1203
|
tags: request.tags,
|
|
1003
1204
|
type: request.type,
|
|
1004
|
-
...resolveOneOf([
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1205
|
+
...resolveOneOf([
|
|
1206
|
+
{
|
|
1207
|
+
default: defaults.defaultProjectId,
|
|
1208
|
+
param: "project",
|
|
1209
|
+
value: request.project
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
default: defaults.defaultOrganizationId,
|
|
1213
|
+
param: "organization",
|
|
1214
|
+
value: request.organization
|
|
1215
|
+
}
|
|
1216
|
+
])
|
|
1013
1217
|
});
|
|
1014
1218
|
const marshalCreatePlacementGroupRequest = (request, defaults) => ({
|
|
1015
|
-
name: request.name || randomName(
|
|
1219
|
+
name: request.name || randomName("pg"),
|
|
1016
1220
|
policy_mode: request.policyMode,
|
|
1017
1221
|
policy_type: request.policyType,
|
|
1018
1222
|
tags: request.tags,
|
|
1019
|
-
...resolveOneOf([
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1223
|
+
...resolveOneOf([
|
|
1224
|
+
{
|
|
1225
|
+
default: defaults.defaultProjectId,
|
|
1226
|
+
param: "project",
|
|
1227
|
+
value: request.project
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
default: defaults.defaultOrganizationId,
|
|
1231
|
+
param: "organization",
|
|
1232
|
+
value: request.organization
|
|
1233
|
+
}
|
|
1234
|
+
])
|
|
1028
1235
|
});
|
|
1029
1236
|
const marshalCreatePrivateNICRequest = (request, defaults) => ({
|
|
1030
1237
|
ip_ids: request.ipIds,
|
|
@@ -1035,26 +1242,26 @@ const marshalCreateSecurityGroupRequest = (request, defaults) => ({
|
|
|
1035
1242
|
description: request.description,
|
|
1036
1243
|
enable_default_security: request.enableDefaultSecurity,
|
|
1037
1244
|
inbound_default_policy: request.inboundDefaultPolicy,
|
|
1038
|
-
name: request.name || randomName(
|
|
1245
|
+
name: request.name || randomName("sg"),
|
|
1039
1246
|
outbound_default_policy: request.outboundDefaultPolicy,
|
|
1040
1247
|
stateful: request.stateful,
|
|
1041
1248
|
tags: request.tags,
|
|
1042
|
-
...resolveOneOf([
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
param:
|
|
1056
|
-
value: request.projectDefault
|
|
1057
|
-
|
|
1249
|
+
...resolveOneOf([
|
|
1250
|
+
{
|
|
1251
|
+
default: defaults.defaultProjectId,
|
|
1252
|
+
param: "project",
|
|
1253
|
+
value: request.project
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
default: defaults.defaultOrganizationId,
|
|
1257
|
+
param: "organization",
|
|
1258
|
+
value: request.organization
|
|
1259
|
+
}
|
|
1260
|
+
]),
|
|
1261
|
+
...resolveOneOf([
|
|
1262
|
+
{ param: "organization_default", value: request.organizationDefault },
|
|
1263
|
+
{ param: "project_default", value: request.projectDefault }
|
|
1264
|
+
])
|
|
1058
1265
|
});
|
|
1059
1266
|
const marshalCreateSecurityGroupRuleRequest = (request, defaults) => ({
|
|
1060
1267
|
action: request.action,
|
|
@@ -1083,65 +1290,74 @@ const marshalCreateServerRequest = (request, defaults) => ({
|
|
|
1083
1290
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
1084
1291
|
enable_ipv6: request.enableIpv6,
|
|
1085
1292
|
image: request.image,
|
|
1086
|
-
name: request.name || randomName(
|
|
1293
|
+
name: request.name || randomName("srv"),
|
|
1087
1294
|
placement_group: request.placementGroup,
|
|
1088
1295
|
public_ip: request.publicIp,
|
|
1089
1296
|
public_ips: request.publicIps,
|
|
1090
1297
|
routed_ip_enabled: request.routedIpEnabled,
|
|
1091
1298
|
security_group: request.securityGroup,
|
|
1092
1299
|
tags: request.tags,
|
|
1093
|
-
volumes: request.volumes !==
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1300
|
+
volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
|
|
1301
|
+
(acc, [key, value]) => ({
|
|
1302
|
+
...acc,
|
|
1303
|
+
[key]: marshalVolumeServerTemplate(value)
|
|
1304
|
+
}),
|
|
1305
|
+
{}
|
|
1306
|
+
) : void 0,
|
|
1307
|
+
...resolveOneOf([
|
|
1308
|
+
{
|
|
1309
|
+
default: defaults.defaultProjectId,
|
|
1310
|
+
param: "project",
|
|
1311
|
+
value: request.project
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
default: defaults.defaultOrganizationId,
|
|
1315
|
+
param: "organization",
|
|
1316
|
+
value: request.organization
|
|
1317
|
+
}
|
|
1318
|
+
])
|
|
1106
1319
|
});
|
|
1107
1320
|
const marshalCreateSnapshotRequest = (request, defaults) => ({
|
|
1108
1321
|
bucket: request.bucket,
|
|
1109
1322
|
key: request.key,
|
|
1110
|
-
name: request.name || randomName(
|
|
1323
|
+
name: request.name || randomName("snp"),
|
|
1111
1324
|
size: request.size,
|
|
1112
1325
|
tags: request.tags,
|
|
1113
1326
|
volume_id: request.volumeId,
|
|
1114
1327
|
volume_type: request.volumeType,
|
|
1115
|
-
...resolveOneOf([
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1328
|
+
...resolveOneOf([
|
|
1329
|
+
{
|
|
1330
|
+
default: defaults.defaultProjectId,
|
|
1331
|
+
param: "project",
|
|
1332
|
+
value: request.project
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
default: defaults.defaultOrganizationId,
|
|
1336
|
+
param: "organization",
|
|
1337
|
+
value: request.organization
|
|
1338
|
+
}
|
|
1339
|
+
])
|
|
1124
1340
|
});
|
|
1125
1341
|
const marshalCreateVolumeRequest = (request, defaults) => ({
|
|
1126
|
-
name: request.name || randomName(
|
|
1342
|
+
name: request.name || randomName("vol"),
|
|
1127
1343
|
tags: request.tags,
|
|
1128
1344
|
volume_type: request.volumeType,
|
|
1129
|
-
...resolveOneOf([
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
param:
|
|
1143
|
-
value: request.baseSnapshot
|
|
1144
|
-
|
|
1345
|
+
...resolveOneOf([
|
|
1346
|
+
{
|
|
1347
|
+
default: defaults.defaultProjectId,
|
|
1348
|
+
param: "project",
|
|
1349
|
+
value: request.project
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
default: defaults.defaultOrganizationId,
|
|
1353
|
+
param: "organization",
|
|
1354
|
+
value: request.organization
|
|
1355
|
+
}
|
|
1356
|
+
]),
|
|
1357
|
+
...resolveOneOf([
|
|
1358
|
+
{ param: "size", value: request.size },
|
|
1359
|
+
{ param: "base_snapshot", value: request.baseSnapshot }
|
|
1360
|
+
])
|
|
1145
1361
|
});
|
|
1146
1362
|
const marshalDetachServerVolumeRequest = (request, defaults) => ({
|
|
1147
1363
|
volume_id: request.volumeId
|
|
@@ -1151,13 +1367,10 @@ const marshalExportSnapshotRequest = (request, defaults) => ({
|
|
|
1151
1367
|
key: request.key
|
|
1152
1368
|
});
|
|
1153
1369
|
const marshalPlanBlockMigrationRequest = (request, defaults) => ({
|
|
1154
|
-
...resolveOneOf([
|
|
1155
|
-
param:
|
|
1156
|
-
value: request.
|
|
1157
|
-
|
|
1158
|
-
param: 'snapshot_id',
|
|
1159
|
-
value: request.snapshotId
|
|
1160
|
-
}])
|
|
1370
|
+
...resolveOneOf([
|
|
1371
|
+
{ param: "volume_id", value: request.volumeId },
|
|
1372
|
+
{ param: "snapshot_id", value: request.snapshotId }
|
|
1373
|
+
])
|
|
1161
1374
|
});
|
|
1162
1375
|
const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
|
|
1163
1376
|
volume_type: request.volumeType
|
|
@@ -1165,10 +1378,15 @@ const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
|
|
|
1165
1378
|
const marshalServerActionRequest = (request, defaults) => ({
|
|
1166
1379
|
action: request.action,
|
|
1167
1380
|
name: request.name,
|
|
1168
|
-
volumes: request.volumes !==
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1381
|
+
volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
|
|
1382
|
+
(acc, [key, value]) => ({
|
|
1383
|
+
...acc,
|
|
1384
|
+
[key]: marshalServerActionRequestVolumeBackupTemplate(
|
|
1385
|
+
value
|
|
1386
|
+
)
|
|
1387
|
+
}),
|
|
1388
|
+
{}
|
|
1389
|
+
) : void 0
|
|
1172
1390
|
});
|
|
1173
1391
|
const marshalServerSummary = (request, defaults) => ({
|
|
1174
1392
|
id: request.id,
|
|
@@ -1196,7 +1414,7 @@ const marshalVolume = (request, defaults) => ({
|
|
|
1196
1414
|
name: request.name,
|
|
1197
1415
|
organization: request.organization,
|
|
1198
1416
|
project: request.project,
|
|
1199
|
-
server: request.server !==
|
|
1417
|
+
server: request.server !== void 0 ? marshalServerSummary(request.server) : void 0,
|
|
1200
1418
|
size: request.size,
|
|
1201
1419
|
state: request.state,
|
|
1202
1420
|
tags: request.tags,
|
|
@@ -1212,18 +1430,21 @@ const marshalVolumeSummary = (request, defaults) => ({
|
|
|
1212
1430
|
const marshalSetImageRequest = (request, defaults) => ({
|
|
1213
1431
|
arch: request.arch,
|
|
1214
1432
|
creation_date: request.creationDate,
|
|
1215
|
-
default_bootscript: request.defaultBootscript !==
|
|
1216
|
-
extra_volumes: request.extraVolumes !==
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1433
|
+
default_bootscript: request.defaultBootscript !== void 0 ? marshalBootscript(request.defaultBootscript) : void 0,
|
|
1434
|
+
extra_volumes: request.extraVolumes !== void 0 ? Object.entries(request.extraVolumes).reduce(
|
|
1435
|
+
(acc, [key, value]) => ({
|
|
1436
|
+
...acc,
|
|
1437
|
+
[key]: marshalVolume(value)
|
|
1438
|
+
}),
|
|
1439
|
+
{}
|
|
1440
|
+
) : void 0,
|
|
1220
1441
|
from_server: request.fromServer,
|
|
1221
1442
|
modification_date: request.modificationDate,
|
|
1222
1443
|
name: request.name,
|
|
1223
1444
|
organization: request.organization ?? defaults.defaultOrganizationId,
|
|
1224
1445
|
project: request.project ?? defaults.defaultProjectId,
|
|
1225
1446
|
public: request.public,
|
|
1226
|
-
root_volume: request.rootVolume !==
|
|
1447
|
+
root_volume: request.rootVolume !== void 0 ? marshalVolumeSummary(request.rootVolume) : void 0,
|
|
1227
1448
|
state: request.state,
|
|
1228
1449
|
tags: request.tags
|
|
1229
1450
|
});
|
|
@@ -1250,7 +1471,7 @@ const marshalSetSecurityGroupRequest = (request, defaults) => ({
|
|
|
1250
1471
|
outbound_default_policy: request.outboundDefaultPolicy,
|
|
1251
1472
|
project: request.project ?? defaults.defaultProjectId,
|
|
1252
1473
|
project_default: request.projectDefault,
|
|
1253
|
-
servers: request.servers !==
|
|
1474
|
+
servers: request.servers !== void 0 ? request.servers.map((elt) => marshalServerSummary(elt)) : void 0,
|
|
1254
1475
|
stateful: request.stateful,
|
|
1255
1476
|
tags: request.tags
|
|
1256
1477
|
});
|
|
@@ -1278,16 +1499,18 @@ const marshalSetSecurityGroupRulesRequestRule = (request, defaults) => ({
|
|
|
1278
1499
|
zone: request.zone
|
|
1279
1500
|
});
|
|
1280
1501
|
const marshalSetSecurityGroupRulesRequest = (request, defaults) => ({
|
|
1281
|
-
rules: request.rules !==
|
|
1502
|
+
rules: request.rules !== void 0 ? request.rules.map(
|
|
1503
|
+
(elt) => marshalSetSecurityGroupRulesRequestRule(elt)
|
|
1504
|
+
) : void 0
|
|
1282
1505
|
});
|
|
1283
1506
|
const marshalImage = (request, defaults) => ({
|
|
1284
1507
|
arch: request.arch,
|
|
1285
1508
|
creation_date: request.creationDate,
|
|
1286
|
-
default_bootscript: request.defaultBootscript !==
|
|
1287
|
-
extra_volumes: Object.entries(request.extraVolumes).reduce(
|
|
1288
|
-
...acc,
|
|
1289
|
-
|
|
1290
|
-
|
|
1509
|
+
default_bootscript: request.defaultBootscript !== void 0 ? marshalBootscript(request.defaultBootscript) : void 0,
|
|
1510
|
+
extra_volumes: Object.entries(request.extraVolumes).reduce(
|
|
1511
|
+
(acc, [key, value]) => ({ ...acc, [key]: marshalVolume(value) }),
|
|
1512
|
+
{}
|
|
1513
|
+
),
|
|
1291
1514
|
from_server: request.fromServer,
|
|
1292
1515
|
id: request.id,
|
|
1293
1516
|
modification_date: request.modificationDate,
|
|
@@ -1295,7 +1518,7 @@ const marshalImage = (request, defaults) => ({
|
|
|
1295
1518
|
organization: request.organization,
|
|
1296
1519
|
project: request.project,
|
|
1297
1520
|
public: request.public,
|
|
1298
|
-
root_volume: request.rootVolume !==
|
|
1521
|
+
root_volume: request.rootVolume !== void 0 ? marshalVolumeSummary(request.rootVolume) : void 0,
|
|
1299
1522
|
state: request.state,
|
|
1300
1523
|
tags: request.tags,
|
|
1301
1524
|
zone: request.zone
|
|
@@ -1352,45 +1575,48 @@ const marshalServerMaintenance = (request, defaults) => ({
|
|
|
1352
1575
|
start_date: request.startDate
|
|
1353
1576
|
});
|
|
1354
1577
|
const marshalSetServerRequest = (request, defaults) => ({
|
|
1355
|
-
allowed_actions: request.allowedActions !==
|
|
1578
|
+
allowed_actions: request.allowedActions !== void 0 ? request.allowedActions : void 0,
|
|
1356
1579
|
arch: request.arch,
|
|
1357
1580
|
boot_type: request.bootType,
|
|
1358
|
-
bootscript: request.bootscript !==
|
|
1581
|
+
bootscript: request.bootscript !== void 0 ? marshalBootscript(request.bootscript) : void 0,
|
|
1359
1582
|
commercial_type: request.commercialType,
|
|
1360
1583
|
creation_date: request.creationDate,
|
|
1361
1584
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
1362
1585
|
enable_ipv6: request.enableIpv6,
|
|
1363
1586
|
hostname: request.hostname,
|
|
1364
|
-
image: request.image !==
|
|
1365
|
-
ipv6: request.ipv6 !==
|
|
1366
|
-
location: request.location !==
|
|
1367
|
-
maintenances: request.maintenances !==
|
|
1587
|
+
image: request.image !== void 0 ? marshalImage(request.image) : void 0,
|
|
1588
|
+
ipv6: request.ipv6 !== void 0 ? marshalServerIpv6(request.ipv6) : void 0,
|
|
1589
|
+
location: request.location !== void 0 ? marshalServerLocation(request.location) : void 0,
|
|
1590
|
+
maintenances: request.maintenances !== void 0 ? request.maintenances.map((elt) => marshalServerMaintenance(elt)) : void 0,
|
|
1368
1591
|
modification_date: request.modificationDate,
|
|
1369
1592
|
name: request.name,
|
|
1370
1593
|
organization: request.organization ?? defaults.defaultOrganizationId,
|
|
1371
|
-
placement_group: request.placementGroup !==
|
|
1594
|
+
placement_group: request.placementGroup !== void 0 ? marshalPlacementGroup(request.placementGroup) : void 0,
|
|
1372
1595
|
private_ip: request.privateIp,
|
|
1373
|
-
private_nics: request.privateNics !==
|
|
1596
|
+
private_nics: request.privateNics !== void 0 ? request.privateNics.map((elt) => marshalPrivateNIC(elt)) : void 0,
|
|
1374
1597
|
project: request.project ?? defaults.defaultProjectId,
|
|
1375
1598
|
protected: request.protected,
|
|
1376
|
-
public_ip: request.publicIp !==
|
|
1377
|
-
public_ips: request.publicIps !==
|
|
1599
|
+
public_ip: request.publicIp !== void 0 ? marshalServerIp(request.publicIp) : void 0,
|
|
1600
|
+
public_ips: request.publicIps !== void 0 ? request.publicIps.map((elt) => marshalServerIp(elt)) : void 0,
|
|
1378
1601
|
routed_ip_enabled: request.routedIpEnabled,
|
|
1379
|
-
security_group: request.securityGroup !==
|
|
1602
|
+
security_group: request.securityGroup !== void 0 ? marshalSecurityGroupSummary(request.securityGroup) : void 0,
|
|
1380
1603
|
state: request.state,
|
|
1381
1604
|
state_detail: request.stateDetail,
|
|
1382
1605
|
tags: request.tags,
|
|
1383
|
-
volumes: request.volumes !==
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1606
|
+
volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
|
|
1607
|
+
(acc, [key, value]) => ({
|
|
1608
|
+
...acc,
|
|
1609
|
+
[key]: marshalVolume(value)
|
|
1610
|
+
}),
|
|
1611
|
+
{}
|
|
1612
|
+
) : void 0
|
|
1387
1613
|
});
|
|
1388
1614
|
const marshalSnapshotBaseVolume = (request, defaults) => ({
|
|
1389
1615
|
id: request.id,
|
|
1390
1616
|
name: request.name
|
|
1391
1617
|
});
|
|
1392
1618
|
const marshalSetSnapshotRequest = (request, defaults) => ({
|
|
1393
|
-
base_volume: request.baseVolume !==
|
|
1619
|
+
base_volume: request.baseVolume !== void 0 ? marshalSnapshotBaseVolume(request.baseVolume) : void 0,
|
|
1394
1620
|
creation_date: request.creationDate,
|
|
1395
1621
|
id: request.id,
|
|
1396
1622
|
modification_date: request.modificationDate,
|
|
@@ -1407,10 +1633,13 @@ const marshalVolumeImageUpdateTemplate = (request, defaults) => ({
|
|
|
1407
1633
|
});
|
|
1408
1634
|
const marshalUpdateImageRequest = (request, defaults) => ({
|
|
1409
1635
|
arch: request.arch,
|
|
1410
|
-
extra_volumes: request.extraVolumes !==
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1636
|
+
extra_volumes: request.extraVolumes !== void 0 ? Object.entries(request.extraVolumes).reduce(
|
|
1637
|
+
(acc, [key, value]) => ({
|
|
1638
|
+
...acc,
|
|
1639
|
+
[key]: marshalVolumeImageUpdateTemplate(value)
|
|
1640
|
+
}),
|
|
1641
|
+
{}
|
|
1642
|
+
) : void 0,
|
|
1414
1643
|
name: request.name,
|
|
1415
1644
|
public: request.public,
|
|
1416
1645
|
tags: request.tags
|
|
@@ -1469,12 +1698,15 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
1469
1698
|
protected: request.protected,
|
|
1470
1699
|
public_ips: request.publicIps,
|
|
1471
1700
|
routed_ip_enabled: request.routedIpEnabled,
|
|
1472
|
-
security_group: request.securityGroup !==
|
|
1701
|
+
security_group: request.securityGroup !== void 0 ? marshalSecurityGroupTemplate(request.securityGroup) : void 0,
|
|
1473
1702
|
tags: request.tags,
|
|
1474
|
-
volumes: request.volumes !==
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1703
|
+
volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
|
|
1704
|
+
(acc, [key, value]) => ({
|
|
1705
|
+
...acc,
|
|
1706
|
+
[key]: marshalVolumeServerTemplate(value)
|
|
1707
|
+
}),
|
|
1708
|
+
{}
|
|
1709
|
+
) : void 0
|
|
1478
1710
|
});
|
|
1479
1711
|
const marshalUpdateSnapshotRequest = (request, defaults) => ({
|
|
1480
1712
|
name: request.name,
|
|
@@ -1485,5 +1717,97 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
|
1485
1717
|
size: request.size,
|
|
1486
1718
|
tags: request.tags
|
|
1487
1719
|
});
|
|
1488
|
-
|
|
1489
|
-
|
|
1720
|
+
export {
|
|
1721
|
+
marshalApplyBlockMigrationRequest,
|
|
1722
|
+
marshalAttachServerVolumeRequest,
|
|
1723
|
+
marshalCreateImageRequest,
|
|
1724
|
+
marshalCreateIpRequest,
|
|
1725
|
+
marshalCreatePlacementGroupRequest,
|
|
1726
|
+
marshalCreatePrivateNICRequest,
|
|
1727
|
+
marshalCreateSecurityGroupRequest,
|
|
1728
|
+
marshalCreateSecurityGroupRuleRequest,
|
|
1729
|
+
marshalCreateServerRequest,
|
|
1730
|
+
marshalCreateSnapshotRequest,
|
|
1731
|
+
marshalCreateVolumeRequest,
|
|
1732
|
+
marshalDetachServerVolumeRequest,
|
|
1733
|
+
marshalExportSnapshotRequest,
|
|
1734
|
+
marshalPlanBlockMigrationRequest,
|
|
1735
|
+
marshalServerActionRequest,
|
|
1736
|
+
marshalSetImageRequest,
|
|
1737
|
+
marshalSetPlacementGroupRequest,
|
|
1738
|
+
marshalSetPlacementGroupServersRequest,
|
|
1739
|
+
marshalSetSecurityGroupRequest,
|
|
1740
|
+
marshalSetSecurityGroupRuleRequest,
|
|
1741
|
+
marshalSetSecurityGroupRulesRequest,
|
|
1742
|
+
marshalSetServerRequest,
|
|
1743
|
+
marshalSetSnapshotRequest,
|
|
1744
|
+
marshalUpdateImageRequest,
|
|
1745
|
+
marshalUpdateIpRequest,
|
|
1746
|
+
marshalUpdatePlacementGroupRequest,
|
|
1747
|
+
marshalUpdatePlacementGroupServersRequest,
|
|
1748
|
+
marshalUpdatePrivateNICRequest,
|
|
1749
|
+
marshalUpdateSecurityGroupRequest,
|
|
1750
|
+
marshalUpdateSecurityGroupRuleRequest,
|
|
1751
|
+
marshalUpdateServerRequest,
|
|
1752
|
+
marshalUpdateSnapshotRequest,
|
|
1753
|
+
marshalUpdateVolumeRequest,
|
|
1754
|
+
unmarshalAttachServerVolumeResponse,
|
|
1755
|
+
unmarshalCreateImageResponse,
|
|
1756
|
+
unmarshalCreateIpResponse,
|
|
1757
|
+
unmarshalCreatePlacementGroupResponse,
|
|
1758
|
+
unmarshalCreatePrivateNICResponse,
|
|
1759
|
+
unmarshalCreateSecurityGroupResponse,
|
|
1760
|
+
unmarshalCreateSecurityGroupRuleResponse,
|
|
1761
|
+
unmarshalCreateServerResponse,
|
|
1762
|
+
unmarshalCreateSnapshotResponse,
|
|
1763
|
+
unmarshalCreateVolumeResponse,
|
|
1764
|
+
unmarshalDetachServerVolumeResponse,
|
|
1765
|
+
unmarshalExportSnapshotResponse,
|
|
1766
|
+
unmarshalGetBootscriptResponse,
|
|
1767
|
+
unmarshalGetDashboardResponse,
|
|
1768
|
+
unmarshalGetImageResponse,
|
|
1769
|
+
unmarshalGetIpResponse,
|
|
1770
|
+
unmarshalGetPlacementGroupResponse,
|
|
1771
|
+
unmarshalGetPlacementGroupServersResponse,
|
|
1772
|
+
unmarshalGetPrivateNICResponse,
|
|
1773
|
+
unmarshalGetSecurityGroupResponse,
|
|
1774
|
+
unmarshalGetSecurityGroupRuleResponse,
|
|
1775
|
+
unmarshalGetServerResponse,
|
|
1776
|
+
unmarshalGetServerTypesAvailabilityResponse,
|
|
1777
|
+
unmarshalGetSnapshotResponse,
|
|
1778
|
+
unmarshalGetVolumeResponse,
|
|
1779
|
+
unmarshalListBootscriptsResponse,
|
|
1780
|
+
unmarshalListImagesResponse,
|
|
1781
|
+
unmarshalListIpsResponse,
|
|
1782
|
+
unmarshalListPlacementGroupsResponse,
|
|
1783
|
+
unmarshalListPrivateNICsResponse,
|
|
1784
|
+
unmarshalListSecurityGroupRulesResponse,
|
|
1785
|
+
unmarshalListSecurityGroupsResponse,
|
|
1786
|
+
unmarshalListServerActionsResponse,
|
|
1787
|
+
unmarshalListServerUserDataResponse,
|
|
1788
|
+
unmarshalListServersResponse,
|
|
1789
|
+
unmarshalListServersTypesResponse,
|
|
1790
|
+
unmarshalListSnapshotsResponse,
|
|
1791
|
+
unmarshalListVolumesResponse,
|
|
1792
|
+
unmarshalListVolumesTypesResponse,
|
|
1793
|
+
unmarshalMigrationPlan,
|
|
1794
|
+
unmarshalPrivateNIC,
|
|
1795
|
+
unmarshalServerActionResponse,
|
|
1796
|
+
unmarshalSetImageResponse,
|
|
1797
|
+
unmarshalSetPlacementGroupResponse,
|
|
1798
|
+
unmarshalSetPlacementGroupServersResponse,
|
|
1799
|
+
unmarshalSetSecurityGroupResponse,
|
|
1800
|
+
unmarshalSetSecurityGroupRuleResponse,
|
|
1801
|
+
unmarshalSetSecurityGroupRulesResponse,
|
|
1802
|
+
unmarshalSetServerResponse,
|
|
1803
|
+
unmarshalSetSnapshotResponse,
|
|
1804
|
+
unmarshalUpdateImageResponse,
|
|
1805
|
+
unmarshalUpdateIpResponse,
|
|
1806
|
+
unmarshalUpdatePlacementGroupResponse,
|
|
1807
|
+
unmarshalUpdatePlacementGroupServersResponse,
|
|
1808
|
+
unmarshalUpdateSecurityGroupResponse,
|
|
1809
|
+
unmarshalUpdateSecurityGroupRuleResponse,
|
|
1810
|
+
unmarshalUpdateServerResponse,
|
|
1811
|
+
unmarshalUpdateSnapshotResponse,
|
|
1812
|
+
unmarshalUpdateVolumeResponse
|
|
1813
|
+
};
|