@@ -40,6 +40,11 @@ class Balancer(BaseModel):
4040 port : Optional [Any ] = Field (..., description = "Порт балансировщика." )
4141 proto : Optional [Any ] = Field (..., description = "Протокол." )
4242 rise : Optional [Any ] = Field (..., description = "Порог количества успешных ответов." )
43+ maxconn : Optional [Any ] = Field (..., description = "Максимальное количество соединений." )
44+ connect_timeout : Optional [Any ] = Field (..., description = "Таймаут подключения." )
45+ client_timeout : Optional [Any ] = Field (..., description = "Таймаут клиента." )
46+ server_timeout : Optional [Any ] = Field (..., description = "Таймаут сервера." )
47+ httprequest_timeout : Optional [Any ] = Field (..., description = "Таймаут HTTP запроса." )
4348 preset_id : Optional [Any ] = Field (..., description = "ID тарифа." )
4449 is_ssl : Optional [Any ] = Field (..., description = "Это логическое значение, которое показывает, требуется ли перенаправление на SSL." )
4550 status : Optional [Any ] = Field (..., description = "Статус балансировщика." )
@@ -50,7 +55,7 @@ class Balancer(BaseModel):
5055 ips : Optional [Any ] = Field (..., description = "Список IP-адресов, привязанных к балансировщику" )
5156 location : Optional [Any ] = Field (..., description = "Географическое расположение балансировщика" )
5257 availability_zone : AvailabilityZone = Field (...)
53- __properties = ["id" , "algo" , "created_at" , "fall" , "inter" , "ip" , "local_ip" , "is_keepalive" , "name" , "path" , "port" , "proto" , "rise" , "preset_id" , "is_ssl" , "status" , "is_sticky" , "timeout" , "is_use_proxy" , "rules" , "ips" , "location" , "availability_zone" ]
58+ __properties = ["id" , "algo" , "created_at" , "fall" , "inter" , "ip" , "local_ip" , "is_keepalive" , "name" , "path" , "port" , "proto" , "rise" , "maxconn" , "connect_timeout" , "client_timeout" , "server_timeout" , "httprequest_timeout" , " preset_id" , "is_ssl" , "status" , "is_sticky" , "timeout" , "is_use_proxy" , "rules" , "ips" , "location" , "availability_zone" ]
5459
5560 @validator ('algo' )
5661 def algo_validate_enum (cls , value ):
@@ -181,6 +186,31 @@ def to_dict(self):
181186 if self .rise is None and "rise" in self .__fields_set__ :
182187 _dict ['rise' ] = None
183188
189+ # set to None if maxconn (nullable) is None
190+ # and __fields_set__ contains the field
191+ if self .maxconn is None and "maxconn" in self .__fields_set__ :
192+ _dict ['maxconn' ] = None
193+
194+ # set to None if connect_timeout (nullable) is None
195+ # and __fields_set__ contains the field
196+ if self .connect_timeout is None and "connect_timeout" in self .__fields_set__ :
197+ _dict ['connect_timeout' ] = None
198+
199+ # set to None if client_timeout (nullable) is None
200+ # and __fields_set__ contains the field
201+ if self .client_timeout is None and "client_timeout" in self .__fields_set__ :
202+ _dict ['client_timeout' ] = None
203+
204+ # set to None if server_timeout (nullable) is None
205+ # and __fields_set__ contains the field
206+ if self .server_timeout is None and "server_timeout" in self .__fields_set__ :
207+ _dict ['server_timeout' ] = None
208+
209+ # set to None if httprequest_timeout (nullable) is None
210+ # and __fields_set__ contains the field
211+ if self .httprequest_timeout is None and "httprequest_timeout" in self .__fields_set__ :
212+ _dict ['httprequest_timeout' ] = None
213+
184214 # set to None if preset_id (nullable) is None
185215 # and __fields_set__ contains the field
186216 if self .preset_id is None and "preset_id" in self .__fields_set__ :
@@ -251,6 +281,11 @@ def from_dict(cls, obj: dict) -> Balancer:
251281 "port" : obj .get ("port" ),
252282 "proto" : obj .get ("proto" ),
253283 "rise" : obj .get ("rise" ),
284+ "maxconn" : obj .get ("maxconn" ),
285+ "connect_timeout" : obj .get ("connect_timeout" ),
286+ "client_timeout" : obj .get ("client_timeout" ),
287+ "server_timeout" : obj .get ("server_timeout" ),
288+ "httprequest_timeout" : obj .get ("httprequest_timeout" ),
254289 "preset_id" : obj .get ("preset_id" ),
255290 "is_ssl" : obj .get ("is_ssl" ),
256291 "status" : obj .get ("status" ),
0 commit comments