Skip to content

Commit 5825690

Browse files
authored
feat(vpc): add private network count in vpc api (#198)
1 parent 3d0ae54 commit 5825690

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

scaleway-async/scaleway_async/vpc/v2/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def unmarshal_VPC(data: Any) -> VPC:
116116
field = data.get("organization_id")
117117
args["organization_id"] = field
118118

119+
field = data.get("private_network_count")
120+
args["private_network_count"] = field
121+
119122
field = data.get("project_id")
120123
args["project_id"] = field
121124

scaleway-async/scaleway_async/vpc/v2/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ class VPC:
196196
Date the VPC was last modified.
197197
"""
198198

199+
private_network_count: int
200+
"""
201+
Number of Private Networks within this VPC.
202+
"""
203+
199204

200205
@dataclass
201206
class ListVPCsRequest:

scaleway/scaleway/vpc/v2/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def unmarshal_VPC(data: Any) -> VPC:
116116
field = data.get("organization_id")
117117
args["organization_id"] = field
118118

119+
field = data.get("private_network_count")
120+
args["private_network_count"] = field
121+
119122
field = data.get("project_id")
120123
args["project_id"] = field
121124

scaleway/scaleway/vpc/v2/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ class VPC:
196196
Date the VPC was last modified.
197197
"""
198198

199+
private_network_count: int
200+
"""
201+
Number of Private Networks within this VPC.
202+
"""
203+
199204

200205
@dataclass
201206
class ListVPCsRequest:

0 commit comments

Comments
 (0)