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
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -311,6 +311,7 @@ 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
+
ip_ids: Optional[List[str]] =None,
314
315
tags: Optional[List[str]] =None,
315
316
) ->Lb:
316
317
"""
@@ -326,6 +327,7 @@ async def create_lb(
326
327
:param description: Description for the Load Balancer.
327
328
:param ip_id: ID of an existing flexible IP address to attach to the Load Balancer.
328
329
:param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign).
330
+
:param ip_ids: List of IP IDs to attach to the Load Balancer.
329
331
:param tags: List of tags for the Load Balancer.
330
332
:param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types.
331
333
: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 +361,7 @@ async def create_lb(
359
361
name=nameorrandom_name(prefix="lb"),
360
362
ip_id=ip_id,
361
363
assign_flexible_ip=assign_flexible_ip,
364
+
ip_ids=ip_ids,
362
365
tags=tags,
363
366
),
364
367
self.client,
@@ -660,6 +663,7 @@ async def list_i_ps_all(
660
663
asyncdefcreate_ip(
661
664
self,
662
665
*,
666
+
is_ipv6: bool,
663
667
region: Optional[Region] =None,
664
668
organization_id: Optional[str] =None,
665
669
project_id: Optional[str] =None,
@@ -675,12 +679,13 @@ async def create_ip(
675
679
676
680
One-of ('project_identifier'): at most one of 'organization_id', 'project_id' could be set.
677
681
:param reverse: Reverse DNS (domain name) for the IP address.
682
+
:param is_ipv6: If true, creates a Flexible IP with an ipv6 address.
678
683
:return: :class:`Ip <Ip>`
679
684
680
685
Usage:
681
686
::
682
687
683
-
result = await api.create_ip()
688
+
result = await api.create_ip(is_ipv6=True)
684
689
"""
685
690
686
691
param_region=validate_path_param(
@@ -692,6 +697,7 @@ async def create_ip(
692
697
f"/lb/v1/regions/{param_region}/ips",
693
698
body=marshal_CreateIpRequest(
694
699
CreateIpRequest(
700
+
is_ipv6=is_ipv6,
695
701
region=region,
696
702
organization_id=organization_id,
697
703
project_id=project_id,
@@ -3243,6 +3249,7 @@ async def create_lb(
3243
3249
name: Optional[str] =None,
3244
3250
ip_id: Optional[str] =None,
3245
3251
assign_flexible_ip: Optional[bool] =None,
3252
+
ip_ids: Optional[List[str]] =None,
3246
3253
tags: Optional[List[str]] =None,
3247
3254
) ->Lb:
3248
3255
"""
@@ -3259,6 +3266,7 @@ async def create_lb(
3259
3266
:param description: Description for the Load Balancer.
3260
3267
:param ip_id: ID of an existing flexible IP address to attach to the Load Balancer.
3261
3268
:param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign).
3269
+
:param ip_ids: List of IP IDs to attach to the Load Balancer.
3262
3270
:param tags: List of tags for the Load Balancer.
3263
3271
:param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types.
3264
3272
: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.
@@ -3290,6 +3298,7 @@ async def create_lb(
3290
3298
name=nameorrandom_name(prefix="lb"),
3291
3299
ip_id=ip_id,
3292
3300
assign_flexible_ip=assign_flexible_ip,
3301
+
ip_ids=ip_ids,
3293
3302
tags=tags,
3294
3303
),
3295
3304
self.client,
@@ -3587,6 +3596,7 @@ async def list_i_ps_all(
3587
3596
asyncdefcreate_ip(
3588
3597
self,
3589
3598
*,
3599
+
is_ipv6: bool,
3590
3600
zone: Optional[Zone] =None,
3591
3601
organization_id: Optional[str] =None,
3592
3602
project_id: Optional[str] =None,
@@ -3603,12 +3613,13 @@ async def create_ip(
3603
3613
3604
3614
One-of ('project_identifier'): at most one of 'organization_id', 'project_id' could be set.
3605
3615
:param reverse: Reverse DNS (domain name) for the IP address.
3616
+
:param is_ipv6: If true, creates a Flexible IP with an ipv6 address.
Copy file name to clipboardExpand all lines: scaleway/scaleway/lb/v1/api.py
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -311,6 +311,7 @@ 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
+
ip_ids: Optional[List[str]] =None,
314
315
tags: Optional[List[str]] =None,
315
316
) ->Lb:
316
317
"""
@@ -326,6 +327,7 @@ def create_lb(
326
327
:param description: Description for the Load Balancer.
327
328
:param ip_id: ID of an existing flexible IP address to attach to the Load Balancer.
328
329
:param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign).
330
+
:param ip_ids: List of IP IDs to attach to the Load Balancer.
329
331
:param tags: List of tags for the Load Balancer.
330
332
:param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types.
331
333
: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 +361,7 @@ def create_lb(
359
361
name=nameorrandom_name(prefix="lb"),
360
362
ip_id=ip_id,
361
363
assign_flexible_ip=assign_flexible_ip,
364
+
ip_ids=ip_ids,
362
365
tags=tags,
363
366
),
364
367
self.client,
@@ -660,6 +663,7 @@ def list_i_ps_all(
660
663
defcreate_ip(
661
664
self,
662
665
*,
666
+
is_ipv6: bool,
663
667
region: Optional[Region] =None,
664
668
organization_id: Optional[str] =None,
665
669
project_id: Optional[str] =None,
@@ -675,12 +679,13 @@ def create_ip(
675
679
676
680
One-of ('project_identifier'): at most one of 'organization_id', 'project_id' could be set.
677
681
:param reverse: Reverse DNS (domain name) for the IP address.
682
+
:param is_ipv6: If true, creates a Flexible IP with an ipv6 address.
678
683
:return: :class:`Ip <Ip>`
679
684
680
685
Usage:
681
686
::
682
687
683
-
result = api.create_ip()
688
+
result = api.create_ip(is_ipv6=True)
684
689
"""
685
690
686
691
param_region=validate_path_param(
@@ -692,6 +697,7 @@ def create_ip(
692
697
f"/lb/v1/regions/{param_region}/ips",
693
698
body=marshal_CreateIpRequest(
694
699
CreateIpRequest(
700
+
is_ipv6=is_ipv6,
695
701
region=region,
696
702
organization_id=organization_id,
697
703
project_id=project_id,
@@ -3241,6 +3247,7 @@ def create_lb(
3241
3247
name: Optional[str] =None,
3242
3248
ip_id: Optional[str] =None,
3243
3249
assign_flexible_ip: Optional[bool] =None,
3250
+
ip_ids: Optional[List[str]] =None,
3244
3251
tags: Optional[List[str]] =None,
3245
3252
) ->Lb:
3246
3253
"""
@@ -3257,6 +3264,7 @@ def create_lb(
3257
3264
:param description: Description for the Load Balancer.
3258
3265
:param ip_id: ID of an existing flexible IP address to attach to the Load Balancer.
3259
3266
:param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign).
3267
+
:param ip_ids: List of IP IDs to attach to the Load Balancer.
3260
3268
:param tags: List of tags for the Load Balancer.
3261
3269
:param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types.
3262
3270
: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.
@@ -3288,6 +3296,7 @@ def create_lb(
3288
3296
name=nameorrandom_name(prefix="lb"),
3289
3297
ip_id=ip_id,
3290
3298
assign_flexible_ip=assign_flexible_ip,
3299
+
ip_ids=ip_ids,
3291
3300
tags=tags,
3292
3301
),
3293
3302
self.client,
@@ -3585,6 +3594,7 @@ def list_i_ps_all(
3585
3594
defcreate_ip(
3586
3595
self,
3587
3596
*,
3597
+
is_ipv6: bool,
3588
3598
zone: Optional[Zone] =None,
3589
3599
organization_id: Optional[str] =None,
3590
3600
project_id: Optional[str] =None,
@@ -3601,12 +3611,13 @@ def create_ip(
3601
3611
3602
3612
One-of ('project_identifier'): at most one of 'organization_id', 'project_id' could be set.
3603
3613
:param reverse: Reverse DNS (domain name) for the IP address.
3614
+
:param is_ipv6: If true, creates a Flexible IP with an ipv6 address.
0 commit comments