@scaleway/sdk 2.26.0 → 2.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/account/index.cjs +6 -0
- package/dist/api/account/index.d.ts +2 -0
- package/dist/api/account/index.js +6 -4
- package/dist/api/account/v2/api.gen.cjs +116 -0
- package/dist/api/account/v2/api.gen.d.ts +67 -0
- package/dist/api/account/v2/api.gen.js +61 -44
- package/dist/api/account/v2/index.gen.cjs +4 -0
- package/dist/api/account/v2/index.gen.d.ts +2 -0
- package/dist/api/account/v2/index.gen.js +4 -4
- package/dist/api/account/v2/marshalling.gen.cjs +44 -0
- package/dist/api/account/v2/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v2/marshalling.gen.js +18 -13
- package/dist/api/account/v2/types.gen.d.ts +62 -0
- package/dist/api/account/v3/api.gen.cjs +106 -0
- package/dist/api/account/v3/api.gen.d.ts +57 -0
- package/dist/api/account/v3/api.gen.js +61 -44
- package/dist/api/account/v3/index.gen.cjs +6 -0
- package/dist/api/account/v3/index.gen.d.ts +3 -0
- package/dist/api/account/v3/index.gen.js +6 -6
- package/dist/api/account/v3/marshalling.gen.cjs +44 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +6 -0
- package/dist/api/account/v3/marshalling.gen.js +18 -13
- package/dist/api/account/v3/types.gen.d.ts +62 -0
- package/dist/api/account/v3/validation-rules.gen.cjs +39 -0
- package/dist/api/account/v3/validation-rules.gen.d.ts +34 -0
- package/dist/api/account/v3/validation-rules.gen.js +5 -5
- package/dist/api/applesilicon/index.cjs +4 -0
- package/dist/api/applesilicon/index.d.ts +1 -0
- package/dist/api/applesilicon/index.js +4 -2
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +222 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +123 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.js +125 -83
- package/dist/api/applesilicon/v1alpha1/content.gen.cjs +11 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/content.gen.js +11 -7
- package/dist/api/applesilicon/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.js +6 -5
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +147 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +56 -32
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +203 -0
- package/dist/api/baremetal/index.cjs +4 -0
- package/dist/api/baremetal/index.d.ts +1 -0
- package/dist/api/baremetal/index.js +4 -2
- package/dist/api/baremetal/v1/api.gen.cjs +575 -0
- package/dist/api/baremetal/v1/api.gen.d.ts +287 -0
- package/dist/api/baremetal/v1/api.gen.js +353 -205
- package/dist/api/baremetal/v1/api.utils.cjs +36 -0
- package/dist/api/baremetal/v1/api.utils.d.ts +13 -0
- package/dist/api/baremetal/v1/api.utils.js +27 -18
- package/dist/api/baremetal/v1/content.gen.cjs +18 -0
- package/dist/api/baremetal/v1/content.gen.d.ts +7 -0
- package/dist/api/baremetal/v1/content.gen.js +18 -13
- package/dist/api/baremetal/v1/index.cjs +12 -0
- package/dist/api/baremetal/v1/index.d.ts +5 -0
- package/dist/api/baremetal/v1/index.gen.d.ts +4 -0
- package/dist/api/baremetal/v1/index.js +12 -5
- package/dist/api/baremetal/v1/marshalling.gen.cjs +502 -0
- package/dist/api/baremetal/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/baremetal/v1/marshalling.gen.js +186 -90
- package/dist/api/baremetal/v1/types.gen.d.ts +682 -0
- package/dist/api/baremetal/v1/validation-rules.gen.cjs +116 -0
- package/dist/api/baremetal/v1/validation-rules.gen.d.ts +104 -0
- package/dist/api/baremetal/v1/validation-rules.gen.js +12 -5
- package/dist/api/billing/index.cjs +6 -0
- package/dist/api/billing/index.d.ts +2 -0
- package/dist/api/billing/index.js +6 -4
- package/dist/api/billing/v2alpha1/api.gen.cjs +92 -0
- package/dist/api/billing/v2alpha1/api.gen.d.ts +51 -0
- package/dist/api/billing/v2alpha1/api.gen.js +60 -39
- package/dist/api/billing/v2alpha1/index.gen.cjs +4 -0
- package/dist/api/billing/v2alpha1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2alpha1/index.gen.js +4 -4
- package/dist/api/billing/v2alpha1/marshalling.gen.cjs +117 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.d.ts +4 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.js +48 -29
- package/dist/api/billing/v2alpha1/types.gen.d.ts +136 -0
- package/dist/api/billing/v2beta1/api.gen.cjs +175 -0
- package/dist/api/billing/v2beta1/api.gen.d.ts +104 -0
- package/dist/api/billing/v2beta1/api.gen.js +122 -65
- package/dist/api/billing/v2beta1/index.gen.cjs +4 -0
- package/dist/api/billing/v2beta1/index.gen.d.ts +2 -0
- package/dist/api/billing/v2beta1/index.gen.js +4 -4
- package/dist/api/billing/v2beta1/marshalling.gen.cjs +158 -0
- package/dist/api/billing/v2beta1/marshalling.gen.d.ts +6 -0
- package/dist/api/billing/v2beta1/marshalling.gen.js +61 -36
- package/dist/api/billing/v2beta1/types.gen.d.ts +269 -0
- package/dist/api/block/index.cjs +4 -0
- package/dist/api/block/index.d.ts +1 -0
- package/dist/api/block/index.js +4 -2
- package/dist/api/block/v1alpha1/api.gen.cjs +272 -0
- package/dist/api/block/v1alpha1/api.gen.d.ts +144 -0
- package/dist/api/block/v1alpha1/api.gen.js +167 -90
- package/dist/api/block/v1alpha1/content.gen.cjs +20 -0
- package/dist/api/block/v1alpha1/content.gen.d.ts +7 -0
- package/dist/api/block/v1alpha1/content.gen.js +20 -13
- package/dist/api/block/v1alpha1/index.gen.cjs +10 -0
- package/dist/api/block/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/block/v1alpha1/index.gen.js +10 -7
- package/dist/api/block/v1alpha1/marshalling.gen.cjs +194 -0
- package/dist/api/block/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/block/v1alpha1/marshalling.gen.js +78 -42
- package/dist/api/block/v1alpha1/types.gen.d.ts +315 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.cjs +56 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.d.ts +47 -0
- package/dist/api/block/v1alpha1/validation-rules.gen.js +14 -5
- package/dist/api/cockpit/index.cjs +6 -0
- package/dist/api/cockpit/index.d.ts +2 -0
- package/dist/api/cockpit/index.js +6 -4
- package/dist/api/cockpit/v1/api.gen.cjs +629 -0
- package/dist/api/cockpit/v1/api.gen.d.ts +310 -0
- package/dist/api/cockpit/v1/api.gen.js +374 -201
- package/dist/api/cockpit/v1/index.gen.cjs +7 -0
- package/dist/api/cockpit/v1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1/index.gen.js +7 -6
- package/dist/api/cockpit/v1/marshalling.gen.cjs +325 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +30 -0
- package/dist/api/cockpit/v1/marshalling.gen.js +131 -59
- package/dist/api/cockpit/v1/types.gen.d.ts +525 -0
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +48 -0
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +41 -0
- package/dist/api/cockpit/v1/validation-rules.gen.js +10 -8
- package/dist/api/cockpit/v1beta1/api.gen.cjs +484 -0
- package/dist/api/cockpit/v1beta1/api.gen.d.ts +223 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +298 -167
- package/dist/api/cockpit/v1beta1/content.gen.cjs +8 -0
- package/dist/api/cockpit/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/content.gen.js +8 -7
- package/dist/api/cockpit/v1beta1/index.gen.cjs +6 -0
- package/dist/api/cockpit/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/cockpit/v1beta1/index.gen.js +6 -5
- package/dist/api/cockpit/v1beta1/marshalling.gen.cjs +343 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.d.ts +29 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +131 -60
- package/dist/api/cockpit/v1beta1/types.gen.d.ts +385 -0
- package/dist/api/container/index.cjs +4 -0
- package/dist/api/container/index.d.ts +1 -0
- package/dist/api/container/index.js +4 -2
- package/dist/api/container/v1beta1/api.gen.cjs +621 -0
- package/dist/api/container/v1beta1/api.gen.d.ts +304 -0
- package/dist/api/container/v1beta1/api.gen.js +384 -228
- package/dist/api/container/v1beta1/content.gen.cjs +34 -0
- package/dist/api/container/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/container/v1beta1/content.gen.js +34 -22
- package/dist/api/container/v1beta1/index.gen.cjs +13 -0
- package/dist/api/container/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/container/v1beta1/index.gen.js +13 -7
- package/dist/api/container/v1beta1/marshalling.gen.cjs +408 -0
- package/dist/api/container/v1beta1/marshalling.gen.d.ts +24 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +147 -71
- package/dist/api/container/v1beta1/types.gen.d.ts +785 -0
- package/dist/api/container/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/container/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/container/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/dedibox/index.cjs +4 -0
- package/dist/api/dedibox/index.d.ts +1 -0
- package/dist/api/dedibox/index.js +4 -2
- package/dist/api/dedibox/v1/api.gen.cjs +1460 -0
- package/dist/api/dedibox/v1/api.gen.d.ts +560 -0
- package/dist/api/dedibox/v1/api.gen.js +1051 -565
- package/dist/api/dedibox/v1/content.gen.cjs +49 -0
- package/dist/api/dedibox/v1/content.gen.d.ts +19 -0
- package/dist/api/dedibox/v1/content.gen.js +49 -31
- package/dist/api/dedibox/v1/index.gen.cjs +22 -0
- package/dist/api/dedibox/v1/index.gen.d.ts +4 -0
- package/dist/api/dedibox/v1/index.gen.js +22 -7
- package/dist/api/dedibox/v1/marshalling.gen.cjs +1475 -0
- package/dist/api/dedibox/v1/marshalling.gen.d.ts +82 -0
- package/dist/api/dedibox/v1/marshalling.gen.js +514 -237
- package/dist/api/dedibox/v1/types.gen.d.ts +1900 -0
- package/dist/api/dedibox/v1/validation-rules.gen.cjs +626 -0
- package/dist/api/dedibox/v1/validation-rules.gen.d.ts +539 -0
- package/dist/api/dedibox/v1/validation-rules.gen.js +87 -5
- package/dist/api/document_db/index.cjs +4 -0
- package/dist/api/document_db/index.d.ts +1 -0
- package/dist/api/document_db/index.js +4 -2
- package/dist/api/document_db/v1beta1/api.gen.cjs +1018 -0
- package/dist/api/document_db/v1beta1/api.gen.d.ts +542 -0
- package/dist/api/document_db/v1beta1/api.gen.js +561 -339
- package/dist/api/document_db/v1beta1/content.gen.cjs +31 -0
- package/dist/api/document_db/v1beta1/content.gen.d.ts +11 -0
- package/dist/api/document_db/v1beta1/content.gen.js +31 -19
- package/dist/api/document_db/v1beta1/index.gen.cjs +12 -0
- package/dist/api/document_db/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/document_db/v1beta1/index.gen.js +12 -7
- package/dist/api/document_db/v1beta1/marshalling.gen.cjs +829 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.d.ts +50 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.js +354 -181
- package/dist/api/document_db/v1beta1/types.gen.d.ts +1254 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/document_db/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/domain/index.cjs +4 -0
- package/dist/api/domain/index.d.ts +1 -0
- package/dist/api/domain/index.js +4 -2
- package/dist/api/domain/v2beta1/api.gen.cjs +1052 -0
- package/dist/api/domain/v2beta1/api.gen.d.ts +521 -0
- package/dist/api/domain/v2beta1/api.gen.js +638 -365
- package/dist/api/domain/v2beta1/content.gen.cjs +29 -0
- package/dist/api/domain/v2beta1/content.gen.d.ts +18 -0
- package/dist/api/domain/v2beta1/content.gen.js +29 -28
- package/dist/api/domain/v2beta1/index.gen.cjs +13 -0
- package/dist/api/domain/v2beta1/index.gen.d.ts +3 -0
- package/dist/api/domain/v2beta1/index.gen.js +13 -5
- package/dist/api/domain/v2beta1/marshalling.gen.cjs +1472 -0
- package/dist/api/domain/v2beta1/marshalling.gen.d.ts +59 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +676 -383
- package/dist/api/domain/v2beta1/types.gen.d.ts +1073 -0
- package/dist/api/flexibleip/index.cjs +4 -0
- package/dist/api/flexibleip/index.d.ts +1 -0
- package/dist/api/flexibleip/index.js +4 -2
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +227 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +115 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.js +134 -86
- package/dist/api/flexibleip/v1alpha1/content.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/flexibleip/v1alpha1/content.gen.js +12 -10
- package/dist/api/flexibleip/v1alpha1/index.gen.cjs +9 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.js +9 -7
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.cjs +115 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +36 -18
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +196 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.cjs +12 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +3 -5
- package/dist/api/function/index.cjs +4 -0
- package/dist/api/function/index.d.ts +1 -0
- package/dist/api/function/index.js +4 -2
- package/dist/api/function/v1beta1/api.gen.cjs +666 -0
- package/dist/api/function/v1beta1/api.gen.d.ts +330 -0
- package/dist/api/function/v1beta1/api.gen.js +406 -244
- package/dist/api/function/v1beta1/content.gen.cjs +34 -0
- package/dist/api/function/v1beta1/content.gen.d.ts +13 -0
- package/dist/api/function/v1beta1/content.gen.js +34 -22
- package/dist/api/function/v1beta1/index.gen.cjs +13 -0
- package/dist/api/function/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/function/v1beta1/index.gen.js +13 -7
- package/dist/api/function/v1beta1/marshalling.gen.cjs +457 -0
- package/dist/api/function/v1beta1/marshalling.gen.d.ts +27 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +167 -80
- package/dist/api/function/v1beta1/types.gen.d.ts +819 -0
- package/dist/api/function/v1beta1/validation-rules.gen.cjs +45 -0
- package/dist/api/function/v1beta1/validation-rules.gen.d.ts +39 -0
- package/dist/api/function/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/iam/index.cjs +4 -0
- package/dist/api/iam/index.d.ts +1 -0
- package/dist/api/iam/index.js +4 -2
- package/dist/api/iam/v1alpha1/api.gen.cjs +951 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +480 -0
- package/dist/api/iam/v1alpha1/api.gen.js +560 -302
- package/dist/api/iam/v1alpha1/index.gen.cjs +6 -0
- package/dist/api/iam/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/iam/v1alpha1/index.gen.js +6 -6
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +504 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +42 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +184 -119
- package/dist/api/iam/v1alpha1/types.gen.d.ts +886 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +235 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +211 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +29 -10
- package/dist/api/index.d.ts +34 -0
- package/dist/api/instance/index.cjs +4 -0
- package/dist/api/instance/index.d.ts +1 -0
- package/dist/api/instance/index.js +4 -2
- package/dist/api/instance/v1/api.gen.cjs +1178 -0
- package/dist/api/instance/v1/api.gen.d.ts +532 -0
- package/dist/api/instance/v1/api.gen.js +753 -436
- package/dist/api/instance/v1/api.utils.cjs +279 -0
- package/dist/api/instance/v1/api.utils.d.ts +95 -0
- package/dist/api/instance/v1/api.utils.js +145 -109
- package/dist/api/instance/v1/content.gen.cjs +44 -0
- package/dist/api/instance/v1/content.gen.d.ts +21 -0
- package/dist/api/instance/v1/content.gen.js +44 -34
- package/dist/api/instance/v1/index.cjs +15 -0
- package/dist/api/instance/v1/index.d.ts +4 -0
- package/dist/api/instance/v1/index.gen.d.ts +4 -0
- package/dist/api/instance/v1/index.js +15 -2
- package/dist/api/instance/v1/marshalling.gen.cjs +1813 -0
- package/dist/api/instance/v1/marshalling.gen.d.ts +95 -0
- package/dist/api/instance/v1/marshalling.gen.js +736 -412
- package/dist/api/instance/v1/marshalling.utils.d.ts +3 -0
- package/dist/api/instance/v1/types.gen.d.ts +1818 -0
- package/dist/api/instance/v1/types.private.gen.d.ts +167 -0
- package/dist/api/instance/v1/types.utils.d.ts +35 -0
- package/dist/api/instance/v1/validation-rules.gen.d.ts +10 -0
- package/dist/api/iot/index.cjs +4 -0
- package/dist/api/iot/index.d.ts +1 -0
- package/dist/api/iot/index.js +4 -2
- package/dist/api/iot/v1/api.gen.cjs +621 -0
- package/dist/api/iot/v1/api.gen.d.ts +325 -0
- package/dist/api/iot/v1/api.gen.js +350 -238
- package/dist/api/iot/v1/content.gen.cjs +4 -0
- package/dist/api/iot/v1/content.gen.d.ts +3 -0
- package/dist/api/iot/v1/content.gen.js +4 -7
- package/dist/api/iot/v1/index.gen.cjs +6 -0
- package/dist/api/iot/v1/index.gen.d.ts +3 -0
- package/dist/api/iot/v1/index.gen.js +6 -5
- package/dist/api/iot/v1/marshalling.gen.cjs +534 -0
- package/dist/api/iot/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/iot/v1/marshalling.gen.js +209 -114
- package/dist/api/iot/v1/types.gen.d.ts +916 -0
- package/dist/api/ipam/index.cjs +4 -0
- package/dist/api/ipam/index.d.ts +1 -0
- package/dist/api/ipam/index.js +4 -2
- package/dist/api/ipam/v1/api.gen.cjs +117 -0
- package/dist/api/ipam/v1/api.gen.d.ts +57 -0
- package/dist/api/ipam/v1/api.gen.js +75 -55
- package/dist/api/ipam/v1/index.gen.cjs +6 -0
- package/dist/api/ipam/v1/index.gen.d.ts +3 -0
- package/dist/api/ipam/v1/index.gen.js +6 -6
- package/dist/api/ipam/v1/marshalling.gen.cjs +98 -0
- package/dist/api/ipam/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/ipam/v1/marshalling.gen.js +35 -29
- package/dist/api/ipam/v1/types.gen.d.ts +209 -0
- package/dist/api/ipam/v1/validation-rules.gen.cjs +9 -0
- package/dist/api/ipam/v1/validation-rules.gen.d.ts +6 -0
- package/dist/api/ipam/v1/validation-rules.gen.js +3 -5
- package/dist/api/ipfs/index.cjs +4 -0
- package/dist/api/ipfs/index.d.ts +1 -0
- package/dist/api/ipfs/index.js +4 -2
- package/dist/api/ipfs/v1alpha1/api.gen.cjs +374 -0
- package/dist/api/ipfs/v1alpha1/api.gen.d.ts +198 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +210 -133
- package/dist/api/ipfs/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/ipfs/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +6 -10
- package/dist/api/ipfs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/ipfs/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +8 -5
- package/dist/api/ipfs/v1alpha1/marshalling.gen.cjs +208 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.d.ts +18 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +68 -33
- package/dist/api/ipfs/v1alpha1/types.gen.d.ts +317 -0
- package/dist/api/jobs/index.cjs +4 -0
- package/dist/api/jobs/index.d.ts +1 -0
- package/dist/api/jobs/index.js +4 -2
- package/dist/api/jobs/v1alpha1/api.gen.cjs +170 -0
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +84 -0
- package/dist/api/jobs/v1alpha1/api.gen.js +109 -69
- package/dist/api/jobs/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/jobs/v1alpha1/content.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/jobs/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/jobs/v1alpha1/index.gen.js +8 -7
- package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +150 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +10 -0
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +50 -26
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +210 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +97 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.d.ts +87 -0
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +12 -7
- package/dist/api/k8s/index.cjs +4 -0
- package/dist/api/k8s/index.d.ts +1 -0
- package/dist/api/k8s/index.js +4 -2
- package/dist/api/k8s/v1/api.gen.cjs +550 -0
- package/dist/api/k8s/v1/api.gen.d.ts +284 -0
- package/dist/api/k8s/v1/api.gen.js +317 -195
- package/dist/api/k8s/v1/api.utils.cjs +13 -0
- package/dist/api/k8s/v1/api.utils.d.ts +11 -0
- package/dist/api/k8s/v1/api.utils.js +5 -5
- package/dist/api/k8s/v1/content.gen.cjs +23 -0
- package/dist/api/k8s/v1/content.gen.d.ts +7 -0
- package/dist/api/k8s/v1/content.gen.js +23 -13
- package/dist/api/k8s/v1/index.cjs +10 -0
- package/dist/api/k8s/v1/index.d.ts +4 -0
- package/dist/api/k8s/v1/index.gen.d.ts +4 -0
- package/dist/api/k8s/v1/index.js +10 -4
- package/dist/api/k8s/v1/marshalling.gen.cjs +510 -0
- package/dist/api/k8s/v1/marshalling.gen.d.ts +22 -0
- package/dist/api/k8s/v1/marshalling.gen.js +158 -79
- package/dist/api/k8s/v1/types.gen.d.ts +1123 -0
- package/dist/api/k8s/v1/validation-rules.gen.cjs +110 -0
- package/dist/api/k8s/v1/validation-rules.gen.d.ts +96 -0
- package/dist/api/k8s/v1/validation-rules.gen.js +14 -5
- package/dist/api/lb/index.cjs +4 -0
- package/dist/api/lb/index.d.ts +1 -0
- package/dist/api/lb/index.js +4 -2
- package/dist/api/lb/v1/api.gen.cjs +1984 -0
- package/dist/api/lb/v1/api.gen.d.ts +990 -0
- package/dist/api/lb/v1/api.gen.js +1186 -695
- package/dist/api/lb/v1/api.utils.cjs +116 -0
- package/dist/api/lb/v1/api.utils.d.ts +41 -0
- package/dist/api/lb/v1/api.utils.js +83 -48
- package/dist/api/lb/v1/content.gen.cjs +22 -0
- package/dist/api/lb/v1/content.gen.d.ts +9 -0
- package/dist/api/lb/v1/content.gen.js +22 -16
- package/dist/api/lb/v1/index.cjs +10 -0
- package/dist/api/lb/v1/index.d.ts +4 -0
- package/dist/api/lb/v1/index.gen.d.ts +3 -0
- package/dist/api/lb/v1/index.js +10 -2
- package/dist/api/lb/v1/marshalling.gen.cjs +1289 -0
- package/dist/api/lb/v1/marshalling.gen.d.ts +73 -0
- package/dist/api/lb/v1/marshalling.gen.js +576 -334
- package/dist/api/lb/v1/types.gen.d.ts +2729 -0
- package/dist/api/lb/v1/types.utils.d.ts +13 -0
- package/dist/api/llm_inference/index.cjs +4 -0
- package/dist/api/llm_inference/index.d.ts +1 -0
- package/dist/api/llm_inference/index.js +4 -2
- package/dist/api/llm_inference/v1beta1/api.gen.cjs +305 -0
- package/dist/api/llm_inference/v1beta1/api.gen.d.ts +151 -0
- package/dist/api/llm_inference/v1beta1/api.gen.js +192 -120
- package/dist/api/llm_inference/v1beta1/content.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/content.gen.d.ts +3 -0
- package/dist/api/llm_inference/v1beta1/content.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/index.gen.cjs +8 -0
- package/dist/api/llm_inference/v1beta1/index.gen.d.ts +4 -0
- package/dist/api/llm_inference/v1beta1/index.gen.js +8 -7
- package/dist/api/llm_inference/v1beta1/marshalling.gen.cjs +271 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.d.ts +18 -0
- package/dist/api/llm_inference/v1beta1/marshalling.gen.js +98 -52
- package/dist/api/llm_inference/v1beta1/types.gen.d.ts +433 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.cjs +56 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.d.ts +50 -0
- package/dist/api/llm_inference/v1beta1/validation-rules.gen.js +6 -5
- package/dist/api/marketplace/index.cjs +4 -0
- package/dist/api/marketplace/index.d.ts +1 -0
- package/dist/api/marketplace/index.js +4 -2
- package/dist/api/marketplace/v2/api.gen.cjs +174 -0
- package/dist/api/marketplace/v2/api.gen.d.ts +95 -0
- package/dist/api/marketplace/v2/api.gen.js +111 -67
- package/dist/api/marketplace/v2/index.gen.cjs +4 -0
- package/dist/api/marketplace/v2/index.gen.d.ts +2 -0
- package/dist/api/marketplace/v2/index.gen.js +4 -4
- package/dist/api/marketplace/v2/marshalling.gen.cjs +115 -0
- package/dist/api/marketplace/v2/marshalling.gen.d.ts +9 -0
- package/dist/api/marketplace/v2/marshalling.gen.js +44 -23
- package/dist/api/marketplace/v2/types.gen.d.ts +135 -0
- package/dist/api/mnq/index.cjs +4 -0
- package/dist/api/mnq/index.d.ts +1 -0
- package/dist/api/mnq/index.js +4 -2
- package/dist/api/mnq/v1beta1/api.gen.cjs +500 -0
- package/dist/api/mnq/v1beta1/api.gen.d.ts +267 -0
- package/dist/api/mnq/v1beta1/api.gen.js +291 -184
- package/dist/api/mnq/v1beta1/index.gen.cjs +8 -0
- package/dist/api/mnq/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/mnq/v1beta1/index.gen.js +8 -6
- package/dist/api/mnq/v1beta1/marshalling.gen.cjs +268 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.d.ts +23 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.js +105 -49
- package/dist/api/mnq/v1beta1/types.gen.d.ts +449 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.cjs +85 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.d.ts +72 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +13 -5
- package/dist/api/rdb/index.cjs +4 -0
- package/dist/api/rdb/index.d.ts +1 -0
- package/dist/api/rdb/index.js +4 -2
- package/dist/api/rdb/v1/api.gen.cjs +1192 -0
- package/dist/api/rdb/v1/api.gen.d.ts +631 -0
- package/dist/api/rdb/v1/api.gen.js +660 -393
- package/dist/api/rdb/v1/content.gen.cjs +38 -0
- package/dist/api/rdb/v1/content.gen.d.ts +13 -0
- package/dist/api/rdb/v1/content.gen.js +38 -22
- package/dist/api/rdb/v1/index.gen.cjs +13 -0
- package/dist/api/rdb/v1/index.gen.d.ts +4 -0
- package/dist/api/rdb/v1/index.gen.js +13 -7
- package/dist/api/rdb/v1/marshalling.gen.cjs +908 -0
- package/dist/api/rdb/v1/marshalling.gen.d.ts +59 -0
- package/dist/api/rdb/v1/marshalling.gen.js +385 -191
- package/dist/api/rdb/v1/types.gen.d.ts +1404 -0
- package/dist/api/rdb/v1/validation-rules.gen.cjs +8 -0
- package/dist/api/rdb/v1/validation-rules.gen.d.ts +5 -0
- package/dist/api/rdb/v1/validation-rules.gen.js +3 -5
- package/dist/api/redis/index.cjs +4 -0
- package/dist/api/redis/index.d.ts +1 -0
- package/dist/api/redis/index.js +4 -2
- package/dist/api/redis/v1/api.gen.cjs +476 -0
- package/dist/api/redis/v1/api.gen.d.ts +253 -0
- package/dist/api/redis/v1/api.gen.js +265 -162
- package/dist/api/redis/v1/content.gen.cjs +10 -0
- package/dist/api/redis/v1/content.gen.d.ts +3 -0
- package/dist/api/redis/v1/content.gen.js +10 -7
- package/dist/api/redis/v1/index.gen.cjs +6 -0
- package/dist/api/redis/v1/index.gen.d.ts +3 -0
- package/dist/api/redis/v1/index.gen.js +6 -5
- package/dist/api/redis/v1/marshalling.gen.cjs +355 -0
- package/dist/api/redis/v1/marshalling.gen.d.ts +24 -0
- package/dist/api/redis/v1/marshalling.gen.js +156 -84
- package/dist/api/redis/v1/types.gen.d.ts +473 -0
- package/dist/api/registry/index.cjs +4 -0
- package/dist/api/registry/index.d.ts +1 -0
- package/dist/api/registry/index.js +4 -2
- package/dist/api/registry/v1/api.gen.cjs +287 -0
- package/dist/api/registry/v1/api.gen.d.ts +160 -0
- package/dist/api/registry/v1/api.gen.js +161 -94
- package/dist/api/registry/v1/content.gen.cjs +8 -0
- package/dist/api/registry/v1/content.gen.d.ts +7 -0
- package/dist/api/registry/v1/content.gen.js +8 -13
- package/dist/api/registry/v1/index.gen.cjs +8 -0
- package/dist/api/registry/v1/index.gen.d.ts +3 -0
- package/dist/api/registry/v1/index.gen.js +8 -5
- package/dist/api/registry/v1/marshalling.gen.cjs +129 -0
- package/dist/api/registry/v1/marshalling.gen.d.ts +11 -0
- package/dist/api/registry/v1/marshalling.gen.js +51 -30
- package/dist/api/registry/v1/types.gen.d.ts +300 -0
- package/dist/api/secret/index.cjs +6 -0
- package/dist/api/secret/index.d.ts +2 -0
- package/dist/api/secret/index.js +6 -4
- package/dist/api/secret/v1alpha1/api.gen.cjs +483 -0
- package/dist/api/secret/v1alpha1/api.gen.d.ts +262 -0
- package/dist/api/secret/v1alpha1/api.gen.js +271 -176
- package/dist/api/secret/v1alpha1/index.gen.cjs +4 -0
- package/dist/api/secret/v1alpha1/index.gen.d.ts +2 -0
- package/dist/api/secret/v1alpha1/index.gen.js +4 -4
- package/dist/api/secret/v1alpha1/marshalling.gen.cjs +221 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.d.ts +19 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.js +67 -33
- package/dist/api/secret/v1alpha1/types.gen.d.ts +619 -0
- package/dist/api/secret/v1beta1/api.gen.cjs +359 -0
- package/dist/api/secret/v1beta1/api.gen.d.ts +182 -0
- package/dist/api/secret/v1beta1/api.gen.js +213 -135
- package/dist/api/secret/v1beta1/index.gen.cjs +6 -0
- package/dist/api/secret/v1beta1/index.gen.d.ts +3 -0
- package/dist/api/secret/v1beta1/index.gen.js +6 -6
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +219 -0
- package/dist/api/secret/v1beta1/marshalling.gen.d.ts +14 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +76 -40
- package/dist/api/secret/v1beta1/types.gen.d.ts +513 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.d.ts +5 -0
- package/dist/api/secret/v1beta1/validation-rules.gen.js +3 -5
- package/dist/api/serverless_sqldb/index.cjs +4 -0
- package/dist/api/serverless_sqldb/index.d.ts +1 -0
- package/dist/api/serverless_sqldb/index.js +4 -2
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +202 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +109 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +118 -78
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/serverless_sqldb/v1alpha1/content.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/serverless_sqldb/v1alpha1/index.gen.js +8 -7
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.cjs +89 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.d.ts +9 -0
- package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +27 -15
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +193 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.cjs +62 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.d.ts +55 -0
- package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.js +9 -7
- package/dist/api/std/index.gen.cjs +1 -0
- package/dist/api/std/index.gen.d.ts +1 -0
- package/dist/api/std/types.gen.d.ts +1 -0
- package/dist/api/tem/index.cjs +4 -0
- package/dist/api/tem/index.d.ts +1 -0
- package/dist/api/tem/index.js +4 -2
- package/dist/api/tem/v1alpha1/api.gen.cjs +260 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +134 -0
- package/dist/api/tem/v1alpha1/api.gen.js +154 -89
- package/dist/api/tem/v1alpha1/content.gen.cjs +6 -0
- package/dist/api/tem/v1alpha1/content.gen.d.ts +5 -0
- package/dist/api/tem/v1alpha1/content.gen.js +6 -10
- package/dist/api/tem/v1alpha1/index.gen.cjs +7 -0
- package/dist/api/tem/v1alpha1/index.gen.d.ts +3 -0
- package/dist/api/tem/v1alpha1/index.gen.js +7 -5
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +255 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +90 -50
- package/dist/api/tem/v1alpha1/types.gen.d.ts +401 -0
- package/dist/api/test/index.cjs +4 -0
- package/dist/api/test/index.d.ts +1 -0
- package/dist/api/test/index.js +4 -2
- package/dist/api/test/v1/api.gen.cjs +164 -0
- package/dist/api/test/v1/api.gen.d.ts +84 -0
- package/dist/api/test/v1/api.gen.js +99 -71
- package/dist/api/test/v1/content.gen.cjs +4 -0
- package/dist/api/test/v1/content.gen.d.ts +3 -0
- package/dist/api/test/v1/content.gen.js +4 -7
- package/dist/api/test/v1/index.gen.cjs +6 -0
- package/dist/api/test/v1/index.gen.d.ts +3 -0
- package/dist/api/test/v1/index.gen.js +6 -5
- package/dist/api/test/v1/marshalling.gen.cjs +93 -0
- package/dist/api/test/v1/marshalling.gen.d.ts +8 -0
- package/dist/api/test/v1/marshalling.gen.js +34 -22
- package/dist/api/test/v1/types.gen.d.ts +91 -0
- package/dist/api/vpc/index.cjs +6 -0
- package/dist/api/vpc/index.d.ts +2 -0
- package/dist/api/vpc/index.js +6 -4
- package/dist/api/vpc/v1/api.gen.cjs +119 -0
- package/dist/api/vpc/v1/api.gen.d.ts +59 -0
- package/dist/api/vpc/v1/api.gen.js +76 -43
- package/dist/api/vpc/v1/index.gen.cjs +4 -0
- package/dist/api/vpc/v1/index.gen.d.ts +2 -0
- package/dist/api/vpc/v1/index.gen.js +4 -4
- package/dist/api/vpc/v1/marshalling.gen.cjs +52 -0
- package/dist/api/vpc/v1/marshalling.gen.d.ts +6 -0
- package/dist/api/vpc/v1/marshalling.gen.js +22 -14
- package/dist/api/vpc/v1/types.gen.d.ts +99 -0
- package/dist/api/vpc/v2/api.gen.cjs +303 -0
- package/dist/api/vpc/v2/api.gen.d.ts +149 -0
- package/dist/api/vpc/v2/api.gen.js +181 -112
- package/dist/api/vpc/v2/index.gen.cjs +4 -0
- package/dist/api/vpc/v2/index.gen.d.ts +2 -0
- package/dist/api/vpc/v2/index.gen.js +4 -4
- package/dist/api/vpc/v2/marshalling.gen.cjs +173 -0
- package/dist/api/vpc/v2/marshalling.gen.d.ts +17 -0
- package/dist/api/vpc/v2/marshalling.gen.js +70 -36
- package/dist/api/vpc/v2/types.gen.d.ts +338 -0
- package/dist/api/vpcgw/index.cjs +4 -0
- package/dist/api/vpcgw/index.d.ts +1 -0
- package/dist/api/vpcgw/index.js +4 -2
- package/dist/api/vpcgw/v1/api.gen.cjs +740 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +393 -0
- package/dist/api/vpcgw/v1/api.gen.js +408 -239
- package/dist/api/vpcgw/v1/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v1/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v1/content.gen.js +15 -10
- package/dist/api/vpcgw/v1/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v1/index.gen.js +7 -5
- package/dist/api/vpcgw/v1/marshalling.gen.cjs +437 -0
- package/dist/api/vpcgw/v1/marshalling.gen.d.ts +31 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +145 -74
- package/dist/api/vpcgw/v1/types.gen.d.ts +901 -0
- package/dist/api/webhosting/index.cjs +4 -0
- package/dist/api/webhosting/index.d.ts +1 -0
- package/dist/api/webhosting/index.js +4 -2
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +226 -0
- package/dist/api/webhosting/v1alpha1/api.gen.d.ts +115 -0
- package/dist/api/webhosting/v1alpha1/api.gen.js +138 -86
- package/dist/api/webhosting/v1alpha1/content.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/content.gen.d.ts +3 -0
- package/dist/api/webhosting/v1alpha1/content.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/index.gen.cjs +8 -0
- package/dist/api/webhosting/v1alpha1/index.gen.d.ts +4 -0
- package/dist/api/webhosting/v1alpha1/index.gen.js +8 -7
- package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +236 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +11 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +80 -41
- package/dist/api/webhosting/v1alpha1/types.gen.d.ts +379 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +22 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +18 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +4 -5
- package/dist/bridge.d.ts +11 -0
- package/dist/helpers/is-browser.cjs +7 -0
- package/dist/helpers/is-browser.d.ts +1 -0
- package/dist/helpers/is-browser.js +7 -5
- package/dist/helpers/is-response.cjs +4 -0
- package/dist/helpers/is-response.d.ts +8 -0
- package/dist/helpers/is-response.js +4 -10
- package/dist/helpers/json.cjs +7 -0
- package/dist/helpers/json.d.ts +13 -0
- package/dist/helpers/json.js +5 -9
- package/dist/helpers/marshalling.cjs +78 -0
- package/dist/helpers/marshalling.d.ts +63 -0
- package/dist/helpers/marshalling.js +40 -77
- package/dist/index.cjs +114 -32093
- package/dist/index.d.ts +15 -38464
- package/dist/index.js +115 -81
- package/dist/internal/async/interval-retrier.cjs +55 -0
- package/dist/internal/async/interval-retrier.d.ts +111 -0
- package/dist/internal/async/interval-retrier.js +30 -72
- package/dist/internal/async/sleep.cjs +6 -0
- package/dist/internal/async/sleep.d.ts +9 -0
- package/dist/internal/async/sleep.js +4 -11
- package/dist/internal/interceptors/composer.cjs +25 -0
- package/dist/internal/interceptors/composer.d.ts +25 -0
- package/dist/internal/interceptors/composer.js +15 -36
- package/dist/internal/interceptors/helpers.cjs +12 -0
- package/dist/internal/interceptors/helpers.d.ts +21 -0
- package/dist/internal/interceptors/helpers.js +7 -26
- package/dist/internal/interceptors/types.d.ts +89 -0
- package/dist/internal/logger/console-logger.cjs +24 -0
- package/dist/internal/logger/console-logger.d.ts +23 -0
- package/dist/internal/logger/console-logger.js +11 -19
- package/dist/internal/logger/index.cjs +12 -0
- package/dist/internal/logger/index.d.ts +25 -0
- package/dist/internal/logger/index.js +9 -30
- package/dist/internal/logger/level-resolver.cjs +13 -0
- package/dist/internal/logger/level-resolver.d.ts +9 -0
- package/dist/internal/logger/level-resolver.js +12 -12
- package/dist/internal/logger/logger.d.ts +13 -0
- package/dist/internal/validations/string-validation.cjs +30 -0
- package/dist/internal/validations/string-validation.d.ts +18 -0
- package/dist/internal/validations/string-validation.js +19 -27
- package/dist/internals.d.ts +10 -0
- package/dist/scw/api.cjs +8 -0
- package/dist/scw/api.d.ts +10 -0
- package/dist/scw/api.js +3 -7
- package/dist/scw/auth.cjs +28 -0
- package/dist/scw/auth.d.ts +57 -0
- package/dist/scw/auth.js +23 -62
- package/dist/scw/client-ini-factory.cjs +66 -0
- package/dist/scw/client-ini-factory.d.ts +111 -0
- package/dist/scw/client-ini-factory.js +33 -141
- package/dist/scw/client-ini-profile.cjs +23 -0
- package/dist/scw/client-ini-profile.d.ts +82 -0
- package/dist/scw/client-ini-profile.js +15 -46
- package/dist/scw/client-settings.cjs +51 -0
- package/dist/scw/client-settings.d.ts +59 -0
- package/dist/scw/client-settings.js +26 -53
- package/dist/scw/client.cjs +28 -0
- package/dist/scw/client.d.ts +72 -0
- package/dist/scw/client.js +14 -76
- package/dist/scw/constants.cjs +6 -0
- package/dist/scw/constants.d.ts +2 -0
- package/dist/scw/constants.js +5 -3
- package/dist/scw/custom-marshalling.cjs +92 -0
- package/dist/scw/custom-marshalling.d.ts +59 -0
- package/dist/scw/custom-marshalling.js +38 -77
- package/dist/scw/custom-types.d.ts +65 -0
- package/dist/scw/errors/error-parser.cjs +76 -0
- package/dist/scw/errors/error-parser.d.ts +12 -0
- package/dist/scw/errors/error-parser.js +33 -64
- package/dist/scw/errors/non-standard/invalid-request-mapper.cjs +36 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +12 -0
- package/dist/scw/errors/non-standard/invalid-request-mapper.js +26 -23
- package/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +23 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +11 -0
- package/dist/scw/errors/non-standard/unknown-resource-mapper.js +16 -20
- package/dist/scw/errors/scw-error-from-json.d.ts +10 -0
- package/dist/scw/errors/scw-error.cjs +43 -0
- package/dist/scw/errors/scw-error.d.ts +25 -0
- package/dist/scw/errors/scw-error.js +19 -35
- package/dist/scw/errors/standard/already-exists-error.cjs +31 -0
- package/dist/scw/errors/standard/already-exists-error.d.ts +16 -0
- package/dist/scw/errors/standard/already-exists-error.js +18 -13
- package/dist/scw/errors/standard/denied-authentication-error.cjs +37 -0
- package/dist/scw/errors/standard/denied-authentication-error.d.ts +15 -0
- package/dist/scw/errors/standard/denied-authentication-error.js +9 -24
- package/dist/scw/errors/standard/index.cjs +28 -0
- package/dist/scw/errors/standard/index.d.ts +17 -0
- package/dist/scw/errors/standard/index.js +28 -13
- package/dist/scw/errors/standard/invalid-arguments-error.cjs +55 -0
- package/dist/scw/errors/standard/invalid-arguments-error.d.ts +24 -0
- package/dist/scw/errors/standard/invalid-arguments-error.js +26 -38
- package/dist/scw/errors/standard/out-of-stock-error.cjs +18 -0
- package/dist/scw/errors/standard/out-of-stock-error.d.ts +14 -0
- package/dist/scw/errors/standard/out-of-stock-error.js +7 -11
- package/dist/scw/errors/standard/permissions-denied-error.cjs +30 -0
- package/dist/scw/errors/standard/permissions-denied-error.d.ts +23 -0
- package/dist/scw/errors/standard/permissions-denied-error.js +20 -35
- package/dist/scw/errors/standard/precondition-failed-error.cjs +32 -0
- package/dist/scw/errors/standard/precondition-failed-error.d.ts +15 -0
- package/dist/scw/errors/standard/precondition-failed-error.js +14 -24
- package/dist/scw/errors/standard/quotas-exceeded-error.cjs +44 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +34 -0
- package/dist/scw/errors/standard/quotas-exceeded-error.js +29 -53
- package/dist/scw/errors/standard/resource-expired-error.cjs +31 -0
- package/dist/scw/errors/standard/resource-expired-error.d.ts +16 -0
- package/dist/scw/errors/standard/resource-expired-error.js +18 -13
- package/dist/scw/errors/standard/resource-locked-error.cjs +20 -0
- package/dist/scw/errors/standard/resource-locked-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-locked-error.js +6 -11
- package/dist/scw/errors/standard/resource-not-found-error.cjs +24 -0
- package/dist/scw/errors/standard/resource-not-found-error.d.ts +15 -0
- package/dist/scw/errors/standard/resource-not-found-error.js +11 -12
- package/dist/scw/errors/standard/too-many-requests-error.cjs +59 -0
- package/dist/scw/errors/standard/too-many-requests-error.d.ts +32 -0
- package/dist/scw/errors/standard/too-many-requests-error.js +20 -31
- package/dist/scw/errors/standard/transient-state-error.cjs +31 -0
- package/dist/scw/errors/standard/transient-state-error.d.ts +16 -0
- package/dist/scw/errors/standard/transient-state-error.js +18 -13
- package/dist/scw/errors/types.cjs +15 -0
- package/dist/scw/errors/types.d.ts +9 -0
- package/dist/scw/errors/types.js +6 -14
- package/dist/scw/fetch/build-fetcher.cjs +60 -0
- package/dist/scw/fetch/build-fetcher.d.ts +23 -0
- package/dist/scw/fetch/build-fetcher.js +29 -38
- package/dist/scw/fetch/http-dumper.cjs +20 -0
- package/dist/scw/fetch/http-dumper.d.ts +18 -0
- package/dist/scw/fetch/http-dumper.js +19 -50
- package/dist/scw/fetch/http-interceptors.cjs +43 -0
- package/dist/scw/fetch/http-interceptors.d.ts +38 -0
- package/dist/scw/fetch/http-interceptors.js +23 -66
- package/dist/scw/fetch/resource-paginator.cjs +37 -0
- package/dist/scw/fetch/resource-paginator.d.ts +47 -0
- package/dist/scw/fetch/resource-paginator.js +12 -45
- package/dist/scw/fetch/response-parser.cjs +57 -0
- package/dist/scw/fetch/response-parser.d.ts +25 -0
- package/dist/scw/fetch/response-parser.js +31 -46
- package/dist/scw/fetch/types.d.ts +16 -0
- package/dist/scw/locality.d.ts +2 -0
- package/package.json +7 -3
- package/dist/node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js +0 -11
|
@@ -0,0 +1,1475 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const json = require("../../../helpers/json.cjs");
|
|
4
|
+
const customMarshalling = require("../../../scw/custom-marshalling.cjs");
|
|
5
|
+
const marshalling = require("../../../helpers/marshalling.cjs");
|
|
6
|
+
const unmarshalIP = (data) => {
|
|
7
|
+
if (!json.isJSONObject(data)) {
|
|
8
|
+
throw new TypeError(
|
|
9
|
+
`Unmarshalling the type 'IP' failed as data isn't a dictionary.`
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
address: data.address,
|
|
14
|
+
cidr: data.cidr,
|
|
15
|
+
gateway: data.gateway,
|
|
16
|
+
ipId: data.ip_id,
|
|
17
|
+
netmask: data.netmask,
|
|
18
|
+
reverse: data.reverse,
|
|
19
|
+
semantic: data.semantic,
|
|
20
|
+
status: data.status,
|
|
21
|
+
version: data.version
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const unmarshalCPU = (data) => {
|
|
25
|
+
if (!json.isJSONObject(data)) {
|
|
26
|
+
throw new TypeError(
|
|
27
|
+
`Unmarshalling the type 'CPU' failed as data isn't a dictionary.`
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
coreCount: data.core_count,
|
|
32
|
+
frequency: data.frequency,
|
|
33
|
+
name: data.name,
|
|
34
|
+
threadCount: data.thread_count
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const unmarshalDisk = (data) => {
|
|
38
|
+
if (!json.isJSONObject(data)) {
|
|
39
|
+
throw new TypeError(
|
|
40
|
+
`Unmarshalling the type 'Disk' failed as data isn't a dictionary.`
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
capacity: data.capacity,
|
|
45
|
+
type: data.type
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
const unmarshalMemory = (data) => {
|
|
49
|
+
if (!json.isJSONObject(data)) {
|
|
50
|
+
throw new TypeError(
|
|
51
|
+
`Unmarshalling the type 'Memory' failed as data isn't a dictionary.`
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
capacity: data.capacity,
|
|
56
|
+
frequency: data.frequency,
|
|
57
|
+
isEcc: data.is_ecc,
|
|
58
|
+
type: data.type
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
const unmarshalPersistentMemory = (data) => {
|
|
62
|
+
if (!json.isJSONObject(data)) {
|
|
63
|
+
throw new TypeError(
|
|
64
|
+
`Unmarshalling the type 'PersistentMemory' failed as data isn't a dictionary.`
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
capacity: data.capacity,
|
|
69
|
+
frequency: data.frequency,
|
|
70
|
+
model: data.model
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
const unmarshalRaidController = (data) => {
|
|
74
|
+
if (!json.isJSONObject(data)) {
|
|
75
|
+
throw new TypeError(
|
|
76
|
+
`Unmarshalling the type 'RaidController' failed as data isn't a dictionary.`
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
model: data.model,
|
|
81
|
+
raidLevel: data.raid_level
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
const unmarshalOfferAntiDosInfo = (data) => {
|
|
85
|
+
if (!json.isJSONObject(data)) {
|
|
86
|
+
throw new TypeError(
|
|
87
|
+
`Unmarshalling the type 'OfferAntiDosInfo' failed as data isn't a dictionary.`
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
type: data.type
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
const unmarshalOfferBackupInfo = (data) => {
|
|
95
|
+
if (!json.isJSONObject(data)) {
|
|
96
|
+
throw new TypeError(
|
|
97
|
+
`Unmarshalling the type 'OfferBackupInfo' failed as data isn't a dictionary.`
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
size: data.size
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
const unmarshalOfferBandwidthInfo = (data) => {
|
|
105
|
+
if (!json.isJSONObject(data)) {
|
|
106
|
+
throw new TypeError(
|
|
107
|
+
`Unmarshalling the type 'OfferBandwidthInfo' failed as data isn't a dictionary.`
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
speed: data.speed
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
const unmarshalOfferFailoverBlockInfo = (data) => {
|
|
115
|
+
if (!json.isJSONObject(data)) {
|
|
116
|
+
throw new TypeError(
|
|
117
|
+
`Unmarshalling the type 'OfferFailoverBlockInfo' failed as data isn't a dictionary.`
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : void 0
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
const unmarshalOfferFailoverIpInfo = (data) => {
|
|
125
|
+
if (!json.isJSONObject(data)) {
|
|
126
|
+
throw new TypeError(
|
|
127
|
+
`Unmarshalling the type 'OfferFailoverIpInfo' failed as data isn't a dictionary.`
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : void 0
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
const unmarshalOfferLicenseInfo = (data) => {
|
|
135
|
+
if (!json.isJSONObject(data)) {
|
|
136
|
+
throw new TypeError(
|
|
137
|
+
`Unmarshalling the type 'OfferLicenseInfo' failed as data isn't a dictionary.`
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
boundToIp: data.bound_to_ip
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
const unmarshalOfferRPNInfo = (data) => {
|
|
145
|
+
if (!json.isJSONObject(data)) {
|
|
146
|
+
throw new TypeError(
|
|
147
|
+
`Unmarshalling the type 'OfferRPNInfo' failed as data isn't a dictionary.`
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
speed: data.speed
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
const unmarshalOfferSANInfo = (data) => {
|
|
155
|
+
if (!json.isJSONObject(data)) {
|
|
156
|
+
throw new TypeError(
|
|
157
|
+
`Unmarshalling the type 'OfferSANInfo' failed as data isn't a dictionary.`
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
return {
|
|
161
|
+
deviceType: data.device_type,
|
|
162
|
+
ha: data.ha,
|
|
163
|
+
size: data.size
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
const unmarshalOfferServerInfo = (data) => {
|
|
167
|
+
if (!json.isJSONObject(data)) {
|
|
168
|
+
throw new TypeError(
|
|
169
|
+
`Unmarshalling the type 'OfferServerInfo' failed as data isn't a dictionary.`
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
availableOptions: marshalling.unmarshalArrayOfObject(
|
|
174
|
+
data.available_options,
|
|
175
|
+
unmarshalOffer
|
|
176
|
+
),
|
|
177
|
+
bandwidth: data.bandwidth,
|
|
178
|
+
commercialRange: data.commercial_range,
|
|
179
|
+
connectivity: data.connectivity,
|
|
180
|
+
cpus: marshalling.unmarshalArrayOfObject(data.cpus, unmarshalCPU),
|
|
181
|
+
disks: marshalling.unmarshalArrayOfObject(data.disks, unmarshalDisk),
|
|
182
|
+
memories: marshalling.unmarshalArrayOfObject(data.memories, unmarshalMemory),
|
|
183
|
+
onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : void 0,
|
|
184
|
+
persistentMemories: marshalling.unmarshalArrayOfObject(
|
|
185
|
+
data.persistent_memories,
|
|
186
|
+
unmarshalPersistentMemory
|
|
187
|
+
),
|
|
188
|
+
raidControllers: marshalling.unmarshalArrayOfObject(
|
|
189
|
+
data.raid_controllers,
|
|
190
|
+
unmarshalRaidController
|
|
191
|
+
),
|
|
192
|
+
rpnVersion: data.rpn_version,
|
|
193
|
+
stock: data.stock,
|
|
194
|
+
stockByDatacenter: data.stock_by_datacenter
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
const unmarshalOfferServiceLevelInfo = (data) => {
|
|
198
|
+
if (!json.isJSONObject(data)) {
|
|
199
|
+
throw new TypeError(
|
|
200
|
+
`Unmarshalling the type 'OfferServiceLevelInfo' failed as data isn't a dictionary.`
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
return {
|
|
204
|
+
antidos: data.antidos,
|
|
205
|
+
availableOptions: marshalling.unmarshalArrayOfObject(
|
|
206
|
+
data.available_options,
|
|
207
|
+
unmarshalOffer
|
|
208
|
+
),
|
|
209
|
+
customization: data.customization,
|
|
210
|
+
extraFailoverQuota: data.extra_failover_quota,
|
|
211
|
+
git: data.git,
|
|
212
|
+
highRpnBandwidth: data.high_rpn_bandwidth,
|
|
213
|
+
prioritySupport: data.priority_support,
|
|
214
|
+
salesSupport: data.sales_support,
|
|
215
|
+
sla: data.sla,
|
|
216
|
+
supportPhone: data.support_phone,
|
|
217
|
+
supportTicket: data.support_ticket
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
const unmarshalOfferStorageInfo = (data) => {
|
|
221
|
+
if (!json.isJSONObject(data)) {
|
|
222
|
+
throw new TypeError(
|
|
223
|
+
`Unmarshalling the type 'OfferStorageInfo' failed as data isn't a dictionary.`
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
return {
|
|
227
|
+
maxQuota: data.max_quota,
|
|
228
|
+
size: data.size
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
const unmarshalOffer = (data) => {
|
|
232
|
+
if (!json.isJSONObject(data)) {
|
|
233
|
+
throw new TypeError(
|
|
234
|
+
`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
return {
|
|
238
|
+
antidosInfo: data.antidos_info ? unmarshalOfferAntiDosInfo(data.antidos_info) : void 0,
|
|
239
|
+
backupInfo: data.backup_info ? unmarshalOfferBackupInfo(data.backup_info) : void 0,
|
|
240
|
+
bandwidthInfo: data.bandwidth_info ? unmarshalOfferBandwidthInfo(data.bandwidth_info) : void 0,
|
|
241
|
+
catalog: data.catalog,
|
|
242
|
+
failoverBlockInfo: data.failover_block_info ? unmarshalOfferFailoverBlockInfo(data.failover_block_info) : void 0,
|
|
243
|
+
failoverIpInfo: data.failover_ip_info ? unmarshalOfferFailoverIpInfo(data.failover_ip_info) : void 0,
|
|
244
|
+
id: data.id,
|
|
245
|
+
licenseInfo: data.license_info ? unmarshalOfferLicenseInfo(data.license_info) : void 0,
|
|
246
|
+
name: data.name,
|
|
247
|
+
paymentFrequency: data.payment_frequency,
|
|
248
|
+
pricing: data.pricing ? customMarshalling.unmarshalMoney(data.pricing) : void 0,
|
|
249
|
+
rpnInfo: data.rpn_info ? unmarshalOfferRPNInfo(data.rpn_info) : void 0,
|
|
250
|
+
sanInfo: data.san_info ? unmarshalOfferSANInfo(data.san_info) : void 0,
|
|
251
|
+
serverInfo: data.server_info ? unmarshalOfferServerInfo(data.server_info) : void 0,
|
|
252
|
+
serviceLevelInfo: data.service_level_info ? unmarshalOfferServiceLevelInfo(data.service_level_info) : void 0,
|
|
253
|
+
storageInfo: data.storage_info ? unmarshalOfferStorageInfo(data.storage_info) : void 0,
|
|
254
|
+
usbStorageInfo: data.usb_storage_info ? unmarshalOfferStorageInfo(data.usb_storage_info) : void 0
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
const unmarshalOS = (data) => {
|
|
258
|
+
if (!json.isJSONObject(data)) {
|
|
259
|
+
throw new TypeError(
|
|
260
|
+
`Unmarshalling the type 'OS' failed as data isn't a dictionary.`
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
return {
|
|
264
|
+
allowCustomPartitioning: data.allow_custom_partitioning,
|
|
265
|
+
allowSshKeys: data.allow_ssh_keys,
|
|
266
|
+
allowedFilesystems: data.allowed_filesystems,
|
|
267
|
+
arch: data.arch,
|
|
268
|
+
displayName: data.display_name,
|
|
269
|
+
hostnameMaxLength: data.hostname_max_length,
|
|
270
|
+
hostnameRegex: data.hostname_regex,
|
|
271
|
+
id: data.id,
|
|
272
|
+
licenseOffers: marshalling.unmarshalArrayOfObject(data.license_offers, unmarshalOffer),
|
|
273
|
+
maxPartitions: data.max_partitions,
|
|
274
|
+
name: data.name,
|
|
275
|
+
panelPasswordRegex: data.panel_password_regex,
|
|
276
|
+
passwordRegex: data.password_regex,
|
|
277
|
+
releasedAt: marshalling.unmarshalDate(data.released_at),
|
|
278
|
+
requiresAdminPassword: data.requires_admin_password,
|
|
279
|
+
requiresLicense: data.requires_license,
|
|
280
|
+
requiresPanelPassword: data.requires_panel_password,
|
|
281
|
+
requiresUser: data.requires_user,
|
|
282
|
+
requiresValidHostname: data.requires_valid_hostname,
|
|
283
|
+
type: data.type,
|
|
284
|
+
version: data.version
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
const unmarshalRpnSan = (data) => {
|
|
288
|
+
if (!json.isJSONObject(data)) {
|
|
289
|
+
throw new TypeError(
|
|
290
|
+
`Unmarshalling the type 'RpnSan' failed as data isn't a dictionary.`
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
295
|
+
datacenterName: data.datacenter_name,
|
|
296
|
+
deliveredAt: marshalling.unmarshalDate(data.delivered_at),
|
|
297
|
+
expiresAt: marshalling.unmarshalDate(data.expires_at),
|
|
298
|
+
id: data.id,
|
|
299
|
+
iqn: data.iqn,
|
|
300
|
+
iqnSuffix: data.iqn_suffix,
|
|
301
|
+
offer: data.offer ? unmarshalOffer(data.offer) : void 0,
|
|
302
|
+
offerId: data.offer_id,
|
|
303
|
+
offerName: data.offer_name,
|
|
304
|
+
organizationId: data.organization_id,
|
|
305
|
+
projectId: data.project_id,
|
|
306
|
+
rpnv1Compatible: data.rpnv1_compatible,
|
|
307
|
+
rpnv1Implicit: data.rpnv1_implicit,
|
|
308
|
+
serverHostname: data.server_hostname,
|
|
309
|
+
status: data.status,
|
|
310
|
+
storageSize: data.storage_size,
|
|
311
|
+
terminatedAt: marshalling.unmarshalDate(data.terminated_at)
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
const unmarshalRpnGroup = (data) => {
|
|
315
|
+
if (!json.isJSONObject(data)) {
|
|
316
|
+
throw new TypeError(
|
|
317
|
+
`Unmarshalling the type 'RpnGroup' failed as data isn't a dictionary.`
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
return {
|
|
321
|
+
active: data.active,
|
|
322
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
323
|
+
id: data.id,
|
|
324
|
+
membersCount: data.members_count,
|
|
325
|
+
name: data.name,
|
|
326
|
+
organizationId: data.organization_id,
|
|
327
|
+
owner: data.owner,
|
|
328
|
+
projectId: data.project_id,
|
|
329
|
+
type: data.type
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
const unmarshalNetworkInterface = (data) => {
|
|
333
|
+
if (!json.isJSONObject(data)) {
|
|
334
|
+
throw new TypeError(
|
|
335
|
+
`Unmarshalling the type 'NetworkInterface' failed as data isn't a dictionary.`
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
return {
|
|
339
|
+
cardId: data.card_id,
|
|
340
|
+
deviceId: data.device_id,
|
|
341
|
+
ips: marshalling.unmarshalArrayOfObject(data.ips, unmarshalIP),
|
|
342
|
+
mac: data.mac,
|
|
343
|
+
type: data.type
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
const unmarshalServerLocation = (data) => {
|
|
347
|
+
if (!json.isJSONObject(data)) {
|
|
348
|
+
throw new TypeError(
|
|
349
|
+
`Unmarshalling the type 'ServerLocation' failed as data isn't a dictionary.`
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
return {
|
|
353
|
+
datacenterName: data.datacenter_name,
|
|
354
|
+
rack: data.rack,
|
|
355
|
+
room: data.room
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
const unmarshalServerOption = (data) => {
|
|
359
|
+
if (!json.isJSONObject(data)) {
|
|
360
|
+
throw new TypeError(
|
|
361
|
+
`Unmarshalling the type 'ServerOption' failed as data isn't a dictionary.`
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
return {
|
|
365
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
366
|
+
expiredAt: marshalling.unmarshalDate(data.expired_at),
|
|
367
|
+
offer: data.offer ? unmarshalOffer(data.offer) : void 0,
|
|
368
|
+
options: marshalling.unmarshalArrayOfObject(data.options, unmarshalServerOption),
|
|
369
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
const unmarshalServiceLevel = (data) => {
|
|
373
|
+
if (!json.isJSONObject(data)) {
|
|
374
|
+
throw new TypeError(
|
|
375
|
+
`Unmarshalling the type 'ServiceLevel' failed as data isn't a dictionary.`
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
return {
|
|
379
|
+
level: data.level,
|
|
380
|
+
offerId: data.offer_id
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
const unmarshalServer = (data) => {
|
|
384
|
+
if (!json.isJSONObject(data)) {
|
|
385
|
+
throw new TypeError(
|
|
386
|
+
`Unmarshalling the type 'Server' failed as data isn't a dictionary.`
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
return {
|
|
390
|
+
abuseContact: data.abuse_contact,
|
|
391
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
392
|
+
expiredAt: marshalling.unmarshalDate(data.expired_at),
|
|
393
|
+
hasBmc: data.has_bmc,
|
|
394
|
+
hostname: data.hostname,
|
|
395
|
+
id: data.id,
|
|
396
|
+
interfaces: marshalling.unmarshalArrayOfObject(
|
|
397
|
+
data.interfaces,
|
|
398
|
+
unmarshalNetworkInterface
|
|
399
|
+
),
|
|
400
|
+
ipv6Slaac: data.ipv6_slaac,
|
|
401
|
+
isOutsourced: data.is_outsourced,
|
|
402
|
+
isRpnv2Member: data.is_rpnv2_member,
|
|
403
|
+
level: data.level ? unmarshalServiceLevel(data.level) : void 0,
|
|
404
|
+
location: data.location ? unmarshalServerLocation(data.location) : void 0,
|
|
405
|
+
offer: data.offer ? unmarshalOffer(data.offer) : void 0,
|
|
406
|
+
options: marshalling.unmarshalArrayOfObject(data.options, unmarshalServerOption),
|
|
407
|
+
organizationId: data.organization_id,
|
|
408
|
+
os: data.os ? unmarshalOS(data.os) : void 0,
|
|
409
|
+
projectId: data.project_id,
|
|
410
|
+
qinq: data.qinq,
|
|
411
|
+
rebootedAt: marshalling.unmarshalDate(data.rebooted_at),
|
|
412
|
+
rescueOs: data.rescue_os ? unmarshalOS(data.rescue_os) : void 0,
|
|
413
|
+
status: data.status,
|
|
414
|
+
tags: data.tags,
|
|
415
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at),
|
|
416
|
+
zone: data.zone
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
const unmarshalRpnV2GroupSubnet = (data) => {
|
|
420
|
+
if (!json.isJSONObject(data)) {
|
|
421
|
+
throw new TypeError(
|
|
422
|
+
`Unmarshalling the type 'RpnV2GroupSubnet' failed as data isn't a dictionary.`
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
return {
|
|
426
|
+
address: data.address,
|
|
427
|
+
cidr: data.cidr
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
const unmarshalRpnV2Group = (data) => {
|
|
431
|
+
if (!json.isJSONObject(data)) {
|
|
432
|
+
throw new TypeError(
|
|
433
|
+
`Unmarshalling the type 'RpnV2Group' failed as data isn't a dictionary.`
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
return {
|
|
437
|
+
compatibleRpnv1: data.compatible_rpnv1,
|
|
438
|
+
gateway: data.gateway,
|
|
439
|
+
id: data.id,
|
|
440
|
+
membersCount: data.members_count,
|
|
441
|
+
name: data.name,
|
|
442
|
+
organizationId: data.organization_id,
|
|
443
|
+
owner: data.owner,
|
|
444
|
+
projectId: data.project_id,
|
|
445
|
+
rpnv1Group: data.rpnv1_group ? unmarshalRpnGroup(data.rpnv1_group) : void 0,
|
|
446
|
+
status: data.status,
|
|
447
|
+
subnet: data.subnet ? unmarshalRpnV2GroupSubnet(data.subnet) : void 0,
|
|
448
|
+
type: data.type
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
const unmarshalService = (data) => {
|
|
452
|
+
if (!json.isJSONObject(data)) {
|
|
453
|
+
throw new TypeError(
|
|
454
|
+
`Unmarshalling the type 'Service' failed as data isn't a dictionary.`
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
return {
|
|
458
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
459
|
+
deliveredAt: marshalling.unmarshalDate(data.delivered_at),
|
|
460
|
+
expiresAt: marshalling.unmarshalDate(data.expires_at),
|
|
461
|
+
id: data.id,
|
|
462
|
+
offer: data.offer ? unmarshalOffer(data.offer) : void 0,
|
|
463
|
+
provisioningStatus: data.provisioning_status,
|
|
464
|
+
resourceId: data.resource_id,
|
|
465
|
+
terminatedAt: marshalling.unmarshalDate(data.terminated_at),
|
|
466
|
+
type: data.type
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
const unmarshalFailoverBlock = (data) => {
|
|
470
|
+
if (!json.isJSONObject(data)) {
|
|
471
|
+
throw new TypeError(
|
|
472
|
+
`Unmarshalling the type 'FailoverBlock' failed as data isn't a dictionary.`
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
return {
|
|
476
|
+
address: data.address,
|
|
477
|
+
cidr: data.cidr,
|
|
478
|
+
gatewayIp: data.gateway_ip,
|
|
479
|
+
id: data.id,
|
|
480
|
+
ipVersion: data.ip_version,
|
|
481
|
+
nameservers: data.nameservers,
|
|
482
|
+
netmask: data.netmask
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
const unmarshalFailoverIP = (data) => {
|
|
486
|
+
if (!json.isJSONObject(data)) {
|
|
487
|
+
throw new TypeError(
|
|
488
|
+
`Unmarshalling the type 'FailoverIP' failed as data isn't a dictionary.`
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
return {
|
|
492
|
+
address: data.address,
|
|
493
|
+
block: data.block ? unmarshalFailoverBlock(data.block) : void 0,
|
|
494
|
+
cidr: data.cidr,
|
|
495
|
+
gatewayIp: data.gateway_ip,
|
|
496
|
+
id: data.id,
|
|
497
|
+
ipVersion: data.ip_version,
|
|
498
|
+
mac: data.mac,
|
|
499
|
+
netmask: data.netmask,
|
|
500
|
+
reverse: data.reverse,
|
|
501
|
+
serverId: data.server_id,
|
|
502
|
+
serverZone: data.server_zone,
|
|
503
|
+
status: data.status,
|
|
504
|
+
type: data.type
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
const unmarshalBMCAccess = (data) => {
|
|
508
|
+
if (!json.isJSONObject(data)) {
|
|
509
|
+
throw new TypeError(
|
|
510
|
+
`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
return {
|
|
514
|
+
expiresAt: marshalling.unmarshalDate(data.expires_at),
|
|
515
|
+
login: data.login,
|
|
516
|
+
password: data.password,
|
|
517
|
+
status: data.status,
|
|
518
|
+
url: data.url
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
const unmarshalBackup = (data) => {
|
|
522
|
+
if (!json.isJSONObject(data)) {
|
|
523
|
+
throw new TypeError(
|
|
524
|
+
`Unmarshalling the type 'Backup' failed as data isn't a dictionary.`
|
|
525
|
+
);
|
|
526
|
+
}
|
|
527
|
+
return {
|
|
528
|
+
aclEnabled: data.acl_enabled,
|
|
529
|
+
autologin: data.autologin,
|
|
530
|
+
id: data.id,
|
|
531
|
+
login: data.login,
|
|
532
|
+
quotaFiles: data.quota_files,
|
|
533
|
+
quotaFilesUsed: data.quota_files_used,
|
|
534
|
+
quotaSpace: data.quota_space,
|
|
535
|
+
quotaSpaceUsed: data.quota_space_used,
|
|
536
|
+
server: data.server,
|
|
537
|
+
status: data.status
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
const unmarshalCanOrderResponse = (data) => {
|
|
541
|
+
if (!json.isJSONObject(data)) {
|
|
542
|
+
throw new TypeError(
|
|
543
|
+
`Unmarshalling the type 'CanOrderResponse' failed as data isn't a dictionary.`
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
return {
|
|
547
|
+
billingOk: data.billing_ok,
|
|
548
|
+
canOrder: data.can_order,
|
|
549
|
+
emailConfirmed: data.email_confirmed,
|
|
550
|
+
message: data.message,
|
|
551
|
+
paymentMode: data.payment_mode,
|
|
552
|
+
phoneConfirmed: data.phone_confirmed,
|
|
553
|
+
quotaOk: data.quota_ok,
|
|
554
|
+
userConfirmed: data.user_confirmed
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
const unmarshalCreateFailoverIPsResponse = (data) => {
|
|
558
|
+
if (!json.isJSONObject(data)) {
|
|
559
|
+
throw new TypeError(
|
|
560
|
+
`Unmarshalling the type 'CreateFailoverIPsResponse' failed as data isn't a dictionary.`
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
return {
|
|
564
|
+
services: marshalling.unmarshalArrayOfObject(data.services, unmarshalService),
|
|
565
|
+
totalCount: data.total_count
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
const unmarshalGetIPv6BlockQuotasResponseQuota = (data) => {
|
|
569
|
+
if (!json.isJSONObject(data)) {
|
|
570
|
+
throw new TypeError(
|
|
571
|
+
`Unmarshalling the type 'GetIPv6BlockQuotasResponseQuota' failed as data isn't a dictionary.`
|
|
572
|
+
);
|
|
573
|
+
}
|
|
574
|
+
return {
|
|
575
|
+
cidr: data.cidr,
|
|
576
|
+
quota: data.quota
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
const unmarshalGetIPv6BlockQuotasResponse = (data) => {
|
|
580
|
+
if (!json.isJSONObject(data)) {
|
|
581
|
+
throw new TypeError(
|
|
582
|
+
`Unmarshalling the type 'GetIPv6BlockQuotasResponse' failed as data isn't a dictionary.`
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
return {
|
|
586
|
+
quotas: marshalling.unmarshalArrayOfObject(
|
|
587
|
+
data.quotas,
|
|
588
|
+
unmarshalGetIPv6BlockQuotasResponseQuota
|
|
589
|
+
),
|
|
590
|
+
totalCount: data.total_count
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
const unmarshalGetRemainingQuotaResponse = (data) => {
|
|
594
|
+
if (!json.isJSONObject(data)) {
|
|
595
|
+
throw new TypeError(
|
|
596
|
+
`Unmarshalling the type 'GetRemainingQuotaResponse' failed as data isn't a dictionary.`
|
|
597
|
+
);
|
|
598
|
+
}
|
|
599
|
+
return {
|
|
600
|
+
failoverBlockQuota: data.failover_block_quota,
|
|
601
|
+
failoverBlockRemainingQuota: data.failover_block_remaining_quota,
|
|
602
|
+
failoverIpQuota: data.failover_ip_quota,
|
|
603
|
+
failoverIpRemainingQuota: data.failover_ip_remaining_quota
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
const unmarshalGetRpnStatusResponse = (data) => {
|
|
607
|
+
if (!json.isJSONObject(data)) {
|
|
608
|
+
throw new TypeError(
|
|
609
|
+
`Unmarshalling the type 'GetRpnStatusResponse' failed as data isn't a dictionary.`
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
return {
|
|
613
|
+
operationsLeft: data.operations_left,
|
|
614
|
+
status: data.status
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
const unmarshalIPv6Block = (data) => {
|
|
618
|
+
if (!json.isJSONObject(data)) {
|
|
619
|
+
throw new TypeError(
|
|
620
|
+
`Unmarshalling the type 'IPv6Block' failed as data isn't a dictionary.`
|
|
621
|
+
);
|
|
622
|
+
}
|
|
623
|
+
return {
|
|
624
|
+
address: data.address,
|
|
625
|
+
cidr: data.cidr,
|
|
626
|
+
delegationStatus: data.delegation_status,
|
|
627
|
+
duid: data.duid,
|
|
628
|
+
id: data.id,
|
|
629
|
+
nameservers: data.nameservers,
|
|
630
|
+
subnets: marshalling.unmarshalArrayOfObject(data.subnets, unmarshalIPv6Block)
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
const unmarshalInvoice = (data) => {
|
|
634
|
+
if (!json.isJSONObject(data)) {
|
|
635
|
+
throw new TypeError(
|
|
636
|
+
`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`
|
|
637
|
+
);
|
|
638
|
+
}
|
|
639
|
+
return {
|
|
640
|
+
content: data.content,
|
|
641
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
642
|
+
id: data.id,
|
|
643
|
+
paidAt: marshalling.unmarshalDate(data.paid_at),
|
|
644
|
+
paymentMethod: data.payment_method,
|
|
645
|
+
status: data.status,
|
|
646
|
+
totalWithTaxes: data.total_with_taxes ? customMarshalling.unmarshalMoney(data.total_with_taxes) : void 0,
|
|
647
|
+
totalWithoutTaxes: data.total_without_taxes ? customMarshalling.unmarshalMoney(data.total_without_taxes) : void 0,
|
|
648
|
+
transactionId: data.transaction_id
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
const unmarshalListFailoverIPsResponse = (data) => {
|
|
652
|
+
if (!json.isJSONObject(data)) {
|
|
653
|
+
throw new TypeError(
|
|
654
|
+
`Unmarshalling the type 'ListFailoverIPsResponse' failed as data isn't a dictionary.`
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
return {
|
|
658
|
+
failoverIps: marshalling.unmarshalArrayOfObject(data.failover_ips, unmarshalFailoverIP),
|
|
659
|
+
totalCount: data.total_count
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
const unmarshalListIPv6BlockSubnetsAvailableResponseSubnet = (data) => {
|
|
663
|
+
if (!json.isJSONObject(data)) {
|
|
664
|
+
throw new TypeError(
|
|
665
|
+
`Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponseSubnet' failed as data isn't a dictionary.`
|
|
666
|
+
);
|
|
667
|
+
}
|
|
668
|
+
return {
|
|
669
|
+
address: data.address,
|
|
670
|
+
cidr: data.cidr
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
const unmarshalListIPv6BlockSubnetsAvailableResponse = (data) => {
|
|
674
|
+
if (!json.isJSONObject(data)) {
|
|
675
|
+
throw new TypeError(
|
|
676
|
+
`Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponse' failed as data isn't a dictionary.`
|
|
677
|
+
);
|
|
678
|
+
}
|
|
679
|
+
return {
|
|
680
|
+
subnetAvailables: marshalling.unmarshalArrayOfObject(
|
|
681
|
+
data.subnet_availables,
|
|
682
|
+
unmarshalListIPv6BlockSubnetsAvailableResponseSubnet
|
|
683
|
+
),
|
|
684
|
+
totalCount: data.total_count
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
const unmarshalInvoiceSummary = (data) => {
|
|
688
|
+
if (!json.isJSONObject(data)) {
|
|
689
|
+
throw new TypeError(
|
|
690
|
+
`Unmarshalling the type 'InvoiceSummary' failed as data isn't a dictionary.`
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
return {
|
|
694
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
695
|
+
id: data.id,
|
|
696
|
+
paidAt: marshalling.unmarshalDate(data.paid_at),
|
|
697
|
+
paymentMethod: data.payment_method,
|
|
698
|
+
status: data.status,
|
|
699
|
+
totalWithTaxes: data.total_with_taxes ? customMarshalling.unmarshalMoney(data.total_with_taxes) : void 0,
|
|
700
|
+
totalWithoutTaxes: data.total_without_taxes ? customMarshalling.unmarshalMoney(data.total_without_taxes) : void 0,
|
|
701
|
+
transactionId: data.transaction_id
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
const unmarshalListInvoicesResponse = (data) => {
|
|
705
|
+
if (!json.isJSONObject(data)) {
|
|
706
|
+
throw new TypeError(
|
|
707
|
+
`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`
|
|
708
|
+
);
|
|
709
|
+
}
|
|
710
|
+
return {
|
|
711
|
+
invoices: marshalling.unmarshalArrayOfObject(data.invoices, unmarshalInvoiceSummary),
|
|
712
|
+
totalCount: data.total_count
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
const unmarshalRpnSanIpRpnV2Group = (data) => {
|
|
716
|
+
if (!json.isJSONObject(data)) {
|
|
717
|
+
throw new TypeError(
|
|
718
|
+
`Unmarshalling the type 'RpnSanIpRpnV2Group' failed as data isn't a dictionary.`
|
|
719
|
+
);
|
|
720
|
+
}
|
|
721
|
+
return {
|
|
722
|
+
id: data.id,
|
|
723
|
+
name: data.name
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
const unmarshalRpnSanIpServer = (data) => {
|
|
727
|
+
if (!json.isJSONObject(data)) {
|
|
728
|
+
throw new TypeError(
|
|
729
|
+
`Unmarshalling the type 'RpnSanIpServer' failed as data isn't a dictionary.`
|
|
730
|
+
);
|
|
731
|
+
}
|
|
732
|
+
return {
|
|
733
|
+
datacenterName: data.datacenter_name,
|
|
734
|
+
hostname: data.hostname,
|
|
735
|
+
id: data.id
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
const unmarshalRpnSanIp = (data) => {
|
|
739
|
+
if (!json.isJSONObject(data)) {
|
|
740
|
+
throw new TypeError(
|
|
741
|
+
`Unmarshalling the type 'RpnSanIp' failed as data isn't a dictionary.`
|
|
742
|
+
);
|
|
743
|
+
}
|
|
744
|
+
return {
|
|
745
|
+
ip: data.ip ? unmarshalIP(data.ip) : void 0,
|
|
746
|
+
rpnv2Group: data.rpnv2_group ? unmarshalRpnSanIpRpnV2Group(data.rpnv2_group) : void 0,
|
|
747
|
+
server: data.server ? unmarshalRpnSanIpServer(data.server) : void 0,
|
|
748
|
+
type: data.type
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
const unmarshalListIpsResponse = (data) => {
|
|
752
|
+
if (!json.isJSONObject(data)) {
|
|
753
|
+
throw new TypeError(
|
|
754
|
+
`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
return {
|
|
758
|
+
ips: marshalling.unmarshalArrayOfObject(data.ips, unmarshalRpnSanIp),
|
|
759
|
+
totalCount: data.total_count
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
const unmarshalListOSResponse = (data) => {
|
|
763
|
+
if (!json.isJSONObject(data)) {
|
|
764
|
+
throw new TypeError(
|
|
765
|
+
`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
return {
|
|
769
|
+
os: marshalling.unmarshalArrayOfObject(data.os, unmarshalOS),
|
|
770
|
+
totalCount: data.total_count
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
const unmarshalListOffersResponse = (data) => {
|
|
774
|
+
if (!json.isJSONObject(data)) {
|
|
775
|
+
throw new TypeError(
|
|
776
|
+
`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
return {
|
|
780
|
+
offers: marshalling.unmarshalArrayOfObject(data.offers, unmarshalOffer),
|
|
781
|
+
totalCount: data.total_count
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
const unmarshalRefundSummary = (data) => {
|
|
785
|
+
if (!json.isJSONObject(data)) {
|
|
786
|
+
throw new TypeError(
|
|
787
|
+
`Unmarshalling the type 'RefundSummary' failed as data isn't a dictionary.`
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
return {
|
|
791
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
792
|
+
id: data.id,
|
|
793
|
+
method: data.method,
|
|
794
|
+
refundedAt: marshalling.unmarshalDate(data.refunded_at),
|
|
795
|
+
status: data.status,
|
|
796
|
+
totalWithTaxes: data.total_with_taxes ? customMarshalling.unmarshalMoney(data.total_with_taxes) : void 0,
|
|
797
|
+
totalWithoutTaxes: data.total_without_taxes ? customMarshalling.unmarshalMoney(data.total_without_taxes) : void 0
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
const unmarshalListRefundsResponse = (data) => {
|
|
801
|
+
if (!json.isJSONObject(data)) {
|
|
802
|
+
throw new TypeError(
|
|
803
|
+
`Unmarshalling the type 'ListRefundsResponse' failed as data isn't a dictionary.`
|
|
804
|
+
);
|
|
805
|
+
}
|
|
806
|
+
return {
|
|
807
|
+
refunds: marshalling.unmarshalArrayOfObject(data.refunds, unmarshalRefundSummary),
|
|
808
|
+
totalCount: data.total_count
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
const unmarshalRpnSanServer = (data) => {
|
|
812
|
+
if (!json.isJSONObject(data)) {
|
|
813
|
+
throw new TypeError(
|
|
814
|
+
`Unmarshalling the type 'RpnSanServer' failed as data isn't a dictionary.`
|
|
815
|
+
);
|
|
816
|
+
}
|
|
817
|
+
return {
|
|
818
|
+
datacenterName: data.datacenter_name,
|
|
819
|
+
hostname: data.hostname,
|
|
820
|
+
id: data.id,
|
|
821
|
+
sans: marshalling.unmarshalArrayOfObject(data.sans, unmarshalRpnSan),
|
|
822
|
+
zone: data.zone
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
const unmarshalListRpnCapableSanServersResponse = (data) => {
|
|
826
|
+
if (!json.isJSONObject(data)) {
|
|
827
|
+
throw new TypeError(
|
|
828
|
+
`Unmarshalling the type 'ListRpnCapableSanServersResponse' failed as data isn't a dictionary.`
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
return {
|
|
832
|
+
sanServers: marshalling.unmarshalArrayOfObject(data.san_servers, unmarshalRpnSanServer),
|
|
833
|
+
totalCount: data.total_count
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
const unmarshalListRpnCapableServersResponse = (data) => {
|
|
837
|
+
if (!json.isJSONObject(data)) {
|
|
838
|
+
throw new TypeError(
|
|
839
|
+
`Unmarshalling the type 'ListRpnCapableServersResponse' failed as data isn't a dictionary.`
|
|
840
|
+
);
|
|
841
|
+
}
|
|
842
|
+
return {
|
|
843
|
+
servers: marshalling.unmarshalArrayOfObject(data.servers, unmarshalServer),
|
|
844
|
+
totalCount: data.total_count
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
const unmarshalRpnGroupMember = (data) => {
|
|
848
|
+
if (!json.isJSONObject(data)) {
|
|
849
|
+
throw new TypeError(
|
|
850
|
+
`Unmarshalling the type 'RpnGroupMember' failed as data isn't a dictionary.`
|
|
851
|
+
);
|
|
852
|
+
}
|
|
853
|
+
return {
|
|
854
|
+
groupId: data.group_id,
|
|
855
|
+
groupName: data.group_name,
|
|
856
|
+
groupOwner: data.group_owner,
|
|
857
|
+
id: data.id,
|
|
858
|
+
owner: data.owner,
|
|
859
|
+
sanServer: data.san_server ? unmarshalRpnSanServer(data.san_server) : void 0,
|
|
860
|
+
server: data.server ? unmarshalServer(data.server) : void 0,
|
|
861
|
+
speed: data.speed,
|
|
862
|
+
status: data.status
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
const unmarshalListRpnGroupMembersResponse = (data) => {
|
|
866
|
+
if (!json.isJSONObject(data)) {
|
|
867
|
+
throw new TypeError(
|
|
868
|
+
`Unmarshalling the type 'ListRpnGroupMembersResponse' failed as data isn't a dictionary.`
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
return {
|
|
872
|
+
members: marshalling.unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
|
|
873
|
+
totalCount: data.total_count
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
const unmarshalListRpnGroupsResponse = (data) => {
|
|
877
|
+
if (!json.isJSONObject(data)) {
|
|
878
|
+
throw new TypeError(
|
|
879
|
+
`Unmarshalling the type 'ListRpnGroupsResponse' failed as data isn't a dictionary.`
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
return {
|
|
883
|
+
rpnGroups: marshalling.unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnGroup),
|
|
884
|
+
totalCount: data.total_count
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
const unmarshalListRpnInvitesResponse = (data) => {
|
|
888
|
+
if (!json.isJSONObject(data)) {
|
|
889
|
+
throw new TypeError(
|
|
890
|
+
`Unmarshalling the type 'ListRpnInvitesResponse' failed as data isn't a dictionary.`
|
|
891
|
+
);
|
|
892
|
+
}
|
|
893
|
+
return {
|
|
894
|
+
members: marshalling.unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
|
|
895
|
+
totalCount: data.total_count
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
const unmarshalRpnSanSummary = (data) => {
|
|
899
|
+
if (!json.isJSONObject(data)) {
|
|
900
|
+
throw new TypeError(
|
|
901
|
+
`Unmarshalling the type 'RpnSanSummary' failed as data isn't a dictionary.`
|
|
902
|
+
);
|
|
903
|
+
}
|
|
904
|
+
return {
|
|
905
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
906
|
+
datacenterName: data.datacenter_name,
|
|
907
|
+
deliveredAt: marshalling.unmarshalDate(data.delivered_at),
|
|
908
|
+
expiresAt: marshalling.unmarshalDate(data.expires_at),
|
|
909
|
+
id: data.id,
|
|
910
|
+
iqnSuffix: data.iqn_suffix,
|
|
911
|
+
offerId: data.offer_id,
|
|
912
|
+
offerName: data.offer_name,
|
|
913
|
+
organizationId: data.organization_id,
|
|
914
|
+
projectId: data.project_id,
|
|
915
|
+
rpnv1Compatible: data.rpnv1_compatible,
|
|
916
|
+
rpnv1Implicit: data.rpnv1_implicit,
|
|
917
|
+
serverHostname: data.server_hostname,
|
|
918
|
+
status: data.status,
|
|
919
|
+
storageSize: data.storage_size,
|
|
920
|
+
terminatedAt: marshalling.unmarshalDate(data.terminated_at)
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
const unmarshalListRpnSansResponse = (data) => {
|
|
924
|
+
if (!json.isJSONObject(data)) {
|
|
925
|
+
throw new TypeError(
|
|
926
|
+
`Unmarshalling the type 'ListRpnSansResponse' failed as data isn't a dictionary.`
|
|
927
|
+
);
|
|
928
|
+
}
|
|
929
|
+
return {
|
|
930
|
+
rpnSans: marshalling.unmarshalArrayOfObject(data.rpn_sans, unmarshalRpnSanSummary),
|
|
931
|
+
totalCount: data.total_count
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
const unmarshalRpnServerCapability = (data) => {
|
|
935
|
+
if (!json.isJSONObject(data)) {
|
|
936
|
+
throw new TypeError(
|
|
937
|
+
`Unmarshalling the type 'RpnServerCapability' failed as data isn't a dictionary.`
|
|
938
|
+
);
|
|
939
|
+
}
|
|
940
|
+
return {
|
|
941
|
+
canJoinQinqGroup: data.can_join_qinq_group,
|
|
942
|
+
canJoinRpnv2Group: data.can_join_rpnv2_group,
|
|
943
|
+
compatibleQinq: data.compatible_qinq,
|
|
944
|
+
datacenterName: data.datacenter_name,
|
|
945
|
+
hostname: data.hostname,
|
|
946
|
+
id: data.id,
|
|
947
|
+
ipAddress: data.ip_address,
|
|
948
|
+
rpnVersion: data.rpn_version,
|
|
949
|
+
rpnv1GroupCount: data.rpnv1_group_count,
|
|
950
|
+
rpnv2GroupCount: data.rpnv2_group_count,
|
|
951
|
+
zone: data.zone
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
const unmarshalListRpnServerCapabilitiesResponse = (data) => {
|
|
955
|
+
if (!json.isJSONObject(data)) {
|
|
956
|
+
throw new TypeError(
|
|
957
|
+
`Unmarshalling the type 'ListRpnServerCapabilitiesResponse' failed as data isn't a dictionary.`
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
return {
|
|
961
|
+
servers: marshalling.unmarshalArrayOfObject(data.servers, unmarshalRpnServerCapability),
|
|
962
|
+
totalCount: data.total_count
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
const unmarshalListRpnV2CapableResourcesResponse = (data) => {
|
|
966
|
+
if (!json.isJSONObject(data)) {
|
|
967
|
+
throw new TypeError(
|
|
968
|
+
`Unmarshalling the type 'ListRpnV2CapableResourcesResponse' failed as data isn't a dictionary.`
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
return {
|
|
972
|
+
servers: marshalling.unmarshalArrayOfObject(data.servers, unmarshalServer),
|
|
973
|
+
totalCount: data.total_count
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
const unmarshalRpnV2Member = (data) => {
|
|
977
|
+
if (!json.isJSONObject(data)) {
|
|
978
|
+
throw new TypeError(
|
|
979
|
+
`Unmarshalling the type 'RpnV2Member' failed as data isn't a dictionary.`
|
|
980
|
+
);
|
|
981
|
+
}
|
|
982
|
+
return {
|
|
983
|
+
id: data.id,
|
|
984
|
+
rpnv1Group: data.rpnv1_group ? unmarshalRpnGroup(data.rpnv1_group) : void 0,
|
|
985
|
+
server: data.server ? unmarshalServer(data.server) : void 0,
|
|
986
|
+
speed: data.speed,
|
|
987
|
+
status: data.status,
|
|
988
|
+
vlan: data.vlan
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
const unmarshalLog = (data) => {
|
|
992
|
+
if (!json.isJSONObject(data)) {
|
|
993
|
+
throw new TypeError(
|
|
994
|
+
`Unmarshalling the type 'Log' failed as data isn't a dictionary.`
|
|
995
|
+
);
|
|
996
|
+
}
|
|
997
|
+
return {
|
|
998
|
+
action: data.action,
|
|
999
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
1000
|
+
finishedAt: marshalling.unmarshalDate(data.finished_at),
|
|
1001
|
+
group: data.group ? unmarshalRpnV2Group(data.group) : void 0,
|
|
1002
|
+
id: data.id,
|
|
1003
|
+
member: data.member ? unmarshalRpnV2Member(data.member) : void 0,
|
|
1004
|
+
status: data.status
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
const unmarshalListRpnV2GroupLogsResponse = (data) => {
|
|
1008
|
+
if (!json.isJSONObject(data)) {
|
|
1009
|
+
throw new TypeError(
|
|
1010
|
+
`Unmarshalling the type 'ListRpnV2GroupLogsResponse' failed as data isn't a dictionary.`
|
|
1011
|
+
);
|
|
1012
|
+
}
|
|
1013
|
+
return {
|
|
1014
|
+
logs: marshalling.unmarshalArrayOfObject(data.logs, unmarshalLog),
|
|
1015
|
+
totalCount: data.total_count
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
const unmarshalListRpnV2GroupsResponse = (data) => {
|
|
1019
|
+
if (!json.isJSONObject(data)) {
|
|
1020
|
+
throw new TypeError(
|
|
1021
|
+
`Unmarshalling the type 'ListRpnV2GroupsResponse' failed as data isn't a dictionary.`
|
|
1022
|
+
);
|
|
1023
|
+
}
|
|
1024
|
+
return {
|
|
1025
|
+
rpnGroups: marshalling.unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnV2Group),
|
|
1026
|
+
totalCount: data.total_count
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
const unmarshalListRpnV2MembersResponse = (data) => {
|
|
1030
|
+
if (!json.isJSONObject(data)) {
|
|
1031
|
+
throw new TypeError(
|
|
1032
|
+
`Unmarshalling the type 'ListRpnV2MembersResponse' failed as data isn't a dictionary.`
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
return {
|
|
1036
|
+
members: marshalling.unmarshalArrayOfObject(data.members, unmarshalRpnV2Member),
|
|
1037
|
+
totalCount: data.total_count
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
const unmarshalServerDisk = (data) => {
|
|
1041
|
+
if (!json.isJSONObject(data)) {
|
|
1042
|
+
throw new TypeError(
|
|
1043
|
+
`Unmarshalling the type 'ServerDisk' failed as data isn't a dictionary.`
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
return {
|
|
1047
|
+
capacity: data.capacity,
|
|
1048
|
+
connector: data.connector,
|
|
1049
|
+
id: data.id,
|
|
1050
|
+
isAddon: data.is_addon,
|
|
1051
|
+
type: data.type
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
const unmarshalListServerDisksResponse = (data) => {
|
|
1055
|
+
if (!json.isJSONObject(data)) {
|
|
1056
|
+
throw new TypeError(
|
|
1057
|
+
`Unmarshalling the type 'ListServerDisksResponse' failed as data isn't a dictionary.`
|
|
1058
|
+
);
|
|
1059
|
+
}
|
|
1060
|
+
return {
|
|
1061
|
+
disks: marshalling.unmarshalArrayOfObject(data.disks, unmarshalServerDisk),
|
|
1062
|
+
totalCount: data.total_count
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
const unmarshalServerEvent = (data) => {
|
|
1066
|
+
if (!json.isJSONObject(data)) {
|
|
1067
|
+
throw new TypeError(
|
|
1068
|
+
`Unmarshalling the type 'ServerEvent' failed as data isn't a dictionary.`
|
|
1069
|
+
);
|
|
1070
|
+
}
|
|
1071
|
+
return {
|
|
1072
|
+
date: marshalling.unmarshalDate(data.date),
|
|
1073
|
+
description: data.description,
|
|
1074
|
+
eventId: data.event_id
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
1077
|
+
const unmarshalListServerEventsResponse = (data) => {
|
|
1078
|
+
if (!json.isJSONObject(data)) {
|
|
1079
|
+
throw new TypeError(
|
|
1080
|
+
`Unmarshalling the type 'ListServerEventsResponse' failed as data isn't a dictionary.`
|
|
1081
|
+
);
|
|
1082
|
+
}
|
|
1083
|
+
return {
|
|
1084
|
+
events: marshalling.unmarshalArrayOfObject(data.events, unmarshalServerEvent),
|
|
1085
|
+
totalCount: data.total_count
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
const unmarshalServerSummary = (data) => {
|
|
1089
|
+
if (!json.isJSONObject(data)) {
|
|
1090
|
+
throw new TypeError(
|
|
1091
|
+
`Unmarshalling the type 'ServerSummary' failed as data isn't a dictionary.`
|
|
1092
|
+
);
|
|
1093
|
+
}
|
|
1094
|
+
return {
|
|
1095
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
1096
|
+
datacenterName: data.datacenter_name,
|
|
1097
|
+
expiredAt: marshalling.unmarshalDate(data.expired_at),
|
|
1098
|
+
hostname: data.hostname,
|
|
1099
|
+
id: data.id,
|
|
1100
|
+
interfaces: marshalling.unmarshalArrayOfObject(
|
|
1101
|
+
data.interfaces,
|
|
1102
|
+
unmarshalNetworkInterface
|
|
1103
|
+
),
|
|
1104
|
+
isOutsourced: data.is_outsourced,
|
|
1105
|
+
level: data.level ? unmarshalServiceLevel(data.level) : void 0,
|
|
1106
|
+
offerId: data.offer_id,
|
|
1107
|
+
offerName: data.offer_name,
|
|
1108
|
+
organizationId: data.organization_id,
|
|
1109
|
+
osId: data.os_id,
|
|
1110
|
+
projectId: data.project_id,
|
|
1111
|
+
qinq: data.qinq,
|
|
1112
|
+
rpnVersion: data.rpn_version,
|
|
1113
|
+
status: data.status,
|
|
1114
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at),
|
|
1115
|
+
zone: data.zone
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
const unmarshalListServersResponse = (data) => {
|
|
1119
|
+
if (!json.isJSONObject(data)) {
|
|
1120
|
+
throw new TypeError(
|
|
1121
|
+
`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`
|
|
1122
|
+
);
|
|
1123
|
+
}
|
|
1124
|
+
return {
|
|
1125
|
+
servers: marshalling.unmarshalArrayOfObject(data.servers, unmarshalServerSummary),
|
|
1126
|
+
totalCount: data.total_count
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
const unmarshalListServicesResponse = (data) => {
|
|
1130
|
+
if (!json.isJSONObject(data)) {
|
|
1131
|
+
throw new TypeError(
|
|
1132
|
+
`Unmarshalling the type 'ListServicesResponse' failed as data isn't a dictionary.`
|
|
1133
|
+
);
|
|
1134
|
+
}
|
|
1135
|
+
return {
|
|
1136
|
+
services: marshalling.unmarshalArrayOfObject(data.services, unmarshalService),
|
|
1137
|
+
totalCount: data.total_count
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
const unmarshalListSubscribableServerOptionsResponse = (data) => {
|
|
1141
|
+
if (!json.isJSONObject(data)) {
|
|
1142
|
+
throw new TypeError(
|
|
1143
|
+
`Unmarshalling the type 'ListSubscribableServerOptionsResponse' failed as data isn't a dictionary.`
|
|
1144
|
+
);
|
|
1145
|
+
}
|
|
1146
|
+
return {
|
|
1147
|
+
serverOptions: marshalling.unmarshalArrayOfObject(data.server_options, unmarshalOffer),
|
|
1148
|
+
totalCount: data.total_count
|
|
1149
|
+
};
|
|
1150
|
+
};
|
|
1151
|
+
const unmarshalRaidArray = (data) => {
|
|
1152
|
+
if (!json.isJSONObject(data)) {
|
|
1153
|
+
throw new TypeError(
|
|
1154
|
+
`Unmarshalling the type 'RaidArray' failed as data isn't a dictionary.`
|
|
1155
|
+
);
|
|
1156
|
+
}
|
|
1157
|
+
return {
|
|
1158
|
+
disks: marshalling.unmarshalArrayOfObject(data.disks, unmarshalServerDisk),
|
|
1159
|
+
raidLevel: data.raid_level
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
const unmarshalRaid = (data) => {
|
|
1163
|
+
if (!json.isJSONObject(data)) {
|
|
1164
|
+
throw new TypeError(
|
|
1165
|
+
`Unmarshalling the type 'Raid' failed as data isn't a dictionary.`
|
|
1166
|
+
);
|
|
1167
|
+
}
|
|
1168
|
+
return {
|
|
1169
|
+
raidArrays: marshalling.unmarshalArrayOfObject(data.raid_arrays, unmarshalRaidArray)
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
const unmarshalRefund = (data) => {
|
|
1173
|
+
if (!json.isJSONObject(data)) {
|
|
1174
|
+
throw new TypeError(
|
|
1175
|
+
`Unmarshalling the type 'Refund' failed as data isn't a dictionary.`
|
|
1176
|
+
);
|
|
1177
|
+
}
|
|
1178
|
+
return {
|
|
1179
|
+
content: data.content,
|
|
1180
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
1181
|
+
id: data.id,
|
|
1182
|
+
method: data.method,
|
|
1183
|
+
refundedAt: marshalling.unmarshalDate(data.refunded_at),
|
|
1184
|
+
status: data.status,
|
|
1185
|
+
totalWithTaxes: data.total_with_taxes ? customMarshalling.unmarshalMoney(data.total_with_taxes) : void 0,
|
|
1186
|
+
totalWithoutTaxes: data.total_without_taxes ? customMarshalling.unmarshalMoney(data.total_without_taxes) : void 0
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
const unmarshalRescue = (data) => {
|
|
1190
|
+
if (!json.isJSONObject(data)) {
|
|
1191
|
+
throw new TypeError(
|
|
1192
|
+
`Unmarshalling the type 'Rescue' failed as data isn't a dictionary.`
|
|
1193
|
+
);
|
|
1194
|
+
}
|
|
1195
|
+
return {
|
|
1196
|
+
login: data.login,
|
|
1197
|
+
osId: data.os_id,
|
|
1198
|
+
password: data.password,
|
|
1199
|
+
protocol: data.protocol
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
const unmarshalPartition = (data) => {
|
|
1203
|
+
if (!json.isJSONObject(data)) {
|
|
1204
|
+
throw new TypeError(
|
|
1205
|
+
`Unmarshalling the type 'Partition' failed as data isn't a dictionary.`
|
|
1206
|
+
);
|
|
1207
|
+
}
|
|
1208
|
+
return {
|
|
1209
|
+
capacity: data.capacity,
|
|
1210
|
+
connectors: data.connectors,
|
|
1211
|
+
fileSystem: data.file_system,
|
|
1212
|
+
mountPoint: data.mount_point,
|
|
1213
|
+
raidLevel: data.raid_level,
|
|
1214
|
+
type: data.type
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
const unmarshalServerDefaultPartitioning = (data) => {
|
|
1218
|
+
if (!json.isJSONObject(data)) {
|
|
1219
|
+
throw new TypeError(
|
|
1220
|
+
`Unmarshalling the type 'ServerDefaultPartitioning' failed as data isn't a dictionary.`
|
|
1221
|
+
);
|
|
1222
|
+
}
|
|
1223
|
+
return {
|
|
1224
|
+
partitions: marshalling.unmarshalArrayOfObject(data.partitions, unmarshalPartition)
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
const unmarshalServerInstall = (data) => {
|
|
1228
|
+
if (!json.isJSONObject(data)) {
|
|
1229
|
+
throw new TypeError(
|
|
1230
|
+
`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`
|
|
1231
|
+
);
|
|
1232
|
+
}
|
|
1233
|
+
return {
|
|
1234
|
+
hostname: data.hostname,
|
|
1235
|
+
osId: data.os_id,
|
|
1236
|
+
panelUrl: data.panel_url,
|
|
1237
|
+
partitions: marshalling.unmarshalArrayOfObject(data.partitions, unmarshalPartition),
|
|
1238
|
+
sshKeyIds: data.ssh_key_ids,
|
|
1239
|
+
status: data.status,
|
|
1240
|
+
userLogin: data.user_login
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1243
|
+
const unmarshalSubscribeStorageOptionsResponse = (data) => {
|
|
1244
|
+
if (!json.isJSONObject(data)) {
|
|
1245
|
+
throw new TypeError(
|
|
1246
|
+
`Unmarshalling the type 'SubscribeStorageOptionsResponse' failed as data isn't a dictionary.`
|
|
1247
|
+
);
|
|
1248
|
+
}
|
|
1249
|
+
return {
|
|
1250
|
+
services: marshalling.unmarshalArrayOfObject(data.services, unmarshalService)
|
|
1251
|
+
};
|
|
1252
|
+
};
|
|
1253
|
+
const marshalAttachFailoverIPToMacAddressRequest = (request, defaults) => ({
|
|
1254
|
+
mac: request.mac,
|
|
1255
|
+
type: request.type
|
|
1256
|
+
});
|
|
1257
|
+
const marshalAttachFailoverIPsRequest = (request, defaults) => ({
|
|
1258
|
+
fips_ids: request.fipsIds,
|
|
1259
|
+
server_id: request.serverId
|
|
1260
|
+
});
|
|
1261
|
+
const marshalCreateFailoverIPsRequest = (request, defaults) => ({
|
|
1262
|
+
offer_id: request.offerId,
|
|
1263
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1264
|
+
quantity: request.quantity
|
|
1265
|
+
});
|
|
1266
|
+
const marshalCreateServerRequest = (request, defaults) => ({
|
|
1267
|
+
datacenter_name: request.datacenterName,
|
|
1268
|
+
offer_id: request.offerId,
|
|
1269
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1270
|
+
server_option_ids: request.serverOptionIds
|
|
1271
|
+
});
|
|
1272
|
+
const marshalDetachFailoverIPsRequest = (request, defaults) => ({
|
|
1273
|
+
fips_ids: request.fipsIds
|
|
1274
|
+
});
|
|
1275
|
+
const marshalIPv6BlockApiCreateIPv6BlockRequest = (request, defaults) => ({
|
|
1276
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1277
|
+
});
|
|
1278
|
+
const marshalIPv6BlockApiCreateIPv6BlockSubnetRequest = (request, defaults) => ({
|
|
1279
|
+
address: request.address,
|
|
1280
|
+
cidr: request.cidr
|
|
1281
|
+
});
|
|
1282
|
+
const marshalIPv6BlockApiUpdateIPv6BlockRequest = (request, defaults) => ({
|
|
1283
|
+
nameservers: request.nameservers
|
|
1284
|
+
});
|
|
1285
|
+
const marshalInstallPartition = (request, defaults) => ({
|
|
1286
|
+
capacity: request.capacity,
|
|
1287
|
+
connectors: request.connectors,
|
|
1288
|
+
file_system: request.fileSystem,
|
|
1289
|
+
mount_point: request.mountPoint,
|
|
1290
|
+
raid_level: request.raidLevel
|
|
1291
|
+
});
|
|
1292
|
+
const marshalInstallServerRequest = (request, defaults) => ({
|
|
1293
|
+
hostname: request.hostname,
|
|
1294
|
+
ip_id: request.ipId,
|
|
1295
|
+
license_offer_id: request.licenseOfferId,
|
|
1296
|
+
os_id: request.osId,
|
|
1297
|
+
panel_password: request.panelPassword,
|
|
1298
|
+
partitions: request.partitions !== void 0 ? request.partitions.map((elt) => marshalInstallPartition(elt)) : void 0,
|
|
1299
|
+
root_password: request.rootPassword,
|
|
1300
|
+
ssh_key_ids: request.sshKeyIds,
|
|
1301
|
+
user_login: request.userLogin,
|
|
1302
|
+
user_password: request.userPassword
|
|
1303
|
+
});
|
|
1304
|
+
const marshalRpnSanApiAddIpRequest = (request, defaults) => ({
|
|
1305
|
+
ip_ids: request.ipIds
|
|
1306
|
+
});
|
|
1307
|
+
const marshalRpnSanApiCreateRpnSanRequest = (request, defaults) => ({
|
|
1308
|
+
offer_id: request.offerId,
|
|
1309
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1310
|
+
});
|
|
1311
|
+
const marshalRpnSanApiRemoveIpRequest = (request, defaults) => ({
|
|
1312
|
+
ip_ids: request.ipIds
|
|
1313
|
+
});
|
|
1314
|
+
const marshalRpnV1ApiAddRpnGroupMembersRequest = (request, defaults) => ({
|
|
1315
|
+
san_server_ids: request.sanServerIds,
|
|
1316
|
+
server_ids: request.serverIds
|
|
1317
|
+
});
|
|
1318
|
+
const marshalRpnV1ApiCreateRpnGroupRequest = (request, defaults) => ({
|
|
1319
|
+
name: request.name,
|
|
1320
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1321
|
+
san_server_ids: request.sanServerIds,
|
|
1322
|
+
server_ids: request.serverIds
|
|
1323
|
+
});
|
|
1324
|
+
const marshalRpnV1ApiDeleteRpnGroupMembersRequest = (request, defaults) => ({
|
|
1325
|
+
member_ids: request.memberIds
|
|
1326
|
+
});
|
|
1327
|
+
const marshalRpnV1ApiLeaveRpnGroupRequest = (request, defaults) => ({
|
|
1328
|
+
member_ids: request.memberIds,
|
|
1329
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1330
|
+
});
|
|
1331
|
+
const marshalRpnV1ApiRpnGroupInviteRequest = (request, defaults) => ({
|
|
1332
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1333
|
+
server_ids: request.serverIds
|
|
1334
|
+
});
|
|
1335
|
+
const marshalRpnV1ApiUpdateRpnGroupNameRequest = (request, defaults) => ({
|
|
1336
|
+
name: request.name
|
|
1337
|
+
});
|
|
1338
|
+
const marshalRpnV2ApiAddRpnV2MembersRequest = (request, defaults) => ({
|
|
1339
|
+
servers: request.servers
|
|
1340
|
+
});
|
|
1341
|
+
const marshalRpnV2ApiCreateRpnV2GroupRequest = (request, defaults) => ({
|
|
1342
|
+
name: request.name,
|
|
1343
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
1344
|
+
servers: request.servers,
|
|
1345
|
+
type: request.type
|
|
1346
|
+
});
|
|
1347
|
+
const marshalRpnV2ApiDeleteRpnV2MembersRequest = (request, defaults) => ({
|
|
1348
|
+
member_ids: request.memberIds
|
|
1349
|
+
});
|
|
1350
|
+
const marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest = (request, defaults) => ({
|
|
1351
|
+
rpnv1_group_id: request.rpnv1GroupId
|
|
1352
|
+
});
|
|
1353
|
+
const marshalRpnV2ApiUpdateRpnV2GroupNameRequest = (request, defaults) => ({
|
|
1354
|
+
name: request.name
|
|
1355
|
+
});
|
|
1356
|
+
const marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest = (request, defaults) => ({
|
|
1357
|
+
member_ids: request.memberIds,
|
|
1358
|
+
vlan: request.vlan
|
|
1359
|
+
});
|
|
1360
|
+
const marshalStartBMCAccessRequest = (request, defaults) => ({
|
|
1361
|
+
ip: request.ip
|
|
1362
|
+
});
|
|
1363
|
+
const marshalStartRescueRequest = (request, defaults) => ({
|
|
1364
|
+
os_id: request.osId
|
|
1365
|
+
});
|
|
1366
|
+
const marshalSubscribeServerOptionRequest = (request, defaults) => ({
|
|
1367
|
+
option_id: request.optionId
|
|
1368
|
+
});
|
|
1369
|
+
const marshalSubscribeStorageOptionsRequest = (request, defaults) => ({
|
|
1370
|
+
options_ids: request.optionsIds
|
|
1371
|
+
});
|
|
1372
|
+
const marshalUpdatableRaidArray = (request, defaults) => ({
|
|
1373
|
+
disk_ids: request.diskIds,
|
|
1374
|
+
raid_level: request.raidLevel
|
|
1375
|
+
});
|
|
1376
|
+
const marshalUpdateRaidRequest = (request, defaults) => ({
|
|
1377
|
+
raid_arrays: request.raidArrays.map(
|
|
1378
|
+
(elt) => marshalUpdatableRaidArray(elt)
|
|
1379
|
+
)
|
|
1380
|
+
});
|
|
1381
|
+
const marshalUpdateReverseRequest = (request, defaults) => ({
|
|
1382
|
+
reverse: request.reverse
|
|
1383
|
+
});
|
|
1384
|
+
const marshalUpdateServerBackupRequest = (request, defaults) => ({
|
|
1385
|
+
acl_enabled: request.aclEnabled,
|
|
1386
|
+
autologin: request.autologin,
|
|
1387
|
+
password: request.password
|
|
1388
|
+
});
|
|
1389
|
+
const marshalUpdateServerRequest = (request, defaults) => ({
|
|
1390
|
+
enable_ipv6: request.enableIpv6,
|
|
1391
|
+
hostname: request.hostname
|
|
1392
|
+
});
|
|
1393
|
+
const marshalUpdateServerTagsRequest = (request, defaults) => ({
|
|
1394
|
+
tags: request.tags
|
|
1395
|
+
});
|
|
1396
|
+
exports.marshalAttachFailoverIPToMacAddressRequest = marshalAttachFailoverIPToMacAddressRequest;
|
|
1397
|
+
exports.marshalAttachFailoverIPsRequest = marshalAttachFailoverIPsRequest;
|
|
1398
|
+
exports.marshalCreateFailoverIPsRequest = marshalCreateFailoverIPsRequest;
|
|
1399
|
+
exports.marshalCreateServerRequest = marshalCreateServerRequest;
|
|
1400
|
+
exports.marshalDetachFailoverIPsRequest = marshalDetachFailoverIPsRequest;
|
|
1401
|
+
exports.marshalIPv6BlockApiCreateIPv6BlockRequest = marshalIPv6BlockApiCreateIPv6BlockRequest;
|
|
1402
|
+
exports.marshalIPv6BlockApiCreateIPv6BlockSubnetRequest = marshalIPv6BlockApiCreateIPv6BlockSubnetRequest;
|
|
1403
|
+
exports.marshalIPv6BlockApiUpdateIPv6BlockRequest = marshalIPv6BlockApiUpdateIPv6BlockRequest;
|
|
1404
|
+
exports.marshalInstallServerRequest = marshalInstallServerRequest;
|
|
1405
|
+
exports.marshalRpnSanApiAddIpRequest = marshalRpnSanApiAddIpRequest;
|
|
1406
|
+
exports.marshalRpnSanApiCreateRpnSanRequest = marshalRpnSanApiCreateRpnSanRequest;
|
|
1407
|
+
exports.marshalRpnSanApiRemoveIpRequest = marshalRpnSanApiRemoveIpRequest;
|
|
1408
|
+
exports.marshalRpnV1ApiAddRpnGroupMembersRequest = marshalRpnV1ApiAddRpnGroupMembersRequest;
|
|
1409
|
+
exports.marshalRpnV1ApiCreateRpnGroupRequest = marshalRpnV1ApiCreateRpnGroupRequest;
|
|
1410
|
+
exports.marshalRpnV1ApiDeleteRpnGroupMembersRequest = marshalRpnV1ApiDeleteRpnGroupMembersRequest;
|
|
1411
|
+
exports.marshalRpnV1ApiLeaveRpnGroupRequest = marshalRpnV1ApiLeaveRpnGroupRequest;
|
|
1412
|
+
exports.marshalRpnV1ApiRpnGroupInviteRequest = marshalRpnV1ApiRpnGroupInviteRequest;
|
|
1413
|
+
exports.marshalRpnV1ApiUpdateRpnGroupNameRequest = marshalRpnV1ApiUpdateRpnGroupNameRequest;
|
|
1414
|
+
exports.marshalRpnV2ApiAddRpnV2MembersRequest = marshalRpnV2ApiAddRpnV2MembersRequest;
|
|
1415
|
+
exports.marshalRpnV2ApiCreateRpnV2GroupRequest = marshalRpnV2ApiCreateRpnV2GroupRequest;
|
|
1416
|
+
exports.marshalRpnV2ApiDeleteRpnV2MembersRequest = marshalRpnV2ApiDeleteRpnV2MembersRequest;
|
|
1417
|
+
exports.marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest = marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest;
|
|
1418
|
+
exports.marshalRpnV2ApiUpdateRpnV2GroupNameRequest = marshalRpnV2ApiUpdateRpnV2GroupNameRequest;
|
|
1419
|
+
exports.marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest = marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest;
|
|
1420
|
+
exports.marshalStartBMCAccessRequest = marshalStartBMCAccessRequest;
|
|
1421
|
+
exports.marshalStartRescueRequest = marshalStartRescueRequest;
|
|
1422
|
+
exports.marshalSubscribeServerOptionRequest = marshalSubscribeServerOptionRequest;
|
|
1423
|
+
exports.marshalSubscribeStorageOptionsRequest = marshalSubscribeStorageOptionsRequest;
|
|
1424
|
+
exports.marshalUpdateRaidRequest = marshalUpdateRaidRequest;
|
|
1425
|
+
exports.marshalUpdateReverseRequest = marshalUpdateReverseRequest;
|
|
1426
|
+
exports.marshalUpdateServerBackupRequest = marshalUpdateServerBackupRequest;
|
|
1427
|
+
exports.marshalUpdateServerRequest = marshalUpdateServerRequest;
|
|
1428
|
+
exports.marshalUpdateServerTagsRequest = marshalUpdateServerTagsRequest;
|
|
1429
|
+
exports.unmarshalBMCAccess = unmarshalBMCAccess;
|
|
1430
|
+
exports.unmarshalBackup = unmarshalBackup;
|
|
1431
|
+
exports.unmarshalCanOrderResponse = unmarshalCanOrderResponse;
|
|
1432
|
+
exports.unmarshalCreateFailoverIPsResponse = unmarshalCreateFailoverIPsResponse;
|
|
1433
|
+
exports.unmarshalFailoverIP = unmarshalFailoverIP;
|
|
1434
|
+
exports.unmarshalGetIPv6BlockQuotasResponse = unmarshalGetIPv6BlockQuotasResponse;
|
|
1435
|
+
exports.unmarshalGetRemainingQuotaResponse = unmarshalGetRemainingQuotaResponse;
|
|
1436
|
+
exports.unmarshalGetRpnStatusResponse = unmarshalGetRpnStatusResponse;
|
|
1437
|
+
exports.unmarshalIP = unmarshalIP;
|
|
1438
|
+
exports.unmarshalIPv6Block = unmarshalIPv6Block;
|
|
1439
|
+
exports.unmarshalInvoice = unmarshalInvoice;
|
|
1440
|
+
exports.unmarshalListFailoverIPsResponse = unmarshalListFailoverIPsResponse;
|
|
1441
|
+
exports.unmarshalListIPv6BlockSubnetsAvailableResponse = unmarshalListIPv6BlockSubnetsAvailableResponse;
|
|
1442
|
+
exports.unmarshalListInvoicesResponse = unmarshalListInvoicesResponse;
|
|
1443
|
+
exports.unmarshalListIpsResponse = unmarshalListIpsResponse;
|
|
1444
|
+
exports.unmarshalListOSResponse = unmarshalListOSResponse;
|
|
1445
|
+
exports.unmarshalListOffersResponse = unmarshalListOffersResponse;
|
|
1446
|
+
exports.unmarshalListRefundsResponse = unmarshalListRefundsResponse;
|
|
1447
|
+
exports.unmarshalListRpnCapableSanServersResponse = unmarshalListRpnCapableSanServersResponse;
|
|
1448
|
+
exports.unmarshalListRpnCapableServersResponse = unmarshalListRpnCapableServersResponse;
|
|
1449
|
+
exports.unmarshalListRpnGroupMembersResponse = unmarshalListRpnGroupMembersResponse;
|
|
1450
|
+
exports.unmarshalListRpnGroupsResponse = unmarshalListRpnGroupsResponse;
|
|
1451
|
+
exports.unmarshalListRpnInvitesResponse = unmarshalListRpnInvitesResponse;
|
|
1452
|
+
exports.unmarshalListRpnSansResponse = unmarshalListRpnSansResponse;
|
|
1453
|
+
exports.unmarshalListRpnServerCapabilitiesResponse = unmarshalListRpnServerCapabilitiesResponse;
|
|
1454
|
+
exports.unmarshalListRpnV2CapableResourcesResponse = unmarshalListRpnV2CapableResourcesResponse;
|
|
1455
|
+
exports.unmarshalListRpnV2GroupLogsResponse = unmarshalListRpnV2GroupLogsResponse;
|
|
1456
|
+
exports.unmarshalListRpnV2GroupsResponse = unmarshalListRpnV2GroupsResponse;
|
|
1457
|
+
exports.unmarshalListRpnV2MembersResponse = unmarshalListRpnV2MembersResponse;
|
|
1458
|
+
exports.unmarshalListServerDisksResponse = unmarshalListServerDisksResponse;
|
|
1459
|
+
exports.unmarshalListServerEventsResponse = unmarshalListServerEventsResponse;
|
|
1460
|
+
exports.unmarshalListServersResponse = unmarshalListServersResponse;
|
|
1461
|
+
exports.unmarshalListServicesResponse = unmarshalListServicesResponse;
|
|
1462
|
+
exports.unmarshalListSubscribableServerOptionsResponse = unmarshalListSubscribableServerOptionsResponse;
|
|
1463
|
+
exports.unmarshalOS = unmarshalOS;
|
|
1464
|
+
exports.unmarshalOffer = unmarshalOffer;
|
|
1465
|
+
exports.unmarshalRaid = unmarshalRaid;
|
|
1466
|
+
exports.unmarshalRefund = unmarshalRefund;
|
|
1467
|
+
exports.unmarshalRescue = unmarshalRescue;
|
|
1468
|
+
exports.unmarshalRpnGroup = unmarshalRpnGroup;
|
|
1469
|
+
exports.unmarshalRpnSan = unmarshalRpnSan;
|
|
1470
|
+
exports.unmarshalRpnV2Group = unmarshalRpnV2Group;
|
|
1471
|
+
exports.unmarshalServer = unmarshalServer;
|
|
1472
|
+
exports.unmarshalServerDefaultPartitioning = unmarshalServerDefaultPartitioning;
|
|
1473
|
+
exports.unmarshalServerInstall = unmarshalServerInstall;
|
|
1474
|
+
exports.unmarshalService = unmarshalService;
|
|
1475
|
+
exports.unmarshalSubscribeStorageOptionsResponse = unmarshalSubscribeStorageOptionsResponse;
|