Skip to content

Commit 316f72e

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#1167)
1 parent 3995ced commit 316f72e

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.stats.yml

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

src/cloudflare/types/zones/security_headers.py

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class ValueStrictTransportSecurity(BaseModel):
2222
nosniff: Optional[bool] = None
2323
"""Whether or not to include 'X-Content-Type-Options: nosniff' header."""
2424

25+
preload: Optional[bool] = None
26+
"""Enable automatic preload of the HSTS configuration."""
27+
2528

2629
class Value(BaseModel):
2730
strict_transport_security: Optional[ValueStrictTransportSecurity] = None

src/cloudflare/types/zones/setting_edit_params.py

+3
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,9 @@ class SecurityHeadersValueStrictTransportSecurity(TypedDict, total=False):
640640
nosniff: bool
641641
"""Whether or not to include 'X-Content-Type-Options: nosniff' header."""
642642

643+
preload: bool
644+
"""Enable automatic preload of the HSTS configuration."""
645+
643646

644647
class SecurityHeadersValue(TypedDict, total=False):
645648
strict_transport_security: SecurityHeadersValueStrictTransportSecurity

tests/api_resources/zones/test_settings.py

+2
Original file line numberDiff line numberDiff line change
@@ -2493,6 +2493,7 @@ def test_method_edit_with_all_params_overload_42(self, client: Cloudflare) -> No
24932493
"include_subdomains": True,
24942494
"max_age": 86400,
24952495
"nosniff": True,
2496+
"preload": True,
24962497
}
24972498
},
24982499
)
@@ -5825,6 +5826,7 @@ async def test_method_edit_with_all_params_overload_42(self, async_client: Async
58255826
"include_subdomains": True,
58265827
"max_age": 86400,
58275828
"nosniff": True,
5829+
"preload": True,
58285830
}
58295831
},
58305832
)

0 commit comments

Comments
 (0)