@@ -174,7 +174,7 @@ def update(
174174 User-defined labels (key-value pairs)
175175 :return: :class:`BoundLoadBalancer <hcloud.load_balancers.client.BoundLoadBalancer>`
176176 """
177- return self ._client .update (self , name , labels )
177+ return self ._client .update (self , name = name , labels = labels )
178178
179179 def delete (self ) -> bool :
180180 """Deletes a Load Balancer.
@@ -224,7 +224,13 @@ def get_actions_list(
224224 Specifies how many results are returned by page
225225 :return: (List[:class:`BoundAction <hcloud.actions.client.BoundAction>`], :class:`Meta <hcloud.core.domain.Meta>`)
226226 """
227- return self ._client .get_actions_list (self , status , sort , page , per_page )
227+ return self ._client .get_actions_list (
228+ self ,
229+ status = status ,
230+ sort = sort ,
231+ page = page ,
232+ per_page = per_page ,
233+ )
228234
229235 def get_actions (
230236 self ,
@@ -239,7 +245,7 @@ def get_actions(
239245 Specify how the results are sorted. Choices: `id` `id:asc` `id:desc` `command` `command:asc` `command:desc` `status` `status:asc` `status:desc` `progress` `progress:asc` `progress:desc` `started` `started:asc` `started:desc` `finished` `finished:asc` `finished:desc`
240246 :return: List[:class:`BoundAction <hcloud.actions.client.BoundAction>`]
241247 """
242- return self ._client .get_actions (self , status , sort )
248+ return self ._client .get_actions (self , status = status , sort = sort )
243249
244250 def add_service (self , service : LoadBalancerService ) -> BoundAction :
245251 """Adds a service to a Load Balancer.
@@ -266,7 +272,7 @@ def delete_service(self, service: LoadBalancerService) -> BoundAction:
266272 The LoadBalancerService you want to delete from the Load Balancer
267273 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
268274 """
269- return self ._client .delete_service (self , service )
275+ return self ._client .delete_service (self , service = service )
270276
271277 def add_target (self , target : LoadBalancerTarget ) -> BoundAction :
272278 """Adds a target to a Load Balancer.
@@ -275,7 +281,7 @@ def add_target(self, target: LoadBalancerTarget) -> BoundAction:
275281 The LoadBalancerTarget you want to add to the Load Balancer
276282 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
277283 """
278- return self ._client .add_target (self , target )
284+ return self ._client .add_target (self , target = target )
279285
280286 def remove_target (self , target : LoadBalancerTarget ) -> BoundAction :
281287 """Removes a target from a Load Balancer.
@@ -284,7 +290,7 @@ def remove_target(self, target: LoadBalancerTarget) -> BoundAction:
284290 The LoadBalancerTarget you want to remove from the Load Balancer
285291 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
286292 """
287- return self ._client .remove_target (self , target )
293+ return self ._client .remove_target (self , target = target )
288294
289295 def change_algorithm (self , algorithm : LoadBalancerAlgorithm ) -> BoundAction :
290296 """Changes the algorithm used by the Load Balancer
@@ -293,7 +299,7 @@ def change_algorithm(self, algorithm: LoadBalancerAlgorithm) -> BoundAction:
293299 The LoadBalancerAlgorithm you want to use
294300 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
295301 """
296- return self ._client .change_algorithm (self , algorithm )
302+ return self ._client .change_algorithm (self , algorithm = algorithm )
297303
298304 def change_dns_ptr (self , ip : str , dns_ptr : str ) -> BoundAction :
299305 """Changes the hostname that will appear when getting the hostname belonging to the public IPs (IPv4 and IPv6) of this Load Balancer.
@@ -304,7 +310,7 @@ def change_dns_ptr(self, ip: str, dns_ptr: str) -> BoundAction:
304310 Hostname to set as a reverse DNS PTR entry, will reset to original default value if `None`
305311 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
306312 """
307- return self ._client .change_dns_ptr (self , ip , dns_ptr )
313+ return self ._client .change_dns_ptr (self , ip = ip , dns_ptr = dns_ptr )
308314
309315 def change_protection (self , delete : bool ) -> BoundAction :
310316 """Changes the protection configuration of a Load Balancer.
@@ -313,7 +319,7 @@ def change_protection(self, delete: bool) -> BoundAction:
313319 If True, prevents the Load Balancer from being deleted
314320 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
315321 """
316- return self ._client .change_protection (self , delete )
322+ return self ._client .change_protection (self , delete = delete )
317323
318324 def attach_to_network (
319325 self ,
@@ -330,15 +336,20 @@ def attach_to_network(
330336 IP range in CIDR block notation of the subnet to attach to.
331337 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
332338 """
333- return self ._client .attach_to_network (self , network , ip , ip_range )
339+ return self ._client .attach_to_network (
340+ self ,
341+ network = network ,
342+ ip = ip ,
343+ ip_range = ip_range ,
344+ )
334345
335346 def detach_from_network (self , network : Network | BoundNetwork ) -> BoundAction :
336347 """Detaches a Load Balancer from a Network.
337348
338349 :param network: :class:`BoundNetwork <hcloud.networks.client.BoundNetwork>` or :class:`Network <hcloud.networks.domain.Network>`
339350 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
340351 """
341- return self ._client .detach_from_network (self , network )
352+ return self ._client .detach_from_network (self , network = network )
342353
343354 def enable_public_interface (self ) -> BoundAction :
344355 """Enables the public interface of a Load Balancer.
@@ -364,7 +375,7 @@ def change_type(
364375 Load Balancer type the Load Balancer should migrate to
365376 :return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
366377 """
367- return self ._client .change_type (self , load_balancer_type )
378+ return self ._client .change_type (self , load_balancer_type = load_balancer_type )
368379
369380
370381class LoadBalancersPageResult (NamedTuple ):
0 commit comments