mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-16 23:01:03 +00:00
feat(api): OpenAPI spec update via Stainless API (#1147)
This commit is contained in:
parent
4fc14538dc
commit
de4e348049
8 changed files with 11849 additions and 56 deletions
|
|
@ -1,2 +1,2 @@
|
|||
configured_endpoints: 1254
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4b5d09861a06c00be9bfe41e442a9ed48d4e0dca267ed70d7677ef78159ab997.yml
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e3cc17dacbf34ea6c55cfa520e9852ce21b11a0a722ad53edcc7e7fe4299a1e.yml
|
||||
|
|
|
|||
2
api.md
2
api.md
|
|
@ -369,7 +369,7 @@ from cloudflare.types.zones import (
|
|||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/{setting_id}">client.zones.settings.<a href="./src/cloudflare/resources/zones/settings.py">edit</a>(setting_id, \*, zone_id) -> <a href="./src/cloudflare/types/zones/setting_edit_response.py">Optional</a></code>
|
||||
- <code title="patch /zones/{zone_id}/settings/{setting_id}">client.zones.settings.<a href="./src/cloudflare/resources/zones/settings.py">edit</a>(setting_id, \*, zone_id, \*\*<a href="src/cloudflare/types/zones/setting_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/setting_edit_response.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/{setting_id}">client.zones.settings.<a href="./src/cloudflare/resources/zones/settings.py">get</a>(setting_id, \*, zone_id) -> <a href="./src/cloudflare/types/zones/setting_get_response.py">Optional</a></code>
|
||||
|
||||
## CustomNameservers
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -52,6 +52,7 @@ from .proxy_read_timeout import ProxyReadTimeout as ProxyReadTimeout
|
|||
from .response_buffering import ResponseBuffering as ResponseBuffering
|
||||
from .zone_create_params import ZoneCreateParams as ZoneCreateParams
|
||||
from .opportunistic_onion import OpportunisticOnion as OpportunisticOnion
|
||||
from .setting_edit_params import SettingEditParams as SettingEditParams
|
||||
from .server_side_excludes import ServerSideExcludes as ServerSideExcludes
|
||||
from .setting_get_response import SettingGetResponse as SettingGetResponse
|
||||
from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse
|
||||
|
|
@ -70,3 +71,6 @@ from .automatic_platform_optimization import AutomaticPlatformOptimization as Au
|
|||
from .custom_nameserver_update_params import CustomNameserverUpdateParams as CustomNameserverUpdateParams
|
||||
from .activation_check_trigger_response import ActivationCheckTriggerResponse as ActivationCheckTriggerResponse
|
||||
from .custom_nameserver_update_response import CustomNameserverUpdateResponse as CustomNameserverUpdateResponse
|
||||
from .automatic_platform_optimization_param import (
|
||||
AutomaticPlatformOptimizationParam as AutomaticPlatformOptimizationParam,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import List
|
||||
from typing_extensions import Required, TypedDict
|
||||
|
||||
__all__ = ["AutomaticPlatformOptimizationParam"]
|
||||
|
||||
|
||||
class AutomaticPlatformOptimizationParam(TypedDict, total=False):
|
||||
cache_by_device_type: Required[bool]
|
||||
"""
|
||||
Indicates whether or not
|
||||
[cache by device type](https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/)
|
||||
is enabled.
|
||||
"""
|
||||
|
||||
cf: Required[bool]
|
||||
"""Indicates whether or not Cloudflare proxy is enabled."""
|
||||
|
||||
enabled: Required[bool]
|
||||
"""Indicates whether or not Automatic Platform Optimization is enabled."""
|
||||
|
||||
hostnames: Required[List[str]]
|
||||
"""
|
||||
An array of hostnames where Automatic Platform Optimization for WordPress is
|
||||
activated.
|
||||
"""
|
||||
|
||||
wordpress: Required[bool]
|
||||
"""Indicates whether or not site is powered by WordPress."""
|
||||
|
||||
wp_plugin: Required[bool]
|
||||
"""
|
||||
Indicates whether or not
|
||||
[Cloudflare for WordPress plugin](https://wordpress.org/plugins/cloudflare/) is
|
||||
installed.
|
||||
"""
|
||||
848
src/cloudflare/types/zones/setting_edit_params.py
Normal file
848
src/cloudflare/types/zones/setting_edit_params.py
Normal file
|
|
@ -0,0 +1,848 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import List, Union, Optional
|
||||
from typing_extensions import Literal, Required, TypedDict
|
||||
|
||||
from .automatic_platform_optimization_param import AutomaticPlatformOptimizationParam
|
||||
|
||||
__all__ = [
|
||||
"SettingEditParams",
|
||||
"ZeroRTT",
|
||||
"AdvancedDDoS",
|
||||
"AlwaysOnline",
|
||||
"AlwaysUseHTTPS",
|
||||
"AutomaticHTTPSRewrites",
|
||||
"Brotli",
|
||||
"BrowserCacheTTL",
|
||||
"BrowserCheck",
|
||||
"CacheLevel",
|
||||
"ChallengeTTL",
|
||||
"Ciphers",
|
||||
"ZonesCNAMEFlattening",
|
||||
"DevelopmentMode",
|
||||
"EarlyHints",
|
||||
"ZonesEdgeCacheTTL",
|
||||
"EmailObfuscation",
|
||||
"H2Prioritization",
|
||||
"HotlinkProtection",
|
||||
"HTTP2",
|
||||
"HTTP3",
|
||||
"ImageResizing",
|
||||
"IPGeolocation",
|
||||
"IPV6",
|
||||
"ZonesMaxUpload",
|
||||
"MinTLSVersion",
|
||||
"Minify",
|
||||
"MinifyValue",
|
||||
"Mirage",
|
||||
"MobileRedirect",
|
||||
"MobileRedirectValue",
|
||||
"NEL",
|
||||
"NELValue",
|
||||
"OpportunisticEncryption",
|
||||
"OpportunisticOnion",
|
||||
"OrangeToOrange",
|
||||
"OriginErrorPagePassThru",
|
||||
"Polish",
|
||||
"PrefetchPreload",
|
||||
"ProxyReadTimeout",
|
||||
"PseudoIPV4",
|
||||
"ZonesReplaceInsecureJS",
|
||||
"ResponseBuffering",
|
||||
"RocketLoader",
|
||||
"ZonesSchemasAutomaticPlatformOptimization",
|
||||
"SecurityHeaders",
|
||||
"SecurityHeadersValue",
|
||||
"SecurityHeadersValueStrictTransportSecurity",
|
||||
"SecurityLevel",
|
||||
"ServerSideExcludes",
|
||||
"ZonesSha1Support",
|
||||
"SortQueryStringForCache",
|
||||
"SSL",
|
||||
"SSLRecommender",
|
||||
"ZonesTLS1_2Only",
|
||||
"TLS1_3",
|
||||
"TLSClientAuth",
|
||||
"TrueClientIPHeader",
|
||||
"WAF",
|
||||
"WebP",
|
||||
"Websocket",
|
||||
]
|
||||
|
||||
|
||||
class ZeroRTT(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["0rtt"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class AdvancedDDoS(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["advanced_ddos"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class AlwaysOnline(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["always_online"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class AlwaysUseHTTPS(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["always_use_https"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class AutomaticHTTPSRewrites(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["automatic_https_rewrites"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class Brotli(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["brotli"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["off", "on"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class BrowserCacheTTL(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["browser_cache_ttl"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[
|
||||
Literal[
|
||||
0,
|
||||
30,
|
||||
60,
|
||||
120,
|
||||
300,
|
||||
1200,
|
||||
1800,
|
||||
3600,
|
||||
7200,
|
||||
10800,
|
||||
14400,
|
||||
18000,
|
||||
28800,
|
||||
43200,
|
||||
57600,
|
||||
72000,
|
||||
86400,
|
||||
172800,
|
||||
259200,
|
||||
345600,
|
||||
432000,
|
||||
691200,
|
||||
1382400,
|
||||
2073600,
|
||||
2678400,
|
||||
5356800,
|
||||
16070400,
|
||||
31536000,
|
||||
]
|
||||
]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class BrowserCheck(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["browser_check"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class CacheLevel(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["cache_level"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["aggressive", "basic", "simplified"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ChallengeTTL(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["challenge_ttl"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[
|
||||
Literal[300, 900, 1800, 2700, 3600, 7200, 10800, 14400, 28800, 57600, 86400, 604800, 2592000, 31536000]
|
||||
]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class Ciphers(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["ciphers"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[List[str]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ZonesCNAMEFlattening(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["cname_flattening"]]
|
||||
"""How to flatten the cname destination."""
|
||||
|
||||
value: Required[Literal["flatten_at_root", "flatten_all"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class DevelopmentMode(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["development_mode"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class EarlyHints(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["early_hints"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ZonesEdgeCacheTTL(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["edge_cache_ttl"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[
|
||||
Literal[
|
||||
30,
|
||||
60,
|
||||
300,
|
||||
1200,
|
||||
1800,
|
||||
3600,
|
||||
7200,
|
||||
10800,
|
||||
14400,
|
||||
18000,
|
||||
28800,
|
||||
43200,
|
||||
57600,
|
||||
72000,
|
||||
86400,
|
||||
172800,
|
||||
259200,
|
||||
345600,
|
||||
432000,
|
||||
518400,
|
||||
604800,
|
||||
]
|
||||
]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class EmailObfuscation(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["email_obfuscation"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class H2Prioritization(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["h2_prioritization"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off", "custom"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class HotlinkProtection(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["hotlink_protection"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class HTTP2(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["http2"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class HTTP3(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["http3"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ImageResizing(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["image_resizing"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off", "open"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class IPGeolocation(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["ip_geolocation"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class IPV6(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["ipv6"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["off", "on"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ZonesMaxUpload(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["max_upload"]]
|
||||
"""identifier of the zone setting."""
|
||||
|
||||
value: Required[Literal[100, 200, 500]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class MinTLSVersion(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["min_tls_version"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["1.0", "1.1", "1.2", "1.3"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class Minify(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["minify"]]
|
||||
"""Zone setting identifier."""
|
||||
|
||||
value: Required[MinifyValue]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class MinifyValue(TypedDict, total=False):
|
||||
css: Literal["on", "off"]
|
||||
"""Automatically minify all CSS files for your website."""
|
||||
|
||||
html: Literal["on", "off"]
|
||||
"""Automatically minify all HTML files for your website."""
|
||||
|
||||
js: Literal["on", "off"]
|
||||
"""Automatically minify all JavaScript files for your website."""
|
||||
|
||||
|
||||
class Mirage(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["mirage"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class MobileRedirect(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["mobile_redirect"]]
|
||||
"""Identifier of the zone setting."""
|
||||
|
||||
value: Required[MobileRedirectValue]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class MobileRedirectValue(TypedDict, total=False):
|
||||
mobile_subdomain: Optional[str]
|
||||
"""
|
||||
Which subdomain prefix you wish to redirect visitors on mobile devices to
|
||||
(subdomain must already exist).
|
||||
"""
|
||||
|
||||
status: Literal["on", "off"]
|
||||
"""
|
||||
Deprecated: Use Single Redirects instead
|
||||
https://developers.cloudflare.com/rules/url-forwarding/single-redirects/examples/#perform-mobile-redirects.
|
||||
Whether or not mobile redirect is enabled.
|
||||
"""
|
||||
|
||||
strip_uri: bool
|
||||
"""
|
||||
Whether to drop the current page path and redirect to the mobile subdomain URL
|
||||
root, or keep the path and redirect to the same page on the mobile subdomain.
|
||||
"""
|
||||
|
||||
|
||||
class NEL(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["nel"]]
|
||||
"""Zone setting identifier."""
|
||||
|
||||
value: Required[NELValue]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class NELValue(TypedDict, total=False):
|
||||
enabled: bool
|
||||
|
||||
|
||||
class OpportunisticEncryption(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["opportunistic_encryption"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class OpportunisticOnion(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["opportunistic_onion"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class OrangeToOrange(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["orange_to_orange"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class OriginErrorPagePassThru(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["origin_error_page_pass_thru"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class Polish(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["polish"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["off", "lossless", "lossy"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class PrefetchPreload(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["prefetch_preload"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ProxyReadTimeout(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["proxy_read_timeout"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[float]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class PseudoIPV4(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["pseudo_ipv4"]]
|
||||
"""Value of the Pseudo IPv4 setting."""
|
||||
|
||||
value: Required[Literal["off", "add_header", "overwrite_header"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ZonesReplaceInsecureJS(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["replace_insecure_js"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ResponseBuffering(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["response_buffering"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class RocketLoader(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["rocket_loader"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ZonesSchemasAutomaticPlatformOptimization(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["automatic_platform_optimization"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[AutomaticPlatformOptimizationParam]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class SecurityHeaders(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["security_header"]]
|
||||
"""ID of the zone's security header."""
|
||||
|
||||
value: Required[SecurityHeadersValue]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class SecurityHeadersValueStrictTransportSecurity(TypedDict, total=False):
|
||||
enabled: bool
|
||||
"""Whether or not strict transport security is enabled."""
|
||||
|
||||
include_subdomains: bool
|
||||
"""Include all subdomains for strict transport security."""
|
||||
|
||||
max_age: float
|
||||
"""Max age in seconds of the strict transport security."""
|
||||
|
||||
nosniff: bool
|
||||
"""Whether or not to include 'X-Content-Type-Options: nosniff' header."""
|
||||
|
||||
|
||||
class SecurityHeadersValue(TypedDict, total=False):
|
||||
strict_transport_security: SecurityHeadersValueStrictTransportSecurity
|
||||
"""Strict Transport Security."""
|
||||
|
||||
|
||||
class SecurityLevel(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["security_level"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["off", "essentially_off", "low", "medium", "high", "under_attack"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ServerSideExcludes(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["server_side_exclude"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class ZonesSha1Support(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["sha1_support"]]
|
||||
"""Zone setting identifier."""
|
||||
|
||||
value: Required[Literal["off", "on"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class SortQueryStringForCache(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["sort_query_string_for_cache"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class SSL(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["ssl"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["off", "flexible", "full", "strict"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class SSLRecommender(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Literal["ssl_recommender"]
|
||||
"""Enrollment value for SSL/TLS Recommender."""
|
||||
|
||||
enabled: bool
|
||||
"""ssl-recommender enrollment setting."""
|
||||
|
||||
|
||||
class ZonesTLS1_2Only(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["tls_1_2_only"]]
|
||||
"""Zone setting identifier."""
|
||||
|
||||
value: Required[Literal["off", "on"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class TLS1_3(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["tls_1_3"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off", "zrt"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class TLSClientAuth(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["tls_client_auth"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class TrueClientIPHeader(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["true_client_ip_header"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class WAF(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["waf"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["on", "off"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class WebP(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["webp"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["off", "on"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
class Websocket(TypedDict, total=False):
|
||||
zone_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
id: Required[Literal["websockets"]]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
value: Required[Literal["off", "on"]]
|
||||
"""Current value of the zone setting."""
|
||||
|
||||
|
||||
SettingEditParams = Union[
|
||||
ZeroRTT,
|
||||
AdvancedDDoS,
|
||||
AlwaysOnline,
|
||||
AlwaysUseHTTPS,
|
||||
AutomaticHTTPSRewrites,
|
||||
Brotli,
|
||||
BrowserCacheTTL,
|
||||
BrowserCheck,
|
||||
CacheLevel,
|
||||
ChallengeTTL,
|
||||
Ciphers,
|
||||
ZonesCNAMEFlattening,
|
||||
DevelopmentMode,
|
||||
EarlyHints,
|
||||
ZonesEdgeCacheTTL,
|
||||
EmailObfuscation,
|
||||
H2Prioritization,
|
||||
HotlinkProtection,
|
||||
HTTP2,
|
||||
HTTP3,
|
||||
ImageResizing,
|
||||
IPGeolocation,
|
||||
IPV6,
|
||||
ZonesMaxUpload,
|
||||
MinTLSVersion,
|
||||
Minify,
|
||||
Mirage,
|
||||
MobileRedirect,
|
||||
NEL,
|
||||
OpportunisticEncryption,
|
||||
OpportunisticOnion,
|
||||
OrangeToOrange,
|
||||
OriginErrorPagePassThru,
|
||||
Polish,
|
||||
PrefetchPreload,
|
||||
ProxyReadTimeout,
|
||||
PseudoIPV4,
|
||||
ZonesReplaceInsecureJS,
|
||||
ResponseBuffering,
|
||||
RocketLoader,
|
||||
ZonesSchemasAutomaticPlatformOptimization,
|
||||
SecurityHeaders,
|
||||
SecurityLevel,
|
||||
ServerSideExcludes,
|
||||
ZonesSha1Support,
|
||||
SortQueryStringForCache,
|
||||
SSL,
|
||||
SSLRecommender,
|
||||
ZonesTLS1_2Only,
|
||||
TLS1_3,
|
||||
TLSClientAuth,
|
||||
TrueClientIPHeader,
|
||||
WAF,
|
||||
WebP,
|
||||
Websocket,
|
||||
]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from typing import List, Union, Optional
|
||||
from typing import Union, Optional
|
||||
from datetime import datetime
|
||||
from typing_extensions import Literal
|
||||
|
||||
|
|
@ -57,18 +57,17 @@ from .automatic_platform_optimization import AutomaticPlatformOptimization
|
|||
|
||||
__all__ = [
|
||||
"SettingEditResponse",
|
||||
"SettingEditResponseItem",
|
||||
"SettingEditResponseItemZonesCNAMEFlattening",
|
||||
"SettingEditResponseItemZonesEdgeCacheTTL",
|
||||
"SettingEditResponseItemZonesMaxUpload",
|
||||
"SettingEditResponseItemZonesReplaceInsecureJS",
|
||||
"SettingEditResponseItemZonesSchemasAutomaticPlatformOptimization",
|
||||
"SettingEditResponseItemZonesSha1Support",
|
||||
"SettingEditResponseItemZonesTLS1_2Only",
|
||||
"ZonesCNAMEFlattening",
|
||||
"ZonesEdgeCacheTTL",
|
||||
"ZonesMaxUpload",
|
||||
"ZonesReplaceInsecureJS",
|
||||
"ZonesSchemasAutomaticPlatformOptimization",
|
||||
"ZonesSha1Support",
|
||||
"ZonesTLS1_2Only",
|
||||
]
|
||||
|
||||
|
||||
class SettingEditResponseItemZonesCNAMEFlattening(BaseModel):
|
||||
class ZonesCNAMEFlattening(BaseModel):
|
||||
id: Literal["cname_flattening"]
|
||||
"""How to flatten the cname destination."""
|
||||
|
||||
|
|
@ -85,7 +84,7 @@ class SettingEditResponseItemZonesCNAMEFlattening(BaseModel):
|
|||
"""last time this setting was modified."""
|
||||
|
||||
|
||||
class SettingEditResponseItemZonesEdgeCacheTTL(BaseModel):
|
||||
class ZonesEdgeCacheTTL(BaseModel):
|
||||
id: Literal["edge_cache_ttl"]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
|
|
@ -124,7 +123,7 @@ class SettingEditResponseItemZonesEdgeCacheTTL(BaseModel):
|
|||
"""last time this setting was modified."""
|
||||
|
||||
|
||||
class SettingEditResponseItemZonesMaxUpload(BaseModel):
|
||||
class ZonesMaxUpload(BaseModel):
|
||||
id: Literal["max_upload"]
|
||||
"""identifier of the zone setting."""
|
||||
|
||||
|
|
@ -141,7 +140,7 @@ class SettingEditResponseItemZonesMaxUpload(BaseModel):
|
|||
"""last time this setting was modified."""
|
||||
|
||||
|
||||
class SettingEditResponseItemZonesReplaceInsecureJS(BaseModel):
|
||||
class ZonesReplaceInsecureJS(BaseModel):
|
||||
id: Literal["replace_insecure_js"]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
|
|
@ -158,7 +157,7 @@ class SettingEditResponseItemZonesReplaceInsecureJS(BaseModel):
|
|||
"""last time this setting was modified."""
|
||||
|
||||
|
||||
class SettingEditResponseItemZonesSchemasAutomaticPlatformOptimization(BaseModel):
|
||||
class ZonesSchemasAutomaticPlatformOptimization(BaseModel):
|
||||
id: Literal["automatic_platform_optimization"]
|
||||
"""ID of the zone setting."""
|
||||
|
||||
|
|
@ -175,7 +174,7 @@ class SettingEditResponseItemZonesSchemasAutomaticPlatformOptimization(BaseModel
|
|||
"""last time this setting was modified."""
|
||||
|
||||
|
||||
class SettingEditResponseItemZonesSha1Support(BaseModel):
|
||||
class ZonesSha1Support(BaseModel):
|
||||
id: Literal["sha1_support"]
|
||||
"""Zone setting identifier."""
|
||||
|
||||
|
|
@ -192,7 +191,7 @@ class SettingEditResponseItemZonesSha1Support(BaseModel):
|
|||
"""last time this setting was modified."""
|
||||
|
||||
|
||||
class SettingEditResponseItemZonesTLS1_2Only(BaseModel):
|
||||
class ZonesTLS1_2Only(BaseModel):
|
||||
id: Literal["tls_1_2_only"]
|
||||
"""Zone setting identifier."""
|
||||
|
||||
|
|
@ -209,7 +208,7 @@ class SettingEditResponseItemZonesTLS1_2Only(BaseModel):
|
|||
"""last time this setting was modified."""
|
||||
|
||||
|
||||
SettingEditResponseItem = Union[
|
||||
SettingEditResponse = Union[
|
||||
ZeroRTT,
|
||||
AdvancedDDoS,
|
||||
AlwaysOnline,
|
||||
|
|
@ -221,10 +220,10 @@ SettingEditResponseItem = Union[
|
|||
CacheLevel,
|
||||
ChallengeTTL,
|
||||
Ciphers,
|
||||
SettingEditResponseItemZonesCNAMEFlattening,
|
||||
ZonesCNAMEFlattening,
|
||||
DevelopmentMode,
|
||||
EarlyHints,
|
||||
SettingEditResponseItemZonesEdgeCacheTTL,
|
||||
ZonesEdgeCacheTTL,
|
||||
EmailObfuscation,
|
||||
H2Prioritization,
|
||||
HotlinkProtection,
|
||||
|
|
@ -233,7 +232,7 @@ SettingEditResponseItem = Union[
|
|||
ImageResizing,
|
||||
IPGeolocation,
|
||||
IPV6,
|
||||
SettingEditResponseItemZonesMaxUpload,
|
||||
ZonesMaxUpload,
|
||||
MinTLSVersion,
|
||||
Minify,
|
||||
Mirage,
|
||||
|
|
@ -247,18 +246,18 @@ SettingEditResponseItem = Union[
|
|||
PrefetchPreload,
|
||||
ProxyReadTimeout,
|
||||
PseudoIPV4,
|
||||
SettingEditResponseItemZonesReplaceInsecureJS,
|
||||
ZonesReplaceInsecureJS,
|
||||
ResponseBuffering,
|
||||
RocketLoader,
|
||||
SettingEditResponseItemZonesSchemasAutomaticPlatformOptimization,
|
||||
ZonesSchemasAutomaticPlatformOptimization,
|
||||
SecurityHeaders,
|
||||
SecurityLevel,
|
||||
ServerSideExcludes,
|
||||
SettingEditResponseItemZonesSha1Support,
|
||||
ZonesSha1Support,
|
||||
SortQueryStringForCache,
|
||||
SSL,
|
||||
SSLRecommender,
|
||||
SettingEditResponseItemZonesTLS1_2Only,
|
||||
ZonesTLS1_2Only,
|
||||
TLS1_3,
|
||||
TLSClientAuth,
|
||||
TrueClientIPHeader,
|
||||
|
|
@ -266,5 +265,3 @@ SettingEditResponseItem = Union[
|
|||
WebP,
|
||||
Websocket,
|
||||
]
|
||||
|
||||
SettingEditResponse = List[SettingEditResponseItem]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue