Skip to content

Commit 6b38219

Browse files
feat(api): api update
1 parent 1c6167c commit 6b38219

File tree

5 files changed

+16
-66
lines changed

5 files changed

+16
-66
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-a4b6c9d841c558ea8cf211a24249c5427e3ef58390a17c486a113d6d87652e35.yml
3-
openapi_spec_hash: 9bcab79f4888b8b842ade5cd00667fdf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-15e1294d80aa14c36de2b0cf0eade2a04e239fd0818775c602d5a64c24a1e128.yml
3+
openapi_spec_hash: 7e0e5f8e49376789b4a5befbcfabf35c
44
config_hash: de4c81cee29cd7dd907279e8916b334f

src/cloudflare/types/zones/browser_cache_ttl.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ class BrowserCacheTTL(BaseModel):
1313
"""Control how long resources cached by client browsers remain valid."""
1414

1515
value: Optional[int] = None
16-
"""The number of seconds to cache resources for.
16+
"""The number of seconds to cache resources for. Minimum values by plan:
1717
18-
The API prohibits setting this to 0 for non-Enterprise domains.
18+
- Free: 7200 seconds (2 hours)
19+
- Pro: 3600 seconds (1 hour)
20+
- Business: 1 second
21+
- Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
22+
is allowed for all plans.
1923
"""

src/cloudflare/types/zones/browser_cache_ttl_param.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ class BrowserCacheTTLParam(TypedDict, total=False):
1212
"""Control how long resources cached by client browsers remain valid."""
1313

1414
value: int
15-
"""The number of seconds to cache resources for.
15+
"""The number of seconds to cache resources for. Minimum values by plan:
1616
17-
The API prohibits setting this to 0 for non-Enterprise domains.
17+
- Free: 7200 seconds (2 hours)
18+
- Pro: 3600 seconds (1 hour)
19+
- Business: 1 second
20+
- Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
21+
is allowed for all plans.
1822
"""

src/cloudflare/types/zones/setting_edit_response.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -133,36 +133,7 @@ class ZonesSchemasBrowserCacheTTL(BaseModel):
133133
id: Literal["browser_cache_ttl"]
134134
"""ID of the zone setting."""
135135

136-
value: Literal[
137-
0,
138-
30,
139-
60,
140-
120,
141-
300,
142-
1200,
143-
1800,
144-
3600,
145-
7200,
146-
10800,
147-
14400,
148-
18000,
149-
28800,
150-
43200,
151-
57600,
152-
72000,
153-
86400,
154-
172800,
155-
259200,
156-
345600,
157-
432000,
158-
691200,
159-
1382400,
160-
2073600,
161-
2678400,
162-
5356800,
163-
16070400,
164-
31536000,
165-
]
136+
value: int
166137
"""Current value of the zone setting."""
167138

168139
editable: Optional[Literal[True, False]] = None

src/cloudflare/types/zones/setting_get_response.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -133,36 +133,7 @@ class ZonesSchemasBrowserCacheTTL(BaseModel):
133133
id: Literal["browser_cache_ttl"]
134134
"""ID of the zone setting."""
135135

136-
value: Literal[
137-
0,
138-
30,
139-
60,
140-
120,
141-
300,
142-
1200,
143-
1800,
144-
3600,
145-
7200,
146-
10800,
147-
14400,
148-
18000,
149-
28800,
150-
43200,
151-
57600,
152-
72000,
153-
86400,
154-
172800,
155-
259200,
156-
345600,
157-
432000,
158-
691200,
159-
1382400,
160-
2073600,
161-
2678400,
162-
5356800,
163-
16070400,
164-
31536000,
165-
]
136+
value: int
166137
"""Current value of the zone setting."""
167138

168139
editable: Optional[Literal[True, False]] = None

0 commit comments

Comments
 (0)