Skip to content

Commit

Permalink
feat(api): api update (#2237)
Browse files Browse the repository at this point in the history
stainless-app[bot] authored and stainless-bot committed Dec 3, 2024
1 parent a0f4c07 commit adc6f6b
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1448
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-58466f8887cb79ea28006b477268bfeceb49aca0ef6b5907ebd6a779543da4ae.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c6de93f8f17d32aab783331839a3d62613deee459b821a7a76cb0f4e73a038ce.yml
7 changes: 7 additions & 0 deletions src/cloudflare/types/workers/script_update_params.py
Original file line number Diff line number Diff line change
@@ -60,6 +60,13 @@ class Variant0MetadataAssetsConfig(TypedDict, total=False):
is no Worker script.
"""

serve_directly: bool
"""
When true and the incoming request matches an asset, that will be served instead
of invoking the Worker script. When false, requests will always invoke the
Worker script.
"""


class Variant0MetadataAssets(TypedDict, total=False):
config: Variant0MetadataAssetsConfig
Original file line number Diff line number Diff line change
@@ -55,6 +55,13 @@ class Variant0MetadataAssetsConfig(TypedDict, total=False):
is no Worker script.
"""

serve_directly: bool
"""
When true and the incoming request matches an asset, that will be served instead
of invoking the Worker script. When false, requests will always invoke the
Worker script.
"""


class Variant0MetadataAssets(TypedDict, total=False):
config: Variant0MetadataAssetsConfig
2 changes: 2 additions & 0 deletions tests/api_resources/workers/test_scripts.py
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "none",
"serve_directly": True,
},
"jwt": "jwt",
},
@@ -396,6 +397,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "none",
"serve_directly": True,
},
"jwt": "jwt",
},
Original file line number Diff line number Diff line change
@@ -43,6 +43,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "none",
"serve_directly": True,
},
"jwt": "jwt",
},
@@ -384,6 +385,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn
"config": {
"html_handling": "auto-trailing-slash",
"not_found_handling": "none",
"serve_directly": True,
},
"jwt": "jwt",
},

0 comments on commit adc6f6b

Please sign in to comment.