11from __future__ import annotations
22
3+ import warnings
34from typing import TYPE_CHECKING , Any , Literal
45
56from dateutil .parser import isoparse
@@ -256,7 +257,7 @@ class LoadBalancerHealthCheck(BaseDomain):
256257 Timeout in sec after a try is assumed as timeout
257258 :param retries: int
258259 Retries we perform until we assume a target as unhealthy
259- :param http: LoadBalancerHealtCheckHttp
260+ :param http: LoadBalancerHealthCheckHttp
260261 HTTP Config
261262 """
262263
@@ -267,7 +268,7 @@ def __init__(
267268 interval : int | None = None ,
268269 timeout : int | None = None ,
269270 retries : int | None = None ,
270- http : LoadBalancerHealtCheckHttp | None = None ,
271+ http : LoadBalancerHealthCheckHttp | None = None ,
271272 ):
272273 self .protocol = protocol
273274 self .port = port
@@ -277,8 +278,8 @@ def __init__(
277278 self .http = http
278279
279280
280- class LoadBalancerHealtCheckHttp (BaseDomain ):
281- """LoadBalancerHealtCheckHttp Domain
281+ class LoadBalancerHealthCheckHttp (BaseDomain ):
282+ """LoadBalancerHealthCheckHttp Domain
282283
283284 :param domain: str
284285 Domain name to send in HTTP request. Can be null: In that case we will not send a domain name
@@ -307,6 +308,31 @@ def __init__(
307308 self .tls = tls
308309
309310
311+ class LoadBalancerHealtCheckHttp (LoadBalancerHealthCheckHttp ):
312+ """
313+ Kept for backward compatibility.
314+
315+ .. deprecated:: 2.5.4
316+ Use :class:``hcloud.load_balancers.domain.LoadBalancerHealthCheckHttp`` instead.
317+ """
318+
319+ def __init__ (
320+ self ,
321+ domain : str | None = None ,
322+ path : str | None = None ,
323+ response : str | None = None ,
324+ status_codes : list | None = None ,
325+ tls : bool | None = None ,
326+ ):
327+ warnings .warn (
328+ "The 'hcloud.load_balancers.domain.LoadBalancerHealtCheckHttp' class is deprecated, please use the "
329+ "'hcloud.load_balancers.domain.LoadBalancerHealthCheckHttp' class instead." ,
330+ DeprecationWarning ,
331+ stacklevel = 2 ,
332+ )
333+ super ().__init__ (domain , path , response , status_codes , tls )
334+
335+
310336class LoadBalancerTarget (BaseDomain ):
311337 """LoadBalancerTarget Domain
312338
0 commit comments