Skip to content

Commit 2eeda3e

Browse files
authored
feat(vpc): add is_read_only field to route (#659)
1 parent b00a82a commit 2eeda3e

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ def unmarshal_Route(data: Any) -> Route:
165165
if field is not None:
166166
args["destination"] = field
167167

168+
field = data.get("is_read_only", None)
169+
if field is not None:
170+
args["is_read_only"] = field
171+
168172
field = data.get("region", None)
169173
if field is not None:
170174
args["region"] = field

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ class Route:
166166
Destination of the Route.
167167
"""
168168

169+
is_read_only: bool
170+
"""
171+
Defines whether the route can be modified or deleted by the user.
172+
"""
173+
169174
region: Region
170175
"""
171176
Region of the Route.

scaleway/scaleway/vpc/v2/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ def unmarshal_Route(data: Any) -> Route:
165165
if field is not None:
166166
args["destination"] = field
167167

168+
field = data.get("is_read_only", None)
169+
if field is not None:
170+
args["is_read_only"] = field
171+
168172
field = data.get("region", None)
169173
if field is not None:
170174
args["region"] = field

scaleway/scaleway/vpc/v2/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ class Route:
166166
Destination of the Route.
167167
"""
168168

169+
is_read_only: bool
170+
"""
171+
Defines whether the route can be modified or deleted by the user.
172+
"""
173+
169174
region: Region
170175
"""
171176
Region of the Route.

0 commit comments

Comments
 (0)