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