@scaleway/sdk-vpcgw 2.5.0 → 2.6.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/.vite/license.md +3 -0
- package/dist/metadata.gen.d.ts +6 -6
- package/dist/metadata.gen.js +6 -2
- package/dist/v1/api.gen.d.ts +2 -2
- package/dist/v1/api.gen.js +216 -480
- package/dist/v1/content.gen.js +2 -2
- package/dist/v1/marshalling.gen.js +36 -36
- package/dist/v1/metadata.gen.js +1 -1
- package/dist/v2/api.gen.d.ts +2 -2
- package/dist/v2/api.gen.js +161 -333
- package/dist/v2/content.gen.js +2 -2
- package/dist/v2/marshalling.gen.js +26 -26
- package/dist/v2/metadata.gen.js +1 -1
- package/package.json +8 -6
- package/LICENSE +0 -191
- package/dist/metadata.gen.json +0 -6
- package/dist/metadata2.gen.js +0 -8
package/dist/v1/api.gen.js
CHANGED
|
@@ -2,492 +2,228 @@ import { GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES } from "
|
|
|
2
2
|
import { marshalCreateDHCPEntryRequest, marshalCreateDHCPRequest, marshalCreateGatewayNetworkRequest, marshalCreateGatewayRequest, marshalCreateIPRequest, marshalCreatePATRuleRequest, marshalSetDHCPEntriesRequest, marshalSetPATRulesRequest, marshalUpdateDHCPEntryRequest, marshalUpdateDHCPRequest, marshalUpdateGatewayNetworkRequest, marshalUpdateGatewayRequest, marshalUpdateIPRequest, marshalUpdatePATRuleRequest, marshalUpgradeGatewayRequest, unmarshalDHCP, unmarshalDHCPEntry, unmarshalGateway, unmarshalGatewayNetwork, unmarshalIP, unmarshalListDHCPEntriesResponse, unmarshalListDHCPsResponse, unmarshalListGatewayNetworksResponse, unmarshalListGatewayTypesResponse, unmarshalListGatewaysResponse, unmarshalListIPsResponse, unmarshalListPATRulesResponse, unmarshalPATRule, unmarshalSetDHCPEntriesResponse, unmarshalSetPATRulesResponse } from "./marshalling.gen.js";
|
|
3
3
|
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
4
|
//#region src/v1/api.gen.ts
|
|
5
|
-
|
|
5
|
+
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
6
6
|
/**
|
|
7
7
|
* Public Gateways API.
|
|
8
8
|
|
|
9
9
|
This API allows you to manage your Public Gateways.
|
|
10
10
|
*/
|
|
11
11
|
var API = class extends API$1 {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
* Update a DHCP configuration. Update a DHCP configuration object, identified by its DHCP ID.
|
|
228
|
-
*
|
|
229
|
-
* @deprecated
|
|
230
|
-
* @param request - The request {@link UpdateDHCPRequest}
|
|
231
|
-
* @returns A Promise of DHCP
|
|
232
|
-
*/
|
|
233
|
-
updateDHCP = (request) => this.client.fetch({
|
|
234
|
-
body: JSON.stringify(marshalUpdateDHCPRequest(request, this.client.settings)),
|
|
235
|
-
headers: jsonContentHeaders,
|
|
236
|
-
method: "PATCH",
|
|
237
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam("dhcpId", request.dhcpId)}`
|
|
238
|
-
}, unmarshalDHCP);
|
|
239
|
-
/**
|
|
240
|
-
* Delete a DHCP configuration. Delete a DHCP configuration object, identified by its DHCP ID. Note that you cannot delete a DHCP configuration object that is currently being used by a Gateway Network.
|
|
241
|
-
*
|
|
242
|
-
* @deprecated
|
|
243
|
-
* @param request - The request {@link DeleteDHCPRequest}
|
|
244
|
-
*/
|
|
245
|
-
deleteDHCP = (request) => this.client.fetch({
|
|
246
|
-
method: "DELETE",
|
|
247
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam("dhcpId", request.dhcpId)}`
|
|
248
|
-
});
|
|
249
|
-
pageOfListDHCPEntries = (request = {}) => this.client.fetch({
|
|
250
|
-
method: "GET",
|
|
251
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`,
|
|
252
|
-
urlParams: urlParams(["gateway_network_id", request.gatewayNetworkId], ["hostname", request.hostname], ["ip_address", request.ipAddress], ["mac_address", request.macAddress], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["type", request.type])
|
|
253
|
-
}, unmarshalListDHCPEntriesResponse);
|
|
254
|
-
/**
|
|
255
|
-
* List DHCP entries. List DHCP entries, whether dynamically assigned and/or statically reserved. DHCP entries can be filtered by the Gateway Network they are on, their MAC address, IP address, type or hostname.
|
|
256
|
-
*
|
|
257
|
-
* @deprecated
|
|
258
|
-
* @param request - The request {@link ListDHCPEntriesRequest}
|
|
259
|
-
* @returns A Promise of ListDHCPEntriesResponse
|
|
260
|
-
*/
|
|
261
|
-
listDHCPEntries = (request = {}) => enrichForPagination("dhcpEntries", this.pageOfListDHCPEntries, request);
|
|
262
|
-
/**
|
|
263
|
-
* Get a DHCP entry. Get a DHCP entry, specified by its DHCP entry ID.
|
|
264
|
-
*
|
|
265
|
-
* @deprecated
|
|
266
|
-
* @param request - The request {@link GetDHCPEntryRequest}
|
|
267
|
-
* @returns A Promise of DHCPEntry
|
|
268
|
-
*/
|
|
269
|
-
getDHCPEntry = (request) => this.client.fetch({
|
|
270
|
-
method: "GET",
|
|
271
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
272
|
-
}, unmarshalDHCPEntry);
|
|
273
|
-
/**
|
|
274
|
-
* Create a DHCP entry. Create a static DHCP reservation, specifying the Gateway Network for the reservation, the MAC address of the target device and the IP address to assign this device. The response is a DHCP entry object, confirming the ID and configuration details of the static DHCP reservation.
|
|
275
|
-
*
|
|
276
|
-
* @deprecated
|
|
277
|
-
* @param request - The request {@link CreateDHCPEntryRequest}
|
|
278
|
-
* @returns A Promise of DHCPEntry
|
|
279
|
-
*/
|
|
280
|
-
createDHCPEntry = (request) => this.client.fetch({
|
|
281
|
-
body: JSON.stringify(marshalCreateDHCPEntryRequest(request, this.client.settings)),
|
|
282
|
-
headers: jsonContentHeaders,
|
|
283
|
-
method: "POST",
|
|
284
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`
|
|
285
|
-
}, unmarshalDHCPEntry);
|
|
286
|
-
/**
|
|
287
|
-
* Update a DHCP entry. Update the IP address for a DHCP entry, specified by its DHCP entry ID. You can update an existing DHCP entry of any type (`reservation` (static), `lease` (dynamic) or `unknown`), but in manually updating the IP address the entry will necessarily be of type `reservation` after the update.
|
|
288
|
-
*
|
|
289
|
-
* @deprecated
|
|
290
|
-
* @param request - The request {@link UpdateDHCPEntryRequest}
|
|
291
|
-
* @returns A Promise of DHCPEntry
|
|
292
|
-
*/
|
|
293
|
-
updateDHCPEntry = (request) => this.client.fetch({
|
|
294
|
-
body: JSON.stringify(marshalUpdateDHCPEntryRequest(request, this.client.settings)),
|
|
295
|
-
headers: jsonContentHeaders,
|
|
296
|
-
method: "PATCH",
|
|
297
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
298
|
-
}, unmarshalDHCPEntry);
|
|
299
|
-
/**
|
|
300
|
-
* Set all DHCP reservations on a Gateway Network. Set the list of DHCP reservations attached to a Gateway Network. Reservations are identified by their MAC address, and will sync the current DHCP entry list to the given list, creating, updating or deleting DHCP entries accordingly.
|
|
301
|
-
*
|
|
302
|
-
* @deprecated
|
|
303
|
-
* @param request - The request {@link SetDHCPEntriesRequest}
|
|
304
|
-
* @returns A Promise of SetDHCPEntriesResponse
|
|
305
|
-
*/
|
|
306
|
-
setDHCPEntries = (request) => this.client.fetch({
|
|
307
|
-
body: JSON.stringify(marshalSetDHCPEntriesRequest(request, this.client.settings)),
|
|
308
|
-
headers: jsonContentHeaders,
|
|
309
|
-
method: "PUT",
|
|
310
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`
|
|
311
|
-
}, unmarshalSetDHCPEntriesResponse);
|
|
312
|
-
/**
|
|
313
|
-
* Delete a DHCP entry. Delete a static DHCP reservation, identified by its DHCP entry ID. Note that you cannot delete DHCP entries of type `lease`, these are deleted automatically when their time-to-live expires.
|
|
314
|
-
*
|
|
315
|
-
* @deprecated
|
|
316
|
-
* @param request - The request {@link DeleteDHCPEntryRequest}
|
|
317
|
-
*/
|
|
318
|
-
deleteDHCPEntry = (request) => this.client.fetch({
|
|
319
|
-
method: "DELETE",
|
|
320
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
321
|
-
});
|
|
322
|
-
pageOfListPATRules = (request = {}) => this.client.fetch({
|
|
323
|
-
method: "GET",
|
|
324
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`,
|
|
325
|
-
urlParams: urlParams(["gateway_id", request.gatewayId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_ip", request.privateIp], ["protocol", request.protocol])
|
|
326
|
-
}, unmarshalListPATRulesResponse);
|
|
327
|
-
/**
|
|
328
|
-
* List PAT rules. List PAT rules. You can filter by gateway ID to list all PAT rules for a particular gateway, or filter for PAT rules targeting a specific IP address or using a specific protocol.
|
|
329
|
-
*
|
|
330
|
-
* @deprecated
|
|
331
|
-
* @param request - The request {@link ListPATRulesRequest}
|
|
332
|
-
* @returns A Promise of ListPATRulesResponse
|
|
333
|
-
*/
|
|
334
|
-
listPATRules = (request = {}) => enrichForPagination("patRules", this.pageOfListPATRules, request);
|
|
335
|
-
/**
|
|
336
|
-
* Get a PAT rule. Get a PAT rule, specified by its PAT rule ID. The response object gives full details of the PAT rule, including the Public Gateway it belongs to and the configuration settings in terms of public / private ports, private IP and protocol.
|
|
337
|
-
*
|
|
338
|
-
* @deprecated
|
|
339
|
-
* @param request - The request {@link GetPATRuleRequest}
|
|
340
|
-
* @returns A Promise of PATRule
|
|
341
|
-
*/
|
|
342
|
-
getPATRule = (request) => this.client.fetch({
|
|
343
|
-
method: "GET",
|
|
344
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
345
|
-
}, unmarshalPATRule);
|
|
346
|
-
/**
|
|
347
|
-
* Create a PAT rule. Create a new PAT rule on a specified Public Gateway, defining the protocol to use, public port to listen on, and private port / IP address to map to.
|
|
348
|
-
*
|
|
349
|
-
* @deprecated
|
|
350
|
-
* @param request - The request {@link CreatePATRuleRequest}
|
|
351
|
-
* @returns A Promise of PATRule
|
|
352
|
-
*/
|
|
353
|
-
createPATRule = (request) => this.client.fetch({
|
|
354
|
-
body: JSON.stringify(marshalCreatePATRuleRequest(request, this.client.settings)),
|
|
355
|
-
headers: jsonContentHeaders,
|
|
356
|
-
method: "POST",
|
|
357
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`
|
|
358
|
-
}, unmarshalPATRule);
|
|
359
|
-
/**
|
|
360
|
-
* Update a PAT rule. Update a PAT rule, specified by its PAT rule ID. Configuration settings including private/public port, private IP address and protocol can all be updated.
|
|
361
|
-
*
|
|
362
|
-
* @deprecated
|
|
363
|
-
* @param request - The request {@link UpdatePATRuleRequest}
|
|
364
|
-
* @returns A Promise of PATRule
|
|
365
|
-
*/
|
|
366
|
-
updatePATRule = (request) => this.client.fetch({
|
|
367
|
-
body: JSON.stringify(marshalUpdatePATRuleRequest(request, this.client.settings)),
|
|
368
|
-
headers: jsonContentHeaders,
|
|
369
|
-
method: "PATCH",
|
|
370
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
371
|
-
}, unmarshalPATRule);
|
|
372
|
-
/**
|
|
373
|
-
* Set all PAT rules. Set a definitive list of PAT rules attached to a Public Gateway. Each rule is identified by its public port and protocol. This will sync the current PAT rule list on the gateway with the new list, creating, updating or deleting PAT rules accordingly.
|
|
374
|
-
*
|
|
375
|
-
* @deprecated
|
|
376
|
-
* @param request - The request {@link SetPATRulesRequest}
|
|
377
|
-
* @returns A Promise of SetPATRulesResponse
|
|
378
|
-
*/
|
|
379
|
-
setPATRules = (request) => this.client.fetch({
|
|
380
|
-
body: JSON.stringify(marshalSetPATRulesRequest(request, this.client.settings)),
|
|
381
|
-
headers: jsonContentHeaders,
|
|
382
|
-
method: "PUT",
|
|
383
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`
|
|
384
|
-
}, unmarshalSetPATRulesResponse);
|
|
385
|
-
/**
|
|
386
|
-
* Delete a PAT rule. Delete a PAT rule, identified by its PAT rule ID. This action is irreversible.
|
|
387
|
-
*
|
|
388
|
-
* @deprecated
|
|
389
|
-
* @param request - The request {@link DeletePATRuleRequest}
|
|
390
|
-
*/
|
|
391
|
-
deletePATRule = (request) => this.client.fetch({
|
|
392
|
-
method: "DELETE",
|
|
393
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
394
|
-
});
|
|
395
|
-
/**
|
|
396
|
-
* List Public Gateway types. List the different Public Gateway commercial offer types available at Scaleway. The response is an array of objects describing the name and technical details of each available gateway type.
|
|
397
|
-
*
|
|
398
|
-
* @deprecated
|
|
399
|
-
* @param request - The request {@link ListGatewayTypesRequest}
|
|
400
|
-
* @returns A Promise of ListGatewayTypesResponse
|
|
401
|
-
*/
|
|
402
|
-
listGatewayTypes = (request = {}) => this.client.fetch({
|
|
403
|
-
method: "GET",
|
|
404
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-types`
|
|
405
|
-
}, unmarshalListGatewayTypesResponse);
|
|
406
|
-
pageOfListIPs = (request = {}) => this.client.fetch({
|
|
407
|
-
method: "GET",
|
|
408
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
409
|
-
urlParams: urlParams(["is_free", request.isFree], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["reverse", request.reverse], ["tags", request.tags])
|
|
410
|
-
}, unmarshalListIPsResponse);
|
|
411
|
-
/**
|
|
412
|
-
* List IPs. List Public Gateway flexible IP addresses. A number of filter options are available for limiting results in the response.
|
|
413
|
-
*
|
|
414
|
-
* @deprecated
|
|
415
|
-
* @param request - The request {@link ListIPsRequest}
|
|
416
|
-
* @returns A Promise of ListIPsResponse
|
|
417
|
-
*/
|
|
418
|
-
listIPs = (request = {}) => enrichForPagination("ips", this.pageOfListIPs, request);
|
|
419
|
-
/**
|
|
420
|
-
* Get an IP. Get details of a Public Gateway flexible IP address, identified by its IP ID. The response object contains information including which (if any) Public Gateway using this IP address, the reverse and various other metadata.
|
|
421
|
-
*
|
|
422
|
-
* @deprecated
|
|
423
|
-
* @param request - The request {@link GetIPRequest}
|
|
424
|
-
* @returns A Promise of IP
|
|
425
|
-
*/
|
|
426
|
-
getIP = (request) => this.client.fetch({
|
|
427
|
-
method: "GET",
|
|
428
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
429
|
-
}, unmarshalIP);
|
|
430
|
-
/**
|
|
431
|
-
* Reserve an IP. Create (reserve) a new flexible IP address that can be used for a Public Gateway in a specified Scaleway Project.
|
|
432
|
-
*
|
|
433
|
-
* @deprecated
|
|
434
|
-
* @param request - The request {@link CreateIPRequest}
|
|
435
|
-
* @returns A Promise of IP
|
|
436
|
-
*/
|
|
437
|
-
createIP = (request = {}) => this.client.fetch({
|
|
438
|
-
body: JSON.stringify(marshalCreateIPRequest(request, this.client.settings)),
|
|
439
|
-
headers: jsonContentHeaders,
|
|
440
|
-
method: "POST",
|
|
441
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
442
|
-
}, unmarshalIP);
|
|
443
|
-
/**
|
|
444
|
-
* Update an IP. Update details of an existing flexible IP address, including its tags, reverse and the Public Gateway it is assigned to.
|
|
445
|
-
*
|
|
446
|
-
* @deprecated
|
|
447
|
-
* @param request - The request {@link UpdateIPRequest}
|
|
448
|
-
* @returns A Promise of IP
|
|
449
|
-
*/
|
|
450
|
-
updateIP = (request) => this.client.fetch({
|
|
451
|
-
body: JSON.stringify(marshalUpdateIPRequest(request, this.client.settings)),
|
|
452
|
-
headers: jsonContentHeaders,
|
|
453
|
-
method: "PATCH",
|
|
454
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
455
|
-
}, unmarshalIP);
|
|
456
|
-
/**
|
|
457
|
-
* Delete an IP. Delete a flexible IP address from your account. This action is irreversible.
|
|
458
|
-
*
|
|
459
|
-
* @deprecated
|
|
460
|
-
* @param request - The request {@link DeleteIPRequest}
|
|
461
|
-
*/
|
|
462
|
-
deleteIP = (request) => this.client.fetch({
|
|
463
|
-
method: "DELETE",
|
|
464
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
465
|
-
});
|
|
466
|
-
/**
|
|
467
|
-
* Refresh a Public Gateway's SSH keys. Refresh the SSH keys of a given Public Gateway, specified by its gateway ID. This adds any new SSH keys in the gateway's Scaleway Project to the gateway itself.
|
|
468
|
-
*
|
|
469
|
-
* @deprecated
|
|
470
|
-
* @param request - The request {@link RefreshSSHKeysRequest}
|
|
471
|
-
* @returns A Promise of Gateway
|
|
472
|
-
*/
|
|
473
|
-
refreshSSHKeys = (request) => this.client.fetch({
|
|
474
|
-
body: "{}",
|
|
475
|
-
headers: jsonContentHeaders,
|
|
476
|
-
method: "POST",
|
|
477
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/refresh-ssh-keys`
|
|
478
|
-
}, unmarshalGateway);
|
|
479
|
-
/**
|
|
480
|
-
* Put a Public Gateway in IPAM mode. Put a Public Gateway in IPAM mode, so that it can be used with the Public Gateways API v2. This call is idempotent.
|
|
481
|
-
*
|
|
482
|
-
* @deprecated
|
|
483
|
-
* @param request - The request {@link MigrateToV2Request}
|
|
484
|
-
*/
|
|
485
|
-
migrateToV2 = (request) => this.client.fetch({
|
|
486
|
-
body: "{}",
|
|
487
|
-
headers: jsonContentHeaders,
|
|
488
|
-
method: "POST",
|
|
489
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/migrate-to-v2`
|
|
490
|
-
});
|
|
12
|
+
constructor(..._args) {
|
|
13
|
+
super(..._args);
|
|
14
|
+
this.pageOfListGateways = (request = {}) => this.client.fetch({
|
|
15
|
+
method: "GET",
|
|
16
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways`,
|
|
17
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_network_id", request.privateNetworkId], ["project_id", request.projectId], ["status", request.status], ["tags", request.tags], ["type", request.type])
|
|
18
|
+
}, unmarshalListGatewaysResponse);
|
|
19
|
+
this.listGateways = (request = {}) => enrichForPagination("gateways", this.pageOfListGateways, request);
|
|
20
|
+
this.getGateway = (request) => this.client.fetch({
|
|
21
|
+
method: "GET",
|
|
22
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
23
|
+
}, unmarshalGateway);
|
|
24
|
+
this.waitForGateway = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!GATEWAY_TRANSIENT_STATUSES.includes(res.status))), this.getGateway, request, options);
|
|
25
|
+
this.createGateway = (request) => this.client.fetch({
|
|
26
|
+
body: JSON.stringify(marshalCreateGatewayRequest(request, this.client.settings)),
|
|
27
|
+
headers: jsonContentHeaders,
|
|
28
|
+
method: "POST",
|
|
29
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways`
|
|
30
|
+
}, unmarshalGateway);
|
|
31
|
+
this.updateGateway = (request) => this.client.fetch({
|
|
32
|
+
body: JSON.stringify(marshalUpdateGatewayRequest(request, this.client.settings)),
|
|
33
|
+
headers: jsonContentHeaders,
|
|
34
|
+
method: "PATCH",
|
|
35
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
36
|
+
}, unmarshalGateway);
|
|
37
|
+
this.deleteGateway = (request) => this.client.fetch({
|
|
38
|
+
method: "DELETE",
|
|
39
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}`,
|
|
40
|
+
urlParams: urlParams(["cleanup_dhcp", request.cleanupDhcp])
|
|
41
|
+
});
|
|
42
|
+
this.upgradeGateway = (request) => this.client.fetch({
|
|
43
|
+
body: JSON.stringify(marshalUpgradeGatewayRequest(request, this.client.settings)),
|
|
44
|
+
headers: jsonContentHeaders,
|
|
45
|
+
method: "POST",
|
|
46
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/upgrade`
|
|
47
|
+
}, unmarshalGateway);
|
|
48
|
+
this.enableIPMobility = (request) => this.client.fetch({
|
|
49
|
+
body: "{}",
|
|
50
|
+
headers: jsonContentHeaders,
|
|
51
|
+
method: "POST",
|
|
52
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/enable-ip-mobility`
|
|
53
|
+
});
|
|
54
|
+
this.pageOfListGatewayNetworks = (request = {}) => this.client.fetch({
|
|
55
|
+
method: "GET",
|
|
56
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks`,
|
|
57
|
+
urlParams: urlParams(["dhcp_id", request.dhcpId], ["enable_masquerade", request.enableMasquerade], ["gateway_id", request.gatewayId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_network_id", request.privateNetworkId], ["status", request.status])
|
|
58
|
+
}, unmarshalListGatewayNetworksResponse);
|
|
59
|
+
this.listGatewayNetworks = (request = {}) => enrichForPagination("gatewayNetworks", this.pageOfListGatewayNetworks, request);
|
|
60
|
+
this.getGatewayNetwork = (request) => this.client.fetch({
|
|
61
|
+
method: "GET",
|
|
62
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`
|
|
63
|
+
}, unmarshalGatewayNetwork);
|
|
64
|
+
this.waitForGatewayNetwork = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!GATEWAY_NETWORK_TRANSIENT_STATUSES.includes(res.status))), this.getGatewayNetwork, request, options);
|
|
65
|
+
this.createGatewayNetwork = (request) => this.client.fetch({
|
|
66
|
+
body: JSON.stringify(marshalCreateGatewayNetworkRequest(request, this.client.settings)),
|
|
67
|
+
headers: jsonContentHeaders,
|
|
68
|
+
method: "POST",
|
|
69
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks`
|
|
70
|
+
}, unmarshalGatewayNetwork);
|
|
71
|
+
this.updateGatewayNetwork = (request) => this.client.fetch({
|
|
72
|
+
body: JSON.stringify(marshalUpdateGatewayNetworkRequest(request, this.client.settings)),
|
|
73
|
+
headers: jsonContentHeaders,
|
|
74
|
+
method: "PATCH",
|
|
75
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`
|
|
76
|
+
}, unmarshalGatewayNetwork);
|
|
77
|
+
this.deleteGatewayNetwork = (request) => this.client.fetch({
|
|
78
|
+
method: "DELETE",
|
|
79
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`,
|
|
80
|
+
urlParams: urlParams(["cleanup_dhcp", request.cleanupDhcp])
|
|
81
|
+
});
|
|
82
|
+
this.pageOfListDHCPs = (request = {}) => this.client.fetch({
|
|
83
|
+
method: "GET",
|
|
84
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps`,
|
|
85
|
+
urlParams: urlParams(["address", request.address], ["has_address", request.hasAddress], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
|
|
86
|
+
}, unmarshalListDHCPsResponse);
|
|
87
|
+
this.listDHCPs = (request = {}) => enrichForPagination("dhcps", this.pageOfListDHCPs, request);
|
|
88
|
+
this.getDHCP = (request) => this.client.fetch({
|
|
89
|
+
method: "GET",
|
|
90
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam("dhcpId", request.dhcpId)}`
|
|
91
|
+
}, unmarshalDHCP);
|
|
92
|
+
this.createDHCP = (request) => this.client.fetch({
|
|
93
|
+
body: JSON.stringify(marshalCreateDHCPRequest(request, this.client.settings)),
|
|
94
|
+
headers: jsonContentHeaders,
|
|
95
|
+
method: "POST",
|
|
96
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps`
|
|
97
|
+
}, unmarshalDHCP);
|
|
98
|
+
this.updateDHCP = (request) => this.client.fetch({
|
|
99
|
+
body: JSON.stringify(marshalUpdateDHCPRequest(request, this.client.settings)),
|
|
100
|
+
headers: jsonContentHeaders,
|
|
101
|
+
method: "PATCH",
|
|
102
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam("dhcpId", request.dhcpId)}`
|
|
103
|
+
}, unmarshalDHCP);
|
|
104
|
+
this.deleteDHCP = (request) => this.client.fetch({
|
|
105
|
+
method: "DELETE",
|
|
106
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam("dhcpId", request.dhcpId)}`
|
|
107
|
+
});
|
|
108
|
+
this.pageOfListDHCPEntries = (request = {}) => this.client.fetch({
|
|
109
|
+
method: "GET",
|
|
110
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`,
|
|
111
|
+
urlParams: urlParams(["gateway_network_id", request.gatewayNetworkId], ["hostname", request.hostname], ["ip_address", request.ipAddress], ["mac_address", request.macAddress], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["type", request.type])
|
|
112
|
+
}, unmarshalListDHCPEntriesResponse);
|
|
113
|
+
this.listDHCPEntries = (request = {}) => enrichForPagination("dhcpEntries", this.pageOfListDHCPEntries, request);
|
|
114
|
+
this.getDHCPEntry = (request) => this.client.fetch({
|
|
115
|
+
method: "GET",
|
|
116
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
117
|
+
}, unmarshalDHCPEntry);
|
|
118
|
+
this.createDHCPEntry = (request) => this.client.fetch({
|
|
119
|
+
body: JSON.stringify(marshalCreateDHCPEntryRequest(request, this.client.settings)),
|
|
120
|
+
headers: jsonContentHeaders,
|
|
121
|
+
method: "POST",
|
|
122
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`
|
|
123
|
+
}, unmarshalDHCPEntry);
|
|
124
|
+
this.updateDHCPEntry = (request) => this.client.fetch({
|
|
125
|
+
body: JSON.stringify(marshalUpdateDHCPEntryRequest(request, this.client.settings)),
|
|
126
|
+
headers: jsonContentHeaders,
|
|
127
|
+
method: "PATCH",
|
|
128
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
129
|
+
}, unmarshalDHCPEntry);
|
|
130
|
+
this.setDHCPEntries = (request) => this.client.fetch({
|
|
131
|
+
body: JSON.stringify(marshalSetDHCPEntriesRequest(request, this.client.settings)),
|
|
132
|
+
headers: jsonContentHeaders,
|
|
133
|
+
method: "PUT",
|
|
134
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`
|
|
135
|
+
}, unmarshalSetDHCPEntriesResponse);
|
|
136
|
+
this.deleteDHCPEntry = (request) => this.client.fetch({
|
|
137
|
+
method: "DELETE",
|
|
138
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
139
|
+
});
|
|
140
|
+
this.pageOfListPATRules = (request = {}) => this.client.fetch({
|
|
141
|
+
method: "GET",
|
|
142
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`,
|
|
143
|
+
urlParams: urlParams(["gateway_id", request.gatewayId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_ip", request.privateIp], ["protocol", request.protocol])
|
|
144
|
+
}, unmarshalListPATRulesResponse);
|
|
145
|
+
this.listPATRules = (request = {}) => enrichForPagination("patRules", this.pageOfListPATRules, request);
|
|
146
|
+
this.getPATRule = (request) => this.client.fetch({
|
|
147
|
+
method: "GET",
|
|
148
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
149
|
+
}, unmarshalPATRule);
|
|
150
|
+
this.createPATRule = (request) => this.client.fetch({
|
|
151
|
+
body: JSON.stringify(marshalCreatePATRuleRequest(request, this.client.settings)),
|
|
152
|
+
headers: jsonContentHeaders,
|
|
153
|
+
method: "POST",
|
|
154
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`
|
|
155
|
+
}, unmarshalPATRule);
|
|
156
|
+
this.updatePATRule = (request) => this.client.fetch({
|
|
157
|
+
body: JSON.stringify(marshalUpdatePATRuleRequest(request, this.client.settings)),
|
|
158
|
+
headers: jsonContentHeaders,
|
|
159
|
+
method: "PATCH",
|
|
160
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
161
|
+
}, unmarshalPATRule);
|
|
162
|
+
this.setPATRules = (request) => this.client.fetch({
|
|
163
|
+
body: JSON.stringify(marshalSetPATRulesRequest(request, this.client.settings)),
|
|
164
|
+
headers: jsonContentHeaders,
|
|
165
|
+
method: "PUT",
|
|
166
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`
|
|
167
|
+
}, unmarshalSetPATRulesResponse);
|
|
168
|
+
this.deletePATRule = (request) => this.client.fetch({
|
|
169
|
+
method: "DELETE",
|
|
170
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
171
|
+
});
|
|
172
|
+
this.listGatewayTypes = (request = {}) => this.client.fetch({
|
|
173
|
+
method: "GET",
|
|
174
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-types`
|
|
175
|
+
}, unmarshalListGatewayTypesResponse);
|
|
176
|
+
this.pageOfListIPs = (request = {}) => this.client.fetch({
|
|
177
|
+
method: "GET",
|
|
178
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
179
|
+
urlParams: urlParams(["is_free", request.isFree], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["reverse", request.reverse], ["tags", request.tags])
|
|
180
|
+
}, unmarshalListIPsResponse);
|
|
181
|
+
this.listIPs = (request = {}) => enrichForPagination("ips", this.pageOfListIPs, request);
|
|
182
|
+
this.getIP = (request) => this.client.fetch({
|
|
183
|
+
method: "GET",
|
|
184
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
185
|
+
}, unmarshalIP);
|
|
186
|
+
this.createIP = (request = {}) => this.client.fetch({
|
|
187
|
+
body: JSON.stringify(marshalCreateIPRequest(request, this.client.settings)),
|
|
188
|
+
headers: jsonContentHeaders,
|
|
189
|
+
method: "POST",
|
|
190
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
191
|
+
}, unmarshalIP);
|
|
192
|
+
this.updateIP = (request) => this.client.fetch({
|
|
193
|
+
body: JSON.stringify(marshalUpdateIPRequest(request, this.client.settings)),
|
|
194
|
+
headers: jsonContentHeaders,
|
|
195
|
+
method: "PATCH",
|
|
196
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
197
|
+
}, unmarshalIP);
|
|
198
|
+
this.deleteIP = (request) => this.client.fetch({
|
|
199
|
+
method: "DELETE",
|
|
200
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
201
|
+
});
|
|
202
|
+
this.refreshSSHKeys = (request) => this.client.fetch({
|
|
203
|
+
body: "{}",
|
|
204
|
+
headers: jsonContentHeaders,
|
|
205
|
+
method: "POST",
|
|
206
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/refresh-ssh-keys`
|
|
207
|
+
}, unmarshalGateway);
|
|
208
|
+
this.migrateToV2 = (request) => this.client.fetch({
|
|
209
|
+
body: "{}",
|
|
210
|
+
headers: jsonContentHeaders,
|
|
211
|
+
method: "POST",
|
|
212
|
+
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/migrate-to-v2`
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
static {
|
|
216
|
+
this.LOCALITY = toApiLocality({ zones: [
|
|
217
|
+
"fr-par-1",
|
|
218
|
+
"fr-par-2",
|
|
219
|
+
"nl-ams-1",
|
|
220
|
+
"nl-ams-2",
|
|
221
|
+
"nl-ams-3",
|
|
222
|
+
"pl-waw-1",
|
|
223
|
+
"pl-waw-2",
|
|
224
|
+
"pl-waw-3"
|
|
225
|
+
] });
|
|
226
|
+
}
|
|
491
227
|
};
|
|
492
228
|
//#endregion
|
|
493
229
|
export { API };
|