@scaleway/sdk-vpc 2.11.0 → 2.12.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/v2/api.gen.d.ts +285 -0
- package/dist/v2/api.gen.js +214 -0
- package/dist/v2/index.gen.d.ts +4 -0
- package/dist/v2/index.gen.js +39 -0
- package/dist/v2/marshalling.gen.d.ts +30 -0
- package/dist/v2/marshalling.gen.js +293 -0
- package/dist/v2/metadata.gen.d.ts +130 -0
- package/dist/v2/metadata.gen.js +145 -0
- package/dist/v2/types.gen.d.ts +1156 -0
- package/dist/v2/types.gen.js +0 -0
- package/dist/v2/validation-rules.gen.d.ts +46 -0
- package/dist/v2/validation-rules.gen.js +30 -0
- package/package.json +5 -5
- package/LICENSE +0 -191
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
+
import randomName from "@scaleway/random-name";
|
|
3
|
+
//#region src/v2/marshalling.gen.ts
|
|
4
|
+
const unmarshalSubnet = (data) => {
|
|
5
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Subnet' failed as data isn't a dictionary.`);
|
|
6
|
+
return {
|
|
7
|
+
createdAt: unmarshalDate(data.created_at),
|
|
8
|
+
id: data.id,
|
|
9
|
+
privateNetworkId: data.private_network_id,
|
|
10
|
+
projectId: data.project_id,
|
|
11
|
+
region: data.region,
|
|
12
|
+
subnet: data.subnet,
|
|
13
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
14
|
+
vpcId: data.vpc_id
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
const unmarshalPrivateNetwork = (data) => {
|
|
18
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`);
|
|
19
|
+
return {
|
|
20
|
+
createdAt: unmarshalDate(data.created_at),
|
|
21
|
+
defaultRoutePropagationEnabled: data.default_route_propagation_enabled,
|
|
22
|
+
dhcpEnabled: data.dhcp_enabled,
|
|
23
|
+
hasS3Integration: data.has_s3_integration,
|
|
24
|
+
id: data.id,
|
|
25
|
+
name: data.name,
|
|
26
|
+
organizationId: data.organization_id,
|
|
27
|
+
projectId: data.project_id,
|
|
28
|
+
region: data.region,
|
|
29
|
+
subnets: unmarshalArrayOfObject(data.subnets, unmarshalSubnet),
|
|
30
|
+
tags: data.tags,
|
|
31
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
32
|
+
vpcId: data.vpc_id
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
const unmarshalRoute = (data) => {
|
|
36
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Route' failed as data isn't a dictionary.`);
|
|
37
|
+
return {
|
|
38
|
+
createdAt: unmarshalDate(data.created_at),
|
|
39
|
+
description: data.description,
|
|
40
|
+
destination: data.destination,
|
|
41
|
+
id: data.id,
|
|
42
|
+
isReadOnly: data.is_read_only,
|
|
43
|
+
nexthopPrivateNetworkId: data.nexthop_private_network_id,
|
|
44
|
+
nexthopResourceId: data.nexthop_resource_id,
|
|
45
|
+
nexthopVpcConnectorId: data.nexthop_vpc_connector_id,
|
|
46
|
+
region: data.region,
|
|
47
|
+
tags: data.tags,
|
|
48
|
+
type: data.type ? data.type : void 0,
|
|
49
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
50
|
+
vpcId: data.vpc_id
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
const unmarshalIngressRule = (data) => {
|
|
54
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'IngressRule' failed as data isn't a dictionary.`);
|
|
55
|
+
return {
|
|
56
|
+
createdAt: unmarshalDate(data.created_at),
|
|
57
|
+
description: data.description,
|
|
58
|
+
id: data.id,
|
|
59
|
+
isIpv6: data.is_ipv6,
|
|
60
|
+
nexthopPrivateNetworkId: data.nexthop_private_network_id,
|
|
61
|
+
nexthopResourceIp: data.nexthop_resource_ip,
|
|
62
|
+
organizationId: data.organization_id,
|
|
63
|
+
projectId: data.project_id,
|
|
64
|
+
region: data.region,
|
|
65
|
+
source: data.source,
|
|
66
|
+
tags: data.tags,
|
|
67
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
68
|
+
vpcId: data.vpc_id
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
const unmarshalVPCConnectorPeerInfo = (data) => {
|
|
72
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VPCConnectorPeerInfo' failed as data isn't a dictionary.`);
|
|
73
|
+
return {
|
|
74
|
+
organizationId: data.organization_id,
|
|
75
|
+
projectId: data.project_id,
|
|
76
|
+
vpcName: data.vpc_name
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
const unmarshalVPCConnector = (data) => {
|
|
80
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VPCConnector' failed as data isn't a dictionary.`);
|
|
81
|
+
return {
|
|
82
|
+
createdAt: unmarshalDate(data.created_at),
|
|
83
|
+
id: data.id,
|
|
84
|
+
name: data.name,
|
|
85
|
+
organizationId: data.organization_id,
|
|
86
|
+
peerInfo: data.peer_info ? unmarshalVPCConnectorPeerInfo(data.peer_info) : void 0,
|
|
87
|
+
projectId: data.project_id,
|
|
88
|
+
region: data.region,
|
|
89
|
+
status: data.status,
|
|
90
|
+
tags: data.tags,
|
|
91
|
+
targetVpcId: data.target_vpc_id,
|
|
92
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
93
|
+
vpcId: data.vpc_id
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
const unmarshalVPC = (data) => {
|
|
97
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VPC' failed as data isn't a dictionary.`);
|
|
98
|
+
return {
|
|
99
|
+
createdAt: unmarshalDate(data.created_at),
|
|
100
|
+
customRoutesPropagationEnabled: data.custom_routes_propagation_enabled,
|
|
101
|
+
id: data.id,
|
|
102
|
+
isDefault: data.is_default,
|
|
103
|
+
name: data.name,
|
|
104
|
+
organizationId: data.organization_id,
|
|
105
|
+
privateNetworkCount: data.private_network_count,
|
|
106
|
+
projectId: data.project_id,
|
|
107
|
+
region: data.region,
|
|
108
|
+
routingEnabled: data.routing_enabled,
|
|
109
|
+
s3IntegrationEnabled: data.s3_integration_enabled,
|
|
110
|
+
tags: data.tags,
|
|
111
|
+
transitivityEnabled: data.transitivity_enabled,
|
|
112
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
const unmarshalAddPrivateNetworkS3EndpointResponse = (data) => {
|
|
116
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddPrivateNetworkS3EndpointResponse' failed as data isn't a dictionary.`);
|
|
117
|
+
return {
|
|
118
|
+
privateNetworkIds: data.private_network_ids,
|
|
119
|
+
vpcId: data.vpc_id
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
const unmarshalAclRule = (data) => {
|
|
123
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AclRule' failed as data isn't a dictionary.`);
|
|
124
|
+
return {
|
|
125
|
+
action: data.action,
|
|
126
|
+
description: data.description,
|
|
127
|
+
destination: data.destination,
|
|
128
|
+
dstPortHigh: data.dst_port_high,
|
|
129
|
+
dstPortLow: data.dst_port_low,
|
|
130
|
+
protocol: data.protocol,
|
|
131
|
+
source: data.source,
|
|
132
|
+
srcPortHigh: data.src_port_high,
|
|
133
|
+
srcPortLow: data.src_port_low
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
const unmarshalGetAclResponse = (data) => {
|
|
137
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetAclResponse' failed as data isn't a dictionary.`);
|
|
138
|
+
return {
|
|
139
|
+
defaultPolicy: data.default_policy,
|
|
140
|
+
rules: unmarshalArrayOfObject(data.rules, unmarshalAclRule)
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
const unmarshalListIngressRulesResponse = (data) => {
|
|
144
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIngressRulesResponse' failed as data isn't a dictionary.`);
|
|
145
|
+
return {
|
|
146
|
+
rules: unmarshalArrayOfObject(data.rules, unmarshalIngressRule),
|
|
147
|
+
totalCount: data.total_count
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
const unmarshalListPrivateNetworksResponse = (data) => {
|
|
151
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPrivateNetworksResponse' failed as data isn't a dictionary.`);
|
|
152
|
+
return {
|
|
153
|
+
privateNetworks: unmarshalArrayOfObject(data.private_networks, unmarshalPrivateNetwork),
|
|
154
|
+
totalCount: data.total_count
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
const unmarshalListSubnetOverlapsResponseSubnetOverlap = (data) => {
|
|
158
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSubnetOverlapsResponseSubnetOverlap' failed as data isn't a dictionary.`);
|
|
159
|
+
return {
|
|
160
|
+
subnet: data.subnet,
|
|
161
|
+
subnetId: data.subnet_id,
|
|
162
|
+
targetSubnet: data.target_subnet,
|
|
163
|
+
targetSubnetId: data.target_subnet_id
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
const unmarshalListSubnetOverlapsResponse = (data) => {
|
|
167
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSubnetOverlapsResponse' failed as data isn't a dictionary.`);
|
|
168
|
+
return {
|
|
169
|
+
subnetOverlaps: unmarshalArrayOfObject(data.subnet_overlaps, unmarshalListSubnetOverlapsResponseSubnetOverlap),
|
|
170
|
+
totalCount: data.total_count
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
const unmarshalListSubnetsResponse = (data) => {
|
|
174
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSubnetsResponse' failed as data isn't a dictionary.`);
|
|
175
|
+
return {
|
|
176
|
+
subnets: unmarshalArrayOfObject(data.subnets, unmarshalSubnet),
|
|
177
|
+
totalCount: data.total_count
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
const unmarshalListVPCConnectorsResponse = (data) => {
|
|
181
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVPCConnectorsResponse' failed as data isn't a dictionary.`);
|
|
182
|
+
return {
|
|
183
|
+
totalCount: data.total_count,
|
|
184
|
+
vpcConnectors: unmarshalArrayOfObject(data.vpc_connectors, unmarshalVPCConnector)
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
const unmarshalListVPCsResponse = (data) => {
|
|
188
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVPCsResponse' failed as data isn't a dictionary.`);
|
|
189
|
+
return {
|
|
190
|
+
totalCount: data.total_count,
|
|
191
|
+
vpcs: unmarshalArrayOfObject(data.vpcs, unmarshalVPC)
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
const unmarshalSetAclResponse = (data) => {
|
|
195
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetAclResponse' failed as data isn't a dictionary.`);
|
|
196
|
+
return {
|
|
197
|
+
defaultPolicy: data.default_policy,
|
|
198
|
+
rules: unmarshalArrayOfObject(data.rules, unmarshalAclRule)
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
const unmarshalSetPrivateNetworksS3EndpointResponse = (data) => {
|
|
202
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetPrivateNetworksS3EndpointResponse' failed as data isn't a dictionary.`);
|
|
203
|
+
return {
|
|
204
|
+
privateNetworkIds: data.private_network_ids,
|
|
205
|
+
vpcId: data.vpc_id
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
const marshalAddPrivateNetworkS3EndpointRequest = (request, defaults) => ({ private_network_id: request.privateNetworkId });
|
|
209
|
+
const marshalCreateIngressRuleRequest = (request, defaults) => ({
|
|
210
|
+
description: request.description,
|
|
211
|
+
nexthop_private_network_id: request.nexthopPrivateNetworkId,
|
|
212
|
+
nexthop_resource_ip: request.nexthopResourceIp,
|
|
213
|
+
source: request.source,
|
|
214
|
+
tags: request.tags,
|
|
215
|
+
vpc_id: request.vpcId
|
|
216
|
+
});
|
|
217
|
+
const marshalCreatePrivateNetworkRequest = (request, defaults) => ({
|
|
218
|
+
default_route_propagation_enabled: request.defaultRoutePropagationEnabled,
|
|
219
|
+
name: request.name || randomName("pn"),
|
|
220
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
221
|
+
subnets: request.subnets,
|
|
222
|
+
tags: request.tags,
|
|
223
|
+
vpc_id: request.vpcId
|
|
224
|
+
});
|
|
225
|
+
const marshalCreateRouteRequest = (request, defaults) => ({
|
|
226
|
+
description: request.description,
|
|
227
|
+
destination: request.destination,
|
|
228
|
+
nexthop_private_network_id: request.nexthopPrivateNetworkId,
|
|
229
|
+
nexthop_resource_id: request.nexthopResourceId,
|
|
230
|
+
nexthop_vpc_connector_id: request.nexthopVpcConnectorId,
|
|
231
|
+
tags: request.tags,
|
|
232
|
+
vpc_id: request.vpcId
|
|
233
|
+
});
|
|
234
|
+
const marshalCreateVPCConnectorRequest = (request, defaults) => ({
|
|
235
|
+
name: request.name || randomName("VPCConnector"),
|
|
236
|
+
tags: request.tags,
|
|
237
|
+
target_vpc_id: request.targetVpcId,
|
|
238
|
+
vpc_id: request.vpcId
|
|
239
|
+
});
|
|
240
|
+
const marshalCreateVPCRequest = (request, defaults) => ({
|
|
241
|
+
enable_routing: request.enableRouting,
|
|
242
|
+
enable_transitivity: request.enableTransitivity,
|
|
243
|
+
name: request.name || randomName("vpc"),
|
|
244
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
245
|
+
tags: request.tags
|
|
246
|
+
});
|
|
247
|
+
const marshalAclRule = (request, defaults) => ({
|
|
248
|
+
action: request.action,
|
|
249
|
+
description: request.description,
|
|
250
|
+
destination: request.destination,
|
|
251
|
+
dst_port_high: request.dstPortHigh,
|
|
252
|
+
dst_port_low: request.dstPortLow,
|
|
253
|
+
protocol: request.protocol,
|
|
254
|
+
source: request.source,
|
|
255
|
+
src_port_high: request.srcPortHigh,
|
|
256
|
+
src_port_low: request.srcPortLow
|
|
257
|
+
});
|
|
258
|
+
const marshalSetAclRequest = (request, defaults) => ({
|
|
259
|
+
default_policy: request.defaultPolicy,
|
|
260
|
+
is_ipv6: request.isIpv6,
|
|
261
|
+
rules: request.rules.map((elt) => marshalAclRule(elt, defaults))
|
|
262
|
+
});
|
|
263
|
+
const marshalSetPrivateNetworksS3EndpointRequest = (request, defaults) => ({ private_network_ids: request.privateNetworkIds });
|
|
264
|
+
const marshalUpdateIngressRuleRequest = (request, defaults) => ({
|
|
265
|
+
description: request.description,
|
|
266
|
+
nexthop_private_network_id: request.nexthopPrivateNetworkId,
|
|
267
|
+
nexthop_resource_ip: request.nexthopResourceIp,
|
|
268
|
+
source: request.source,
|
|
269
|
+
tags: request.tags
|
|
270
|
+
});
|
|
271
|
+
const marshalUpdatePrivateNetworkRequest = (request, defaults) => ({
|
|
272
|
+
default_route_propagation_enabled: request.defaultRoutePropagationEnabled,
|
|
273
|
+
name: request.name,
|
|
274
|
+
tags: request.tags
|
|
275
|
+
});
|
|
276
|
+
const marshalUpdateRouteRequest = (request, defaults) => ({
|
|
277
|
+
description: request.description,
|
|
278
|
+
destination: request.destination,
|
|
279
|
+
nexthop_private_network_id: request.nexthopPrivateNetworkId,
|
|
280
|
+
nexthop_resource_id: request.nexthopResourceId,
|
|
281
|
+
nexthop_vpc_connector_id: request.nexthopVpcConnectorId,
|
|
282
|
+
tags: request.tags
|
|
283
|
+
});
|
|
284
|
+
const marshalUpdateVPCConnectorRequest = (request, defaults) => ({
|
|
285
|
+
name: request.name,
|
|
286
|
+
tags: request.tags
|
|
287
|
+
});
|
|
288
|
+
const marshalUpdateVPCRequest = (request, defaults) => ({
|
|
289
|
+
name: request.name,
|
|
290
|
+
tags: request.tags
|
|
291
|
+
});
|
|
292
|
+
//#endregion
|
|
293
|
+
export { marshalAddPrivateNetworkS3EndpointRequest, marshalCreateIngressRuleRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalSetAclRequest, marshalSetPrivateNetworksS3EndpointRequest, marshalUpdateIngressRuleRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAddPrivateNetworkS3EndpointResponse, unmarshalGetAclResponse, unmarshalIngressRule, unmarshalListIngressRulesResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetOverlapsResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalSetPrivateNetworksS3EndpointResponse, unmarshalVPC, unmarshalVPCConnector };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: 'vpc';
|
|
3
|
+
readonly version: 'v2';
|
|
4
|
+
readonly folderName: 'vpcv2';
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: 'API';
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: 'listVPCs';
|
|
9
|
+
readonly protoName: 'ListVPCs';
|
|
10
|
+
readonly paramsType: 'ListVPCsRequest';
|
|
11
|
+
readonly returnType: 'ListVPCsResponse';
|
|
12
|
+
readonly isList: true;
|
|
13
|
+
readonly paginationType: 'offset';
|
|
14
|
+
readonly pageParamKey: 'page';
|
|
15
|
+
readonly listItemType: 'VPC';
|
|
16
|
+
readonly isPrivate: false;
|
|
17
|
+
readonly description: '"';
|
|
18
|
+
}, {
|
|
19
|
+
readonly methodName: 'getVPC';
|
|
20
|
+
readonly protoName: 'GetVPC';
|
|
21
|
+
readonly paramsType: 'GetVPCRequest';
|
|
22
|
+
readonly returnType: 'VPC';
|
|
23
|
+
readonly isList: false;
|
|
24
|
+
readonly paginationType: 'none';
|
|
25
|
+
readonly isPrivate: false;
|
|
26
|
+
readonly description: '"';
|
|
27
|
+
}, {
|
|
28
|
+
readonly methodName: 'listPrivateNetworks';
|
|
29
|
+
readonly protoName: 'ListPrivateNetworks';
|
|
30
|
+
readonly paramsType: 'ListPrivateNetworksRequest';
|
|
31
|
+
readonly returnType: 'ListPrivateNetworksResponse';
|
|
32
|
+
readonly isList: true;
|
|
33
|
+
readonly paginationType: 'offset';
|
|
34
|
+
readonly pageParamKey: 'page';
|
|
35
|
+
readonly listItemType: 'PrivateNetwork';
|
|
36
|
+
readonly isPrivate: false;
|
|
37
|
+
readonly description: '"';
|
|
38
|
+
}, {
|
|
39
|
+
readonly methodName: 'getPrivateNetwork';
|
|
40
|
+
readonly protoName: 'GetPrivateNetwork';
|
|
41
|
+
readonly paramsType: 'GetPrivateNetworkRequest';
|
|
42
|
+
readonly returnType: 'PrivateNetwork';
|
|
43
|
+
readonly isList: false;
|
|
44
|
+
readonly paginationType: 'none';
|
|
45
|
+
readonly isPrivate: false;
|
|
46
|
+
readonly description: '"';
|
|
47
|
+
}, {
|
|
48
|
+
readonly methodName: 'listSubnets';
|
|
49
|
+
readonly protoName: 'ListSubnets';
|
|
50
|
+
readonly paramsType: 'ListSubnetsRequest';
|
|
51
|
+
readonly returnType: 'ListSubnetsResponse';
|
|
52
|
+
readonly isList: true;
|
|
53
|
+
readonly paginationType: 'offset';
|
|
54
|
+
readonly pageParamKey: 'page';
|
|
55
|
+
readonly listItemType: 'Subnet';
|
|
56
|
+
readonly isPrivate: false;
|
|
57
|
+
readonly description: '"';
|
|
58
|
+
}, {
|
|
59
|
+
readonly methodName: 'getRoute';
|
|
60
|
+
readonly protoName: 'GetRoute';
|
|
61
|
+
readonly paramsType: 'GetRouteRequest';
|
|
62
|
+
readonly returnType: 'Route';
|
|
63
|
+
readonly isList: false;
|
|
64
|
+
readonly paginationType: 'none';
|
|
65
|
+
readonly isPrivate: false;
|
|
66
|
+
readonly description: '"';
|
|
67
|
+
}, {
|
|
68
|
+
readonly methodName: 'getAcl';
|
|
69
|
+
readonly protoName: 'GetAcl';
|
|
70
|
+
readonly paramsType: 'GetAclRequest';
|
|
71
|
+
readonly returnType: 'GetAclResponse';
|
|
72
|
+
readonly isList: false;
|
|
73
|
+
readonly paginationType: 'none';
|
|
74
|
+
readonly isPrivate: false;
|
|
75
|
+
readonly description: '"';
|
|
76
|
+
}, {
|
|
77
|
+
readonly methodName: 'listVPCConnectors';
|
|
78
|
+
readonly protoName: 'ListVPCConnectors';
|
|
79
|
+
readonly paramsType: 'ListVPCConnectorsRequest';
|
|
80
|
+
readonly returnType: 'ListVPCConnectorsResponse';
|
|
81
|
+
readonly isList: true;
|
|
82
|
+
readonly paginationType: 'offset';
|
|
83
|
+
readonly pageParamKey: 'page';
|
|
84
|
+
readonly listItemType: 'VPCConnector';
|
|
85
|
+
readonly isPrivate: false;
|
|
86
|
+
readonly description: '"';
|
|
87
|
+
}, {
|
|
88
|
+
readonly methodName: 'getVPCConnector';
|
|
89
|
+
readonly protoName: 'GetVPCConnector';
|
|
90
|
+
readonly paramsType: 'GetVPCConnectorRequest';
|
|
91
|
+
readonly returnType: 'VPCConnector';
|
|
92
|
+
readonly isList: false;
|
|
93
|
+
readonly paginationType: 'none';
|
|
94
|
+
readonly isPrivate: false;
|
|
95
|
+
readonly description: '"';
|
|
96
|
+
}, {
|
|
97
|
+
readonly methodName: 'listSubnetOverlaps';
|
|
98
|
+
readonly protoName: 'ListSubnetOverlaps';
|
|
99
|
+
readonly paramsType: 'ListSubnetOverlapsRequest';
|
|
100
|
+
readonly returnType: 'ListSubnetOverlapsResponse';
|
|
101
|
+
readonly isList: true;
|
|
102
|
+
readonly paginationType: 'offset';
|
|
103
|
+
readonly pageParamKey: 'page';
|
|
104
|
+
readonly listItemType: 'ListSubnetOverlapsResponseSubnetOverlap';
|
|
105
|
+
readonly isPrivate: false;
|
|
106
|
+
readonly description: '"';
|
|
107
|
+
}, {
|
|
108
|
+
readonly methodName: 'listIngressRules';
|
|
109
|
+
readonly protoName: 'ListIngressRules';
|
|
110
|
+
readonly paramsType: 'ListIngressRulesRequest';
|
|
111
|
+
readonly returnType: 'ListIngressRulesResponse';
|
|
112
|
+
readonly isList: true;
|
|
113
|
+
readonly paginationType: 'offset';
|
|
114
|
+
readonly pageParamKey: 'page';
|
|
115
|
+
readonly listItemType: 'IngressRule';
|
|
116
|
+
readonly isPrivate: false;
|
|
117
|
+
readonly description: '"';
|
|
118
|
+
}, {
|
|
119
|
+
readonly methodName: 'getIngressRule';
|
|
120
|
+
readonly protoName: 'GetIngressRule';
|
|
121
|
+
readonly paramsType: 'GetIngressRuleRequest';
|
|
122
|
+
readonly returnType: 'IngressRule';
|
|
123
|
+
readonly isList: false;
|
|
124
|
+
readonly paginationType: 'none';
|
|
125
|
+
readonly isPrivate: false;
|
|
126
|
+
readonly description: '"';
|
|
127
|
+
}];
|
|
128
|
+
}];
|
|
129
|
+
};
|
|
130
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
//#region src/v2/metadata.gen.ts
|
|
2
|
+
const queriesMetadata = {
|
|
3
|
+
namespace: "vpc",
|
|
4
|
+
version: "v2",
|
|
5
|
+
folderName: "vpcv2",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "listVPCs",
|
|
11
|
+
protoName: "ListVPCs",
|
|
12
|
+
paramsType: "ListVPCsRequest",
|
|
13
|
+
returnType: "ListVPCsResponse",
|
|
14
|
+
isList: true,
|
|
15
|
+
paginationType: "offset",
|
|
16
|
+
pageParamKey: "page",
|
|
17
|
+
listItemType: "VPC",
|
|
18
|
+
isPrivate: false,
|
|
19
|
+
description: "\""
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
methodName: "getVPC",
|
|
23
|
+
protoName: "GetVPC",
|
|
24
|
+
paramsType: "GetVPCRequest",
|
|
25
|
+
returnType: "VPC",
|
|
26
|
+
isList: false,
|
|
27
|
+
paginationType: "none",
|
|
28
|
+
isPrivate: false,
|
|
29
|
+
description: "\""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
methodName: "listPrivateNetworks",
|
|
33
|
+
protoName: "ListPrivateNetworks",
|
|
34
|
+
paramsType: "ListPrivateNetworksRequest",
|
|
35
|
+
returnType: "ListPrivateNetworksResponse",
|
|
36
|
+
isList: true,
|
|
37
|
+
paginationType: "offset",
|
|
38
|
+
pageParamKey: "page",
|
|
39
|
+
listItemType: "PrivateNetwork",
|
|
40
|
+
isPrivate: false,
|
|
41
|
+
description: "\""
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
methodName: "getPrivateNetwork",
|
|
45
|
+
protoName: "GetPrivateNetwork",
|
|
46
|
+
paramsType: "GetPrivateNetworkRequest",
|
|
47
|
+
returnType: "PrivateNetwork",
|
|
48
|
+
isList: false,
|
|
49
|
+
paginationType: "none",
|
|
50
|
+
isPrivate: false,
|
|
51
|
+
description: "\""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
methodName: "listSubnets",
|
|
55
|
+
protoName: "ListSubnets",
|
|
56
|
+
paramsType: "ListSubnetsRequest",
|
|
57
|
+
returnType: "ListSubnetsResponse",
|
|
58
|
+
isList: true,
|
|
59
|
+
paginationType: "offset",
|
|
60
|
+
pageParamKey: "page",
|
|
61
|
+
listItemType: "Subnet",
|
|
62
|
+
isPrivate: false,
|
|
63
|
+
description: "\""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
methodName: "getRoute",
|
|
67
|
+
protoName: "GetRoute",
|
|
68
|
+
paramsType: "GetRouteRequest",
|
|
69
|
+
returnType: "Route",
|
|
70
|
+
isList: false,
|
|
71
|
+
paginationType: "none",
|
|
72
|
+
isPrivate: false,
|
|
73
|
+
description: "\""
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
methodName: "getAcl",
|
|
77
|
+
protoName: "GetAcl",
|
|
78
|
+
paramsType: "GetAclRequest",
|
|
79
|
+
returnType: "GetAclResponse",
|
|
80
|
+
isList: false,
|
|
81
|
+
paginationType: "none",
|
|
82
|
+
isPrivate: false,
|
|
83
|
+
description: "\""
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
methodName: "listVPCConnectors",
|
|
87
|
+
protoName: "ListVPCConnectors",
|
|
88
|
+
paramsType: "ListVPCConnectorsRequest",
|
|
89
|
+
returnType: "ListVPCConnectorsResponse",
|
|
90
|
+
isList: true,
|
|
91
|
+
paginationType: "offset",
|
|
92
|
+
pageParamKey: "page",
|
|
93
|
+
listItemType: "VPCConnector",
|
|
94
|
+
isPrivate: false,
|
|
95
|
+
description: "\""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
methodName: "getVPCConnector",
|
|
99
|
+
protoName: "GetVPCConnector",
|
|
100
|
+
paramsType: "GetVPCConnectorRequest",
|
|
101
|
+
returnType: "VPCConnector",
|
|
102
|
+
isList: false,
|
|
103
|
+
paginationType: "none",
|
|
104
|
+
isPrivate: false,
|
|
105
|
+
description: "\""
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
methodName: "listSubnetOverlaps",
|
|
109
|
+
protoName: "ListSubnetOverlaps",
|
|
110
|
+
paramsType: "ListSubnetOverlapsRequest",
|
|
111
|
+
returnType: "ListSubnetOverlapsResponse",
|
|
112
|
+
isList: true,
|
|
113
|
+
paginationType: "offset",
|
|
114
|
+
pageParamKey: "page",
|
|
115
|
+
listItemType: "ListSubnetOverlapsResponseSubnetOverlap",
|
|
116
|
+
isPrivate: false,
|
|
117
|
+
description: "\""
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
methodName: "listIngressRules",
|
|
121
|
+
protoName: "ListIngressRules",
|
|
122
|
+
paramsType: "ListIngressRulesRequest",
|
|
123
|
+
returnType: "ListIngressRulesResponse",
|
|
124
|
+
isList: true,
|
|
125
|
+
paginationType: "offset",
|
|
126
|
+
pageParamKey: "page",
|
|
127
|
+
listItemType: "IngressRule",
|
|
128
|
+
isPrivate: false,
|
|
129
|
+
description: "\""
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
methodName: "getIngressRule",
|
|
133
|
+
protoName: "GetIngressRule",
|
|
134
|
+
paramsType: "GetIngressRuleRequest",
|
|
135
|
+
returnType: "IngressRule",
|
|
136
|
+
isList: false,
|
|
137
|
+
paginationType: "none",
|
|
138
|
+
isPrivate: false,
|
|
139
|
+
description: "\""
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}]
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
export { queriesMetadata };
|