@scaleway/sdk-lb 2.7.4 → 2.9.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.
@@ -1,976 +0,0 @@
1
- import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
- import randomName from "@scaleway/random-name";
3
- //#region src/v1/marshalling.gen.ts
4
- const unmarshalIp = (data) => {
5
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`);
6
- return {
7
- id: data.id,
8
- ipAddress: data.ip_address,
9
- lbId: data.lb_id,
10
- organizationId: data.organization_id,
11
- projectId: data.project_id,
12
- region: data.region,
13
- reverse: data.reverse,
14
- tags: data.tags,
15
- zone: data.zone
16
- };
17
- };
18
- const unmarshalSubscriberEmailConfig = (data) => {
19
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SubscriberEmailConfig' failed as data isn't a dictionary.`);
20
- return { email: data.email };
21
- };
22
- const unmarshalSubscriberWebhookConfig = (data) => {
23
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SubscriberWebhookConfig' failed as data isn't a dictionary.`);
24
- return { uri: data.uri };
25
- };
26
- const unmarshalSubscriber = (data) => {
27
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Subscriber' failed as data isn't a dictionary.`);
28
- return {
29
- emailConfig: data.email_config ? unmarshalSubscriberEmailConfig(data.email_config) : void 0,
30
- id: data.id,
31
- name: data.name,
32
- webhookConfig: data.webhook_config ? unmarshalSubscriberWebhookConfig(data.webhook_config) : void 0
33
- };
34
- };
35
- const unmarshalHealthCheckHttpConfig = (data) => {
36
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheckHttpConfig' failed as data isn't a dictionary.`);
37
- return {
38
- code: data.code,
39
- hostHeader: data.host_header,
40
- method: data.method,
41
- uri: data.uri
42
- };
43
- };
44
- const unmarshalHealthCheckHttpsConfig = (data) => {
45
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheckHttpsConfig' failed as data isn't a dictionary.`);
46
- return {
47
- code: data.code,
48
- hostHeader: data.host_header,
49
- method: data.method,
50
- sni: data.sni,
51
- uri: data.uri
52
- };
53
- };
54
- const unmarshalHealthCheckLdapConfig = (data) => {
55
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheckLdapConfig' failed as data isn't a dictionary.`);
56
- return {};
57
- };
58
- const unmarshalHealthCheckMysqlConfig = (data) => {
59
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheckMysqlConfig' failed as data isn't a dictionary.`);
60
- return { user: data.user };
61
- };
62
- const unmarshalHealthCheckPgsqlConfig = (data) => {
63
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheckPgsqlConfig' failed as data isn't a dictionary.`);
64
- return { user: data.user };
65
- };
66
- const unmarshalHealthCheckRedisConfig = (data) => {
67
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheckRedisConfig' failed as data isn't a dictionary.`);
68
- return {};
69
- };
70
- const unmarshalHealthCheckTcpConfig = (data) => {
71
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheckTcpConfig' failed as data isn't a dictionary.`);
72
- return {};
73
- };
74
- const unmarshalHealthCheck = (data) => {
75
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HealthCheck' failed as data isn't a dictionary.`);
76
- return {
77
- checkDelay: data.check_delay,
78
- checkMaxRetries: data.check_max_retries,
79
- checkSendProxy: data.check_send_proxy,
80
- checkTimeout: data.check_timeout,
81
- httpConfig: data.http_config ? unmarshalHealthCheckHttpConfig(data.http_config) : void 0,
82
- httpsConfig: data.https_config ? unmarshalHealthCheckHttpsConfig(data.https_config) : void 0,
83
- ldapConfig: data.ldap_config ? unmarshalHealthCheckLdapConfig(data.ldap_config) : void 0,
84
- mysqlConfig: data.mysql_config ? unmarshalHealthCheckMysqlConfig(data.mysql_config) : void 0,
85
- pgsqlConfig: data.pgsql_config ? unmarshalHealthCheckPgsqlConfig(data.pgsql_config) : void 0,
86
- port: data.port,
87
- redisConfig: data.redis_config ? unmarshalHealthCheckRedisConfig(data.redis_config) : void 0,
88
- tcpConfig: data.tcp_config ? unmarshalHealthCheckTcpConfig(data.tcp_config) : void 0,
89
- transientCheckDelay: data.transient_check_delay
90
- };
91
- };
92
- const unmarshalInstance = (data) => {
93
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Instance' failed as data isn't a dictionary.`);
94
- return {
95
- createdAt: unmarshalDate(data.created_at),
96
- id: data.id,
97
- ipAddress: data.ip_address,
98
- region: data.region,
99
- status: data.status,
100
- updatedAt: unmarshalDate(data.updated_at),
101
- zone: data.zone
102
- };
103
- };
104
- const unmarshalLb = (data) => {
105
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Lb' failed as data isn't a dictionary.`);
106
- return {
107
- backendCount: data.backend_count,
108
- createdAt: unmarshalDate(data.created_at),
109
- description: data.description,
110
- frontendCount: data.frontend_count,
111
- id: data.id,
112
- instances: unmarshalArrayOfObject(data.instances, unmarshalInstance),
113
- ip: unmarshalArrayOfObject(data.ip, unmarshalIp),
114
- name: data.name,
115
- organizationId: data.organization_id,
116
- privateNetworkCount: data.private_network_count,
117
- projectId: data.project_id,
118
- region: data.region,
119
- routeCount: data.route_count,
120
- sslCompatibilityLevel: data.ssl_compatibility_level,
121
- status: data.status,
122
- subscriber: data.subscriber ? unmarshalSubscriber(data.subscriber) : void 0,
123
- tags: data.tags,
124
- type: data.type,
125
- updatedAt: unmarshalDate(data.updated_at),
126
- zone: data.zone
127
- };
128
- };
129
- const unmarshalBackend = (data) => {
130
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Backend' failed as data isn't a dictionary.`);
131
- return {
132
- createdAt: unmarshalDate(data.created_at),
133
- failoverHost: data.failover_host,
134
- forwardPort: data.forward_port,
135
- forwardPortAlgorithm: data.forward_port_algorithm,
136
- forwardProtocol: data.forward_protocol,
137
- healthCheck: data.health_check ? unmarshalHealthCheck(data.health_check) : void 0,
138
- host: data.host,
139
- id: data.id,
140
- ignoreSslServerVerify: data.ignore_ssl_server_verify,
141
- lb: data.lb ? unmarshalLb(data.lb) : void 0,
142
- maxConnections: data.max_connections,
143
- maxRetries: data.max_retries,
144
- name: data.name,
145
- onMarkedDownAction: data.on_marked_down_action,
146
- pool: data.pool,
147
- proxyProtocol: data.proxy_protocol,
148
- redispatchAttemptCount: data.redispatch_attempt_count,
149
- sendProxyV2: data.send_proxy_v2,
150
- sslBridging: data.ssl_bridging,
151
- stickySessions: data.sticky_sessions,
152
- stickySessionsCookieName: data.sticky_sessions_cookie_name,
153
- timeoutConnect: data.timeout_connect,
154
- timeoutQueue: data.timeout_queue,
155
- timeoutServer: data.timeout_server,
156
- timeoutTunnel: data.timeout_tunnel,
157
- updatedAt: unmarshalDate(data.updated_at)
158
- };
159
- };
160
- const unmarshalCertificate = (data) => {
161
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Certificate' failed as data isn't a dictionary.`);
162
- return {
163
- commonName: data.common_name,
164
- createdAt: unmarshalDate(data.created_at),
165
- fingerprint: data.fingerprint,
166
- id: data.id,
167
- lb: data.lb ? unmarshalLb(data.lb) : void 0,
168
- name: data.name,
169
- notValidAfter: unmarshalDate(data.not_valid_after),
170
- notValidBefore: unmarshalDate(data.not_valid_before),
171
- status: data.status,
172
- statusDetails: data.status_details,
173
- subjectAlternativeName: data.subject_alternative_name,
174
- type: data.type,
175
- updatedAt: unmarshalDate(data.updated_at)
176
- };
177
- };
178
- const unmarshalFrontend = (data) => {
179
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Frontend' failed as data isn't a dictionary.`);
180
- return {
181
- backend: data.backend ? unmarshalBackend(data.backend) : void 0,
182
- certificate: data.certificate ? unmarshalCertificate(data.certificate) : void 0,
183
- certificateIds: data.certificate_ids,
184
- connectionRateLimit: data.connection_rate_limit,
185
- createdAt: unmarshalDate(data.created_at),
186
- enableAccessLogs: data.enable_access_logs,
187
- enableHttp3: data.enable_http3,
188
- id: data.id,
189
- inboundPort: data.inbound_port,
190
- lb: data.lb ? unmarshalLb(data.lb) : void 0,
191
- name: data.name,
192
- timeoutClient: data.timeout_client,
193
- updatedAt: unmarshalDate(data.updated_at)
194
- };
195
- };
196
- const unmarshalAclActionRedirect = (data) => {
197
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AclActionRedirect' failed as data isn't a dictionary.`);
198
- return {
199
- code: data.code,
200
- target: data.target,
201
- type: data.type
202
- };
203
- };
204
- const unmarshalAclAction = (data) => {
205
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AclAction' failed as data isn't a dictionary.`);
206
- return {
207
- redirect: data.redirect ? unmarshalAclActionRedirect(data.redirect) : void 0,
208
- type: data.type
209
- };
210
- };
211
- const unmarshalAclMatch = (data) => {
212
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AclMatch' failed as data isn't a dictionary.`);
213
- return {
214
- httpFilter: data.http_filter,
215
- httpFilterOption: data.http_filter_option,
216
- httpFilterValue: data.http_filter_value,
217
- invert: data.invert,
218
- ipSubnet: data.ip_subnet,
219
- ipsEdgeServices: data.ips_edge_services
220
- };
221
- };
222
- const unmarshalAcl = (data) => {
223
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Acl' failed as data isn't a dictionary.`);
224
- return {
225
- action: data.action ? unmarshalAclAction(data.action) : void 0,
226
- createdAt: unmarshalDate(data.created_at),
227
- description: data.description,
228
- frontend: data.frontend ? unmarshalFrontend(data.frontend) : void 0,
229
- id: data.id,
230
- index: data.index,
231
- match: data.match ? unmarshalAclMatch(data.match) : void 0,
232
- name: data.name,
233
- updatedAt: unmarshalDate(data.updated_at)
234
- };
235
- };
236
- const unmarshalPrivateNetworkDHCPConfig = (data) => {
237
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetworkDHCPConfig' failed as data isn't a dictionary.`);
238
- return { ipId: data.ip_id };
239
- };
240
- const unmarshalPrivateNetworkIpamConfig = (data) => {
241
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetworkIpamConfig' failed as data isn't a dictionary.`);
242
- return {};
243
- };
244
- const unmarshalPrivateNetworkStaticConfig = (data) => {
245
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetworkStaticConfig' failed as data isn't a dictionary.`);
246
- return { ipAddress: data.ip_address ? data.ip_address : void 0 };
247
- };
248
- const unmarshalPrivateNetwork = (data) => {
249
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`);
250
- return {
251
- createdAt: unmarshalDate(data.created_at),
252
- dhcpConfig: data.dhcp_config ? unmarshalPrivateNetworkDHCPConfig(data.dhcp_config) : void 0,
253
- ipamConfig: data.ipam_config ? unmarshalPrivateNetworkIpamConfig(data.ipam_config) : void 0,
254
- ipamIds: data.ipam_ids,
255
- lb: data.lb ? unmarshalLb(data.lb) : void 0,
256
- privateNetworkId: data.private_network_id,
257
- staticConfig: data.static_config ? unmarshalPrivateNetworkStaticConfig(data.static_config) : void 0,
258
- status: data.status,
259
- updatedAt: unmarshalDate(data.updated_at)
260
- };
261
- };
262
- const unmarshalRouteMatch = (data) => {
263
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RouteMatch' failed as data isn't a dictionary.`);
264
- return {
265
- hostHeader: data.host_header,
266
- matchSubdomains: data.match_subdomains,
267
- pathBegin: data.path_begin,
268
- sni: data.sni
269
- };
270
- };
271
- const unmarshalRoute = (data) => {
272
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Route' failed as data isn't a dictionary.`);
273
- return {
274
- backendId: data.backend_id,
275
- createdAt: unmarshalDate(data.created_at),
276
- frontendId: data.frontend_id,
277
- id: data.id,
278
- match: data.match ? unmarshalRouteMatch(data.match) : void 0,
279
- updatedAt: unmarshalDate(data.updated_at)
280
- };
281
- };
282
- const unmarshalBackendServerStats = (data) => {
283
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BackendServerStats' failed as data isn't a dictionary.`);
284
- return {
285
- backendId: data.backend_id,
286
- instanceId: data.instance_id,
287
- ip: data.ip,
288
- lastHealthCheckStatus: data.last_health_check_status,
289
- serverState: data.server_state,
290
- serverStateChangedAt: unmarshalDate(data.server_state_changed_at)
291
- };
292
- };
293
- const unmarshalLbStats = (data) => {
294
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LbStats' failed as data isn't a dictionary.`);
295
- return { backendServersStats: unmarshalArrayOfObject(data.backend_servers_stats, unmarshalBackendServerStats) };
296
- };
297
- const unmarshalListAclResponse = (data) => {
298
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAclResponse' failed as data isn't a dictionary.`);
299
- return {
300
- acls: unmarshalArrayOfObject(data.acls, unmarshalAcl),
301
- totalCount: data.total_count
302
- };
303
- };
304
- const unmarshalListBackendStatsResponse = (data) => {
305
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackendStatsResponse' failed as data isn't a dictionary.`);
306
- return {
307
- backendServersStats: unmarshalArrayOfObject(data.backend_servers_stats, unmarshalBackendServerStats),
308
- totalCount: data.total_count
309
- };
310
- };
311
- const unmarshalListBackendsResponse = (data) => {
312
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackendsResponse' failed as data isn't a dictionary.`);
313
- return {
314
- backends: unmarshalArrayOfObject(data.backends, unmarshalBackend),
315
- totalCount: data.total_count
316
- };
317
- };
318
- const unmarshalListCertificatesResponse = (data) => {
319
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCertificatesResponse' failed as data isn't a dictionary.`);
320
- return {
321
- certificates: unmarshalArrayOfObject(data.certificates, unmarshalCertificate),
322
- totalCount: data.total_count
323
- };
324
- };
325
- const unmarshalListFrontendsResponse = (data) => {
326
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFrontendsResponse' failed as data isn't a dictionary.`);
327
- return {
328
- frontends: unmarshalArrayOfObject(data.frontends, unmarshalFrontend),
329
- totalCount: data.total_count
330
- };
331
- };
332
- const unmarshalListIpsResponse = (data) => {
333
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`);
334
- return {
335
- ips: unmarshalArrayOfObject(data.ips, unmarshalIp),
336
- totalCount: data.total_count
337
- };
338
- };
339
- const unmarshalListLbPrivateNetworksResponse = (data) => {
340
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLbPrivateNetworksResponse' failed as data isn't a dictionary.`);
341
- return {
342
- privateNetwork: unmarshalArrayOfObject(data.private_network, unmarshalPrivateNetwork),
343
- totalCount: data.total_count
344
- };
345
- };
346
- const unmarshalLbType = (data) => {
347
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LbType' failed as data isn't a dictionary.`);
348
- return {
349
- bandwidth: data.bandwidth,
350
- description: data.description,
351
- multicloud: data.multicloud,
352
- name: data.name,
353
- region: data.region,
354
- stockStatus: data.stock_status,
355
- zone: data.zone
356
- };
357
- };
358
- const unmarshalListLbTypesResponse = (data) => {
359
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLbTypesResponse' failed as data isn't a dictionary.`);
360
- return {
361
- lbTypes: unmarshalArrayOfObject(data.lb_types, unmarshalLbType),
362
- totalCount: data.total_count
363
- };
364
- };
365
- const unmarshalListLbsResponse = (data) => {
366
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLbsResponse' failed as data isn't a dictionary.`);
367
- return {
368
- lbs: unmarshalArrayOfObject(data.lbs, unmarshalLb),
369
- totalCount: data.total_count
370
- };
371
- };
372
- const unmarshalListRoutesResponse = (data) => {
373
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRoutesResponse' failed as data isn't a dictionary.`);
374
- return {
375
- routes: unmarshalArrayOfObject(data.routes, unmarshalRoute),
376
- totalCount: data.total_count
377
- };
378
- };
379
- const unmarshalListSubscriberResponse = (data) => {
380
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSubscriberResponse' failed as data isn't a dictionary.`);
381
- return {
382
- subscribers: unmarshalArrayOfObject(data.subscribers, unmarshalSubscriber),
383
- totalCount: data.total_count
384
- };
385
- };
386
- const unmarshalSetAclsResponse = (data) => {
387
- if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetAclsResponse' failed as data isn't a dictionary.`);
388
- return {
389
- acls: unmarshalArrayOfObject(data.acls, unmarshalAcl),
390
- totalCount: data.total_count
391
- };
392
- };
393
- const marshalAddBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
394
- const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({ ip_id: request.ipId });
395
- const marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
396
- const marshalPrivateNetworkStaticConfig = (request, defaults) => ({ ip_address: request.ipAddress });
397
- const marshalAttachPrivateNetworkRequest = (request, defaults) => ({
398
- ipam_ids: request.ipamIds,
399
- ...resolveOneOf([
400
- {
401
- param: "static_config",
402
- value: request.staticConfig !== void 0 ? marshalPrivateNetworkStaticConfig(request.staticConfig, defaults) : void 0
403
- },
404
- {
405
- param: "dhcp_config",
406
- value: request.dhcpConfig !== void 0 ? marshalPrivateNetworkDHCPConfig(request.dhcpConfig, defaults) : void 0
407
- },
408
- {
409
- param: "ipam_config",
410
- value: request.ipamConfig !== void 0 ? marshalPrivateNetworkIpamConfig(request.ipamConfig, defaults) : void 0
411
- }
412
- ])
413
- });
414
- const marshalAclActionRedirect = (request, defaults) => ({
415
- code: request.code,
416
- target: request.target,
417
- type: request.type
418
- });
419
- const marshalAclAction = (request, defaults) => ({
420
- redirect: request.redirect !== void 0 ? marshalAclActionRedirect(request.redirect, defaults) : void 0,
421
- type: request.type
422
- });
423
- const marshalAclMatch = (request, defaults) => ({
424
- http_filter: request.httpFilter,
425
- http_filter_option: request.httpFilterOption,
426
- http_filter_value: request.httpFilterValue,
427
- invert: request.invert,
428
- ip_subnet: request.ipSubnet,
429
- ips_edge_services: request.ipsEdgeServices
430
- });
431
- const marshalCreateAclRequest = (request, defaults) => ({
432
- action: marshalAclAction(request.action, defaults),
433
- description: request.description,
434
- index: request.index,
435
- match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
436
- name: request.name || randomName("acl")
437
- });
438
- const marshalHealthCheckHttpConfig = (request, defaults) => ({
439
- code: request.code,
440
- host_header: request.hostHeader,
441
- method: request.method,
442
- uri: request.uri
443
- });
444
- const marshalHealthCheckHttpsConfig = (request, defaults) => ({
445
- code: request.code,
446
- host_header: request.hostHeader,
447
- method: request.method,
448
- sni: request.sni,
449
- uri: request.uri
450
- });
451
- const marshalHealthCheckLdapConfig = (request, defaults) => ({});
452
- const marshalHealthCheckMysqlConfig = (request, defaults) => ({ user: request.user });
453
- const marshalHealthCheckPgsqlConfig = (request, defaults) => ({ user: request.user });
454
- const marshalHealthCheckRedisConfig = (request, defaults) => ({});
455
- const marshalHealthCheckTcpConfig = (request, defaults) => ({});
456
- const marshalHealthCheck = (request, defaults) => ({
457
- check_delay: request.checkDelay,
458
- check_max_retries: request.checkMaxRetries,
459
- check_send_proxy: request.checkSendProxy,
460
- check_timeout: request.checkTimeout,
461
- port: request.port,
462
- transient_check_delay: request.transientCheckDelay,
463
- ...resolveOneOf([
464
- {
465
- param: "tcp_config",
466
- value: request.tcpConfig !== void 0 ? marshalHealthCheckTcpConfig(request.tcpConfig, defaults) : void 0
467
- },
468
- {
469
- param: "mysql_config",
470
- value: request.mysqlConfig !== void 0 ? marshalHealthCheckMysqlConfig(request.mysqlConfig, defaults) : void 0
471
- },
472
- {
473
- param: "pgsql_config",
474
- value: request.pgsqlConfig !== void 0 ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig, defaults) : void 0
475
- },
476
- {
477
- param: "ldap_config",
478
- value: request.ldapConfig !== void 0 ? marshalHealthCheckLdapConfig(request.ldapConfig, defaults) : void 0
479
- },
480
- {
481
- param: "redis_config",
482
- value: request.redisConfig !== void 0 ? marshalHealthCheckRedisConfig(request.redisConfig, defaults) : void 0
483
- },
484
- {
485
- param: "http_config",
486
- value: request.httpConfig !== void 0 ? marshalHealthCheckHttpConfig(request.httpConfig, defaults) : void 0
487
- },
488
- {
489
- param: "https_config",
490
- value: request.httpsConfig !== void 0 ? marshalHealthCheckHttpsConfig(request.httpsConfig, defaults) : void 0
491
- }
492
- ])
493
- });
494
- const marshalCreateBackendRequest = (request, defaults) => ({
495
- failover_host: request.failoverHost,
496
- forward_port: request.forwardPort,
497
- forward_port_algorithm: request.forwardPortAlgorithm,
498
- forward_protocol: request.forwardProtocol,
499
- health_check: marshalHealthCheck(request.healthCheck, defaults),
500
- host: request.host,
501
- ignore_ssl_server_verify: request.ignoreSslServerVerify,
502
- max_connections: request.maxConnections,
503
- max_retries: request.maxRetries,
504
- name: request.name || randomName("lbb"),
505
- on_marked_down_action: request.onMarkedDownAction,
506
- proxy_protocol: request.proxyProtocol,
507
- redispatch_attempt_count: request.redispatchAttemptCount,
508
- send_proxy_v2: request.sendProxyV2,
509
- server_ip: request.serverIp,
510
- ssl_bridging: request.sslBridging,
511
- sticky_sessions: request.stickySessions,
512
- sticky_sessions_cookie_name: request.stickySessionsCookieName,
513
- timeout_connect: request.timeoutConnect,
514
- timeout_queue: request.timeoutQueue,
515
- timeout_server: request.timeoutServer,
516
- timeout_tunnel: request.timeoutTunnel
517
- });
518
- const marshalCreateCertificateRequestCustomCertificate = (request, defaults) => ({ certificate_chain: request.certificateChain });
519
- const marshalCreateCertificateRequestLetsencryptConfig = (request, defaults) => ({
520
- common_name: request.commonName,
521
- subject_alternative_name: request.subjectAlternativeName
522
- });
523
- const marshalCreateCertificateRequest = (request, defaults) => ({
524
- name: request.name || randomName("certificate"),
525
- ...resolveOneOf([{
526
- param: "letsencrypt",
527
- value: request.letsencrypt !== void 0 ? marshalCreateCertificateRequestLetsencryptConfig(request.letsencrypt, defaults) : void 0
528
- }, {
529
- param: "custom_certificate",
530
- value: request.customCertificate !== void 0 ? marshalCreateCertificateRequestCustomCertificate(request.customCertificate, defaults) : void 0
531
- }])
532
- });
533
- const marshalCreateFrontendRequest = (request, defaults) => ({
534
- backend_id: request.backendId,
535
- certificate_id: request.certificateId,
536
- certificate_ids: request.certificateIds,
537
- connection_rate_limit: request.connectionRateLimit,
538
- enable_access_logs: request.enableAccessLogs,
539
- enable_http3: request.enableHttp3,
540
- inbound_port: request.inboundPort,
541
- name: request.name || randomName("lbf"),
542
- timeout_client: request.timeoutClient
543
- });
544
- const marshalCreateIpRequest = (request, defaults) => ({
545
- is_ipv6: request.isIpv6,
546
- reverse: request.reverse,
547
- tags: request.tags,
548
- ...resolveOneOf([{
549
- default: defaults.defaultProjectId,
550
- param: "project_id",
551
- value: request.projectId
552
- }, {
553
- default: defaults.defaultOrganizationId,
554
- param: "organization_id",
555
- value: request.organizationId
556
- }])
557
- });
558
- const marshalCreateLbRequest = (request, defaults) => ({
559
- assign_flexible_ip: request.assignFlexibleIp,
560
- assign_flexible_ipv6: request.assignFlexibleIpv6,
561
- description: request.description,
562
- ip_id: request.ipId,
563
- ip_ids: request.ipIds,
564
- name: request.name || randomName("lb"),
565
- ssl_compatibility_level: request.sslCompatibilityLevel,
566
- tags: request.tags,
567
- type: request.type,
568
- ...resolveOneOf([{
569
- default: defaults.defaultProjectId,
570
- param: "project_id",
571
- value: request.projectId
572
- }, {
573
- default: defaults.defaultOrganizationId,
574
- param: "organization_id",
575
- value: request.organizationId
576
- }])
577
- });
578
- const marshalRouteMatch = (request, defaults) => ({
579
- match_subdomains: request.matchSubdomains,
580
- ...resolveOneOf([
581
- {
582
- param: "sni",
583
- value: request.sni
584
- },
585
- {
586
- param: "host_header",
587
- value: request.hostHeader
588
- },
589
- {
590
- param: "path_begin",
591
- value: request.pathBegin
592
- }
593
- ])
594
- });
595
- const marshalCreateRouteRequest = (request, defaults) => ({
596
- backend_id: request.backendId,
597
- frontend_id: request.frontendId,
598
- match: request.match !== void 0 ? marshalRouteMatch(request.match, defaults) : void 0
599
- });
600
- const marshalSubscriberEmailConfig = (request, defaults) => ({ email: request.email });
601
- const marshalSubscriberWebhookConfig = (request, defaults) => ({ uri: request.uri });
602
- const marshalCreateSubscriberRequest = (request, defaults) => ({
603
- name: request.name,
604
- ...resolveOneOf([{
605
- default: defaults.defaultProjectId,
606
- param: "project_id",
607
- value: request.projectId
608
- }, {
609
- default: defaults.defaultOrganizationId,
610
- param: "organization_id",
611
- value: request.organizationId
612
- }]),
613
- ...resolveOneOf([{
614
- param: "email_config",
615
- value: request.emailConfig !== void 0 ? marshalSubscriberEmailConfig(request.emailConfig, defaults) : void 0
616
- }, {
617
- param: "webhook_config",
618
- value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig, defaults) : void 0
619
- }])
620
- });
621
- const marshalMigrateLbRequest = (request, defaults) => ({ type: request.type });
622
- const marshalRemoveBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
623
- const marshalSetBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
624
- const marshalSubscribeToLbRequest = (request, defaults) => ({ subscriber_id: request.subscriberId });
625
- const marshalUpdateAclRequest = (request, defaults) => ({
626
- action: marshalAclAction(request.action, defaults),
627
- description: request.description,
628
- index: request.index,
629
- match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
630
- name: request.name
631
- });
632
- const marshalUpdateBackendRequest = (request, defaults) => ({
633
- failover_host: request.failoverHost,
634
- forward_port: request.forwardPort,
635
- forward_port_algorithm: request.forwardPortAlgorithm,
636
- forward_protocol: request.forwardProtocol,
637
- host: request.host,
638
- ignore_ssl_server_verify: request.ignoreSslServerVerify,
639
- max_connections: request.maxConnections,
640
- max_retries: request.maxRetries,
641
- name: request.name,
642
- on_marked_down_action: request.onMarkedDownAction,
643
- proxy_protocol: request.proxyProtocol,
644
- redispatch_attempt_count: request.redispatchAttemptCount,
645
- send_proxy_v2: request.sendProxyV2,
646
- ssl_bridging: request.sslBridging,
647
- sticky_sessions: request.stickySessions,
648
- sticky_sessions_cookie_name: request.stickySessionsCookieName,
649
- timeout_connect: request.timeoutConnect,
650
- timeout_queue: request.timeoutQueue,
651
- timeout_server: request.timeoutServer,
652
- timeout_tunnel: request.timeoutTunnel
653
- });
654
- const marshalUpdateCertificateRequest = (request, defaults) => ({ name: request.name });
655
- const marshalUpdateFrontendRequest = (request, defaults) => ({
656
- backend_id: request.backendId,
657
- certificate_id: request.certificateId,
658
- certificate_ids: request.certificateIds,
659
- connection_rate_limit: request.connectionRateLimit,
660
- enable_access_logs: request.enableAccessLogs,
661
- enable_http3: request.enableHttp3,
662
- inbound_port: request.inboundPort,
663
- name: request.name,
664
- timeout_client: request.timeoutClient
665
- });
666
- const marshalUpdateHealthCheckRequest = (request, defaults) => ({
667
- check_delay: request.checkDelay,
668
- check_max_retries: request.checkMaxRetries,
669
- check_send_proxy: request.checkSendProxy,
670
- check_timeout: request.checkTimeout,
671
- port: request.port,
672
- transient_check_delay: request.transientCheckDelay,
673
- ...resolveOneOf([
674
- {
675
- param: "tcp_config",
676
- value: request.tcpConfig !== void 0 ? marshalHealthCheckTcpConfig(request.tcpConfig, defaults) : void 0
677
- },
678
- {
679
- param: "mysql_config",
680
- value: request.mysqlConfig !== void 0 ? marshalHealthCheckMysqlConfig(request.mysqlConfig, defaults) : void 0
681
- },
682
- {
683
- param: "pgsql_config",
684
- value: request.pgsqlConfig !== void 0 ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig, defaults) : void 0
685
- },
686
- {
687
- param: "ldap_config",
688
- value: request.ldapConfig !== void 0 ? marshalHealthCheckLdapConfig(request.ldapConfig, defaults) : void 0
689
- },
690
- {
691
- param: "redis_config",
692
- value: request.redisConfig !== void 0 ? marshalHealthCheckRedisConfig(request.redisConfig, defaults) : void 0
693
- },
694
- {
695
- param: "http_config",
696
- value: request.httpConfig !== void 0 ? marshalHealthCheckHttpConfig(request.httpConfig, defaults) : void 0
697
- },
698
- {
699
- param: "https_config",
700
- value: request.httpsConfig !== void 0 ? marshalHealthCheckHttpsConfig(request.httpsConfig, defaults) : void 0
701
- }
702
- ])
703
- });
704
- const marshalUpdateIpRequest = (request, defaults) => ({
705
- lb_id: request.lbId,
706
- reverse: request.reverse,
707
- tags: request.tags
708
- });
709
- const marshalUpdateLbRequest = (request, defaults) => ({
710
- description: request.description,
711
- name: request.name,
712
- ssl_compatibility_level: request.sslCompatibilityLevel,
713
- tags: request.tags
714
- });
715
- const marshalUpdateRouteRequest = (request, defaults) => ({
716
- backend_id: request.backendId,
717
- match: request.match !== void 0 ? marshalRouteMatch(request.match, defaults) : void 0
718
- });
719
- const marshalUpdateSubscriberRequest = (request, defaults) => ({
720
- name: request.name,
721
- ...resolveOneOf([{
722
- param: "email_config",
723
- value: request.emailConfig !== void 0 ? marshalSubscriberEmailConfig(request.emailConfig, defaults) : void 0
724
- }, {
725
- param: "webhook_config",
726
- value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig, defaults) : void 0
727
- }])
728
- });
729
- const marshalZonedApiAddBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
730
- const marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
731
- ipam_ids: request.ipamIds,
732
- private_network_id: request.privateNetworkId,
733
- ...resolveOneOf([
734
- {
735
- param: "static_config",
736
- value: request.staticConfig !== void 0 ? marshalPrivateNetworkStaticConfig(request.staticConfig, defaults) : void 0
737
- },
738
- {
739
- param: "dhcp_config",
740
- value: request.dhcpConfig !== void 0 ? marshalPrivateNetworkDHCPConfig(request.dhcpConfig, defaults) : void 0
741
- },
742
- {
743
- param: "ipam_config",
744
- value: request.ipamConfig !== void 0 ? marshalPrivateNetworkIpamConfig(request.ipamConfig, defaults) : void 0
745
- }
746
- ])
747
- });
748
- const marshalZonedApiCreateAclRequest = (request, defaults) => ({
749
- action: marshalAclAction(request.action, defaults),
750
- description: request.description,
751
- index: request.index,
752
- match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
753
- name: request.name || randomName("acl")
754
- });
755
- const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
756
- failover_host: request.failoverHost,
757
- forward_port: request.forwardPort,
758
- forward_port_algorithm: request.forwardPortAlgorithm,
759
- forward_protocol: request.forwardProtocol,
760
- health_check: marshalHealthCheck(request.healthCheck, defaults),
761
- host: request.host,
762
- ignore_ssl_server_verify: request.ignoreSslServerVerify,
763
- max_connections: request.maxConnections,
764
- max_retries: request.maxRetries,
765
- name: request.name || randomName("lbb"),
766
- on_marked_down_action: request.onMarkedDownAction,
767
- proxy_protocol: request.proxyProtocol,
768
- redispatch_attempt_count: request.redispatchAttemptCount,
769
- send_proxy_v2: request.sendProxyV2,
770
- server_ip: request.serverIp,
771
- ssl_bridging: request.sslBridging,
772
- sticky_sessions: request.stickySessions,
773
- sticky_sessions_cookie_name: request.stickySessionsCookieName,
774
- timeout_connect: request.timeoutConnect,
775
- timeout_queue: request.timeoutQueue,
776
- timeout_server: request.timeoutServer,
777
- timeout_tunnel: request.timeoutTunnel
778
- });
779
- const marshalZonedApiCreateCertificateRequest = (request, defaults) => ({
780
- name: request.name || randomName("certificate"),
781
- ...resolveOneOf([{
782
- param: "letsencrypt",
783
- value: request.letsencrypt !== void 0 ? marshalCreateCertificateRequestLetsencryptConfig(request.letsencrypt, defaults) : void 0
784
- }, {
785
- param: "custom_certificate",
786
- value: request.customCertificate !== void 0 ? marshalCreateCertificateRequestCustomCertificate(request.customCertificate, defaults) : void 0
787
- }])
788
- });
789
- const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
790
- backend_id: request.backendId,
791
- certificate_id: request.certificateId,
792
- certificate_ids: request.certificateIds,
793
- connection_rate_limit: request.connectionRateLimit,
794
- enable_access_logs: request.enableAccessLogs,
795
- enable_http3: request.enableHttp3,
796
- inbound_port: request.inboundPort,
797
- name: request.name || randomName("lbf"),
798
- timeout_client: request.timeoutClient
799
- });
800
- const marshalZonedApiCreateIpRequest = (request, defaults) => ({
801
- is_ipv6: request.isIpv6,
802
- reverse: request.reverse,
803
- tags: request.tags,
804
- ...resolveOneOf([{
805
- default: defaults.defaultProjectId,
806
- param: "project_id",
807
- value: request.projectId
808
- }, {
809
- default: defaults.defaultOrganizationId,
810
- param: "organization_id",
811
- value: request.organizationId
812
- }])
813
- });
814
- const marshalZonedApiCreateLbRequest = (request, defaults) => ({
815
- assign_flexible_ip: request.assignFlexibleIp,
816
- assign_flexible_ipv6: request.assignFlexibleIpv6,
817
- description: request.description,
818
- ip_id: request.ipId,
819
- ip_ids: request.ipIds,
820
- name: request.name || randomName("lb"),
821
- ssl_compatibility_level: request.sslCompatibilityLevel,
822
- tags: request.tags,
823
- type: request.type,
824
- ...resolveOneOf([{
825
- default: defaults.defaultProjectId,
826
- param: "project_id",
827
- value: request.projectId
828
- }, {
829
- default: defaults.defaultOrganizationId,
830
- param: "organization_id",
831
- value: request.organizationId
832
- }])
833
- });
834
- const marshalZonedApiCreateRouteRequest = (request, defaults) => ({
835
- backend_id: request.backendId,
836
- frontend_id: request.frontendId,
837
- match: request.match !== void 0 ? marshalRouteMatch(request.match, defaults) : void 0
838
- });
839
- const marshalZonedApiCreateSubscriberRequest = (request, defaults) => ({
840
- name: request.name,
841
- ...resolveOneOf([{
842
- default: defaults.defaultProjectId,
843
- param: "project_id",
844
- value: request.projectId
845
- }, {
846
- default: defaults.defaultOrganizationId,
847
- param: "organization_id",
848
- value: request.organizationId
849
- }]),
850
- ...resolveOneOf([{
851
- param: "email_config",
852
- value: request.emailConfig !== void 0 ? marshalSubscriberEmailConfig(request.emailConfig, defaults) : void 0
853
- }, {
854
- param: "webhook_config",
855
- value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig, defaults) : void 0
856
- }])
857
- });
858
- const marshalZonedApiDetachPrivateNetworkRequest = (request, defaults) => ({ private_network_id: request.privateNetworkId });
859
- const marshalZonedApiMigrateLbRequest = (request, defaults) => ({ type: request.type });
860
- const marshalZonedApiRemoveBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
861
- const marshalAclSpec = (request, defaults) => ({
862
- action: marshalAclAction(request.action, defaults),
863
- description: request.description,
864
- index: request.index,
865
- match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
866
- name: request.name
867
- });
868
- const marshalZonedApiSetAclsRequest = (request, defaults) => ({ acls: request.acls.map((elt) => marshalAclSpec(elt, defaults)) });
869
- const marshalZonedApiSetBackendServersRequest = (request, defaults) => ({ server_ip: request.serverIp });
870
- const marshalZonedApiSubscribeToLbRequest = (request, defaults) => ({ subscriber_id: request.subscriberId });
871
- const marshalZonedApiUpdateAclRequest = (request, defaults) => ({
872
- action: marshalAclAction(request.action, defaults),
873
- description: request.description,
874
- index: request.index,
875
- match: request.match !== void 0 ? marshalAclMatch(request.match, defaults) : void 0,
876
- name: request.name
877
- });
878
- const marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
879
- failover_host: request.failoverHost,
880
- forward_port: request.forwardPort,
881
- forward_port_algorithm: request.forwardPortAlgorithm,
882
- forward_protocol: request.forwardProtocol,
883
- host: request.host,
884
- ignore_ssl_server_verify: request.ignoreSslServerVerify,
885
- max_connections: request.maxConnections,
886
- max_retries: request.maxRetries,
887
- name: request.name,
888
- on_marked_down_action: request.onMarkedDownAction,
889
- proxy_protocol: request.proxyProtocol,
890
- redispatch_attempt_count: request.redispatchAttemptCount,
891
- send_proxy_v2: request.sendProxyV2,
892
- ssl_bridging: request.sslBridging,
893
- sticky_sessions: request.stickySessions,
894
- sticky_sessions_cookie_name: request.stickySessionsCookieName,
895
- timeout_connect: request.timeoutConnect,
896
- timeout_queue: request.timeoutQueue,
897
- timeout_server: request.timeoutServer,
898
- timeout_tunnel: request.timeoutTunnel
899
- });
900
- const marshalZonedApiUpdateCertificateRequest = (request, defaults) => ({ name: request.name });
901
- const marshalZonedApiUpdateFrontendRequest = (request, defaults) => ({
902
- backend_id: request.backendId,
903
- certificate_id: request.certificateId,
904
- certificate_ids: request.certificateIds,
905
- connection_rate_limit: request.connectionRateLimit,
906
- enable_access_logs: request.enableAccessLogs,
907
- enable_http3: request.enableHttp3,
908
- inbound_port: request.inboundPort,
909
- name: request.name,
910
- timeout_client: request.timeoutClient
911
- });
912
- const marshalZonedApiUpdateHealthCheckRequest = (request, defaults) => ({
913
- check_delay: request.checkDelay,
914
- check_max_retries: request.checkMaxRetries,
915
- check_send_proxy: request.checkSendProxy,
916
- check_timeout: request.checkTimeout,
917
- port: request.port,
918
- transient_check_delay: request.transientCheckDelay,
919
- ...resolveOneOf([
920
- {
921
- param: "tcp_config",
922
- value: request.tcpConfig !== void 0 ? marshalHealthCheckTcpConfig(request.tcpConfig, defaults) : void 0
923
- },
924
- {
925
- param: "mysql_config",
926
- value: request.mysqlConfig !== void 0 ? marshalHealthCheckMysqlConfig(request.mysqlConfig, defaults) : void 0
927
- },
928
- {
929
- param: "pgsql_config",
930
- value: request.pgsqlConfig !== void 0 ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig, defaults) : void 0
931
- },
932
- {
933
- param: "ldap_config",
934
- value: request.ldapConfig !== void 0 ? marshalHealthCheckLdapConfig(request.ldapConfig, defaults) : void 0
935
- },
936
- {
937
- param: "redis_config",
938
- value: request.redisConfig !== void 0 ? marshalHealthCheckRedisConfig(request.redisConfig, defaults) : void 0
939
- },
940
- {
941
- param: "http_config",
942
- value: request.httpConfig !== void 0 ? marshalHealthCheckHttpConfig(request.httpConfig, defaults) : void 0
943
- },
944
- {
945
- param: "https_config",
946
- value: request.httpsConfig !== void 0 ? marshalHealthCheckHttpsConfig(request.httpsConfig, defaults) : void 0
947
- }
948
- ])
949
- });
950
- const marshalZonedApiUpdateIpRequest = (request, defaults) => ({
951
- lb_id: request.lbId,
952
- reverse: request.reverse,
953
- tags: request.tags
954
- });
955
- const marshalZonedApiUpdateLbRequest = (request, defaults) => ({
956
- description: request.description,
957
- name: request.name,
958
- ssl_compatibility_level: request.sslCompatibilityLevel,
959
- tags: request.tags
960
- });
961
- const marshalZonedApiUpdateRouteRequest = (request, defaults) => ({
962
- backend_id: request.backendId,
963
- match: request.match !== void 0 ? marshalRouteMatch(request.match, defaults) : void 0
964
- });
965
- const marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
966
- name: request.name,
967
- ...resolveOneOf([{
968
- param: "email_config",
969
- value: request.emailConfig !== void 0 ? marshalSubscriberEmailConfig(request.emailConfig, defaults) : void 0
970
- }, {
971
- param: "webhook_config",
972
- value: request.webhookConfig !== void 0 ? marshalSubscriberWebhookConfig(request.webhookConfig, defaults) : void 0
973
- }])
974
- });
975
- //#endregion
976
- export { marshalAddBackendServersRequest, marshalAttachPrivateNetworkRequest, marshalCreateAclRequest, marshalCreateBackendRequest, marshalCreateCertificateRequest, marshalCreateFrontendRequest, marshalCreateIpRequest, marshalCreateLbRequest, marshalCreateRouteRequest, marshalCreateSubscriberRequest, marshalMigrateLbRequest, marshalRemoveBackendServersRequest, marshalSetBackendServersRequest, marshalSubscribeToLbRequest, marshalUpdateAclRequest, marshalUpdateBackendRequest, marshalUpdateCertificateRequest, marshalUpdateFrontendRequest, marshalUpdateHealthCheckRequest, marshalUpdateIpRequest, marshalUpdateLbRequest, marshalUpdateRouteRequest, marshalUpdateSubscriberRequest, marshalZonedApiAddBackendServersRequest, marshalZonedApiAttachPrivateNetworkRequest, marshalZonedApiCreateAclRequest, marshalZonedApiCreateBackendRequest, marshalZonedApiCreateCertificateRequest, marshalZonedApiCreateFrontendRequest, marshalZonedApiCreateIpRequest, marshalZonedApiCreateLbRequest, marshalZonedApiCreateRouteRequest, marshalZonedApiCreateSubscriberRequest, marshalZonedApiDetachPrivateNetworkRequest, marshalZonedApiMigrateLbRequest, marshalZonedApiRemoveBackendServersRequest, marshalZonedApiSetAclsRequest, marshalZonedApiSetBackendServersRequest, marshalZonedApiSubscribeToLbRequest, marshalZonedApiUpdateAclRequest, marshalZonedApiUpdateBackendRequest, marshalZonedApiUpdateCertificateRequest, marshalZonedApiUpdateFrontendRequest, marshalZonedApiUpdateHealthCheckRequest, marshalZonedApiUpdateIpRequest, marshalZonedApiUpdateLbRequest, marshalZonedApiUpdateRouteRequest, marshalZonedApiUpdateSubscriberRequest, unmarshalAcl, unmarshalBackend, unmarshalBackendServerStats, unmarshalCertificate, unmarshalFrontend, unmarshalHealthCheck, unmarshalIp, unmarshalLb, unmarshalLbStats, unmarshalListAclResponse, unmarshalListBackendStatsResponse, unmarshalListBackendsResponse, unmarshalListCertificatesResponse, unmarshalListFrontendsResponse, unmarshalListIpsResponse, unmarshalListLbPrivateNetworksResponse, unmarshalListLbTypesResponse, unmarshalListLbsResponse, unmarshalListRoutesResponse, unmarshalListSubscriberResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclsResponse, unmarshalSubscriber };