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
12 changes: 12 additions & 0 deletions scaleway-async/scaleway_async/lb/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 <Backend>`

Usage:
Expand Down Expand Up @@ -1027,6 +1029,7 @@ async def create_backend(
max_retries=max_retries,
max_connections=max_connections,
timeout_queue=timeout_queue,
host=host,
),
self.client,
),
Expand Down Expand Up @@ -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.
Expand All @@ -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 <Backend>`

Usage:
Expand Down Expand Up @@ -1161,6 +1166,7 @@ async def update_backend(
max_retries=max_retries,
max_connections=max_connections,
timeout_queue=timeout_queue,
host=host,
),
self.client,
),
Expand Down Expand Up @@ -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.
Expand All @@ -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 <Backend>`

Usage:
Expand Down Expand Up @@ -4068,6 +4076,7 @@ async def create_backend(
max_retries=max_retries,
max_connections=max_connections,
timeout_queue=timeout_queue,
host=host,
),
self.client,
),
Expand Down Expand Up @@ -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.
Expand All @@ -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 <Backend>`

Usage:
Expand Down Expand Up @@ -4204,6 +4215,7 @@ async def update_backend(
max_retries=max_retries,
max_connections=max_connections,
timeout_queue=timeout_queue,
host=host,
),
self.client,
),
Expand Down
18 changes: 18 additions & 0 deletions scaleway-async/scaleway_async/lb/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down
25 changes: 25 additions & 0 deletions scaleway-async/scaleway_async/lb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
12 changes: 12 additions & 0 deletions scaleway/scaleway/lb/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 <Backend>`

Usage:
Expand Down Expand Up @@ -1027,6 +1029,7 @@ def create_backend(
max_retries=max_retries,
max_connections=max_connections,
timeout_queue=timeout_queue,
host=host,
),
self.client,
),
Expand Down Expand Up @@ -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.
Expand All @@ -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 <Backend>`

Usage:
Expand Down Expand Up @@ -1161,6 +1166,7 @@ def update_backend(
max_retries=max_retries,
max_connections=max_connections,
timeout_queue=timeout_queue,
host=host,
),
self.client,
),
Expand Down Expand Up @@ -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.
Expand All @@ -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 <Backend>`

Usage:
Expand Down Expand Up @@ -4066,6 +4074,7 @@ def create_backend(
max_retries=max_retries,
max_connections=max_connections,
timeout_queue=timeout_queue,
host=host,
),
self.client,
),
Expand Down Expand Up @@ -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.
Expand All @@ -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 <Backend>`

Usage:
Expand Down Expand Up @@ -4202,6 +4213,7 @@ def update_backend(
max_retries=max_retries,
max_connections=max_connections,
timeout_queue=timeout_queue,
host=host,
),
self.client,
),
Expand Down
18 changes: 18 additions & 0 deletions scaleway/scaleway/lb/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down
Loading
Loading