@scaleway/sdk-lb 2.19.2 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v1/api.gen.js +196 -49
- package/dist/v1/marshalling.gen.js +21 -6
- package/dist/v1/types.gen.d.ts +60 -0
- package/package.json +4 -4
package/dist/v1/api.gen.js
CHANGED
|
@@ -21,7 +21,10 @@ var ZonedAPI = class extends API {
|
|
|
21
21
|
this.listLbs = (request = {}, options) => enrichForPagination("lbs", this.pageOfListLbs, request, options);
|
|
22
22
|
this.createLb = (request, options) => this.client.fetch({
|
|
23
23
|
body: JSON.stringify(marshalZonedApiCreateLbRequest(request, this.client.settings)),
|
|
24
|
-
headers:
|
|
24
|
+
headers: {
|
|
25
|
+
...jsonContentHeaders,
|
|
26
|
+
...options?.headers
|
|
27
|
+
},
|
|
25
28
|
method: "POST",
|
|
26
29
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs`,
|
|
27
30
|
signal: options?.signal
|
|
@@ -34,7 +37,10 @@ var ZonedAPI = class extends API {
|
|
|
34
37
|
this.waitForLb = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
|
|
35
38
|
this.updateLb = (request, options) => this.client.fetch({
|
|
36
39
|
body: JSON.stringify(marshalZonedApiUpdateLbRequest(request, this.client.settings)),
|
|
37
|
-
headers:
|
|
40
|
+
headers: {
|
|
41
|
+
...jsonContentHeaders,
|
|
42
|
+
...options?.headers
|
|
43
|
+
},
|
|
38
44
|
method: "PUT",
|
|
39
45
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}`,
|
|
40
46
|
signal: options?.signal
|
|
@@ -47,7 +53,10 @@ var ZonedAPI = class extends API {
|
|
|
47
53
|
});
|
|
48
54
|
this.migrateLb = (request, options) => this.client.fetch({
|
|
49
55
|
body: JSON.stringify(marshalZonedApiMigrateLbRequest(request, this.client.settings)),
|
|
50
|
-
headers:
|
|
56
|
+
headers: {
|
|
57
|
+
...jsonContentHeaders,
|
|
58
|
+
...options?.headers
|
|
59
|
+
},
|
|
51
60
|
method: "POST",
|
|
52
61
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/migrate`,
|
|
53
62
|
signal: options?.signal
|
|
@@ -61,7 +70,10 @@ var ZonedAPI = class extends API {
|
|
|
61
70
|
this.listIPs = (request = {}, options) => enrichForPagination("ips", this.pageOfListIPs, request, options);
|
|
62
71
|
this.createIp = (request, options) => this.client.fetch({
|
|
63
72
|
body: JSON.stringify(marshalZonedApiCreateIpRequest(request, this.client.settings)),
|
|
64
|
-
headers:
|
|
73
|
+
headers: {
|
|
74
|
+
...jsonContentHeaders,
|
|
75
|
+
...options?.headers
|
|
76
|
+
},
|
|
65
77
|
method: "POST",
|
|
66
78
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
67
79
|
signal: options?.signal
|
|
@@ -78,7 +90,10 @@ var ZonedAPI = class extends API {
|
|
|
78
90
|
});
|
|
79
91
|
this.updateIp = (request, options) => this.client.fetch({
|
|
80
92
|
body: JSON.stringify(marshalZonedApiUpdateIpRequest(request, this.client.settings)),
|
|
81
|
-
headers:
|
|
93
|
+
headers: {
|
|
94
|
+
...jsonContentHeaders,
|
|
95
|
+
...options?.headers
|
|
96
|
+
},
|
|
82
97
|
method: "PATCH",
|
|
83
98
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
84
99
|
signal: options?.signal
|
|
@@ -92,7 +107,10 @@ var ZonedAPI = class extends API {
|
|
|
92
107
|
this.listBackends = (request, options) => enrichForPagination("backends", this.pageOfListBackends, request, options);
|
|
93
108
|
this.createBackend = (request, options) => this.client.fetch({
|
|
94
109
|
body: JSON.stringify(marshalZonedApiCreateBackendRequest(request, this.client.settings)),
|
|
95
|
-
headers:
|
|
110
|
+
headers: {
|
|
111
|
+
...jsonContentHeaders,
|
|
112
|
+
...options?.headers
|
|
113
|
+
},
|
|
96
114
|
method: "POST",
|
|
97
115
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/backends`,
|
|
98
116
|
signal: options?.signal
|
|
@@ -104,7 +122,10 @@ var ZonedAPI = class extends API {
|
|
|
104
122
|
}, unmarshalBackend);
|
|
105
123
|
this.updateBackend = (request, options) => this.client.fetch({
|
|
106
124
|
body: JSON.stringify(marshalZonedApiUpdateBackendRequest(request, this.client.settings)),
|
|
107
|
-
headers:
|
|
125
|
+
headers: {
|
|
126
|
+
...jsonContentHeaders,
|
|
127
|
+
...options?.headers
|
|
128
|
+
},
|
|
108
129
|
method: "PUT",
|
|
109
130
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}`,
|
|
110
131
|
signal: options?.signal
|
|
@@ -116,28 +137,40 @@ var ZonedAPI = class extends API {
|
|
|
116
137
|
});
|
|
117
138
|
this.addBackendServers = (request, options) => this.client.fetch({
|
|
118
139
|
body: JSON.stringify(marshalZonedApiAddBackendServersRequest(request, this.client.settings)),
|
|
119
|
-
headers:
|
|
140
|
+
headers: {
|
|
141
|
+
...jsonContentHeaders,
|
|
142
|
+
...options?.headers
|
|
143
|
+
},
|
|
120
144
|
method: "POST",
|
|
121
145
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
122
146
|
signal: options?.signal
|
|
123
147
|
}, unmarshalBackend);
|
|
124
148
|
this.removeBackendServers = (request, options) => this.client.fetch({
|
|
125
149
|
body: JSON.stringify(marshalZonedApiRemoveBackendServersRequest(request, this.client.settings)),
|
|
126
|
-
headers:
|
|
150
|
+
headers: {
|
|
151
|
+
...jsonContentHeaders,
|
|
152
|
+
...options?.headers
|
|
153
|
+
},
|
|
127
154
|
method: "DELETE",
|
|
128
155
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
129
156
|
signal: options?.signal
|
|
130
157
|
}, unmarshalBackend);
|
|
131
158
|
this.setBackendServers = (request, options) => this.client.fetch({
|
|
132
159
|
body: JSON.stringify(marshalZonedApiSetBackendServersRequest(request, this.client.settings)),
|
|
133
|
-
headers:
|
|
160
|
+
headers: {
|
|
161
|
+
...jsonContentHeaders,
|
|
162
|
+
...options?.headers
|
|
163
|
+
},
|
|
134
164
|
method: "PUT",
|
|
135
165
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
136
166
|
signal: options?.signal
|
|
137
167
|
}, unmarshalBackend);
|
|
138
168
|
this.updateHealthCheck = (request, options) => this.client.fetch({
|
|
139
169
|
body: JSON.stringify(marshalZonedApiUpdateHealthCheckRequest(request, this.client.settings)),
|
|
140
|
-
headers:
|
|
170
|
+
headers: {
|
|
171
|
+
...jsonContentHeaders,
|
|
172
|
+
...options?.headers
|
|
173
|
+
},
|
|
141
174
|
method: "PUT",
|
|
142
175
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam("backendId", request.backendId)}/healthcheck`,
|
|
143
176
|
signal: options?.signal
|
|
@@ -151,7 +184,10 @@ var ZonedAPI = class extends API {
|
|
|
151
184
|
this.listFrontends = (request, options) => enrichForPagination("frontends", this.pageOfListFrontends, request, options);
|
|
152
185
|
this.createFrontend = (request, options) => this.client.fetch({
|
|
153
186
|
body: JSON.stringify(marshalZonedApiCreateFrontendRequest(request, this.client.settings)),
|
|
154
|
-
headers:
|
|
187
|
+
headers: {
|
|
188
|
+
...jsonContentHeaders,
|
|
189
|
+
...options?.headers
|
|
190
|
+
},
|
|
155
191
|
method: "POST",
|
|
156
192
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/frontends`,
|
|
157
193
|
signal: options?.signal
|
|
@@ -163,7 +199,10 @@ var ZonedAPI = class extends API {
|
|
|
163
199
|
}, unmarshalFrontend);
|
|
164
200
|
this.updateFrontend = (request, options) => this.client.fetch({
|
|
165
201
|
body: JSON.stringify(marshalZonedApiUpdateFrontendRequest(request, this.client.settings)),
|
|
166
|
-
headers:
|
|
202
|
+
headers: {
|
|
203
|
+
...jsonContentHeaders,
|
|
204
|
+
...options?.headers
|
|
205
|
+
},
|
|
167
206
|
method: "PUT",
|
|
168
207
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}`,
|
|
169
208
|
signal: options?.signal
|
|
@@ -182,7 +221,10 @@ var ZonedAPI = class extends API {
|
|
|
182
221
|
this.listRoutes = (request = {}, options) => enrichForPagination("routes", this.pageOfListRoutes, request, options);
|
|
183
222
|
this.createRoute = (request, options) => this.client.fetch({
|
|
184
223
|
body: JSON.stringify(marshalZonedApiCreateRouteRequest(request, this.client.settings)),
|
|
185
|
-
headers:
|
|
224
|
+
headers: {
|
|
225
|
+
...jsonContentHeaders,
|
|
226
|
+
...options?.headers
|
|
227
|
+
},
|
|
186
228
|
method: "POST",
|
|
187
229
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes`,
|
|
188
230
|
signal: options?.signal
|
|
@@ -194,7 +236,10 @@ var ZonedAPI = class extends API {
|
|
|
194
236
|
}, unmarshalRoute);
|
|
195
237
|
this.updateRoute = (request, options) => this.client.fetch({
|
|
196
238
|
body: JSON.stringify(marshalZonedApiUpdateRouteRequest(request, this.client.settings)),
|
|
197
|
-
headers:
|
|
239
|
+
headers: {
|
|
240
|
+
...jsonContentHeaders,
|
|
241
|
+
...options?.headers
|
|
242
|
+
},
|
|
198
243
|
method: "PUT",
|
|
199
244
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam("routeId", request.routeId)}`,
|
|
200
245
|
signal: options?.signal
|
|
@@ -226,7 +271,10 @@ var ZonedAPI = class extends API {
|
|
|
226
271
|
this.listAcls = (request, options) => enrichForPagination("acls", this.pageOfListAcls, request, options);
|
|
227
272
|
this.createAcl = (request, options) => this.client.fetch({
|
|
228
273
|
body: JSON.stringify(marshalZonedApiCreateAclRequest(request, this.client.settings)),
|
|
229
|
-
headers:
|
|
274
|
+
headers: {
|
|
275
|
+
...jsonContentHeaders,
|
|
276
|
+
...options?.headers
|
|
277
|
+
},
|
|
230
278
|
method: "POST",
|
|
231
279
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls`,
|
|
232
280
|
signal: options?.signal
|
|
@@ -238,7 +286,10 @@ var ZonedAPI = class extends API {
|
|
|
238
286
|
}, unmarshalAcl);
|
|
239
287
|
this.updateAcl = (request, options) => this.client.fetch({
|
|
240
288
|
body: JSON.stringify(marshalZonedApiUpdateAclRequest(request, this.client.settings)),
|
|
241
|
-
headers:
|
|
289
|
+
headers: {
|
|
290
|
+
...jsonContentHeaders,
|
|
291
|
+
...options?.headers
|
|
292
|
+
},
|
|
242
293
|
method: "PUT",
|
|
243
294
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam("aclId", request.aclId)}`,
|
|
244
295
|
signal: options?.signal
|
|
@@ -250,14 +301,20 @@ var ZonedAPI = class extends API {
|
|
|
250
301
|
});
|
|
251
302
|
this.setAcls = (request, options) => this.client.fetch({
|
|
252
303
|
body: JSON.stringify(marshalZonedApiSetAclsRequest(request, this.client.settings)),
|
|
253
|
-
headers:
|
|
304
|
+
headers: {
|
|
305
|
+
...jsonContentHeaders,
|
|
306
|
+
...options?.headers
|
|
307
|
+
},
|
|
254
308
|
method: "PUT",
|
|
255
309
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls`,
|
|
256
310
|
signal: options?.signal
|
|
257
311
|
}, unmarshalSetAclsResponse);
|
|
258
312
|
this.createCertificate = (request, options) => this.client.fetch({
|
|
259
313
|
body: JSON.stringify(marshalZonedApiCreateCertificateRequest(request, this.client.settings)),
|
|
260
|
-
headers:
|
|
314
|
+
headers: {
|
|
315
|
+
...jsonContentHeaders,
|
|
316
|
+
...options?.headers
|
|
317
|
+
},
|
|
261
318
|
method: "POST",
|
|
262
319
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/certificates`,
|
|
263
320
|
signal: options?.signal
|
|
@@ -277,7 +334,10 @@ var ZonedAPI = class extends API {
|
|
|
277
334
|
this.waitForCertificate = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
|
|
278
335
|
this.updateCertificate = (request, options) => this.client.fetch({
|
|
279
336
|
body: JSON.stringify(marshalZonedApiUpdateCertificateRequest(request, this.client.settings)),
|
|
280
|
-
headers:
|
|
337
|
+
headers: {
|
|
338
|
+
...jsonContentHeaders,
|
|
339
|
+
...options?.headers
|
|
340
|
+
},
|
|
281
341
|
method: "PUT",
|
|
282
342
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam("certificateId", request.certificateId)}`,
|
|
283
343
|
signal: options?.signal
|
|
@@ -296,7 +356,10 @@ var ZonedAPI = class extends API {
|
|
|
296
356
|
this.listLbTypes = (request = {}, options) => enrichForPagination("lbTypes", this.pageOfListLbTypes, request, options);
|
|
297
357
|
this.createSubscriber = (request, options) => this.client.fetch({
|
|
298
358
|
body: JSON.stringify(marshalZonedApiCreateSubscriberRequest(request, this.client.settings)),
|
|
299
|
-
headers:
|
|
359
|
+
headers: {
|
|
360
|
+
...jsonContentHeaders,
|
|
361
|
+
...options?.headers
|
|
362
|
+
},
|
|
300
363
|
method: "POST",
|
|
301
364
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers`,
|
|
302
365
|
signal: options?.signal
|
|
@@ -315,7 +378,10 @@ var ZonedAPI = class extends API {
|
|
|
315
378
|
this.listSubscriber = (request = {}, options) => enrichForPagination("subscribers", this.pageOfListSubscriber, request, options);
|
|
316
379
|
this.updateSubscriber = (request, options) => this.client.fetch({
|
|
317
380
|
body: JSON.stringify(marshalZonedApiUpdateSubscriberRequest(request, this.client.settings)),
|
|
318
|
-
headers:
|
|
381
|
+
headers: {
|
|
382
|
+
...jsonContentHeaders,
|
|
383
|
+
...options?.headers
|
|
384
|
+
},
|
|
319
385
|
method: "PUT",
|
|
320
386
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}`,
|
|
321
387
|
signal: options?.signal
|
|
@@ -327,7 +393,10 @@ var ZonedAPI = class extends API {
|
|
|
327
393
|
});
|
|
328
394
|
this.subscribeToLb = (request, options) => this.client.fetch({
|
|
329
395
|
body: JSON.stringify(marshalZonedApiSubscribeToLbRequest(request, this.client.settings)),
|
|
330
|
-
headers:
|
|
396
|
+
headers: {
|
|
397
|
+
...jsonContentHeaders,
|
|
398
|
+
...options?.headers
|
|
399
|
+
},
|
|
331
400
|
method: "POST",
|
|
332
401
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam("lbId", request.lbId)}/subscribe`,
|
|
333
402
|
signal: options?.signal
|
|
@@ -346,14 +415,20 @@ var ZonedAPI = class extends API {
|
|
|
346
415
|
this.listLbPrivateNetworks = (request, options) => enrichForPagination("privateNetwork", this.pageOfListLbPrivateNetworks, request, options);
|
|
347
416
|
this.attachPrivateNetwork = (request, options) => this.client.fetch({
|
|
348
417
|
body: JSON.stringify(marshalZonedApiAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
349
|
-
headers:
|
|
418
|
+
headers: {
|
|
419
|
+
...jsonContentHeaders,
|
|
420
|
+
...options?.headers
|
|
421
|
+
},
|
|
350
422
|
method: "POST",
|
|
351
423
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/attach-private-network`,
|
|
352
424
|
signal: options?.signal
|
|
353
425
|
}, unmarshalPrivateNetwork);
|
|
354
426
|
this.detachPrivateNetwork = (request, options) => this.client.fetch({
|
|
355
427
|
body: JSON.stringify(marshalZonedApiDetachPrivateNetworkRequest(request, this.client.settings)),
|
|
356
|
-
headers:
|
|
428
|
+
headers: {
|
|
429
|
+
...jsonContentHeaders,
|
|
430
|
+
...options?.headers
|
|
431
|
+
},
|
|
357
432
|
method: "POST",
|
|
358
433
|
path: `/lb/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam("lbId", request.lbId)}/detach-private-network`,
|
|
359
434
|
signal: options?.signal
|
|
@@ -389,7 +464,10 @@ var API$1 = class extends API {
|
|
|
389
464
|
this.listLbs = (request = {}, options) => enrichForPagination("lbs", this.pageOfListLbs, request, options);
|
|
390
465
|
this.createLb = (request, options) => this.client.fetch({
|
|
391
466
|
body: JSON.stringify(marshalCreateLbRequest(request, this.client.settings)),
|
|
392
|
-
headers:
|
|
467
|
+
headers: {
|
|
468
|
+
...jsonContentHeaders,
|
|
469
|
+
...options?.headers
|
|
470
|
+
},
|
|
393
471
|
method: "POST",
|
|
394
472
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs`,
|
|
395
473
|
signal: options?.signal
|
|
@@ -402,7 +480,10 @@ var API$1 = class extends API {
|
|
|
402
480
|
this.waitForLb = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
|
|
403
481
|
this.updateLb = (request, options) => this.client.fetch({
|
|
404
482
|
body: JSON.stringify(marshalUpdateLbRequest(request, this.client.settings)),
|
|
405
|
-
headers:
|
|
483
|
+
headers: {
|
|
484
|
+
...jsonContentHeaders,
|
|
485
|
+
...options?.headers
|
|
486
|
+
},
|
|
406
487
|
method: "PUT",
|
|
407
488
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}`,
|
|
408
489
|
signal: options?.signal
|
|
@@ -415,7 +496,10 @@ var API$1 = class extends API {
|
|
|
415
496
|
});
|
|
416
497
|
this.migrateLb = (request, options) => this.client.fetch({
|
|
417
498
|
body: JSON.stringify(marshalMigrateLbRequest(request, this.client.settings)),
|
|
418
|
-
headers:
|
|
499
|
+
headers: {
|
|
500
|
+
...jsonContentHeaders,
|
|
501
|
+
...options?.headers
|
|
502
|
+
},
|
|
419
503
|
method: "POST",
|
|
420
504
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/migrate`,
|
|
421
505
|
signal: options?.signal
|
|
@@ -429,7 +513,10 @@ var API$1 = class extends API {
|
|
|
429
513
|
this.listIPs = (request = {}, options) => enrichForPagination("ips", this.pageOfListIPs, request, options);
|
|
430
514
|
this.createIp = (request, options) => this.client.fetch({
|
|
431
515
|
body: JSON.stringify(marshalCreateIpRequest(request, this.client.settings)),
|
|
432
|
-
headers:
|
|
516
|
+
headers: {
|
|
517
|
+
...jsonContentHeaders,
|
|
518
|
+
...options?.headers
|
|
519
|
+
},
|
|
433
520
|
method: "POST",
|
|
434
521
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips`,
|
|
435
522
|
signal: options?.signal
|
|
@@ -446,7 +533,10 @@ var API$1 = class extends API {
|
|
|
446
533
|
});
|
|
447
534
|
this.updateIp = (request, options) => this.client.fetch({
|
|
448
535
|
body: JSON.stringify(marshalUpdateIpRequest(request, this.client.settings)),
|
|
449
|
-
headers:
|
|
536
|
+
headers: {
|
|
537
|
+
...jsonContentHeaders,
|
|
538
|
+
...options?.headers
|
|
539
|
+
},
|
|
450
540
|
method: "PATCH",
|
|
451
541
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam("ipId", request.ipId)}`,
|
|
452
542
|
signal: options?.signal
|
|
@@ -460,7 +550,10 @@ var API$1 = class extends API {
|
|
|
460
550
|
this.listBackends = (request, options) => enrichForPagination("backends", this.pageOfListBackends, request, options);
|
|
461
551
|
this.createBackend = (request, options) => this.client.fetch({
|
|
462
552
|
body: JSON.stringify(marshalCreateBackendRequest(request, this.client.settings)),
|
|
463
|
-
headers:
|
|
553
|
+
headers: {
|
|
554
|
+
...jsonContentHeaders,
|
|
555
|
+
...options?.headers
|
|
556
|
+
},
|
|
464
557
|
method: "POST",
|
|
465
558
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/backends`,
|
|
466
559
|
signal: options?.signal
|
|
@@ -472,7 +565,10 @@ var API$1 = class extends API {
|
|
|
472
565
|
}, unmarshalBackend);
|
|
473
566
|
this.updateBackend = (request, options) => this.client.fetch({
|
|
474
567
|
body: JSON.stringify(marshalUpdateBackendRequest(request, this.client.settings)),
|
|
475
|
-
headers:
|
|
568
|
+
headers: {
|
|
569
|
+
...jsonContentHeaders,
|
|
570
|
+
...options?.headers
|
|
571
|
+
},
|
|
476
572
|
method: "PUT",
|
|
477
573
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}`,
|
|
478
574
|
signal: options?.signal
|
|
@@ -484,28 +580,40 @@ var API$1 = class extends API {
|
|
|
484
580
|
});
|
|
485
581
|
this.addBackendServers = (request, options) => this.client.fetch({
|
|
486
582
|
body: JSON.stringify(marshalAddBackendServersRequest(request, this.client.settings)),
|
|
487
|
-
headers:
|
|
583
|
+
headers: {
|
|
584
|
+
...jsonContentHeaders,
|
|
585
|
+
...options?.headers
|
|
586
|
+
},
|
|
488
587
|
method: "POST",
|
|
489
588
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
490
589
|
signal: options?.signal
|
|
491
590
|
}, unmarshalBackend);
|
|
492
591
|
this.removeBackendServers = (request, options) => this.client.fetch({
|
|
493
592
|
body: JSON.stringify(marshalRemoveBackendServersRequest(request, this.client.settings)),
|
|
494
|
-
headers:
|
|
593
|
+
headers: {
|
|
594
|
+
...jsonContentHeaders,
|
|
595
|
+
...options?.headers
|
|
596
|
+
},
|
|
495
597
|
method: "DELETE",
|
|
496
598
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
497
599
|
signal: options?.signal
|
|
498
600
|
}, unmarshalBackend);
|
|
499
601
|
this.setBackendServers = (request, options) => this.client.fetch({
|
|
500
602
|
body: JSON.stringify(marshalSetBackendServersRequest(request, this.client.settings)),
|
|
501
|
-
headers:
|
|
603
|
+
headers: {
|
|
604
|
+
...jsonContentHeaders,
|
|
605
|
+
...options?.headers
|
|
606
|
+
},
|
|
502
607
|
method: "PUT",
|
|
503
608
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/servers`,
|
|
504
609
|
signal: options?.signal
|
|
505
610
|
}, unmarshalBackend);
|
|
506
611
|
this.updateHealthCheck = (request, options) => this.client.fetch({
|
|
507
612
|
body: JSON.stringify(marshalUpdateHealthCheckRequest(request, this.client.settings)),
|
|
508
|
-
headers:
|
|
613
|
+
headers: {
|
|
614
|
+
...jsonContentHeaders,
|
|
615
|
+
...options?.headers
|
|
616
|
+
},
|
|
509
617
|
method: "PUT",
|
|
510
618
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam("backendId", request.backendId)}/healthcheck`,
|
|
511
619
|
signal: options?.signal
|
|
@@ -519,7 +627,10 @@ var API$1 = class extends API {
|
|
|
519
627
|
this.listFrontends = (request, options) => enrichForPagination("frontends", this.pageOfListFrontends, request, options);
|
|
520
628
|
this.createFrontend = (request, options) => this.client.fetch({
|
|
521
629
|
body: JSON.stringify(marshalCreateFrontendRequest(request, this.client.settings)),
|
|
522
|
-
headers:
|
|
630
|
+
headers: {
|
|
631
|
+
...jsonContentHeaders,
|
|
632
|
+
...options?.headers
|
|
633
|
+
},
|
|
523
634
|
method: "POST",
|
|
524
635
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/frontends`,
|
|
525
636
|
signal: options?.signal
|
|
@@ -531,7 +642,10 @@ var API$1 = class extends API {
|
|
|
531
642
|
}, unmarshalFrontend);
|
|
532
643
|
this.updateFrontend = (request, options) => this.client.fetch({
|
|
533
644
|
body: JSON.stringify(marshalUpdateFrontendRequest(request, this.client.settings)),
|
|
534
|
-
headers:
|
|
645
|
+
headers: {
|
|
646
|
+
...jsonContentHeaders,
|
|
647
|
+
...options?.headers
|
|
648
|
+
},
|
|
535
649
|
method: "PUT",
|
|
536
650
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}`,
|
|
537
651
|
signal: options?.signal
|
|
@@ -550,7 +664,10 @@ var API$1 = class extends API {
|
|
|
550
664
|
this.listRoutes = (request = {}, options) => enrichForPagination("routes", this.pageOfListRoutes, request, options);
|
|
551
665
|
this.createRoute = (request, options) => this.client.fetch({
|
|
552
666
|
body: JSON.stringify(marshalCreateRouteRequest(request, this.client.settings)),
|
|
553
|
-
headers:
|
|
667
|
+
headers: {
|
|
668
|
+
...jsonContentHeaders,
|
|
669
|
+
...options?.headers
|
|
670
|
+
},
|
|
554
671
|
method: "POST",
|
|
555
672
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes`,
|
|
556
673
|
signal: options?.signal
|
|
@@ -562,7 +679,10 @@ var API$1 = class extends API {
|
|
|
562
679
|
}, unmarshalRoute);
|
|
563
680
|
this.updateRoute = (request, options) => this.client.fetch({
|
|
564
681
|
body: JSON.stringify(marshalUpdateRouteRequest(request, this.client.settings)),
|
|
565
|
-
headers:
|
|
682
|
+
headers: {
|
|
683
|
+
...jsonContentHeaders,
|
|
684
|
+
...options?.headers
|
|
685
|
+
},
|
|
566
686
|
method: "PUT",
|
|
567
687
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`,
|
|
568
688
|
signal: options?.signal
|
|
@@ -594,7 +714,10 @@ var API$1 = class extends API {
|
|
|
594
714
|
this.listAcls = (request, options) => enrichForPagination("acls", this.pageOfListAcls, request, options);
|
|
595
715
|
this.createAcl = (request, options) => this.client.fetch({
|
|
596
716
|
body: JSON.stringify(marshalCreateAclRequest(request, this.client.settings)),
|
|
597
|
-
headers:
|
|
717
|
+
headers: {
|
|
718
|
+
...jsonContentHeaders,
|
|
719
|
+
...options?.headers
|
|
720
|
+
},
|
|
598
721
|
method: "POST",
|
|
599
722
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam("frontendId", request.frontendId)}/acls`,
|
|
600
723
|
signal: options?.signal
|
|
@@ -606,7 +729,10 @@ var API$1 = class extends API {
|
|
|
606
729
|
}, unmarshalAcl);
|
|
607
730
|
this.updateAcl = (request, options) => this.client.fetch({
|
|
608
731
|
body: JSON.stringify(marshalUpdateAclRequest(request, this.client.settings)),
|
|
609
|
-
headers:
|
|
732
|
+
headers: {
|
|
733
|
+
...jsonContentHeaders,
|
|
734
|
+
...options?.headers
|
|
735
|
+
},
|
|
610
736
|
method: "PUT",
|
|
611
737
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam("aclId", request.aclId)}`,
|
|
612
738
|
signal: options?.signal
|
|
@@ -618,7 +744,10 @@ var API$1 = class extends API {
|
|
|
618
744
|
});
|
|
619
745
|
this.createCertificate = (request, options) => this.client.fetch({
|
|
620
746
|
body: JSON.stringify(marshalCreateCertificateRequest(request, this.client.settings)),
|
|
621
|
-
headers:
|
|
747
|
+
headers: {
|
|
748
|
+
...jsonContentHeaders,
|
|
749
|
+
...options?.headers
|
|
750
|
+
},
|
|
622
751
|
method: "POST",
|
|
623
752
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/certificates`,
|
|
624
753
|
signal: options?.signal
|
|
@@ -638,7 +767,10 @@ var API$1 = class extends API {
|
|
|
638
767
|
this.waitForCertificate = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
|
|
639
768
|
this.updateCertificate = (request, options) => this.client.fetch({
|
|
640
769
|
body: JSON.stringify(marshalUpdateCertificateRequest(request, this.client.settings)),
|
|
641
|
-
headers:
|
|
770
|
+
headers: {
|
|
771
|
+
...jsonContentHeaders,
|
|
772
|
+
...options?.headers
|
|
773
|
+
},
|
|
642
774
|
method: "PUT",
|
|
643
775
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam("certificateId", request.certificateId)}`,
|
|
644
776
|
signal: options?.signal
|
|
@@ -657,7 +789,10 @@ var API$1 = class extends API {
|
|
|
657
789
|
this.listLbTypes = (request = {}, options) => enrichForPagination("lbTypes", this.pageOfListLbTypes, request, options);
|
|
658
790
|
this.createSubscriber = (request, options) => this.client.fetch({
|
|
659
791
|
body: JSON.stringify(marshalCreateSubscriberRequest(request, this.client.settings)),
|
|
660
|
-
headers:
|
|
792
|
+
headers: {
|
|
793
|
+
...jsonContentHeaders,
|
|
794
|
+
...options?.headers
|
|
795
|
+
},
|
|
661
796
|
method: "POST",
|
|
662
797
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers`,
|
|
663
798
|
signal: options?.signal
|
|
@@ -676,7 +811,10 @@ var API$1 = class extends API {
|
|
|
676
811
|
this.listSubscriber = (request = {}, options) => enrichForPagination("subscribers", this.pageOfListSubscriber, request, options);
|
|
677
812
|
this.updateSubscriber = (request, options) => this.client.fetch({
|
|
678
813
|
body: JSON.stringify(marshalUpdateSubscriberRequest(request, this.client.settings)),
|
|
679
|
-
headers:
|
|
814
|
+
headers: {
|
|
815
|
+
...jsonContentHeaders,
|
|
816
|
+
...options?.headers
|
|
817
|
+
},
|
|
680
818
|
method: "PUT",
|
|
681
819
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam("subscriberId", request.subscriberId)}`,
|
|
682
820
|
signal: options?.signal
|
|
@@ -688,7 +826,10 @@ var API$1 = class extends API {
|
|
|
688
826
|
});
|
|
689
827
|
this.subscribeToLb = (request, options) => this.client.fetch({
|
|
690
828
|
body: JSON.stringify(marshalSubscribeToLbRequest(request, this.client.settings)),
|
|
691
|
-
headers:
|
|
829
|
+
headers: {
|
|
830
|
+
...jsonContentHeaders,
|
|
831
|
+
...options?.headers
|
|
832
|
+
},
|
|
692
833
|
method: "POST",
|
|
693
834
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam("lbId", request.lbId)}/subscribe`,
|
|
694
835
|
signal: options?.signal
|
|
@@ -707,14 +848,20 @@ var API$1 = class extends API {
|
|
|
707
848
|
this.listLbPrivateNetworks = (request, options) => enrichForPagination("privateNetwork", this.pageOfListLbPrivateNetworks, request, options);
|
|
708
849
|
this.attachPrivateNetwork = (request, options) => this.client.fetch({
|
|
709
850
|
body: JSON.stringify(marshalAttachPrivateNetworkRequest(request, this.client.settings)),
|
|
710
|
-
headers:
|
|
851
|
+
headers: {
|
|
852
|
+
...jsonContentHeaders,
|
|
853
|
+
...options?.headers
|
|
854
|
+
},
|
|
711
855
|
method: "POST",
|
|
712
856
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}/attach`,
|
|
713
857
|
signal: options?.signal
|
|
714
858
|
}, unmarshalPrivateNetwork);
|
|
715
859
|
this.detachPrivateNetwork = (request, options) => this.client.fetch({
|
|
716
860
|
body: "{}",
|
|
717
|
-
headers:
|
|
861
|
+
headers: {
|
|
862
|
+
...jsonContentHeaders,
|
|
863
|
+
...options?.headers
|
|
864
|
+
},
|
|
718
865
|
method: "POST",
|
|
719
866
|
path: `/lb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam("lbId", request.lbId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}/detach`,
|
|
720
867
|
signal: options?.signal
|
|
@@ -12,6 +12,7 @@ const unmarshalIp = (data) => {
|
|
|
12
12
|
projectId: data.project_id,
|
|
13
13
|
region: data.region,
|
|
14
14
|
reverse: data.reverse,
|
|
15
|
+
srn: data.srn,
|
|
15
16
|
tags: data.tags,
|
|
16
17
|
zone: data.zone
|
|
17
18
|
};
|
|
@@ -30,7 +31,9 @@ const unmarshalSubscriber = (data) => {
|
|
|
30
31
|
emailConfig: data.email_config ? unmarshalSubscriberEmailConfig(data.email_config) : void 0,
|
|
31
32
|
id: data.id,
|
|
32
33
|
name: data.name,
|
|
33
|
-
|
|
34
|
+
srn: data.srn,
|
|
35
|
+
webhookConfig: data.webhook_config ? unmarshalSubscriberWebhookConfig(data.webhook_config) : void 0,
|
|
36
|
+
zone: data.zone
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
39
|
const unmarshalHealthCheckHttpConfig = (data) => {
|
|
@@ -118,6 +121,7 @@ const unmarshalLb = (data) => {
|
|
|
118
121
|
projectId: data.project_id,
|
|
119
122
|
region: data.region,
|
|
120
123
|
routeCount: data.route_count,
|
|
124
|
+
srn: data.srn,
|
|
121
125
|
sslCompatibilityLevel: data.ssl_compatibility_level,
|
|
122
126
|
status: data.status,
|
|
123
127
|
subscriber: data.subscriber ? unmarshalSubscriber(data.subscriber) : void 0,
|
|
@@ -148,6 +152,7 @@ const unmarshalBackend = (data) => {
|
|
|
148
152
|
proxyProtocol: data.proxy_protocol,
|
|
149
153
|
redispatchAttemptCount: data.redispatch_attempt_count,
|
|
150
154
|
sendProxyV2: data.send_proxy_v2,
|
|
155
|
+
srn: data.srn,
|
|
151
156
|
sslBridging: data.ssl_bridging,
|
|
152
157
|
stickySessions: data.sticky_sessions,
|
|
153
158
|
stickySessionsCookieName: data.sticky_sessions_cookie_name,
|
|
@@ -155,7 +160,8 @@ const unmarshalBackend = (data) => {
|
|
|
155
160
|
timeoutQueue: data.timeout_queue,
|
|
156
161
|
timeoutServer: data.timeout_server,
|
|
157
162
|
timeoutTunnel: data.timeout_tunnel,
|
|
158
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
163
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
164
|
+
zone: data.zone
|
|
159
165
|
};
|
|
160
166
|
};
|
|
161
167
|
const unmarshalCertificate = (data) => {
|
|
@@ -169,11 +175,13 @@ const unmarshalCertificate = (data) => {
|
|
|
169
175
|
name: data.name,
|
|
170
176
|
notValidAfter: unmarshalDate(data.not_valid_after),
|
|
171
177
|
notValidBefore: unmarshalDate(data.not_valid_before),
|
|
178
|
+
srn: data.srn,
|
|
172
179
|
status: data.status,
|
|
173
180
|
statusDetails: data.status_details,
|
|
174
181
|
subjectAlternativeName: data.subject_alternative_name,
|
|
175
182
|
type: data.type,
|
|
176
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
183
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
184
|
+
zone: data.zone
|
|
177
185
|
};
|
|
178
186
|
};
|
|
179
187
|
const unmarshalFrontend = (data) => {
|
|
@@ -190,8 +198,10 @@ const unmarshalFrontend = (data) => {
|
|
|
190
198
|
inboundPort: data.inbound_port,
|
|
191
199
|
lb: data.lb ? unmarshalLb(data.lb) : void 0,
|
|
192
200
|
name: data.name,
|
|
201
|
+
srn: data.srn,
|
|
193
202
|
timeoutClient: data.timeout_client,
|
|
194
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
203
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
204
|
+
zone: data.zone
|
|
195
205
|
};
|
|
196
206
|
};
|
|
197
207
|
const unmarshalAclActionRedirect = (data) => {
|
|
@@ -231,7 +241,9 @@ const unmarshalAcl = (data) => {
|
|
|
231
241
|
index: data.index,
|
|
232
242
|
match: data.match ? unmarshalAclMatch(data.match) : void 0,
|
|
233
243
|
name: data.name,
|
|
234
|
-
|
|
244
|
+
srn: data.srn,
|
|
245
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
246
|
+
zone: data.zone
|
|
235
247
|
};
|
|
236
248
|
};
|
|
237
249
|
const unmarshalPrivateNetworkDHCPConfig = (data) => {
|
|
@@ -277,7 +289,9 @@ const unmarshalRoute = (data) => {
|
|
|
277
289
|
frontendId: data.frontend_id,
|
|
278
290
|
id: data.id,
|
|
279
291
|
match: data.match ? unmarshalRouteMatch(data.match) : void 0,
|
|
280
|
-
|
|
292
|
+
srn: data.srn,
|
|
293
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
294
|
+
zone: data.zone
|
|
281
295
|
};
|
|
282
296
|
};
|
|
283
297
|
const unmarshalBackendServerStats = (data) => {
|
|
@@ -352,6 +366,7 @@ const unmarshalLbType = (data) => {
|
|
|
352
366
|
multicloud: data.multicloud,
|
|
353
367
|
name: data.name,
|
|
354
368
|
region: data.region,
|
|
369
|
+
srn: data.srn,
|
|
355
370
|
stockStatus: data.stock_status,
|
|
356
371
|
zone: data.zone
|
|
357
372
|
};
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -163,6 +163,10 @@ export interface Ip {
|
|
|
163
163
|
* The zone the IP address is in.
|
|
164
164
|
*/
|
|
165
165
|
zone: Zone;
|
|
166
|
+
/**
|
|
167
|
+
* The SRN of the IP address.
|
|
168
|
+
*/
|
|
169
|
+
srn: string;
|
|
166
170
|
}
|
|
167
171
|
/**
|
|
168
172
|
* Subscriber.
|
|
@@ -188,6 +192,14 @@ export interface Subscriber {
|
|
|
188
192
|
* One-of ('config'): at most one of 'emailConfig', 'webhookConfig' could be set.
|
|
189
193
|
*/
|
|
190
194
|
webhookConfig?: SubscriberWebhookConfig;
|
|
195
|
+
/**
|
|
196
|
+
* The zone the subscriber is in.
|
|
197
|
+
*/
|
|
198
|
+
zone: Zone;
|
|
199
|
+
/**
|
|
200
|
+
* The SRN of the subscriber.
|
|
201
|
+
*/
|
|
202
|
+
srn: string;
|
|
191
203
|
}
|
|
192
204
|
export interface HealthCheck {
|
|
193
205
|
/**
|
|
@@ -338,6 +350,10 @@ export interface Lb {
|
|
|
338
350
|
* The zone the Load Balancer is in.
|
|
339
351
|
*/
|
|
340
352
|
zone: Zone;
|
|
353
|
+
/**
|
|
354
|
+
* The SRN of the Load Balancer.
|
|
355
|
+
*/
|
|
356
|
+
srn: string;
|
|
341
357
|
}
|
|
342
358
|
export interface AclActionRedirect {
|
|
343
359
|
/**
|
|
@@ -458,6 +474,14 @@ export interface Backend {
|
|
|
458
474
|
* When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames.
|
|
459
475
|
*/
|
|
460
476
|
host?: string;
|
|
477
|
+
/**
|
|
478
|
+
* The zone the backend is in.
|
|
479
|
+
*/
|
|
480
|
+
zone: Zone;
|
|
481
|
+
/**
|
|
482
|
+
* The SRN of the backend.
|
|
483
|
+
*/
|
|
484
|
+
srn: string;
|
|
461
485
|
}
|
|
462
486
|
export interface Certificate {
|
|
463
487
|
/**
|
|
@@ -512,6 +536,14 @@ export interface Certificate {
|
|
|
512
536
|
* Additional information about the certificate status (useful in case of certificate generation failure, for example).
|
|
513
537
|
*/
|
|
514
538
|
statusDetails?: string;
|
|
539
|
+
/**
|
|
540
|
+
* The zone the certificate is in.
|
|
541
|
+
*/
|
|
542
|
+
zone: Zone;
|
|
543
|
+
/**
|
|
544
|
+
* The SRN of the certificate.
|
|
545
|
+
*/
|
|
546
|
+
srn: string;
|
|
515
547
|
}
|
|
516
548
|
export interface AclAction {
|
|
517
549
|
/**
|
|
@@ -602,6 +634,14 @@ export interface Frontend {
|
|
|
602
634
|
* Defines whether to enable access logs on the frontend.
|
|
603
635
|
*/
|
|
604
636
|
enableAccessLogs: boolean;
|
|
637
|
+
/**
|
|
638
|
+
* The zone the frontend is in.
|
|
639
|
+
*/
|
|
640
|
+
zone: Zone;
|
|
641
|
+
/**
|
|
642
|
+
* The SRN of the frontend.
|
|
643
|
+
*/
|
|
644
|
+
srn: string;
|
|
605
645
|
}
|
|
606
646
|
export interface PrivateNetworkDHCPConfig {
|
|
607
647
|
/**
|
|
@@ -719,6 +759,14 @@ export interface Acl {
|
|
|
719
759
|
* ACL description.
|
|
720
760
|
*/
|
|
721
761
|
description: string;
|
|
762
|
+
/**
|
|
763
|
+
* The zone the ACL is in.
|
|
764
|
+
*/
|
|
765
|
+
zone: Zone;
|
|
766
|
+
/**
|
|
767
|
+
* The SRN of the ACL.
|
|
768
|
+
*/
|
|
769
|
+
srn: string;
|
|
722
770
|
}
|
|
723
771
|
export interface PrivateNetwork {
|
|
724
772
|
/**
|
|
@@ -793,6 +841,10 @@ export interface LbType {
|
|
|
793
841
|
* The zone the Load Balancer stock is in.
|
|
794
842
|
*/
|
|
795
843
|
zone: Zone;
|
|
844
|
+
/**
|
|
845
|
+
* The SRN of the Load Balancer offer type.
|
|
846
|
+
*/
|
|
847
|
+
srn: string;
|
|
796
848
|
}
|
|
797
849
|
export interface Route {
|
|
798
850
|
/**
|
|
@@ -819,6 +871,14 @@ export interface Route {
|
|
|
819
871
|
* Date on which the route was last updated.
|
|
820
872
|
*/
|
|
821
873
|
updatedAt?: Date;
|
|
874
|
+
/**
|
|
875
|
+
* The zone the route is in.
|
|
876
|
+
*/
|
|
877
|
+
zone: Zone;
|
|
878
|
+
/**
|
|
879
|
+
* The SRN of the route.
|
|
880
|
+
*/
|
|
881
|
+
srn: string;
|
|
822
882
|
}
|
|
823
883
|
export interface AclSpec {
|
|
824
884
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-lb",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
4
4
|
"description": "Scaleway SDK lb",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.9.
|
|
36
|
+
"@scaleway/sdk-std": "2.9.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@repo/configs": "^0.1.1",
|
|
40
|
-
"@scaleway/sdk-client": "^2.
|
|
40
|
+
"@scaleway/sdk-client": "^2.16.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@scaleway/sdk-client": "^2.
|
|
43
|
+
"@scaleway/sdk-client": "^2.16.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"package:check": "pnpm publint",
|