You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/lb/v1/api.py
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -311,6 +311,8 @@ async def create_lb(
311
311
name: Optional[str] =None,
312
312
ip_id: Optional[str] =None,
313
313
assign_flexible_ip: Optional[bool] =None,
314
+
assign_flexible_ipv6: Optional[bool] =None,
315
+
ip_ids: Optional[List[str]] =None,
314
316
tags: Optional[List[str]] =None,
315
317
) ->Lb:
316
318
"""
@@ -326,6 +328,8 @@ async def create_lb(
326
328
:param description: Description for the Load Balancer.
327
329
:param ip_id: ID of an existing flexible IP address to attach to the Load Balancer.
328
330
:param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign).
331
+
:param assign_flexible_ipv6: Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. Default value is `false` (do not assign).
332
+
:param ip_ids: List of IP IDs to attach to the Load Balancer.
329
333
:param tags: List of tags for the Load Balancer.
330
334
:param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types.
331
335
:param ssl_compatibility_level: Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems. Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility. Old is compatible with a small number of very old clients and should be used only as a last resort.
@@ -359,6 +363,8 @@ async def create_lb(
359
363
name=nameorrandom_name(prefix="lb"),
360
364
ip_id=ip_id,
361
365
assign_flexible_ip=assign_flexible_ip,
366
+
assign_flexible_ipv6=assign_flexible_ipv6,
367
+
ip_ids=ip_ids,
362
368
tags=tags,
363
369
),
364
370
self.client,
@@ -660,6 +666,7 @@ async def list_i_ps_all(
660
666
asyncdefcreate_ip(
661
667
self,
662
668
*,
669
+
is_ipv6: bool,
663
670
region: Optional[Region] =None,
664
671
organization_id: Optional[str] =None,
665
672
project_id: Optional[str] =None,
@@ -675,12 +682,13 @@ async def create_ip(
675
682
676
683
One-of ('project_identifier'): at most one of 'organization_id', 'project_id' could be set.
677
684
:param reverse: Reverse DNS (domain name) for the IP address.
685
+
:param is_ipv6: If true, creates a Flexible IP with an ipv6 address.
678
686
:return: :class:`Ip <Ip>`
679
687
680
688
Usage:
681
689
::
682
690
683
-
result = await api.create_ip()
691
+
result = await api.create_ip(is_ipv6=True)
684
692
"""
685
693
686
694
param_region=validate_path_param(
@@ -692,6 +700,7 @@ async def create_ip(
692
700
f"/lb/v1/regions/{param_region}/ips",
693
701
body=marshal_CreateIpRequest(
694
702
CreateIpRequest(
703
+
is_ipv6=is_ipv6,
695
704
region=region,
696
705
organization_id=organization_id,
697
706
project_id=project_id,
@@ -771,12 +780,14 @@ async def update_ip(
771
780
ip_id: str,
772
781
region: Optional[Region] =None,
773
782
reverse: Optional[str] =None,
783
+
lb_id: Optional[str] =None,
774
784
) ->Ip:
775
785
"""
776
786
Update an IP.
777
787
:param region: Region to target. If none is passed will use default region from the config.
778
788
:param ip_id: IP address ID.
779
789
:param reverse: Reverse DNS (domain name) for the IP address.
790
+
:param lb_id: ID of the server on which to attach the flexible IP.
780
791
:return: :class:`Ip <Ip>`
781
792
782
793
Usage:
@@ -798,6 +809,7 @@ async def update_ip(
798
809
ip_id=ip_id,
799
810
region=region,
800
811
reverse=reverse,
812
+
lb_id=lb_id,
801
813
),
802
814
self.client,
803
815
),
@@ -3256,6 +3268,8 @@ async def create_lb(
3256
3268
name: Optional[str] =None,
3257
3269
ip_id: Optional[str] =None,
3258
3270
assign_flexible_ip: Optional[bool] =None,
3271
+
assign_flexible_ipv6: Optional[bool] =None,
3272
+
ip_ids: Optional[List[str]] =None,
3259
3273
tags: Optional[List[str]] =None,
3260
3274
) ->Lb:
3261
3275
"""
@@ -3272,6 +3286,8 @@ async def create_lb(
3272
3286
:param description: Description for the Load Balancer.
3273
3287
:param ip_id: ID of an existing flexible IP address to attach to the Load Balancer.
3274
3288
:param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign).
3289
+
:param assign_flexible_ipv6: Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. Default value is `false` (do not assign).
3290
+
:param ip_ids: List of IP IDs to attach to the Load Balancer.
3275
3291
:param tags: List of tags for the Load Balancer.
3276
3292
:param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types.
3277
3293
:param ssl_compatibility_level: Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems. Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility. Old is compatible with a small number of very old clients and should be used only as a last resort.
@@ -3303,6 +3319,8 @@ async def create_lb(
3303
3319
name=nameorrandom_name(prefix="lb"),
3304
3320
ip_id=ip_id,
3305
3321
assign_flexible_ip=assign_flexible_ip,
3322
+
assign_flexible_ipv6=assign_flexible_ipv6,
3323
+
ip_ids=ip_ids,
3306
3324
tags=tags,
3307
3325
),
3308
3326
self.client,
@@ -3600,6 +3618,7 @@ async def list_i_ps_all(
3600
3618
asyncdefcreate_ip(
3601
3619
self,
3602
3620
*,
3621
+
is_ipv6: bool,
3603
3622
zone: Optional[Zone] =None,
3604
3623
organization_id: Optional[str] =None,
3605
3624
project_id: Optional[str] =None,
@@ -3616,12 +3635,13 @@ async def create_ip(
3616
3635
3617
3636
One-of ('project_identifier'): at most one of 'organization_id', 'project_id' could be set.
3618
3637
:param reverse: Reverse DNS (domain name) for the IP address.
3638
+
:param is_ipv6: If true, creates a Flexible IP with an ipv6 address.
0 commit comments