Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8a25d6

Browse files
feat(api): api update
1 parent681873a commite8a25d6

File tree

9 files changed

+40
-40
lines changed

9 files changed

+40
-40
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:1752
2-
openapi_spec_url:https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-35ee20408f8ef8d86d4b7721eaec5522bb399d0cdc36060485669778546f8943.yml
3-
openapi_spec_hash:492ad6e336a4e1700fca5bee1a22d27e
2+
openapi_spec_url:https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c9d03f7778e08946851b892774b4e4ae7e5850d6bf9aa46a2f2987ae36654c11.yml
3+
openapi_spec_hash:ea5aedea123848557686e3f613fd02b7
44
config_hash:8f5aab183b4a8e0f4a9ec9c0293b54f1

‎src/cloudflare/types/rulesets/rule_create_params.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,7 @@ class SetConfigRuleActionParameters(TypedDict, total=False):
19671967
"""Configure the Polish level."""
19681968

19691969
rocket_loader:bool
1970-
"""Turn on or off Rocket Loader"""
1970+
"""Turn on or off Rocket Loader."""
19711971

19721972
security_level:Literal["off","essentially_off","low","medium","high","under_attack"]
19731973
"""Configure the Security Level."""
@@ -2394,12 +2394,12 @@ class SetCacheSettingsRuleActionParametersCacheKeyCustomKey(TypedDict, total=Fal
23942394

23952395
classSetCacheSettingsRuleActionParametersCacheKey(TypedDict,total=False):
23962396
cache_by_device_type:bool
2397-
"""Separate cached content based on the visitor’s device type"""
2397+
"""Separate cached content based on the visitor’s device type."""
23982398

23992399
cache_deception_armor:bool
24002400
"""
24012401
Protect from web cache deception attacks while allowing static assets to be
2402-
cached
2402+
cached.
24032403
"""
24042404

24052405
custom_key:SetCacheSettingsRuleActionParametersCacheKeyCustomKey
@@ -2440,7 +2440,7 @@ class SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRange(
24402440
_SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeReservedKeywords,total=False
24412441
):
24422442
to:Required[int]
2443-
"""response status code upper bound"""
2443+
"""Response status code upper bound."""
24442444

24452445

24462446
classSetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL(TypedDict,total=False):
@@ -2456,18 +2456,18 @@ class SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL(TypedDict, total=
24562456
"""The range of status codes used to apply the selected mode."""
24572457

24582458
status_code_value:int
2459-
"""Set thettl for responses with this specific status code"""
2459+
"""Set theTTL for responses with this specific status code."""
24602460

24612461

24622462
classSetCacheSettingsRuleActionParametersEdgeTTL(TypedDict,total=False):
24632463
default:Required[int]
24642464
"""The TTL (in seconds) if you choose override_origin mode."""
24652465

24662466
mode:Required[Literal["respect_origin","bypass_by_default","override_origin"]]
2467-
"""edge ttl options"""
2467+
"""Edge TTL options."""
24682468

24692469
status_code_ttl:Required[Iterable[SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL]]
2470-
"""List of single status codes, or status code ranges to apply the selected mode"""
2470+
"""List of single status codes, or status code ranges to apply the selected mode."""
24712471

24722472

24732473
classSetCacheSettingsRuleActionParametersServeStale(TypedDict,total=False):
@@ -2521,7 +2521,7 @@ class SetCacheSettingsRuleActionParameters(TypedDict, total=False):
25212521
origin_error_page_passthru:bool
25222522
"""Generate Cloudflare error pages from issues sent from the origin server.
25232523
2524-
When on, error pages will trigger for issues from the origin
2524+
When on, error pages will trigger for issues from the origin.
25252525
"""
25262526

25272527
read_timeout:int

‎src/cloudflare/types/rulesets/rule_edit_params.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ class SetConfigRuleActionParameters(TypedDict, total=False):
20062006
"""Configure the Polish level."""
20072007

20082008
rocket_loader:bool
2009-
"""Turn on or off Rocket Loader"""
2009+
"""Turn on or off Rocket Loader."""
20102010

20112011
security_level:Literal["off","essentially_off","low","medium","high","under_attack"]
20122012
"""Configure the Security Level."""
@@ -2439,12 +2439,12 @@ class SetCacheSettingsRuleActionParametersCacheKeyCustomKey(TypedDict, total=Fal
24392439

24402440
classSetCacheSettingsRuleActionParametersCacheKey(TypedDict,total=False):
24412441
cache_by_device_type:bool
2442-
"""Separate cached content based on the visitor’s device type"""
2442+
"""Separate cached content based on the visitor’s device type."""
24432443

24442444
cache_deception_armor:bool
24452445
"""
24462446
Protect from web cache deception attacks while allowing static assets to be
2447-
cached
2447+
cached.
24482448
"""
24492449

24502450
custom_key:SetCacheSettingsRuleActionParametersCacheKeyCustomKey
@@ -2485,7 +2485,7 @@ class SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRange(
24852485
_SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeReservedKeywords,total=False
24862486
):
24872487
to:Required[int]
2488-
"""response status code upper bound"""
2488+
"""Response status code upper bound."""
24892489

24902490

24912491
classSetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL(TypedDict,total=False):
@@ -2501,18 +2501,18 @@ class SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL(TypedDict, total=
25012501
"""The range of status codes used to apply the selected mode."""
25022502

25032503
status_code_value:int
2504-
"""Set thettl for responses with this specific status code"""
2504+
"""Set theTTL for responses with this specific status code."""
25052505

25062506

25072507
classSetCacheSettingsRuleActionParametersEdgeTTL(TypedDict,total=False):
25082508
default:Required[int]
25092509
"""The TTL (in seconds) if you choose override_origin mode."""
25102510

25112511
mode:Required[Literal["respect_origin","bypass_by_default","override_origin"]]
2512-
"""edge ttl options"""
2512+
"""Edge TTL options."""
25132513

25142514
status_code_ttl:Required[Iterable[SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTL]]
2515-
"""List of single status codes, or status code ranges to apply the selected mode"""
2515+
"""List of single status codes, or status code ranges to apply the selected mode."""
25162516

25172517

25182518
classSetCacheSettingsRuleActionParametersServeStale(TypedDict,total=False):
@@ -2566,7 +2566,7 @@ class SetCacheSettingsRuleActionParameters(TypedDict, total=False):
25662566
origin_error_page_passthru:bool
25672567
"""Generate Cloudflare error pages from issues sent from the origin server.
25682568
2569-
When on, error pages will trigger for issues from the origin
2569+
When on, error pages will trigger for issues from the origin.
25702570
"""
25712571

25722572
read_timeout:int

‎src/cloudflare/types/rulesets/set_cache_settings_rule.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ class ActionParametersCacheKeyCustomKey(BaseModel):
179179

180180
classActionParametersCacheKey(BaseModel):
181181
cache_by_device_type:Optional[bool]=None
182-
"""Separate cached content based on the visitor’s device type"""
182+
"""Separate cached content based on the visitor’s device type."""
183183

184184
cache_deception_armor:Optional[bool]=None
185185
"""
186186
Protect from web cache deception attacks while allowing static assets to be
187-
cached
187+
cached.
188188
"""
189189

190190
custom_key:Optional[ActionParametersCacheKeyCustomKey]=None
@@ -214,10 +214,10 @@ class ActionParametersCacheReserve(BaseModel):
214214

215215
classActionParametersEdgeTTLStatusCodeTTLStatusCodeRange(BaseModel):
216216
from_:int=FieldInfo(alias="from")
217-
"""response status code lower bound"""
217+
"""Response status code lower bound."""
218218

219219
to:int
220-
"""response status code upper bound"""
220+
"""Response status code upper bound."""
221221

222222

223223
classActionParametersEdgeTTLStatusCodeTTL(BaseModel):
@@ -233,18 +233,18 @@ class ActionParametersEdgeTTLStatusCodeTTL(BaseModel):
233233
"""The range of status codes used to apply the selected mode."""
234234

235235
status_code_value:Optional[int]=None
236-
"""Set thettl for responses with this specific status code"""
236+
"""Set theTTL for responses with this specific status code."""
237237

238238

239239
classActionParametersEdgeTTL(BaseModel):
240240
default:int
241241
"""The TTL (in seconds) if you choose override_origin mode."""
242242

243243
mode:Literal["respect_origin","bypass_by_default","override_origin"]
244-
"""edge ttl options"""
244+
"""Edge TTL options."""
245245

246246
status_code_ttl:List[ActionParametersEdgeTTLStatusCodeTTL]
247-
"""List of single status codes, or status code ranges to apply the selected mode"""
247+
"""List of single status codes, or status code ranges to apply the selected mode."""
248248

249249

250250
classActionParametersServeStale(BaseModel):
@@ -298,7 +298,7 @@ class ActionParameters(BaseModel):
298298
origin_error_page_passthru:Optional[bool]=None
299299
"""Generate Cloudflare error pages from issues sent from the origin server.
300300
301-
When on, error pages will trigger for issues from the origin
301+
When on, error pages will trigger for issues from the origin.
302302
"""
303303

304304
read_timeout:Optional[int]=None

‎src/cloudflare/types/rulesets/set_cache_settings_rule_param.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ class ActionParametersCacheKeyCustomKey(TypedDict, total=False):
177177

178178
classActionParametersCacheKey(TypedDict,total=False):
179179
cache_by_device_type:bool
180-
"""Separate cached content based on the visitor’s device type"""
180+
"""Separate cached content based on the visitor’s device type."""
181181

182182
cache_deception_armor:bool
183183
"""
184184
Protect from web cache deception attacks while allowing static assets to be
185-
cached
185+
cached.
186186
"""
187187

188188
custom_key:ActionParametersCacheKeyCustomKey
@@ -223,7 +223,7 @@ class ActionParametersEdgeTTLStatusCodeTTLStatusCodeRange(
223223
_ActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeReservedKeywords,total=False
224224
):
225225
to:Required[int]
226-
"""response status code upper bound"""
226+
"""Response status code upper bound."""
227227

228228

229229
classActionParametersEdgeTTLStatusCodeTTL(TypedDict,total=False):
@@ -239,18 +239,18 @@ class ActionParametersEdgeTTLStatusCodeTTL(TypedDict, total=False):
239239
"""The range of status codes used to apply the selected mode."""
240240

241241
status_code_value:int
242-
"""Set thettl for responses with this specific status code"""
242+
"""Set theTTL for responses with this specific status code."""
243243

244244

245245
classActionParametersEdgeTTL(TypedDict,total=False):
246246
default:Required[int]
247247
"""The TTL (in seconds) if you choose override_origin mode."""
248248

249249
mode:Required[Literal["respect_origin","bypass_by_default","override_origin"]]
250-
"""edge ttl options"""
250+
"""Edge TTL options."""
251251

252252
status_code_ttl:Required[Iterable[ActionParametersEdgeTTLStatusCodeTTL]]
253-
"""List of single status codes, or status code ranges to apply the selected mode"""
253+
"""List of single status codes, or status code ranges to apply the selected mode."""
254254

255255

256256
classActionParametersServeStale(TypedDict,total=False):
@@ -304,7 +304,7 @@ class ActionParameters(TypedDict, total=False):
304304
origin_error_page_passthru:bool
305305
"""Generate Cloudflare error pages from issues sent from the origin server.
306306
307-
When on, error pages will trigger for issues from the origin
307+
When on, error pages will trigger for issues from the origin.
308308
"""
309309

310310
read_timeout:int

‎src/cloudflare/types/rulesets/set_config_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ActionParameters(BaseModel):
5959
"""Configure the Polish level."""
6060

6161
rocket_loader:Optional[bool]=None
62-
"""Turn on or off Rocket Loader"""
62+
"""Turn on or off Rocket Loader."""
6363

6464
security_level:Optional[Literal["off","essentially_off","low","medium","high","under_attack"]]=None
6565
"""Configure the Security Level."""

‎src/cloudflare/types/rulesets/set_config_rule_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ActionParameters(TypedDict, total=False):
6565
"""Configure the Polish level."""
6666

6767
rocket_loader:bool
68-
"""Turn on or off Rocket Loader"""
68+
"""Turn on or off Rocket Loader."""
6969

7070
security_level:Literal["off","essentially_off","low","medium","high","under_attack"]
7171
"""Configure the Security Level."""

‎src/cloudflare/types/url_scanner/scan_get_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class DataRequestResponseGeoip(BaseModel):
241241

242242
geoname_id:str=FieldInfo(alias="geonameId")
243243

244-
ll:List[object]
244+
ll:List[float]
245245

246246
region:str
247247

‎tests/api_resources/rulesets/test_rules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ def test_method_create_with_all_params_overload_15(self, client: Cloudflare) ->
14441444
"respect_strong_etags":True,
14451445
"serve_stale": {"disable_stale_while_updating":True},
14461446
},
1447-
description="Set cache settings when the hostnameaddress is not example.com",
1447+
description="Set cache settings when the hostname address is not example.com",
14481448
enabled=True,
14491449
exposed_credential_check={
14501450
"password_expression":'url_decode(http.request.body.form[\\"password\\"][0])',
@@ -3504,7 +3504,7 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No
35043504
"respect_strong_etags":True,
35053505
"serve_stale": {"disable_stale_while_updating":True},
35063506
},
3507-
description="Set cache settings when the hostnameaddress is not example.com",
3507+
description="Set cache settings when the hostname address is not example.com",
35083508
enabled=True,
35093509
exposed_credential_check={
35103510
"password_expression":'url_decode(http.request.body.form[\\"password\\"][0])',
@@ -5343,7 +5343,7 @@ async def test_method_create_with_all_params_overload_15(self, async_client: Asy
53435343
"respect_strong_etags":True,
53445344
"serve_stale": {"disable_stale_while_updating":True},
53455345
},
5346-
description="Set cache settings when the hostnameaddress is not example.com",
5346+
description="Set cache settings when the hostname address is not example.com",
53475347
enabled=True,
53485348
exposed_credential_check={
53495349
"password_expression":'url_decode(http.request.body.form[\\"password\\"][0])',
@@ -7403,7 +7403,7 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async
74037403
"respect_strong_etags":True,
74047404
"serve_stale": {"disable_stale_while_updating":True},
74057405
},
7406-
description="Set cache settings when the hostnameaddress is not example.com",
7406+
description="Set cache settings when the hostname address is not example.com",
74077407
enabled=True,
74087408
exposed_credential_check={
74097409
"password_expression":'url_decode(http.request.body.form[\\"password\\"][0])',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp