Skip to content

Commit 272e71c

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#2216)
1 parent ce08157 commit 272e71c

15 files changed

+74
-321
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-511887ff04241247ce592a1c095e403a0fc8b376f7072c28bc59ced11f82e547.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-da11321182930ad0deb0691d0e8e6c3bf9cced28dfb452d612590e86ec13a5a3.yml

src/cloudflare/types/pagerules/page_rule.py

-36
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
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
2120
from ..zones.browser_cache_ttl import BrowserCacheTTL
2221
from ..zones.email_obfuscation import EmailObfuscation
23-
from ..zones.hotlink_protection import HotlinkProtection
2422
from ..zones.response_buffering import ResponseBuffering
25-
from ..zones.server_side_excludes import ServerSideExcludes
2623
from ..zones.true_client_ip_header import TrueClientIPHeader
2724
from ..zones.automatic_https_rewrites import AutomaticHTTPSRewrites
2825
from ..zones.opportunistic_encryption import OpportunisticEncryption
@@ -42,10 +39,7 @@
4239
"ActionCacheKeyValueHost",
4340
"ActionCacheKeyValueQueryString",
4441
"ActionCacheKeyValueUser",
45-
"ActionCacheKeyFields",
4642
"ActionCacheOnCookie",
47-
"ActionCacheTTLByStatus",
48-
"ActionDDoSProtection",
4943
"ActionDisableApps",
5044
"ActionDisablePerformance",
5145
"ActionDisableSecurity",
@@ -55,8 +49,6 @@
5549
"ActionForwardingURL",
5650
"ActionForwardingURLValue",
5751
"ActionHostHeaderOverride",
58-
"ActionMinify",
59-
"ActionPurgeByPageRule",
6052
"ActionResolveOverride",
6153
"ActionRespectStrongEtag",
6254
]
@@ -187,10 +179,6 @@ class ActionCacheKey(BaseModel):
187179
value: Optional[ActionCacheKeyValue] = None
188180

189181

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

204192

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-
213193
class ActionDisableApps(BaseModel):
214194
id: Optional[Literal["disable_apps"]] = None
215195
"""
@@ -301,14 +281,6 @@ class ActionHostHeaderOverride(BaseModel):
301281
"""The hostname to use in the `Host` header"""
302282

303283

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-
312284
class ActionResolveOverride(BaseModel):
313285
id: Optional[Literal["resolve_override"]] = None
314286
"""Change the origin address to the value specified in this setting."""
@@ -338,12 +310,8 @@ class ActionRespectStrongEtag(BaseModel):
338310
ActionCacheByDeviceType,
339311
ActionCacheDeceptionArmor,
340312
ActionCacheKey,
341-
ActionCacheKeyFields,
342313
CacheLevel,
343314
ActionCacheOnCookie,
344-
ActionCacheTTLByStatus,
345-
ActionDDoSProtection,
346-
DevelopmentMode,
347315
ActionDisableApps,
348316
ActionDisablePerformance,
349317
ActionDisableSecurity,
@@ -353,20 +321,16 @@ class ActionRespectStrongEtag(BaseModel):
353321
ActionExplicitCacheControl,
354322
ActionForwardingURL,
355323
ActionHostHeaderOverride,
356-
HotlinkProtection,
357324
IPGeolocation,
358-
ActionMinify,
359325
Mirage,
360326
OpportunisticEncryption,
361327
OriginErrorPagePassThru,
362328
Polish,
363-
ActionPurgeByPageRule,
364329
ActionResolveOverride,
365330
ActionRespectStrongEtag,
366331
ResponseBuffering,
367332
RocketLoader,
368333
SecurityLevel,
369-
ServerSideExcludes,
370334
SortQueryStringForCache,
371335
SSL,
372336
TrueClientIPHeader,

src/cloudflare/types/pagerules/pagerule_create_params.py

-36
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
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
2019
from ..zones.browser_cache_ttl_param import BrowserCacheTTLParam
2120
from ..zones.email_obfuscation_param import EmailObfuscationParam
22-
from ..zones.hotlink_protection_param import HotlinkProtectionParam
2321
from ..zones.response_buffering_param import ResponseBufferingParam
24-
from ..zones.server_side_excludes_param import ServerSideExcludesParam
2522
from ..zones.true_client_ip_header_param import TrueClientIPHeaderParam
2623
from ..zones.automatic_https_rewrites_param import AutomaticHTTPSRewritesParam
2724
from ..zones.opportunistic_encryption_param import OpportunisticEncryptionParam
@@ -41,10 +38,7 @@
4138
"ActionCacheKeyValueHost",
4239
"ActionCacheKeyValueQueryString",
4340
"ActionCacheKeyValueUser",
44-
"ActionCacheKeyFields",
4541
"ActionCacheOnCookie",
46-
"ActionCacheTTLByStatus",
47-
"ActionDDoSProtection",
4842
"ActionDisableApps",
4943
"ActionDisablePerformance",
5044
"ActionDisableSecurity",
@@ -54,8 +48,6 @@
5448
"ActionForwardingURL",
5549
"ActionForwardingURLValue",
5650
"ActionHostHeaderOverride",
57-
"ActionMinify",
58-
"ActionPurgeByPageRule",
5951
"ActionResolveOverride",
6052
"ActionRespectStrongEtag",
6153
]
@@ -212,10 +204,6 @@ class ActionCacheKey(TypedDict, total=False):
212204
value: ActionCacheKeyValue
213205

214206

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

229217

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-
238218
class ActionDisableApps(TypedDict, total=False):
239219
id: Literal["disable_apps"]
240220
"""
@@ -326,14 +306,6 @@ class ActionHostHeaderOverride(TypedDict, total=False):
326306
"""The hostname to use in the `Host` header"""
327307

328308

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-
337309
class ActionResolveOverride(TypedDict, total=False):
338310
id: Literal["resolve_override"]
339311
"""Change the origin address to the value specified in this setting."""
@@ -362,12 +334,8 @@ class ActionRespectStrongEtag(TypedDict, total=False):
362334
ActionCacheByDeviceType,
363335
ActionCacheDeceptionArmor,
364336
ActionCacheKey,
365-
ActionCacheKeyFields,
366337
CacheLevelParam,
367338
ActionCacheOnCookie,
368-
ActionCacheTTLByStatus,
369-
ActionDDoSProtection,
370-
DevelopmentModeParam,
371339
ActionDisableApps,
372340
ActionDisablePerformance,
373341
ActionDisableSecurity,
@@ -377,20 +345,16 @@ class ActionRespectStrongEtag(TypedDict, total=False):
377345
ActionExplicitCacheControl,
378346
ActionForwardingURL,
379347
ActionHostHeaderOverride,
380-
HotlinkProtectionParam,
381348
IPGeolocationParam,
382-
ActionMinify,
383349
MirageParam,
384350
OpportunisticEncryptionParam,
385351
OriginErrorPagePassThruParam,
386352
PolishParam,
387-
ActionPurgeByPageRule,
388353
ActionResolveOverride,
389354
ActionRespectStrongEtag,
390355
ResponseBufferingParam,
391356
RocketLoaderParam,
392357
SecurityLevelParam,
393-
ServerSideExcludesParam,
394358
SortQueryStringForCacheParam,
395359
SSLParam,
396360
TrueClientIPHeaderParam,

src/cloudflare/types/pagerules/pagerule_edit_params.py

-36
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
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
2019
from ..zones.browser_cache_ttl_param import BrowserCacheTTLParam
2120
from ..zones.email_obfuscation_param import EmailObfuscationParam
22-
from ..zones.hotlink_protection_param import HotlinkProtectionParam
2321
from ..zones.response_buffering_param import ResponseBufferingParam
24-
from ..zones.server_side_excludes_param import ServerSideExcludesParam
2522
from ..zones.true_client_ip_header_param import TrueClientIPHeaderParam
2623
from ..zones.automatic_https_rewrites_param import AutomaticHTTPSRewritesParam
2724
from ..zones.opportunistic_encryption_param import OpportunisticEncryptionParam
@@ -41,10 +38,7 @@
4138
"ActionCacheKeyValueHost",
4239
"ActionCacheKeyValueQueryString",
4340
"ActionCacheKeyValueUser",
44-
"ActionCacheKeyFields",
4541
"ActionCacheOnCookie",
46-
"ActionCacheTTLByStatus",
47-
"ActionDDoSProtection",
4842
"ActionDisableApps",
4943
"ActionDisablePerformance",
5044
"ActionDisableSecurity",
@@ -54,8 +48,6 @@
5448
"ActionForwardingURL",
5549
"ActionForwardingURLValue",
5650
"ActionHostHeaderOverride",
57-
"ActionMinify",
58-
"ActionPurgeByPageRule",
5951
"ActionResolveOverride",
6052
"ActionRespectStrongEtag",
6153
]
@@ -212,10 +204,6 @@ class ActionCacheKey(TypedDict, total=False):
212204
value: ActionCacheKeyValue
213205

214206

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

229217

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-
238218
class ActionDisableApps(TypedDict, total=False):
239219
id: Literal["disable_apps"]
240220
"""
@@ -326,14 +306,6 @@ class ActionHostHeaderOverride(TypedDict, total=False):
326306
"""The hostname to use in the `Host` header"""
327307

328308

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-
337309
class ActionResolveOverride(TypedDict, total=False):
338310
id: Literal["resolve_override"]
339311
"""Change the origin address to the value specified in this setting."""
@@ -362,12 +334,8 @@ class ActionRespectStrongEtag(TypedDict, total=False):
362334
ActionCacheByDeviceType,
363335
ActionCacheDeceptionArmor,
364336
ActionCacheKey,
365-
ActionCacheKeyFields,
366337
CacheLevelParam,
367338
ActionCacheOnCookie,
368-
ActionCacheTTLByStatus,
369-
ActionDDoSProtection,
370-
DevelopmentModeParam,
371339
ActionDisableApps,
372340
ActionDisablePerformance,
373341
ActionDisableSecurity,
@@ -377,20 +345,16 @@ class ActionRespectStrongEtag(TypedDict, total=False):
377345
ActionExplicitCacheControl,
378346
ActionForwardingURL,
379347
ActionHostHeaderOverride,
380-
HotlinkProtectionParam,
381348
IPGeolocationParam,
382-
ActionMinify,
383349
MirageParam,
384350
OpportunisticEncryptionParam,
385351
OriginErrorPagePassThruParam,
386352
PolishParam,
387-
ActionPurgeByPageRule,
388353
ActionResolveOverride,
389354
ActionRespectStrongEtag,
390355
ResponseBufferingParam,
391356
RocketLoaderParam,
392357
SecurityLevelParam,
393-
ServerSideExcludesParam,
394358
SortQueryStringForCacheParam,
395359
SSLParam,
396360
TrueClientIPHeaderParam,

0 commit comments

Comments
 (0)