@scaleway/sdk-s2s-vpn 2.5.0 → 2.5.2
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/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1alpha1/api.gen.js +5 -3
- package/dist/v1alpha1/content.gen.js +3 -1
- package/dist/v1alpha1/index.gen.js +3 -1
- package/dist/v1alpha1/marshalling.gen.js +23 -21
- package/dist/v1alpha1/types.gen.js +0 -0
- package/dist/v1alpha1/validation-rules.gen.js +18 -16
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __exportAll = (all, no_symbols) => {
|
|
3
4
|
let target = {};
|
|
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
|
|
|
8
9
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
10
|
return target;
|
|
10
11
|
};
|
|
12
|
+
//#endregion
|
|
11
13
|
export { __exportAll };
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { VPN_GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalConnection, unmarshalCreateConnectionResponse, unmarshalCustomerGateway, unmarshalListConnectionsResponse, unmarshalListCustomerGatewaysResponse, unmarshalListRoutingPoliciesResponse, unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
3
|
+
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1alpha1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* Site-to-Site VPN.
|
|
7
8
|
|
|
8
9
|
This API allows you to manage your Site-to-Site VPN.
|
|
9
10
|
*/
|
|
10
|
-
var API
|
|
11
|
+
var API = class extends API$1 {
|
|
11
12
|
/**
|
|
12
13
|
* Locality of this API.
|
|
13
14
|
* type ∈ {'zone','region','global','unspecified'}
|
|
@@ -319,4 +320,5 @@ var API$1 = class extends API {
|
|
|
319
320
|
path: `/s2s-vpn/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routing-policies/${validatePathParam("routingPolicyId", request.routingPolicyId)}`
|
|
320
321
|
});
|
|
321
322
|
};
|
|
322
|
-
|
|
323
|
+
//#endregion
|
|
324
|
+
export { API };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
//#region src/v1alpha1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link VpnGatewayStatus}. */
|
|
2
|
-
|
|
3
|
+
var VPN_GATEWAY_TRANSIENT_STATUSES = [
|
|
3
4
|
"configuring",
|
|
4
5
|
"provisioning",
|
|
5
6
|
"deprovisioning"
|
|
6
7
|
];
|
|
8
|
+
//#endregion
|
|
7
9
|
export { VPN_GATEWAY_TRANSIENT_STATUSES };
|
|
@@ -3,6 +3,7 @@ import { VPN_GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
|
3
3
|
import { marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalConnection, unmarshalCreateConnectionResponse, unmarshalCustomerGateway, unmarshalListConnectionsResponse, unmarshalListCustomerGatewaysResponse, unmarshalListRoutingPoliciesResponse, unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway } from "./marshalling.gen.js";
|
|
4
4
|
import { API } from "./api.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1alpha1/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
API: () => API,
|
|
8
9
|
VPN_GATEWAY_TRANSIENT_STATUSES: () => VPN_GATEWAY_TRANSIENT_STATUSES,
|
|
@@ -29,4 +30,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
29
30
|
unmarshalRoutingPolicy: () => unmarshalRoutingPolicy,
|
|
30
31
|
unmarshalVpnGateway: () => unmarshalVpnGateway
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
+
//#endregion
|
|
34
|
+
export { API, VPN_GATEWAY_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalConnection, unmarshalCreateConnectionResponse, unmarshalCustomerGateway, unmarshalListConnectionsResponse, unmarshalListCustomerGatewaysResponse, unmarshalListRoutingPoliciesResponse, unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1alpha1/marshalling.gen.ts
|
|
2
3
|
var unmarshalBgpSession = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BgpSession' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
@@ -15,7 +16,7 @@ var unmarshalConnectionCipher = (data) => {
|
|
|
15
16
|
integrity: data.integrity ? data.integrity : void 0
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
var unmarshalConnection = (data) => {
|
|
19
20
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Connection' failed as data isn't a dictionary.`);
|
|
20
21
|
return {
|
|
21
22
|
bgpSessionIpv4: data.bgp_session_ipv4 ? unmarshalBgpSession(data.bgp_session_ipv4) : void 0,
|
|
@@ -45,7 +46,7 @@ const unmarshalConnection = (data) => {
|
|
|
45
46
|
vpnGatewayId: data.vpn_gateway_id
|
|
46
47
|
};
|
|
47
48
|
};
|
|
48
|
-
|
|
49
|
+
var unmarshalCustomerGateway = (data) => {
|
|
49
50
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CustomerGateway' failed as data isn't a dictionary.`);
|
|
50
51
|
return {
|
|
51
52
|
asn: data.asn,
|
|
@@ -62,7 +63,7 @@ const unmarshalCustomerGateway = (data) => {
|
|
|
62
63
|
updatedAt: unmarshalDate(data.updated_at)
|
|
63
64
|
};
|
|
64
65
|
};
|
|
65
|
-
|
|
66
|
+
var unmarshalRoutingPolicy = (data) => {
|
|
66
67
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RoutingPolicy' failed as data isn't a dictionary.`);
|
|
67
68
|
return {
|
|
68
69
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -89,7 +90,7 @@ var unmarshalVpnGatewayPublicConfig = (data) => {
|
|
|
89
90
|
ipamIpv6Id: data.ipam_ipv6_id
|
|
90
91
|
};
|
|
91
92
|
};
|
|
92
|
-
|
|
93
|
+
var unmarshalVpnGateway = (data) => {
|
|
93
94
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpnGateway' failed as data isn't a dictionary.`);
|
|
94
95
|
return {
|
|
95
96
|
asn: data.asn,
|
|
@@ -112,28 +113,28 @@ const unmarshalVpnGateway = (data) => {
|
|
|
112
113
|
zone: data.zone
|
|
113
114
|
};
|
|
114
115
|
};
|
|
115
|
-
|
|
116
|
+
var unmarshalCreateConnectionResponse = (data) => {
|
|
116
117
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateConnectionResponse' failed as data isn't a dictionary.`);
|
|
117
118
|
return {
|
|
118
119
|
connection: data.connection ? unmarshalConnection(data.connection) : void 0,
|
|
119
120
|
preSharedKey: data.pre_shared_key
|
|
120
121
|
};
|
|
121
122
|
};
|
|
122
|
-
|
|
123
|
+
var unmarshalListConnectionsResponse = (data) => {
|
|
123
124
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListConnectionsResponse' failed as data isn't a dictionary.`);
|
|
124
125
|
return {
|
|
125
126
|
connections: unmarshalArrayOfObject(data.connections, unmarshalConnection),
|
|
126
127
|
totalCount: data.total_count
|
|
127
128
|
};
|
|
128
129
|
};
|
|
129
|
-
|
|
130
|
+
var unmarshalListCustomerGatewaysResponse = (data) => {
|
|
130
131
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCustomerGatewaysResponse' failed as data isn't a dictionary.`);
|
|
131
132
|
return {
|
|
132
133
|
gateways: unmarshalArrayOfObject(data.gateways, unmarshalCustomerGateway),
|
|
133
134
|
totalCount: data.total_count
|
|
134
135
|
};
|
|
135
136
|
};
|
|
136
|
-
|
|
137
|
+
var unmarshalListRoutingPoliciesResponse = (data) => {
|
|
137
138
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRoutingPoliciesResponse' failed as data isn't a dictionary.`);
|
|
138
139
|
return {
|
|
139
140
|
routingPolicies: unmarshalArrayOfObject(data.routing_policies, unmarshalRoutingPolicy),
|
|
@@ -150,21 +151,21 @@ var unmarshalGatewayType = (data) => {
|
|
|
150
151
|
zones: data.zones
|
|
151
152
|
};
|
|
152
153
|
};
|
|
153
|
-
|
|
154
|
+
var unmarshalListVpnGatewayTypesResponse = (data) => {
|
|
154
155
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVpnGatewayTypesResponse' failed as data isn't a dictionary.`);
|
|
155
156
|
return {
|
|
156
157
|
gatewayTypes: unmarshalArrayOfObject(data.gateway_types, unmarshalGatewayType),
|
|
157
158
|
totalCount: data.total_count
|
|
158
159
|
};
|
|
159
160
|
};
|
|
160
|
-
|
|
161
|
+
var unmarshalListVpnGatewaysResponse = (data) => {
|
|
161
162
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVpnGatewaysResponse' failed as data isn't a dictionary.`);
|
|
162
163
|
return {
|
|
163
164
|
gateways: unmarshalArrayOfObject(data.gateways, unmarshalVpnGateway),
|
|
164
165
|
totalCount: data.total_count
|
|
165
166
|
};
|
|
166
167
|
};
|
|
167
|
-
|
|
168
|
+
var unmarshalRenewConnectionPskResponse = (data) => {
|
|
168
169
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RenewConnectionPskResponse' failed as data isn't a dictionary.`);
|
|
169
170
|
return {
|
|
170
171
|
connection: data.connection ? unmarshalConnection(data.connection) : void 0,
|
|
@@ -181,7 +182,7 @@ var marshalCreateConnectionRequestBgpConfig = (request, defaults) => ({
|
|
|
181
182
|
private_ip: request.privateIp,
|
|
182
183
|
routing_policy_id: request.routingPolicyId
|
|
183
184
|
});
|
|
184
|
-
|
|
185
|
+
var marshalCreateConnectionRequest = (request, defaults) => ({
|
|
185
186
|
bgp_config_ipv4: request.bgpConfigIpv4 !== void 0 ? marshalCreateConnectionRequestBgpConfig(request.bgpConfigIpv4, defaults) : void 0,
|
|
186
187
|
bgp_config_ipv6: request.bgpConfigIpv6 !== void 0 ? marshalCreateConnectionRequestBgpConfig(request.bgpConfigIpv6, defaults) : void 0,
|
|
187
188
|
customer_gateway_id: request.customerGatewayId,
|
|
@@ -195,7 +196,7 @@ const marshalCreateConnectionRequest = (request, defaults) => ({
|
|
|
195
196
|
tags: request.tags,
|
|
196
197
|
vpn_gateway_id: request.vpnGatewayId
|
|
197
198
|
});
|
|
198
|
-
|
|
199
|
+
var marshalCreateCustomerGatewayRequest = (request, defaults) => ({
|
|
199
200
|
asn: request.asn,
|
|
200
201
|
ipv4_public: request.ipv4Public,
|
|
201
202
|
ipv6_public: request.ipv6Public,
|
|
@@ -203,7 +204,7 @@ const marshalCreateCustomerGatewayRequest = (request, defaults) => ({
|
|
|
203
204
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
204
205
|
tags: request.tags
|
|
205
206
|
});
|
|
206
|
-
|
|
207
|
+
var marshalCreateRoutingPolicyRequest = (request, defaults) => ({
|
|
207
208
|
is_ipv6: request.isIpv6,
|
|
208
209
|
name: request.name,
|
|
209
210
|
prefix_filter_in: request.prefixFilterIn,
|
|
@@ -234,7 +235,7 @@ var marshalCreateVpnGatewayRequestPublicTunnelConfig = (request, defaults) => ({
|
|
|
234
235
|
value: request.dualIpv4V6Tunnel !== void 0 ? marshalCreateVpnGatewayRequestDualIpTunnel(request.dualIpv4V6Tunnel, defaults) : void 0
|
|
235
236
|
}
|
|
236
237
|
]) });
|
|
237
|
-
|
|
238
|
+
var marshalCreateVpnGatewayRequest = (request, defaults) => ({
|
|
238
239
|
gateway_type: request.gatewayType,
|
|
239
240
|
ipam_private_ipv4_id: request.ipamPrivateIpv4Id,
|
|
240
241
|
ipam_private_ipv6_id: request.ipamPrivateIpv6Id,
|
|
@@ -251,42 +252,43 @@ const marshalCreateVpnGatewayRequest = (request, defaults) => ({
|
|
|
251
252
|
value: request.publicTunnelConfig !== void 0 ? marshalCreateVpnGatewayRequestPublicTunnelConfig(request.publicTunnelConfig, defaults) : void 0
|
|
252
253
|
}])
|
|
253
254
|
});
|
|
254
|
-
|
|
255
|
+
var marshalDetachRoutingPolicyRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
255
256
|
param: "routing_policy_v4",
|
|
256
257
|
value: request.routingPolicyV4
|
|
257
258
|
}, {
|
|
258
259
|
param: "routing_policy_v6",
|
|
259
260
|
value: request.routingPolicyV6
|
|
260
261
|
}]) });
|
|
261
|
-
|
|
262
|
+
var marshalSetRoutingPolicyRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
262
263
|
param: "routing_policy_v4",
|
|
263
264
|
value: request.routingPolicyV4
|
|
264
265
|
}, {
|
|
265
266
|
param: "routing_policy_v6",
|
|
266
267
|
value: request.routingPolicyV6
|
|
267
268
|
}]) });
|
|
268
|
-
|
|
269
|
+
var marshalUpdateConnectionRequest = (request, defaults) => ({
|
|
269
270
|
esp_ciphers: request.espCiphers !== void 0 ? request.espCiphers.map((elt) => marshalConnectionCipher(elt, defaults)) : void 0,
|
|
270
271
|
ikev2_ciphers: request.ikev2Ciphers !== void 0 ? request.ikev2Ciphers.map((elt) => marshalConnectionCipher(elt, defaults)) : void 0,
|
|
271
272
|
initiation_policy: request.initiationPolicy,
|
|
272
273
|
name: request.name,
|
|
273
274
|
tags: request.tags
|
|
274
275
|
});
|
|
275
|
-
|
|
276
|
+
var marshalUpdateCustomerGatewayRequest = (request, defaults) => ({
|
|
276
277
|
asn: request.asn,
|
|
277
278
|
ipv4_public: request.ipv4Public,
|
|
278
279
|
ipv6_public: request.ipv6Public,
|
|
279
280
|
name: request.name,
|
|
280
281
|
tags: request.tags
|
|
281
282
|
});
|
|
282
|
-
|
|
283
|
+
var marshalUpdateRoutingPolicyRequest = (request, defaults) => ({
|
|
283
284
|
name: request.name,
|
|
284
285
|
prefix_filter_in: request.prefixFilterIn,
|
|
285
286
|
prefix_filter_out: request.prefixFilterOut,
|
|
286
287
|
tags: request.tags
|
|
287
288
|
});
|
|
288
|
-
|
|
289
|
+
var marshalUpdateVpnGatewayRequest = (request, defaults) => ({
|
|
289
290
|
name: request.name,
|
|
290
291
|
tags: request.tags
|
|
291
292
|
});
|
|
293
|
+
//#endregion
|
|
292
294
|
export { marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalConnection, unmarshalCreateConnectionResponse, unmarshalCustomerGateway, unmarshalListConnectionsResponse, unmarshalListCustomerGatewaysResponse, unmarshalListRoutingPoliciesResponse, unmarshalListVpnGatewayTypesResponse, unmarshalListVpnGatewaysResponse, unmarshalRenewConnectionPskResponse, unmarshalRoutingPolicy, unmarshalVpnGateway };
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1alpha1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
CreateConnectionRequest: () => CreateConnectionRequest,
|
|
4
5
|
CreateCustomerGatewayRequest: () => CreateCustomerGatewayRequest,
|
|
@@ -16,27 +17,27 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
16
17
|
UpdateVpnGatewayRequest: () => UpdateVpnGatewayRequest,
|
|
17
18
|
VpnGateway: () => VpnGateway
|
|
18
19
|
});
|
|
19
|
-
|
|
20
|
+
var CreateConnectionRequest = { name: {
|
|
20
21
|
maxLength: 255,
|
|
21
22
|
minLength: 1
|
|
22
23
|
} };
|
|
23
|
-
|
|
24
|
+
var CreateCustomerGatewayRequest = {
|
|
24
25
|
asn: { greaterThanOrEqual: 1 },
|
|
25
26
|
name: {
|
|
26
27
|
maxLength: 255,
|
|
27
28
|
minLength: 1
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
var CreateRoutingPolicyRequest = { name: {
|
|
31
32
|
maxLength: 255,
|
|
32
33
|
minLength: 1
|
|
33
34
|
} };
|
|
34
|
-
|
|
35
|
+
var CreateVpnGatewayRequest = { name: {
|
|
35
36
|
maxLength: 255,
|
|
36
37
|
minLength: 1
|
|
37
38
|
} };
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
var CustomerGateway = { asn: { greaterThanOrEqual: 1 } };
|
|
40
|
+
var ListConnectionsRequest = {
|
|
40
41
|
name: {
|
|
41
42
|
maxLength: 255,
|
|
42
43
|
minLength: 1
|
|
@@ -47,7 +48,7 @@ const ListConnectionsRequest = {
|
|
|
47
48
|
lessThanOrEqual: 1e3
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
|
-
|
|
51
|
+
var ListCustomerGatewaysRequest = {
|
|
51
52
|
name: {
|
|
52
53
|
maxLength: 255,
|
|
53
54
|
minLength: 1
|
|
@@ -58,7 +59,7 @@ const ListCustomerGatewaysRequest = {
|
|
|
58
59
|
lessThanOrEqual: 1e3
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
+
var ListRoutingPoliciesRequest = {
|
|
62
63
|
name: {
|
|
63
64
|
maxLength: 255,
|
|
64
65
|
minLength: 1
|
|
@@ -69,14 +70,14 @@ const ListRoutingPoliciesRequest = {
|
|
|
69
70
|
lessThanOrEqual: 1e3
|
|
70
71
|
}
|
|
71
72
|
};
|
|
72
|
-
|
|
73
|
+
var ListVpnGatewayTypesRequest = {
|
|
73
74
|
page: { greaterThanOrEqual: 1 },
|
|
74
75
|
pageSize: {
|
|
75
76
|
greaterThanOrEqual: 1,
|
|
76
77
|
lessThanOrEqual: 1e3
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
|
-
|
|
80
|
+
var ListVpnGatewaysRequest = {
|
|
80
81
|
name: {
|
|
81
82
|
maxLength: 255,
|
|
82
83
|
minLength: 1
|
|
@@ -87,24 +88,25 @@ const ListVpnGatewaysRequest = {
|
|
|
87
88
|
lessThanOrEqual: 1e3
|
|
88
89
|
}
|
|
89
90
|
};
|
|
90
|
-
|
|
91
|
+
var UpdateConnectionRequest = { name: {
|
|
91
92
|
maxLength: 255,
|
|
92
93
|
minLength: 1
|
|
93
94
|
} };
|
|
94
|
-
|
|
95
|
+
var UpdateCustomerGatewayRequest = {
|
|
95
96
|
asn: { greaterThanOrEqual: 1 },
|
|
96
97
|
name: {
|
|
97
98
|
maxLength: 255,
|
|
98
99
|
minLength: 1
|
|
99
100
|
}
|
|
100
101
|
};
|
|
101
|
-
|
|
102
|
+
var UpdateRoutingPolicyRequest = { name: {
|
|
102
103
|
maxLength: 255,
|
|
103
104
|
minLength: 1
|
|
104
105
|
} };
|
|
105
|
-
|
|
106
|
+
var UpdateVpnGatewayRequest = { name: {
|
|
106
107
|
maxLength: 255,
|
|
107
108
|
minLength: 1
|
|
108
109
|
} };
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
var VpnGateway = { asn: { greaterThanOrEqual: 1 } };
|
|
111
|
+
//#endregion
|
|
112
|
+
export { CreateConnectionRequest, CreateCustomerGatewayRequest, CreateRoutingPolicyRequest, CreateVpnGatewayRequest, CustomerGateway, ListConnectionsRequest, ListCustomerGatewaysRequest, ListRoutingPoliciesRequest, ListVpnGatewayTypesRequest, ListVpnGatewaysRequest, UpdateConnectionRequest, UpdateCustomerGatewayRequest, UpdateRoutingPolicyRequest, UpdateVpnGatewayRequest, VpnGateway, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-s2s-vpn",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "Scaleway SDK s2s-vpn",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=20.19.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@scaleway/random-name": "5.1.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
29
|
+
"@scaleway/random-name": "5.1.4",
|
|
30
|
+
"@scaleway/sdk-std": "2.2.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|