@scaleway/sdk-vpc 2.9.1 → 2.10.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/v2/api.gen.d.ts +30 -1
- package/dist/v2/types.gen.d.ts +110 -2
- package/package.json +3 -3
package/dist/v2/api.gen.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export declare class API extends ParentAPI {
|
|
|
201
201
|
deleteVPCConnector: (request: Readonly<DeleteVPCConnectorRequest>) => Promise<void>;
|
|
202
202
|
protected pageOfListSubnetOverlaps: (request: Readonly<ListSubnetOverlapsRequest>) => Promise<ListSubnetOverlapsResponse>;
|
|
203
203
|
/**
|
|
204
|
-
* List subnet overlaps
|
|
204
|
+
* List subnet overlaps. List subnet overlaps between the VPCs on both sides of a connector, or for a specific subnet if specified.
|
|
205
205
|
*
|
|
206
206
|
* @param request - The request {@link ListSubnetOverlapsRequest}
|
|
207
207
|
* @returns A Promise of ListSubnetOverlapsResponse
|
|
@@ -211,12 +211,41 @@ export declare class API extends ParentAPI {
|
|
|
211
211
|
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").ListSubnetOverlapsResponseSubnetOverlap[], void, void>;
|
|
212
212
|
};
|
|
213
213
|
protected pageOfListIngressRules: (request?: Readonly<ListIngressRulesRequest>) => Promise<ListIngressRulesResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* List ingress rules. List existing ingress rules in the specified region.
|
|
216
|
+
*
|
|
217
|
+
* @param request - The request {@link ListIngressRulesRequest}
|
|
218
|
+
* @returns A Promise of ListIngressRulesResponse
|
|
219
|
+
*/
|
|
214
220
|
listIngressRules: (request?: Readonly<ListIngressRulesRequest>) => Promise<ListIngressRulesResponse> & {
|
|
215
221
|
all: () => Promise<IngressRule[]>;
|
|
216
222
|
[Symbol.asyncIterator]: () => AsyncGenerator<IngressRule[], void, void>;
|
|
217
223
|
};
|
|
224
|
+
/**
|
|
225
|
+
* Create an ingress rule. Create an ingress rule in the specified region.
|
|
226
|
+
*
|
|
227
|
+
* @param request - The request {@link CreateIngressRuleRequest}
|
|
228
|
+
* @returns A Promise of IngressRule
|
|
229
|
+
*/
|
|
218
230
|
createIngressRule: (request: Readonly<CreateIngressRuleRequest>) => Promise<IngressRule>;
|
|
231
|
+
/**
|
|
232
|
+
* Get an ingress rule. Retrieve details of an existing ingress rule, specified by its ingress rule ID.
|
|
233
|
+
*
|
|
234
|
+
* @param request - The request {@link GetIngressRuleRequest}
|
|
235
|
+
* @returns A Promise of IngressRule
|
|
236
|
+
*/
|
|
219
237
|
getIngressRule: (request: Readonly<GetIngressRuleRequest>) => Promise<IngressRule>;
|
|
238
|
+
/**
|
|
239
|
+
* Update an ingress rule. Update an ingress rule specified by its ingress rule ID.
|
|
240
|
+
*
|
|
241
|
+
* @param request - The request {@link UpdateIngressRuleRequest}
|
|
242
|
+
* @returns A Promise of IngressRule
|
|
243
|
+
*/
|
|
220
244
|
updateIngressRule: (request: Readonly<UpdateIngressRuleRequest>) => Promise<IngressRule>;
|
|
245
|
+
/**
|
|
246
|
+
* Delete an ingress rule. Delete an ingress rule specified by its ingress rule ID.
|
|
247
|
+
*
|
|
248
|
+
* @param request - The request {@link DeleteIngressRuleRequest}
|
|
249
|
+
*/
|
|
221
250
|
deleteIngressRule: (request: Readonly<DeleteIngressRuleRequest>) => Promise<void>;
|
|
222
251
|
}
|
package/dist/v2/types.gen.d.ts
CHANGED
|
@@ -191,20 +191,56 @@ export interface AclRule {
|
|
|
191
191
|
description?: string;
|
|
192
192
|
}
|
|
193
193
|
export interface IngressRule {
|
|
194
|
+
/**
|
|
195
|
+
* ID of the ingress rule.
|
|
196
|
+
*/
|
|
194
197
|
id: string;
|
|
198
|
+
/**
|
|
199
|
+
* ID of the VPC this rule belongs to.
|
|
200
|
+
*/
|
|
195
201
|
vpcId: string;
|
|
202
|
+
/**
|
|
203
|
+
* Date the ingress rule was created.
|
|
204
|
+
*/
|
|
196
205
|
createdAt?: Date;
|
|
206
|
+
/**
|
|
207
|
+
* Date the ingress rule was last modified.
|
|
208
|
+
*/
|
|
197
209
|
updatedAt?: Date;
|
|
210
|
+
/**
|
|
211
|
+
* Whether this rule applies to IPv4 or IPv6 traffic.
|
|
212
|
+
*/
|
|
198
213
|
isIpv6: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Source network to apply this rule on.
|
|
216
|
+
*/
|
|
199
217
|
source: string;
|
|
218
|
+
/**
|
|
219
|
+
* IP of the local resource to redirect ingress traffic to.
|
|
220
|
+
*/
|
|
200
221
|
nexthopResourceIp: string;
|
|
222
|
+
/**
|
|
223
|
+
* ID of the Private Network the destination resource is in.
|
|
224
|
+
*/
|
|
201
225
|
nexthopPrivateNetworkId: string;
|
|
226
|
+
/**
|
|
227
|
+
* Description of this ingress rule.
|
|
228
|
+
*/
|
|
202
229
|
description?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Tags of this ingress rule.
|
|
232
|
+
*/
|
|
203
233
|
tags: string[];
|
|
234
|
+
/**
|
|
235
|
+
* Scaleway Organization the ingress rule belongs to.
|
|
236
|
+
*/
|
|
204
237
|
organizationId: string;
|
|
238
|
+
/**
|
|
239
|
+
* Scaleway Project the ingress rule belongs to.
|
|
240
|
+
*/
|
|
205
241
|
projectId: string;
|
|
206
242
|
/**
|
|
207
|
-
* Region
|
|
243
|
+
* Region of the ingress rule.
|
|
208
244
|
*/
|
|
209
245
|
region: ScwRegion;
|
|
210
246
|
}
|
|
@@ -323,11 +359,29 @@ export type CreateIngressRuleRequest = {
|
|
|
323
359
|
* Region to target. If none is passed will use default region from the config.
|
|
324
360
|
*/
|
|
325
361
|
region?: ScwRegion;
|
|
362
|
+
/**
|
|
363
|
+
* ID of the VPC this rule will belong to.
|
|
364
|
+
*/
|
|
326
365
|
vpcId: string;
|
|
366
|
+
/**
|
|
367
|
+
* Source network to match ingress traffic on. Can be IPv6 or IPv4.
|
|
368
|
+
*/
|
|
327
369
|
source: string;
|
|
370
|
+
/**
|
|
371
|
+
* IP of the local resource to redirect ingress traffic to. IP version must be consistent with the source network.
|
|
372
|
+
*/
|
|
328
373
|
nexthopResourceIp: string;
|
|
374
|
+
/**
|
|
375
|
+
* ID of the Private Network the destination resource is in.
|
|
376
|
+
*/
|
|
329
377
|
nexthopPrivateNetworkId: string;
|
|
378
|
+
/**
|
|
379
|
+
* Description for this ingress rule.
|
|
380
|
+
*/
|
|
330
381
|
description?: string;
|
|
382
|
+
/**
|
|
383
|
+
* Tags for this ingress rule.
|
|
384
|
+
*/
|
|
331
385
|
tags?: string[];
|
|
332
386
|
};
|
|
333
387
|
export type CreatePrivateNetworkRequest = {
|
|
@@ -447,6 +501,9 @@ export type DeleteIngressRuleRequest = {
|
|
|
447
501
|
* Region to target. If none is passed will use default region from the config.
|
|
448
502
|
*/
|
|
449
503
|
region?: ScwRegion;
|
|
504
|
+
/**
|
|
505
|
+
* ID of the ingress rule to delete.
|
|
506
|
+
*/
|
|
450
507
|
ruleId: string;
|
|
451
508
|
};
|
|
452
509
|
export type DeletePrivateNetworkRequest = {
|
|
@@ -542,6 +599,9 @@ export type GetIngressRuleRequest = {
|
|
|
542
599
|
* Region to target. If none is passed will use default region from the config.
|
|
543
600
|
*/
|
|
544
601
|
region?: ScwRegion;
|
|
602
|
+
/**
|
|
603
|
+
* ID of the ingress rule to return.
|
|
604
|
+
*/
|
|
545
605
|
ruleId: string;
|
|
546
606
|
};
|
|
547
607
|
export type GetPrivateNetworkRequest = {
|
|
@@ -589,15 +649,45 @@ export type ListIngressRulesRequest = {
|
|
|
589
649
|
* Region to target. If none is passed will use default region from the config.
|
|
590
650
|
*/
|
|
591
651
|
region?: ScwRegion;
|
|
652
|
+
/**
|
|
653
|
+
* Sort order of the returned ingress rules.
|
|
654
|
+
*/
|
|
592
655
|
orderBy?: ListIngressRulesRequestOrderBy;
|
|
656
|
+
/**
|
|
657
|
+
* Page number to return, from the paginated results.
|
|
658
|
+
*/
|
|
593
659
|
page?: number;
|
|
660
|
+
/**
|
|
661
|
+
* Maximum number of ingress rules to return per page.
|
|
662
|
+
*/
|
|
594
663
|
pageSize?: number;
|
|
664
|
+
/**
|
|
665
|
+
* ID of the VPC to filter for.
|
|
666
|
+
*/
|
|
595
667
|
vpcId?: string;
|
|
668
|
+
/**
|
|
669
|
+
* Next hop IP to filter for.
|
|
670
|
+
*/
|
|
596
671
|
nexthopResourceIp?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Next hop Private Network ID to filter for. Only ingress rules with this Private Network as next hop will be returned.
|
|
674
|
+
*/
|
|
597
675
|
nexthopPrivateNetworkId?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Whether to return only IPv4 or IPv6 ingress rules.
|
|
678
|
+
*/
|
|
598
679
|
isIpv6?: boolean;
|
|
680
|
+
/**
|
|
681
|
+
* Tags to filter for. Only ingress rules with one or more matching tags will be returned.
|
|
682
|
+
*/
|
|
599
683
|
tags?: string[];
|
|
684
|
+
/**
|
|
685
|
+
* Organization ID to filter for. Only ingress rules belonging to this Organization will be returned.
|
|
686
|
+
*/
|
|
600
687
|
organizationId?: string;
|
|
688
|
+
/**
|
|
689
|
+
* Project ID to filter for. Only ingress rules belonging to this Project will be returned.
|
|
690
|
+
*/
|
|
601
691
|
projectId?: string;
|
|
602
692
|
};
|
|
603
693
|
export interface ListIngressRulesResponse {
|
|
@@ -660,7 +750,7 @@ export type ListSubnetOverlapsRequest = {
|
|
|
660
750
|
*/
|
|
661
751
|
region?: ScwRegion;
|
|
662
752
|
/**
|
|
663
|
-
*
|
|
753
|
+
* VPC Peering connector ID.
|
|
664
754
|
*/
|
|
665
755
|
vpcConnectorId: string;
|
|
666
756
|
/**
|
|
@@ -845,11 +935,29 @@ export type UpdateIngressRuleRequest = {
|
|
|
845
935
|
* Region to target. If none is passed will use default region from the config.
|
|
846
936
|
*/
|
|
847
937
|
region?: ScwRegion;
|
|
938
|
+
/**
|
|
939
|
+
* ID of the ingress rule to update.
|
|
940
|
+
*/
|
|
848
941
|
ruleId: string;
|
|
942
|
+
/**
|
|
943
|
+
* Source network to match ingress traffic on. Can be IPv4 or IPv6.
|
|
944
|
+
*/
|
|
849
945
|
source?: string;
|
|
946
|
+
/**
|
|
947
|
+
* IP of the local resource to redirect ingress traffic to. IP version must be consistent with the source network.
|
|
948
|
+
*/
|
|
850
949
|
nexthopResourceIp?: string;
|
|
950
|
+
/**
|
|
951
|
+
* ID of the Private Network the destination resource is in.
|
|
952
|
+
*/
|
|
851
953
|
nexthopPrivateNetworkId?: string;
|
|
954
|
+
/**
|
|
955
|
+
* Description to set for this ingress rule.
|
|
956
|
+
*/
|
|
852
957
|
description?: string;
|
|
958
|
+
/**
|
|
959
|
+
* Tags to set for this ingress rule.
|
|
960
|
+
*/
|
|
853
961
|
tags?: string[];
|
|
854
962
|
};
|
|
855
963
|
export type UpdatePrivateNetworkRequest = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-vpc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Scaleway SDK vpc",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@scaleway/sdk-std": "2.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
38
|
+
"@scaleway/sdk-client": "^2.4.1",
|
|
39
|
+
"@repo/configs": "^0.1.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@scaleway/sdk-client": "^2.4.1"
|