@scaleway/sdk-vpc 2.3.1 → 2.3.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/v2/api.gen.d.ts +39 -1
- package/dist/v2/api.gen.js +61 -4
- package/dist/v2/index.gen.d.ts +1 -1
- package/dist/v2/index.gen.js +9 -3
- package/dist/v2/marshalling.gen.d.ts +5 -1
- package/dist/v2/marshalling.gen.js +66 -22
- package/dist/v2/types.gen.d.ts +167 -0
- package/dist/v2/types.gen.js +0 -0
- package/dist/v2/validation-rules.gen.js +5 -3
- 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/v2/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ApiLocality } from '@scaleway/sdk-client';
|
|
2
2
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
|
-
import type { AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, DeleteVPCRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetPrivateNetworkRequest, GetRouteRequest, GetVPCRequest, ListPrivateNetworksRequest, ListPrivateNetworksResponse, ListSubnetsRequest, ListSubnetsResponse, ListVPCsRequest, ListVPCsResponse, PrivateNetwork, Route, SetAclRequest, SetAclResponse, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCRequest, VPC } from './types.gen.js';
|
|
3
|
+
import type { AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCConnectorRequest, CreateVPCRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, DeleteVPCConnectorRequest, DeleteVPCRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetPrivateNetworkRequest, GetRouteRequest, GetVPCConnectorRequest, GetVPCRequest, ListPrivateNetworksRequest, ListPrivateNetworksResponse, ListSubnetsRequest, ListSubnetsResponse, ListVPCConnectorsRequest, ListVPCConnectorsResponse, ListVPCsRequest, ListVPCsResponse, PrivateNetwork, Route, SetAclRequest, SetAclResponse, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCConnectorRequest, UpdateVPCRequest, VPC, VPCConnector } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* VPC API.
|
|
6
6
|
|
|
@@ -175,4 +175,42 @@ export declare class API extends ParentAPI {
|
|
|
175
175
|
* @returns A Promise of SetAclResponse
|
|
176
176
|
*/
|
|
177
177
|
setAcl: (request: Readonly<SetAclRequest>) => Promise<SetAclResponse>;
|
|
178
|
+
protected pageOfListVPCConnectors: (request?: Readonly<ListVPCConnectorsRequest>) => Promise<ListVPCConnectorsResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* List VPC connectors. List existing VPC connectors in the specified region.
|
|
181
|
+
*
|
|
182
|
+
* @param request - The request {@link ListVPCConnectorsRequest}
|
|
183
|
+
* @returns A Promise of ListVPCConnectorsResponse
|
|
184
|
+
*/
|
|
185
|
+
listVPCConnectors: (request?: Readonly<ListVPCConnectorsRequest>) => Promise<ListVPCConnectorsResponse> & {
|
|
186
|
+
all: () => Promise<VPCConnector[]>;
|
|
187
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<VPCConnector[], void, void>;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Create a VPC connector. Create a new VPC connector in the specified region.
|
|
191
|
+
*
|
|
192
|
+
* @param request - The request {@link CreateVPCConnectorRequest}
|
|
193
|
+
* @returns A Promise of VPCConnector
|
|
194
|
+
*/
|
|
195
|
+
createVPCConnector: (request: Readonly<CreateVPCConnectorRequest>) => Promise<VPCConnector>;
|
|
196
|
+
/**
|
|
197
|
+
* Get a VPC connector. Retrieve details of an existing VPC connector, specified by its VPC connector ID.
|
|
198
|
+
*
|
|
199
|
+
* @param request - The request {@link GetVPCConnectorRequest}
|
|
200
|
+
* @returns A Promise of VPCConnector
|
|
201
|
+
*/
|
|
202
|
+
getVPCConnector: (request: Readonly<GetVPCConnectorRequest>) => Promise<VPCConnector>;
|
|
203
|
+
/**
|
|
204
|
+
* Update VPC connector. Update parameters including name and tags of the specified VPC connector.
|
|
205
|
+
*
|
|
206
|
+
* @param request - The request {@link UpdateVPCConnectorRequest}
|
|
207
|
+
* @returns A Promise of VPCConnector
|
|
208
|
+
*/
|
|
209
|
+
updateVPCConnector: (request: Readonly<UpdateVPCConnectorRequest>) => Promise<VPCConnector>;
|
|
210
|
+
/**
|
|
211
|
+
* Delete a VPC connector. Delete a VPC connector specified by its VPC connector ID.
|
|
212
|
+
*
|
|
213
|
+
* @param request - The request {@link DeleteVPCConnectorRequest}
|
|
214
|
+
*/
|
|
215
|
+
deleteVPCConnector: (request: Readonly<DeleteVPCConnectorRequest>) => Promise<void>;
|
|
178
216
|
}
|
package/dist/v2/api.gen.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { marshalAddSubnetsRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCRequest, marshalDeleteSubnetsRequest, marshalSetAclRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCRequest, unmarshalAddSubnetsResponse, unmarshalDeleteSubnetsResponse, unmarshalGetAclResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalVPC } from "./marshalling.gen.js";
|
|
2
|
-
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
1
|
+
import { marshalAddSubnetsRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalDeleteSubnetsRequest, marshalSetAclRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAddSubnetsResponse, unmarshalDeleteSubnetsResponse, unmarshalGetAclResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalVPC, unmarshalVPCConnector } from "./marshalling.gen.js";
|
|
2
|
+
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v2/api.gen.ts
|
|
3
4
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
4
5
|
/**
|
|
5
6
|
* VPC API.
|
|
6
7
|
|
|
7
8
|
This API allows you to manage your Virtual Private Clouds (VPCs) and Private Networks.
|
|
8
9
|
*/
|
|
9
|
-
var API
|
|
10
|
+
var API = class extends API$1 {
|
|
10
11
|
/**
|
|
11
12
|
* Locality of this API.
|
|
12
13
|
* type ∈ {'zone','region','global','unspecified'}
|
|
@@ -264,5 +265,61 @@ var API$1 = class extends API {
|
|
|
264
265
|
method: "PUT",
|
|
265
266
|
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam("vpcId", request.vpcId)}/acl-rules`
|
|
266
267
|
}, unmarshalSetAclResponse);
|
|
268
|
+
pageOfListVPCConnectors = (request = {}) => this.client.fetch({
|
|
269
|
+
method: "GET",
|
|
270
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpc-connectors`,
|
|
271
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["status", request.status], ["tags", request.tags], ["target_vpc_id", request.targetVpcId], ["vpc_id", request.vpcId])
|
|
272
|
+
}, unmarshalListVPCConnectorsResponse);
|
|
273
|
+
/**
|
|
274
|
+
* List VPC connectors. List existing VPC connectors in the specified region.
|
|
275
|
+
*
|
|
276
|
+
* @param request - The request {@link ListVPCConnectorsRequest}
|
|
277
|
+
* @returns A Promise of ListVPCConnectorsResponse
|
|
278
|
+
*/
|
|
279
|
+
listVPCConnectors = (request = {}) => enrichForPagination("vpcConnectors", this.pageOfListVPCConnectors, request);
|
|
280
|
+
/**
|
|
281
|
+
* Create a VPC connector. Create a new VPC connector in the specified region.
|
|
282
|
+
*
|
|
283
|
+
* @param request - The request {@link CreateVPCConnectorRequest}
|
|
284
|
+
* @returns A Promise of VPCConnector
|
|
285
|
+
*/
|
|
286
|
+
createVPCConnector = (request) => this.client.fetch({
|
|
287
|
+
body: JSON.stringify(marshalCreateVPCConnectorRequest(request, this.client.settings)),
|
|
288
|
+
headers: jsonContentHeaders,
|
|
289
|
+
method: "POST",
|
|
290
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpc-connectors`
|
|
291
|
+
}, unmarshalVPCConnector);
|
|
292
|
+
/**
|
|
293
|
+
* Get a VPC connector. Retrieve details of an existing VPC connector, specified by its VPC connector ID.
|
|
294
|
+
*
|
|
295
|
+
* @param request - The request {@link GetVPCConnectorRequest}
|
|
296
|
+
* @returns A Promise of VPCConnector
|
|
297
|
+
*/
|
|
298
|
+
getVPCConnector = (request) => this.client.fetch({
|
|
299
|
+
method: "GET",
|
|
300
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpc-connectors/${validatePathParam("vpcConnectorId", request.vpcConnectorId)}`
|
|
301
|
+
}, unmarshalVPCConnector);
|
|
302
|
+
/**
|
|
303
|
+
* Update VPC connector. Update parameters including name and tags of the specified VPC connector.
|
|
304
|
+
*
|
|
305
|
+
* @param request - The request {@link UpdateVPCConnectorRequest}
|
|
306
|
+
* @returns A Promise of VPCConnector
|
|
307
|
+
*/
|
|
308
|
+
updateVPCConnector = (request) => this.client.fetch({
|
|
309
|
+
body: JSON.stringify(marshalUpdateVPCConnectorRequest(request, this.client.settings)),
|
|
310
|
+
headers: jsonContentHeaders,
|
|
311
|
+
method: "PATCH",
|
|
312
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpc-connectors/${validatePathParam("vpcConnectorId", request.vpcConnectorId)}`
|
|
313
|
+
}, unmarshalVPCConnector);
|
|
314
|
+
/**
|
|
315
|
+
* Delete a VPC connector. Delete a VPC connector specified by its VPC connector ID.
|
|
316
|
+
*
|
|
317
|
+
* @param request - The request {@link DeleteVPCConnectorRequest}
|
|
318
|
+
*/
|
|
319
|
+
deleteVPCConnector = (request) => this.client.fetch({
|
|
320
|
+
method: "DELETE",
|
|
321
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpc-connectors/${validatePathParam("vpcConnectorId", request.vpcConnectorId)}`
|
|
322
|
+
});
|
|
267
323
|
};
|
|
268
|
-
|
|
324
|
+
//#endregion
|
|
325
|
+
export { API };
|
package/dist/v2/index.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './marshalling.gen.js';
|
|
3
|
-
export type { AclRule, AclRuleProtocol, Action, AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, DeleteVPCRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetPrivateNetworkRequest, GetRouteRequest, GetVPCRequest, ListPrivateNetworksRequest, ListPrivateNetworksRequestOrderBy, ListPrivateNetworksResponse, ListSubnetsRequest, ListSubnetsRequestOrderBy, ListSubnetsResponse, ListVPCsRequest, ListVPCsRequestOrderBy, ListVPCsResponse, PrivateNetwork, Route, RouteType, SetAclRequest, SetAclResponse, Subnet, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCRequest, VPC, } from './types.gen.js';
|
|
3
|
+
export type { AclRule, AclRuleProtocol, Action, AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCConnectorRequest, CreateVPCRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, DeleteVPCConnectorRequest, DeleteVPCRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetPrivateNetworkRequest, GetRouteRequest, GetVPCConnectorRequest, GetVPCRequest, ListPrivateNetworksRequest, ListPrivateNetworksRequestOrderBy, ListPrivateNetworksResponse, ListSubnetsRequest, ListSubnetsRequestOrderBy, ListSubnetsResponse, ListVPCConnectorsRequest, ListVPCConnectorsRequestOrderBy, ListVPCConnectorsResponse, ListVPCsRequest, ListVPCsRequestOrderBy, ListVPCsResponse, PrivateNetwork, Route, RouteType, SetAclRequest, SetAclResponse, Subnet, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCConnectorRequest, UpdateVPCRequest, VPC, VPCConnector, VPCConnectorPeerInfo, VPCConnectorStatus, } from './types.gen.js';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v2/index.gen.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { marshalAclRule, marshalAddSubnetsRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCRequest, marshalDeleteSubnetsRequest, marshalSetAclRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCRequest, unmarshalAclRule, unmarshalAddSubnetsResponse, unmarshalDeleteSubnetsResponse, unmarshalGetAclResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalVPC } from "./marshalling.gen.js";
|
|
2
|
+
import { marshalAclRule, marshalAddSubnetsRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalDeleteSubnetsRequest, marshalSetAclRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAclRule, unmarshalAddSubnetsResponse, unmarshalDeleteSubnetsResponse, unmarshalGetAclResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalVPC, unmarshalVPCConnector } from "./marshalling.gen.js";
|
|
3
3
|
import { API } from "./api.gen.js";
|
|
4
4
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
+
//#region src/v2/index.gen.ts
|
|
5
6
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
6
7
|
API: () => API,
|
|
7
8
|
ValidationRules: () => validation_rules_gen_exports,
|
|
@@ -9,11 +10,13 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
9
10
|
marshalAddSubnetsRequest: () => marshalAddSubnetsRequest,
|
|
10
11
|
marshalCreatePrivateNetworkRequest: () => marshalCreatePrivateNetworkRequest,
|
|
11
12
|
marshalCreateRouteRequest: () => marshalCreateRouteRequest,
|
|
13
|
+
marshalCreateVPCConnectorRequest: () => marshalCreateVPCConnectorRequest,
|
|
12
14
|
marshalCreateVPCRequest: () => marshalCreateVPCRequest,
|
|
13
15
|
marshalDeleteSubnetsRequest: () => marshalDeleteSubnetsRequest,
|
|
14
16
|
marshalSetAclRequest: () => marshalSetAclRequest,
|
|
15
17
|
marshalUpdatePrivateNetworkRequest: () => marshalUpdatePrivateNetworkRequest,
|
|
16
18
|
marshalUpdateRouteRequest: () => marshalUpdateRouteRequest,
|
|
19
|
+
marshalUpdateVPCConnectorRequest: () => marshalUpdateVPCConnectorRequest,
|
|
17
20
|
marshalUpdateVPCRequest: () => marshalUpdateVPCRequest,
|
|
18
21
|
unmarshalAclRule: () => unmarshalAclRule,
|
|
19
22
|
unmarshalAddSubnetsResponse: () => unmarshalAddSubnetsResponse,
|
|
@@ -21,10 +24,13 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
21
24
|
unmarshalGetAclResponse: () => unmarshalGetAclResponse,
|
|
22
25
|
unmarshalListPrivateNetworksResponse: () => unmarshalListPrivateNetworksResponse,
|
|
23
26
|
unmarshalListSubnetsResponse: () => unmarshalListSubnetsResponse,
|
|
27
|
+
unmarshalListVPCConnectorsResponse: () => unmarshalListVPCConnectorsResponse,
|
|
24
28
|
unmarshalListVPCsResponse: () => unmarshalListVPCsResponse,
|
|
25
29
|
unmarshalPrivateNetwork: () => unmarshalPrivateNetwork,
|
|
26
30
|
unmarshalRoute: () => unmarshalRoute,
|
|
27
31
|
unmarshalSetAclResponse: () => unmarshalSetAclResponse,
|
|
28
|
-
unmarshalVPC: () => unmarshalVPC
|
|
32
|
+
unmarshalVPC: () => unmarshalVPC,
|
|
33
|
+
unmarshalVPCConnector: () => unmarshalVPCConnector
|
|
29
34
|
});
|
|
30
|
-
|
|
35
|
+
//#endregion
|
|
36
|
+
export { API, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAclRule, marshalAddSubnetsRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalDeleteSubnetsRequest, marshalSetAclRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAclRule, unmarshalAddSubnetsResponse, unmarshalDeleteSubnetsResponse, unmarshalGetAclResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalVPC, unmarshalVPCConnector };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { AclRule, AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, GetAclResponse, ListPrivateNetworksResponse, ListSubnetsResponse, ListVPCsResponse, PrivateNetwork, Route, SetAclRequest, SetAclResponse, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCRequest, VPC } from './types.gen.js';
|
|
2
|
+
import type { AclRule, AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCConnectorRequest, CreateVPCRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, GetAclResponse, ListPrivateNetworksResponse, ListSubnetsResponse, ListVPCConnectorsResponse, ListVPCsResponse, PrivateNetwork, Route, SetAclRequest, SetAclResponse, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCConnectorRequest, UpdateVPCRequest, VPC, VPCConnector } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalPrivateNetwork: (data: unknown) => PrivateNetwork;
|
|
4
4
|
export declare const unmarshalRoute: (data: unknown) => Route;
|
|
5
|
+
export declare const unmarshalVPCConnector: (data: unknown) => VPCConnector;
|
|
5
6
|
export declare const unmarshalVPC: (data: unknown) => VPC;
|
|
6
7
|
export declare const unmarshalAddSubnetsResponse: (data: unknown) => AddSubnetsResponse;
|
|
7
8
|
export declare const unmarshalDeleteSubnetsResponse: (data: unknown) => DeleteSubnetsResponse;
|
|
@@ -9,15 +10,18 @@ export declare const unmarshalAclRule: (data: unknown) => AclRule;
|
|
|
9
10
|
export declare const unmarshalGetAclResponse: (data: unknown) => GetAclResponse;
|
|
10
11
|
export declare const unmarshalListPrivateNetworksResponse: (data: unknown) => ListPrivateNetworksResponse;
|
|
11
12
|
export declare const unmarshalListSubnetsResponse: (data: unknown) => ListSubnetsResponse;
|
|
13
|
+
export declare const unmarshalListVPCConnectorsResponse: (data: unknown) => ListVPCConnectorsResponse;
|
|
12
14
|
export declare const unmarshalListVPCsResponse: (data: unknown) => ListVPCsResponse;
|
|
13
15
|
export declare const unmarshalSetAclResponse: (data: unknown) => SetAclResponse;
|
|
14
16
|
export declare const marshalAddSubnetsRequest: (request: AddSubnetsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
15
17
|
export declare const marshalCreatePrivateNetworkRequest: (request: CreatePrivateNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
16
18
|
export declare const marshalCreateRouteRequest: (request: CreateRouteRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
|
+
export declare const marshalCreateVPCConnectorRequest: (request: CreateVPCConnectorRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
17
20
|
export declare const marshalCreateVPCRequest: (request: CreateVPCRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
21
|
export declare const marshalDeleteSubnetsRequest: (request: DeleteSubnetsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
22
|
export declare const marshalAclRule: (request: AclRule, defaults: DefaultValues) => Record<string, unknown>;
|
|
20
23
|
export declare const marshalSetAclRequest: (request: SetAclRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
21
24
|
export declare const marshalUpdatePrivateNetworkRequest: (request: UpdatePrivateNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
25
|
export declare const marshalUpdateRouteRequest: (request: UpdateRouteRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
|
+
export declare const marshalUpdateVPCConnectorRequest: (request: UpdateVPCConnectorRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
27
|
export declare const marshalUpdateVPCRequest: (request: UpdateVPCRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
|
+
//#region src/v2/marshalling.gen.ts
|
|
3
4
|
var unmarshalSubnet = (data) => {
|
|
4
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Subnet' failed as data isn't a dictionary.`);
|
|
5
6
|
return {
|
|
@@ -12,7 +13,7 @@ var unmarshalSubnet = (data) => {
|
|
|
12
13
|
vpcId: data.vpc_id
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
var unmarshalPrivateNetwork = (data) => {
|
|
16
17
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`);
|
|
17
18
|
return {
|
|
18
19
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -29,7 +30,7 @@ const unmarshalPrivateNetwork = (data) => {
|
|
|
29
30
|
vpcId: data.vpc_id
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
|
-
|
|
33
|
+
var unmarshalRoute = (data) => {
|
|
33
34
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Route' failed as data isn't a dictionary.`);
|
|
34
35
|
return {
|
|
35
36
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -47,7 +48,32 @@ const unmarshalRoute = (data) => {
|
|
|
47
48
|
vpcId: data.vpc_id
|
|
48
49
|
};
|
|
49
50
|
};
|
|
50
|
-
|
|
51
|
+
var unmarshalVPCConnectorPeerInfo = (data) => {
|
|
52
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VPCConnectorPeerInfo' failed as data isn't a dictionary.`);
|
|
53
|
+
return {
|
|
54
|
+
organizationId: data.organization_id,
|
|
55
|
+
projectId: data.project_id,
|
|
56
|
+
vpcName: data.vpc_name
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
var unmarshalVPCConnector = (data) => {
|
|
60
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VPCConnector' failed as data isn't a dictionary.`);
|
|
61
|
+
return {
|
|
62
|
+
createdAt: unmarshalDate(data.created_at),
|
|
63
|
+
id: data.id,
|
|
64
|
+
name: data.name,
|
|
65
|
+
organizationId: data.organization_id,
|
|
66
|
+
peerInfo: data.peer_info ? unmarshalVPCConnectorPeerInfo(data.peer_info) : void 0,
|
|
67
|
+
projectId: data.project_id,
|
|
68
|
+
region: data.region,
|
|
69
|
+
status: data.status,
|
|
70
|
+
tags: data.tags,
|
|
71
|
+
targetVpcId: data.target_vpc_id,
|
|
72
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
73
|
+
vpcId: data.vpc_id
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
var unmarshalVPC = (data) => {
|
|
51
77
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VPC' failed as data isn't a dictionary.`);
|
|
52
78
|
return {
|
|
53
79
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -64,15 +90,15 @@ const unmarshalVPC = (data) => {
|
|
|
64
90
|
updatedAt: unmarshalDate(data.updated_at)
|
|
65
91
|
};
|
|
66
92
|
};
|
|
67
|
-
|
|
93
|
+
var unmarshalAddSubnetsResponse = (data) => {
|
|
68
94
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddSubnetsResponse' failed as data isn't a dictionary.`);
|
|
69
95
|
return { subnets: data.subnets };
|
|
70
96
|
};
|
|
71
|
-
|
|
97
|
+
var unmarshalDeleteSubnetsResponse = (data) => {
|
|
72
98
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DeleteSubnetsResponse' failed as data isn't a dictionary.`);
|
|
73
99
|
return { subnets: data.subnets };
|
|
74
100
|
};
|
|
75
|
-
|
|
101
|
+
var unmarshalAclRule = (data) => {
|
|
76
102
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AclRule' failed as data isn't a dictionary.`);
|
|
77
103
|
return {
|
|
78
104
|
action: data.action,
|
|
@@ -86,43 +112,50 @@ const unmarshalAclRule = (data) => {
|
|
|
86
112
|
srcPortLow: data.src_port_low
|
|
87
113
|
};
|
|
88
114
|
};
|
|
89
|
-
|
|
115
|
+
var unmarshalGetAclResponse = (data) => {
|
|
90
116
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetAclResponse' failed as data isn't a dictionary.`);
|
|
91
117
|
return {
|
|
92
118
|
defaultPolicy: data.default_policy,
|
|
93
119
|
rules: unmarshalArrayOfObject(data.rules, unmarshalAclRule)
|
|
94
120
|
};
|
|
95
121
|
};
|
|
96
|
-
|
|
122
|
+
var unmarshalListPrivateNetworksResponse = (data) => {
|
|
97
123
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPrivateNetworksResponse' failed as data isn't a dictionary.`);
|
|
98
124
|
return {
|
|
99
125
|
privateNetworks: unmarshalArrayOfObject(data.private_networks, unmarshalPrivateNetwork),
|
|
100
126
|
totalCount: data.total_count
|
|
101
127
|
};
|
|
102
128
|
};
|
|
103
|
-
|
|
129
|
+
var unmarshalListSubnetsResponse = (data) => {
|
|
104
130
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSubnetsResponse' failed as data isn't a dictionary.`);
|
|
105
131
|
return {
|
|
106
132
|
subnets: unmarshalArrayOfObject(data.subnets, unmarshalSubnet),
|
|
107
133
|
totalCount: data.total_count
|
|
108
134
|
};
|
|
109
135
|
};
|
|
110
|
-
|
|
136
|
+
var unmarshalListVPCConnectorsResponse = (data) => {
|
|
137
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVPCConnectorsResponse' failed as data isn't a dictionary.`);
|
|
138
|
+
return {
|
|
139
|
+
totalCount: data.total_count,
|
|
140
|
+
vpcConnectors: unmarshalArrayOfObject(data.vpc_connectors, unmarshalVPCConnector)
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
var unmarshalListVPCsResponse = (data) => {
|
|
111
144
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVPCsResponse' failed as data isn't a dictionary.`);
|
|
112
145
|
return {
|
|
113
146
|
totalCount: data.total_count,
|
|
114
147
|
vpcs: unmarshalArrayOfObject(data.vpcs, unmarshalVPC)
|
|
115
148
|
};
|
|
116
149
|
};
|
|
117
|
-
|
|
150
|
+
var unmarshalSetAclResponse = (data) => {
|
|
118
151
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetAclResponse' failed as data isn't a dictionary.`);
|
|
119
152
|
return {
|
|
120
153
|
defaultPolicy: data.default_policy,
|
|
121
154
|
rules: unmarshalArrayOfObject(data.rules, unmarshalAclRule)
|
|
122
155
|
};
|
|
123
156
|
};
|
|
124
|
-
|
|
125
|
-
|
|
157
|
+
var marshalAddSubnetsRequest = (request, defaults) => ({ subnets: request.subnets });
|
|
158
|
+
var marshalCreatePrivateNetworkRequest = (request, defaults) => ({
|
|
126
159
|
default_route_propagation_enabled: request.defaultRoutePropagationEnabled,
|
|
127
160
|
name: request.name || randomName("pn"),
|
|
128
161
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
@@ -130,7 +163,7 @@ const marshalCreatePrivateNetworkRequest = (request, defaults) => ({
|
|
|
130
163
|
tags: request.tags,
|
|
131
164
|
vpc_id: request.vpcId
|
|
132
165
|
});
|
|
133
|
-
|
|
166
|
+
var marshalCreateRouteRequest = (request, defaults) => ({
|
|
134
167
|
description: request.description,
|
|
135
168
|
destination: request.destination,
|
|
136
169
|
nexthop_private_network_id: request.nexthopPrivateNetworkId,
|
|
@@ -139,14 +172,20 @@ const marshalCreateRouteRequest = (request, defaults) => ({
|
|
|
139
172
|
tags: request.tags,
|
|
140
173
|
vpc_id: request.vpcId
|
|
141
174
|
});
|
|
142
|
-
|
|
175
|
+
var marshalCreateVPCConnectorRequest = (request, defaults) => ({
|
|
176
|
+
name: request.name || randomName("VPCConnector"),
|
|
177
|
+
tags: request.tags,
|
|
178
|
+
target_vpc_id: request.targetVpcId,
|
|
179
|
+
vpc_id: request.vpcId
|
|
180
|
+
});
|
|
181
|
+
var marshalCreateVPCRequest = (request, defaults) => ({
|
|
143
182
|
enable_routing: request.enableRouting,
|
|
144
183
|
name: request.name || randomName("vpc"),
|
|
145
184
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
146
185
|
tags: request.tags
|
|
147
186
|
});
|
|
148
|
-
|
|
149
|
-
|
|
187
|
+
var marshalDeleteSubnetsRequest = (request, defaults) => ({ subnets: request.subnets });
|
|
188
|
+
var marshalAclRule = (request, defaults) => ({
|
|
150
189
|
action: request.action,
|
|
151
190
|
description: request.description,
|
|
152
191
|
destination: request.destination,
|
|
@@ -157,17 +196,17 @@ const marshalAclRule = (request, defaults) => ({
|
|
|
157
196
|
src_port_high: request.srcPortHigh,
|
|
158
197
|
src_port_low: request.srcPortLow
|
|
159
198
|
});
|
|
160
|
-
|
|
199
|
+
var marshalSetAclRequest = (request, defaults) => ({
|
|
161
200
|
default_policy: request.defaultPolicy,
|
|
162
201
|
is_ipv6: request.isIpv6,
|
|
163
202
|
rules: request.rules.map((elt) => marshalAclRule(elt, defaults))
|
|
164
203
|
});
|
|
165
|
-
|
|
204
|
+
var marshalUpdatePrivateNetworkRequest = (request, defaults) => ({
|
|
166
205
|
default_route_propagation_enabled: request.defaultRoutePropagationEnabled,
|
|
167
206
|
name: request.name,
|
|
168
207
|
tags: request.tags
|
|
169
208
|
});
|
|
170
|
-
|
|
209
|
+
var marshalUpdateRouteRequest = (request, defaults) => ({
|
|
171
210
|
description: request.description,
|
|
172
211
|
destination: request.destination,
|
|
173
212
|
nexthop_private_network_id: request.nexthopPrivateNetworkId,
|
|
@@ -175,8 +214,13 @@ const marshalUpdateRouteRequest = (request, defaults) => ({
|
|
|
175
214
|
nexthop_vpc_connector_id: request.nexthopVpcConnectorId,
|
|
176
215
|
tags: request.tags
|
|
177
216
|
});
|
|
178
|
-
|
|
217
|
+
var marshalUpdateVPCConnectorRequest = (request, defaults) => ({
|
|
218
|
+
name: request.name,
|
|
219
|
+
tags: request.tags
|
|
220
|
+
});
|
|
221
|
+
var marshalUpdateVPCRequest = (request, defaults) => ({
|
|
179
222
|
name: request.name,
|
|
180
223
|
tags: request.tags
|
|
181
224
|
});
|
|
182
|
-
|
|
225
|
+
//#endregion
|
|
226
|
+
export { marshalAclRule, marshalAddSubnetsRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalDeleteSubnetsRequest, marshalSetAclRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAclRule, unmarshalAddSubnetsResponse, unmarshalDeleteSubnetsResponse, unmarshalGetAclResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalVPC, unmarshalVPCConnector };
|
package/dist/v2/types.gen.d.ts
CHANGED
|
@@ -3,8 +3,10 @@ export type AclRuleProtocol = 'ANY' | 'TCP' | 'UDP' | 'ICMP';
|
|
|
3
3
|
export type Action = 'unknown_action' | 'accept' | 'drop';
|
|
4
4
|
export type ListPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
5
5
|
export type ListSubnetsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
6
|
+
export type ListVPCConnectorsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
6
7
|
export type ListVPCsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
7
8
|
export type RouteType = 'unknown_route_type' | 'subnet' | 'default' | 'custom' | 'interlink' | 's2s_vpn';
|
|
9
|
+
export type VPCConnectorStatus = 'unknown_vpc_connector_status' | 'orphan' | 'peered' | 'conflict';
|
|
8
10
|
export interface Subnet {
|
|
9
11
|
/**
|
|
10
12
|
* ID of the subnet.
|
|
@@ -139,6 +141,11 @@ export interface Route {
|
|
|
139
141
|
*/
|
|
140
142
|
region: ScwRegion;
|
|
141
143
|
}
|
|
144
|
+
export interface VPCConnectorPeerInfo {
|
|
145
|
+
organizationId: string;
|
|
146
|
+
projectId: string;
|
|
147
|
+
vpcName: string;
|
|
148
|
+
}
|
|
142
149
|
export interface AclRule {
|
|
143
150
|
/**
|
|
144
151
|
* Protocol to which this rule applies.
|
|
@@ -177,6 +184,56 @@ export interface AclRule {
|
|
|
177
184
|
*/
|
|
178
185
|
description?: string;
|
|
179
186
|
}
|
|
187
|
+
export interface VPCConnector {
|
|
188
|
+
/**
|
|
189
|
+
* VPC connector ID.
|
|
190
|
+
*/
|
|
191
|
+
id: string;
|
|
192
|
+
/**
|
|
193
|
+
* VPC connector name.
|
|
194
|
+
*/
|
|
195
|
+
name: string;
|
|
196
|
+
/**
|
|
197
|
+
* Scaleway Organization the VPC connector belongs to.
|
|
198
|
+
*/
|
|
199
|
+
organizationId: string;
|
|
200
|
+
/**
|
|
201
|
+
* Scaleway Project the VPC connector belongs to.
|
|
202
|
+
*/
|
|
203
|
+
projectId: string;
|
|
204
|
+
/**
|
|
205
|
+
* VPC the VPC connector belongs to (origin VPC).
|
|
206
|
+
*/
|
|
207
|
+
vpcId: string;
|
|
208
|
+
/**
|
|
209
|
+
* VPC with which the VPC connector is peered (target VPC).
|
|
210
|
+
*/
|
|
211
|
+
targetVpcId: string;
|
|
212
|
+
/**
|
|
213
|
+
* Status of the VPC connector.
|
|
214
|
+
*/
|
|
215
|
+
status: VPCConnectorStatus;
|
|
216
|
+
/**
|
|
217
|
+
* Peer info of target VPC. Available when status is Peered.
|
|
218
|
+
*/
|
|
219
|
+
peerInfo?: VPCConnectorPeerInfo;
|
|
220
|
+
/**
|
|
221
|
+
* Region of the VPC connector.
|
|
222
|
+
*/
|
|
223
|
+
region: ScwRegion;
|
|
224
|
+
/**
|
|
225
|
+
* Tags for the VPC connector.
|
|
226
|
+
*/
|
|
227
|
+
tags: string[];
|
|
228
|
+
/**
|
|
229
|
+
* Date the VPC connector was created.
|
|
230
|
+
*/
|
|
231
|
+
createdAt?: Date;
|
|
232
|
+
/**
|
|
233
|
+
* Date the VPC connector was last modified.
|
|
234
|
+
*/
|
|
235
|
+
updatedAt?: Date;
|
|
236
|
+
}
|
|
180
237
|
export interface VPC {
|
|
181
238
|
/**
|
|
182
239
|
* VPC ID.
|
|
@@ -308,6 +365,28 @@ export type CreateRouteRequest = {
|
|
|
308
365
|
*/
|
|
309
366
|
nexthopVpcConnectorId?: string;
|
|
310
367
|
};
|
|
368
|
+
export type CreateVPCConnectorRequest = {
|
|
369
|
+
/**
|
|
370
|
+
* Region to target. If none is passed will use default region from the config.
|
|
371
|
+
*/
|
|
372
|
+
region?: ScwRegion;
|
|
373
|
+
/**
|
|
374
|
+
* Name for the VPC connector.
|
|
375
|
+
*/
|
|
376
|
+
name?: string;
|
|
377
|
+
/**
|
|
378
|
+
* Tags for the VPC connector.
|
|
379
|
+
*/
|
|
380
|
+
tags?: string[];
|
|
381
|
+
/**
|
|
382
|
+
* VPC ID to filter for. Only connectors belonging to this VPC will be returned.
|
|
383
|
+
*/
|
|
384
|
+
vpcId: string;
|
|
385
|
+
/**
|
|
386
|
+
* Target VPC ID to filter for. Only connectors belonging to this target VPC will be returned.
|
|
387
|
+
*/
|
|
388
|
+
targetVpcId: string;
|
|
389
|
+
};
|
|
311
390
|
export type CreateVPCRequest = {
|
|
312
391
|
/**
|
|
313
392
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -367,6 +446,16 @@ export type DeleteSubnetsRequest = {
|
|
|
367
446
|
export interface DeleteSubnetsResponse {
|
|
368
447
|
subnets: string[];
|
|
369
448
|
}
|
|
449
|
+
export type DeleteVPCConnectorRequest = {
|
|
450
|
+
/**
|
|
451
|
+
* Region to target. If none is passed will use default region from the config.
|
|
452
|
+
*/
|
|
453
|
+
region?: ScwRegion;
|
|
454
|
+
/**
|
|
455
|
+
* VPC connector ID.
|
|
456
|
+
*/
|
|
457
|
+
vpcConnectorId: string;
|
|
458
|
+
};
|
|
370
459
|
export type DeleteVPCRequest = {
|
|
371
460
|
/**
|
|
372
461
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -445,6 +534,16 @@ export type GetRouteRequest = {
|
|
|
445
534
|
*/
|
|
446
535
|
routeId: string;
|
|
447
536
|
};
|
|
537
|
+
export type GetVPCConnectorRequest = {
|
|
538
|
+
/**
|
|
539
|
+
* Region to target. If none is passed will use default region from the config.
|
|
540
|
+
*/
|
|
541
|
+
region?: ScwRegion;
|
|
542
|
+
/**
|
|
543
|
+
* VPC connector ID.
|
|
544
|
+
*/
|
|
545
|
+
vpcConnectorId: string;
|
|
546
|
+
};
|
|
448
547
|
export type GetVPCRequest = {
|
|
449
548
|
/**
|
|
450
549
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -543,6 +642,56 @@ export interface ListSubnetsResponse {
|
|
|
543
642
|
subnets: Subnet[];
|
|
544
643
|
totalCount: number;
|
|
545
644
|
}
|
|
645
|
+
export type ListVPCConnectorsRequest = {
|
|
646
|
+
/**
|
|
647
|
+
* Region to target. If none is passed will use default region from the config.
|
|
648
|
+
*/
|
|
649
|
+
region?: ScwRegion;
|
|
650
|
+
/**
|
|
651
|
+
* Sort order of the returned VPC connectors.
|
|
652
|
+
*/
|
|
653
|
+
orderBy?: ListVPCConnectorsRequestOrderBy;
|
|
654
|
+
/**
|
|
655
|
+
* Page number to return, from the paginated results.
|
|
656
|
+
*/
|
|
657
|
+
page?: number;
|
|
658
|
+
/**
|
|
659
|
+
* Maximum number of VPC connectors to return per page.
|
|
660
|
+
*/
|
|
661
|
+
pageSize?: number;
|
|
662
|
+
/**
|
|
663
|
+
* Name to filter for. Only connectors with names containing this string will be returned.
|
|
664
|
+
*/
|
|
665
|
+
name?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Tags to filter for. Only connectors with one or more matching tags will be returned.
|
|
668
|
+
*/
|
|
669
|
+
tags?: string[];
|
|
670
|
+
/**
|
|
671
|
+
* Organization ID to filter for. Only connectors belonging to this Organization will be returned.
|
|
672
|
+
*/
|
|
673
|
+
organizationId?: string;
|
|
674
|
+
/**
|
|
675
|
+
* Project ID to filter for. Only connectors belonging to this Project will be returned.
|
|
676
|
+
*/
|
|
677
|
+
projectId?: string;
|
|
678
|
+
/**
|
|
679
|
+
* VPC ID to filter for. Only connectors belonging to this VPC will be returned.
|
|
680
|
+
*/
|
|
681
|
+
vpcId?: string;
|
|
682
|
+
/**
|
|
683
|
+
* Target VPC ID to filter for. Only connectors belonging to this target VPC will be returned.
|
|
684
|
+
*/
|
|
685
|
+
targetVpcId?: string;
|
|
686
|
+
/**
|
|
687
|
+
* Status of the VPC connector.
|
|
688
|
+
*/
|
|
689
|
+
status?: VPCConnectorStatus;
|
|
690
|
+
};
|
|
691
|
+
export interface ListVPCConnectorsResponse {
|
|
692
|
+
vpcConnectors: VPCConnector[];
|
|
693
|
+
totalCount: number;
|
|
694
|
+
}
|
|
546
695
|
export type ListVPCsRequest = {
|
|
547
696
|
/**
|
|
548
697
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -671,6 +820,24 @@ export type UpdateRouteRequest = {
|
|
|
671
820
|
*/
|
|
672
821
|
nexthopVpcConnectorId?: string;
|
|
673
822
|
};
|
|
823
|
+
export type UpdateVPCConnectorRequest = {
|
|
824
|
+
/**
|
|
825
|
+
* Region to target. If none is passed will use default region from the config.
|
|
826
|
+
*/
|
|
827
|
+
region?: ScwRegion;
|
|
828
|
+
/**
|
|
829
|
+
* VPC connector ID.
|
|
830
|
+
*/
|
|
831
|
+
vpcConnectorId: string;
|
|
832
|
+
/**
|
|
833
|
+
* Name for the VPC connector.
|
|
834
|
+
*/
|
|
835
|
+
name?: string;
|
|
836
|
+
/**
|
|
837
|
+
* Tags for the VPC connector.
|
|
838
|
+
*/
|
|
839
|
+
tags?: string[];
|
|
840
|
+
};
|
|
674
841
|
export type UpdateVPCRequest = {
|
|
675
842
|
/**
|
|
676
843
|
* Region to target. If none is passed will use default region from the config.
|
|
File without changes
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v2/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
AclRule: () => AclRule,
|
|
4
5
|
Route: () => Route
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
+
var AclRule = {
|
|
7
8
|
description: { maxLength: 200 },
|
|
8
9
|
dstPortHigh: { lessThanOrEqual: 65536 },
|
|
9
10
|
dstPortLow: { lessThanOrEqual: 65536 },
|
|
10
11
|
srcPortHigh: { lessThanOrEqual: 65536 },
|
|
11
12
|
srcPortLow: { lessThanOrEqual: 65536 }
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
var Route = { description: { maxLength: 200 } };
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AclRule, Route, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-vpc",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Scaleway SDK vpc",
|
|
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",
|