@@ -147,8 +147,8 @@ def edit(
147147 account_id : str ,
148148 prefix_id : str ,
149149 asn_prepend_count : int | NotGiven = NOT_GIVEN ,
150+ auto_advertise_withdraw : bool | NotGiven = NOT_GIVEN ,
150151 on_demand : bgp_prefix_edit_params .OnDemand | NotGiven = NOT_GIVEN ,
151- withdraw_if_no_route : bool | NotGiven = NOT_GIVEN ,
152152 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
153153 # The extra values given here take precedence over values defined on the client or passed to this method.
154154 extra_headers : Headers | None = None ,
@@ -169,9 +169,10 @@ def edit(
169169
170170 asn_prepend_count: Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute
171171
172- withdraw_if_no_route: Controls whether the BGP prefix is automatically withdrawn when prefix is
173- withdrawn from Magic routing table (for Magic Transit customers using Direct
174- CNI)
172+ auto_advertise_withdraw: Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no
173+ matching BGP prefix in the Magic routing table. When true, Cloudflare will
174+ automatically withdraw the BGP prefix when there are no matching BGP routes, and
175+ will resume advertising when there is at least one matching BGP route.
175176
176177 extra_headers: Send extra headers
177178
@@ -192,8 +193,8 @@ def edit(
192193 body = maybe_transform (
193194 {
194195 "asn_prepend_count" : asn_prepend_count ,
196+ "auto_advertise_withdraw" : auto_advertise_withdraw ,
195197 "on_demand" : on_demand ,
196- "withdraw_if_no_route" : withdraw_if_no_route ,
197198 },
198199 bgp_prefix_edit_params .BGPPrefixEditParams ,
199200 ),
@@ -379,8 +380,8 @@ async def edit(
379380 account_id : str ,
380381 prefix_id : str ,
381382 asn_prepend_count : int | NotGiven = NOT_GIVEN ,
383+ auto_advertise_withdraw : bool | NotGiven = NOT_GIVEN ,
382384 on_demand : bgp_prefix_edit_params .OnDemand | NotGiven = NOT_GIVEN ,
383- withdraw_if_no_route : bool | NotGiven = NOT_GIVEN ,
384385 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
385386 # The extra values given here take precedence over values defined on the client or passed to this method.
386387 extra_headers : Headers | None = None ,
@@ -401,9 +402,10 @@ async def edit(
401402
402403 asn_prepend_count: Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute
403404
404- withdraw_if_no_route: Controls whether the BGP prefix is automatically withdrawn when prefix is
405- withdrawn from Magic routing table (for Magic Transit customers using Direct
406- CNI)
405+ auto_advertise_withdraw: Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no
406+ matching BGP prefix in the Magic routing table. When true, Cloudflare will
407+ automatically withdraw the BGP prefix when there are no matching BGP routes, and
408+ will resume advertising when there is at least one matching BGP route.
407409
408410 extra_headers: Send extra headers
409411
@@ -424,8 +426,8 @@ async def edit(
424426 body = await async_maybe_transform (
425427 {
426428 "asn_prepend_count" : asn_prepend_count ,
429+ "auto_advertise_withdraw" : auto_advertise_withdraw ,
427430 "on_demand" : on_demand ,
428- "withdraw_if_no_route" : withdraw_if_no_route ,
429431 },
430432 bgp_prefix_edit_params .BGPPrefixEditParams ,
431433 ),
0 commit comments