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