@@ -146,7 +146,9 @@ def edit(
146
146
* ,
147
147
account_id : str ,
148
148
prefix_id : str ,
149
+ asn_prepend_count : int | NotGiven = NOT_GIVEN ,
149
150
on_demand : bgp_prefix_edit_params .OnDemand | NotGiven = NOT_GIVEN ,
151
+ withdraw_if_no_route : bool | NotGiven = NOT_GIVEN ,
150
152
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
151
153
# The extra values given here take precedence over values defined on the client or passed to this method.
152
154
extra_headers : Headers | None = None ,
@@ -165,6 +167,12 @@ def edit(
165
167
166
168
bgp_prefix_id: Identifier of BGP Prefix.
167
169
170
+ asn_prepend_count: Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute
171
+
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)
175
+<
8000
/span>
168
176
extra_headers: Send extra headers
169
177
170
178
extra_query: Add additional query parameters to the request
@@ -181,7 +189,14 @@ def edit(
181
189
raise ValueError (f"Expected a non-empty value for `bgp_prefix_id` but received { bgp_prefix_id !r} " )
182
190
return self ._patch (
183
191
f"/accounts/{ account_id } /addressing/prefixes/{ prefix_id } /bgp/prefixes/{ bgp_prefix_id } " ,
184
- body = maybe_transform ({"on_demand" : on_demand }, bgp_prefix_edit_params .BGPPrefixEditParams ),
192
+ body = maybe_transform (
193
+ {
194
+ "asn_prepend_count" : asn_prepend_count ,
195
+ "on_demand" : on_demand ,
196
+ "withdraw_if_no_route" : withdraw_if_no_route ,
197
+ },
198
+ bgp_prefix_edit_params .BGPPrefixEditParams ,
199
+ ),
185
200
options = make_request_options (
186
201
extra_headers = extra_headers ,
187
202
extra_query = extra_query ,
@@ -363,7 +378,9 @@ async def edit(
363
378
* ,
364
379
account_id : str ,
365
380
prefix_id : str ,
381
+ asn_prepend_count : int | NotGiven = NOT_GIVEN ,
366
382
on_demand : bgp_prefix_edit_params .OnDemand | NotGiven = NOT_GIVEN ,
383
+ withdraw_if_no_route : bool | NotGiven = NOT_GIVEN ,
367
384
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
368
385
# The extra values given here take precedence over values defined on the client or passed to this method.
369
386
extra_headers : Headers | None = None ,
@@ -382,6 +399,12 @@ async def edit(
382
399
383
400
bgp_prefix_id: Identifier of BGP Prefix.
384
401
402
+ asn_prepend_count: Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute
403
+
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)
407
+
385
408
extra_headers: Send extra headers
386
409
387
410
extra_query: Add additional query parameters to the request
@@ -398,7 +421,14 @@ async def edit(
398
421
raise ValueError (f"Expected a non-empty value for `bgp_prefix_id` but received { bgp_prefix_id !r} " )
399
422
return await self ._patch (
400
423
f"/accounts/{ account_id } /addressing/prefixes/{ prefix_id } /bgp/prefixes/{ bgp_prefix_id } " ,
401
- body = await async_maybe_transform ({"on_demand" : on_demand }, bgp_prefix_edit_params .BGPPrefixEditParams ),
424
+ body = await async_maybe_transform (
425
+ {
426
+ "asn_prepend_count" : asn_prepend_count ,
427
+ "on_demand" : on_demand ,
428
+ "withdraw_if_no_route" : withdraw_if_no_route ,
429
+ },
430
+ bgp_prefix_edit_params .BGPPrefixEditParams ,
431
+ ),
402
432
options = make_request_options (
403
433
extra_headers = extra_headers ,
404
434
extra_query = extra_query ,
0 commit comments