Skip to content

Commit da95a3c

Browse files
feat(api): api update
1 parent 9dc28ef commit da95a3c

28 files changed

Lines changed: 250 additions & 2 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1782
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-37baa5bf56cb5d922c72fa374252a211dfc396eeb8d9628d9763470983f799c2.yml
3-
openapi_spec_hash: df85101112d7aad9a1e0cb8dd01e6d8b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c7ea16df9e6779bde93724a1b17ec38fc7921fdffc77fec8df85457573b6711.yml
3+
openapi_spec_hash: 49a080f1a33a4bd9c7e6cab08709ea0e
44
config_hash: eda5b3d9487ce675d1fadf88153b457d

src/cloudflare/resources/magic_transit/cf_interconnects.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def update(
5757
gre: cf_interconnect_update_params.GRE | NotGiven = NOT_GIVEN,
5858
health_check: HealthCheckParam | NotGiven = NOT_GIVEN,
5959
interface_address: str | NotGiven = NOT_GIVEN,
60+
interface_address6: str | NotGiven = NOT_GIVEN,
6061
mtu: int | NotGiven = NOT_GIVEN,
6162
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
6263
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -85,6 +86,11 @@ def update(
8586
of the tunnel. Select the subnet from the following private IP space:
8687
10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
8788
89+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
90+
address being the first IP of the subnet and not same as the address of
91+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
92+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
93+
8894
mtu: The Maximum Transmission Unit (MTU) in bytes for the interconnect. The minimum
8995
value is 576.
9096
@@ -118,6 +124,7 @@ def update(
118124
"gre": gre,
119125
"health_check": health_check,
120126
"interface_address": interface_address,
127+
"interface_address6": interface_address6,
121128
"mtu": mtu,
122129
},
123130
cf_interconnect_update_params.CfInterconnectUpdateParams,
@@ -322,6 +329,7 @@ async def update(
322329
gre: cf_interconnect_update_params.GRE | NotGiven = NOT_GIVEN,
323330
health_check: HealthCheckParam | NotGiven = NOT_GIVEN,
324331
interface_address: str | NotGiven = NOT_GIVEN,
332+
interface_address6: str | NotGiven = NOT_GIVEN,
325333
mtu: int | NotGiven = NOT_GIVEN,
326334
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
327335
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -350,6 +358,11 @@ async def update(
350358
of the tunnel. Select the subnet from the following private IP space:
351359
10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
352360
361+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
362+
address being the first IP of the subnet and not same as the address of
363+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
364+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
365+
353366
mtu: The Maximum Transmission Unit (MTU) in bytes for the interconnect. The minimum
354367
value is 576.
355368
@@ -383,6 +396,7 @@ async def update(
383396
"gre": gre,
384397
"health_check": health_check,
385398
"interface_address": interface_address,
399+
"interface_address6": interface_address6,
386400
"mtu": mtu,
387401
},
388402
cf_interconnect_update_params.CfInterconnectUpdateParams,

src/cloudflare/resources/magic_transit/gre_tunnels.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def create(
5959
name: str,
6060
description: str | NotGiven = NOT_GIVEN,
6161
health_check: gre_tunnel_create_params.HealthCheck | NotGiven = NOT_GIVEN,
62+
interface_address6: str | NotGiven = NOT_GIVEN,
6263
mtu: int | NotGiven = NOT_GIVEN,
6364
ttl: int | NotGiven = NOT_GIVEN,
6465
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
@@ -90,6 +91,11 @@ def create(
9091
9192
description: An optional description of the GRE tunnel.
9293
94+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
95+
address being the first IP of the subnet and not same as the address of
96+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
97+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
98+
9399
mtu: Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value
94100
is 576.
95101
@@ -125,6 +131,7 @@ def create(
125131
"name": name,
126132
"description": description,
127133
"health_check": health_check,
134+
"interface_address6": interface_address6,
128135
"mtu": mtu,
129136
"ttl": ttl,
130137
},
@@ -151,6 +158,7 @@ def update(
151158
name: str,
152159
description: str | NotGiven = NOT_GIVEN,
153160
health_check: gre_tunnel_update_params.HealthCheck | NotGiven = NOT_GIVEN,
161+
interface_address6: str | NotGiven = NOT_GIVEN,
154162
mtu: int | NotGiven = NOT_GIVEN,
155163
ttl: int | NotGiven = NOT_GIVEN,
156164
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
@@ -184,6 +192,11 @@ def update(
184192
185193
description: An optional description of the GRE tunnel.
186194
195+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
196+
address being the first IP of the subnet and not same as the address of
197+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
198+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
199+
187200
mtu: Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value
188201
is 576.
189202
@@ -221,6 +234,7 @@ def update(
221234
"name": name,
222235
"description": description,
223236
"health_check": health_check,
237+
"interface_address6": interface_address6,
224238
"mtu": mtu,
225239
"ttl": ttl,
226240
},
@@ -483,6 +497,7 @@ async def create(
483497
name: str,
484498
description: str | NotGiven = NOT_GIVEN,
485499
health_check: gre_tunnel_create_params.HealthCheck | NotGiven = NOT_GIVEN,
500+
interface_address6: str | NotGiven = NOT_GIVEN,
486501
mtu: int | NotGiven = NOT_GIVEN,
487502
ttl: int | NotGiven = NOT_GIVEN,
488503
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
@@ -514,6 +529,11 @@ async def create(
514529
515530
description: An optional description of the GRE tunnel.
516531
532+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
533+
address being the first IP of the subnet and not same as the address of
534+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
535+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
536+
517537
mtu: Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value
518538
is 576.
519539
@@ -549,6 +569,7 @@ async def create(
549569
"name": name,
550570
"description": description,
551571
"health_check": health_check,
572+
"interface_address6": interface_address6,
552573
"mtu": mtu,
553574
"ttl": ttl,
554575
},
@@ -575,6 +596,7 @@ async def update(
575596
name: str,
576597
description: str | NotGiven = NOT_GIVEN,
577598
health_check: gre_tunnel_update_params.HealthCheck | NotGiven = NOT_GIVEN,
599+
interface_address6: str | NotGiven = NOT_GIVEN,
578600
mtu: int | NotGiven = NOT_GIVEN,
579601
ttl: int | NotGiven = NOT_GIVEN,
580602
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
@@ -608,6 +630,11 @@ async def update(
608630
609631
description: An optional description of the GRE tunnel.
610632
633+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
634+
address being the first IP of the subnet and not same as the address of
635+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
636+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
637+
611638
mtu: Maximum Transmission Unit (MTU) in bytes for the GRE tunnel. The minimum value
612639
is 576.
613640
@@ -645,6 +672,7 @@ async def update(
645672
"name": name,
646673
"description": description,
647674
"health_check": health_check,
675+
"interface_address6": interface_address6,
648676
"mtu": mtu,
649677
"ttl": ttl,
650678
},

src/cloudflare/resources/magic_transit/ipsec_tunnels.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def create(
6565
customer_endpoint: str | NotGiven = NOT_GIVEN,
6666
description: str | NotGiven = NOT_GIVEN,
6767
health_check: ipsec_tunnel_create_params.HealthCheck | NotGiven = NOT_GIVEN,
68+
interface_address6: str | NotGiven = NOT_GIVEN,
6869
psk: str | NotGiven = NOT_GIVEN,
6970
replay_protection: bool | NotGiven = NOT_GIVEN,
7071
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
@@ -97,6 +98,11 @@ def create(
9798
9899
description: An optional description forthe IPsec tunnel.
99100
101+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
102+
address being the first IP of the subnet and not same as the address of
103+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
104+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
105+
100106
psk: A randomly generated or provided string for use in the IPsec tunnel.
101107
102108
replay_protection: If `true`, then IPsec replay protection will be supported in the
@@ -132,6 +138,7 @@ def create(
132138
"customer_endpoint": customer_endpoint,
133139
"description": description,
134140
"health_check": health_check,
141+
"interface_address6": interface_address6,
135142
"psk": psk,
136143
"replay_protection": replay_protection,
137144
},
@@ -158,6 +165,7 @@ def update(
158165
customer_endpoint: str | NotGiven = NOT_GIVEN,
159166
description: str | NotGiven = NOT_GIVEN,
160167
health_check: ipsec_tunnel_update_params.HealthCheck | NotGiven = NOT_GIVEN,
168+
interface_address6: str | NotGiven = NOT_GIVEN,
161169
psk: str | NotGiven = NOT_GIVEN,
162170
replay_protection: bool | NotGiven = NOT_GIVEN,
163171
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
@@ -192,6 +200,11 @@ def update(
192200
193201
description: An optional description forthe IPsec tunnel.
194202
203+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
204+
address being the first IP of the subnet and not same as the address of
205+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
206+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
207+
195208
psk: A randomly generated or provided string for use in the IPsec tunnel.
196209
197210
replay_protection: If `true`, then IPsec replay protection will be supported in the
@@ -229,6 +242,7 @@ def update(
229242
"customer_endpoint": customer_endpoint,
230243
"description": description,
231244
"health_check": health_check,
245+
"interface_address6": interface_address6,
232246
"psk": psk,
233247
"replay_protection": replay_protection,
234248
},
@@ -542,6 +556,7 @@ async def create(
542556
customer_endpoint: str | NotGiven = NOT_GIVEN,
543557
description: str | NotGiven = NOT_GIVEN,
544558
health_check: ipsec_tunnel_create_params.HealthCheck | NotGiven = NOT_GIVEN,
559+
interface_address6: str | NotGiven = NOT_GIVEN,
545560
psk: str | NotGiven = NOT_GIVEN,
546561
replay_protection: bool | NotGiven = NOT_GIVEN,
547562
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
@@ -574,6 +589,11 @@ async def create(
574589
575590
description: An optional description forthe IPsec tunnel.
576591
592+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
593+
address being the first IP of the subnet and not same as the address of
594+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
595+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
596+
577597
psk: A randomly generated or provided string for use in the IPsec tunnel.
578598
579599
replay_protection: If `true`, then IPsec replay protection will be supported in the
@@ -609,6 +629,7 @@ async def create(
609629
"customer_endpoint": customer_endpoint,
610630
"description": description,
611631
"health_check": health_check,
632+
"interface_address6": interface_address6,
612633
"psk": psk,
613634
"replay_protection": replay_protection,
614635
},
@@ -635,6 +656,7 @@ async def update(
635656
customer_endpoint: str | NotGiven = NOT_GIVEN,
636657
description: str | NotGiven = NOT_GIVEN,
637658
health_check: ipsec_tunnel_update_params.HealthCheck | NotGiven = NOT_GIVEN,
659+
interface_address6: str | NotGiven = NOT_GIVEN,
638660
psk: str | NotGiven = NOT_GIVEN,
639661
replay_protection: bool | NotGiven = NOT_GIVEN,
640662
x_magic_new_hc_target: bool | NotGiven = NOT_GIVEN,
@@ -669,6 +691,11 @@ async def update(
669691
670692
description: An optional description forthe IPsec tunnel.
671693
694+
interface_address6: A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
695+
address being the first IP of the subnet and not same as the address of
696+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
697+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
698+
672699
psk: A randomly generated or provided string for use in the IPsec tunnel.
673700
674701
replay_protection: If `true`, then IPsec replay protection will be supported in the
@@ -706,6 +733,7 @@ async def update(
706733
"customer_endpoint": customer_endpoint,
707734
"description": description,
708735
"health_check": health_check,
736+
"interface_address6": interface_address6,
709737
"psk": psk,
710738
"replay_protection": replay_protection,
711739
},

src/cloudflare/types/magic_transit/cf_interconnect_bulk_update_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ class ModifiedInterconnect(BaseModel):
4242
10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
4343
"""
4444

45+
interface_address6: Optional[str] = None
46+
"""
47+
A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
48+
address being the first IP of the subnet and not same as the address of
49+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
50+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
51+
"""
52+
4553
modified_on: Optional[datetime] = None
4654
"""The date and time the tunnel was last modified."""
4755

src/cloudflare/types/magic_transit/cf_interconnect_get_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ class Interconnect(BaseModel):
4242
10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
4343
"""
4444

45+
interface_address6: Optional[str] = None
46+
"""
47+
A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
48+
address being the first IP of the subnet and not same as the address of
49+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
50+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
51+
"""
52+
4553
modified_on: Optional[datetime] = None
4654
"""The date and time the tunnel was last modified."""
4755

src/cloudflare/types/magic_transit/cf_interconnect_list_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ class Interconnect(BaseModel):
4242
10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
4343
"""
4444

45+
interface_address6: Optional[str] = None
46+
"""
47+
A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
48+
address being the first IP of the subnet and not same as the address of
49+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
50+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
51+
"""
52+
4553
modified_on: Optional[datetime] = None
4654
"""The date and time the tunnel was last modified."""
4755

src/cloudflare/types/magic_transit/cf_interconnect_update_params.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ class CfInterconnectUpdateParams(TypedDict, total=False):
2929
10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
3030
"""
3131

32+
interface_address6: str
33+
"""
34+
A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
35+
address being the first IP of the subnet and not same as the address of
36+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
37+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
38+
"""
39+
3240
mtu: int
3341
"""The Maximum Transmission Unit (MTU) in bytes for the interconnect.
3442

src/cloudflare/types/magic_transit/cf_interconnect_update_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ class ModifiedInterconnect(BaseModel):
4242
10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
4343
"""
4444

45+
interface_address6: Optional[str] = None
46+
"""
47+
A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
48+
address being the first IP of the subnet and not same as the address of
49+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
50+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
51+
"""
52+
4553
modified_on: Optional[datetime] = None
4654
"""The date and time the tunnel was last modified."""
4755

src/cloudflare/types/magic_transit/gre_tunnel_bulk_update_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ class ModifiedGRETunnel(BaseModel):
9999

100100
health_check: Optional[ModifiedGRETunnelHealthCheck] = None
101101

102+
interface_address6: Optional[str] = None
103+
"""
104+
A 127 bit IPV6 prefix from within the virtual_subnet6 prefix space with the
105+
address being the first IP of the subnet and not same as the address of
106+
virtual_subnet6. Eg if virtual_subnet6 is 2606:54c1:7:0:a9fe:12d2::/127 ,
107+
interface_address6 could be 2606:54c1:7:0:a9fe:12d2:1:200/127
108+
"""
109+
102110
modified_on: Optional[datetime] = None
103111
"""The date and time the tunnel was last modified."""
104112

0 commit comments

Comments
 (0)