From ac1f3f94b4d6be8b4f05ca02be9a7d0f7c2a9b40 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 2 Oct 2025 15:16:49 +0000 Subject: [PATCH] feat: update generated APIs --- .../scaleway_async/iot/v1/marshalling.py | 24 +++++++++++++++++++ scaleway-async/scaleway_async/iot/v1/types.py | 20 ++++++++++++++++ scaleway/scaleway/iot/v1/marshalling.py | 24 +++++++++++++++++++ scaleway/scaleway/iot/v1/types.py | 20 ++++++++++++++++ 4 files changed, 88 insertions(+) diff --git a/scaleway-async/scaleway_async/iot/v1/marshalling.py b/scaleway-async/scaleway_async/iot/v1/marshalling.py index c697e699..045cc0af 100644 --- a/scaleway-async/scaleway_async/iot/v1/marshalling.py +++ b/scaleway-async/scaleway_async/iot/v1/marshalling.py @@ -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) @@ -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 @@ -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 @@ -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 diff --git a/scaleway-async/scaleway_async/iot/v1/types.py b/scaleway-async/scaleway_async/iot/v1/types.py index 77ddf4eb..791aa91f 100644 --- a/scaleway-async/scaleway_async/iot/v1/types.py +++ b/scaleway-async/scaleway_async/iot/v1/types.py @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/scaleway/scaleway/iot/v1/marshalling.py b/scaleway/scaleway/iot/v1/marshalling.py index c697e699..045cc0af 100644 --- a/scaleway/scaleway/iot/v1/marshalling.py +++ b/scaleway/scaleway/iot/v1/marshalling.py @@ -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) @@ -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 @@ -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 @@ -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 diff --git a/scaleway/scaleway/iot/v1/types.py b/scaleway/scaleway/iot/v1/types.py index 77ddf4eb..791aa91f 100644 --- a/scaleway/scaleway/iot/v1/types.py +++ b/scaleway/scaleway/iot/v1/types.py @@ -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. @@ -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. @@ -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. @@ -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.