8000 feat(api): api update by stainless-app[bot] · Pull Request #2216 · cloudflare/cloudflare-python · GitHub
[go: up one dir, main page]

Skip to content

feat(api): api update #2216

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

Merged
merged 1 commit into from
Nov 26, 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: 1436
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-511887ff04241247ce592a1c095e403a0fc8b376f7072c28bc59ced11f82e547.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-da11321182930ad0deb0691d0e8e6c3bf9cced28dfb452d612590e86ec13a5a3.yml
36 changes: 0 additions & 36 deletions src/cloudflare/types/pagerules/page_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
from ..zones.ip_geolocation import IPGeolocation
from ..zones.security_level import SecurityLevel
from ..zones.always_use_https import AlwaysUseHTTPS
from ..zones.development_mode import DevelopmentMode
from ..zones.browser_cache_ttl import BrowserCacheTTL
from ..zones.email_obfuscation import EmailObfuscation
from ..zones.hotlink_protection import HotlinkProtection
from ..zones.response_buffering import ResponseBuffering
from ..zones.server_side_excludes import ServerSideExcludes
from ..zones.true_client_ip_header import TrueClientIPHeader
from ..zones.automatic_https_rewrites import AutomaticHTTPSRewrites
from ..zones.opportunistic_encryption import OpportunisticEncryption
Expand All @@ -42,10 +39,7 @@
"ActionCacheKeyValueHost",
"ActionCacheKeyValueQueryString",
"ActionCacheKeyValueUser",
"ActionCacheKeyFields",
"ActionCacheOnCookie",
"ActionCacheTTLByStatus",
"ActionDDoSProtection",
"ActionDisableApps",
"ActionDisablePerformance",
"ActionDisableSecurity",
Expand All @@ -55,8 +49,6 @@
"ActionForwardingURL",
"ActionForwardingURLValue",
"ActionHostHeaderOverride",
"ActionMinify",
"ActionPurgeByPageRule",
"ActionResolveOverride",
"ActionRespectStrongEtag",
]
Expand Down Expand Up @@ -187,10 +179,6 @@ class ActionCacheKey(BaseModel):
value: Optional[ActionCacheKeyValue] = None


class ActionCacheKeyFields(BaseModel):
id: Optional[Literal["cache_key_fields"]] = None


class ActionCacheOnCookie(BaseModel):
id: Optional[Literal["cache_on_cookie"]] = None
"""
Expand All @@ -202,14 +190,6 @@ class ActionCacheOnCookie(BaseModel):
"""The regular expression to use for matching cookie names in the request."""


class ActionCacheTTLByStatus(BaseModel):
id: Optional[Literal["cache_ttl_by_status"]] = None


class ActionDDoSProtection(BaseModel):
id: Optional[Literal["ddos_protection"]] = None


class ActionDisableApps(BaseModel):
id: Optional[Literal["disable_apps"]] = None
"""
Expand Down Expand Up @@ -301,14 +281,6 @@ class ActionHostHeaderOverride(BaseModel):
"""The hostname to use in the `Host` header"""


class ActionMinify(BaseModel):
id: Optional[Literal["minify"]] = None


class ActionPurgeByPageRule(BaseModel):
id: Optional[Literal["purge_by_page_rule"]] = None


class ActionResolveOverride(BaseModel):
id: Optional[Literal["resolve_override"]] = None
"""Change the origin address to the value specified in this setting."""
Expand Down Expand Up @@ -338,12 +310,8 @@ class ActionRespectStrongEtag(BaseModel):
ActionCacheByDeviceType,
ActionCacheDeceptionArmor,
ActionCacheKey,
ActionCacheKeyFields,
CacheLevel,
ActionCacheOnCookie,
ActionCacheTTLByStatus,
ActionDDoSProtection,
DevelopmentMode,
ActionDisableApps,
ActionDisablePerformance,
ActionDisableSecurity,
Expand All @@ -353,20 +321,16 @@ class ActionRespectStrongEtag(BaseModel):
ActionExplicitCacheControl,
ActionForwardingURL,
ActionHostHeaderOverride,
HotlinkProtection,
IPGeolocation,
ActionMinify,
Mirage,
OpportunisticEncryption,
OriginErrorPagePassThru,
Polish,
ActionPurgeByPageRule,
ActionResolveOverride,
ActionRespectStrongEtag,
ResponseBuffering,
RocketLoader,
SecurityLevel,
ServerSideExcludes,
SortQueryStringForCache,
SSL,
TrueClientIPHeader,
Expand Down
36 changes: 0 additions & 36 deletions src/cloudflare/types/pagerules/pagerule_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
from ..zones.ip_geolocation_param import IPGeolocationParam
from ..zones.security_level_param import SecurityLevelParam
from ..zones.always_use_https_param import AlwaysUseHTTPSParam
from ..zones.development_mode_param import DevelopmentModeParam
from ..zones.browser_cache_ttl_param import BrowserCacheTTLParam
from ..zones.email_obfuscation_param import EmailObfuscationParam
from ..zones.hotlink_protection_param import HotlinkProtectionParam
from ..zones.response_buffering_param import ResponseBufferingParam
from ..zones.server_side_excludes_param import ServerSideExcludesParam
from ..zones.true_client_ip_header_param import TrueClientIPHeaderParam
from ..zones.automatic_https_rewrites_param import AutomaticHTTPSRewritesParam
from ..zones.opportunistic_encryption_param import OpportunisticEncryptionParam
Expand All @@ -41,10 +38,7 @@
"ActionCacheKeyValueHost",
"ActionCacheKeyValueQueryString",
"ActionCacheKeyValueUser",
"ActionCacheKeyFields",
"ActionCacheOnCookie",
"ActionCacheTTLByStatus",
"ActionDDoSProtection",
"ActionDisableApps",
"ActionDisablePerformance",
"ActionDisableSecurity",
Expand All @@ -54,8 +48,6 @@
"ActionForwardingURL",
"ActionForwardingURLValue",
"ActionHostHeaderOverride",
"ActionMinify",
"ActionPurgeByPageRule",
"ActionResolveOverride",
"ActionRespectStrongEtag",
]
Expand Down Expand Up @@ -212,10 +204,6 @@ class ActionCacheKey(TypedDict, total=False):
value: ActionCacheKeyValue


class ActionCacheKeyFields(TypedDict, total=False):
id: Literal["cache_key_fields"]


class ActionCacheOnCookie(TypedDict, total=False):
id: Literal["cache_on_cookie"]
"""
Expand All @@ -227,14 +215,6 @@ class ActionCacheOnCookie(TypedDict, total=False):
"""The regular expression to use for matching cookie names in the request."""


class ActionCacheTTLByStatus(TypedDict, total=False):
id: Literal["cache_ttl_by_status"]


class ActionDDoSProtection(TypedDict, total=False):
id: Literal["ddos_protection"]


class ActionDisableApps(TypedDict, total=False):
id: Literal["disable_apps"]
"""
Expand Down Expand Up @@ -326,14 +306,6 @@ class ActionHostHeaderOverride(TypedDict, total=False):
"""The hostname to use in the `Host` header"""


class ActionMinify(TypedDict, total=False):
id: Literal["minify"]


class ActionPurgeByPageRule(TypedDict, total=False):
id: Literal["purge_by_page_rule"]


class ActionResolveOverride(TypedDict, total=False):
id: Literal["resolve_override"]
"""Change the origin address to the value specified in this setting."""
Expand Down Expand Up @@ -362,12 +334,8 @@ class ActionRespectStrongEtag(TypedDict, total=False):
ActionCacheByDeviceType,
ActionCacheDeceptionArmor,
ActionCacheKey,
ActionCacheKeyFields,
CacheLevelParam,
ActionCacheOnCookie,
ActionCacheTTLByStatus,
ActionDDoSProtection,
DevelopmentModeParam,
ActionDisableApps,
ActionDisablePerformance,
ActionDisableSecurity,
Expand All @@ -377,20 +345,16 @@ class ActionRespectStrongEtag(TypedDict, total=False):
ActionExplicitCacheControl, 10000
ActionForwardingURL,
ActionHostHeaderOverride,
HotlinkProtectionParam,
IPGeolocationParam,
ActionMinify,
MirageParam,
OpportunisticEncryptionParam,
OriginErrorPagePassThruParam,
PolishParam,
ActionPurgeByPageRule,
ActionResolveOverride,
ActionRespectStrongEtag,
ResponseBufferingParam,
RocketLoaderParam,
SecurityLevelParam,
ServerSideExcludesParam,
SortQueryStringForCacheParam,
SSLParam,
TrueClientIPHeaderParam,
Expand Down
36 changes: 0 additions & 36 deletions src/cloudflare/types/pagerules/pagerule_edit_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
from ..zones.ip_geolocation_param import IPGeolocationParam
from ..zones.security_level_param import SecurityLevelParam
from ..zones.always_use_https_param import AlwaysUseHTTPSParam
from ..zones.development_mode_param import DevelopmentModeParam
from ..zones.browser_cache_ttl_param import BrowserCacheTTLParam
from ..zones.email_obfuscation_param import EmailObfuscationParam
from ..zones.hotlink_protection_param import HotlinkProtectionParam
from ..zones.response_buffering_param import ResponseBufferingParam
from ..zones.server_side_excludes_param import ServerSideExcludesParam
from ..zones.true_client_ip_header_param import TrueClientIPHeaderParam
from ..zones.automatic_https_rewrites_param import AutomaticHTTPSRewritesParam
from ..zones.opportunistic_encryption_param import OpportunisticEncryptionParam
Expand All @@ -41,10 +38,7 @@
"ActionCacheKeyValueHost",
"ActionCacheKeyValueQueryString",
"ActionCacheKeyValueUser",
"ActionCacheKeyFields",
"ActionCacheOnCookie",
"ActionCacheTTLByStatus",
"ActionDDoSProtection",
"ActionDisableApps",
"ActionDisablePerformance",
"ActionDisableSecurity",
Expand All @@ -54,8 +48,6 @@
"ActionForwardingURL",
"ActionForwardingURLValue",
"ActionHostHeaderOverride",
"ActionMinify",
"ActionPurgeByPageRule",
"ActionResolveOverride",
"ActionRespectStrongEtag",
]
Expand Down Expand Up @@ -212,10 +204,6 @@ class ActionCacheKey(TypedDict, total=False):
value: ActionCacheKeyValue


class ActionCacheKeyFields(TypedDict, total=False):
id: Literal["cache_key_fields"]


class ActionCacheOnCookie(TypedDict, total=False):
id: Literal["cache_on_cookie"]
"""
Expand All @@ -227,14 +215,6 @@ class ActionCacheOnCookie(TypedDict, total=False):
"""The regular expression to use for matching cookie names in the request."""


class ActionCacheTTLByStatus(TypedDict, total=False):
id: Literal["cache_ttl_by_status"]


class ActionDDoSProtection(TypedDict, total=False):
id: Literal["ddos_protection"]


class ActionDisableApps(TypedDict, total=False):
id: Literal["disable_apps"]
"""
Expand Down Expand Up @@ -326,14 +306,6 @@ class ActionHostHeaderOverride(TypedDict, total=False):
"""The hostname to use in the `Host` header"""


class ActionMinify(TypedDict, total=False):
id: Literal["minify"]


class ActionPurgeByPageRule(TypedDict, total=False):
id: Literal["purge_by_page_rule"]


class ActionResolveOverride(TypedDict, total=False):
id: Literal["resolve_override"]
"""Change the origin address to the value specified in this setting."""
Expand Down Expand Up @@ -362,12 +334,8 @@ class ActionRespectStrongEtag(TypedDict, total=False):
ActionCacheByDeviceType,
ActionCacheDeceptionArmor,
ActionCacheKey,
ActionCacheKeyFields,
CacheLevelParam,
ActionCacheOnCookie,
ActionCacheTTLByStatus,
ActionDDoSProtection,
DevelopmentModeParam,
ActionDisableApps,
ActionDisablePerformance,
ActionDisableSecurity,
Expand All @@ -377,20 +345,16 @@ class ActionRespectStrongEtag(TypedDict, total=False):
ActionExplicitCacheControl,
ActionForwardingURL,
ActionHostHeaderOverride,
HotlinkProtectionParam,
IPGeolocationParam,
ActionMinify,
MirageParam,
OpportunisticEncryptionParam,
OriginErrorPagePassThruParam,
PolishParam,
ActionPurgeByPageRule,
ActionResolveOverride,
ActionRespectStrongEtag,
ResponseBufferingParam,
RocketLoaderParam,
SecurityLevelParam,
ServerSideExcludesParam,
SortQueryStringForCacheParam,
SSLParam,
TrueClientIPHeaderParam,
Expand Down
Loading
0