Skip to content

Commit 09de961

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): codegen related update (#2217)
1 parent 272e71c commit 09de961

15 files changed

+321
-74
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1436
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-da11321182930ad0deb0691d0e8e6c3bf9cced28dfb452d612590e86ec13a5a3.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-511887ff04241247ce592a1c095e403a0fc8b376f7072c28bc59ced11f82e547.yml

src/cloudflare/types/pagerules/page_rule.py

+36
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
from ..zones.ip_geolocation import IPGeolocation
1818
from ..zones.security_level import SecurityLevel
1919
from ..zones.always_use_https import AlwaysUseHTTPS
20+
from ..zones.development_mode import DevelopmentMode
2021
from ..zones.browser_cache_ttl import BrowserCacheTTL
2122
from ..zones.email_obfuscation import EmailObfuscation
23+
from ..zones.hotlink_protection import HotlinkProtection
2224
from ..zones.response_buffering import ResponseBuffering
25+
from ..zones.server_side_excludes import ServerSideExcludes
2326
from ..zones.true_client_ip_header import TrueClientIPHeader
2427
from ..zones.automatic_https_rewrites import AutomaticHTTPSRewrites
2528
from ..zones.opportunistic_encryption import OpportunisticEncryption
@@ -39,7 +42,10 @@
3942
"ActionCacheKeyValueHost",
4043
"ActionCacheKeyValueQueryString",
4144
"ActionCacheKeyValueUser",
45+
"ActionCacheKeyFields",
4246
"ActionCacheOnCookie",
47+
"ActionCacheTTLByStatus",
48+
"ActionDDoSProtection",
4349
"ActionDisableApps",
4450
"ActionDisablePerformance",
4551
"ActionDisableSecurity",
@@ -49,6 +55,8 @@
4955
"ActionForwardingURL",
5056
"ActionForwardingURLValue",
5157
"ActionHostHeaderOverride",
58+
"ActionMinify",
59+
"ActionPurgeByPageRule",
5260
"ActionResolveOverride",
5361
"ActionRespectStrongEtag",
5462
]
@@ -179,6 +187,10 @@ class ActionCacheKey(BaseModel):
179187
value: Optional[ActionCacheKeyValue] = None
180188

181189

190+
class ActionCacheKeyFields(BaseModel):
191+
id: Optional[Literal["cache_key_fields"]] = None
192+
193+
182194
class ActionCacheOnCookie(BaseModel):
183195
id: Optional[Literal["cache_on_cookie"]] = None
184196
"""
@@ -190,6 +202,14 @@ class ActionCacheOnCookie(BaseModel):
190202
"""The regular expression to use for matching cookie names in the request."""
191203

192204

205+
class ActionCacheTTLByStatus(BaseModel):
206+
id: Optional[Literal["cache_ttl_by_status"]] = None
207+
208+
209+
class ActionDDoSProtection(BaseModel):
210+
id: Optional[Literal["ddos_protection"]] = None
211+
212+
193213
class ActionDisableApps(BaseModel):
194214
id: Optional[Literal["disable_apps"]] = None
195215
"""
@@ -281,6 +301,14 @@ class ActionHostHeaderOverride(BaseModel):
281301
"""The hostname to use in the `Host` header"""
282302

283303

304+
class ActionMinify(BaseModel):
305+
id: Optional[Literal["minify"]] = None
306+
307+
308+
class ActionPurgeByPageRule(BaseModel):
309+
id: Optional[Literal["purge_by_page_rule"]] = None
310+
311+
284312
class ActionResolveOverride(BaseModel):
285313
id: Optional[Literal["resolve_override"]] = None
286314
"""Change the origin address to the value specified in this setting."""
@@ -310,8 +338,12 @@ class ActionRespectStrongEtag(BaseModel):
310338
ActionCacheByDeviceType,
311339
ActionCacheDeceptionArmor,
312340
ActionCacheKey,
341+
ActionCacheKeyFields,
313342
CacheLevel,
314343
ActionCacheOnCookie,
344+
ActionCacheTTLByStatus,
345+
ActionDDoSProtection,
346+
DevelopmentMode,
315347
ActionDisableApps,
316348
ActionDisablePerformance,
317349
ActionDisableSecurity,
@@ -321,16 +353,20 @@ class ActionRespectStrongEtag(BaseModel):
321353
ActionExplicitCacheControl,
322354
ActionForwardingURL,
323355
ActionHostHeaderOverride,
356+
HotlinkProtection,
324357
IPGeolocation,
358+
ActionMinify,
325359
Mirage,
326360
OpportunisticEncryption,
327361
OriginErrorPagePassThru,
328362
Polish,
363+
ActionPurgeByPageRule,
329364
ActionResolveOverride,
330365
ActionRespectStrongEtag,
331366
ResponseBuffering,
332367
RocketLoader,
333368
SecurityLevel,
369+
ServerSideExcludes,
334370
SortQueryStringForCache,
335371
SSL,
336372
TrueClientIPHeader,

src/cloudflare/types/pagerules/pagerule_create_params.py

+36
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
from ..zones.ip_geolocation_param import IPGeolocationParam
1717
from ..zones.security_level_param import SecurityLevelParam
1818
from ..zones.always_use_https_param import AlwaysUseHTTPSParam
19+
from ..zones.development_mode_param import DevelopmentModeParam
1920
from ..zones.browser_cache_ttl_param import BrowserCacheTTLParam
2021
from ..zones.email_obfuscation_param import EmailObfuscationParam
22+
from ..zones.hotlink_protection_param import HotlinkProtectionParam
2123
from ..zones.response_buffering_param import ResponseBufferingParam
24+
from ..zones.server_side_excludes_param import ServerSideExcludesParam
2225
from ..zones.true_client_ip_header_param import TrueClientIPHeaderParam
2326
from ..zones.automatic_https_rewrites_param import AutomaticHTTPSRewritesParam
2427
from ..zones.opportunistic_encryption_param import OpportunisticEncryptionParam
@@ -38,7 +41,10 @@
3841
"ActionCacheKeyValueHost",
3942
"ActionCacheKeyValueQueryString",
4043
"ActionCacheKeyValueUser",
44+
"ActionCacheKeyFields",
4145
"ActionCacheOnCookie",
46+
"ActionCacheTTLByStatus",
47+
"ActionDDoSProtection",
4248
"ActionDisableApps",
4349
"ActionDisablePerformance",
4450
"ActionDisableSecurity",
@@ -48,6 +54,8 @@
4854
"ActionForwardingURL",
4955
"ActionForwardingURLValue",
5056
"ActionHostHeaderOverride",
57+
"ActionMinify",
58+
"ActionPurgeByPageRule",
5159
"ActionResolveOverride",
5260
"ActionRespectStrongEtag",
5361
]
@@ -204,6 +212,10 @@ class ActionCacheKey(TypedDict, total=False):
204212
value: ActionCacheKeyValue
205213

206214

215+
class ActionCacheKeyFields(TypedDict, total=False):
216+
id: Literal["cache_key_fields"]
217+
218+
207219
class ActionCacheOnCookie(TypedDict, total=False):
208220
id: Literal["cache_on_cookie"]
209221
"""
@@ -215,6 +227,14 @@ class ActionCacheOnCookie(TypedDict, total=False):
215227
"""The regular expression to use for matching cookie names in the request."""
216228

217229

230+
class ActionCacheTTLByStatus(TypedDict, total=False):
231+
id: Literal["cache_ttl_by_status"]
232+
233+
234+
class ActionDDoSProtection(TypedDict, total=False):
235+
id: Literal["ddos_protection"]
236+
237+
218238
class ActionDisableApps(TypedDict, total=False):
219239
id: Literal["disable_apps"]
220240
"""
@@ -306,6 +326,14 @@ class ActionHostHeaderOverride(TypedDict, total=False):
306326
"""The hostname to use in the `Host` header"""
307327

308328

329+
class ActionMinify(TypedDict, total=False):
330+
id: Literal["minify"]
331+
332+
333+
class ActionPurgeByPageRule(TypedDict, total=False):
334+
id: Literal["purge_by_page_rule"]
335+
336+
309337
class ActionResolveOverride(TypedDict, total=False):
310338
id: Literal["resolve_override"]
311339
"""Change the origin address to the value specified in this setting."""
@@ -334,8 +362,12 @@ class ActionRespectStrongEtag(TypedDict, total=False):
334362
ActionCacheByDeviceType,
335363
ActionCacheDeceptionArmor,
336364
ActionCacheKey,
365+
ActionCacheKeyFields,
337366
CacheLevelParam,
338367
ActionCacheOnCookie,
368+
ActionCacheTTLByStatus,
369+
ActionDDoSProtection,
370+
DevelopmentModeParam,
339371
ActionDisableApps,
340372
ActionDisablePerformance,
341373
ActionDisableSecurity,
@@ -345,16 +377,20 @@ class ActionRespectStrongEtag(TypedDict, total=False):
345377
ActionExplicitCacheControl,
346378
ActionForwardingURL,
347379
ActionHostHeaderOverride,
380+
HotlinkProtectionParam,
348381
IPGeolocationParam,
382+
ActionMinify,
349383
MirageParam,
350384
OpportunisticEncryptionParam,
351385
OriginErrorPagePassThruParam,
352386
PolishParam,
387+
ActionPurgeByPageRule,
353388
ActionResolveOverride,
354389
ActionRespectStrongEtag,
355390
ResponseBufferingParam,
356391
RocketLoaderParam,
357392
SecurityLevelParam,
393+
ServerSideExcludesParam,
358394
SortQueryStringForCacheParam,
359395
SSLParam,
360396
TrueClientIPHeaderParam,

src/cloudflare/types/pagerules/pagerule_edit_params.py

+36
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
from ..zones.ip_geolocation_param import IPGeolocationParam
1717
from ..zones.security_level_param import SecurityLevelParam
1818
from ..zones.always_use_https_param import AlwaysUseHTTPSParam
19+
from ..zones.development_mode_param import DevelopmentModeParam
1920
from ..zones.browser_cache_ttl_param import BrowserCacheTTLParam
2021
from ..zones.email_obfuscation_param import EmailObfuscationParam
22+
from ..zones.hotlink_protection_param import HotlinkProtectionParam
2123
from ..zones.response_buffering_param import ResponseBufferingParam
24+
from ..zones.server_side_excludes_param import ServerSideExcludesParam
2225
from ..zones.true_client_ip_header_param import TrueClientIPHeaderParam
2326
from ..zones.automatic_https_rewrites_param import AutomaticHTTPSRewritesParam
2427
from ..zones.opportunistic_encryption_param import OpportunisticEncryptionParam
@@ -38,7 +41,10 @@
3841
"ActionCacheKeyValueHost",
3942
"ActionCacheKeyValueQueryString",
4043
"ActionCacheKeyValueUser",
44+
"ActionCacheKeyFields",
4145
"ActionCacheOnCookie",
46+
"ActionCacheTTLByStatus",
47+
"ActionDDoSProtection",
4248
"ActionDisableApps",
4349
"ActionDisablePerformance",
4450
"ActionDisableSecurity",
@@ -48,6 +54,8 @@
4854
"ActionForwardingURL",
4955
"ActionForwardingURLValue",
5056
"ActionHostHeaderOverride",
57+
"ActionMinify",
58+
"ActionPurgeByPageRule",
5159
"ActionResolveOverride",
5260
"ActionRespectStrongEtag",
5361
]
@@ -204,6 +212,10 @@ class ActionCacheKey(TypedDict, total=False):
204212
value: ActionCacheKeyValue
205213

206214

215+
class ActionCacheKeyFields(TypedDict, total=False):
216+
id: Literal["cache_key_fields"]
217+
218+
207219
class ActionCacheOnCookie(TypedDict, total=False):
208220
id: Literal["cache_on_cookie"]
209221
"""
@@ -215,6 +227,14 @@ class ActionCacheOnCookie(TypedDict, total=False):
215227
"""The regular expression to use for matching cookie names in the request."""
216228

217229

230+
class ActionCacheTTLByStatus(TypedDict, total=False):
231+
id: Literal["cache_ttl_by_status"]
232+
233+
234+
class ActionDDoSProtection(TypedDict, total=False):
235+
id: Literal["ddos_protection"]
236+
237+
218238
class ActionDisableApps(TypedDict, total=False):
219239
id: Literal["disable_apps"]
220240
"""
@@ -306,6 +326,14 @@ class ActionHostHeaderOverride(TypedDict, total=False):
306326
"""The hostname to use in the `Host` header"""
307327

308328

329+
class ActionMinify(TypedDict, total=False):
330+
id: Literal["minify"]
331+
332+
333+
class ActionPurgeByPageRule(TypedDict, total=False):
334+
id: Literal["purge_by_page_rule"]
335+
336+
309337
class ActionResolveOverride(TypedDict, total=False):
310338
id: Literal["resolve_override"]
311339
"""Change the origin address to the value specified in this setting."""
@@ -334,8 +362,12 @@ class ActionRespectStrongEtag(TypedDict, total=False):
334362
ActionCacheByDeviceType,
335363
ActionCacheDeceptionArmor,
336364
ActionCacheKey,
365+
ActionCacheKeyFields,
337366
CacheLevelParam,
338367
ActionCacheOnCookie,
368+
ActionCacheTTLByStatus,
369+
ActionDDoSProtection,
370+
DevelopmentModeParam,
339371
ActionDisableApps,
340372
ActionDisablePerformance,
341373
ActionDisableSecurity,
@@ -345,16 +377,20 @@ class ActionRespectStrongEtag(TypedDict, total=False):
345377
ActionExplicitCacheControl,
346378
ActionForwardingURL,
347379
ActionHostHeaderOverride,
380+
HotlinkProtectionParam,
348381
IPGeolocationParam,
382+
ActionMinify,
349383
MirageParam,
350384
OpportunisticEncryptionParam,
351385
OriginErrorPagePassThruParam,
352386
PolishParam,
387+
ActionPurgeByPageRule,
353388
ActionResolveOverride,
354389
ActionRespectStrongEtag,
355390
ResponseBufferingParam,
356391
RocketLoaderParam,
357392
SecurityLevelParam,
393+
ServerSideExcludesParam,
358394
SortQueryStringForCacheParam,
359395
SSLParam,
360396
TrueClientIPHeaderParam,

0 commit comments

Comments
 (0)