Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jul 3, 2024
1 parent 765951b commit 0ed6814
Show file tree
Hide file tree
Showing 4 changed files with 9 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: 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

0 comments on commit 0ed6814

Please sign in to comment.