Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions scaleway-async/scaleway_async/iot/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ def unmarshal_Device(data: Any) -> Device:
else:
args["has_custom_certificate"] = False

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("message_filters", None)
if field is not None:
args["message_filters"] = unmarshal_DeviceMessageFilters(field)
Expand Down Expand Up @@ -250,6 +256,12 @@ def unmarshal_Network(data: Any) -> Network:
else:
args["topic_prefix"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down Expand Up @@ -653,6 +665,12 @@ def unmarshal_RouteSummary(data: Any) -> RouteSummary:
else:
args["type_"] = RouteRouteType.UNKNOWN

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down Expand Up @@ -913,6 +931,12 @@ def unmarshal_Route(data: Any) -> Route:
else:
args["type_"] = RouteRouteType.UNKNOWN

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down
20 changes: 20 additions & 0 deletions scaleway-async/scaleway_async/iot/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ class Device:
Assigning a custom certificate allows a device to authenticate using that specific certificate without checking the Hub's CA certificate.
"""

region: ScwRegion
"""
Region of the device.
"""

last_activity_at: Optional[datetime] = None
"""
Last connection/activity date of a device.
Expand Down Expand Up @@ -304,6 +309,11 @@ class Network:
This prefix will be prepended to all topics for this Network.
"""

region: ScwRegion
"""
Region of the network.
"""

created_at: Optional[datetime] = None
"""
Date at which the network was created.
Expand Down Expand Up @@ -453,6 +463,11 @@ class RouteSummary:
Route type.
"""

region: ScwRegion
"""
Region of the route.
"""

created_at: Optional[datetime] = None
"""
Date at which the route was created.
Expand Down Expand Up @@ -1374,6 +1389,11 @@ class Route:
Route type.
"""

region: ScwRegion
"""
Region of the route.
"""

created_at: Optional[datetime] = None
"""
Date at which the route was created.
Expand Down
24 changes: 24 additions & 0 deletions scaleway/scaleway/iot/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ def unmarshal_Device(data: Any) -> Device:
else:
args["has_custom_certificate"] = False

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("message_filters", None)
if field is not None:
args["message_filters"] = unmarshal_DeviceMessageFilters(field)
Expand Down Expand Up @@ -250,6 +256,12 @@ def unmarshal_Network(data: Any) -> Network:
else:
args["topic_prefix"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down Expand Up @@ -653,6 +665,12 @@ def unmarshal_RouteSummary(data: Any) -> RouteSummary:
else:
args["type_"] = RouteRouteType.UNKNOWN

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down Expand Up @@ -913,6 +931,12 @@ def unmarshal_Route(data: Any) -> Route:
else:
args["type_"] = RouteRouteType.UNKNOWN

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down
20 changes: 20 additions & 0 deletions scaleway/scaleway/iot/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ class Device:
Assigning a custom certificate allows a device to authenticate using that specific certificate without checking the Hub's CA certificate.
"""

region: ScwRegion
"""
Region of the device.
"""

last_activity_at: Optional[datetime] = None
"""
Last connection/activity date of a device.
Expand Down Expand Up @@ -304,6 +309,11 @@ class Network:
This prefix will be prepended to all topics for this Network.
"""

region: ScwRegion
"""
Region of the network.
"""

created_at: Optional[datetime] = None
"""
Date at which the network was created.
Expand Down Expand Up @@ -453,6 +463,11 @@ class RouteSummary:
Route type.
"""

region: ScwRegion
"""
Region of the route.
"""

created_at: Optional[datetime] = None
"""
Date at which the route was created.
Expand Down Expand Up @@ -1374,6 +1389,11 @@ class Route:
Route type.
"""

region: ScwRegion
"""
Region of the route.
"""

created_at: Optional[datetime] = None
"""
Date at which the route was created.
Expand Down