Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #1167

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1254
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad7a39118e76762e485d8d1f264939212ed6a602f6e717a254cf924316e058f0.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e82b646fc856d1a049c805050d47c145293003664daee4f933cc9e66dc95264b.yml
3 changes: 3 additions & 0 deletions src/cloudflare/types/zones/security_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class ValueStrictTransportSecurity(BaseModel):
nosniff: Optional[bool] = None
"""Whether or not to include 'X-Content-Type-Options: nosniff' header."""

preload: Optional[bool] = None
"""Enable automatic preload of the HSTS configuration."""


class Value(BaseModel):
strict_transport_security: Optional[ValueStrictTransportSecurity] = None
Expand Down
3 changes: 3 additions & 0 deletions src/cloudflare/types/zones/setting_edit_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,9 @@ class SecurityHeadersValueStrictTransportSecurity(TypedDict, total=False):
nosniff: bool
"""Whether or not to include 'X-Content-Type-Options: nosniff' header."""

preload: bool
"""Enable automatic preload of the HSTS configuration."""


class SecurityHeadersValue(TypedDict, total=False):
strict_transport_security: SecurityHeadersValueStrictTransportSecurity
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/zones/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2493,6 +2493,7 @@ def test_method_edit_with_all_params_overload_42(self, client: Cloudflare) -> No
"include_subdomains": True,
"max_age": 86400,
"nosniff": True,
"preload": True,
}
},
)
Expand Down Expand Up @@ -5825,6 +5826,7 @@ async def test_method_edit_with_all_params_overload_42(self, async_client: Async
"include_subdomains": True,
"max_age": 86400,
"nosniff": True,
"preload": True,
}
},
)
Expand Down