2323 listener_get_params ,
2424 listener_list_params ,
2525 listener_create_params ,
26+ listener_delete_params ,
2627 listener_update_params ,
2728)
2829from ....types .cloud .lb_listener_protocol import LbListenerProtocol
@@ -95,7 +96,8 @@ def create(
9596
9697 allowed_cidrs: Network CIDRs from which service will be accessible
9798
98- connection_limit: Limit of the simultaneous connections
99+ connection_limit: Limit of the simultaneous connections. If -1 is provided, it is translated to
100+ the default value 100000.
99101
100102 insert_x_forwarded: Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
101103 Only used with HTTP or `TERMINATED_HTTPS` protocols.
@@ -186,7 +188,8 @@ def update(
186188
187189 allowed_cidrs: Network CIDRs from which service will be accessible
188190
189- connection_limit: Limit of simultaneous connections
191+ connection_limit: Limit of simultaneous connections. If -1 is provided, it is translated to the
192+ default value 100000.
190193
191194 name: Load balancer listener name
192195
@@ -302,6 +305,7 @@ def delete(
302305 * ,
303306 project_id : int | None = None ,
304307 region_id : int | None = None ,
308+ delete_default_pool : bool | Omit = omit ,
305309 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
306310 # The extra values given here take precedence over values defined on the client or passed to this method.
307311 extra_headers : Headers | None = None ,
@@ -319,6 +323,8 @@ def delete(
319323
320324 listener_id: Listener ID
321325
326+ delete_default_pool: Delete default pool attached directly to the listener.
327+
322328 extra_headers: Send extra headers
323329
324330 extra_query: Add additional query parameters to the request
@@ -336,7 +342,13 @@ def delete(
336342 return self ._delete (
337343 f"/cloud/v1/lblisteners/{ project_id } /{ region_id } /{ listener_id } " ,
338344 options = make_request_options (
339- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
345+ extra_headers = extra_headers ,
346+ extra_query = extra_query ,
347+ extra_body = extra_body ,
348+ timeout = timeout ,
349+ query = maybe_transform (
350+ {"delete_default_pool" : delete_default_pool }, listener_delete_params .ListenerDeleteParams
351+ ),
340352 ),
341353 cast_to = TaskIDList ,
342354 )
@@ -624,7 +636,8 @@ async def create(
624636
625637 allowed_cidrs: Network CIDRs from which service will be accessible
626638
627- connection_limit: Limit of the simultaneous connections
639+ connection_limit: Limit of the simultaneous connections. If -1 is provided, it is translated to
640+ the default value 100000.
628641
629642 insert_x_forwarded: Add headers X-Forwarded-For, X-Forwarded-Port, X-Forwarded-Proto to requests.
630643 Only used with HTTP or `TERMINATED_HTTPS` protocols.
@@ -715,7 +728,8 @@ async def update(
715728
716729 allowed_cidrs: Network CIDRs from which service will be accessible
717730
718- connection_limit: Limit of simultaneous connections
731+ connection_limit: Limit of simultaneous connections. If -1 is provided, it is translated to the
732+ default value 100000.
719733
720734 name: Load balancer listener name
721735
@@ -831,6 +845,7 @@ async def delete(
831845 * ,
832846 project_id : int | None = None ,
833847 region_id : int | None = None ,
848+ delete_default_pool : bool | Omit = omit ,
834849 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
835850 # The extra values given here take precedence over values defined on the client or passed to this method.
836851 extra_headers : Headers | None = None ,
@@ -848,6 +863,8 @@ async def delete(
848863
849864 listener_id: Listener ID
850865
866+ delete_default_pool: Delete default pool attached directly to the listener.
867+
851868 extra_headers: Send extra headers
852869
853870 extra_query: Add additional query parameters to the request
@@ -865,7 +882,13 @@ async def delete(
865882 return await self ._delete (
866883 f"/cloud/v1/lblisteners/{ project_id } /{ region_id } /{ listener_id } " ,
867884 options = make_request_options (
868- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
885+ extra_headers = extra_headers ,
886+ extra_query = extra_query ,
887+ extra_body = extra_body ,
888+ timeout = timeout ,
889+ query = await async_maybe_transform (
890+ {"delete_default_pool" : delete_default_pool }, listener_delete_params .ListenerDeleteParams
891+ ),
869892 ),
870893 cast_to = TaskIDList ,
871894 )
0 commit comments