@scaleway/sdk 2.0.0-alpha.12 → 2.0.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +12 -12
- package/dist/api/baremetal/v1/marshalling.gen.js +60 -49
- package/dist/api/block/v1alpha1/api.gen.js +23 -19
- package/dist/api/block/v1alpha1/marshalling.gen.js +47 -40
- package/dist/api/block/v1alpha1/validation-rules.gen.js +11 -1
- package/dist/api/cockpit/v1beta1/api.gen.js +143 -48
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +86 -35
- package/dist/api/container/v1beta1/index.gen.js +2 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +63 -35
- package/dist/api/container/v1beta1/validation-rules.gen.js +44 -0
- package/dist/api/document_db/v1beta1/marshalling.gen.js +117 -61
- package/dist/api/domain/v2beta1/api.gen.js +29 -37
- package/dist/api/domain/v2beta1/index.gen.js +0 -2
- package/dist/api/domain/v2beta1/marshalling.gen.js +408 -194
- package/dist/api/flexibleip/v1alpha1/api.gen.js +6 -14
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +2 -2
- package/dist/api/function/v1beta1/index.gen.js +2 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +64 -36
- package/dist/api/function/v1beta1/validation-rules.gen.js +44 -0
- package/dist/api/iam/v1alpha1/api.gen.js +26 -42
- package/dist/api/iam/v1alpha1/marshalling.gen.js +44 -33
- package/dist/api/instance/v1/api.gen.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +394 -185
- package/dist/api/iot/v1/api.gen.js +24 -32
- package/dist/api/iot/v1/marshalling.gen.js +87 -36
- package/dist/api/ipam/index.js +2 -0
- package/dist/api/ipam/v1/api.gen.js +113 -0
- package/dist/api/ipam/v1/index.gen.js +6 -0
- package/dist/api/ipam/v1/marshalling.gen.js +77 -0
- package/dist/api/ipam/v1/validation-rules.gen.js +11 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +120 -3
- package/dist/api/ipfs/v1alpha1/content.gen.js +4 -1
- package/dist/api/ipfs/v1alpha1/index.gen.js +2 -2
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +78 -19
- package/dist/api/k8s/v1/marshalling.gen.js +125 -37
- package/dist/api/lb/v1/api.gen.js +1 -1
- package/dist/api/lb/v1/marshalling.gen.js +251 -135
- package/dist/api/marketplace/v1/marshalling.gen.js +11 -11
- package/dist/api/marketplace/v2/api.gen.js +3 -3
- package/dist/api/mnq/index.js +2 -0
- package/dist/api/mnq/v1alpha1/api.gen.js +12 -20
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +19 -14
- package/dist/api/mnq/v1beta1/api.gen.js +529 -0
- package/dist/api/mnq/v1beta1/index.gen.js +6 -0
- package/dist/api/mnq/v1beta1/marshalling.gen.js +212 -0
- package/dist/api/mnq/v1beta1/validation-rules.gen.js +77 -0
- package/dist/api/rdb/v1/marshalling.gen.js +122 -64
- package/dist/api/redis/v1/marshalling.gen.js +51 -27
- package/dist/api/registry/v1/marshalling.gen.js +3 -1
- package/dist/api/secret/v1alpha1/marshalling.gen.js +11 -4
- package/dist/api/tem/v1alpha1/marshalling.gen.js +22 -13
- package/dist/api/test/v1/marshalling.gen.js +2 -0
- package/dist/api/vpc/v2/marshalling.gen.js +2 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +47 -24
- package/dist/api/webhosting/v1alpha1/api.gen.js +2 -54
- package/dist/api/webhosting/v1alpha1/index.gen.js +1 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +14 -41
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +1 -10
- package/dist/index.cjs +3735 -1615
- package/dist/index.d.ts +5809 -2209
- package/dist/index.js +30 -28
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -11,28 +11,28 @@ const unmarshalIp = data => {
|
|
|
11
11
|
return {
|
|
12
12
|
id: data.id,
|
|
13
13
|
ipAddress: data.ip_address,
|
|
14
|
-
lbId: data.lb_id
|
|
14
|
+
lbId: data.lb_id,
|
|
15
15
|
organizationId: data.organization_id,
|
|
16
16
|
projectId: data.project_id,
|
|
17
|
-
region: data.region
|
|
17
|
+
region: data.region,
|
|
18
18
|
reverse: data.reverse,
|
|
19
19
|
zone: data.zone
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
const
|
|
22
|
+
const unmarshalSubscriberEmailConfig = data => {
|
|
23
23
|
if (!isJSONObject(data)) {
|
|
24
|
-
throw new TypeError(`Unmarshalling the type '
|
|
24
|
+
throw new TypeError(`Unmarshalling the type 'SubscriberEmailConfig' failed as data isn't a dictionary.`);
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
|
|
27
|
+
email: data.email
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
const
|
|
30
|
+
const unmarshalSubscriberWebhookConfig = data => {
|
|
31
31
|
if (!isJSONObject(data)) {
|
|
32
|
-
throw new TypeError(`Unmarshalling the type '
|
|
32
|
+
throw new TypeError(`Unmarshalling the type 'SubscriberWebhookConfig' failed as data isn't a dictionary.`);
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
|
|
35
|
+
uri: data.uri
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
const unmarshalSubscriber = data => {
|
|
@@ -46,57 +46,57 @@ const unmarshalSubscriber = data => {
|
|
|
46
46
|
webhookConfig: data.webhook_config ? unmarshalSubscriberWebhookConfig(data.webhook_config) : undefined
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
const
|
|
49
|
+
const unmarshalHealthCheckHttpConfig = data => {
|
|
50
50
|
if (!isJSONObject(data)) {
|
|
51
|
-
throw new TypeError(`Unmarshalling the type '
|
|
51
|
+
throw new TypeError(`Unmarshalling the type 'HealthCheckHttpConfig' failed as data isn't a dictionary.`);
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
|
-
code: data.code
|
|
54
|
+
code: data.code,
|
|
55
55
|
hostHeader: data.host_header,
|
|
56
56
|
method: data.method,
|
|
57
|
-
sni: data.sni,
|
|
58
57
|
uri: data.uri
|
|
59
58
|
};
|
|
60
59
|
};
|
|
61
|
-
const
|
|
60
|
+
const unmarshalHealthCheckHttpsConfig = data => {
|
|
62
61
|
if (!isJSONObject(data)) {
|
|
63
|
-
throw new TypeError(`Unmarshalling the type '
|
|
62
|
+
throw new TypeError(`Unmarshalling the type 'HealthCheckHttpsConfig' failed as data isn't a dictionary.`);
|
|
64
63
|
}
|
|
65
64
|
return {
|
|
66
|
-
code: data.code
|
|
65
|
+
code: data.code,
|
|
67
66
|
hostHeader: data.host_header,
|
|
68
67
|
method: data.method,
|
|
68
|
+
sni: data.sni,
|
|
69
69
|
uri: data.uri
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
-
const unmarshalHealthCheckRedisConfig = data => {
|
|
73
|
-
if (!isJSONObject(data)) {
|
|
74
|
-
throw new TypeError(`Unmarshalling the type 'HealthCheckRedisConfig' failed as data isn't a dictionary.`);
|
|
75
|
-
}
|
|
76
|
-
return {};
|
|
77
|
-
};
|
|
78
72
|
const unmarshalHealthCheckLdapConfig = data => {
|
|
79
73
|
if (!isJSONObject(data)) {
|
|
80
74
|
throw new TypeError(`Unmarshalling the type 'HealthCheckLdapConfig' failed as data isn't a dictionary.`);
|
|
81
75
|
}
|
|
82
76
|
return {};
|
|
83
77
|
};
|
|
84
|
-
const
|
|
78
|
+
const unmarshalHealthCheckMysqlConfig = data => {
|
|
85
79
|
if (!isJSONObject(data)) {
|
|
86
|
-
throw new TypeError(`Unmarshalling the type '
|
|
80
|
+
throw new TypeError(`Unmarshalling the type 'HealthCheckMysqlConfig' failed as data isn't a dictionary.`);
|
|
87
81
|
}
|
|
88
82
|
return {
|
|
89
83
|
user: data.user
|
|
90
84
|
};
|
|
91
85
|
};
|
|
92
|
-
const
|
|
86
|
+
const unmarshalHealthCheckPgsqlConfig = data => {
|
|
93
87
|
if (!isJSONObject(data)) {
|
|
94
|
-
throw new TypeError(`Unmarshalling the type '
|
|
88
|
+
throw new TypeError(`Unmarshalling the type 'HealthCheckPgsqlConfig' failed as data isn't a dictionary.`);
|
|
95
89
|
}
|
|
96
90
|
return {
|
|
97
91
|
user: data.user
|
|
98
92
|
};
|
|
99
93
|
};
|
|
94
|
+
const unmarshalHealthCheckRedisConfig = data => {
|
|
95
|
+
if (!isJSONObject(data)) {
|
|
96
|
+
throw new TypeError(`Unmarshalling the type 'HealthCheckRedisConfig' failed as data isn't a dictionary.`);
|
|
97
|
+
}
|
|
98
|
+
return {};
|
|
99
|
+
};
|
|
100
100
|
const unmarshalHealthCheckTcpConfig = data => {
|
|
101
101
|
if (!isJSONObject(data)) {
|
|
102
102
|
throw new TypeError(`Unmarshalling the type 'HealthCheckTcpConfig' failed as data isn't a dictionary.`);
|
|
@@ -108,10 +108,10 @@ const unmarshalHealthCheck = data => {
|
|
|
108
108
|
throw new TypeError(`Unmarshalling the type 'HealthCheck' failed as data isn't a dictionary.`);
|
|
109
109
|
}
|
|
110
110
|
return {
|
|
111
|
-
checkDelay: data.check_delay
|
|
111
|
+
checkDelay: data.check_delay,
|
|
112
112
|
checkMaxRetries: data.check_max_retries,
|
|
113
113
|
checkSendProxy: data.check_send_proxy,
|
|
114
|
-
checkTimeout: data.check_timeout
|
|
114
|
+
checkTimeout: data.check_timeout,
|
|
115
115
|
httpConfig: data.http_config ? unmarshalHealthCheckHttpConfig(data.http_config) : undefined,
|
|
116
116
|
httpsConfig: data.https_config ? unmarshalHealthCheckHttpsConfig(data.https_config) : undefined,
|
|
117
117
|
ldapConfig: data.ldap_config ? unmarshalHealthCheckLdapConfig(data.ldap_config) : undefined,
|
|
@@ -120,7 +120,7 @@ const unmarshalHealthCheck = data => {
|
|
|
120
120
|
port: data.port,
|
|
121
121
|
redisConfig: data.redis_config ? unmarshalHealthCheckRedisConfig(data.redis_config) : undefined,
|
|
122
122
|
tcpConfig: data.tcp_config ? unmarshalHealthCheckTcpConfig(data.tcp_config) : undefined,
|
|
123
|
-
transientCheckDelay: data.transient_check_delay
|
|
123
|
+
transientCheckDelay: data.transient_check_delay
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
const unmarshalInstance = data => {
|
|
@@ -131,7 +131,7 @@ const unmarshalInstance = data => {
|
|
|
131
131
|
createdAt: unmarshalDate(data.created_at),
|
|
132
132
|
id: data.id,
|
|
133
133
|
ipAddress: data.ip_address,
|
|
134
|
-
region: data.region
|
|
134
|
+
region: data.region,
|
|
135
135
|
status: data.status,
|
|
136
136
|
updatedAt: unmarshalDate(data.updated_at),
|
|
137
137
|
zone: data.zone
|
|
@@ -153,11 +153,11 @@ const unmarshalLb = data => {
|
|
|
153
153
|
organizationId: data.organization_id,
|
|
154
154
|
privateNetworkCount: data.private_network_count,
|
|
155
155
|
projectId: data.project_id,
|
|
156
|
-
region: data.region
|
|
156
|
+
region: data.region,
|
|
157
157
|
routeCount: data.route_count,
|
|
158
158
|
sslCompatibilityLevel: data.ssl_compatibility_level,
|
|
159
159
|
status: data.status,
|
|
160
|
-
subscriber: unmarshalSubscriber(data.subscriber),
|
|
160
|
+
subscriber: data.subscriber ? unmarshalSubscriber(data.subscriber) : undefined,
|
|
161
161
|
tags: data.tags,
|
|
162
162
|
type: data.type,
|
|
163
163
|
updatedAt: unmarshalDate(data.updated_at),
|
|
@@ -170,29 +170,29 @@ const unmarshalBackend = data => {
|
|
|
170
170
|
}
|
|
171
171
|
return {
|
|
172
172
|
createdAt: unmarshalDate(data.created_at),
|
|
173
|
-
failoverHost: data.failover_host
|
|
173
|
+
failoverHost: data.failover_host,
|
|
174
174
|
forwardPort: data.forward_port,
|
|
175
175
|
forwardPortAlgorithm: data.forward_port_algorithm,
|
|
176
176
|
forwardProtocol: data.forward_protocol,
|
|
177
|
-
healthCheck: unmarshalHealthCheck(data.health_check),
|
|
177
|
+
healthCheck: data.health_check ? unmarshalHealthCheck(data.health_check) : undefined,
|
|
178
178
|
id: data.id,
|
|
179
|
-
ignoreSslServerVerify: data.ignore_ssl_server_verify
|
|
180
|
-
lb: unmarshalLb(data.lb),
|
|
181
|
-
maxConnections: data.max_connections
|
|
182
|
-
maxRetries: data.max_retries
|
|
179
|
+
ignoreSslServerVerify: data.ignore_ssl_server_verify,
|
|
180
|
+
lb: data.lb ? unmarshalLb(data.lb) : undefined,
|
|
181
|
+
maxConnections: data.max_connections,
|
|
182
|
+
maxRetries: data.max_retries,
|
|
183
183
|
name: data.name,
|
|
184
184
|
onMarkedDownAction: data.on_marked_down_action,
|
|
185
185
|
pool: data.pool,
|
|
186
186
|
proxyProtocol: data.proxy_protocol,
|
|
187
|
-
redispatchAttemptCount: data.redispatch_attempt_count
|
|
188
|
-
sendProxyV2: data.send_proxy_v2
|
|
189
|
-
sslBridging: data.ssl_bridging
|
|
187
|
+
redispatchAttemptCount: data.redispatch_attempt_count,
|
|
188
|
+
sendProxyV2: data.send_proxy_v2,
|
|
189
|
+
sslBridging: data.ssl_bridging,
|
|
190
190
|
stickySessions: data.sticky_sessions,
|
|
191
191
|
stickySessionsCookieName: data.sticky_sessions_cookie_name,
|
|
192
|
-
timeoutConnect: data.timeout_connect
|
|
193
|
-
timeoutQueue: data.timeout_queue
|
|
194
|
-
timeoutServer: data.timeout_server
|
|
195
|
-
timeoutTunnel: data.timeout_tunnel
|
|
192
|
+
timeoutConnect: data.timeout_connect,
|
|
193
|
+
timeoutQueue: data.timeout_queue,
|
|
194
|
+
timeoutServer: data.timeout_server,
|
|
195
|
+
timeoutTunnel: data.timeout_tunnel,
|
|
196
196
|
updatedAt: unmarshalDate(data.updated_at)
|
|
197
197
|
};
|
|
198
198
|
};
|
|
@@ -205,12 +205,12 @@ const unmarshalCertificate = data => {
|
|
|
205
205
|
createdAt: unmarshalDate(data.created_at),
|
|
206
206
|
fingerprint: data.fingerprint,
|
|
207
207
|
id: data.id,
|
|
208
|
-
lb: unmarshalLb(data.lb),
|
|
208
|
+
lb: data.lb ? unmarshalLb(data.lb) : undefined,
|
|
209
209
|
name: data.name,
|
|
210
210
|
notValidAfter: unmarshalDate(data.not_valid_after),
|
|
211
211
|
notValidBefore: unmarshalDate(data.not_valid_before),
|
|
212
212
|
status: data.status,
|
|
213
|
-
statusDetails: data.status_details
|
|
213
|
+
statusDetails: data.status_details,
|
|
214
214
|
subjectAlternativeName: data.subject_alternative_name,
|
|
215
215
|
type: data.type,
|
|
216
216
|
updatedAt: unmarshalDate(data.updated_at)
|
|
@@ -221,16 +221,16 @@ const unmarshalFrontend = data => {
|
|
|
221
221
|
throw new TypeError(`Unmarshalling the type 'Frontend' failed as data isn't a dictionary.`);
|
|
222
222
|
}
|
|
223
223
|
return {
|
|
224
|
-
backend: unmarshalBackend(data.backend),
|
|
224
|
+
backend: data.backend ? unmarshalBackend(data.backend) : undefined,
|
|
225
225
|
certificate: data.certificate ? unmarshalCertificate(data.certificate) : undefined,
|
|
226
226
|
certificateIds: data.certificate_ids,
|
|
227
227
|
createdAt: unmarshalDate(data.created_at),
|
|
228
228
|
enableHttp3: data.enable_http3,
|
|
229
229
|
id: data.id,
|
|
230
230
|
inboundPort: data.inbound_port,
|
|
231
|
-
lb: unmarshalLb(data.lb),
|
|
231
|
+
lb: data.lb ? unmarshalLb(data.lb) : undefined,
|
|
232
232
|
name: data.name,
|
|
233
|
-
timeoutClient: data.timeout_client
|
|
233
|
+
timeoutClient: data.timeout_client,
|
|
234
234
|
updatedAt: unmarshalDate(data.updated_at)
|
|
235
235
|
};
|
|
236
236
|
};
|
|
@@ -239,7 +239,7 @@ const unmarshalAclActionRedirect = data => {
|
|
|
239
239
|
throw new TypeError(`Unmarshalling the type 'AclActionRedirect' failed as data isn't a dictionary.`);
|
|
240
240
|
}
|
|
241
241
|
return {
|
|
242
|
-
code: data.code
|
|
242
|
+
code: data.code,
|
|
243
243
|
target: data.target,
|
|
244
244
|
type: data.type
|
|
245
245
|
};
|
|
@@ -249,7 +249,7 @@ const unmarshalAclAction = data => {
|
|
|
249
249
|
throw new TypeError(`Unmarshalling the type 'AclAction' failed as data isn't a dictionary.`);
|
|
250
250
|
}
|
|
251
251
|
return {
|
|
252
|
-
redirect: unmarshalAclActionRedirect(data.redirect),
|
|
252
|
+
redirect: data.redirect ? unmarshalAclActionRedirect(data.redirect) : undefined,
|
|
253
253
|
type: data.type
|
|
254
254
|
};
|
|
255
255
|
};
|
|
@@ -259,7 +259,7 @@ const unmarshalAclMatch = data => {
|
|
|
259
259
|
}
|
|
260
260
|
return {
|
|
261
261
|
httpFilter: data.http_filter,
|
|
262
|
-
httpFilterOption: data.http_filter_option
|
|
262
|
+
httpFilterOption: data.http_filter_option,
|
|
263
263
|
httpFilterValue: data.http_filter_value,
|
|
264
264
|
invert: data.invert,
|
|
265
265
|
ipSubnet: data.ip_subnet
|
|
@@ -270,31 +270,31 @@ const unmarshalAcl = data => {
|
|
|
270
270
|
throw new TypeError(`Unmarshalling the type 'Acl' failed as data isn't a dictionary.`);
|
|
271
271
|
}
|
|
272
272
|
return {
|
|
273
|
-
action: unmarshalAclAction(data.action),
|
|
273
|
+
action: data.action ? unmarshalAclAction(data.action) : undefined,
|
|
274
274
|
createdAt: unmarshalDate(data.created_at),
|
|
275
275
|
description: data.description,
|
|
276
|
-
frontend: unmarshalFrontend(data.frontend),
|
|
276
|
+
frontend: data.frontend ? unmarshalFrontend(data.frontend) : undefined,
|
|
277
277
|
id: data.id,
|
|
278
278
|
index: data.index,
|
|
279
|
-
match: unmarshalAclMatch(data.match),
|
|
279
|
+
match: data.match ? unmarshalAclMatch(data.match) : undefined,
|
|
280
280
|
name: data.name,
|
|
281
281
|
updatedAt: unmarshalDate(data.updated_at)
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
|
-
const unmarshalPrivateNetworkIpamConfig = data => {
|
|
285
|
-
if (!isJSONObject(data)) {
|
|
286
|
-
throw new TypeError(`Unmarshalling the type 'PrivateNetworkIpamConfig' failed as data isn't a dictionary.`);
|
|
287
|
-
}
|
|
288
|
-
return {};
|
|
289
|
-
};
|
|
290
284
|
const unmarshalPrivateNetworkDHCPConfig = data => {
|
|
291
285
|
if (!isJSONObject(data)) {
|
|
292
286
|
throw new TypeError(`Unmarshalling the type 'PrivateNetworkDHCPConfig' failed as data isn't a dictionary.`);
|
|
293
287
|
}
|
|
294
288
|
return {
|
|
295
|
-
ipId: data.ip_id
|
|
289
|
+
ipId: data.ip_id
|
|
296
290
|
};
|
|
297
291
|
};
|
|
292
|
+
const unmarshalPrivateNetworkIpamConfig = data => {
|
|
293
|
+
if (!isJSONObject(data)) {
|
|
294
|
+
throw new TypeError(`Unmarshalling the type 'PrivateNetworkIpamConfig' failed as data isn't a dictionary.`);
|
|
295
|
+
}
|
|
296
|
+
return {};
|
|
297
|
+
};
|
|
298
298
|
const unmarshalPrivateNetworkStaticConfig = data => {
|
|
299
299
|
if (!isJSONObject(data)) {
|
|
300
300
|
throw new TypeError(`Unmarshalling the type 'PrivateNetworkStaticConfig' failed as data isn't a dictionary.`);
|
|
@@ -312,7 +312,7 @@ const unmarshalPrivateNetwork = data => {
|
|
|
312
312
|
dhcpConfig: data.dhcp_config ? unmarshalPrivateNetworkDHCPConfig(data.dhcp_config) : undefined,
|
|
313
313
|
ipamConfig: data.ipam_config ? unmarshalPrivateNetworkIpamConfig(data.ipam_config) : undefined,
|
|
314
314
|
ipamIds: data.ipam_ids,
|
|
315
|
-
lb: unmarshalLb(data.lb),
|
|
315
|
+
lb: data.lb ? unmarshalLb(data.lb) : undefined,
|
|
316
316
|
privateNetworkId: data.private_network_id,
|
|
317
317
|
staticConfig: data.static_config ? unmarshalPrivateNetworkStaticConfig(data.static_config) : undefined,
|
|
318
318
|
status: data.status,
|
|
@@ -324,8 +324,8 @@ const unmarshalRouteMatch = data => {
|
|
|
324
324
|
throw new TypeError(`Unmarshalling the type 'RouteMatch' failed as data isn't a dictionary.`);
|
|
325
325
|
}
|
|
326
326
|
return {
|
|
327
|
-
hostHeader: data.host_header
|
|
328
|
-
sni: data.sni
|
|
327
|
+
hostHeader: data.host_header,
|
|
328
|
+
sni: data.sni
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
331
|
const unmarshalRoute = data => {
|
|
@@ -337,7 +337,7 @@ const unmarshalRoute = data => {
|
|
|
337
337
|
createdAt: unmarshalDate(data.created_at),
|
|
338
338
|
frontendId: data.frontend_id,
|
|
339
339
|
id: data.id,
|
|
340
|
-
match: unmarshalRouteMatch(data.match),
|
|
340
|
+
match: data.match ? unmarshalRouteMatch(data.match) : undefined,
|
|
341
341
|
updatedAt: unmarshalDate(data.updated_at)
|
|
342
342
|
};
|
|
343
343
|
};
|
|
@@ -432,7 +432,7 @@ const unmarshalLbType = data => {
|
|
|
432
432
|
return {
|
|
433
433
|
description: data.description,
|
|
434
434
|
name: data.name,
|
|
435
|
-
region: data.region
|
|
435
|
+
region: data.region,
|
|
436
436
|
stockStatus: data.stock_status,
|
|
437
437
|
zone: data.zone
|
|
438
438
|
};
|
|
@@ -485,31 +485,106 @@ const unmarshalSetAclsResponse = data => {
|
|
|
485
485
|
const marshalAddBackendServersRequest = (request, defaults) => ({
|
|
486
486
|
server_ip: request.serverIp
|
|
487
487
|
});
|
|
488
|
+
const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({
|
|
489
|
+
ip_id: request.ipId
|
|
490
|
+
});
|
|
491
|
+
const marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
|
|
492
|
+
const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
|
|
493
|
+
ip_address: request.ipAddress
|
|
494
|
+
});
|
|
488
495
|
const marshalAttachPrivateNetworkRequest = (request, defaults) => ({
|
|
489
496
|
...resolveOneOf([{
|
|
497
|
+
param: 'static_config',
|
|
498
|
+
value: request.staticConfig !== undefined ? marshalPrivateNetworkStaticConfig(request.staticConfig) : undefined
|
|
499
|
+
}, {
|
|
490
500
|
param: 'dhcp_config',
|
|
491
|
-
value: request.dhcpConfig
|
|
501
|
+
value: request.dhcpConfig !== undefined ? marshalPrivateNetworkDHCPConfig(request.dhcpConfig) : undefined
|
|
492
502
|
}, {
|
|
493
503
|
param: 'ipam_config',
|
|
494
|
-
value: request.ipamConfig
|
|
495
|
-
}, {
|
|
496
|
-
param: 'static_config',
|
|
497
|
-
value: request.staticConfig
|
|
504
|
+
value: request.ipamConfig !== undefined ? marshalPrivateNetworkIpamConfig(request.ipamConfig) : undefined
|
|
498
505
|
}])
|
|
499
506
|
});
|
|
507
|
+
const marshalAclActionRedirect = (request, defaults) => ({
|
|
508
|
+
code: request.code,
|
|
509
|
+
target: request.target,
|
|
510
|
+
type: request.type
|
|
511
|
+
});
|
|
512
|
+
const marshalAclAction = (request, defaults) => ({
|
|
513
|
+
redirect: request.redirect !== undefined ? marshalAclActionRedirect(request.redirect) : undefined,
|
|
514
|
+
type: request.type
|
|
515
|
+
});
|
|
516
|
+
const marshalAclMatch = (request, defaults) => ({
|
|
517
|
+
http_filter: request.httpFilter,
|
|
518
|
+
http_filter_option: request.httpFilterOption,
|
|
519
|
+
http_filter_value: request.httpFilterValue,
|
|
520
|
+
invert: request.invert,
|
|
521
|
+
ip_subnet: request.ipSubnet
|
|
522
|
+
});
|
|
500
523
|
const marshalCreateAclRequest = (request, defaults) => ({
|
|
501
|
-
action: request.action,
|
|
524
|
+
action: marshalAclAction(request.action),
|
|
502
525
|
description: request.description,
|
|
503
526
|
index: request.index,
|
|
504
|
-
match: request.match,
|
|
527
|
+
match: request.match !== undefined ? marshalAclMatch(request.match) : undefined,
|
|
505
528
|
name: request.name || randomName('acl')
|
|
506
529
|
});
|
|
530
|
+
const marshalHealthCheckHttpConfig = (request, defaults) => ({
|
|
531
|
+
code: request.code,
|
|
532
|
+
host_header: request.hostHeader,
|
|
533
|
+
method: request.method,
|
|
534
|
+
uri: request.uri
|
|
535
|
+
});
|
|
536
|
+
const marshalHealthCheckHttpsConfig = (request, defaults) => ({
|
|
537
|
+
code: request.code,
|
|
538
|
+
host_header: request.hostHeader,
|
|
539
|
+
method: request.method,
|
|
540
|
+
sni: request.sni,
|
|
541
|
+
uri: request.uri
|
|
542
|
+
});
|
|
543
|
+
const marshalHealthCheckLdapConfig = (request, defaults) => ({});
|
|
544
|
+
const marshalHealthCheckMysqlConfig = (request, defaults) => ({
|
|
545
|
+
user: request.user
|
|
546
|
+
});
|
|
547
|
+
const marshalHealthCheckPgsqlConfig = (request, defaults) => ({
|
|
548
|
+
user: request.user
|
|
549
|
+
});
|
|
550
|
+
const marshalHealthCheckRedisConfig = (request, defaults) => ({});
|
|
551
|
+
const marshalHealthCheckTcpConfig = (request, defaults) => ({});
|
|
552
|
+
const marshalHealthCheck = (request, defaults) => ({
|
|
553
|
+
check_delay: request.checkDelay,
|
|
554
|
+
check_max_retries: request.checkMaxRetries,
|
|
555
|
+
check_send_proxy: request.checkSendProxy,
|
|
556
|
+
check_timeout: request.checkTimeout,
|
|
557
|
+
port: request.port,
|
|
558
|
+
transient_check_delay: request.transientCheckDelay,
|
|
559
|
+
...resolveOneOf([{
|
|
560
|
+
param: 'tcp_config',
|
|
561
|
+
value: request.tcpConfig !== undefined ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
|
|
562
|
+
}, {
|
|
563
|
+
param: 'mysql_config',
|
|
564
|
+
value: request.mysqlConfig !== undefined ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : undefined
|
|
565
|
+
}, {
|
|
566
|
+
param: 'pgsql_config',
|
|
567
|
+
value: request.pgsqlConfig !== undefined ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
|
|
568
|
+
}, {
|
|
569
|
+
param: 'ldap_config',
|
|
570
|
+
value: request.ldapConfig !== undefined ? marshalHealthCheckLdapConfig(request.ldapConfig) : undefined
|
|
571
|
+
}, {
|
|
572
|
+
param: 'redis_config',
|
|
573
|
+
value: request.redisConfig !== undefined ? marshalHealthCheckRedisConfig(request.redisConfig) : undefined
|
|
574
|
+
}, {
|
|
575
|
+
param: 'http_config',
|
|
576
|
+
value: request.httpConfig !== undefined ? marshalHealthCheckHttpConfig(request.httpConfig) : undefined
|
|
577
|
+
}, {
|
|
578
|
+
param: 'https_config',
|
|
579
|
+
value: request.httpsConfig !== undefined ? marshalHealthCheckHttpsConfig(request.httpsConfig) : undefined
|
|
580
|
+
}])
|
|
581
|
+
});
|
|
507
582
|
const marshalCreateBackendRequest = (request, defaults) => ({
|
|
508
583
|
failover_host: request.failoverHost,
|
|
509
584
|
forward_port: request.forwardPort,
|
|
510
585
|
forward_port_algorithm: request.forwardPortAlgorithm,
|
|
511
586
|
forward_protocol: request.forwardProtocol,
|
|
512
|
-
health_check: request.healthCheck,
|
|
587
|
+
health_check: marshalHealthCheck(request.healthCheck),
|
|
513
588
|
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
514
589
|
max_connections: request.maxConnections,
|
|
515
590
|
max_retries: request.maxRetries,
|
|
@@ -527,14 +602,21 @@ const marshalCreateBackendRequest = (request, defaults) => ({
|
|
|
527
602
|
timeout_server: request.timeoutServer,
|
|
528
603
|
timeout_tunnel: request.timeoutTunnel
|
|
529
604
|
});
|
|
605
|
+
const marshalCreateCertificateRequestCustomCertificate = (request, defaults) => ({
|
|
606
|
+
certificate_chain: request.certificateChain
|
|
607
|
+
});
|
|
608
|
+
const marshalCreateCertificateRequestLetsencryptConfig = (request, defaults) => ({
|
|
609
|
+
common_name: request.commonName,
|
|
610
|
+
subject_alternative_name: request.subjectAlternativeName
|
|
611
|
+
});
|
|
530
612
|
const marshalCreateCertificateRequest = (request, defaults) => ({
|
|
531
613
|
name: request.name || randomName('certificate'),
|
|
532
614
|
...resolveOneOf([{
|
|
533
|
-
param: 'custom_certificate',
|
|
534
|
-
value: request.customCertificate
|
|
535
|
-
}, {
|
|
536
615
|
param: 'letsencrypt',
|
|
537
|
-
value: request.letsencrypt
|
|
616
|
+
value: request.letsencrypt !== undefined ? marshalCreateCertificateRequestLetsencryptConfig(request.letsencrypt) : undefined
|
|
617
|
+
}, {
|
|
618
|
+
param: 'custom_certificate',
|
|
619
|
+
value: request.customCertificate !== undefined ? marshalCreateCertificateRequestCustomCertificate(request.customCertificate) : undefined
|
|
538
620
|
}])
|
|
539
621
|
});
|
|
540
622
|
const marshalCreateFrontendRequest = (request, defaults) => ({
|
|
@@ -549,9 +631,11 @@ const marshalCreateFrontendRequest = (request, defaults) => ({
|
|
|
549
631
|
const marshalCreateIpRequest = (request, defaults) => ({
|
|
550
632
|
reverse: request.reverse,
|
|
551
633
|
...resolveOneOf([{
|
|
634
|
+
default: defaults.defaultOrganizationId,
|
|
552
635
|
param: 'organization_id',
|
|
553
636
|
value: request.organizationId
|
|
554
637
|
}, {
|
|
638
|
+
default: defaults.defaultProjectId,
|
|
555
639
|
param: 'project_id',
|
|
556
640
|
value: request.projectId
|
|
557
641
|
}])
|
|
@@ -565,33 +649,52 @@ const marshalCreateLbRequest = (request, defaults) => ({
|
|
|
565
649
|
tags: request.tags,
|
|
566
650
|
type: request.type,
|
|
567
651
|
...resolveOneOf([{
|
|
652
|
+
default: defaults.defaultOrganizationId,
|
|
568
653
|
param: 'organization_id',
|
|
569
654
|
value: request.organizationId
|
|
570
655
|
}, {
|
|
656
|
+
default: defaults.defaultProjectId,
|
|
571
657
|
param: 'project_id',
|
|
572
658
|
value: request.projectId
|
|
573
659
|
}])
|
|
574
660
|
});
|
|
661
|
+
const marshalRouteMatch = (request, defaults) => ({
|
|
662
|
+
...resolveOneOf([{
|
|
663
|
+
param: 'sni',
|
|
664
|
+
value: request.sni
|
|
665
|
+
}, {
|
|
666
|
+
param: 'host_header',
|
|
667
|
+
value: request.hostHeader
|
|
668
|
+
}])
|
|
669
|
+
});
|
|
575
670
|
const marshalCreateRouteRequest = (request, defaults) => ({
|
|
576
671
|
backend_id: request.backendId,
|
|
577
672
|
frontend_id: request.frontendId,
|
|
578
|
-
match: request.match
|
|
673
|
+
match: request.match !== undefined ? marshalRouteMatch(request.match) : undefined
|
|
674
|
+
});
|
|
675
|
+
const marshalSubscriberEmailConfig = (request, defaults) => ({
|
|
676
|
+
email: request.email
|
|
677
|
+
});
|
|
678
|
+
const marshalSubscriberWebhookConfig = (request, defaults) => ({
|
|
679
|
+
uri: request.uri
|
|
579
680
|
});
|
|
580
681
|
const marshalCreateSubscriberRequest = (request, defaults) => ({
|
|
581
682
|
name: request.name,
|
|
582
683
|
...resolveOneOf([{
|
|
684
|
+
default: defaults.defaultOrganizationId,
|
|
583
685
|
param: 'organization_id',
|
|
584
686
|
value: request.organizationId
|
|
585
687
|
}, {
|
|
688
|
+
default: defaults.defaultProjectId,
|
|
586
689
|
param: 'project_id',
|
|
587
690
|
value: request.projectId
|
|
588
691
|
}]),
|
|
589
692
|
...resolveOneOf([{
|
|
590
693
|
param: 'email_config',
|
|
591
|
-
value: request.emailConfig
|
|
694
|
+
value: request.emailConfig !== undefined ? marshalSubscriberEmailConfig(request.emailConfig) : undefined
|
|
592
695
|
}, {
|
|
593
696
|
param: 'webhook_config',
|
|
594
|
-
value: request.webhookConfig
|
|
697
|
+
value: request.webhookConfig !== undefined ? marshalSubscriberWebhookConfig(request.webhookConfig) : undefined
|
|
595
698
|
}])
|
|
596
699
|
});
|
|
597
700
|
const marshalMigrateLbRequest = (request, defaults) => ({
|
|
@@ -607,10 +710,10 @@ const marshalSubscribeToLbRequest = (request, defaults) => ({
|
|
|
607
710
|
subscriber_id: request.subscriberId
|
|
608
711
|
});
|
|
609
712
|
const marshalUpdateAclRequest = (request, defaults) => ({
|
|
610
|
-
action: request.action,
|
|
713
|
+
action: marshalAclAction(request.action),
|
|
611
714
|
description: request.description,
|
|
612
715
|
index: request.index,
|
|
613
|
-
match: request.match,
|
|
716
|
+
match: request.match !== undefined ? marshalAclMatch(request.match) : undefined,
|
|
614
717
|
name: request.name
|
|
615
718
|
});
|
|
616
719
|
const marshalUpdateBackendRequest = (request, defaults) => ({
|
|
@@ -654,26 +757,26 @@ const marshalUpdateHealthCheckRequest = (request, defaults) => ({
|
|
|
654
757
|
port: request.port,
|
|
655
758
|
transient_check_delay: request.transientCheckDelay,
|
|
656
759
|
...resolveOneOf([{
|
|
657
|
-
param: '
|
|
658
|
-
value: request.
|
|
659
|
-
}, {
|
|
660
|
-
param: 'https_config',
|
|
661
|
-
value: request.httpsConfig
|
|
662
|
-
}, {
|
|
663
|
-
param: 'ldap_config',
|
|
664
|
-
value: request.ldapConfig
|
|
760
|
+
param: 'tcp_config',
|
|
761
|
+
value: request.tcpConfig !== undefined ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
|
|
665
762
|
}, {
|
|
666
763
|
param: 'mysql_config',
|
|
667
|
-
value: request.mysqlConfig
|
|
764
|
+
value: request.mysqlConfig !== undefined ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : undefined
|
|
668
765
|
}, {
|
|
669
766
|
param: 'pgsql_config',
|
|
670
|
-
value: request.pgsqlConfig
|
|
767
|
+
value: request.pgsqlConfig !== undefined ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
|
|
768
|
+
}, {
|
|
769
|
+
param: 'ldap_config',
|
|
770
|
+
value: request.ldapConfig !== undefined ? marshalHealthCheckLdapConfig(request.ldapConfig) : undefined
|
|
671
771
|
}, {
|
|
672
772
|
param: 'redis_config',
|
|
673
|
-
value: request.redisConfig
|
|
773
|
+
value: request.redisConfig !== undefined ? marshalHealthCheckRedisConfig(request.redisConfig) : undefined
|
|
674
774
|
}, {
|
|
675
|
-
param: '
|
|
676
|
-
value: request.
|
|
775
|
+
param: 'http_config',
|
|
776
|
+
value: request.httpConfig !== undefined ? marshalHealthCheckHttpConfig(request.httpConfig) : undefined
|
|
777
|
+
}, {
|
|
778
|
+
param: 'https_config',
|
|
779
|
+
value: request.httpsConfig !== undefined ? marshalHealthCheckHttpsConfig(request.httpsConfig) : undefined
|
|
677
780
|
}])
|
|
678
781
|
});
|
|
679
782
|
const marshalUpdateIpRequest = (request, defaults) => ({
|
|
@@ -687,16 +790,16 @@ const marshalUpdateLbRequest = (request, defaults) => ({
|
|
|
687
790
|
});
|
|
688
791
|
const marshalUpdateRouteRequest = (request, defaults) => ({
|
|
689
792
|
backend_id: request.backendId,
|
|
690
|
-
match: request.match
|
|
793
|
+
match: request.match !== undefined ? marshalRouteMatch(request.match) : undefined
|
|
691
794
|
});
|
|
692
795
|
const marshalUpdateSubscriberRequest = (request, defaults) => ({
|
|
693
796
|
name: request.name,
|
|
694
797
|
...resolveOneOf([{
|
|
695
798
|
param: 'email_config',
|
|
696
|
-
value: request.emailConfig
|
|
799
|
+
value: request.emailConfig !== undefined ? marshalSubscriberEmailConfig(request.emailConfig) : undefined
|
|
697
800
|
}, {
|
|
698
801
|
param: 'webhook_config',
|
|
699
|
-
value: request.webhookConfig
|
|
802
|
+
value: request.webhookConfig !== undefined ? marshalSubscriberWebhookConfig(request.webhookConfig) : undefined
|
|
700
803
|
}])
|
|
701
804
|
});
|
|
702
805
|
const marshalZonedApiAddBackendServersRequest = (request, defaults) => ({
|
|
@@ -704,21 +807,21 @@ const marshalZonedApiAddBackendServersRequest = (request, defaults) => ({
|
|
|
704
807
|
});
|
|
705
808
|
const marshalZonedApiAttachPrivateNetworkRequest = (request, defaults) => ({
|
|
706
809
|
...resolveOneOf([{
|
|
810
|
+
param: 'static_config',
|
|
811
|
+
value: request.staticConfig !== undefined ? marshalPrivateNetworkStaticConfig(request.staticConfig) : undefined
|
|
812
|
+
}, {
|
|
707
813
|
param: 'dhcp_config',
|
|
708
|
-
value: request.dhcpConfig
|
|
814
|
+
value: request.dhcpConfig !== undefined ? marshalPrivateNetworkDHCPConfig(request.dhcpConfig) : undefined
|
|
709
815
|
}, {
|
|
710
816
|
param: 'ipam_config',
|
|
711
|
-
value: request.ipamConfig
|
|
712
|
-
}, {
|
|
713
|
-
param: 'static_config',
|
|
714
|
-
value: request.staticConfig
|
|
817
|
+
value: request.ipamConfig !== undefined ? marshalPrivateNetworkIpamConfig(request.ipamConfig) : undefined
|
|
715
818
|
}])
|
|
716
819
|
});
|
|
717
820
|
const marshalZonedApiCreateAclRequest = (request, defaults) => ({
|
|
718
|
-
action: request.action,
|
|
821
|
+
action: marshalAclAction(request.action),
|
|
719
822
|
description: request.description,
|
|
720
823
|
index: request.index,
|
|
721
|
-
match: request.match,
|
|
824
|
+
match: request.match !== undefined ? marshalAclMatch(request.match) : undefined,
|
|
722
825
|
name: request.name || randomName('acl')
|
|
723
826
|
});
|
|
724
827
|
const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
|
|
@@ -726,7 +829,7 @@ const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
|
|
|
726
829
|
forward_port: request.forwardPort,
|
|
727
830
|
forward_port_algorithm: request.forwardPortAlgorithm,
|
|
728
831
|
forward_protocol: request.forwardProtocol,
|
|
729
|
-
health_check: request.healthCheck,
|
|
832
|
+
health_check: marshalHealthCheck(request.healthCheck),
|
|
730
833
|
ignore_ssl_server_verify: request.ignoreSslServerVerify,
|
|
731
834
|
max_connections: request.maxConnections,
|
|
732
835
|
max_retries: request.maxRetries,
|
|
@@ -747,11 +850,11 @@ const marshalZonedApiCreateBackendRequest = (request, defaults) => ({
|
|
|
747
850
|
const marshalZonedApiCreateCertificateRequest = (request, defaults) => ({
|
|
748
851
|
name: request.name || randomName('certificate'),
|
|
749
852
|
...resolveOneOf([{
|
|
750
|
-
param: 'custom_certificate',
|
|
751
|
-
value: request.customCertificate
|
|
752
|
-
}, {
|
|
753
853
|
param: 'letsencrypt',
|
|
754
|
-
value: request.letsencrypt
|
|
854
|
+
value: request.letsencrypt !== undefined ? marshalCreateCertificateRequestLetsencryptConfig(request.letsencrypt) : undefined
|
|
855
|
+
}, {
|
|
856
|
+
param: 'custom_certificate',
|
|
857
|
+
value: request.customCertificate !== undefined ? marshalCreateCertificateRequestCustomCertificate(request.customCertificate) : undefined
|
|
755
858
|
}])
|
|
756
859
|
});
|
|
757
860
|
const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
|
|
@@ -766,9 +869,11 @@ const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
|
|
|
766
869
|
const marshalZonedApiCreateIpRequest = (request, defaults) => ({
|
|
767
870
|
reverse: request.reverse,
|
|
768
871
|
...resolveOneOf([{
|
|
872
|
+
default: defaults.defaultOrganizationId,
|
|
769
873
|
param: 'organization_id',
|
|
770
874
|
value: request.organizationId
|
|
771
875
|
}, {
|
|
876
|
+
default: defaults.defaultProjectId,
|
|
772
877
|
param: 'project_id',
|
|
773
878
|
value: request.projectId
|
|
774
879
|
}])
|
|
@@ -782,9 +887,11 @@ const marshalZonedApiCreateLbRequest = (request, defaults) => ({
|
|
|
782
887
|
tags: request.tags,
|
|
783
888
|
type: request.type,
|
|
784
889
|
...resolveOneOf([{
|
|
890
|
+
default: defaults.defaultOrganizationId,
|
|
785
891
|
param: 'organization_id',
|
|
786
892
|
value: request.organizationId
|
|
787
893
|
}, {
|
|
894
|
+
default: defaults.defaultProjectId,
|
|
788
895
|
param: 'project_id',
|
|
789
896
|
value: request.projectId
|
|
790
897
|
}])
|
|
@@ -792,23 +899,25 @@ const marshalZonedApiCreateLbRequest = (request, defaults) => ({
|
|
|
792
899
|
const marshalZonedApiCreateRouteRequest = (request, defaults) => ({
|
|
793
900
|
backend_id: request.backendId,
|
|
794
901
|
frontend_id: request.frontendId,
|
|
795
|
-
match: request.match
|
|
902
|
+
match: request.match !== undefined ? marshalRouteMatch(request.match) : undefined
|
|
796
903
|
});
|
|
797
904
|
const marshalZonedApiCreateSubscriberRequest = (request, defaults) => ({
|
|
798
905
|
name: request.name,
|
|
799
906
|
...resolveOneOf([{
|
|
907
|
+
default: defaults.defaultOrganizationId,
|
|
800
908
|
param: 'organization_id',
|
|
801
909
|
value: request.organizationId
|
|
802
910
|
}, {
|
|
911
|
+
default: defaults.defaultProjectId,
|
|
803
912
|
param: 'project_id',
|
|
804
913
|
value: request.projectId
|
|
805
914
|
}]),
|
|
806
915
|
...resolveOneOf([{
|
|
807
916
|
param: 'email_config',
|
|
808
|
-
value: request.emailConfig
|
|
917
|
+
value: request.emailConfig !== undefined ? marshalSubscriberEmailConfig(request.emailConfig) : undefined
|
|
809
918
|
}, {
|
|
810
919
|
param: 'webhook_config',
|
|
811
|
-
value: request.webhookConfig
|
|
920
|
+
value: request.webhookConfig !== undefined ? marshalSubscriberWebhookConfig(request.webhookConfig) : undefined
|
|
812
921
|
}])
|
|
813
922
|
});
|
|
814
923
|
const marshalZonedApiMigrateLbRequest = (request, defaults) => ({
|
|
@@ -817,8 +926,15 @@ const marshalZonedApiMigrateLbRequest = (request, defaults) => ({
|
|
|
817
926
|
const marshalZonedApiRemoveBackendServersRequest = (request, defaults) => ({
|
|
818
927
|
server_ip: request.serverIp
|
|
819
928
|
});
|
|
929
|
+
const marshalAclSpec = (request, defaults) => ({
|
|
930
|
+
action: marshalAclAction(request.action),
|
|
931
|
+
description: request.description,
|
|
932
|
+
index: request.index,
|
|
933
|
+
match: request.match !== undefined ? marshalAclMatch(request.match) : undefined,
|
|
934
|
+
name: request.name
|
|
935
|
+
});
|
|
820
936
|
const marshalZonedApiSetAclsRequest = (request, defaults) => ({
|
|
821
|
-
acls: request.acls
|
|
937
|
+
acls: request.acls.map(elt => marshalAclSpec(elt))
|
|
822
938
|
});
|
|
823
939
|
const marshalZonedApiSetBackendServersRequest = (request, defaults) => ({
|
|
824
940
|
server_ip: request.serverIp
|
|
@@ -827,10 +943,10 @@ const marshalZonedApiSubscribeToLbRequest = (request, defaults) => ({
|
|
|
827
943
|
subscriber_id: request.subscriberId
|
|
828
944
|
});
|
|
829
945
|
const marshalZonedApiUpdateAclRequest = (request, defaults) => ({
|
|
830
|
-
action: request.action,
|
|
946
|
+
action: marshalAclAction(request.action),
|
|
831
947
|
description: request.description,
|
|
832
948
|
index: request.index,
|
|
833
|
-
match: request.match,
|
|
949
|
+
match: request.match !== undefined ? marshalAclMatch(request.match) : undefined,
|
|
834
950
|
name: request.name
|
|
835
951
|
});
|
|
836
952
|
const marshalZonedApiUpdateBackendRequest = (request, defaults) => ({
|
|
@@ -874,26 +990,26 @@ const marshalZonedApiUpdateHealthCheckRequest = (request, defaults) => ({
|
|
|
874
990
|
port: request.port,
|
|
875
991
|
transient_check_delay: request.transientCheckDelay,
|
|
876
992
|
...resolveOneOf([{
|
|
877
|
-
param: '
|
|
878
|
-
value: request.
|
|
879
|
-
}, {
|
|
880
|
-
param: 'https_config',
|
|
881
|
-
value: request.httpsConfig
|
|
882
|
-
}, {
|
|
883
|
-
param: 'ldap_config',
|
|
884
|
-
value: request.ldapConfig
|
|
993
|
+
param: 'tcp_config',
|
|
994
|
+
value: request.tcpConfig !== undefined ? marshalHealthCheckTcpConfig(request.tcpConfig) : undefined
|
|
885
995
|
}, {
|
|
886
996
|
param: 'mysql_config',
|
|
887
|
-
value: request.mysqlConfig
|
|
997
|
+
value: request.mysqlConfig !== undefined ? marshalHealthCheckMysqlConfig(request.mysqlConfig) : undefined
|
|
888
998
|
}, {
|
|
889
999
|
param: 'pgsql_config',
|
|
890
|
-
value: request.pgsqlConfig
|
|
1000
|
+
value: request.pgsqlConfig !== undefined ? marshalHealthCheckPgsqlConfig(request.pgsqlConfig) : undefined
|
|
1001
|
+
}, {
|
|
1002
|
+
param: 'ldap_config',
|
|
1003
|
+
value: request.ldapConfig !== undefined ? marshalHealthCheckLdapConfig(request.ldapConfig) : undefined
|
|
891
1004
|
}, {
|
|
892
1005
|
param: 'redis_config',
|
|
893
|
-
value: request.redisConfig
|
|
1006
|
+
value: request.redisConfig !== undefined ? marshalHealthCheckRedisConfig(request.redisConfig) : undefined
|
|
894
1007
|
}, {
|
|
895
|
-
param: '
|
|
896
|
-
value: request.
|
|
1008
|
+
param: 'http_config',
|
|
1009
|
+
value: request.httpConfig !== undefined ? marshalHealthCheckHttpConfig(request.httpConfig) : undefined
|
|
1010
|
+
}, {
|
|
1011
|
+
param: 'https_config',
|
|
1012
|
+
value: request.httpsConfig !== undefined ? marshalHealthCheckHttpsConfig(request.httpsConfig) : undefined
|
|
897
1013
|
}])
|
|
898
1014
|
});
|
|
899
1015
|
const marshalZonedApiUpdateIpRequest = (request, defaults) => ({
|
|
@@ -907,17 +1023,17 @@ const marshalZonedApiUpdateLbRequest = (request, defaults) => ({
|
|
|
907
1023
|
});
|
|
908
1024
|
const marshalZonedApiUpdateRouteRequest = (request, defaults) => ({
|
|
909
1025
|
backend_id: request.backendId,
|
|
910
|
-
match: request.match
|
|
1026
|
+
match: request.match !== undefined ? marshalRouteMatch(request.match) : undefined
|
|
911
1027
|
});
|
|
912
1028
|
const marshalZonedApiUpdateSubscriberRequest = (request, defaults) => ({
|
|
913
1029
|
name: request.name,
|
|
914
1030
|
...resolveOneOf([{
|
|
915
1031
|
param: 'email_config',
|
|
916
|
-
value: request.emailConfig
|
|
1032
|
+
value: request.emailConfig !== undefined ? marshalSubscriberEmailConfig(request.emailConfig) : undefined
|
|
917
1033
|
}, {
|
|
918
1034
|
param: 'webhook_config',
|
|
919
|
-
value: request.webhookConfig
|
|
1035
|
+
value: request.webhookConfig !== undefined ? marshalSubscriberWebhookConfig(request.webhookConfig) : undefined
|
|
920
1036
|
}])
|
|
921
1037
|
});
|
|
922
1038
|
|
|
923
|
-
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, marshalZonedApiMigrateLbRequest, marshalZonedApiRemoveBackendServersRequest, marshalZonedApiSetAclsRequest, marshalZonedApiSetBackendServersRequest, marshalZonedApiSubscribeToLbRequest, marshalZonedApiUpdateAclRequest, marshalZonedApiUpdateBackendRequest, marshalZonedApiUpdateCertificateRequest, marshalZonedApiUpdateFrontendRequest, marshalZonedApiUpdateHealthCheckRequest, marshalZonedApiUpdateIpRequest, marshalZonedApiUpdateLbRequest, marshalZonedApiUpdateRouteRequest, marshalZonedApiUpdateSubscriberRequest, unmarshalAcl, unmarshalBackend, unmarshalCertificate, unmarshalFrontend, unmarshalHealthCheck, unmarshalIp, unmarshalLb, unmarshalLbStats, unmarshalListAclResponse, unmarshalListBackendStatsResponse, unmarshalListBackendsResponse, unmarshalListCertificatesResponse, unmarshalListFrontendsResponse, unmarshalListIpsResponse, unmarshalListLbPrivateNetworksResponse, unmarshalListLbTypesResponse, unmarshalListLbsResponse, unmarshalListRoutesResponse, unmarshalListSubscriberResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclsResponse, unmarshalSubscriber };
|
|
1039
|
+
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, 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 };
|