@scaleway/sdk 2.25.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 +65 -31
- 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 +763 -445
- 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 +324 -188
- 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 +145 -75
- 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 +92 -37
- 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 -32034
- package/dist/index.d.ts +15 -38373
- 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
|
@@ -0,0 +1,1289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const randomName = require("@scaleway/random-name");
|
|
4
|
+
const json = require("../../../helpers/json.cjs");
|
|
5
|
+
const marshalling = require("../../../helpers/marshalling.cjs");
|
|
6
|
+
const unmarshalIp = (data) => {
|
|
7
|
+
if (!json.isJSONObject(data)) {
|
|
8
|
+
throw new TypeError(
|
|
9
|
+
`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
id: data.id,
|
|
14
|
+
ipAddress: data.ip_address,
|
|
15
|
+
lbId: data.lb_id,
|
|
16
|
+
organizationId: data.organization_id,
|
|
17
|
+
projectId: data.project_id,
|
|
18
|
+
region: data.region,
|
|
19
|
+
reverse: data.reverse,
|
|
20
|
+
tags: data.tags,
|
|
21
|
+
zone: data.zone
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const unmarshalSubscriberEmailConfig = (data) => {
|
|
25
|
+
if (!json.isJSONObject(data)) {
|
|
26
|
+
throw new TypeError(
|
|
27
|
+
`Unmarshalling the type 'SubscriberEmailConfig' failed as data isn't a dictionary.`
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
email: data.email
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const unmarshalSubscriberWebhookConfig = (data) => {
|
|
35
|
+
if (!json.isJSONObject(data)) {
|
|
36
|
+
throw new TypeError(
|
|
37
|
+
`Unmarshalling the type 'SubscriberWebhookConfig' failed as data isn't a dictionary.`
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
uri: data.uri
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
const unmarshalSubscriber = (data) => {
|
|
45
|
+
if (!json.isJSONObject(data)) {
|
|
46
|
+
throw new TypeError(
|
|
47
|
+
`Unmarshalling the type 'Subscriber' failed as data isn't a dictionary.`
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
emailConfig: data.email_config ? unmarshalSubscriberEmailConfig(data.email_config) : void 0,
|
|
52
|
+
id: data.id,
|
|
53
|
+
name: data.name,
|
|
54
|
+
webhookConfig: data.webhook_config ? unmarshalSubscriberWebhookConfig(data.webhook_config) : void 0
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
const unmarshalHealthCheckHttpConfig = (data) => {
|
|
58
|
+
if (!json.isJSONObject(data)) {
|
|
59
|
+
throw new TypeError(
|
|
60
|
+
`Unmarshalling the type 'HealthCheckHttpConfig' failed as data isn't a dictionary.`
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
code: data.code,
|
|
65
|
+
hostHeader: data.host_header,
|
|
66
|
+
method: data.method,
|
|
67
|
+
uri: data.uri
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
const unmarshalHealthCheckHttpsConfig = (data) => {
|
|
71
|
+
if (!json.isJSONObject(data)) {
|
|
72
|
+
throw new TypeError(
|
|
73
|
+
`Unmarshalling the type 'HealthCheckHttpsConfig' failed as data isn't a dictionary.`
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
code: data.code,
|
|
78
|
+
hostHeader: data.host_header,
|
|
79
|
+
method: data.method,
|
|
80
|
+
sni: data.sni,
|
|
81
|
+
uri: data.uri
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
const unmarshalHealthCheckLdapConfig = (data) => {
|
|
85
|
+
if (!json.isJSONObject(data)) {
|
|
86
|
+
throw new TypeError(
|
|
87
|
+
`Unmarshalling the type 'HealthCheckLdapConfig' failed as data isn't a dictionary.`
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
return {};
|
|
91
|
+
};
|
|
92
|
+
const unmarshalHealthCheckMysqlConfig = (data) => {
|
|
93
|
+
if (!json.isJSONObject(data)) {
|
|
94
|
+
throw new TypeError(
|
|
95
|
+
`Unmarshalling the type 'HealthCheckMysqlConfig' failed as data isn't a dictionary.`
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
user: data.user
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
const unmarshalHealthCheckPgsqlConfig = (data) => {
|
|
103
|
+
if (!json.isJSONObject(data)) {
|
|
104
|
+
throw new TypeError(
|
|
105
|
+
`Unmarshalling the type 'HealthCheckPgsqlConfig' failed as data isn't a dictionary.`
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
user: data.user
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
const unmarshalHealthCheckRedisConfig = (data) => {
|
|
113
|
+
if (!json.isJSONObject(data)) {
|
|
114
|
+
throw new TypeError(
|
|
115
|
+
`Unmarshalling the type 'HealthCheckRedisConfig' failed as data isn't a dictionary.`
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
return {};
|
|
119
|
+
};
|
|
120
|
+
const unmarshalHealthCheckTcpConfig = (data) => {
|
|
121
|
+
if (!json.isJSONObject(data)) {
|
|
122
|
+
throw new TypeError(
|
|
123
|
+
`Unmarshalling the type 'HealthCheckTcpConfig' failed as data isn't a dictionary.`
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
return {};
|
|
127
|
+
};
|
|
128
|
+
const unmarshalHealthCheck = (data) => {
|
|
129
|
+
if (!json.isJSONObject(data)) {
|
|
130
|
+
throw new TypeError(
|
|
131
|
+
`Unmarshalling the type 'HealthCheck' failed as data isn't a dictionary.`
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
checkDelay: data.check_delay,
|
|
136
|
+
checkMaxRetries: data.check_max_retries,
|
|
137
|
+
checkSendProxy: data.check_send_proxy,
|
|
138
|
+
checkTimeout: data.check_timeout,
|
|
139
|
+
httpConfig: data.http_config ? unmarshalHealthCheckHttpConfig(data.http_config) : void 0,
|
|
140
|
+
httpsConfig: data.https_config ? unmarshalHealthCheckHttpsConfig(data.https_config) : void 0,
|
|
141
|
+
ldapConfig: data.ldap_config ? unmarshalHealthCheckLdapConfig(data.ldap_config) : void 0,
|
|
142
|
+
mysqlConfig: data.mysql_config ? unmarshalHealthCheckMysqlConfig(data.mysql_config) : void 0,
|
|
143
|
+
pgsqlConfig: data.pgsql_config ? unmarshalHealthCheckPgsqlConfig(data.pgsql_config) : void 0,
|
|
144
|
+
port: data.port,
|
|
145
|
+
redisConfig: data.redis_config ? unmarshalHealthCheckRedisConfig(data.redis_config) : void 0,
|
|
146
|
+
tcpConfig: data.tcp_config ? unmarshalHealthCheckTcpConfig(data.tcp_config) : void 0,
|
|
147
|
+
transientCheckDelay: data.transient_check_delay
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
const unmarshalInstance = (data) => {
|
|
151
|
+
if (!json.isJSONObject(data)) {
|
|
152
|
+
throw new TypeError(
|
|
153
|
+
`Unmarshalling the type 'Instance' failed as data isn't a dictionary.`
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
158
|
+
id: data.id,
|
|
159
|
+
ipAddress: data.ip_address,
|
|
160
|
+
region: data.region,
|
|
161
|
+
status: data.status,
|
|
162
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at),
|
|
163
|
+
zone: data.zone
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
const unmarshalLb = (data) => {
|
|
167
|
+
if (!json.isJSONObject(data)) {
|
|
168
|
+
throw new TypeError(
|
|
169
|
+
`Unmarshalling the type 'Lb' failed as data isn't a dictionary.`
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
backendCount: data.backend_count,
|
|
174
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
175
|
+
description: data.description,
|
|
176
|
+
frontendCount: data.frontend_count,
|
|
177
|
+
id: data.id,
|
|
178
|
+
instances: marshalling.unmarshalArrayOfObject(data.instances, unmarshalInstance),
|
|
179
|
+
ip: marshalling.unmarshalArrayOfObject(data.ip, unmarshalIp),
|
|
180
|
+
name: data.name,
|
|
181
|
+
organizationId: data.organization_id,
|
|
182
|
+
privateNetworkCount: data.private_network_count,
|
|
183
|
+
projectId: data.project_id,
|
|
184
|
+
region: data.region,
|
|
185
|
+
routeCount: data.route_count,
|
|
186
|
+
sslCompatibilityLevel: data.ssl_compatibility_level,
|
|
187
|
+
status: data.status,
|
|
188
|
+
subscriber: data.subscriber ? unmarshalSubscriber(data.subscriber) : void 0,
|
|
189
|
+
tags: data.tags,
|
|
190
|
+
type: data.type,
|
|
191
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at),
|
|
192
|
+
zone: data.zone
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
const unmarshalBackend = (data) => {
|
|
196
|
+
if (!json.isJSONObject(data)) {
|
|
197
|
+
throw new TypeError(
|
|
198
|
+
`Unmarshalling the type 'Backend' failed as data isn't a dictionary.`
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
203
|
+
failoverHost: data.failover_host,
|
|
204
|
+
forwardPort: data.forward_port,
|
|
205
|
+
forwardPortAlgorithm: data.forward_port_algorithm,
|
|
206
|
+
forwardProtocol: data.forward_protocol,
|
|
207
|
+
healthCheck: data.health_check ? unmarshalHealthCheck(data.health_check) : void 0,
|
|
208
|
+
id: data.id,
|
|
209
|
+
ignoreSslServerVerify: data.ignore_ssl_server_verify,
|
|
210
|
+
lb: data.lb ? unmarshalLb(data.lb) : void 0,
|
|
211
|
+
maxConnections: data.max_connections,
|
|
212
|
+
maxRetries: data.max_retries,
|
|
213
|
+
name: data.name,
|
|
214
|
+
onMarkedDownAction: data.on_marked_down_action,
|
|
215
|
+
pool: data.pool,
|
|
216
|
+
proxyProtocol: data.proxy_protocol,
|
|
217
|
+
redispatchAttemptCount: data.redispatch_attempt_count,
|
|
218
|
+
sendProxyV2: data.send_proxy_v2,
|
|
219
|
+
sslBridging: data.ssl_bridging,
|
|
220
|
+
stickySessions: data.sticky_sessions,
|
|
221
|
+
stickySessionsCookieName: data.sticky_sessions_cookie_name,
|
|
222
|
+
timeoutConnect: data.timeout_connect,
|
|
223
|
+
timeoutQueue: data.timeout_queue,
|
|
224
|
+
timeoutServer: data.timeout_server,
|
|
225
|
+
timeoutTunnel: data.timeout_tunnel,
|
|
226
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
const unmarshalCertificate = (data) => {
|
|
230
|
+
if (!json.isJSONObject(data)) {
|
|
231
|
+
throw new TypeError(
|
|
232
|
+
`Unmarshalling the type 'Certificate' failed as data isn't a dictionary.`
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
return {
|
|
236
|
+
commonName: data.common_name,
|
|
237
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
238
|
+
fingerprint: data.fingerprint,
|
|
239
|
+
id: data.id,
|
|
240
|
+
lb: data.lb ? unmarshalLb(data.lb) : void 0,
|
|
241
|
+
name: data.name,
|
|
242
|
+
notValidAfter: marshalling.unmarshalDate(data.not_valid_after),
|
|
243
|
+
notValidBefore: marshalling.unmarshalDate(data.not_valid_before),
|
|
244
|
+
status: data.status,
|
|
245
|
+
statusDetails: data.status_details,
|
|
246
|
+
subjectAlternativeName: data.subject_alternative_name,
|
|
247
|
+
type: data.type,
|
|
248
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
const unmarshalFrontend = (data) => {
|
|
252
|
+
if (!json.isJSONObject(data)) {
|
|
253
|
+
throw new TypeError(
|
|
254
|
+
`Unmarshalling the type 'Frontend' failed as data isn't a dictionary.`
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
return {
|
|
258
|
+
backend: data.backend ? unmarshalBackend(data.backend) : void 0,
|
|
259
|
+
certificate: data.certificate ? unmarshalCertificate(data.certificate) : void 0,
|
|
260
|
+
certificateIds: data.certificate_ids,
|
|
261
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
262
|
+
enableHttp3: data.enable_http3,
|
|
263
|
+
id: data.id,
|
|
264
|
+
inboundPort: data.inbound_port,
|
|
265
|
+
lb: data.lb ? unmarshalLb(data.lb) : void 0,
|
|
266
|
+
name: data.name,
|
|
267
|
+
timeoutClient: data.timeout_client,
|
|
268
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
const unmarshalAclActionRedirect = (data) => {
|
|
272
|
+
if (!json.isJSONObject(data)) {
|
|
273
|
+
throw new TypeError(
|
|
274
|
+
`Unmarshalling the type 'AclActionRedirect' failed as data isn't a dictionary.`
|
|
275
|
+
);
|
|
276
|
+
}
|
|
277
|
+
return {
|
|
278
|
+
code: data.code,
|
|
279
|
+
target: data.target,
|
|
280
|
+
type: data.type
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
const unmarshalAclAction = (data) => {
|
|
284
|
+
if (!json.isJSONObject(data)) {
|
|
285
|
+
throw new TypeError(
|
|
286
|
+
`Unmarshalling the type 'AclAction' failed as data isn't a dictionary.`
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
redirect: data.redirect ? unmarshalAclActionRedirect(data.redirect) : void 0,
|
|
291
|
+
type: data.type
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
const unmarshalAclMatch = (data) => {
|
|
295
|
+
if (!json.isJSONObject(data)) {
|
|
296
|
+
throw new TypeError(
|
|
297
|
+
`Unmarshalling the type 'AclMatch' failed as data isn't a dictionary.`
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
return {
|
|
301
|
+
httpFilter: data.http_filter,
|
|
302
|
+
httpFilterOption: data.http_filter_option,
|
|
303
|
+
httpFilterValue: data.http_filter_value,
|
|
304
|
+
invert: data.invert,
|
|
305
|
+
ipSubnet: data.ip_subnet
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
const unmarshalAcl = (data) => {
|
|
309
|
+
if (!json.isJSONObject(data)) {
|
|
310
|
+
throw new TypeError(
|
|
311
|
+
`Unmarshalling the type 'Acl' failed as data isn't a dictionary.`
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
action: data.action ? unmarshalAclAction(data.action) : void 0,
|
|
316
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
317
|
+
description: data.description,
|
|
318
|
+
frontend: data.frontend ? unmarshalFrontend(data.frontend) : void 0,
|
|
319
|
+
id: data.id,
|
|
320
|
+
index: data.index,
|
|
321
|
+
match: data.match ? unmarshalAclMatch(data.match) : void 0,
|
|
322
|
+
name: data.name,
|
|
323
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
const unmarshalPrivateNetworkDHCPConfig = (data) => {
|
|
327
|
+
if (!json.isJSONObject(data)) {
|
|
328
|
+
throw new TypeError(
|
|
329
|
+
`Unmarshalling the type 'PrivateNetworkDHCPConfig' failed as data isn't a dictionary.`
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
return {
|
|
333
|
+
ipId: data.ip_id
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
const unmarshalPrivateNetworkIpamConfig = (data) => {
|
|
337
|
+
if (!json.isJSONObject(data)) {
|
|
338
|
+
throw new TypeError(
|
|
339
|
+
`Unmarshalling the type 'PrivateNetworkIpamConfig' failed as data isn't a dictionary.`
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
return {};
|
|
343
|
+
};
|
|
344
|
+
const unmarshalPrivateNetworkStaticConfig = (data) => {
|
|
345
|
+
if (!json.isJSONObject(data)) {
|
|
346
|
+
throw new TypeError(
|
|
347
|
+
`Unmarshalling the type 'PrivateNetworkStaticConfig' failed as data isn't a dictionary.`
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
return {
|
|
351
|
+
ipAddress: data.ip_address ? data.ip_address : void 0
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
const unmarshalPrivateNetwork = (data) => {
|
|
355
|
+
if (!json.isJSONObject(data)) {
|
|
356
|
+
throw new TypeError(
|
|
357
|
+
`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
return {
|
|
361
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
362
|
+
dhcpConfig: data.dhcp_config ? unmarshalPrivateNetworkDHCPConfig(data.dhcp_config) : void 0,
|
|
363
|
+
ipamConfig: data.ipam_config ? unmarshalPrivateNetworkIpamConfig(data.ipam_config) : void 0,
|
|
364
|
+
ipamIds: data.ipam_ids,
|
|
365
|
+
lb: data.lb ? unmarshalLb(data.lb) : void 0,
|
|
366
|
+
privateNetworkId: data.private_network_id,
|
|
367
|
+
staticConfig: data.static_config ? unmarshalPrivateNetworkStaticConfig(data.static_config) : void 0,
|
|
368
|
+
status: data.status,
|
|
369
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
const unmarshalRouteMatch = (data) => {
|
|
373
|
+
if (!json.isJSONObject(data)) {
|
|
374
|
+
throw new TypeError(
|
|
375
|
+
`Unmarshalling the type 'RouteMatch' failed as data isn't a dictionary.`
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
return {
|
|
379
|
+
hostHeader: data.host_header,
|
|
380
|
+
sni: data.sni
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
const unmarshalRoute = (data) => {
|
|
384
|
+
if (!json.isJSONObject(data)) {
|
|
385
|
+
throw new TypeError(
|
|
386
|
+
`Unmarshalling the type 'Route' failed as data isn't a dictionary.`
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
return {
|
|
390
|
+
backendId: data.backend_id,
|
|
391
|
+
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
392
|
+
frontendId: data.frontend_id,
|
|
393
|
+
id: data.id,
|
|
394
|
+
match: data.match ? unmarshalRouteMatch(data.match) : void 0,
|
|
395
|
+
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
const unmarshalBackendServerStats = (data) => {
|
|
399
|
+
if (!json.isJSONObject(data)) {
|
|
400
|
+
throw new TypeError(
|
|
401
|
+
`Unmarshalling the type 'BackendServerStats' failed as data isn't a dictionary.`
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
return {
|
|
405
|
+
backendId: data.backend_id,
|
|
406
|
+
instanceId: data.instance_id,
|
|
407
|
+
ip: data.ip,
|
|
408
|
+
lastHealthCheckStatus: data.last_health_check_status,
|
|
409
|
+
serverState: data.server_state,
|
|
410
|
+
serverStateChangedAt: marshalling.unmarshalDate(data.server_state_changed_at)
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
const unmarshalLbStats = (data) => {
|
|
414
|
+
if (!json.isJSONObject(data)) {
|
|
415
|
+
throw new TypeError(
|
|
416
|
+
`Unmarshalling the type 'LbStats' failed as data isn't a dictionary.`
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
return {
|
|
420
|
+
backendServersStats: marshalling.unmarshalArrayOfObject(
|
|
421
|
+
data.backend_servers_stats,
|
|
422
|
+
unmarshalBackendServerStats
|
|
423
|
+
)
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
const unmarshalListAclResponse = (data) => {
|
|
427
|
+
if (!json.isJSONObject(data)) {
|
|
428
|
+
throw new TypeError(
|
|
429
|
+
`Unmarshalling the type 'ListAclResponse' failed as data isn't a dictionary.`
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
return {
|
|
433
|
+
acls: marshalling.unmarshalArrayOfObject(data.acls, unmarshalAcl),
|
|
434
|
+
totalCount: data.total_count
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
const unmarshalListBackendStatsResponse = (data) => {
|
|
438
|
+
if (!json.isJSONObject(data)) {
|
|
439
|
+
throw new TypeError(
|
|
440
|
+
`Unmarshalling the type 'ListBackendStatsResponse' failed as data isn't a dictionary.`
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
return {
|
|
444
|
+
backendServersStats: marshalling.unmarshalArrayOfObject(
|
|
445
|
+
data.backend_servers_stats,
|
|
446
|
+
unmarshalBackendServerStats
|
|
447
|
+
),
|
|
448
|
+
totalCount: data.total_count
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
const unmarshalListBackendsResponse = (data) => {
|
|
452
|
+
if (!json.isJSONObject(data)) {
|
|
453
|
+
throw new TypeError(
|
|
454
|
+
`Unmarshalling the type 'ListBackendsResponse' failed as data isn't a dictionary.`
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
return {
|
|
458
|
+
backends: marshalling.unmarshalArrayOfObject(data.backends, unmarshalBackend),
|
|
459
|
+
totalCount: data.total_count
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
const unmarshalListCertificatesResponse = (data) => {
|
|
463
|
+
if (!json.isJSONObject(data)) {
|
|
464
|
+
throw new TypeError(
|
|
465
|
+
`Unmarshalling the type 'ListCertificatesResponse' failed as data isn't a dictionary.`
|
|
466
|
+
);
|
|
467
|
+
}
|
|
468
|
+
return {
|
|
469
|
+
certificates: marshalling.unmarshalArrayOfObject(
|
|
470
|
+
data.certificates,
|
|
471
|
+
unmarshalCertificate
|
|
472
|
+
),
|
|
473
|
+
totalCount: data.total_count
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
const unmarshalListFrontendsResponse = (data) => {
|
|
477
|
+
if (!json.isJSONObject(data)) {
|
|
478
|
+
throw new TypeError(
|
|
479
|
+
`Unmarshalling the type 'ListFrontendsResponse' failed as data isn't a dictionary.`
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
return {
|
|
483
|
+
frontends: marshalling.unmarshalArrayOfObject(data.frontends, unmarshalFrontend),
|
|
484
|
+
totalCount: data.total_count
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
const unmarshalListIpsResponse = (data) => {
|
|
488
|
+
if (!json.isJSONObject(data)) {
|
|
489
|
+
throw new TypeError(
|
|
490
|
+
`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
return {
|
|
494
|
+
ips: marshalling.unmarshalArrayOfObject(data.ips, unmarshalIp),
|
|
495
|
+
totalCount: data.total_count
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
const unmarshalListLbPrivateNetworksResponse = (data) => {
|
|
499
|
+
if (!json.isJSONObject(data)) {
|
|
500
|
+
throw new TypeError(
|
|
501
|
+
`Unmarshalling the type 'ListLbPrivateNetworksResponse' failed as data isn't a dictionary.`
|
|
502
|
+
);
|
|
503
|
+
}
|
|
504
|
+
return {
|
|
505
|
+
privateNetwork: marshalling.unmarshalArrayOfObject(
|
|
506
|
+
data.private_network,
|
|
507
|
+
unmarshalPrivateNetwork
|
|
508
|
+
),
|
|
509
|
+
totalCount: data.total_count
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
const unmarshalLbType = (data) => {
|
|
513
|
+
if (!json.isJSONObject(data)) {
|
|
514
|
+
throw new TypeError(
|
|
515
|
+
`Unmarshalling the type 'LbType' failed as data isn't a dictionary.`
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
return {
|
|
519
|
+
description: data.description,
|
|
520
|
+
name: data.name,
|
|
521
|
+
region: data.region,
|
|
522
|
+
stockStatus: data.stock_status,
|
|
523
|
+
zone: data.zone
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
const unmarshalListLbTypesResponse = (data) => {
|
|
527
|
+
if (!json.isJSONObject(data)) {
|
|
528
|
+
throw new TypeError(
|
|
529
|
+
`Unmarshalling the type 'ListLbTypesResponse' failed as data isn't a dictionary.`
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
return {
|
|
533
|
+
lbTypes: marshalling.unmarshalArrayOfObject(data.lb_types, unmarshalLbType),
|
|
534
|
+
totalCount: data.total_count
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
const unmarshalListLbsResponse = (data) => {
|
|
538
|
+
if (!json.isJSONObject(data)) {
|
|
539
|
+
throw new TypeError(
|
|
540
|
+
`Unmarshalling the type 'ListLbsResponse' failed as data isn't a dictionary.`
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
return {
|
|
544
|
+
lbs: marshalling.unmarshalArrayOfObject(data.lbs, unmarshalLb),
|
|
545
|
+
totalCount: data.total_count
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
const unmarshalListRoutesResponse = (data) => {
|
|
549
|
+
if (!json.isJSONObject(data)) {
|
|
550
|
+
throw new TypeError(
|
|
551
|
+
`Unmarshalling the type 'ListRoutesResponse' failed as data isn't a dictionary.`
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
return {
|
|
555
|
+
routes: marshalling.unmarshalArrayOfObject(data.routes, unmarshalRoute),
|
|
556
|
+
totalCount: data.total_count
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
const unmarshalListSubscriberResponse = (data) => {
|
|
560
|
+
if (!json.isJSONObject(data)) {
|
|
561
|
+
throw new TypeError(
|
|
562
|
+
`Unmarshalling the type 'ListSubscriberResponse' failed as data isn't a dictionary.`
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
return {
|
|
566
|
+
subscribers: marshalling.unmarshalArrayOfObject(data.subscribers, unmarshalSubscriber),
|
|
567
|
+
totalCount: data.total_count
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
const unmarshalSetAclsResponse = (data) => {
|
|
571
|
+
if (!json.isJSONObject(data)) {
|
|
572
|
+
throw new TypeError(
|
|
573
|
+
`Unmarshalling the type 'SetAclsResponse' failed as data isn't a dictionary.`
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
return {
|
|
577
|
+
acls: marshalling.unmarshalArrayOfObject(data.acls, unmarshalAcl),
|
|
578
|
+
totalCount: data.total_count
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
const marshalAddBackendServersRequest = (request, defaults) => ({
|
|
582
|
+
server_ip: request.serverIp
|
|
583
|
+
});
|
|
584
|
+
const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({
|
|
585
|
+
ip_id: request.ipId
|
|
586
|
+
});
|
|
587
|
+
const marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
|
|
588
|
+
const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
|
|
589
|
+
ip_address: request.ipAddress
|
|
590
|
+
});
|
|
591
|
+
const marshalAttachPrivateNetworkRequest = (request, defaults) => ({
|
|
592
|
+
...marshalling.resolveOneOf([
|
|
593
|
+
{
|
|
594
|
+
param: "static_config",
|
|
595
|
+
value: request.staticConfig !== void 0 ? marshalPrivateNetworkStaticConfig(request.staticConfig) : void 0
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
param: "dhcp_config",
|
|
599
|
+
value: request.dhcpConfig !== void 0 ? marshalPrivateNetworkDHCPConfig(request.dhcpConfig) : void 0
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
param: "ipam_config",
|
|
603
|
+
value: request.ipamConfig !== void 0 ? marshalPrivateNetworkIpamConfig(request.ipamConfig) : void 0
|
|
604
|
+
}
|
|
605
|
+
])
|
|
606
|
+
});
|
|
607
|
+
const marshalAclActionRedirect = (request, defaults) => ({
|
|
608
|
+
code: request.code,
|
|
609
|
+
target: request.target,
|
|
610
|
+
type: request.type
|
|
611
|
+
});
|
|
612
|
+
const marshalAclAction = (request, defaults) => ({
|
|
613
|
+
redirect: request.redirect !== void 0 ? marshalAclActionRedirect(request.redirect) : void 0,
|
|
614
|
+
type: request.type
|
|
615
|
+
});
|
|
616
|
+
const marshalAclMatch = (request, defaults) => ({
|
|
617
|
+
http_filter: request.httpFilter,
|
|
618
|
+
http_filter_option: request.httpFilterOption,
|
|
619
|
+
http_filter_value: request.httpFilterValue,
|
|
620
|
+
invert: request.invert,
|
|
621
|
+
ip_subnet: request.ipSubnet
|
|
622
|
+
});
|
|
623
|
+
const marshalCreateAclRequest = (request, defaults) => ({
|
|
624
|
+
action: marshalAclAction(request.action),
|
|
625
|
+
description: request.description,
|
|
626
|
+
index: request.index,
|
|
627
|
+
match: request.match !== void 0 ? marshalAclMatch(request.match) : void 0,
|
|
628
|
+
name: request.name || randomName("acl")
|
|
629
|
+
});
|
|
630
|
+
const marshalHealthCheckHttpConfig = (request, defaults) => ({
|
|
631
|
+
code: request.code,
|
|
632
|
+
host_header: request.hostHeader,
|
|
633
|
+
method: request.method,
|
|
634
|
+
uri: request.uri
|
|
635
|
+
});
|
|
636
|
+
const marshalHealthCheckHttpsConfig = (request, defaults) => ({
|
|
637
|
+
code: request.code,
|
|
638
|
+
host_header: request.hostHeader,
|
|
639
|
+
method: request.method,
|
|
640
|
+
sni: request.sni,
|
|
641
|
+
uri: request.uri
|
|
642
|
+
});
|
|
643
|
+
const marshalHealthCheckLdapConfig = (request, defaults) => ({});
|
|
644
|
+
const marshalHealthCheckMysqlConfig = (request, defaults) => ({
|
|
645
|
+
user: request.user
|
|
646
|
+
});
|
|
647
|
+
const marshalHealthCheckPgsqlConfig = (request, defaults) => ({
|
|
648
|
+
user: request.user
|
|
649
|
+
});
|
|
650
|
+
const marshalHealthCheckRedisConfig = (request, defaults) => ({});
|
|
651
|
+
const marshalHealthCheckTcpConfig = (request, defaults) => ({});
|
|
652
|
+
const marshalHealthCheck = (request, defaults) => ({
|
|
653
|
+
check_delay: request.checkDelay,
|
|
654
|
+
check_max_retries: request.checkMaxRetries,
|
|
655
|
+
check_send_proxy: request.checkSendProxy,
|
|
656
|
+
check_timeout: request.checkTimeout,
|
|
657
|
+
port: request.port,
|
|
658
|
+
transient_check_delay: request.transientCheckDelay,
|
|
659
|
+
...marshalling.resolveOneOf([
|
|
660
|
+
{
|
|
661
|
+
param: "tcp_config",
|
|
662
|
+
value: request.tcpConfig !== void 0 ? marshalHealthCheckTcpConfig(request.tcpConfig) : void 0
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
param: "mysql_config",
|
|
666
|
+
value: request.mysqlConfig !== void 0 ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : void 0
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
param: "pgsql_config",
|
|
670
|
+
value: request.pgsqlConfig !== void 0 ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : void 0
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
param: "ldap_config",
|
|
674
|
+
value: request.ldapConfig !== void 0 ? marshalHealthCheckLdapConfig(request.ldapConfig) : void 0
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
param: "redis_config",
|
|
678
|
+
value: request.redisConfig !== void 0 ? marshalHealthCheckRedisConfig(request.redisConfig) : void 0
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
param: "http_config",
|
|
682
|
+
value: request.httpConfig !== void 0 ? marshalHealthCheckHttpConfig(request.httpConfig) : void 0
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
param: "https_config",
|
|
686
|
+
value: request.httpsConfig !== void 0 ? marshalHealthCheckHttpsConfig(request.httpsConfig) : void 0
|
|
687
|
+
}
|
|
688
|
+
])
|
|
689
|
+
});
|
|
690
|
+
const marshalCreateBackendRequest = (request, defaults) => ({
|
|
691
|
+
failover_host: request.failoverHost,
|
|
692
|
+
forward_port: request.forwardPort,
|
|
693
|
+
forward_port_algorithm: request.forwardPortAlgorithm,
|
|
694
|
+
forward_protocol: request.forwardProtocol,
|
|
695
|
+
health_check: marshalHealthCheck(request.healthCheck),
|
|
696
|
+
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
697
|
+
max_connections: request.maxConnections,
|
|
698
|
+
max_retries: request.maxRetries,
|
|
699
|
+
name: request.name || randomName("lbb"),
|
|
700
|
+
on_marked_down_action: request.onMarkedDownAction,
|
|
701
|
+
proxy_protocol: request.proxyProtocol,
|
|
702
|
+
redispatch_attempt_count: request.redispatchAttemptCount,
|
|
703
|
+
send_proxy_v2: request.sendProxyV2,
|
|
704
|
+
server_ip: request.serverIp,
|
|
705
|
+
ssl_bridging: request.sslBridging,
|
|
706
|
+
sticky_sessions: request.stickySessions,
|
|
707
|
+
sticky_sessions_cookie_name: request.stickySessionsCookieName,
|
|
708
|
+
timeout_connect: request.timeoutConnect,
|
|
709
|
+
timeout_queue: request.timeoutQueue,
|
|
710
|
+
timeout_server: request.timeoutServer,
|
|
711
|
+
timeout_tunnel: request.timeoutTunnel
|
|
712
|
+
});
|
|
713
|
+
const marshalCreateCertificateRequestCustomCertificate = (request, defaults) => ({
|
|
714
|
+
certificate_chain: request.certificateChain
|
|
715
|
+
});
|
|
716
|
+
const marshalCreateCertificateRequestLetsencryptConfig = (request, defaults) => ({
|
|
717
|
+
common_name: request.commonName,
|
|
718
|
+
subject_alternative_name: request.subjectAlternativeName
|
|
719
|
+
});
|
|
720
|
+
const marshalCreateCertificateRequest = (request, defaults) => ({
|
|
721
|
+
name: request.name || randomName("certificate"),
|
|
722
|
+
...marshalling.resolveOneOf([
|
|
723
|
+
{
|
|
724
|
+
param: "letsencrypt",
|
|
725
|
+
value: request.letsencrypt !== void 0 ? marshalCreateCertificateRequestLetsencryptConfig(
|
|
726
|
+
request.letsencrypt
|
|
727
|
+
) : void 0
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
param: "custom_certificate",
|
|
731
|
+
value: request.customCertificate !== void 0 ? marshalCreateCertificateRequestCustomCertificate(
|
|
732
|
+
request.customCertificate
|
|
733
|
+
) : void 0
|
|
734
|
+
}
|
|
735
|
+
])
|
|
736
|
+
});
|
|
737
|
+
const marshalCreateFrontendRequest = (request, defaults) => ({
|
|
738
|
+
backend_id: request.backendId,
|
|
739
|
+
certificate_id: request.certificateId,
|
|
740
|
+
certificate_ids: request.certificateIds,
|
|
741
|
+
enable_http3: request.enableHttp3,
|
|
742
|
+
inbound_port: request.inboundPort,
|
|
743
|
+
name: request.name || randomName("lbf"),
|
|
744
|
+
timeout_client: request.timeoutClient
|
|
745
|
+
});
|
|
746
|
+
const marshalCreateIpRequest = (request, defaults) => ({
|
|
747
|
+
is_ipv6: request.isIpv6,
|
|
748
|
+
reverse: request.reverse,
|
|
749
|
+
tags: request.tags,
|
|
750
|
+
...marshalling.resolveOneOf([
|
|
751
|
+
{
|
|
752
|
+
default: defaults.defaultProjectId,
|
|
753
|
+
param: "project_id",
|
|
754
|
+
value: request.projectId
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
default: defaults.defaultOrganizationId,
|
|
758
|
+
param: "organization_id",
|
|
759
|
+
value: request.organizationId
|
|
760
|
+
}
|
|
761
|
+
])
|
|
762
|
+
});
|
|
763
|
+
const marshalCreateLbRequest = (request, defaults) => ({
|
|
764
|
+
assign_flexible_ip: request.assignFlexibleIp,
|
|
765
|
+
assign_flexible_ipv6: request.assignFlexibleIpv6,
|
|
766
|
+
description: request.description,
|
|
767
|
+
ip_id: request.ipId,
|
|
768
|
+
ip_ids: request.ipIds,
|
|
769
|
+
name: request.name || randomName("lb"),
|
|
770
|
+
ssl_compatibility_level: request.sslCompatibilityLevel,
|
|
771
|
+
tags: request.tags,
|
|
772
|
+
type: request.type,
|
|
773
|
+
...marshalling.resolveOneOf([
|
|
774
|
+
{
|
|
775
|
+
default: defaults.defaultProjectId,
|
|
776
|
+
param: "project_id",
|
|
777
|
+
value: request.projectId
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
default: defaults.defaultOrganizationId,
|
|
781
|
+
param: "organization_id",
|
|
782
|
+
value: request.organizationId
|
|
783
|
+
}
|
|
784
|
+
])
|
|
785
|
+
});
|
|
786
|
+
const marshalRouteMatch = (request, defaults) => ({
|
|
787
|
+
...marshalling.resolveOneOf([
|
|
788
|
+
{ param: "sni", value: request.sni },
|
|
789
|
+
{ param: "host_header", value: request.hostHeader }
|
|
790
|
+
])
|
|
791
|
+
});
|
|
792
|
+
const marshalCreateRouteRequest = (request, defaults) => ({
|
|
793
|
+
backend_id: request.backendId,
|
|
794
|
+
frontend_id: request.frontendId,
|
|
795
|
+
match: request.match !== void 0 ? marshalRouteMatch(request.match) : void 0
|
|
796
|
+
});
|
|
797
|
+
const marshalSubscriberEmailConfig = (request, defaults) => ({
|
|
798
|
+
email: request.email
|
|
799
|
+
});
|
|
800
|
+
const marshalSubscriberWebhookConfig = (request, defaults) => ({
|
|
801
|
+
uri: request.uri
|
|
802
|
+
});
|
|
803
|
+
const marshalCreateSubscriberRequest = (request, defaults) => ({
|
|
804
|
+
name: request.name,
|
|
805
|
+
...marshalling.resolveOneOf([
|
|
806
|
+
{
|
|
807
|
+
default: defaults.defaultProjectId,
|
|
808
|
+
param: "project_id",
|
|
809
|
+
value: request.projectId
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
default: defaults.defaultOrganizationId,
|
|
813
|
+
param: "organization_id",
|
|
814
|
+
value: request.organizationId
|
|
815
|
+
}
|
|
816
|
+
]),
|
|
817
|
+
...marshalling.resolveOneOf([
|
|
818
|
+
{
|
|
819
|
+
param: "email_config",
|
|
820
|
+
value: request.emailConfig !== void 0 ? marshalSubscriberEmailConfig(request.emailConfig) : void 0
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
param: "webhook_config",
|
|
824
|
+
value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig) : void 0
|
|
825
|
+
}
|
|
826
|
+
])
|
|
827
|
+
});
|
|
828
|
+
const marshalMigrateLbRequest = (request, defaults) => ({
|
|
829
|
+
type: request.type
|
|
830
|
+
});
|
|
831
|
+
const marshalRemoveBackendServersRequest = (request, defaults) => ({
|
|
832
|
+
server_ip: request.serverIp
|
|
833
|
+
});
|
|
834
|
+
const marshalSetBackendServersRequest = (request, defaults) => ({
|
|
835
|
+
server_ip: request.serverIp
|
|
836
|
+
});
|
|
837
|
+
const marshalSubscribeToLbRequest = (request, defaults) => ({
|
|
838
|
+
subscriber_id: request.subscriberId
|
|
839
|
+
});
|
|
840
|
+
const marshalUpdateAclRequest = (request, defaults) => ({
|
|
841
|
+
action: marshalAclAction(request.action),
|
|
842
|
+
description: request.description,
|
|
843
|
+
index: request.index,
|
|
844
|
+
match: request.match !== void 0 ? marshalAclMatch(request.match) : void 0,
|
|
845
|
+
name: request.name
|
|
846
|
+
});
|
|
847
|
+
const marshalUpdateBackendRequest = (request, defaults) => ({
|
|
848
|
+
failover_host: request.failoverHost,
|
|
849
|
+
forward_port: request.forwardPort,
|
|
850
|
+
forward_port_algorithm: request.forwardPortAlgorithm,
|
|
851
|
+
forward_protocol: request.forwardProtocol,
|
|
852
|
+
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
853
|
+
max_connections: request.maxConnections,
|
|
854
|
+
max_retries: request.maxRetries,
|
|
855
|
+
name: request.name,
|
|
856
|
+
on_marked_down_action: request.onMarkedDownAction,
|
|
857
|
+
proxy_protocol: request.proxyProtocol,
|
|
858
|
+
redispatch_attempt_count: request.redispatchAttemptCount,
|
|
859
|
+
send_proxy_v2: request.sendProxyV2,
|
|
860
|
+
ssl_bridging: request.sslBridging,
|
|
861
|
+
sticky_sessions: request.stickySessions,
|
|
862
|
+
sticky_sessions_cookie_name: request.stickySessionsCookieName,
|
|
863
|
+
timeout_connect: request.timeoutConnect,
|
|
864
|
+
timeout_queue: request.timeoutQueue,
|
|
865
|
+
timeout_server: request.timeoutServer,
|
|
866
|
+
timeout_tunnel: request.timeoutTunnel
|
|
867
|
+
});
|
|
868
|
+
const marshalUpdateCertificateRequest = (request, defaults) => ({
|
|
869
|
+
name: request.name
|
|
870
|
+
});
|
|
871
|
+
const marshalUpdateFrontendRequest = (request, defaults) => ({
|
|
872
|
+
backend_id: request.backendId,
|
|
873
|
+
certificate_id: request.certificateId,
|
|
874
|
+
certificate_ids: request.certificateIds,
|
|
875
|
+
enable_http3: request.enableHttp3,
|
|
876
|
+
inbound_port: request.inboundPort,
|
|
877
|
+
name: request.name,
|
|
878
|
+
timeout_client: request.timeoutClient
|
|
879
|
+
});
|
|
880
|
+
const marshalUpdateHealthCheckRequest = (request, defaults) => ({
|
|
881
|
+
check_delay: request.checkDelay,
|
|
882
|
+
check_max_retries: request.checkMaxRetries,
|
|
883
|
+
check_send_proxy: request.checkSendProxy,
|
|
884
|
+
check_timeout: request.checkTimeout,
|
|
885
|
+
port: request.port,
|
|
886
|
+
transient_check_delay: request.transientCheckDelay,
|
|
887
|
+
...marshalling.resolveOneOf([
|
|
888
|
+
{
|
|
889
|
+
param: "tcp_config",
|
|
890
|
+
value: request.tcpConfig !== void 0 ? marshalHealthCheckTcpConfig(request.tcpConfig) : void 0
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
param: "mysql_config",
|
|
894
|
+
value: request.mysqlConfig !== void 0 ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : void 0
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
param: "pgsql_config",
|
|
898
|
+
value: request.pgsqlConfig !== void 0 ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : void 0
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
param: "ldap_config",
|
|
902
|
+
value: request.ldapConfig !== void 0 ? marshalHealthCheckLdapConfig(request.ldapConfig) : void 0
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
param: "redis_config",
|
|
906
|
+
value: request.redisConfig !== void 0 ? marshalHealthCheckRedisConfig(request.redisConfig) : void 0
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
param: "http_config",
|
|
910
|
+
value: request.httpConfig !== void 0 ? marshalHealthCheckHttpConfig(request.httpConfig) : void 0
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
param: "https_config",
|
|
914
|
+
value: request.httpsConfig !== void 0 ? marshalHealthCheckHttpsConfig(request.httpsConfig) : void 0
|
|
915
|
+
}
|
|
916
|
+
])
|
|
917
|
+
});
|
|
918
|
+
const marshalUpdateIpRequest = (request, defaults) => ({
|
|
919
|
+
lb_id: request.lbId,
|
|
920
|
+
reverse: request.reverse,
|
|
921
|
+
tags: request.tags
|
|
922
|
+
});
|
|
923
|
+
const marshalUpdateLbRequest = (request, defaults) => ({
|
|
924
|
+
description: request.description,
|
|
925
|
+
name: request.name,
|
|
926
|
+
ssl_compatibility_level: request.sslCompatibilityLevel,
|
|
927
|
+
tags: request.tags
|
|
928
|
+
});
|
|
929
|
+
const marshalUpdateRouteRequest = (request, defaults) => ({
|
|
930
|
+
backend_id: request.backendId,
|
|
931
|
+
match: request.match !== void 0 ? marshalRouteMatch(request.match) : void 0
|
|
932
|
+
});
|
|
933
|
+
const marshalUpdateSubscriberRequest = (request, defaults) => ({
|
|
934
|
+
name: request.name,
|
|
935
|
+
...marshalling.resolveOneOf([
|
|
936
|
+
{
|
|
937
|
+
param: "email_config",
|
|
938
|
+
value: request.emailConfig !== void 0 ? marshalSubscriberEmailConfig(request.emailConfig) : void 0
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
param: "webhook_config",
|
|
942
|
+
value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig) : void 0
|
|
943
|
+
}
|
|
944
|
+
])
|
|
945
|
+
});
|
|
946
|
+
const marshalZonedApiAddBackendServersRequest = (request, defaults) => ({
|
|
947
|
+
server_ip: request.serverIp
|
|
948
|
+
});
|
|
949
|
+
const marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
|
|
950
|
+
...marshalling.resolveOneOf([
|
|
951
|
+
{
|
|
952
|
+
param: "static_config",
|
|
953
|
+
value: request.staticConfig !== void 0 ? marshalPrivateNetworkStaticConfig(request.staticConfig) : void 0
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
param: "dhcp_config",
|
|
957
|
+
value: request.dhcpConfig !== void 0 ? marshalPrivateNetworkDHCPConfig(request.dhcpConfig) : void 0
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
param: "ipam_config",
|
|
961
|
+
value: request.ipamConfig !== void 0 ? marshalPrivateNetworkIpamConfig(request.ipamConfig) : void 0
|
|
962
|
+
}
|
|
963
|
+
])
|
|
964
|
+
});
|
|
965
|
+
const marshalZonedApiCreateAclRequest = (request, defaults) => ({
|
|
966
|
+
action: marshalAclAction(request.action),
|
|
967
|
+
description: request.description,
|
|
968
|
+
index: request.index,
|
|
969
|
+
match: request.match !== void 0 ? marshalAclMatch(request.match) : void 0,
|
|
970
|
+
name: request.name || randomName("acl")
|
|
971
|
+
});
|
|
972
|
+
const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
|
|
973
|
+
failover_host: request.failoverHost,
|
|
974
|
+
forward_port: request.forwardPort,
|
|
975
|
+
forward_port_algorithm: request.forwardPortAlgorithm,
|
|
976
|
+
forward_protocol: request.forwardProtocol,
|
|
977
|
+
health_check: marshalHealthCheck(request.healthCheck),
|
|
978
|
+
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
979
|
+
max_connections: request.maxConnections,
|
|
980
|
+
max_retries: request.maxRetries,
|
|
981
|
+
name: request.name || randomName("lbb"),
|
|
982
|
+
on_marked_down_action: request.onMarkedDownAction,
|
|
983
|
+
proxy_protocol: request.proxyProtocol,
|
|
984
|
+
redispatch_attempt_count: request.redispatchAttemptCount,
|
|
985
|
+
send_proxy_v2: request.sendProxyV2,
|
|
986
|
+
server_ip: request.serverIp,
|
|
987
|
+
ssl_bridging: request.sslBridging,
|
|
988
|
+
sticky_sessions: request.stickySessions,
|
|
989
|
+
sticky_sessions_cookie_name: request.stickySessionsCookieName,
|
|
990
|
+
timeout_connect: request.timeoutConnect,
|
|
991
|
+
timeout_queue: request.timeoutQueue,
|
|
992
|
+
timeout_server: request.timeoutServer,
|
|
993
|
+
timeout_tunnel: request.timeoutTunnel
|
|
994
|
+
});
|
|
995
|
+
const marshalZonedApiCreateCertificateRequest = (request, defaults) => ({
|
|
996
|
+
name: request.name || randomName("certificate"),
|
|
997
|
+
...marshalling.resolveOneOf([
|
|
998
|
+
{
|
|
999
|
+
param: "letsencrypt",
|
|
1000
|
+
value: request.letsencrypt !== void 0 ? marshalCreateCertificateRequestLetsencryptConfig(
|
|
1001
|
+
request.letsencrypt
|
|
1002
|
+
) : void 0
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
param: "custom_certificate",
|
|
1006
|
+
value: request.customCertificate !== void 0 ? marshalCreateCertificateRequestCustomCertificate(
|
|
1007
|
+
request.customCertificate
|
|
1008
|
+
) : void 0
|
|
1009
|
+
}
|
|
1010
|
+
])
|
|
1011
|
+
});
|
|
1012
|
+
const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
|
|
1013
|
+
backend_id: request.backendId,
|
|
1014
|
+
certificate_id: request.certificateId,
|
|
1015
|
+
certificate_ids: request.certificateIds,
|
|
1016
|
+
enable_http3: request.enableHttp3,
|
|
1017
|
+
inbound_port: request.inboundPort,
|
|
1018
|
+
name: request.name || randomName("lbf"),
|
|
1019
|
+
timeout_client: request.timeoutClient
|
|
1020
|
+
});
|
|
1021
|
+
const marshalZonedApiCreateIpRequest = (request, defaults) => ({
|
|
1022
|
+
is_ipv6: request.isIpv6,
|
|
1023
|
+
reverse: request.reverse,
|
|
1024
|
+
tags: request.tags,
|
|
1025
|
+
...marshalling.resolveOneOf([
|
|
1026
|
+
{
|
|
1027
|
+
default: defaults.defaultProjectId,
|
|
1028
|
+
param: "project_id",
|
|
1029
|
+
value: request.projectId
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
default: defaults.defaultOrganizationId,
|
|
1033
|
+
param: "organization_id",
|
|
1034
|
+
value: request.organizationId
|
|
1035
|
+
}
|
|
1036
|
+
])
|
|
1037
|
+
});
|
|
1038
|
+
const marshalZonedApiCreateLbRequest = (request, defaults) => ({
|
|
1039
|
+
assign_flexible_ip: request.assignFlexibleIp,
|
|
1040
|
+
assign_flexible_ipv6: request.assignFlexibleIpv6,
|
|
1041
|
+
description: request.description,
|
|
1042
|
+
ip_id: request.ipId,
|
|
1043
|
+
ip_ids: request.ipIds,
|
|
1044
|
+
name: request.name || randomName("lb"),
|
|
1045
|
+
ssl_compatibility_level: request.sslCompatibilityLevel,
|
|
1046
|
+
tags: request.tags,
|
|
1047
|
+
type: request.type,
|
|
1048
|
+
...marshalling.resolveOneOf([
|
|
1049
|
+
{
|
|
1050
|
+
default: defaults.defaultProjectId,
|
|
1051
|
+
param: "project_id",
|
|
1052
|
+
value: request.projectId
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
default: defaults.defaultOrganizationId,
|
|
1056
|
+
param: "organization_id",
|
|
1057
|
+
value: request.organizationId
|
|
1058
|
+
}
|
|
1059
|
+
])
|
|
1060
|
+
});
|
|
1061
|
+
const marshalZonedApiCreateRouteRequest = (request, defaults) => ({
|
|
1062
|
+
backend_id: request.backendId,
|
|
1063
|
+
frontend_id: request.frontendId,
|
|
1064
|
+
match: request.match !== void 0 ? marshalRouteMatch(request.match) : void 0
|
|
1065
|
+
});
|
|
1066
|
+
const marshalZonedApiCreateSubscriberRequest = (request, defaults) => ({
|
|
1067
|
+
name: request.name,
|
|
1068
|
+
...marshalling.resolveOneOf([
|
|
1069
|
+
{
|
|
1070
|
+
default: defaults.defaultProjectId,
|
|
1071
|
+
param: "project_id",
|
|
1072
|
+
value: request.projectId
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
default: defaults.defaultOrganizationId,
|
|
1076
|
+
param: "organization_id",
|
|
1077
|
+
value: request.organizationId
|
|
1078
|
+
}
|
|
1079
|
+
]),
|
|
1080
|
+
...marshalling.resolveOneOf([
|
|
1081
|
+
{
|
|
1082
|
+
param: "email_config",
|
|
1083
|
+
value: request.emailConfig !== void 0 ? marshalSubscriberEmailConfig(request.emailConfig) : void 0
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
param: "webhook_config",
|
|
1087
|
+
value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig) : void 0
|
|
1088
|
+
}
|
|
1089
|
+
])
|
|
1090
|
+
});
|
|
1091
|
+
const marshalZonedApiMigrateLbRequest = (request, defaults) => ({
|
|
1092
|
+
type: request.type
|
|
1093
|
+
});
|
|
1094
|
+
const marshalZonedApiRemoveBackendServersRequest = (request, defaults) => ({
|
|
1095
|
+
server_ip: request.serverIp
|
|
1096
|
+
});
|
|
1097
|
+
const marshalAclSpec = (request, defaults) => ({
|
|
1098
|
+
action: marshalAclAction(request.action),
|
|
1099
|
+
description: request.description,
|
|
1100
|
+
index: request.index,
|
|
1101
|
+
match: request.match !== void 0 ? marshalAclMatch(request.match) : void 0,
|
|
1102
|
+
name: request.name
|
|
1103
|
+
});
|
|
1104
|
+
const marshalZonedApiSetAclsRequest = (request, defaults) => ({
|
|
1105
|
+
acls: request.acls.map((elt) => marshalAclSpec(elt))
|
|
1106
|
+
});
|
|
1107
|
+
const marshalZonedApiSetBackendServersRequest = (request, defaults) => ({
|
|
1108
|
+
server_ip: request.serverIp
|
|
1109
|
+
});
|
|
1110
|
+
const marshalZonedApiSubscribeToLbRequest = (request, defaults) => ({
|
|
1111
|
+
subscriber_id: request.subscriberId
|
|
1112
|
+
});
|
|
1113
|
+
const marshalZonedApiUpdateAclRequest = (request, defaults) => ({
|
|
1114
|
+
action: marshalAclAction(request.action),
|
|
1115
|
+
description: request.description,
|
|
1116
|
+
index: request.index,
|
|
1117
|
+
match: request.match !== void 0 ? marshalAclMatch(request.match) : void 0,
|
|
1118
|
+
name: request.name
|
|
1119
|
+
});
|
|
1120
|
+
const marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
|
|
1121
|
+
failover_host: request.failoverHost,
|
|
1122
|
+
forward_port: request.forwardPort,
|
|
1123
|
+
forward_port_algorithm: request.forwardPortAlgorithm,
|
|
1124
|
+
forward_protocol: request.forwardProtocol,
|
|
1125
|
+
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
1126
|
+
max_connections: request.maxConnections,
|
|
1127
|
+
max_retries: request.maxRetries,
|
|
1128
|
+
name: request.name,
|
|
1129
|
+
on_marked_down_action: request.onMarkedDownAction,
|
|
1130
|
+
proxy_protocol: request.proxyProtocol,
|
|
1131
|
+
redispatch_attempt_count: request.redispatchAttemptCount,
|
|
1132
|
+
send_proxy_v2: request.sendProxyV2,
|
|
1133
|
+
ssl_bridging: request.sslBridging,
|
|
1134
|
+
sticky_sessions: request.stickySessions,
|
|
1135
|
+
sticky_sessions_cookie_name: request.stickySessionsCookieName,
|
|
1136
|
+
timeout_connect: request.timeoutConnect,
|
|
1137
|
+
timeout_queue: request.timeoutQueue,
|
|
1138
|
+
timeout_server: request.timeoutServer,
|
|
1139
|
+
timeout_tunnel: request.timeoutTunnel
|
|
1140
|
+
});
|
|
1141
|
+
const marshalZonedApiUpdateCertificateRequest = (request, defaults) => ({
|
|
1142
|
+
name: request.name
|
|
1143
|
+
});
|
|
1144
|
+
const marshalZonedApiUpdateFrontendRequest = (request, defaults) => ({
|
|
1145
|
+
backend_id: request.backendId,
|
|
1146
|
+
certificate_id: request.certificateId,
|
|
1147
|
+
certificate_ids: request.certificateIds,
|
|
1148
|
+
enable_http3: request.enableHttp3,
|
|
1149
|
+
inbound_port: request.inboundPort,
|
|
1150
|
+
name: request.name,
|
|
1151
|
+
timeout_client: request.timeoutClient
|
|
1152
|
+
});
|
|
1153
|
+
const marshalZonedApiUpdateHealthCheckRequest = (request, defaults) => ({
|
|
1154
|
+
check_delay: request.checkDelay,
|
|
1155
|
+
check_max_retries: request.checkMaxRetries,
|
|
1156
|
+
check_send_proxy: request.checkSendProxy,
|
|
1157
|
+
check_timeout: request.checkTimeout,
|
|
1158
|
+
port: request.port,
|
|
1159
|
+
transient_check_delay: request.transientCheckDelay,
|
|
1160
|
+
...marshalling.resolveOneOf([
|
|
1161
|
+
{
|
|
1162
|
+
param: "tcp_config",
|
|
1163
|
+
value: request.tcpConfig !== void 0 ? marshalHealthCheckTcpConfig(request.tcpConfig) : void 0
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
param: "mysql_config",
|
|
1167
|
+
value: request.mysqlConfig !== void 0 ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : void 0
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
param: "pgsql_config",
|
|
1171
|
+
value: request.pgsqlConfig !== void 0 ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : void 0
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
param: "ldap_config",
|
|
1175
|
+
value: request.ldapConfig !== void 0 ? marshalHealthCheckLdapConfig(request.ldapConfig) : void 0
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
param: "redis_config",
|
|
1179
|
+
value: request.redisConfig !== void 0 ? marshalHealthCheckRedisConfig(request.redisConfig) : void 0
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
param: "http_config",
|
|
1183
|
+
value: request.httpConfig !== void 0 ? marshalHealthCheckHttpConfig(request.httpConfig) : void 0
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
param: "https_config",
|
|
1187
|
+
value: request.httpsConfig !== void 0 ? marshalHealthCheckHttpsConfig(request.httpsConfig) : void 0
|
|
1188
|
+
}
|
|
1189
|
+
])
|
|
1190
|
+
});
|
|
1191
|
+
const marshalZonedApiUpdateIpRequest = (request, defaults) => ({
|
|
1192
|
+
lb_id: request.lbId,
|
|
1193
|
+
reverse: request.reverse,
|
|
1194
|
+
tags: request.tags
|
|
1195
|
+
});
|
|
1196
|
+
const marshalZonedApiUpdateLbRequest = (request, defaults) => ({
|
|
1197
|
+
description: request.description,
|
|
1198
|
+
name: request.name,
|
|
1199
|
+
ssl_compatibility_level: request.sslCompatibilityLevel,
|
|
1200
|
+
tags: request.tags
|
|
1201
|
+
});
|
|
1202
|
+
const marshalZonedApiUpdateRouteRequest = (request, defaults) => ({
|
|
1203
|
+
backend_id: request.backendId,
|
|
1204
|
+
match: request.match !== void 0 ? marshalRouteMatch(request.match) : void 0
|
|
1205
|
+
});
|
|
1206
|
+
const marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
|
|
1207
|
+
name: request.name,
|
|
1208
|
+
...marshalling.resolveOneOf([
|
|
1209
|
+
{
|
|
1210
|
+
param: "email_config",
|
|
1211
|
+
value: request.emailConfig !== void 0 ? marshalSubscriberEmailConfig(request.emailConfig) : void 0
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
param: "webhook_config",
|
|
1215
|
+
value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig) : void 0
|
|
1216
|
+
}
|
|
1217
|
+
])
|
|
1218
|
+
});
|
|
1219
|
+
exports.marshalAddBackendServersRequest = marshalAddBackendServersRequest;
|
|
1220
|
+
exports.marshalAttachPrivateNetworkRequest = marshalAttachPrivateNetworkRequest;
|
|
1221
|
+
exports.marshalCreateAclRequest = marshalCreateAclRequest;
|
|
1222
|
+
exports.marshalCreateBackendRequest = marshalCreateBackendRequest;
|
|
1223
|
+
exports.marshalCreateCertificateRequest = marshalCreateCertificateRequest;
|
|
1224
|
+
exports.marshalCreateFrontendRequest = marshalCreateFrontendRequest;
|
|
1225
|
+
exports.marshalCreateIpRequest = marshalCreateIpRequest;
|
|
1226
|
+
exports.marshalCreateLbRequest = marshalCreateLbRequest;
|
|
1227
|
+
exports.marshalCreateRouteRequest = marshalCreateRouteRequest;
|
|
1228
|
+
exports.marshalCreateSubscriberRequest = marshalCreateSubscriberRequest;
|
|
1229
|
+
exports.marshalMigrateLbRequest = marshalMigrateLbRequest;
|
|
1230
|
+
exports.marshalRemoveBackendServersRequest = marshalRemoveBackendServersRequest;
|
|
1231
|
+
exports.marshalSetBackendServersRequest = marshalSetBackendServersRequest;
|
|
1232
|
+
exports.marshalSubscribeToLbRequest = marshalSubscribeToLbRequest;
|
|
1233
|
+
exports.marshalUpdateAclRequest = marshalUpdateAclRequest;
|
|
1234
|
+
exports.marshalUpdateBackendRequest = marshalUpdateBackendRequest;
|
|
1235
|
+
exports.marshalUpdateCertificateRequest = marshalUpdateCertificateRequest;
|
|
1236
|
+
exports.marshalUpdateFrontendRequest = marshalUpdateFrontendRequest;
|
|
1237
|
+
exports.marshalUpdateHealthCheckRequest = marshalUpdateHealthCheckRequest;
|
|
1238
|
+
exports.marshalUpdateIpRequest = marshalUpdateIpRequest;
|
|
1239
|
+
exports.marshalUpdateLbRequest = marshalUpdateLbRequest;
|
|
1240
|
+
exports.marshalUpdateRouteRequest = marshalUpdateRouteRequest;
|
|
1241
|
+
exports.marshalUpdateSubscriberRequest = marshalUpdateSubscriberRequest;
|
|
1242
|
+
exports.marshalZonedApiAddBackendServersRequest = marshalZonedApiAddBackendServersRequest;
|
|
1243
|
+
exports.marshalZonedApiAttachPrivateNetworkRequest = marshalZonedApiAttachPrivateNetworkRequest;
|
|
1244
|
+
exports.marshalZonedApiCreateAclRequest = marshalZonedApiCreateAclRequest;
|
|
1245
|
+
exports.marshalZonedApiCreateBackendRequest = marshalZonedApiCreateBackendRequest;
|
|
1246
|
+
exports.marshalZonedApiCreateCertificateRequest = marshalZonedApiCreateCertificateRequest;
|
|
1247
|
+
exports.marshalZonedApiCreateFrontendRequest = marshalZonedApiCreateFrontendRequest;
|
|
1248
|
+
exports.marshalZonedApiCreateIpRequest = marshalZonedApiCreateIpRequest;
|
|
1249
|
+
exports.marshalZonedApiCreateLbRequest = marshalZonedApiCreateLbRequest;
|
|
1250
|
+
exports.marshalZonedApiCreateRouteRequest = marshalZonedApiCreateRouteRequest;
|
|
1251
|
+
exports.marshalZonedApiCreateSubscriberRequest = marshalZonedApiCreateSubscriberRequest;
|
|
1252
|
+
exports.marshalZonedApiMigrateLbRequest = marshalZonedApiMigrateLbRequest;
|
|
1253
|
+
exports.marshalZonedApiRemoveBackendServersRequest = marshalZonedApiRemoveBackendServersRequest;
|
|
1254
|
+
exports.marshalZonedApiSetAclsRequest = marshalZonedApiSetAclsRequest;
|
|
1255
|
+
exports.marshalZonedApiSetBackendServersRequest = marshalZonedApiSetBackendServersRequest;
|
|
1256
|
+
exports.marshalZonedApiSubscribeToLbRequest = marshalZonedApiSubscribeToLbRequest;
|
|
1257
|
+
exports.marshalZonedApiUpdateAclRequest = marshalZonedApiUpdateAclRequest;
|
|
1258
|
+
exports.marshalZonedApiUpdateBackendRequest = marshalZonedApiUpdateBackendRequest;
|
|
1259
|
+
exports.marshalZonedApiUpdateCertificateRequest = marshalZonedApiUpdateCertificateRequest;
|
|
1260
|
+
exports.marshalZonedApiUpdateFrontendRequest = marshalZonedApiUpdateFrontendRequest;
|
|
1261
|
+
exports.marshalZonedApiUpdateHealthCheckRequest = marshalZonedApiUpdateHealthCheckRequest;
|
|
1262
|
+
exports.marshalZonedApiUpdateIpRequest = marshalZonedApiUpdateIpRequest;
|
|
1263
|
+
exports.marshalZonedApiUpdateLbRequest = marshalZonedApiUpdateLbRequest;
|
|
1264
|
+
exports.marshalZonedApiUpdateRouteRequest = marshalZonedApiUpdateRouteRequest;
|
|
1265
|
+
exports.marshalZonedApiUpdateSubscriberRequest = marshalZonedApiUpdateSubscriberRequest;
|
|
1266
|
+
exports.unmarshalAcl = unmarshalAcl;
|
|
1267
|
+
exports.unmarshalBackend = unmarshalBackend;
|
|
1268
|
+
exports.unmarshalBackendServerStats = unmarshalBackendServerStats;
|
|
1269
|
+
exports.unmarshalCertificate = unmarshalCertificate;
|
|
1270
|
+
exports.unmarshalFrontend = unmarshalFrontend;
|
|
1271
|
+
exports.unmarshalHealthCheck = unmarshalHealthCheck;
|
|
1272
|
+
exports.unmarshalIp = unmarshalIp;
|
|
1273
|
+
exports.unmarshalLb = unmarshalLb;
|
|
1274
|
+
exports.unmarshalLbStats = unmarshalLbStats;
|
|
1275
|
+
exports.unmarshalListAclResponse = unmarshalListAclResponse;
|
|
1276
|
+
exports.unmarshalListBackendStatsResponse = unmarshalListBackendStatsResponse;
|
|
1277
|
+
exports.unmarshalListBackendsResponse = unmarshalListBackendsResponse;
|
|
1278
|
+
exports.unmarshalListCertificatesResponse = unmarshalListCertificatesResponse;
|
|
1279
|
+
exports.unmarshalListFrontendsResponse = unmarshalListFrontendsResponse;
|
|
1280
|
+
exports.unmarshalListIpsResponse = unmarshalListIpsResponse;
|
|
1281
|
+
exports.unmarshalListLbPrivateNetworksResponse = unmarshalListLbPrivateNetworksResponse;
|
|
1282
|
+
exports.unmarshalListLbTypesResponse = unmarshalListLbTypesResponse;
|
|
1283
|
+
exports.unmarshalListLbsResponse = unmarshalListLbsResponse;
|
|
1284
|
+
exports.unmarshalListRoutesResponse = unmarshalListRoutesResponse;
|
|
1285
|
+
exports.unmarshalListSubscriberResponse = unmarshalListSubscriberResponse;
|
|
1286
|
+
exports.unmarshalPrivateNetwork = unmarshalPrivateNetwork;
|
|
1287
|
+
exports.unmarshalRoute = unmarshalRoute;
|
|
1288
|
+
exports.unmarshalSetAclsResponse = unmarshalSetAclsResponse;
|
|
1289
|
+
exports.unmarshalSubscriber = unmarshalSubscriber;
|