@scaleway/sdk-vpc 2.7.0 → 2.8.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.
@@ -164,7 +164,7 @@ var API = class extends API$1 {
164
164
  this.pageOfListIngressRules = (request = {}) => this.client.fetch({
165
165
  method: "GET",
166
166
  path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ingress-rules`,
167
- urlParams: urlParams(["is_ipv6", request.isIpv6], ["nexthop_private_network_id", request.nexthopPrivateNetworkId], ["nexthop_resource_ip", request.nexthopResourceIp], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["tags", request.tags], ["vpc_id", request.vpcId])
167
+ urlParams: urlParams(["is_ipv6", request.isIpv6], ["nexthop_private_network_id", request.nexthopPrivateNetworkId], ["nexthop_resource_ip", request.nexthopResourceIp], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags], ["vpc_id", request.vpcId])
168
168
  }, unmarshalListIngressRulesResponse);
169
169
  this.listIngressRules = (request = {}) => enrichForPagination("rules", this.pageOfListIngressRules, request);
170
170
  this.createIngressRule = (request) => this.client.fetch({
@@ -8,6 +8,7 @@ const unmarshalSubnet = (data) => {
8
8
  id: data.id,
9
9
  privateNetworkId: data.private_network_id,
10
10
  projectId: data.project_id,
11
+ region: data.region,
11
12
  subnet: data.subnet,
12
13
  updatedAt: unmarshalDate(data.updated_at),
13
14
  vpcId: data.vpc_id
@@ -57,6 +58,9 @@ const unmarshalIngressRule = (data) => {
57
58
  isIpv6: data.is_ipv6,
58
59
  nexthopPrivateNetworkId: data.nexthop_private_network_id,
59
60
  nexthopResourceIp: data.nexthop_resource_ip,
61
+ organizationId: data.organization_id,
62
+ projectId: data.project_id,
63
+ region: data.region,
60
64
  source: data.source,
61
65
  tags: data.tags,
62
66
  updatedAt: unmarshalDate(data.updated_at),
@@ -38,6 +38,10 @@ export interface Subnet {
38
38
  * VPC the subnet belongs to.
39
39
  */
40
40
  vpcId: string;
41
+ /**
42
+ * Region in which the Subnet can be used.
43
+ */
44
+ region: ScwRegion;
41
45
  }
42
46
  export interface PrivateNetwork {
43
47
  /**
@@ -197,6 +201,12 @@ export interface IngressRule {
197
201
  nexthopPrivateNetworkId: string;
198
202
  description?: string;
199
203
  tags: string[];
204
+ organizationId: string;
205
+ projectId: string;
206
+ /**
207
+ * Region to target. If none is passed will use default region from the config.
208
+ */
209
+ region: ScwRegion;
200
210
  }
201
211
  export interface ListSubnetOverlapsResponseSubnetOverlap {
202
212
  subnetId: string;
@@ -613,6 +623,8 @@ export type ListIngressRulesRequest = {
613
623
  nexthopPrivateNetworkId?: string;
614
624
  isIpv6?: boolean;
615
625
  tags?: string[];
626
+ organizationId?: string;
627
+ projectId?: string;
616
628
  };
617
629
  export interface ListIngressRulesResponse {
618
630
  rules: IngressRule[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-vpc",
3
- "version": "2.7.0",
3
+ "version": "2.8.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.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@scaleway/sdk-client": "^2.4.0",
39
- "@repo/configs": "^0.1.1"
38
+ "@repo/configs": "^0.1.1",
39
+ "@scaleway/sdk-client": "^2.4.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@scaleway/sdk-client": "^2.4.0"