1818import re # noqa: F401
1919from typing import Any , ClassVar , Dict , List , Optional , Set
2020
21- from pydantic import BaseModel , ConfigDict , Field , field_validator
21+ from pydantic import BaseModel , ConfigDict , Field , StrictInt , field_validator
2222from typing_extensions import Annotated , Self
2323
2424from stackit .alb .models .http_health_checks import HttpHealthChecks
@@ -29,6 +29,9 @@ class ActiveHealthCheck(BaseModel):
2929 Set this to customize active health checks for targets in this pool.
3030 """ # noqa: E501
3131
32+ alt_port : Optional [StrictInt ] = Field (
33+ default = None , description = "Overrides the default port used for health check probes." , alias = "altPort"
34+ )
3235 healthy_threshold : Optional [Annotated [int , Field (strict = True , ge = 1 )]] = Field (
3336 default = None , description = "Healthy threshold of the health checking" , alias = "healthyThreshold"
3437 )
@@ -48,6 +51,7 @@ class ActiveHealthCheck(BaseModel):
4851 default = None , description = "Unhealthy threshold of the health checking" , alias = "unhealthyThreshold"
4952 )
5053 __properties : ClassVar [List [str ]] = [
54+ "altPort" ,
5155 "healthyThreshold" ,
5256 "httpHealthChecks" ,
5357 "interval" ,
@@ -139,6 +143,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
139143
140144 _obj = cls .model_validate (
141145 {
146+ "altPort" : obj .get ("altPort" ),
142147 "healthyThreshold" : obj .get ("healthyThreshold" ),
143148 "httpHealthChecks" : (
144149 HttpHealthChecks .from_dict (obj ["httpHealthChecks" ])
0 commit comments