@scaleway/sdk-vpc 2.2.1 → 2.3.1
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/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/index.gen.js +2 -4
- package/dist/v2/api.gen.d.ts +1 -39
- package/dist/v2/api.gen.js +267 -464
- package/dist/v2/index.gen.d.ts +1 -1
- package/dist/v2/index.gen.js +29 -31
- package/dist/v2/marshalling.gen.d.ts +1 -5
- package/dist/v2/marshalling.gen.js +142 -278
- package/dist/v2/types.gen.d.ts +0 -167
- package/dist/v2/validation-rules.gen.js +12 -24
- package/package.json +4 -4
package/dist/v2/types.gen.d.ts
CHANGED
|
@@ -3,10 +3,8 @@ 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';
|
|
7
6
|
export type ListVPCsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
8
7
|
export type RouteType = 'unknown_route_type' | 'subnet' | 'default' | 'custom' | 'interlink' | 's2s_vpn';
|
|
9
|
-
export type VPCConnectorStatus = 'unknown_vpc_connector_status' | 'orphan' | 'peered';
|
|
10
8
|
export interface Subnet {
|
|
11
9
|
/**
|
|
12
10
|
* ID of the subnet.
|
|
@@ -141,11 +139,6 @@ export interface Route {
|
|
|
141
139
|
*/
|
|
142
140
|
region: ScwRegion;
|
|
143
141
|
}
|
|
144
|
-
export interface VPCConnectorPeerInfo {
|
|
145
|
-
organizationId: string;
|
|
146
|
-
projectId: string;
|
|
147
|
-
vpcName: string;
|
|
148
|
-
}
|
|
149
142
|
export interface AclRule {
|
|
150
143
|
/**
|
|
151
144
|
* Protocol to which this rule applies.
|
|
@@ -184,56 +177,6 @@ export interface AclRule {
|
|
|
184
177
|
*/
|
|
185
178
|
description?: string;
|
|
186
179
|
}
|
|
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
|
-
}
|
|
237
180
|
export interface VPC {
|
|
238
181
|
/**
|
|
239
182
|
* VPC ID.
|
|
@@ -365,28 +308,6 @@ export type CreateRouteRequest = {
|
|
|
365
308
|
*/
|
|
366
309
|
nexthopVpcConnectorId?: string;
|
|
367
310
|
};
|
|
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
|
-
};
|
|
390
311
|
export type CreateVPCRequest = {
|
|
391
312
|
/**
|
|
392
313
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -446,16 +367,6 @@ export type DeleteSubnetsRequest = {
|
|
|
446
367
|
export interface DeleteSubnetsResponse {
|
|
447
368
|
subnets: string[];
|
|
448
369
|
}
|
|
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
|
-
};
|
|
459
370
|
export type DeleteVPCRequest = {
|
|
460
371
|
/**
|
|
461
372
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -534,16 +445,6 @@ export type GetRouteRequest = {
|
|
|
534
445
|
*/
|
|
535
446
|
routeId: string;
|
|
536
447
|
};
|
|
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
|
-
};
|
|
547
448
|
export type GetVPCRequest = {
|
|
548
449
|
/**
|
|
549
450
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -642,56 +543,6 @@ export interface ListSubnetsResponse {
|
|
|
642
543
|
subnets: Subnet[];
|
|
643
544
|
totalCount: number;
|
|
644
545
|
}
|
|
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
|
-
}
|
|
695
546
|
export type ListVPCsRequest = {
|
|
696
547
|
/**
|
|
697
548
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -820,24 +671,6 @@ export type UpdateRouteRequest = {
|
|
|
820
671
|
*/
|
|
821
672
|
nexthopVpcConnectorId?: string;
|
|
822
673
|
};
|
|
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
|
-
};
|
|
841
674
|
export type UpdateVPCRequest = {
|
|
842
675
|
/**
|
|
843
676
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -1,26 +1,14 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
|
+
AclRule: () => AclRule,
|
|
4
|
+
Route: () => Route
|
|
5
|
+
});
|
|
1
6
|
const AclRule = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
dstPortLow: {
|
|
9
|
-
lessThanOrEqual: 65536
|
|
10
|
-
},
|
|
11
|
-
srcPortHigh: {
|
|
12
|
-
lessThanOrEqual: 65536
|
|
13
|
-
},
|
|
14
|
-
srcPortLow: {
|
|
15
|
-
lessThanOrEqual: 65536
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const Route = {
|
|
19
|
-
description: {
|
|
20
|
-
maxLength: 200
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
AclRule,
|
|
25
|
-
Route
|
|
7
|
+
description: { maxLength: 200 },
|
|
8
|
+
dstPortHigh: { lessThanOrEqual: 65536 },
|
|
9
|
+
dstPortLow: { lessThanOrEqual: 65536 },
|
|
10
|
+
srcPortHigh: { lessThanOrEqual: 65536 },
|
|
11
|
+
srcPortLow: { lessThanOrEqual: 65536 }
|
|
26
12
|
};
|
|
13
|
+
const Route = { description: { maxLength: 200 } };
|
|
14
|
+
export { validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-vpc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Scaleway SDK vpc",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@scaleway/random-name": "5.1.2",
|
|
30
|
-
"@scaleway/sdk-std": "2.
|
|
30
|
+
"@scaleway/sdk-std": "2.2.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.1
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.1
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.1"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|