@scaleway/sdk-s2s-vpn 2.10.0 → 2.11.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/_virtual/_rolldown/runtime.js +13 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +2 -0
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +13 -0
- package/dist/v1alpha1/api.gen.d.ts +229 -0
- package/dist/v1alpha1/api.gen.js +172 -0
- package/dist/v1alpha1/content.gen.d.ts +3 -0
- package/dist/v1alpha1/content.gen.js +9 -0
- package/dist/v1alpha1/index.gen.d.ts +5 -0
- package/dist/v1alpha1/index.gen.js +37 -0
- package/dist/v1alpha1/marshalling.gen.d.ts +26 -0
- package/dist/v1alpha1/marshalling.gen.js +309 -0
- package/dist/v1alpha1/metadata.gen.d.ts +102 -0
- package/dist/v1alpha1/metadata.gen.js +114 -0
- package/dist/v1alpha1/types.gen.d.ts +1059 -0
- package/dist/v1alpha1/types.gen.js +0 -0
- package/dist/v1alpha1/validation-rules.gen.d.ts +125 -0
- package/dist/v1alpha1/validation-rules.gen.js +112 -0
- package/package.json +5 -5
- package/LICENSE +0 -191
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1alpha1/marshalling.gen.ts
|
|
3
|
+
const unmarshalBgpSession = (data) => {
|
|
4
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BgpSession' failed as data isn't a dictionary.`);
|
|
5
|
+
return {
|
|
6
|
+
peerPrivateIp: data.peer_private_ip,
|
|
7
|
+
privateIp: data.private_ip,
|
|
8
|
+
routingPolicyId: data.routing_policy_id
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
const unmarshalConnectionCipher = (data) => {
|
|
12
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ConnectionCipher' failed as data isn't a dictionary.`);
|
|
13
|
+
return {
|
|
14
|
+
dhGroup: data.dh_group ? data.dh_group : void 0,
|
|
15
|
+
encryption: data.encryption,
|
|
16
|
+
integrity: data.integrity ? data.integrity : void 0
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
const unmarshalConnection = (data) => {
|
|
20
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Connection' failed as data isn't a dictionary.`);
|
|
21
|
+
return {
|
|
22
|
+
bgpSessionIpv4: data.bgp_session_ipv4 ? unmarshalBgpSession(data.bgp_session_ipv4) : void 0,
|
|
23
|
+
bgpSessionIpv6: data.bgp_session_ipv6 ? unmarshalBgpSession(data.bgp_session_ipv6) : void 0,
|
|
24
|
+
bgpStatusIpv4: data.bgp_status_ipv4,
|
|
25
|
+
bgpStatusIpv6: data.bgp_status_ipv6,
|
|
26
|
+
createdAt: unmarshalDate(data.created_at),
|
|
27
|
+
customerGatewayId: data.customer_gateway_id,
|
|
28
|
+
espCiphers: unmarshalArrayOfObject(data.esp_ciphers, unmarshalConnectionCipher),
|
|
29
|
+
id: data.id,
|
|
30
|
+
ikev2Ciphers: unmarshalArrayOfObject(data.ikev2_ciphers, unmarshalConnectionCipher),
|
|
31
|
+
initiationPolicy: data.initiation_policy,
|
|
32
|
+
isIpv6: data.is_ipv6,
|
|
33
|
+
name: data.name,
|
|
34
|
+
organizationId: data.organization_id,
|
|
35
|
+
projectId: data.project_id,
|
|
36
|
+
region: data.region,
|
|
37
|
+
routePropagationEnabled: data.route_propagation_enabled,
|
|
38
|
+
secretId: data.secret_id,
|
|
39
|
+
secretRevision: data.secret_revision,
|
|
40
|
+
status: data.status,
|
|
41
|
+
tags: data.tags,
|
|
42
|
+
tunnelStatus: data.tunnel_status,
|
|
43
|
+
tunnelStatusIpv4: data.tunnel_status_ipv4 ? data.tunnel_status_ipv4 : void 0,
|
|
44
|
+
tunnelStatusIpv6: data.tunnel_status_ipv6 ? data.tunnel_status_ipv6 : void 0,
|
|
45
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
46
|
+
vpnGatewayId: data.vpn_gateway_id
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
const unmarshalCustomerGateway = (data) => {
|
|
50
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CustomerGateway' failed as data isn't a dictionary.`);
|
|
51
|
+
return {
|
|
52
|
+
asn: data.asn,
|
|
53
|
+
connectionIds: data.connection_ids,
|
|
54
|
+
createdAt: unmarshalDate(data.created_at),
|
|
55
|
+
id: data.id,
|
|
56
|
+
name: data.name,
|
|
57
|
+
organizationId: data.organization_id,
|
|
58
|
+
projectId: data.project_id,
|
|
59
|
+
publicIpv4: data.public_ipv4,
|
|
60
|
+
publicIpv6: data.public_ipv6,
|
|
61
|
+
region: data.region,
|
|
62
|
+
tags: data.tags,
|
|
63
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const unmarshalRoutingPolicy = (data) => {
|
|
67
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RoutingPolicy' failed as data isn't a dictionary.`);
|
|
68
|
+
return {
|
|
69
|
+
createdAt: unmarshalDate(data.created_at),
|
|
70
|
+
id: data.id,
|
|
71
|
+
isIpv6: data.is_ipv6,
|
|
72
|
+
name: data.name,
|
|
73
|
+
organizationId: data.organization_id,
|
|
74
|
+
prefixFilterIn: data.prefix_filter_in,
|
|
75
|
+
prefixFilterOut: data.prefix_filter_out,
|
|
76
|
+
projectId: data.project_id,
|
|
77
|
+
region: data.region,
|
|
78
|
+
tags: data.tags,
|
|
79
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
const unmarshalVpnGatewayPrivateConfig = (data) => {
|
|
83
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpnGatewayPrivateConfig' failed as data isn't a dictionary.`);
|
|
84
|
+
return {};
|
|
85
|
+
};
|
|
86
|
+
const unmarshalVpnGatewayPublicConfig = (data) => {
|
|
87
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpnGatewayPublicConfig' failed as data isn't a dictionary.`);
|
|
88
|
+
return {
|
|
89
|
+
ipamIpv4Id: data.ipam_ipv4_id,
|
|
90
|
+
ipamIpv6Id: data.ipam_ipv6_id
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
const unmarshalVpnGateway = (data) => {
|
|
94
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VpnGateway' failed as data isn't a dictionary.`);
|
|
95
|
+
return {
|
|
96
|
+
asn: data.asn,
|
|
97
|
+
connectionIds: data.connection_ids,
|
|
98
|
+
createdAt: unmarshalDate(data.created_at),
|
|
99
|
+
gatewayType: data.gateway_type,
|
|
100
|
+
id: data.id,
|
|
101
|
+
ipamPrivateIpv4Id: data.ipam_private_ipv4_id,
|
|
102
|
+
ipamPrivateIpv6Id: data.ipam_private_ipv6_id,
|
|
103
|
+
name: data.name,
|
|
104
|
+
organizationId: data.organization_id,
|
|
105
|
+
privateConfig: data.private_config ? unmarshalVpnGatewayPrivateConfig(data.private_config) : void 0,
|
|
106
|
+
privateNetworkId: data.private_network_id,
|
|
107
|
+
projectId: data.project_id,
|
|
108
|
+
publicConfig: data.public_config ? unmarshalVpnGatewayPublicConfig(data.public_config) : void 0,
|
|
109
|
+
region: data.region,
|
|
110
|
+
status: data.status,
|
|
111
|
+
tags: data.tags,
|
|
112
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
113
|
+
zone: data.zone
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
const unmarshalChangeConnectionPskResponse = (data) => {
|
|
117
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ChangeConnectionPskResponse' failed as data isn't a dictionary.`);
|
|
118
|
+
return { connection: data.connection ? unmarshalConnection(data.connection) : void 0 };
|
|
119
|
+
};
|
|
120
|
+
const unmarshalCreateConnectionResponse = (data) => {
|
|
121
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CreateConnectionResponse' failed as data isn't a dictionary.`);
|
|
122
|
+
return {
|
|
123
|
+
connection: data.connection ? unmarshalConnection(data.connection) : void 0,
|
|
124
|
+
preSharedKey: data.pre_shared_key
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
const unmarshalListConnectionsResponse = (data) => {
|
|
128
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListConnectionsResponse' failed as data isn't a dictionary.`);
|
|
129
|
+
return {
|
|
130
|
+
connections: unmarshalArrayOfObject(data.connections, unmarshalConnection),
|
|
131
|
+
totalCount: data.total_count
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
const unmarshalListCustomerGatewaysResponse = (data) => {
|
|
135
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCustomerGatewaysResponse' failed as data isn't a dictionary.`);
|
|
136
|
+
return {
|
|
137
|
+
gateways: unmarshalArrayOfObject(data.gateways, unmarshalCustomerGateway),
|
|
138
|
+
totalCount: data.total_count
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
const unmarshalListRoutingPoliciesResponse = (data) => {
|
|
142
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRoutingPoliciesResponse' failed as data isn't a dictionary.`);
|
|
143
|
+
return {
|
|
144
|
+
routingPolicies: unmarshalArrayOfObject(data.routing_policies, unmarshalRoutingPolicy),
|
|
145
|
+
totalCount: data.total_count
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
const unmarshalGatewayType = (data) => {
|
|
149
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GatewayType' failed as data isn't a dictionary.`);
|
|
150
|
+
return {
|
|
151
|
+
allowedConnections: data.allowed_connections,
|
|
152
|
+
bandwidth: data.bandwidth,
|
|
153
|
+
name: data.name,
|
|
154
|
+
region: data.region,
|
|
155
|
+
zones: data.zones
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
const unmarshalListVpnGatewayTypesResponse = (data) => {
|
|
159
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVpnGatewayTypesResponse' failed as data isn't a dictionary.`);
|
|
160
|
+
return {
|
|
161
|
+
gatewayTypes: unmarshalArrayOfObject(data.gateway_types, unmarshalGatewayType),
|
|
162
|
+
totalCount: data.total_count
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
const unmarshalListVpnGatewaysResponse = (data) => {
|
|
166
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVpnGatewaysResponse' failed as data isn't a dictionary.`);
|
|
167
|
+
return {
|
|
168
|
+
gateways: unmarshalArrayOfObject(data.gateways, unmarshalVpnGateway),
|
|
169
|
+
totalCount: data.total_count
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
const unmarshalRenewConnectionPskResponse = (data) => {
|
|
173
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RenewConnectionPskResponse' failed as data isn't a dictionary.`);
|
|
174
|
+
return {
|
|
175
|
+
connection: data.connection ? unmarshalConnection(data.connection) : void 0,
|
|
176
|
+
preSharedKey: data.pre_shared_key
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
const marshalChangeConnectionPskRequestSecret = (request, defaults) => ({
|
|
180
|
+
id: request.id,
|
|
181
|
+
revision: request.revision
|
|
182
|
+
});
|
|
183
|
+
const marshalChangeConnectionPskRequest = (request, defaults) => ({ secret: marshalChangeConnectionPskRequestSecret(request.secret, defaults) });
|
|
184
|
+
const marshalConnectionCipher = (request, defaults) => ({
|
|
185
|
+
dh_group: request.dhGroup,
|
|
186
|
+
encryption: request.encryption,
|
|
187
|
+
integrity: request.integrity
|
|
188
|
+
});
|
|
189
|
+
const marshalCreateConnectionRequestBgpConfig = (request, defaults) => ({
|
|
190
|
+
peer_private_ip: request.peerPrivateIp,
|
|
191
|
+
private_ip: request.privateIp,
|
|
192
|
+
routing_policy_id: request.routingPolicyId
|
|
193
|
+
});
|
|
194
|
+
const marshalCreateConnectionRequestSecret = (request, defaults) => ({
|
|
195
|
+
id: request.id,
|
|
196
|
+
revision: request.revision
|
|
197
|
+
});
|
|
198
|
+
const marshalCreateConnectionRequest = (request, defaults) => ({
|
|
199
|
+
bgp_config_ipv4: request.bgpConfigIpv4 !== void 0 ? marshalCreateConnectionRequestBgpConfig(request.bgpConfigIpv4, defaults) : void 0,
|
|
200
|
+
bgp_config_ipv6: request.bgpConfigIpv6 !== void 0 ? marshalCreateConnectionRequestBgpConfig(request.bgpConfigIpv6, defaults) : void 0,
|
|
201
|
+
customer_gateway_id: request.customerGatewayId,
|
|
202
|
+
enable_route_propagation: request.enableRoutePropagation,
|
|
203
|
+
esp_ciphers: request.espCiphers.map((elt) => marshalConnectionCipher(elt, defaults)),
|
|
204
|
+
ikev2_ciphers: request.ikev2Ciphers.map((elt) => marshalConnectionCipher(elt, defaults)),
|
|
205
|
+
initiation_policy: request.initiationPolicy,
|
|
206
|
+
is_ipv6: request.isIpv6,
|
|
207
|
+
name: request.name,
|
|
208
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
209
|
+
secret: request.secret !== void 0 ? marshalCreateConnectionRequestSecret(request.secret, defaults) : void 0,
|
|
210
|
+
tags: request.tags,
|
|
211
|
+
vpn_gateway_id: request.vpnGatewayId
|
|
212
|
+
});
|
|
213
|
+
const marshalCreateCustomerGatewayRequest = (request, defaults) => ({
|
|
214
|
+
asn: request.asn,
|
|
215
|
+
ipv4_public: request.ipv4Public,
|
|
216
|
+
ipv6_public: request.ipv6Public,
|
|
217
|
+
name: request.name,
|
|
218
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
219
|
+
tags: request.tags
|
|
220
|
+
});
|
|
221
|
+
const marshalCreateRoutingPolicyRequest = (request, defaults) => ({
|
|
222
|
+
is_ipv6: request.isIpv6,
|
|
223
|
+
name: request.name,
|
|
224
|
+
prefix_filter_in: request.prefixFilterIn,
|
|
225
|
+
prefix_filter_out: request.prefixFilterOut,
|
|
226
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
227
|
+
tags: request.tags
|
|
228
|
+
});
|
|
229
|
+
const marshalCreateVpnGatewayRequestDualIpTunnel = (request, defaults) => ({
|
|
230
|
+
ipam_ipv4_id: request.ipamIpv4Id,
|
|
231
|
+
ipam_ipv6_id: request.ipamIpv6Id
|
|
232
|
+
});
|
|
233
|
+
const marshalCreateVpnGatewayRequestSingleIpTunnel = (request, defaults) => ({ ipam_id: request.ipamId });
|
|
234
|
+
const marshalCreateVpnGatewayRequestPublicConfig = (request, defaults) => ({
|
|
235
|
+
ipam_ipv4_id: request.ipamIpv4Id,
|
|
236
|
+
ipam_ipv6_id: request.ipamIpv6Id
|
|
237
|
+
});
|
|
238
|
+
const marshalCreateVpnGatewayRequestPublicTunnelConfig = (request, defaults) => ({ ...resolveOneOf([
|
|
239
|
+
{
|
|
240
|
+
param: "single_ipv4_tunnel",
|
|
241
|
+
value: request.singleIpv4Tunnel !== void 0 ? marshalCreateVpnGatewayRequestSingleIpTunnel(request.singleIpv4Tunnel, defaults) : void 0
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
param: "single_ipv6_tunnel",
|
|
245
|
+
value: request.singleIpv6Tunnel !== void 0 ? marshalCreateVpnGatewayRequestSingleIpTunnel(request.singleIpv6Tunnel, defaults) : void 0
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
param: "dual_ipv4v6_tunnel",
|
|
249
|
+
value: request.dualIpv4V6Tunnel !== void 0 ? marshalCreateVpnGatewayRequestDualIpTunnel(request.dualIpv4V6Tunnel, defaults) : void 0
|
|
250
|
+
}
|
|
251
|
+
]) });
|
|
252
|
+
const marshalCreateVpnGatewayRequest = (request, defaults) => ({
|
|
253
|
+
gateway_type: request.gatewayType,
|
|
254
|
+
ipam_private_ipv4_id: request.ipamPrivateIpv4Id,
|
|
255
|
+
ipam_private_ipv6_id: request.ipamPrivateIpv6Id,
|
|
256
|
+
name: request.name,
|
|
257
|
+
private_network_id: request.privateNetworkId,
|
|
258
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
259
|
+
tags: request.tags,
|
|
260
|
+
zone: request.zone ?? defaults.defaultZone,
|
|
261
|
+
...resolveOneOf([{
|
|
262
|
+
param: "public_config",
|
|
263
|
+
value: request.publicConfig !== void 0 ? marshalCreateVpnGatewayRequestPublicConfig(request.publicConfig, defaults) : void 0
|
|
264
|
+
}, {
|
|
265
|
+
param: "public_tunnel_config",
|
|
266
|
+
value: request.publicTunnelConfig !== void 0 ? marshalCreateVpnGatewayRequestPublicTunnelConfig(request.publicTunnelConfig, defaults) : void 0
|
|
267
|
+
}])
|
|
268
|
+
});
|
|
269
|
+
const marshalDetachRoutingPolicyRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
270
|
+
param: "routing_policy_v4",
|
|
271
|
+
value: request.routingPolicyV4
|
|
272
|
+
}, {
|
|
273
|
+
param: "routing_policy_v6",
|
|
274
|
+
value: request.routingPolicyV6
|
|
275
|
+
}]) });
|
|
276
|
+
const marshalRenewConnectionPskRequest = (request, defaults) => ({ generate_revision: request.generateRevision });
|
|
277
|
+
const marshalSetRoutingPolicyRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
278
|
+
param: "routing_policy_v4",
|
|
279
|
+
value: request.routingPolicyV4
|
|
280
|
+
}, {
|
|
281
|
+
param: "routing_policy_v6",
|
|
282
|
+
value: request.routingPolicyV6
|
|
283
|
+
}]) });
|
|
284
|
+
const marshalUpdateConnectionRequest = (request, defaults) => ({
|
|
285
|
+
esp_ciphers: request.espCiphers !== void 0 ? request.espCiphers.map((elt) => marshalConnectionCipher(elt, defaults)) : void 0,
|
|
286
|
+
ikev2_ciphers: request.ikev2Ciphers !== void 0 ? request.ikev2Ciphers.map((elt) => marshalConnectionCipher(elt, defaults)) : void 0,
|
|
287
|
+
initiation_policy: request.initiationPolicy,
|
|
288
|
+
name: request.name,
|
|
289
|
+
tags: request.tags
|
|
290
|
+
});
|
|
291
|
+
const marshalUpdateCustomerGatewayRequest = (request, defaults) => ({
|
|
292
|
+
asn: request.asn,
|
|
293
|
+
ipv4_public: request.ipv4Public,
|
|
294
|
+
ipv6_public: request.ipv6Public,
|
|
295
|
+
name: request.name,
|
|
296
|
+
tags: request.tags
|
|
297
|
+
});
|
|
298
|
+
const marshalUpdateRoutingPolicyRequest = (request, defaults) => ({
|
|
299
|
+
name: request.name,
|
|
300
|
+
prefix_filter_in: request.prefixFilterIn,
|
|
301
|
+
prefix_filter_out: request.prefixFilterOut,
|
|
302
|
+
tags: request.tags
|
|
303
|
+
});
|
|
304
|
+
const marshalUpdateVpnGatewayRequest = (request, defaults) => ({
|
|
305
|
+
name: request.name,
|
|
306
|
+
tags: request.tags
|
|
307
|
+
});
|
|
308
|
+
//#endregion
|
|
309
|
+
export { marshalChangeConnectionPskRequest, marshalCreateConnectionRequest, marshalCreateCustomerGatewayRequest, marshalCreateRoutingPolicyRequest, marshalCreateVpnGatewayRequest, marshalDetachRoutingPolicyRequest, marshalRenewConnectionPskRequest, marshalSetRoutingPolicyRequest, marshalUpdateConnectionRequest, marshalUpdateCustomerGatewayRequest, marshalUpdateRoutingPolicyRequest, marshalUpdateVpnGatewayRequest, unmarshalChangeConnectionPskResponse, 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
|
+
const 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 };
|