Skip to content

Commit 2bf7ec6

Browse files
feat(api): api update
1 parent 52f8e71 commit 2bf7ec6

File tree

9 files changed

+202
-268
lines changed

9 files changed

+202
-268
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1793
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-80320c65baca910b2588e04995c5293f5baadc49852ed1eb86cc0d9f880a02f8.yml
3-
openapi_spec_hash: 05bce133c1579372f989aecd391a8506
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4020c77c47795829284666a243083b4e05a0cfede2b31dc55f380519291f1508.yml
3+
openapi_spec_hash: 7a53b72b9f3224ed24461d792e3563c8
44
config_hash: de4c81cee29cd7dd907279e8916b334f

src/cloudflare/resources/spectrum/apps.py

Lines changed: 80 additions & 92 deletions
Large diffs are not rendered by default.

src/cloudflare/types/spectrum/app_create_params.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,13 @@ class SpectrumConfigAppConfig(TypedDict, total=False):
2020
dns: Required[DNSParam]
2121
"""The name and type of DNS record for the Spectrum application."""
2222

23-
ip_firewall: Required[bool]
24-
"""
25-
Enables IP Access Rules for this application. Notes: Only available for TCP
26-
applications.
27-
"""
28-
2923
protocol: Required[str]
3024
"""The port configuration at Cloudflare's edge.
3125
3226
May specify a single port, for example `"tcp/1000"`, or a range of ports, for
3327
example `"tcp/1000-2000"`.
3428
"""
3529

36-
proxy_protocol: Required[Literal["off", "v1", "v2", "simple"]]
37-
"""Enables Proxy Protocol to the origin.
38-
39-
Refer to
40-
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
41-
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
42-
Proxy Protocol.
43-
"""
44-
45-
tls: Required[Literal["off", "flexible", "full", "strict"]]
46-
"""The type of TLS termination associated with the application."""
47-
4830
traffic_type: Required[Literal["direct", "http", "https"]]
4931
"""Determines how data travels from the edge to your origin.
5032
@@ -63,6 +45,12 @@ class SpectrumConfigAppConfig(TypedDict, total=False):
6345
edge_ips: EdgeIPsParam
6446
"""The anycast edge IP configuration for the hostname of this application."""
6547

48+
ip_firewall: bool
49+
"""
50+
Enables IP Access Rules for this application. Notes: Only available for TCP
51+
applications.
52+
"""
53+
6654
origin_direct: List[str]
6755
"""List of origin IP addresses.
6856
@@ -82,6 +70,18 @@ class SpectrumConfigAppConfig(TypedDict, total=False):
8270
field.
8371
"""
8472

73+
proxy_protocol: Literal["off", "v1", "v2", "simple"]
74+
"""Enables Proxy Protocol to the origin.
75+
76+
Refer to
77+
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
78+
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
79+
Proxy Protocol.
80+
"""
81+
82+
tls: Literal["off", "flexible", "full", "strict"]
83+
"""The type of TLS termination associated with the application."""
84+
8585

8686
class SpectrumConfigPaygoAppConfig(TypedDict, total=False):
8787
zone_id: Required[str]

src/cloudflare/types/spectrum/app_create_response.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ class SpectrumConfigAppConfig(BaseModel):
2323
dns: DNS
2424
"""The name and type of DNS record for the Spectrum application."""
2525

26-
ip_firewall: bool
27-
"""
28-
Enables IP Access Rules for this application. Notes: Only available for TCP
29-
applications.
30-
"""
31-
3226
modified_on: datetime
3327
"""When the Application was last modified."""
3428

@@ -39,18 +33,6 @@ class SpectrumConfigAppConfig(BaseModel):
3933
example `"tcp/1000-2000"`.
4034
"""
4135

42-
proxy_protocol: Literal["off", "v1", "v2", "simple"]
43-
"""Enables Proxy Protocol to the origin.
44-
45-
Refer to
46-
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
47-
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
48-
Proxy Protocol.
49-
"""
50-
51-
tls: Literal["off", "flexible", "full", "strict"]
52-
"""The type of TLS termination associated with the application."""
53-
5436
traffic_type: Literal["direct", "http", "https"]
5537
"""Determines how data travels from the edge to your origin.
5638
@@ -69,6 +51,12 @@ class SpectrumConfigAppConfig(BaseModel):
6951
edge_ips: Optional[EdgeIPs] = None
7052
"""The anycast edge IP configuration for the hostname of this application."""
7153

54+
ip_firewall: Optional[bool] = None
55+
"""
56+
Enables IP Access Rules for this application. Notes: Only available for TCP
57+
applications.
58+
"""
59+
7260
origin_direct: Optional[List[str]] = None
7361
"""List of origin IP addresses.
7462
@@ -88,6 +76,18 @@ class SpectrumConfigAppConfig(BaseModel):
8876
field.
8977
"""
9078

79+
proxy_protocol: Optional[Literal["off", "v1", "v2", "simple"]] = None
80+
"""Enables Proxy Protocol to the origin.
81+
82+
Refer to
83+
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
84+
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
85+
Proxy Protocol.
86+
"""
87+
88+
tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
89+
"""The type of TLS termination associated with the application."""
90+
9191

9292
class SpectrumConfigPaygoAppConfig(BaseModel):
9393
id: str

src/cloudflare/types/spectrum/app_get_response.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ class SpectrumConfigAppConfig(BaseModel):
2323
dns: DNS
2424
"""The name and type of DNS record for the Spectrum application."""
2525

26-
ip_firewall: bool
27-
"""
28-
Enables IP Access Rules for this application. Notes: Only available for TCP
29-
applications.
30-
"""
31-
3226
modified_on: datetime
3327
"""When the Application was last modified."""
3428

@@ -39,18 +33,6 @@ class SpectrumConfigAppConfig(BaseModel):
3933
example `"tcp/1000-2000"`.
4034
"""
4135

42-
proxy_protocol: Literal["off", "v1", "v2", "simple"]
43-
"""Enables Proxy Protocol to the origin.
44-
45-
Refer to
46-
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
47-
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
48-
Proxy Protocol.
49-
"""
50-
51-
tls: Literal["off", "flexible", "full", "strict"]
52-
"""The type of TLS termination associated with the application."""
53-
5436
traffic_type: Literal["direct", "http", "https"]
5537
"""Determines how data travels from the edge to your origin.
5638
@@ -69,6 +51,12 @@ class SpectrumConfigAppConfig(BaseModel):
6951
edge_ips: Optional[EdgeIPs] = None
7052
"""The anycast edge IP configuration for the hostname of this application."""
7153

54+
ip_firewall: Optional[bool] = None
55+
"""
56+
Enables IP Access Rules for this application. Notes: Only available for TCP
57+
applications.
58+
"""
59+
7260
origin_direct: Optional[List[str]] = None
7361
"""List of origin IP addresses.
7462
@@ -88,6 +76,18 @@ class SpectrumConfigAppConfig(BaseModel):
8876
field.
8977
"""
9078

79+
proxy_protocol: Optional[Literal["off", "v1", "v2", "simple"]] = None
80+
"""Enables Proxy Protocol to the origin.
81+
82+
Refer to
83+
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
84+
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
85+
Proxy Protocol.
86+
"""
87+
88+
tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
89+
"""The type of TLS termination associated with the application."""
90+
9191

9292
class SpectrumConfigPaygoAppConfig(BaseModel):
9393
id: str

src/cloudflare/types/spectrum/app_list_response.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ class UnionMember0(BaseModel):
2323
dns: DNS
2424
"""The name and type of DNS record for the Spectrum application."""
2525

26-
ip_firewall: bool
27-
"""
28-
Enables IP Access Rules for this application. Notes: Only available for TCP
29-
applications.
30-
"""
31-
3226
modified_on: datetime
3327
"""When the Application was last modified."""
3428

@@ -39,18 +33,6 @@ class UnionMember0(BaseModel):
3933
example `"tcp/1000-2000"`.
4034
"""
4135

42-
proxy_protocol: Literal["off", "v1", "v2", "simple"]
43-
"""Enables Proxy Protocol to the origin.
44-
45-
Refer to
46-
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
47-
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
48-
Proxy Protocol.
49-
"""
50-
51-
tls: Literal["off", "flexible", "full", "strict"]
52-
"""The type of TLS termination associated with the application."""
53-
5436
traffic_type: Literal["direct", "http", "https"]
5537
"""Determines how data travels from the edge to your origin.
5638
@@ -69,6 +51,12 @@ class UnionMember0(BaseModel):
6951
edge_ips: Optional[EdgeIPs] = None
7052
"""The anycast edge IP configuration for the hostname of this application."""
7153

54+
ip_firewall: Optional[bool] = None
55+
"""
56+
Enables IP Access Rules for this application. Notes: Only available for TCP
57+
applications.
58+
"""
59+
7260
origin_direct: Optional[List[str]] = None
7361
"""List of origin IP addresses.
7462
@@ -88,6 +76,18 @@ class UnionMember0(BaseModel):
8876
field.
8977
"""
9078

79+
proxy_protocol: Optional[Literal["off", "v1", "v2", "simple"]] = None
80+
"""Enables Proxy Protocol to the origin.
81+
82+
Refer to
83+
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
84+
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
85+
Proxy Protocol.
86+
"""
87+
88+
tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
89+
"""The type of TLS termination associated with the application."""
90+
9191

9292
class UnionMember1(BaseModel):
9393
id: str

src/cloudflare/types/spectrum/app_update_params.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,13 @@ class SpectrumConfigAppConfig(TypedDict, total=False):
2020
dns: Required[DNSParam]
2121
"""The name and type of DNS record for the Spectrum application."""
2222

23-
ip_firewall: Required[bool]
24-
"""
25-
Enables IP Access Rules for this application. Notes: Only available for TCP
26-
applications.
27-
"""
28-
2923
protocol: Required[str]
3024
"""The port configuration at Cloudflare's edge.
3125
3226
May specify a single port, for example `"tcp/1000"`, or a range of ports, for
3327
example `"tcp/1000-2000"`.
3428
"""
3529

36-
proxy_protocol: Required[Literal["off", "v1", "v2", "simple"]]
37-
"""Enables Proxy Protocol to the origin.
38-
39-
Refer to
40-
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
41-
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
42-
Proxy Protocol.
43-
"""
44-
45-
tls: Required[Literal["off", "flexible", "full", "strict"]]
46-
"""The type of TLS termination associated with the application."""
47-
4830
traffic_type: Required[Literal["direct", "http", "https"]]
4931
"""Determines how data travels from the edge to your origin.
5032
@@ -63,6 +45,12 @@ class SpectrumConfigAppConfig(TypedDict, total=False):
6345
edge_ips: EdgeIPsParam
6446
"""The anycast edge IP configuration for the hostname of this application."""
6547

48+
ip_firewall: bool
49+
"""
50+
Enables IP Access Rules for this application. Notes: Only available for TCP
51+
applications.
52+
"""
53+
6654
origin_direct: List[str]
6755
"""List of origin IP addresses.
6856
@@ -82,6 +70,18 @@ class SpectrumConfigAppConfig(TypedDict, total=False):
8270
field.
8371
"""
8472

73+
proxy_protocol: Literal["off", "v1", "v2", "simple"]
74+
"""Enables Proxy Protocol to the origin.
75+
76+
Refer to
77+
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
78+
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
79+
Proxy Protocol.
80+
"""
81+
82+
tls: Literal["off", "flexible", "full", "strict"]
83+
"""The type of TLS termination associated with the application."""
84+
8585

8686
class SpectrumConfigPaygoAppConfig(TypedDict, total=False):
8787
zone_id: Required[str]

src/cloudflare/types/spectrum/app_update_response.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ class SpectrumConfigAppConfig(BaseModel):
2323
dns: DNS
2424
"""The name and type of DNS record for the Spectrum application."""
2525

26-
ip_firewall: bool
27-
"""
28-
Enables IP Access Rules for this application. Notes: Only available for TCP
29-
applications.
30-
"""
31-
3226
modified_on: datetime
3327
"""When the Application was last modified."""
3428

@@ -39,18 +33,6 @@ class SpectrumConfigAppConfig(BaseModel):
3933
example `"tcp/1000-2000"`.
4034
"""
4135

42-
proxy_protocol: Literal["off", "v1", "v2", "simple"]
43-
"""Enables Proxy Protocol to the origin.
44-
45-
Refer to
46-
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
47-
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
48-
Proxy Protocol.
49-
"""
50-
51-
tls: Literal["off", "flexible", "full", "strict"]
52-
"""The type of TLS termination associated with the application."""
53-
5436
traffic_type: Literal["direct", "http", "https"]
5537
"""Determines how data travels from the edge to your origin.
5638
@@ -69,6 +51,12 @@ class SpectrumConfigAppConfig(BaseModel):
6951
edge_ips: Optional[EdgeIPs] = None
7052
"""The anycast edge IP configuration for the hostname of this application."""
7153

54+
ip_firewall: Optional[bool] = None
55+
"""
56+
Enables IP Access Rules for this application. Notes: Only available for TCP
57+
applications.
58+
"""
59+
7260
origin_direct: Optional[List[str]] = None
7361
"""List of origin IP addresses.
7462
@@ -88,6 +76,18 @@ class SpectrumConfigAppConfig(BaseModel):
8876
field.
8977
"""
9078

79+
proxy_protocol: Optional[Literal["off", "v1", "v2", "simple"]] = None
80+
"""Enables Proxy Protocol to the origin.
81+
82+
Refer to
83+
[Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
84+
for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
85+
Proxy Protocol.
86+
"""
87+
88+
tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
89+
"""The type of TLS termination associated with the application."""
90+
9191

9292
class SpectrumConfigPaygoAppConfig(BaseModel):
9393
id: str

0 commit comments

Comments
 (0)