diff --git a/scaleway-async/scaleway_async/lb/v1/api.py b/scaleway-async/scaleway_async/lb/v1/api.py index b77bb05d1..34dbcc7b4 100644 --- a/scaleway-async/scaleway_async/lb/v1/api.py +++ b/scaleway-async/scaleway_async/lb/v1/api.py @@ -310,6 +310,7 @@ async def create_lb( project_id: Optional[str] = None, name: Optional[str] = None, ip_id: Optional[str] = None, + assign_flexible_ip: Optional[bool] = None, tags: Optional[List[str]] = None, ) -> Lb: """ @@ -324,6 +325,7 @@ async def create_lb( :param name: Name for the Load Balancer. :param description: Description for the Load Balancer. :param ip_id: ID of an existing flexible IP address to attach to the Load Balancer. + :param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). :param tags: List of tags for the Load Balancer. :param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types. :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. @@ -356,6 +358,7 @@ async def create_lb( project_id=project_id, name=name or random_name(prefix="lb"), ip_id=ip_id, + assign_flexible_ip=assign_flexible_ip, tags=tags, ), self.client, @@ -3235,6 +3238,7 @@ async def create_lb( project_id: Optional[str] = None, name: Optional[str] = None, ip_id: Optional[str] = None, + assign_flexible_ip: Optional[bool] = None, tags: Optional[List[str]] = None, ) -> Lb: """ @@ -3250,6 +3254,7 @@ async def create_lb( :param name: Name for the Load Balancer. :param description: Description for the Load Balancer. :param ip_id: ID of an existing flexible IP address to attach to the Load Balancer. + :param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). :param tags: List of tags for the Load Balancer. :param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types. :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. @@ -3280,6 +3285,7 @@ async def create_lb( project_id=project_id, name=name or random_name(prefix="lb"), ip_id=ip_id, + assign_flexible_ip=assign_flexible_ip, tags=tags, ), self.client, diff --git a/scaleway-async/scaleway_async/lb/v1/marshalling.py b/scaleway-async/scaleway_async/lb/v1/marshalling.py index be7f0aa6c..a83739fd7 100644 --- a/scaleway-async/scaleway_async/lb/v1/marshalling.py +++ b/scaleway-async/scaleway_async/lb/v1/marshalling.py @@ -1603,6 +1603,7 @@ def marshal_CreateLbRequest( ), ] ), + "assign_flexible_ip": request.assign_flexible_ip, "description": request.description, "ip_id": request.ip_id, "name": request.name, @@ -2081,6 +2082,7 @@ def marshal_ZonedApiCreateLbRequest( ), ] ), + "assign_flexible_ip": request.assign_flexible_ip, "description": request.description, "ip_id": request.ip_id, "name": request.name, diff --git a/scaleway-async/scaleway_async/lb/v1/types.py b/scaleway-async/scaleway_async/lb/v1/types.py index 46ee70b22..95f5b78c9 100644 --- a/scaleway-async/scaleway_async/lb/v1/types.py +++ b/scaleway-async/scaleway_async/lb/v1/types.py @@ -1662,6 +1662,11 @@ class CreateLbRequest: ID of an existing flexible IP address to attach to the Load Balancer. """ + assign_flexible_ip: Optional[bool] + """ + Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). + """ + tags: Optional[List[str]] """ List of tags for the Load Balancer. @@ -3187,6 +3192,11 @@ class ZonedApiCreateLbRequest: ID of an existing flexible IP address to attach to the Load Balancer. """ + assign_flexible_ip: Optional[bool] + """ + Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). + """ + tags: Optional[List[str]] """ List of tags for the Load Balancer. diff --git a/scaleway/scaleway/lb/v1/api.py b/scaleway/scaleway/lb/v1/api.py index c33a74727..f4818341f 100644 --- a/scaleway/scaleway/lb/v1/api.py +++ b/scaleway/scaleway/lb/v1/api.py @@ -310,6 +310,7 @@ def create_lb( project_id: Optional[str] = None, name: Optional[str] = None, ip_id: Optional[str] = None, + assign_flexible_ip: Optional[bool] = None, tags: Optional[List[str]] = None, ) -> Lb: """ @@ -324,6 +325,7 @@ def create_lb( :param name: Name for the Load Balancer. :param description: Description for the Load Balancer. :param ip_id: ID of an existing flexible IP address to attach to the Load Balancer. + :param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). :param tags: List of tags for the Load Balancer. :param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types. :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. @@ -356,6 +358,7 @@ def create_lb( project_id=project_id, name=name or random_name(prefix="lb"), ip_id=ip_id, + assign_flexible_ip=assign_flexible_ip, tags=tags, ), self.client, @@ -3233,6 +3236,7 @@ def create_lb( project_id: Optional[str] = None, name: Optional[str] = None, ip_id: Optional[str] = None, + assign_flexible_ip: Optional[bool] = None, tags: Optional[List[str]] = None, ) -> Lb: """ @@ -3248,6 +3252,7 @@ def create_lb( :param name: Name for the Load Balancer. :param description: Description for the Load Balancer. :param ip_id: ID of an existing flexible IP address to attach to the Load Balancer. + :param assign_flexible_ip: Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). :param tags: List of tags for the Load Balancer. :param type_: Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types. :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. @@ -3278,6 +3283,7 @@ def create_lb( project_id=project_id, name=name or random_name(prefix="lb"), ip_id=ip_id, + assign_flexible_ip=assign_flexible_ip, tags=tags, ), self.client, diff --git a/scaleway/scaleway/lb/v1/marshalling.py b/scaleway/scaleway/lb/v1/marshalling.py index be7f0aa6c..a83739fd7 100644 --- a/scaleway/scaleway/lb/v1/marshalling.py +++ b/scaleway/scaleway/lb/v1/marshalling.py @@ -1603,6 +1603,7 @@ def marshal_CreateLbRequest( ), ] ), + "assign_flexible_ip": request.assign_flexible_ip, "description": request.description, "ip_id": request.ip_id, "name": request.name, @@ -2081,6 +2082,7 @@ def marshal_ZonedApiCreateLbRequest( ), ] ), + "assign_flexible_ip": request.assign_flexible_ip, "description": request.description, "ip_id": request.ip_id, "name": request.name, diff --git a/scaleway/scaleway/lb/v1/types.py b/scaleway/scaleway/lb/v1/types.py index 46ee70b22..95f5b78c9 100644 --- a/scaleway/scaleway/lb/v1/types.py +++ b/scaleway/scaleway/lb/v1/types.py @@ -1662,6 +1662,11 @@ class CreateLbRequest: ID of an existing flexible IP address to attach to the Load Balancer. """ + assign_flexible_ip: Optional[bool] + """ + Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). + """ + tags: Optional[List[str]] """ List of tags for the Load Balancer. @@ -3187,6 +3192,11 @@ class ZonedApiCreateLbRequest: ID of an existing flexible IP address to attach to the Load Balancer. """ + assign_flexible_ip: Optional[bool] + """ + Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). + """ + tags: Optional[List[str]] """ List of tags for the Load Balancer.