@scaleway/sdk-s2s-vpn 2.5.1 → 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.
@@ -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 };
@@ -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$1 = class extends 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
- export { API$1 as API };
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
- const VPN_GATEWAY_TRANSIENT_STATUSES = [
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
- export { index_gen_exports };
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
- const unmarshalConnection = (data) => {
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
- const unmarshalCustomerGateway = (data) => {
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
- const unmarshalRoutingPolicy = (data) => {
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
- const unmarshalVpnGateway = (data) => {
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
- const unmarshalCreateConnectionResponse = (data) => {
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
- const unmarshalListConnectionsResponse = (data) => {
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
- const unmarshalListCustomerGatewaysResponse = (data) => {
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
- const unmarshalListRoutingPoliciesResponse = (data) => {
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
- const unmarshalListVpnGatewayTypesResponse = (data) => {
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
- const unmarshalListVpnGatewaysResponse = (data) => {
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
- const unmarshalRenewConnectionPskResponse = (data) => {
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
- const marshalCreateConnectionRequest = (request, defaults) => ({
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
- const marshalCreateCustomerGatewayRequest = (request, defaults) => ({
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
- const marshalCreateRoutingPolicyRequest = (request, defaults) => ({
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
- const marshalCreateVpnGatewayRequest = (request, defaults) => ({
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
- const marshalDetachRoutingPolicyRequest = (request, defaults) => ({ ...resolveOneOf([{
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
- const marshalSetRoutingPolicyRequest = (request, defaults) => ({ ...resolveOneOf([{
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
- const marshalUpdateConnectionRequest = (request, defaults) => ({
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
- const marshalUpdateCustomerGatewayRequest = (request, defaults) => ({
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
- const marshalUpdateRoutingPolicyRequest = (request, defaults) => ({
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
- const marshalUpdateVpnGatewayRequest = (request, defaults) => ({
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 };
@@ -0,0 +1,102 @@
1
+ export declare const queriesMetadata: {
2
+ readonly namespace: "s2s_vpn";
3
+ readonly version: "v1alpha1";
4
+ readonly folderName: "s2SVpnv1alpha1";
5
+ readonly services: readonly [{
6
+ readonly apiClass: "API";
7
+ readonly methods: readonly [{
8
+ readonly methodName: "listVpnGatewayTypes";
9
+ readonly protoName: "ListVpnGatewayTypes";
10
+ readonly paramsType: "ListVpnGatewayTypesRequest";
11
+ readonly returnType: "ListVpnGatewayTypesResponse";
12
+ readonly isList: true;
13
+ readonly paginationType: "offset";
14
+ readonly pageParamKey: "page";
15
+ readonly listItemType: "GatewayType";
16
+ readonly isPrivate: false;
17
+ readonly description: "\"";
18
+ }, {
19
+ readonly methodName: "listVpnGateways";
20
+ readonly protoName: "ListVpnGateways";
21
+ readonly paramsType: "ListVpnGatewaysRequest";
22
+ readonly returnType: "ListVpnGatewaysResponse";
23
+ readonly isList: true;
24
+ readonly paginationType: "offset";
25
+ readonly pageParamKey: "page";
26
+ readonly listItemType: "VpnGateway";
27
+ readonly isPrivate: false;
28
+ readonly description: "\"";
29
+ }, {
30
+ readonly methodName: "getVpnGateway";
31
+ readonly protoName: "GetVpnGateway";
32
+ readonly paramsType: "GetVpnGatewayRequest";
33
+ readonly returnType: "VpnGateway";
34
+ readonly isList: false;
35
+ readonly paginationType: "none";
36
+ readonly isPrivate: false;
37
+ readonly description: "\"";
38
+ readonly hasWaiter: true;
39
+ }, {
40
+ readonly methodName: "listConnections";
41
+ readonly protoName: "ListConnections";
42
+ readonly paramsType: "ListConnectionsRequest";
43
+ readonly returnType: "ListConnectionsResponse";
44
+ readonly isList: true;
45
+ readonly paginationType: "offset";
46
+ readonly pageParamKey: "page";
47
+ readonly listItemType: "Connection";
48
+ readonly isPrivate: false;
49
+ readonly description: "\"";
50
+ }, {
51
+ readonly methodName: "getConnection";
52
+ readonly protoName: "GetConnection";
53
+ readonly paramsType: "GetConnectionRequest";
54
+ readonly returnType: "Connection";
55
+ readonly isList: false;
56
+ readonly paginationType: "none";
57
+ readonly isPrivate: false;
58
+ readonly description: "\"";
59
+ }, {
60
+ readonly methodName: "listCustomerGateways";
61
+ readonly protoName: "ListCustomerGateways";
62
+ readonly paramsType: "ListCustomerGatewaysRequest";
63
+ readonly returnType: "ListCustomerGatewaysResponse";
64
+ readonly isList: true;
65
+ readonly paginationType: "offset";
66
+ readonly pageParamKey: "page";
67
+ readonly listItemType: "CustomerGateway";
68
+ readonly isPrivate: false;
69
+ readonly description: "\"";
70
+ }, {
71
+ readonly methodName: "getCustomerGateway";
72
+ readonly protoName: "GetCustomerGateway";
73
+ readonly paramsType: "GetCustomerGatewayRequest";
74
+ readonly returnType: "CustomerGateway";
75
+ readonly isList: false;
76
+ readonly paginationType: "none";
77
+ readonly isPrivate: false;
78
+ readonly description: "\"";
79
+ }, {
80
+ readonly methodName: "listRoutingPolicies";
81
+ readonly protoName: "ListRoutingPolicies";
82
+ readonly paramsType: "ListRoutingPoliciesRequest";
83
+ readonly returnType: "ListRoutingPoliciesResponse";
84
+ readonly isList: true;
85
+ readonly paginationType: "offset";
86
+ readonly pageParamKey: "page";
87
+ readonly listItemType: "RoutingPolicy";
88
+ readonly isPrivate: false;
89
+ readonly description: "\"";
90
+ }, {
91
+ readonly methodName: "getRoutingPolicy";
92
+ readonly protoName: "GetRoutingPolicy";
93
+ readonly paramsType: "GetRoutingPolicyRequest";
94
+ readonly returnType: "RoutingPolicy";
95
+ readonly isList: false;
96
+ readonly paginationType: "none";
97
+ readonly isPrivate: false;
98
+ readonly description: "\"";
99
+ }];
100
+ }];
101
+ };
102
+ export type QueriesMetadata = typeof queriesMetadata;
@@ -0,0 +1,114 @@
1
+ //#region src/v1alpha1/metadata.gen.ts
2
+ var queriesMetadata = {
3
+ namespace: "s2s_vpn",
4
+ version: "v1alpha1",
5
+ folderName: "s2SVpnv1alpha1",
6
+ services: [{
7
+ apiClass: "API",
8
+ methods: [
9
+ {
10
+ methodName: "listVpnGatewayTypes",
11
+ protoName: "ListVpnGatewayTypes",
12
+ paramsType: "ListVpnGatewayTypesRequest",
13
+ returnType: "ListVpnGatewayTypesResponse",
14
+ isList: true,
15
+ paginationType: "offset",
16
+ pageParamKey: "page",
17
+ listItemType: "GatewayType",
18
+ isPrivate: false,
19
+ description: "\""
20
+ },
21
+ {
22
+ methodName: "listVpnGateways",
23
+ protoName: "ListVpnGateways",
24
+ paramsType: "ListVpnGatewaysRequest",
25
+ returnType: "ListVpnGatewaysResponse",
26
+ isList: true,
27
+ paginationType: "offset",
28
+ pageParamKey: "page",
29
+ listItemType: "VpnGateway",
30
+ isPrivate: false,
31
+ description: "\""
32
+ },
33
+ {
34
+ methodName: "getVpnGateway",
35
+ protoName: "GetVpnGateway",
36
+ paramsType: "GetVpnGatewayRequest",
37
+ returnType: "VpnGateway",
38
+ isList: false,
39
+ paginationType: "none",
40
+ isPrivate: false,
41
+ description: "\"",
42
+ hasWaiter: true
43
+ },
44
+ {
45
+ methodName: "listConnections",
46
+ protoName: "ListConnections",
47
+ paramsType: "ListConnectionsRequest",
48
+ returnType: "ListConnectionsResponse",
49
+ isList: true,
50
+ paginationType: "offset",
51
+ pageParamKey: "page",
52
+ listItemType: "Connection",
53
+ isPrivate: false,
54
+ description: "\""
55
+ },
56
+ {
57
+ methodName: "getConnection",
58
+ protoName: "GetConnection",
59
+ paramsType: "GetConnectionRequest",
60
+ returnType: "Connection",
61
+ isList: false,
62
+ paginationType: "none",
63
+ isPrivate: false,
64
+ description: "\""
65
+ },
66
+ {
67
+ methodName: "listCustomerGateways",
68
+ protoName: "ListCustomerGateways",
69
+ paramsType: "ListCustomerGatewaysRequest",
70
+ returnType: "ListCustomerGatewaysResponse",
71
+ isList: true,
72
+ paginationType: "offset",
73
+ pageParamKey: "page",
74
+ listItemType: "CustomerGateway",
75
+ isPrivate: false,
76
+ description: "\""
77
+ },
78
+ {
79
+ methodName: "getCustomerGateway",
80
+ protoName: "GetCustomerGateway",
81
+ paramsType: "GetCustomerGatewayRequest",
82
+ returnType: "CustomerGateway",
83
+ isList: false,
84
+ paginationType: "none",
85
+ isPrivate: false,
86
+ description: "\""
87
+ },
88
+ {
89
+ methodName: "listRoutingPolicies",
90
+ protoName: "ListRoutingPolicies",
91
+ paramsType: "ListRoutingPoliciesRequest",
92
+ returnType: "ListRoutingPoliciesResponse",
93
+ isList: true,
94
+ paginationType: "offset",
95
+ pageParamKey: "page",
96
+ listItemType: "RoutingPolicy",
97
+ isPrivate: false,
98
+ description: "\""
99
+ },
100
+ {
101
+ methodName: "getRoutingPolicy",
102
+ protoName: "GetRoutingPolicy",
103
+ paramsType: "GetRoutingPolicyRequest",
104
+ returnType: "RoutingPolicy",
105
+ isList: false,
106
+ paginationType: "none",
107
+ isPrivate: false,
108
+ description: "\""
109
+ }
110
+ ]
111
+ }]
112
+ };
113
+ //#endregion
114
+ export { queriesMetadata };
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
- const CreateConnectionRequest = { name: {
20
+ var CreateConnectionRequest = { name: {
20
21
  maxLength: 255,
21
22
  minLength: 1
22
23
  } };
23
- const CreateCustomerGatewayRequest = {
24
+ var CreateCustomerGatewayRequest = {
24
25
  asn: { greaterThanOrEqual: 1 },
25
26
  name: {
26
27
  maxLength: 255,
27
28
  minLength: 1
28
29
  }
29
30
  };
30
- const CreateRoutingPolicyRequest = { name: {
31
+ var CreateRoutingPolicyRequest = { name: {
31
32
  maxLength: 255,
32
33
  minLength: 1
33
34
  } };
34
- const CreateVpnGatewayRequest = { name: {
35
+ var CreateVpnGatewayRequest = { name: {
35
36
  maxLength: 255,
36
37
  minLength: 1
37
38
  } };
38
- const CustomerGateway = { asn: { greaterThanOrEqual: 1 } };
39
- const ListConnectionsRequest = {
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
- const ListCustomerGatewaysRequest = {
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
- const ListRoutingPoliciesRequest = {
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
- const ListVpnGatewayTypesRequest = {
73
+ var ListVpnGatewayTypesRequest = {
73
74
  page: { greaterThanOrEqual: 1 },
74
75
  pageSize: {
75
76
  greaterThanOrEqual: 1,
76
77
  lessThanOrEqual: 1e3
77
78
  }
78
79
  };
79
- const ListVpnGatewaysRequest = {
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
- const UpdateConnectionRequest = { name: {
91
+ var UpdateConnectionRequest = { name: {
91
92
  maxLength: 255,
92
93
  minLength: 1
93
94
  } };
94
- const UpdateCustomerGatewayRequest = {
95
+ var UpdateCustomerGatewayRequest = {
95
96
  asn: { greaterThanOrEqual: 1 },
96
97
  name: {
97
98
  maxLength: 255,
98
99
  minLength: 1
99
100
  }
100
101
  };
101
- const UpdateRoutingPolicyRequest = { name: {
102
+ var UpdateRoutingPolicyRequest = { name: {
102
103
  maxLength: 255,
103
104
  minLength: 1
104
105
  } };
105
- const UpdateVpnGatewayRequest = { name: {
106
+ var UpdateVpnGatewayRequest = { name: {
106
107
  maxLength: 255,
107
108
  minLength: 1
108
109
  } };
109
- const VpnGateway = { asn: { greaterThanOrEqual: 1 } };
110
- export { validation_rules_gen_exports };
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.1",
3
+ "version": "2.6.0",
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.2",
30
- "@scaleway/sdk-std": "2.2.1"
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.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",