Skip to content

Commit c736db0

Browse files
chore(api): update composite API spec
1 parent 0f57d32 commit c736db0

9 files changed

Lines changed: 65 additions & 1 deletion

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2273
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 6dd8b8e98bf595c381a979bd28245966
3+
openapi_spec_hash: bfc851ee1d17f59070f2c6cbcbdcb4d9
44
config_hash: 2d1850b4aac63bb32193367c174c33cd

src/cloudflare/resources/spectrum/apps.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def create(
7070
origin_port: OriginPortParam | Omit = omit,
7171
proxy_protocol: Literal["off", "v1", "v2", "simple"] | Omit = omit,
7272
tls: Literal["off", "flexible", "full", "strict"] | Omit = omit,
73+
virtual_network_id: str | Omit = omit,
7374
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7475
# The extra values given here take precedence over values defined on the client or passed to this method.
7576
extra_headers: Headers | None = None,
@@ -121,6 +122,9 @@ def create(
121122
122123
tls: The type of TLS termination associated with the application.
123124
125+
virtual_network_id: Optional UUID of a virtual network for routing origin traffic through tunnel
126+
virtual networks.
127+
124128
extra_headers: Send extra headers
125129
126130
extra_query: Add additional query parameters to the request
@@ -187,6 +191,7 @@ def create(
187191
origin_port: OriginPortParam | Omit = omit,
188192
proxy_protocol: Literal["off", "v1", "v2", "simple"] | Omit = omit,
189193
tls: Literal["off", "flexible", "full", "strict"] | Omit = omit,
194+
virtual_network_id: str | Omit = omit,
190195
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
191196
# The extra values given here take precedence over values defined on the client or passed to this method.
192197
extra_headers: Headers | None = None,
@@ -213,6 +218,7 @@ def create(
213218
"origin_port": origin_port,
214219
"proxy_protocol": proxy_protocol,
215220
"tls": tls,
221+
"virtual_network_id": virtual_network_id,
216222
},
217223
app_create_params.AppCreateParams,
218224
),
@@ -246,6 +252,7 @@ def update(
246252
origin_port: OriginPortParam | Omit = omit,
247253
proxy_protocol: Literal["off", "v1", "v2", "simple"] | Omit = omit,
248254
tls: Literal["off", "flexible", "full", "strict"] | Omit = omit,
255+
virtual_network_id: str | Omit = omit,
249256
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
250257
# The extra values given here take precedence over values defined on the client or passed to this method.
251258
extra_headers: Headers | None = None,
@@ -299,6 +306,9 @@ def update(
299306
300307
tls: The type of TLS termination associated with the application.
301308
309+
virtual_network_id: Optional UUID of a virtual network for routing origin traffic through tunnel
310+
virtual networks.
311+
302312
extra_headers: Send extra headers
303313
304314
extra_query: Add additional query parameters to the request
@@ -369,6 +379,7 @@ def update(
369379
origin_port: OriginPortParam | Omit = omit,
370380
proxy_protocol: Literal["off", "v1", "v2", "simple"] | Omit = omit,
371381
tls: Literal["off", "flexible", "full", "strict"] | Omit = omit,
382+
virtual_network_id: str | Omit = omit,
372383
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
373384
# The extra values given here take precedence over values defined on the client or passed to this method.
374385
extra_headers: Headers | None = None,
@@ -397,6 +408,7 @@ def update(
397408
"origin_port": origin_port,
398409
"proxy_protocol": proxy_protocol,
399410
"tls": tls,
411+
"virtual_network_id": virtual_network_id,
400412
},
401413
app_update_params.AppUpdateParams,
402414
),
@@ -605,6 +617,7 @@ async def create(
605617
origin_port: OriginPortParam | Omit = omit,
606618
proxy_protocol: Literal["off", "v1", "v2", "simple"] | Omit = omit,
607619
tls: Literal["off", "flexible", "full", "strict"] | Omit = omit,
620+
virtual_network_id: str | Omit = omit,
608621
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
609622
# The extra values given here take precedence over values defined on the client or passed to this method.
610623
extra_headers: Headers | None = None,
@@ -656,6 +669,9 @@ async def create(
656669
657670
tls: The type of TLS termination associated with the application.
658671
672+
virtual_network_id: Optional UUID of a virtual network for routing origin traffic through tunnel
673+
virtual networks.
674+
659675
extra_headers: Send extra headers
660676
661677
extra_query: Add additional query parameters to the request
@@ -722,6 +738,7 @@ async def create(
722738
origin_port: OriginPortParam | Omit = omit,
723739
proxy_protocol: Literal["off", "v1", "v2", "simple"] | Omit = omit,
724740
tls: Literal["off", "flexible", "full", "strict"] | Omit = omit,
741+
virtual_network_id: str | Omit = omit,
725742
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
726743
# The extra values given here take precedence over values defined on the client or passed to this method.
727744
extra_headers: Headers | None = None,
@@ -748,6 +765,7 @@ async def create(
748765
"origin_port": origin_port,
749766
"proxy_protocol": proxy_protocol,
750767
"tls": tls,
768+
"virtual_network_id": virtual_network_id,
751769
},
752770
app_create_params.AppCreateParams,
753771
),
@@ -781,6 +799,7 @@ async def update(
781799
origin_port: OriginPortParam | Omit = omit,
782800
proxy_protocol: Literal["off", "v1", "v2", "simple"] | Omit = omit,
783801
tls: Literal["off", "flexible", "full", "strict"] | Omit = omit,
802+
virtual_network_id: str | Omit = omit,
784803
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
785804
# The extra values given here take precedence over values defined on the client or passed to this method.
786805
extra_headers: Headers | None = None,
@@ -834,6 +853,9 @@ async def update(
834853
835854
tls: The type of TLS termination associated with the application.
836855
856+
virtual_network_id: Optional UUID of a virtual network for routing origin traffic through tunnel
857+
virtual networks.
858+
837859
extra_headers: Send extra headers
838860
839861
extra_query: Add additional query parameters to the request
@@ -904,6 +926,7 @@ async def update(
904926
origin_port: OriginPortParam | Omit = omit,
905927
proxy_protocol: Literal["off", "v1", "v2", "simple"] | Omit = omit,
906928
tls: Literal["off", "flexible", "full", "strict"] | Omit = omit,
929+
virtual_network_id: str | Omit = omit,
907930
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
908931
# The extra values given here take precedence over values defined on the client or passed to this method.
909932
extra_headers: Headers | None = None,
@@ -932,6 +955,7 @@ async def update(
932955
"origin_port": origin_port,
933956
"proxy_protocol": proxy_protocol,
934957
"tls": tls,
958+
"virtual_network_id": virtual_network_id,
935959
},
936960
app_update_params.AppUpdateParams,
937961
),

src/cloudflare/types/spectrum/app_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ class SpectrumConfigAppConfig(TypedDict, total=False):
8383
tls: Literal["off", "flexible", "full", "strict"]
8484
"""The type of TLS termination associated with the application."""
8585

86+
virtual_network_id: str
87+
"""
88+
Optional UUID of a virtual network for routing origin traffic through tunnel
89+
virtual networks.
90+
"""
91+
8692

8793
class SpectrumConfigPaygoAppConfig(TypedDict, total=False):
8894
zone_id: Required[str]

src/cloudflare/types/spectrum/app_create_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class SpectrumConfigAppConfig(BaseModel):
8888
tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
8989
"""The type of TLS termination associated with the application."""
9090

91+
virtual_network_id: Optional[str] = None
92+
"""
93+
Optional UUID of a virtual network for routing origin traffic through tunnel
94+
virtual networks.
95+
"""
96+
9197

9298
class SpectrumConfigPaygoAppConfig(BaseModel):
9399
id: str

src/cloudflare/types/spectrum/app_get_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class SpectrumConfigAppConfig(BaseModel):
8888
tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
8989
"""The type of TLS termination associated with the application."""
9090

91+
virtual_network_id: Optional[str] = None
92+
"""
93+
Optional UUID of a virtual network for routing origin traffic through tunnel
94+
virtual networks.
95+
"""
96+
9197

9298
class SpectrumConfigPaygoAppConfig(BaseModel):
9399
id: str

src/cloudflare/types/spectrum/app_list_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class SpectrumConfigAppConfig(BaseModel):
8888
tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
8989
"""The type of TLS termination associated with the application."""
9090

91+
virtual_network_id: Optional[str] = None
92+
"""
93+
Optional UUID of a virtual network for routing origin traffic through tunnel
94+
virtual networks.
95+
"""
96+
9197

9298
class SpectrumConfigPaygoAppConfig(BaseModel):
9399
id: str

src/cloudflare/types/spectrum/app_update_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ class SpectrumConfigAppConfig(TypedDict, total=False):
8383
tls: Literal["off", "flexible", "full", "strict"]
8484
"""The type of TLS termination associated with the application."""
8585

86+
virtual_network_id: str
87+
"""
88+
Optional UUID of a virtual network for routing origin traffic through tunnel
89+
virtual networks.
90+
"""
91+
8692

8793
class SpectrumConfigPaygoAppConfig(TypedDict, total=False):
8894
zone_id: Required[str]

src/cloudflare/types/spectrum/app_update_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class SpectrumConfigAppConfig(BaseModel):
8888
tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
8989
"""The type of TLS termination associated with the application."""
9090

91+
virtual_network_id: Optional[str] = None
92+
"""
93+
Optional UUID of a virtual network for routing origin traffic through tunnel
94+
virtual networks.
95+
"""
96+
9197

9298
class SpectrumConfigPaygoAppConfig(BaseModel):
9399
id: str

tests/api_resources/spectrum/test_apps.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N
6161
origin_port=22,
6262
proxy_protocol="off",
6363
tls="off",
64+
virtual_network_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
6465
)
6566
assert_matches_type(Optional[AppCreateResponse], app, path=["response"])
6667

@@ -210,6 +211,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
210211
origin_port=22,
211212
proxy_protocol="off",
212213
tls="off",
214+
virtual_network_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
213215
)
214216
assert_matches_type(Optional[AppUpdateResponse], app, path=["response"])
215217

@@ -538,6 +540,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn
538540
origin_port=22,
539541
proxy_protocol="off",
540542
tls="off",
543+
virtual_network_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
541544
)
542545
assert_matches_type(Optional[AppCreateResponse], app, path=["response"])
543546

@@ -687,6 +690,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
687690
origin_port=22,
688691
proxy_protocol="off",
689692
tls="off",
693+
virtual_network_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
690694
)
691695
assert_matches_type(Optional[AppUpdateResponse], app, path=["response"])
692696

0 commit comments

Comments
 (0)