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