From fe9a77911dd8179167a97dfe5bcc759aef94ffba Mon Sep 17 00:00:00 2001 From: Prototool Bot Date: Fri, 24 Apr 2026 14:21:10 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/lb/v1/api.py | 12 +++++++++ .../scaleway_async/lb/v1/marshalling.py | 18 +++++++++++++ scaleway-async/scaleway_async/lb/v1/types.py | 25 +++++++++++++++++++ scaleway/scaleway/lb/v1/api.py | 12 +++++++++ scaleway/scaleway/lb/v1/marshalling.py | 18 +++++++++++++ scaleway/scaleway/lb/v1/types.py | 25 +++++++++++++++++++ 6 files changed, 110 insertions(+) diff --git a/scaleway-async/scaleway_async/lb/v1/api.py b/scaleway-async/scaleway_async/lb/v1/api.py index f41e12435..b8b35c854 100644 --- a/scaleway-async/scaleway_async/lb/v1/api.py +++ b/scaleway-async/scaleway_async/lb/v1/api.py @@ -952,6 +952,7 @@ async def create_backend( max_retries: Optional[int] = None, max_connections: Optional[int] = None, timeout_queue: Optional[str] = None, + host: Optional[str] = None, ) -> Backend: """ Create a backend for a given Load Balancer. @@ -979,6 +980,7 @@ async def create_backend( :param max_retries: Number of retries when a backend server connection failed. :param max_connections: Maximum number of connections allowed per backend server. :param timeout_queue: Maximum time for a request to be left pending in queue when `max_connections` is reached. + :param host: When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. :return: :class:`Backend ` Usage: @@ -1027,6 +1029,7 @@ async def create_backend( max_retries=max_retries, max_connections=max_connections, timeout_queue=timeout_queue, + host=host, ), self.client, ), @@ -1091,6 +1094,7 @@ async def update_backend( max_retries: Optional[int] = None, max_connections: Optional[int] = None, timeout_queue: Optional[str] = None, + host: Optional[str] = None, ) -> Backend: """ Update a backend of a given Load Balancer. @@ -1116,6 +1120,7 @@ async def update_backend( :param max_retries: Number of retries when a backend server connection failed. :param max_connections: Maximum number of connections allowed per backend server. :param timeout_queue: Maximum time for a request to be left pending in queue when `max_connections` is reached. + :param host: When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. :return: :class:`Backend ` Usage: @@ -1161,6 +1166,7 @@ async def update_backend( max_retries=max_retries, max_connections=max_connections, timeout_queue=timeout_queue, + host=host, ), self.client, ), @@ -3992,6 +3998,7 @@ async def create_backend( max_retries: Optional[int] = None, max_connections: Optional[int] = None, timeout_queue: Optional[str] = None, + host: Optional[str] = None, ) -> Backend: """ Create a backend in a given load balancer. @@ -4018,6 +4025,7 @@ async def create_backend( :param max_retries: Number of retries when a backend server connection failed. :param max_connections: Maximum number of connections allowed per backend server. :param timeout_queue: Maximum time for a request to be left pending in queue when `max_connections` is reached. + :param host: When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. :return: :class:`Backend ` Usage: @@ -4068,6 +4076,7 @@ async def create_backend( max_retries=max_retries, max_connections=max_connections, timeout_queue=timeout_queue, + host=host, ), self.client, ), @@ -4133,6 +4142,7 @@ async def update_backend( max_retries: Optional[int] = None, max_connections: Optional[int] = None, timeout_queue: Optional[str] = None, + host: Optional[str] = None, ) -> Backend: """ Update a backend in a given load balancer. @@ -4157,6 +4167,7 @@ async def update_backend( :param max_retries: Number of retries when a backend server connection failed. :param max_connections: Maximum number of connections allowed per backend server. :param timeout_queue: Maximum time for a request to be left pending in queue when `max_connections` is reached. + :param host: When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. :return: :class:`Backend ` Usage: @@ -4204,6 +4215,7 @@ async def update_backend( max_retries=max_retries, max_connections=max_connections, timeout_queue=timeout_queue, + host=host, ), self.client, ), diff --git a/scaleway-async/scaleway_async/lb/v1/marshalling.py b/scaleway-async/scaleway_async/lb/v1/marshalling.py index b914ab05c..6adbe36e8 100644 --- a/scaleway-async/scaleway_async/lb/v1/marshalling.py +++ b/scaleway-async/scaleway_async/lb/v1/marshalling.py @@ -835,6 +835,12 @@ def unmarshal_Backend(data: Any) -> Backend: else: args["timeout_queue"] = None + field = data.get("host", None) + if field is not None: + args["host"] = field + else: + args["host"] = None + return Backend(**args) @@ -2188,6 +2194,9 @@ def marshal_CreateBackendRequest( if request.timeout_queue is not None: output["timeout_queue"] = request.timeout_queue + if request.host is not None: + output["host"] = request.host + return output @@ -2620,6 +2629,9 @@ def marshal_UpdateBackendRequest( if request.timeout_queue is not None: output["timeout_queue"] = request.timeout_queue + if request.host is not None: + output["host"] = request.host + return output @@ -2962,6 +2974,9 @@ def marshal_ZonedApiCreateBackendRequest( if request.timeout_queue is not None: output["timeout_queue"] = request.timeout_queue + if request.host is not None: + output["host"] = request.host + return output @@ -3366,6 +3381,9 @@ def marshal_ZonedApiUpdateBackendRequest( if request.timeout_queue is not None: output["timeout_queue"] = request.timeout_queue + if request.host is not None: + output["host"] = request.host + return output diff --git a/scaleway-async/scaleway_async/lb/v1/types.py b/scaleway-async/scaleway_async/lb/v1/types.py index 39fca3cc1..f99f3741a 100644 --- a/scaleway-async/scaleway_async/lb/v1/types.py +++ b/scaleway-async/scaleway_async/lb/v1/types.py @@ -778,6 +778,11 @@ class Backend: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class Certificate: @@ -1441,6 +1446,11 @@ class CreateBackendRequest: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class CreateCertificateRequest: @@ -2675,6 +2685,11 @@ class UpdateBackendRequest: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class UpdateCertificateRequest: @@ -3125,6 +3140,11 @@ class ZonedApiCreateBackendRequest: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class ZonedApiCreateCertificateRequest: @@ -4213,6 +4233,11 @@ class ZonedApiUpdateBackendRequest: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class ZonedApiUpdateCertificateRequest: diff --git a/scaleway/scaleway/lb/v1/api.py b/scaleway/scaleway/lb/v1/api.py index aa5376984..34d82e18f 100644 --- a/scaleway/scaleway/lb/v1/api.py +++ b/scaleway/scaleway/lb/v1/api.py @@ -952,6 +952,7 @@ def create_backend( max_retries: Optional[int] = None, max_connections: Optional[int] = None, timeout_queue: Optional[str] = None, + host: Optional[str] = None, ) -> Backend: """ Create a backend for a given Load Balancer. @@ -979,6 +980,7 @@ def create_backend( :param max_retries: Number of retries when a backend server connection failed. :param max_connections: Maximum number of connections allowed per backend server. :param timeout_queue: Maximum time for a request to be left pending in queue when `max_connections` is reached. + :param host: When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. :return: :class:`Backend ` Usage: @@ -1027,6 +1029,7 @@ def create_backend( max_retries=max_retries, max_connections=max_connections, timeout_queue=timeout_queue, + host=host, ), self.client, ), @@ -1091,6 +1094,7 @@ def update_backend( max_retries: Optional[int] = None, max_connections: Optional[int] = None, timeout_queue: Optional[str] = None, + host: Optional[str] = None, ) -> Backend: """ Update a backend of a given Load Balancer. @@ -1116,6 +1120,7 @@ def update_backend( :param max_retries: Number of retries when a backend server connection failed. :param max_connections: Maximum number of connections allowed per backend server. :param timeout_queue: Maximum time for a request to be left pending in queue when `max_connections` is reached. + :param host: When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. :return: :class:`Backend ` Usage: @@ -1161,6 +1166,7 @@ def update_backend( max_retries=max_retries, max_connections=max_connections, timeout_queue=timeout_queue, + host=host, ), self.client, ), @@ -3990,6 +3996,7 @@ def create_backend( max_retries: Optional[int] = None, max_connections: Optional[int] = None, timeout_queue: Optional[str] = None, + host: Optional[str] = None, ) -> Backend: """ Create a backend in a given load balancer. @@ -4016,6 +4023,7 @@ def create_backend( :param max_retries: Number of retries when a backend server connection failed. :param max_connections: Maximum number of connections allowed per backend server. :param timeout_queue: Maximum time for a request to be left pending in queue when `max_connections` is reached. + :param host: When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. :return: :class:`Backend ` Usage: @@ -4066,6 +4074,7 @@ def create_backend( max_retries=max_retries, max_connections=max_connections, timeout_queue=timeout_queue, + host=host, ), self.client, ), @@ -4131,6 +4140,7 @@ def update_backend( max_retries: Optional[int] = None, max_connections: Optional[int] = None, timeout_queue: Optional[str] = None, + host: Optional[str] = None, ) -> Backend: """ Update a backend in a given load balancer. @@ -4155,6 +4165,7 @@ def update_backend( :param max_retries: Number of retries when a backend server connection failed. :param max_connections: Maximum number of connections allowed per backend server. :param timeout_queue: Maximum time for a request to be left pending in queue when `max_connections` is reached. + :param host: When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. :return: :class:`Backend ` Usage: @@ -4202,6 +4213,7 @@ def update_backend( max_retries=max_retries, max_connections=max_connections, timeout_queue=timeout_queue, + host=host, ), self.client, ), diff --git a/scaleway/scaleway/lb/v1/marshalling.py b/scaleway/scaleway/lb/v1/marshalling.py index b914ab05c..6adbe36e8 100644 --- a/scaleway/scaleway/lb/v1/marshalling.py +++ b/scaleway/scaleway/lb/v1/marshalling.py @@ -835,6 +835,12 @@ def unmarshal_Backend(data: Any) -> Backend: else: args["timeout_queue"] = None + field = data.get("host", None) + if field is not None: + args["host"] = field + else: + args["host"] = None + return Backend(**args) @@ -2188,6 +2194,9 @@ def marshal_CreateBackendRequest( if request.timeout_queue is not None: output["timeout_queue"] = request.timeout_queue + if request.host is not None: + output["host"] = request.host + return output @@ -2620,6 +2629,9 @@ def marshal_UpdateBackendRequest( if request.timeout_queue is not None: output["timeout_queue"] = request.timeout_queue + if request.host is not None: + output["host"] = request.host + return output @@ -2962,6 +2974,9 @@ def marshal_ZonedApiCreateBackendRequest( if request.timeout_queue is not None: output["timeout_queue"] = request.timeout_queue + if request.host is not None: + output["host"] = request.host + return output @@ -3366,6 +3381,9 @@ def marshal_ZonedApiUpdateBackendRequest( if request.timeout_queue is not None: output["timeout_queue"] = request.timeout_queue + if request.host is not None: + output["host"] = request.host + return output diff --git a/scaleway/scaleway/lb/v1/types.py b/scaleway/scaleway/lb/v1/types.py index 39fca3cc1..f99f3741a 100644 --- a/scaleway/scaleway/lb/v1/types.py +++ b/scaleway/scaleway/lb/v1/types.py @@ -778,6 +778,11 @@ class Backend: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class Certificate: @@ -1441,6 +1446,11 @@ class CreateBackendRequest: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class CreateCertificateRequest: @@ -2675,6 +2685,11 @@ class UpdateBackendRequest: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class UpdateCertificateRequest: @@ -3125,6 +3140,11 @@ class ZonedApiCreateBackendRequest: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class ZonedApiCreateCertificateRequest: @@ -4213,6 +4233,11 @@ class ZonedApiUpdateBackendRequest: Maximum time for a request to be left pending in queue when `max_connections` is reached. """ + host: Optional[str] = None + """ + When connecting to backend servers, use this value as the HTTP Host header or TLS SNI. This allows routing to specific services on the backend server that are configured to respond to particular hostnames. + """ + @dataclass class ZonedApiUpdateCertificateRequest: