client.zones.settings.zero_rtt.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.zero_rtt.get(\*, zone_id) -> Optional
-
-### AdvancedDDoS
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import AdvancedDDoS
-```
-
-Methods:
-
-- client.zones.settings.advanced_ddos.get(\*, zone_id) -> Optional
-
-### AlwaysOnline
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import AlwaysOnline
-```
-
-Methods:
-
-- client.zones.settings.always_online.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.always_online.get(\*, zone_id) -> Optional
-
-### AlwaysUseHTTPS
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import AlwaysUseHTTPS
-```
-
-Methods:
-
-- client.zones.settings.always_use_https.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.always_use_https.get(\*, zone_id) -> Optional
-
-### AutomaticHTTPSRewrites
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import AutomaticHTTPSRewrites
-```
-
-Methods:
-
-- client.zones.settings.automatic_https_rewrites.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.automatic_https_rewrites.get(\*, zone_id) -> Optional
-
-### AutomaticPlatformOptimization
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import AutomaticPlatformOptimization
-```
-
-Methods:
-
-- client.zones.settings.automatic_platform_optimization.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.automatic_platform_optimization.get(\*, zone_id) -> Optional
-
-### Brotli
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import Brotli
-```
-
-Methods:
-
-- client.zones.settings.brotli.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.brotli.get(\*, zone_id) -> Optional
-
-### BrowserCacheTTL
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import BrowserCacheTTL
-```
-
-Methods:
-
-- client.zones.settings.browser_cache_ttl.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.browser_cache_ttl.get(\*, zone_id) -> Optional
-
-### BrowserCheck
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import BrowserCheck
-```
-
-Methods:
-
-- client.zones.settings.browser_check.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.browser_check.get(\*, zone_id) -> Optional
-
-### CacheLevel
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import CacheLevel
-```
-
-Methods:
-
-- client.zones.settings.cache_level.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.cache_level.get(\*, zone_id) -> Optional
-
-### ChallengeTTL
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import ChallengeTTL
-```
-
-Methods:
-
-- client.zones.settings.challenge_ttl.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.challenge_ttl.get(\*, zone_id) -> Optional
-
-### Ciphers
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import Ciphers
-```
-
-Methods:
-
-- client.zones.settings.ciphers.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.ciphers.get(\*, zone_id) -> Optional
-
-### DevelopmentMode
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import DevelopmentMode
-```
-
-Methods:
-
-- client.zones.settings.development_mode.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.development_mode.get(\*, zone_id) -> Optional
-
-### EarlyHints
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import EarlyHints
-```
-
-Methods:
-
-- client.zones.settings.early_hints.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.early_hints.get(\*, zone_id) -> Optional
-
-### EmailObfuscation
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import EmailObfuscation
-```
-
-Methods:
-
-- client.zones.settings.email_obfuscation.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.email_obfuscation.get(\*, zone_id) -> Optional
-
-### H2Prioritization
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import H2Prioritization
-```
-
-Methods:
-
-- client.zones.settings.h2_prioritization.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.h2_prioritization.get(\*, zone_id) -> Optional
-
-### HotlinkProtection
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import HotlinkProtection
-```
-
-Methods:
-
-- client.zones.settings.hotlink_protection.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.hotlink_protection.get(\*, zone_id) -> Optional
-
-### HTTP2
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import HTTP2
-```
-
-Methods:
-
-- client.zones.settings.http2.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.http2.get(\*, zone_id) -> Optional
-
-### HTTP3
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import HTTP3
-```
-
-Methods:
-
-- client.zones.settings.http3.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.http3.get(\*, zone_id) -> Optional
-
-### ImageResizing
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import ImageResizing
-```
-
-Methods:
-
-- client.zones.settings.image_resizing.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.image_resizing.get(\*, zone_id) -> Optional
-
-### IPGeolocation
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import IPGeolocation
-```
-
-Methods:
-
-- client.zones.settings.ip_geolocation.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.ip_geolocation.get(\*, zone_id) -> Optional
-
-### IPV6
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import IPV6
-```
-
-Methods:
-
-- client.zones.settings.ipv6.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.ipv6.get(\*, zone_id) -> Optional
-
-### MinTLSVersion
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import MinTLSVersion
-```
-
-Methods:
-
-- client.zones.settings.min_tls_version.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.min_tls_version.get(\*, zone_id) -> Optional
-
-### Minify
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import Minify
-```
-
-Methods:
-
-- client.zones.settings.minify.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.minify.get(\*, zone_id) -> Optional
-
-### Mirage
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import Mirage
-```
-
-Methods:
-
-- client.zones.settings.mirage.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.mirage.get(\*, zone_id) -> Optional
-
-### MobileRedirect
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import MobileRedirect
-```
-
-Methods:
-
-- client.zones.settings.mobile_redirect.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.mobile_redirect.get(\*, zone_id) -> Optional
-
-### NEL
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import NEL
-```
-
-Methods:
-
-- client.zones.settings.nel.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.nel.get(\*, zone_id) -> Optional
-
-### OpportunisticEncryption
-
Types:
```python
-from cloudflare.types.zones.settings import OpportunisticEncryption
-```
-
-Methods:
-
-- client.zones.settings.opportunistic_encryption.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.opportunistic_encryption.get(\*, zone_id) -> Optional
-
-### OpportunisticOnion
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import OpportunisticOnion
-```
-
-Methods:
-
-- client.zones.settings.opportunistic_onion.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.opportunistic_onion.get(\*, zone_id) -> Optional
-
-### OrangeToOrange
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import OrangeToOrange
-```
-
-Methods:
-
-- client.zones.settings.orange_to_orange.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.orange_to_orange.get(\*, zone_id) -> Optional
-
-### OriginErrorPagePassThru
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import OriginErrorPagePassThru
-```
-
-Methods:
-
-- client.zones.settings.origin_error_page_pass_thru.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.origin_error_page_pass_thru.get(\*, zone_id) -> Optional
-
-### OriginMaxHTTPVersion
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import (
+from cloudflare.types.zones import (
+ AdvancedDDoS,
+ AlwaysOnline,
+ AlwaysUseHTTPS,
+ AutomaticHTTPSRewrites,
+ AutomaticPlatformOptimization,
+ Brotli,
+ BrowserCacheTTL,
+ BrowserCheck,
+ CacheLevel,
+ ChallengeTTL,
+ Ciphers,
+ DevelopmentMode,
+ EarlyHints,
+ EmailObfuscation,
+ FontSettings,
+ H2Prioritization,
+ HotlinkProtection,
+ HTTP2,
+ HTTP3,
+ ImageResizing,
+ IPGeolocation,
+ IPV6,
+ MinTLSVersion,
+ Minify,
+ Mirage,
+ MobileRedirect,
+ NEL,
+ OpportunisticEncryption,
+ OpportunisticOnion,
+ OrangeToOrange,
+ OriginErrorPagePassThru,
OriginMaxHTTPVersion,
- OriginMaxHTTPVersionEditResponse,
- OriginMaxHTTPVersionGetResponse,
+ Polish,
+ PrefetchPreload,
+ ProxyReadTimeout,
+ PseudoIPV4,
+ ResponseBuffering,
+ RocketLoader,
+ SecurityHeaders,
+ SecurityLevel,
+ ServerSideExcludes,
+ SortQueryStringForCache,
+ SSL,
+ SSLRecommender,
+ TLS1_3,
+ TLSClientAuth,
+ TrueClientIPHeader,
+ WAF,
+ WebP,
+ Websocket,
+ ZeroRTT,
+ SettingEditResponse,
+ SettingGetResponse,
)
```
Methods:
-- client.zones.settings.origin_max_http_version.edit(\*, zone_id, \*\*params) -> OriginMaxHTTPVersionEditResponse
-- client.zones.settings.origin_max_http_version.get(\*, zone_id) -> OriginMaxHTTPVersionGetResponse
-
-### Polish
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import Polish
-```
-
-Methods:
-
-- client.zones.settings.polish.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.polish.get(\*, zone_id) -> Optional
-
-### PrefetchPreload
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import PrefetchPreload
-```
-
-Methods:
-
-- client.zones.settings.prefetch_preload.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.prefetch_preload.get(\*, zone_id) -> Optional
-
-### ProxyReadTimeout
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import ProxyReadTimeout
-```
-
-Methods:
-
-- client.zones.settings.proxy_read_timeout.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.proxy_read_timeout.get(\*, zone_id) -> Optional
-
-### PseudoIPV4
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import PseudoIPV4
-```
-
-Methods:
-
-- client.zones.settings.pseudo_ipv4.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.pseudo_ipv4.get(\*, zone_id) -> Optional
-
-### ResponseBuffering
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import ResponseBuffering
-```
-
-Methods:
-
-- client.zones.settings.response_buffering.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.response_buffering.get(\*, zone_id) -> Optional
-
-### RocketLoader
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import RocketLoader
-```
-
-Methods:
-
-- client.zones.settings.rocket_loader.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.rocket_loader.get(\*, zone_id) -> Optional
-
-### SecurityHeaders
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import SecurityHeaders
-```
-
-Methods:
-
-- client.zones.settings.security_headers.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.security_headers.get(\*, zone_id) -> Optional
-
-### SecurityLevel
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import SecurityLevel
-```
-
-Methods:
-
-- client.zones.settings.security_level.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.security_level.get(\*, zone_id) -> Optional
-
-### ServerSideExcludes
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import ServerSideExcludes
-```
-
-Methods:
-
-- client.zones.settings.server_side_excludes.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.server_side_excludes.get(\*, zone_id) -> Optional
-
-### SortQueryStringForCache
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import SortQueryStringForCache
-```
-
-Methods:
-
-- client.zones.settings.sort_query_string_for_cache.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.sort_query_string_for_cache.get(\*, zone_id) -> Optional
-
-### SSL
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import SSL
-```
-
-Methods:
-
-- client.zones.settings.ssl.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.ssl.get(\*, zone_id) -> Optional
-
-### SSLRecommender
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import SSLRecommender
-```
-
-Methods:
-
-- client.zones.settings.ssl_recommender.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.ssl_recommender.get(\*, zone_id) -> Optional
-
-### TLS1_3
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import TLS1_3
-```
-
-Methods:
-
-- client.zones.settings.tls_1_3.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.tls_1_3.get(\*, zone_id) -> Optional
-
-### TLSClientAuth
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import TLSClientAuth
-```
-
-Methods:
-
-- client.zones.settings.tls_client_auth.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.tls_client_auth.get(\*, zone_id) -> Optional
-
-### TrueClientIPHeader
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import TrueClientIPHeader
-```
-
-Methods:
-
-- client.zones.settings.true_client_ip_header.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.true_client_ip_header.get(\*, zone_id) -> Optional
-
-### WAF
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import WAF
-```
-
-Methods:
-
-- client.zones.settings.waf.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.waf.get(\*, zone_id) -> Optional
-
-### WebP
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import WebP
-```
-
-Methods:
-
-- client.zones.settings.webp.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.webp.get(\*, zone_id) -> Optional
-
-### Websocket
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import Websocket
-```
-
-Methods:
-
-- client.zones.settings.websocket.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.websocket.get(\*, zone_id) -> Optional
-
-### FontSettings
-
-Types:
-
-```python
-from cloudflare.types.zones.settings import FontSettings
-```
-
-Methods:
-
-- client.zones.settings.font_settings.edit(\*, zone_id, \*\*params) -> Optional
-- client.zones.settings.font_settings.get(\*, zone_id) -> Optional
+- client.zones.settings.edit(setting_id, \*, zone_id, \*\*params) -> Optional
+- client.zones.settings.get(setting_id, \*, zone_id) -> Optional
## CustomNameservers
@@ -1699,11 +1098,11 @@ from cloudflare.types.dns import (
Methods:
-- client.dns.firewall.create(\*, account_id, \*\*params) -> Firewall
+- client.dns.firewall.create(\*, account_id, \*\*params) -> Optional
- client.dns.firewall.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[Firewall]
-- client.dns.firewall.delete(dns_firewall_id, \*, account_id) -> FirewallDeleteResponse
-- client.dns.firewall.edit(dns_firewall_id, \*, account_id, \*\*params) -> Firewall
-- client.dns.firewall.get(dns_firewall_id, \*, account_id) -> Firewall
+- client.dns.firewall.delete(dns_firewall_id, \*, account_id) -> Optional
+- client.dns.firewall.edit(dns_firewall_id, \*, account_id, \*\*params) -> Optional
+- client.dns.firewall.get(dns_firewall_id, \*, account_id) -> Optional
### Analytics
@@ -2993,7 +2392,7 @@ from cloudflare.types.api_gateway.discovery import OperationEditResponse
Methods:
-- client.api_gateway.discovery.operations.list(\*, zone_id, \*\*params) -> SyncSinglePage[DiscoveryOperation]
+- client.api_gateway.discovery.operations.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[DiscoveryOperation]
- client.api_gateway.discovery.operations.edit(operation_id, \*, zone_id, \*\*params) -> OperationEditResponse
## Operations
@@ -3001,15 +2400,21 @@ Methods:
Types:
```python
-from cloudflare.types.api_gateway import APIShield, OperationCreateResponse, OperationDeleteResponse
+from cloudflare.types.api_gateway import (
+ APIShield,
+ OperationCreateResponse,
+ OperationListResponse,
+ OperationDeleteResponse,
+ OperationGetResponse,
+)
```
Methods:
-- client.api_gateway.operations.create(\*, zone_id, \*\*params) -> Optional
-- client.api_gateway.operations.list(\*, zone_id, \*\*params) -> SyncSinglePage[APIShield]
+- client.api_gateway.operations.create(\*, zone_id, \*\*params) -> OperationCreateResponse
+- client.api_gateway.operations.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[OperationListResponse]
- client.api_gateway.operations.delete(operation_id, \*, zone_id) -> OperationDeleteResponse
-- client.api_gateway.operations.get(operation_id, \*, zone_id, \*\*params) -> APIShield
+- client.api_gateway.operations.get(operation_id, \*, zone_id, \*\*params) -> OperationGetResponse
### SchemaValidation
@@ -3073,8 +2478,8 @@ from cloudflare.types.api_gateway import (
Methods:
- client.api_gateway.user_schemas.create(\*, zone_id, \*\*params) -> SchemaUpload
-- client.api_gateway.user_schemas.list(\*, zone_id, \*\*params) -> SyncSinglePage[PublicSchema]
-- client.api_gateway.user_schemas.delete(schema_id, \*, zone_id) -> UserSchemaDeleteResponse
+- client.api_gateway.user_schemas.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[PublicSchema]
+- client.api_gateway.user_schemas.delete(schema_id, \*, zone_id) -> Optional
- client.api_gateway.user_schemas.edit(schema_id, \*, zone_id, \*\*params) -> PublicSchema
- client.api_gateway.user_schemas.get(schema_id, \*, zone_id, \*\*params) -> PublicSchema
@@ -3088,7 +2493,7 @@ from cloudflare.types.api_gateway.user_schemas import OperationListResponse
Methods:
-- client.api_gateway.user_schemas.operations.list(schema_id, \*, zone_id, \*\*params) -> SyncSinglePage[OperationListResponse]
+- client.api_gateway.user_schemas.operations.list(schema_id, \*, zone_id, \*\*params) -> SyncV4PagePaginationArray[OperationListResponse]
# ManagedHeaders
@@ -3929,7 +3334,7 @@ from cloudflare.types.intel.attack_surface_report import IssueTypeGetResponse
Methods:
-- client.intel.attack_surface_report.issue_types.get(\*, account_id) -> IssueTypeGetResponse
+- client.intel.attack_surface_report.issue_types.get(\*, account_id) -> Optional
### Issues
@@ -3950,10 +3355,10 @@ from cloudflare.types.intel.attack_surface_report import (
Methods:
- client.intel.attack_surface_report.issues.list(\*, account_id, \*\*params) -> SyncV4PagePagination[IssueListResponse]
-- client.intel.attack*surface_report.issues.class*(\*, account_id, \*\*params) -> IssueClassResponse
-- client.intel.attack_surface_report.issues.dismiss(issue_id, \*, account_id, \*\*params) -> IssueDismissResponse
-- client.intel.attack_surface_report.issues.severity(\*, account_id, \*\*params) -> IssueSeverityResponse
-- client.intel.attack_surface_report.issues.type(\*, account_id, \*\*params) -> IssueTypeResponse
+- client.intel.attack*surface_report.issues.class*(\*, account_id, \*\*params) -> Optional
+- client.intel.attack_surface_report.issues.dismiss(issue_id, \*, account_id, \*\*params) -> Optional
+- client.intel.attack_surface_report.issues.severity(\*, account_id, \*\*params) -> Optional
+- client.intel.attack_surface_report.issues.type(\*, account_id, \*\*params) -> Optional
# MagicTransit
@@ -6097,7 +5502,7 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.gateway import Location, LocationNetwork, LocationDeleteResponse
+from cloudflare.types.zero_trust.gateway import Location, LocationDeleteResponse
```
Methods:
@@ -6726,22 +6131,6 @@ Methods:
- client.radar.as112.top.ip_version(ip_version, \*\*params) -> TopIPVersionResponse
- client.radar.as112.top.locations(\*\*params) -> TopLocationsResponse
-## ConnectionTampering
-
-Types:
-
-```python
-from cloudflare.types.radar import (
- ConnectionTamperingSummaryResponse,
- ConnectionTamperingTimeseriesGroupsResponse,
-)
-```
-
-Methods:
-
-- client.radar.connection_tampering.summary(\*\*params) -> ConnectionTamperingSummaryResponse
-- client.radar.connection_tampering.timeseries_groups(\*\*params) -> ConnectionTamperingTimeseriesGroupsResponse
-
## Email
Types:
@@ -7552,6 +6941,22 @@ Methods:
- client.radar.traffic_anomalies.locations.get(\*\*params) -> LocationGetResponse
+## TCPResetsTimeouts
+
+Types:
+
+```python
+from cloudflare.types.radar import (
+ TCPResetsTimeoutSummaryResponse,
+ TCPResetsTimeoutTimeseriesGroupsResponse,
+)
+```
+
+Methods:
+
+- client.radar.tcp_resets_timeouts.summary(\*\*params) -> TCPResetsTimeoutSummaryResponse
+- client.radar.tcp_resets_timeouts.timeseries_groups(\*\*params) -> TCPResetsTimeoutTimeseriesGroupsResponse
+
# BotManagement
Types:
@@ -7929,3 +7334,18 @@ Methods:
- client.iam.resource_groups.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[object]
- client.iam.resource_groups.delete(resource_group_id, \*, account_id) -> Optional
- client.iam.resource_groups.get(resource_group_id, \*, account_id) -> ResourceGroupGetResponse
+
+# CloudConnector
+
+## Rules
+
+Types:
+
+```python
+from cloudflare.types.cloud_connector import RuleUpdateResponse, RuleListResponse
+```
+
+Methods:
+
+- client.cloud_connector.rules.update(\*, zone_id, \*\*params) -> Optional
+- client.cloud_connector.rules.list(\*, zone_id) -> SyncSinglePage[RuleListResponse]
diff --git a/bin/publish-pypi b/bin/publish-pypi
index 826054e9248..05bfccbb71e 100644
--- a/bin/publish-pypi
+++ b/bin/publish-pypi
@@ -3,4 +3,7 @@
set -eux
mkdir -p dist
rye build --clean
+# Patching importlib-metadata version until upstream library version is updated
+# https://github.com/pypa/twine/issues/977#issuecomment-2189800841
+"$HOME/.rye/self/bin/python3" -m pip install 'importlib-metadata==7.2.1'
rye publish --yes --token=$PYPI_TOKEN
diff --git a/pyproject.toml b/pyproject.toml
index deca880317a..d8f5ee3101f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "cloudflare"
-version = "3.0.1"
+version = "3.1.0"
description = "The official Python library for the cloudflare API"
dynamic = ["readme"]
license = "Apache-2.0"
@@ -58,6 +58,7 @@ dev-dependencies = [
"nox",
"dirty-equals>=0.6.0",
"importlib-metadata>=6.7.0",
+ "rich>=13.7.1",
]
@@ -99,6 +100,21 @@ include = [
[tool.hatch.build.targets.wheel]
packages = ["src/cloudflare"]
+[tool.hatch.build.targets.sdist]
+# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)
+include = [
+ "/*.toml",
+ "/*.json",
+ "/*.lock",
+ "/*.md",
+ "/mypy.ini",
+ "/noxfile.py",
+ "bin/*",
+ "examples/*",
+ "src/*",
+ "tests/*",
+]
+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
diff --git a/requirements-dev.lock b/requirements-dev.lock
index 3a5469efbd0..d624bbeb64e 100644
--- a/requirements-dev.lock
+++ b/requirements-dev.lock
@@ -6,11 +6,12 @@
# features: []
# all-features: true
# with-sources: false
+# generate-hashes: false
-e file:.
annotated-types==0.6.0
# via pydantic
-anyio==4.1.0
+anyio==4.4.0
# via cloudflare
# via httpx
argcomplete==3.1.2
@@ -44,7 +45,11 @@ idna==3.4
importlib-metadata==7.0.0
iniconfig==2.0.0
# via pytest
-mypy==1.7.1
+markdown-it-py==3.0.0
+ # via rich
+mdurl==0.1.2
+ # via markdown-it-py
+mypy==1.10.1
mypy-extensions==1.0.0
# via mypy
nodeenv==1.8.0
@@ -63,6 +68,8 @@ pydantic==2.7.1
# via cloudflare
pydantic-core==2.18.2
# via pydantic
+pygments==2.18.0
+ # via rich
pyright==1.1.364
pytest==7.1.1
# via pytest-asyncio
@@ -72,6 +79,7 @@ python-dateutil==2.8.2
pytz==2023.3.post1
# via dirty-equals
respx==0.20.2
+rich==13.7.1
ruff==0.1.9
setuptools==68.2.2
# via nodeenv
@@ -86,6 +94,7 @@ tomli==2.0.1
# via mypy
# via pytest
typing-extensions==4.8.0
+ # via anyio
# via cloudflare
# via mypy
# via pydantic
diff --git a/requirements.lock b/requirements.lock
index ec0db0c5222..a0d34229e70 100644
--- a/requirements.lock
+++ b/requirements.lock
@@ -6,11 +6,12 @@
# features: []
# all-features: true
# with-sources: false
+# generate-hashes: false
-e file:.
annotated-types==0.6.0
# via pydantic
-anyio==4.1.0
+anyio==4.4.0
# via cloudflare
# via httpx
certifi==2023.7.22
@@ -38,6 +39,7 @@ sniffio==1.3.0
# via cloudflare
# via httpx
typing-extensions==4.8.0
+ # via anyio
# via cloudflare
# via pydantic
# via pydantic-core
diff --git a/src/cloudflare/_base_client.py b/src/cloudflare/_base_client.py
index d6730dbb3e4..ac63cf2cd11 100644
--- a/src/cloudflare/_base_client.py
+++ b/src/cloudflare/_base_client.py
@@ -58,6 +58,7 @@
HttpxSendArgs,
AsyncTransport,
RequestOptions,
+ HttpxRequestFiles,
ModelBuilderProtocol,
)
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
@@ -459,6 +460,7 @@ def _build_request(
headers = self._build_headers(options)
params = _merge_mappings(self.default_query, options.params)
content_type = headers.get("Content-Type")
+ files = options.files
# If the given Content-Type header is multipart/form-data then it
# has to be removed so that httpx can generate the header with
@@ -472,7 +474,7 @@ def _build_request(
headers.pop("Content-Type")
# As we are now sending multipart/form-data instead of application/json
- # we need to tell httpx to use it, https://www.python-httpx.org/advanced/#multipart-file-encoding
+ # we need to tell httpx to use it, https://www.python-httpx.org/advanced/clients/#multipart-file-encoding
if json_data:
if not is_dict(json_data):
raise TypeError(
@@ -480,6 +482,15 @@ def _build_request(
)
kwargs["data"] = self._serialize_multipartform(json_data)
+ # httpx determines whether or not to send a "multipart/form-data"
+ # request based on the truthiness of the "files" argument.
+ # This gets around that issue by generating a dict value that
+ # evaluates to true.
+ #
+ # https://github.com/encode/httpx/discussions/2399#discussioncomment-3814186
+ if not files:
+ files = cast(HttpxRequestFiles, ForceMultipartDict())
+
# TODO: report this error to httpx
return self._client.build_request( # pyright: ignore[reportUnknownMemberType]
headers=headers,
@@ -492,7 +503,7 @@ def _build_request(
# https://github.com/microsoft/pyright/issues/3526#event-6715453066
params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
json=json_data,
- files=options.files,
+ files=files,
**kwargs,
)
@@ -868,9 +879,9 @@ def __exit__(
def _prepare_options(
self,
options: FinalRequestOptions, # noqa: ARG002
- ) -> None:
+ ) -> FinalRequestOptions:
"""Hook for mutating the given options"""
- return None
+ return options
def _prepare_request(
self,
@@ -944,8 +955,13 @@ def _request(
stream: bool,
stream_cls: type[_StreamT] | None,
) -> ResponseT | _StreamT:
+ # create a copy of the options we were given so that if the
+ # options are mutated later & we then retry, the retries are
+ # given the original options
+ input_options = model_copy(options)
+
cast_to = self._maybe_override_cast_to(cast_to, options)
- self._prepare_options(options)
+ options = self._prepare_options(options)
retries = self._remaining_retries(remaining_retries, options)
request = self._build_request(options)
@@ -968,7 +984,7 @@ def _request(
if retries > 0:
return self._retry_request(
- options,
+ input_options,
cast_to,
retries,
stream=stream,
@@ -983,7 +999,7 @@ def _request(
if retries > 0:
return self._retry_request(
- options,
+ input_options,
cast_to,
retries,
stream=stream,
@@ -1011,7 +1027,7 @@ def _request(
if retries > 0 and self._should_retry(err.response):
err.response.close()
return self._retry_request(
- options,
+ input_options,
cast_to,
retries,
err.response.headers,
@@ -1426,9 +1442,9 @@ async def __aexit__(
async def _prepare_options(
self,
options: FinalRequestOptions, # noqa: ARG002
- ) -> None:
+ ) -> FinalRequestOptions:
"""Hook for mutating the given options"""
- return None
+ return options
async def _prepare_request(
self,
@@ -1507,8 +1523,13 @@ async def _request(
# execute it earlier while we are in an async context
self._platform = await asyncify(get_platform)()
+ # create a copy of the options we were given so that if the
+ # options are mutated later & we then retry, the retries are
+ # given the original options
+ input_options = model_copy(options)
+
cast_to = self._maybe_override_cast_to(cast_to, options)
- await self._prepare_options(options)
+ options = await self._prepare_options(options)
retries = self._remaining_retries(remaining_retries, options)
request = self._build_request(options)
@@ -1529,7 +1550,7 @@ async def _request(
if retries > 0:
return await self._retry_request(
- options,
+ input_options,
cast_to,
retries,
stream=stream,
@@ -1544,7 +1565,7 @@ async def _request(
if retries > 0:
return await self._retry_request(
- options,
+ input_options,
cast_to,
retries,
stream=stream,
@@ -1567,7 +1588,7 @@ async def _request(
if retries > 0 and self._should_retry(err.response):
await err.response.aclose()
return await self._retry_request(
- options,
+ input_options,
cast_to,
retries,
err.response.headers,
@@ -1863,6 +1884,11 @@ def make_request_options(
return options
+class ForceMultipartDict(Dict[str, None]):
+ def __bool__(self) -> bool:
+ return True
+
+
class OtherPlatform:
def __init__(self, name: str) -> None:
self.name = name
diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py
index cf1a1aadb2b..6e2928862dd 100644
--- a/src/cloudflare/_client.py
+++ b/src/cloudflare/_client.py
@@ -131,6 +131,7 @@ class Cloudflare(SyncAPIClient):
event_notifications: resources.EventNotificationsResource
ai_gateway: resources.AIGatewayResource
iam: resources.IAMResource
+ cloud_connector: resources.CloudConnectorResource
with_raw_response: CloudflareWithRawResponse
with_streaming_response: CloudflareWithStreamedResponse
@@ -290,13 +291,14 @@ def __init__(
self.event_notifications = resources.EventNotificationsResource(self)
self.ai_gateway = resources.AIGatewayResource(self)
self.iam = resources.IAMResource(self)
+ self.cloud_connector = resources.CloudConnectorResource(self)
self.with_raw_response = CloudflareWithRawResponse(self)
self.with_streaming_response = CloudflareWithStreamedResponse(self)
@property
@override
def qs(self) -> Querystring:
- return Querystring(array_format="repeat")
+ return Querystring(nested_format="dots", array_format="repeat")
@property
@override
@@ -552,6 +554,7 @@ class AsyncCloudflare(AsyncAPIClient):
event_notifications: resources.AsyncEventNotificationsResource
ai_gateway: resources.AsyncAIGatewayResource
iam: resources.AsyncIAMResource
+ cloud_connector: resources.AsyncCloudConnectorResource
with_raw_response: AsyncCloudflareWithRawResponse
with_streaming_response: AsyncCloudflareWithStreamedResponse
@@ -711,13 +714,14 @@ def __init__(
self.event_notifications = resources.AsyncEventNotificationsResource(self)
self.ai_gateway = resources.AsyncAIGatewayResource(self)
self.iam = resources.AsyncIAMResource(self)
+ self.cloud_connector = resources.AsyncCloudConnectorResource(self)
self.with_raw_response = AsyncCloudflareWithRawResponse(self)
self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self)
@property
@override
def qs(self) -> Querystring:
- return Querystring(array_format="repeat")
+ return Querystring(nested_format="dots", array_format="repeat")
@property
@override
@@ -984,6 +988,7 @@ def __init__(self, client: Cloudflare) -> None:
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
self.ai_gateway = resources.AIGatewayResourceWithRawResponse(client.ai_gateway)
self.iam = resources.IAMResourceWithRawResponse(client.iam)
+ self.cloud_connector = resources.CloudConnectorResourceWithRawResponse(client.cloud_connector)
class AsyncCloudflareWithRawResponse:
@@ -1086,6 +1091,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
self.ai_gateway = resources.AsyncAIGatewayResourceWithRawResponse(client.ai_gateway)
self.iam = resources.AsyncIAMResourceWithRawResponse(client.iam)
+ self.cloud_connector = resources.AsyncCloudConnectorResourceWithRawResponse(client.cloud_connector)
class CloudflareWithStreamedResponse:
@@ -1188,6 +1194,7 @@ def __init__(self, client: Cloudflare) -> None:
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
self.ai_gateway = resources.AIGatewayResourceWithStreamingResponse(client.ai_gateway)
self.iam = resources.IAMResourceWithStreamingResponse(client.iam)
+ self.cloud_connector = resources.CloudConnectorResourceWithStreamingResponse(client.cloud_connector)
class AsyncCloudflareWithStreamedResponse:
@@ -1298,6 +1305,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
)
self.ai_gateway = resources.AsyncAIGatewayResourceWithStreamingResponse(client.ai_gateway)
self.iam = resources.AsyncIAMResourceWithStreamingResponse(client.iam)
+ self.cloud_connector = resources.AsyncCloudConnectorResourceWithStreamingResponse(client.cloud_connector)
Client = Cloudflare
diff --git a/src/cloudflare/_compat.py b/src/cloudflare/_compat.py
index 74c7639b4cd..c919b5adb3e 100644
--- a/src/cloudflare/_compat.py
+++ b/src/cloudflare/_compat.py
@@ -118,10 +118,10 @@ def get_model_fields(model: type[pydantic.BaseModel]) -> dict[str, FieldInfo]:
return model.__fields__ # type: ignore
-def model_copy(model: _ModelT) -> _ModelT:
+def model_copy(model: _ModelT, *, deep: bool = False) -> _ModelT:
if PYDANTIC_V2:
- return model.model_copy()
- return model.copy() # type: ignore
+ return model.model_copy(deep=deep)
+ return model.copy(deep=deep) # type: ignore
def model_json(model: pydantic.BaseModel, *, indent: int | None = None) -> str:
diff --git a/src/cloudflare/_models.py b/src/cloudflare/_models.py
index 75c68cc7302..eb7ce3bde92 100644
--- a/src/cloudflare/_models.py
+++ b/src/cloudflare/_models.py
@@ -10,6 +10,7 @@
ClassVar,
Protocol,
Required,
+ ParamSpec,
TypedDict,
TypeGuard,
final,
@@ -67,6 +68,9 @@
__all__ = ["BaseModel", "GenericModel"]
_T = TypeVar("_T")
+_BaseModelT = TypeVar("_BaseModelT", bound="BaseModel")
+
+P = ParamSpec("P")
@runtime_checkable
@@ -379,6 +383,29 @@ def is_basemodel_type(type_: type) -> TypeGuard[type[BaseModel] | type[GenericMo
return issubclass(origin, BaseModel) or issubclass(origin, GenericModel)
+def build(
+ base_model_cls: Callable[P, _BaseModelT],
+ *args: P.args,
+ **kwargs: P.kwargs,
+) -> _BaseModelT:
+ """Construct a BaseModel class without validation.
+
+ This is useful for cases where you need to instantiate a `BaseModel`
+ from an API response as this provides type-safe params which isn't supported
+ by helpers like `construct_type()`.
+
+ ```py
+ build(MyModel, my_field_a="foo", my_field_b=123)
+ ```
+ """
+ if args:
+ raise TypeError(
+ "Received positional arguments which are not supported; Keyword arguments must be used instead",
+ )
+
+ return cast(_BaseModelT, construct_type(type_=base_model_cls, value=kwargs))
+
+
def construct_type(*, value: object, type_: object) -> object:
"""Loose coercion to the expected type with construction of nested values.
@@ -616,6 +643,14 @@ def validate_type(*, type_: type[_T], value: object) -> _T:
return cast(_T, _validate_non_model_type(type_=type_, value=value))
+def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:
+ """Add a pydantic config for the given type.
+
+ Note: this is a no-op on Pydantic v1.
+ """
+ setattr(typ, "__pydantic_config__", config) # noqa: B010
+
+
# our use of subclasssing here causes weirdness for type checkers,
# so we just pretend that we don't subclass
if TYPE_CHECKING:
diff --git a/src/cloudflare/_utils/__init__.py b/src/cloudflare/_utils/__init__.py
index 667e2473f65..3efe66c8e85 100644
--- a/src/cloudflare/_utils/__init__.py
+++ b/src/cloudflare/_utils/__init__.py
@@ -49,4 +49,7 @@
maybe_transform as maybe_transform,
async_maybe_transform as async_maybe_transform,
)
-from ._reflection import function_has_argument as function_has_argument
+from ._reflection import (
+ function_has_argument as function_has_argument,
+ assert_signatures_in_sync as assert_signatures_in_sync,
+)
diff --git a/src/cloudflare/_utils/_reflection.py b/src/cloudflare/_utils/_reflection.py
index e134f58e086..9a53c7bd21c 100644
--- a/src/cloudflare/_utils/_reflection.py
+++ b/src/cloudflare/_utils/_reflection.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import inspect
from typing import Any, Callable
@@ -6,3 +8,35 @@ def function_has_argument(func: Callable[..., Any], arg_name: str) -> bool:
"""Returns whether or not the given function has a specific parameter"""
sig = inspect.signature(func)
return arg_name in sig.parameters
+
+
+def assert_signatures_in_sync(
+ source_func: Callable[..., Any],
+ check_func: Callable[..., Any],
+ *,
+ exclude_params: set[str] = set(),
+) -> None:
+ """Ensure that the signature of the second function matches the first."""
+
+ check_sig = inspect.signature(check_func)
+ source_sig = inspect.signature(source_func)
+
+ errors: list[str] = []
+
+ for name, source_param in source_sig.parameters.items():
+ if name in exclude_params:
+ continue
+
+ custom_param = check_sig.parameters.get(name)
+ if not custom_param:
+ errors.append(f"the `{name}` param is missing")
+ continue
+
+ if custom_param.annotation != source_param.annotation:
+ errors.append(
+ f"types for the `{name}` param are do not match; source={repr(source_param.annotation)} checking={repr(source_param.annotation)}"
+ )
+ continue
+
+ if errors:
+ raise AssertionError(f"{len(errors)} errors encountered when comparing signatures:\n\n" + "\n\n".join(errors))
diff --git a/src/cloudflare/_version.py b/src/cloudflare/_version.py
index 3595cc453c3..8567a89a5c0 100644
--- a/src/cloudflare/_version.py
+++ b/src/cloudflare/_version.py
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
__title__ = "cloudflare"
-__version__ = "3.0.1" # x-release-please-version
+__version__ = "3.1.0" # x-release-please-version
diff --git a/src/cloudflare/resources/__init__.py b/src/cloudflare/resources/__init__.py
index 05545390c25..35be298a563 100644
--- a/src/cloudflare/resources/__init__.py
+++ b/src/cloudflare/resources/__init__.py
@@ -528,6 +528,14 @@
WARPConnectorResourceWithStreamingResponse,
AsyncWARPConnectorResourceWithStreamingResponse,
)
+from .cloud_connector import (
+ CloudConnectorResource,
+ AsyncCloudConnectorResource,
+ CloudConnectorResourceWithRawResponse,
+ AsyncCloudConnectorResourceWithRawResponse,
+ CloudConnectorResourceWithStreamingResponse,
+ AsyncCloudConnectorResourceWithStreamingResponse,
+)
from .durable_objects import (
DurableObjectsResource,
AsyncDurableObjectsResource,
@@ -1178,4 +1186,10 @@
"AsyncIAMResourceWithRawResponse",
"IAMResourceWithStreamingResponse",
"AsyncIAMResourceWithStreamingResponse",
+ "CloudConnectorResource",
+ "AsyncCloudConnectorResource",
+ "CloudConnectorResourceWithRawResponse",
+ "AsyncCloudConnectorResourceWithRawResponse",
+ "CloudConnectorResourceWithStreamingResponse",
+ "AsyncCloudConnectorResourceWithStreamingResponse",
]
diff --git a/src/cloudflare/resources/accounts/accounts.py b/src/cloudflare/resources/accounts/accounts.py
index 75b2a0e8fbe..2d48d9dfe99 100644
--- a/src/cloudflare/resources/accounts/accounts.py
+++ b/src/cloudflare/resources/accounts/accounts.py
@@ -38,10 +38,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.accounts import account_list_params, account_update_params
__all__ = ["AccountsResource", "AsyncAccountsResource"]
diff --git a/src/cloudflare/resources/accounts/members.py b/src/cloudflare/resources/accounts/members.py
index ab13b631e8f..97716de0279 100644
--- a/src/cloudflare/resources/accounts/members.py
+++ b/src/cloudflare/resources/accounts/members.py
@@ -23,10 +23,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.accounts import member_list_params, member_create_params, member_update_params
from ...types.accounts.member_get_response import MemberGetResponse
from ...types.accounts.member_list_response import MemberListResponse
diff --git a/src/cloudflare/resources/accounts/roles.py b/src/cloudflare/resources/accounts/roles.py
index 16c89ca10dd..f23d3aa498c 100644
--- a/src/cloudflare/resources/accounts/roles.py
+++ b/src/cloudflare/resources/accounts/roles.py
@@ -17,10 +17,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.shared.role import Role
__all__ = ["RolesResource", "AsyncRolesResource"]
diff --git a/src/cloudflare/resources/acm/total_tls.py b/src/cloudflare/resources/acm/total_tls.py
index 1282d909aa4..22877d9f1a8 100644
--- a/src/cloudflare/resources/acm/total_tls.py
+++ b/src/cloudflare/resources/acm/total_tls.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.acm import CertificateAuthority, total_tls_create_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.acm.certificate_authority import CertificateAuthority
from ...types.acm.total_tls_get_response import TotalTLSGetResponse
from ...types.acm.total_tls_create_response import TotalTLSCreateResponse
diff --git a/src/cloudflare/resources/addressing/address_maps/accounts.py b/src/cloudflare/resources/addressing/address_maps/accounts.py
index d48154dcb04..a7a4e27322c 100644
--- a/src/cloudflare/resources/addressing/address_maps/accounts.py
+++ b/src/cloudflare/resources/addressing/address_maps/accounts.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.addressing.address_maps import account_update_params
from ....types.addressing.address_maps.account_delete_response import AccountDeleteResponse
from ....types.addressing.address_maps.account_update_response import AccountUpdateResponse
diff --git a/src/cloudflare/resources/addressing/address_maps/address_maps.py b/src/cloudflare/resources/addressing/address_maps/address_maps.py
index c92ddd937a3..755134df84f 100644
--- a/src/cloudflare/resources/addressing/address_maps/address_maps.py
+++ b/src/cloudflare/resources/addressing/address_maps/address_maps.py
@@ -45,10 +45,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing import address_map_edit_params, address_map_create_params
from ....types.addressing.address_map import AddressMap
from ....types.addressing.address_map_get_response import AddressMapGetResponse
diff --git a/src/cloudflare/resources/addressing/address_maps/ips.py b/src/cloudflare/resources/addressing/address_maps/ips.py
index afabfb17ecf..e9edf9881fe 100644
--- a/src/cloudflare/resources/addressing/address_maps/ips.py
+++ b/src/cloudflare/resources/addressing/address_maps/ips.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.addressing.address_maps import ip_update_params
from ....types.addressing.address_maps.ip_delete_response import IPDeleteResponse
from ....types.addressing.address_maps.ip_update_response import IPUpdateResponse
diff --git a/src/cloudflare/resources/addressing/address_maps/zones.py b/src/cloudflare/resources/addressing/address_maps/zones.py
index adb801b9671..cf592d92645 100644
--- a/src/cloudflare/resources/addressing/address_maps/zones.py
+++ b/src/cloudflare/resources/addressing/address_maps/zones.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.addressing.address_maps import zone_update_params
from ....types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse
from ....types.addressing.address_maps.zone_update_response import ZoneUpdateResponse
diff --git a/src/cloudflare/resources/addressing/loa_documents/downloads.py b/src/cloudflare/resources/addressing/loa_documents/downloads.py
index e333bc3e986..5540d005306 100644
--- a/src/cloudflare/resources/addressing/loa_documents/downloads.py
+++ b/src/cloudflare/resources/addressing/loa_documents/downloads.py
@@ -19,9 +19,7 @@
async_to_custom_raw_response_wrapper,
async_to_custom_streamed_response_wrapper,
)
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
__all__ = ["DownloadsResource", "AsyncDownloadsResource"]
diff --git a/src/cloudflare/resources/addressing/loa_documents/loa_documents.py b/src/cloudflare/resources/addressing/loa_documents/loa_documents.py
index 7080381886a..a783c0551a0 100644
--- a/src/cloudflare/resources/addressing/loa_documents/loa_documents.py
+++ b/src/cloudflare/resources/addressing/loa_documents/loa_documents.py
@@ -28,9 +28,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.addressing import loa_document_create_params
from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse
@@ -80,6 +78,10 @@ def create(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._post(
f"/accounts/{account_id}/addressing/loa_documents",
body=maybe_transform({"loa_document": loa_document}, loa_document_create_params.LOADocumentCreateParams),
@@ -137,6 +139,10 @@ async def create(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._post(
f"/accounts/{account_id}/addressing/loa_documents",
body=await async_maybe_transform(
diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
index ffa7d4bda3d..a2c7b0f566e 100644
--- a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
+++ b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
@@ -21,10 +21,7 @@
)
from ....._wrappers import ResultWrapper
from .....pagination import SyncSinglePage, AsyncSinglePage
-from ....._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....._base_client import AsyncPaginator, make_request_options
from .....types.addressing.prefixes.bgp import binding_create_params
from .....types.addressing.prefixes.bgp.service_binding import ServiceBinding
from .....types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse
diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py b/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py
index fc337311031..a2a444a4c68 100644
--- a/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py
+++ b/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py
@@ -21,10 +21,7 @@
)
from ....._wrappers import ResultWrapper
from .....pagination import SyncSinglePage, AsyncSinglePage
-from ....._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....._base_client import AsyncPaginator, make_request_options
from .....types.addressing.prefixes.bgp import prefix_edit_params
from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix
diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py b/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py
index aca3d146bc4..065c28d426e 100644
--- a/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py
+++ b/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.addressing.prefixes.bgp import status_edit_params
from .....types.addressing.prefixes.bgp.status_get_response import StatusGetResponse
from .....types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse
diff --git a/src/cloudflare/resources/addressing/prefixes/delegations.py b/src/cloudflare/resources/addressing/prefixes/delegations.py
index 193d76d1c01..1fed5c0a3ba 100644
--- a/src/cloudflare/resources/addressing/prefixes/delegations.py
+++ b/src/cloudflare/resources/addressing/prefixes/delegations.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing.prefixes import delegation_create_params
from ....types.addressing.prefixes.delegations import Delegations
from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse
diff --git a/src/cloudflare/resources/addressing/prefixes/prefixes.py b/src/cloudflare/resources/addressing/prefixes/prefixes.py
index f7eb058f695..ee43ea753db 100644
--- a/src/cloudflare/resources/addressing/prefixes/prefixes.py
+++ b/src/cloudflare/resources/addressing/prefixes/prefixes.py
@@ -38,10 +38,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing import prefix_edit_params, prefix_create_params
from ....types.addressing.prefix import Prefix
from ....types.addressing.prefix_delete_response import PrefixDeleteResponse
diff --git a/src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py b/src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py
index 1524d3e06bc..1c719b3da72 100644
--- a/src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py
+++ b/src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py
@@ -29,10 +29,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing import regional_hostname_edit_params, regional_hostname_create_params
from ....types.addressing.regional_hostname_get_response import RegionalHostnameGetResponse
from ....types.addressing.regional_hostname_edit_response import RegionalHostnameEditResponse
diff --git a/src/cloudflare/resources/addressing/regional_hostnames/regions.py b/src/cloudflare/resources/addressing/regional_hostnames/regions.py
index 7340ffab77f..c3432d5cb2b 100644
--- a/src/cloudflare/resources/addressing/regional_hostnames/regions.py
+++ b/src/cloudflare/resources/addressing/regional_hostnames/regions.py
@@ -14,10 +14,7 @@
async_to_streamed_response_wrapper,
)
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing.regional_hostnames.region_list_response import RegionListResponse
__all__ = ["RegionsResource", "AsyncRegionsResource"]
diff --git a/src/cloudflare/resources/addressing/services.py b/src/cloudflare/resources/addressing/services.py
index 4b97ccde1a2..ff6ef55cfa2 100644
--- a/src/cloudflare/resources/addressing/services.py
+++ b/src/cloudflare/resources/addressing/services.py
@@ -14,10 +14,7 @@
async_to_streamed_response_wrapper,
)
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.addressing.service_list_response import ServiceListResponse
__all__ = ["ServicesResource", "AsyncServicesResource"]
diff --git a/src/cloudflare/resources/ai_gateway/ai_gateway.py b/src/cloudflare/resources/ai_gateway/ai_gateway.py
index ac5a9237f0b..6d75bfb8ba3 100644
--- a/src/cloudflare/resources/ai_gateway/ai_gateway.py
+++ b/src/cloudflare/resources/ai_gateway/ai_gateway.py
@@ -30,10 +30,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.ai_gateway import ai_gateway_list_params, ai_gateway_create_params, ai_gateway_update_params
from ...types.ai_gateway.ai_gateway_get_response import AIGatewayGetResponse
from ...types.ai_gateway.ai_gateway_list_response import AIGatewayListResponse
diff --git a/src/cloudflare/resources/ai_gateway/logs.py b/src/cloudflare/resources/ai_gateway/logs.py
index 58f38d09fbc..4ddf4d28468 100644
--- a/src/cloudflare/resources/ai_gateway/logs.py
+++ b/src/cloudflare/resources/ai_gateway/logs.py
@@ -19,10 +19,7 @@
async_to_streamed_response_wrapper,
)
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.ai_gateway import log_list_params
from ...types.ai_gateway.log_list_response import LogListResponse
diff --git a/src/cloudflare/resources/alerting/available_alerts.py b/src/cloudflare/resources/alerting/available_alerts.py
index b6c6a2d8327..8ededcc6759 100644
--- a/src/cloudflare/resources/alerting/available_alerts.py
+++ b/src/cloudflare/resources/alerting/available_alerts.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.alerting.available_alert_list_response import AvailableAlertListResponse
__all__ = ["AvailableAlertsResource", "AsyncAvailableAlertsResource"]
diff --git a/src/cloudflare/resources/alerting/destinations/eligible.py b/src/cloudflare/resources/alerting/destinations/eligible.py
index 25d24519dce..9f330cc89c6 100644
--- a/src/cloudflare/resources/alerting/destinations/eligible.py
+++ b/src/cloudflare/resources/alerting/destinations/eligible.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse
__all__ = ["EligibleResource", "AsyncEligibleResource"]
diff --git a/src/cloudflare/resources/alerting/destinations/pagerduty.py b/src/cloudflare/resources/alerting/destinations/pagerduty.py
index 093dbb88fbf..b6e4f112a41 100644
--- a/src/cloudflare/resources/alerting/destinations/pagerduty.py
+++ b/src/cloudflare/resources/alerting/destinations/pagerduty.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.alerting.destinations.pagerduty_get_response import PagerdutyGetResponse
from ....types.alerting.destinations.pagerduty_link_response import PagerdutyLinkResponse
from ....types.alerting.destinations.pagerduty_create_response import PagerdutyCreateResponse
diff --git a/src/cloudflare/resources/alerting/destinations/webhooks.py b/src/cloudflare/resources/alerting/destinations/webhooks.py
index 883d4890db8..038ec887425 100644
--- a/src/cloudflare/resources/alerting/destinations/webhooks.py
+++ b/src/cloudflare/resources/alerting/destinations/webhooks.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.alerting.destinations import webhook_create_params, webhook_update_params
from ....types.alerting.destinations.webhooks import Webhooks
from ....types.alerting.destinations.webhook_create_response import WebhookCreateResponse
diff --git a/src/cloudflare/resources/alerting/history.py b/src/cloudflare/resources/alerting/history.py
index 9ddd67eb387..f36f2e6927e 100644
--- a/src/cloudflare/resources/alerting/history.py
+++ b/src/cloudflare/resources/alerting/history.py
@@ -18,10 +18,7 @@
async_to_streamed_response_wrapper,
)
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.alerting import history_list_params
from ...types.alerting.history import History
diff --git a/src/cloudflare/resources/alerting/policies.py b/src/cloudflare/resources/alerting/policies.py
index b4c0c91442f..d951b329903 100644
--- a/src/cloudflare/resources/alerting/policies.py
+++ b/src/cloudflare/resources/alerting/policies.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.alerting import policy_create_params, policy_update_params
from ...types.alerting.policy import Policy
from ...types.alerting.mechanism_param import MechanismParam
diff --git a/src/cloudflare/resources/api_gateway/configurations.py b/src/cloudflare/resources/api_gateway/configurations.py
index 4e02d4359d6..efa78c99742 100644
--- a/src/cloudflare/resources/api_gateway/configurations.py
+++ b/src/cloudflare/resources/api_gateway/configurations.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, List, Type, Iterable, cast
+from typing import List, Type, Iterable, cast
from typing_extensions import Literal
import httpx
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.api_gateway import configuration_get_params, configuration_update_params
from ...types.api_gateway.configuration import Configuration
from ...types.api_gateway.configuration_update_response import ConfigurationUpdateResponse
@@ -44,7 +42,7 @@ def update(
self,
*,
zone_id: str,
- auth_id_characteristics: Iterable[configuration_update_params.AuthIDCharacteristic] | NotGiven = NOT_GIVEN,
+ auth_id_characteristics: Iterable[configuration_update_params.AuthIDCharacteristic],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -68,25 +66,16 @@ def update(
"""
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
- return cast(
- ConfigurationUpdateResponse,
- self._put(
- f"/zones/{zone_id}/api_gateway/configuration",
- body=maybe_transform(
- {"auth_id_characteristics": auth_id_characteristics},
- configuration_update_params.ConfigurationUpdateParams,
- ),
- options=make_request_options(
- extra_headers=extra_headers,
- extra_query=extra_query,
- extra_body=extra_body,
- timeout=timeout,
- post_parser=ResultWrapper[ConfigurationUpdateResponse]._unwrapper,
- ),
- cast_to=cast(
- Any, ResultWrapper[ConfigurationUpdateResponse]
- ), # Union types cannot be passed in as arguments in the type system
+ return self._put(
+ f"/zones/{zone_id}/api_gateway/configuration",
+ body=maybe_transform(
+ {"auth_id_characteristics": auth_id_characteristics},
+ configuration_update_params.ConfigurationUpdateParams,
+ ),
+ options=make_request_options(
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
+ cast_to=ConfigurationUpdateResponse,
)
def get(
@@ -146,7 +135,7 @@ async def update(
self,
*,
zone_id: str,
- auth_id_characteristics: Iterable[configuration_update_params.AuthIDCharacteristic] | NotGiven = NOT_GIVEN,
+ auth_id_characteristics: Iterable[configuration_update_params.AuthIDCharacteristic],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -170,25 +159,16 @@ async def update(
"""
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
- return cast(
- ConfigurationUpdateResponse,
- await self._put(
- f"/zones/{zone_id}/api_gateway/configuration",
- body=await async_maybe_transform(
- {"auth_id_characteristics": auth_id_characteristics},
- configuration_update_params.ConfigurationUpdateParams,
- ),
- options=make_request_options(
- extra_headers=extra_headers,
- extra_query=extra_query,
- extra_body=extra_body,
- timeout=timeout,
- post_parser=ResultWrapper[ConfigurationUpdateResponse]._unwrapper,
- ),
- cast_to=cast(
- Any, ResultWrapper[ConfigurationUpdateResponse]
- ), # Union types cannot be passed in as arguments in the type system
+ return await self._put(
+ f"/zones/{zone_id}/api_gateway/configuration",
+ body=await async_maybe_transform(
+ {"auth_id_characteristics": auth_id_characteristics},
+ configuration_update_params.ConfigurationUpdateParams,
+ ),
+ options=make_request_options(
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
+ cast_to=ConfigurationUpdateResponse,
)
async def get(
diff --git a/src/cloudflare/resources/api_gateway/discovery/discovery.py b/src/cloudflare/resources/api_gateway/discovery/discovery.py
index f4aed13c07e..9decd5b422c 100644
--- a/src/cloudflare/resources/api_gateway/discovery/discovery.py
+++ b/src/cloudflare/resources/api_gateway/discovery/discovery.py
@@ -24,9 +24,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.api_gateway.discovery_get_response import DiscoveryGetResponse
__all__ = ["DiscoveryResource", "AsyncDiscoveryResource"]
diff --git a/src/cloudflare/resources/api_gateway/discovery/operations.py b/src/cloudflare/resources/api_gateway/discovery/operations.py
index d893457fcdb..4f7fb29a475 100644
--- a/src/cloudflare/resources/api_gateway/discovery/operations.py
+++ b/src/cloudflare/resources/api_gateway/discovery/operations.py
@@ -21,11 +21,8 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.api_gateway.discovery import operation_edit_params, operation_list_params
from ....types.api_gateway.discovery_operation import DiscoveryOperation
from ....types.api_gateway.discovery.operation_edit_response import OperationEditResponse
@@ -54,8 +51,8 @@ def list(
order: Literal["host", "method", "endpoint", "traffic_stats.requests", "traffic_stats.last_updated"]
| NotGiven = NOT_GIVEN,
origin: Literal["ML", "SessionIdentifier"] | NotGiven = NOT_GIVEN,
- page: object | NotGiven = NOT_GIVEN,
- per_page: object | NotGiven = NOT_GIVEN,
+ page: int | NotGiven = NOT_GIVEN,
+ per_page: int | NotGiven = NOT_GIVEN,
state: Literal["review", "saved", "ignored"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -63,7 +60,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncSinglePage[DiscoveryOperation]:
+ ) -> SyncV4PagePaginationArray[DiscoveryOperation]:
"""
Retrieve the most up to date view of discovered operations
@@ -115,7 +112,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/api_gateway/discovery/operations",
- page=SyncSinglePage[DiscoveryOperation],
+ page=SyncV4PagePaginationArray[DiscoveryOperation],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -159,7 +156,7 @@ def edit(
Args:
zone_id: Identifier
- operation_id: UUID identifier
+ operation_id: UUID
state: Mark state of operation in API Discovery
@@ -213,8 +210,8 @@ def list(
order: Literal["host", "method", "endpoint", "traffic_stats.requests", "traffic_stats.last_updated"]
| NotGiven = NOT_GIVEN,
origin: Literal["ML", "SessionIdentifier"] | NotGiven = NOT_GIVEN,
- page: object | NotGiven = NOT_GIVEN,
- per_page: object | NotGiven = NOT_GIVEN,
+ page: int | NotGiven = NOT_GIVEN,
+ per_page: int | NotGiven = NOT_GIVEN,
state: Literal["review", "saved", "ignored"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -222,7 +219,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[DiscoveryOperation, AsyncSinglePage[DiscoveryOperation]]:
+ ) -> AsyncPaginator[DiscoveryOperation, AsyncV4PagePaginationArray[DiscoveryOperation]]:
"""
Retrieve the most up to date view of discovered operations
@@ -274,7 +271,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/api_gateway/discovery/operations",
- page=AsyncSinglePage[DiscoveryOperation],
+ page=AsyncV4PagePaginationArray[DiscoveryOperation],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -318,7 +315,7 @@ async def edit(
Args:
zone_id: Identifier
- operation_id: UUID identifier
+ operation_id: UUID
state: Mark state of operation in API Discovery
diff --git a/src/cloudflare/resources/api_gateway/operations/operations.py b/src/cloudflare/resources/api_gateway/operations/operations.py
index 90c7b6dd975..cb5b7673217 100644
--- a/src/cloudflare/resources/api_gateway/operations/operations.py
+++ b/src/cloudflare/resources/api_gateway/operations/operations.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, List, Type, Iterable, Optional, cast
+from typing import List, Type, Iterable, cast
from typing_extensions import Literal
import httpx
@@ -21,11 +21,8 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from ...._base_client import AsyncPaginator, make_request_options
from .schema_validation import (
SchemaValidationResource,
AsyncSchemaValidationResource,
@@ -35,7 +32,8 @@
AsyncSchemaValidationResourceWithStreamingResponse,
)
from ....types.api_gateway import operation_get_params, operation_list_params, operation_create_params
-from ....types.api_gateway.api_shield import APIShield
+from ....types.api_gateway.operation_get_response import OperationGetResponse
+from ....types.api_gateway.operation_list_response import OperationListResponse
from ....types.api_gateway.operation_create_response import OperationCreateResponse
from ....types.api_gateway.operation_delete_response import OperationDeleteResponse
@@ -66,7 +64,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[OperationCreateResponse]:
+ ) -> OperationCreateResponse:
"""Add one or more operations to a zone.
Endpoints can contain path variables.
@@ -96,9 +94,9 @@ def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[OperationCreateResponse]]._unwrapper,
+ post_parser=ResultWrapper[OperationCreateResponse]._unwrapper,
),
- cast_to=cast(Type[Optional[OperationCreateResponse]], ResultWrapper[OperationCreateResponse]),
+ cast_to=cast(Type[OperationCreateResponse], ResultWrapper[OperationCreateResponse]),
)
def list(
@@ -111,15 +109,15 @@ def list(
host: List[str] | NotGiven = NOT_GIVEN,
method: List[str] | NotGiven = NOT_GIVEN,
order: Literal["method", "host", "endpoint", "thresholds.$key"] | NotGiven = NOT_GIVEN,
- page: object | NotGiven = NOT_GIVEN,
- per_page: float | NotGiven = NOT_GIVEN,
+ page: int | NotGiven = NOT_GIVEN,
+ per_page: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncSinglePage[APIShield]:
+ ) -> SyncV4PagePaginationArray[OperationListResponse]:
"""
Retrieve information about all operations on a zone
@@ -143,7 +141,7 @@ def list(
page: Page number of paginated results.
- per_page: Number of results to return per page
+ per_page: Maximum number of results per page.
extra_headers: Send extra headers
@@ -157,7 +155,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/api_gateway/operations",
- page=SyncSinglePage[APIShield],
+ page=SyncV4PagePaginationArray[OperationListResponse],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -177,7 +175,7 @@ def list(
operation_list_params.OperationListParams,
),
),
- model=APIShield,
+ model=OperationListResponse,
)
def delete(
@@ -198,6 +196,8 @@ def delete(
Args:
zone_id: Identifier
+ operation_id: UUID
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -210,21 +210,12 @@ def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
if not operation_id:
raise ValueError(f"Expected a non-empty value for `operation_id` but received {operation_id!r}")
- return cast(
- OperationDeleteResponse,
- self._delete(
- f"/zones/{zone_id}/api_gateway/operations/{operation_id}",
- options=make_request_options(
- extra_headers=extra_headers,
- extra_query=extra_query,
- extra_body=extra_body,
- timeout=timeout,
- post_parser=ResultWrapper[OperationDeleteResponse]._unwrapper,
- ),
- cast_to=cast(
- Any, ResultWrapper[OperationDeleteResponse]
- ), # Union types cannot be passed in as arguments in the type system
+ return self._delete(
+ f"/zones/{zone_id}/api_gateway/operations/{operation_id}",
+ options=make_request_options(
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
+ cast_to=OperationDeleteResponse,
)
def get(
@@ -239,13 +230,15 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> APIShield:
+ ) -> OperationGetResponse:
"""
Retrieve information about an operation
Args:
zone_id: Identifier
+ operation_id: UUID
+
feature: Add feature(s) to the results. The feature name that is given here corresponds
to the resulting feature object. Have a look at the top-level object description
for more details on the specific meaning.
@@ -270,9 +263,9 @@ def get(
extra_body=extra_body,
timeout=timeout,
query=maybe_transform({"feature": feature}, operation_get_params.OperationGetParams),
- post_parser=ResultWrapper[APIShield]._unwrapper,
+ post_parser=ResultWrapper[OperationGetResponse]._unwrapper,
),
- cast_to=cast(Type[APIShield], ResultWrapper[APIShield]),
+ cast_to=cast(Type[OperationGetResponse], ResultWrapper[OperationGetResponse]),
)
@@ -300,7 +293,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[OperationCreateResponse]:
+ ) -> OperationCreateResponse:
"""Add one or more operations to a zone.
Endpoints can contain path variables.
@@ -330,9 +323,9 @@ async def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[OperationCreateResponse]]._unwrapper,
+ post_parser=ResultWrapper[OperationCreateResponse]._unwrapper,
),
- cast_to=cast(Type[Optional[OperationCreateResponse]], ResultWrapper[OperationCreateResponse]),
+ cast_to=cast(Type[OperationCreateResponse], ResultWrapper[OperationCreateResponse]),
)
def list(
@@ -345,15 +338,15 @@ def list(
host: List[str] | NotGiven = NOT_GIVEN,
method: List[str] | NotGiven = NOT_GIVEN,
order: Literal["method", "host", "endpoint", "thresholds.$key"] | NotGiven = NOT_GIVEN,
- page: object | NotGiven = NOT_GIVEN,
- per_page: float | NotGiven = NOT_GIVEN,
+ page: int | NotGiven = NOT_GIVEN,
+ per_page: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[APIShield, AsyncSinglePage[APIShield]]:
+ ) -> AsyncPaginator[OperationListResponse, AsyncV4PagePaginationArray[OperationListResponse]]:
"""
Retrieve information about all operations on a zone
@@ -377,7 +370,7 @@ def list(
page: Page number of paginated results.
- per_page: Number of results to return per page
+ per_page: Maximum number of results per page.
extra_headers: Send extra headers
@@ -391,7 +384,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/api_gateway/operations",
- page=AsyncSinglePage[APIShield],
+ page=AsyncV4PagePaginationArray[OperationListResponse],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -411,7 +404,7 @@ def list(
operation_list_params.OperationListParams,
),
),
- model=APIShield,
+ model=OperationListResponse,
)
async def delete(
@@ -432,6 +425,8 @@ async def delete(
Args:
zone_id: Identifier
+ operation_id: UUID
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -444,21 +439,12 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
if not operation_id:
raise ValueError(f"Expected a non-empty value for `operation_id` but received {operation_id!r}")
- return cast(
- OperationDeleteResponse,
- await self._delete(
- f"/zones/{zone_id}/api_gateway/operations/{operation_id}",
- options=make_request_options(
- extra_headers=extra_headers,
- extra_query=extra_query,
- extra_body=extra_body,
- timeout=timeout,
- post_parser=ResultWrapper[OperationDeleteResponse]._unwrapper,
- ),
- cast_to=cast(
- Any, ResultWrapper[OperationDeleteResponse]
- ), # Union types cannot be passed in as arguments in the type system
+ return await self._delete(
+ f"/zones/{zone_id}/api_gateway/operations/{operation_id}",
+ options=make_request_options(
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
+ cast_to=OperationDeleteResponse,
)
async def get(
@@ -473,13 +459,15 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> APIShield:
+ ) -> OperationGetResponse:
"""
Retrieve information about an operation
Args:
zone_id: Identifier
+ operation_id: UUID
+
feature: Add feature(s) to the results. The feature name that is given here corresponds
to the resulting feature object. Have a look at the top-level object description
for more details on the specific meaning.
@@ -504,9 +492,9 @@ async def get(
extra_body=extra_body,
timeout=timeout,
query=await async_maybe_transform({"feature": feature}, operation_get_params.OperationGetParams),
- post_parser=ResultWrapper[APIShield]._unwrapper,
+ post_parser=ResultWrapper[OperationGetResponse]._unwrapper,
),
- cast_to=cast(Type[APIShield], ResultWrapper[APIShield]),
+ cast_to=cast(Type[OperationGetResponse], ResultWrapper[OperationGetResponse]),
)
diff --git a/src/cloudflare/resources/api_gateway/operations/schema_validation.py b/src/cloudflare/resources/api_gateway/operations/schema_validation.py
index b8bd7a0cdcb..75fbceb4e40 100644
--- a/src/cloudflare/resources/api_gateway/operations/schema_validation.py
+++ b/src/cloudflare/resources/api_gateway/operations/schema_validation.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.api_gateway.operations import (
SettingsMultipleRequest,
schema_validation_edit_params,
@@ -65,6 +63,8 @@ def update(
Args:
zone_id: Identifier
+ operation_id: UUID
+
mitigation_action: When set, this applies a mitigation action to this operation
- `log` log request when request does not conform to schema for this operation
@@ -156,6 +156,8 @@ def get(
Args:
zone_id: Identifier
+ operation_id: UUID
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -205,6 +207,8 @@ async def update(
Args:
zone_id: Identifier
+ operation_id: UUID
+
mitigation_action: When set, this applies a mitigation action to this operation
- `log` log request when request does not conform to schema for this operation
@@ -298,6 +302,8 @@ async def get(
Args:
zone_id: Identifier
+ operation_id: UUID
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
diff --git a/src/cloudflare/resources/api_gateway/schemas.py b/src/cloudflare/resources/api_gateway/schemas.py
index d2d1976f847..501680e88a3 100644
--- a/src/cloudflare/resources/api_gateway/schemas.py
+++ b/src/cloudflare/resources/api_gateway/schemas.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.api_gateway import schema_list_params
from ...types.api_gateway.schema_list_response import SchemaListResponse
diff --git a/src/cloudflare/resources/api_gateway/settings/schema_validation.py b/src/cloudflare/resources/api_gateway/settings/schema_validation.py
index 74acb51c4a5..edfbacc9040 100644
--- a/src/cloudflare/resources/api_gateway/settings/schema_validation.py
+++ b/src/cloudflare/resources/api_gateway/settings/schema_validation.py
@@ -20,9 +20,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.api_gateway.settings import schema_validation_edit_params, schema_validation_update_params
from ....types.api_gateway.settings.settings import Settings
diff --git a/src/cloudflare/resources/api_gateway/user_schemas/operations.py b/src/cloudflare/resources/api_gateway/user_schemas/operations.py
index 171f80b2aef..18cb925ea95 100644
--- a/src/cloudflare/resources/api_gateway/user_schemas/operations.py
+++ b/src/cloudflare/resources/api_gateway/user_schemas/operations.py
@@ -17,11 +17,8 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.api_gateway.user_schemas import operation_list_params
from ....types.api_gateway.user_schemas.operation_list_response import OperationListResponse
@@ -47,15 +44,15 @@ def list(
host: List[str] | NotGiven = NOT_GIVEN,
method: List[str] | NotGiven = NOT_GIVEN,
operation_status: Literal["new", "existing"] | NotGiven = NOT_GIVEN,
- page: object | NotGiven = NOT_GIVEN,
- per_page: object | NotGiven = NOT_GIVEN,
+ page: int | NotGiven = NOT_GIVEN,
+ per_page: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncSinglePage[OperationListResponse]:
+ ) -> SyncV4PagePaginationArray[OperationListResponse]:
"""Retrieves all operations from the schema.
Operations that already exist in API
@@ -97,7 +94,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `schema_id` but received {schema_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/api_gateway/user_schemas/{schema_id}/operations",
- page=SyncSinglePage[OperationListResponse],
+ page=SyncV4PagePaginationArray[OperationListResponse],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -139,15 +136,15 @@ def list(
host: List[str] | NotGiven = NOT_GIVEN,
method: List[str] | NotGiven = NOT_GIVEN,
operation_status: Literal["new", "existing"] | NotGiven = NOT_GIVEN,
- page: object | NotGiven = NOT_GIVEN,
- per_page: object | NotGiven = NOT_GIVEN,
+ page: int | NotGiven = NOT_GIVEN,
+ per_page: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[OperationListResponse, AsyncSinglePage[OperationListResponse]]:
+ ) -> AsyncPaginator[OperationListResponse, AsyncV4PagePaginationArray[OperationListResponse]]:
"""Retrieves all operations from the schema.
Operations that already exist in API
@@ -189,7 +186,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `schema_id` but received {schema_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/api_gateway/user_schemas/{schema_id}/operations",
- page=AsyncSinglePage[OperationListResponse],
+ page=AsyncV4PagePaginationArray[OperationListResponse],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
diff --git a/src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py b/src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py
index 25fc670bd03..267ebee4be3 100644
--- a/src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py
+++ b/src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, Type, Mapping, cast
+from typing import Any, Type, Mapping, Optional, cast
from typing_extensions import Literal
import httpx
@@ -31,11 +31,8 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.api_gateway import (
user_schema_get_params,
user_schema_edit_params,
@@ -110,11 +107,10 @@ def create(
}
)
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
- if files:
- # It should be noted that the actual Content-Type header that will be
- # sent to the server will contain a `boundary` parameter, e.g.
- # multipart/form-data; boundary=---abc--
- extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._post(
f"/zones/{zone_id}/api_gateway/user_schemas",
body=maybe_transform(body, user_schema_create_params.UserSchemaCreateParams),
@@ -134,8 +130,8 @@ def list(
*,
zone_id: str,
omit_source: bool | NotGiven = NOT_GIVEN,
- page: object | NotGiven = NOT_GIVEN,
- per_page: object | NotGiven = NOT_GIVEN,
+ page: int | NotGiven = NOT_GIVEN,
+ per_page: int | NotGiven = NOT_GIVEN,
validation_enabled: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -143,7 +139,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncSinglePage[PublicSchema]:
+ ) -> SyncV4PagePaginationArray[PublicSchema]:
"""
Retrieve information about all schemas on a zone
@@ -170,7 +166,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/api_gateway/user_schemas",
- page=SyncSinglePage[PublicSchema],
+ page=SyncV4PagePaginationArray[PublicSchema],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -200,7 +196,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UserSchemaDeleteResponse:
+ ) -> Optional[UserSchemaDeleteResponse]:
"""
Delete a schema
@@ -220,7 +216,7 @@ def delete(
if not schema_id:
raise ValueError(f"Expected a non-empty value for `schema_id` but received {schema_id!r}")
return cast(
- UserSchemaDeleteResponse,
+ Optional[UserSchemaDeleteResponse],
self._delete(
f"/zones/{zone_id}/api_gateway/user_schemas/{schema_id}",
options=make_request_options(
@@ -228,7 +224,7 @@ def delete(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[UserSchemaDeleteResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[UserSchemaDeleteResponse]]._unwrapper,
),
cast_to=cast(
Any, ResultWrapper[UserSchemaDeleteResponse]
@@ -392,11 +388,10 @@ async def create(
}
)
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
- if files:
- # It should be noted that the actual Content-Type header that will be
- # sent to the server will contain a `boundary` parameter, e.g.
- # multipart/form-data; boundary=---abc--
- extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._post(
f"/zones/{zone_id}/api_gateway/user_schemas",
body=await async_maybe_transform(body, user_schema_create_params.UserSchemaCreateParams),
@@ -416,8 +411,8 @@ def list(
*,
zone_id: str,
omit_source: bool | NotGiven = NOT_GIVEN,
- page: object | NotGiven = NOT_GIVEN,
- per_page: object | NotGiven = NOT_GIVEN,
+ page: int | NotGiven = NOT_GIVEN,
+ per_page: int | NotGiven = NOT_GIVEN,
validation_enabled: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -425,7 +420,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[PublicSchema, AsyncSinglePage[PublicSchema]]:
+ ) -> AsyncPaginator[PublicSchema, AsyncV4PagePaginationArray[PublicSchema]]:
"""
Retrieve information about all schemas on a zone
@@ -452,7 +447,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/api_gateway/user_schemas",
- page=AsyncSinglePage[PublicSchema],
+ page=AsyncV4PagePaginationArray[PublicSchema],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -482,7 +477,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UserSchemaDeleteResponse:
+ ) -> Optional[UserSchemaDeleteResponse]:
"""
Delete a schema
@@ -502,7 +497,7 @@ async def delete(
if not schema_id:
raise ValueError(f"Expected a non-empty value for `schema_id` but received {schema_id!r}")
return cast(
- UserSchemaDeleteResponse,
+ Optional[UserSchemaDeleteResponse],
await self._delete(
f"/zones/{zone_id}/api_gateway/user_schemas/{schema_id}",
options=make_request_options(
@@ -510,7 +505,7 @@ async def delete(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[UserSchemaDeleteResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[UserSchemaDeleteResponse]]._unwrapper,
),
cast_to=cast(
Any, ResultWrapper[UserSchemaDeleteResponse]
diff --git a/src/cloudflare/resources/argo/smart_routing.py b/src/cloudflare/resources/argo/smart_routing.py
index 76b1e889a14..66076b40903 100644
--- a/src/cloudflare/resources/argo/smart_routing.py
+++ b/src/cloudflare/resources/argo/smart_routing.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.argo import smart_routing_edit_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.argo.smart_routing_get_response import SmartRoutingGetResponse
from ...types.argo.smart_routing_edit_response import SmartRoutingEditResponse
diff --git a/src/cloudflare/resources/argo/tiered_caching.py b/src/cloudflare/resources/argo/tiered_caching.py
index 978bfc9d2c0..d11257e0a6c 100644
--- a/src/cloudflare/resources/argo/tiered_caching.py
+++ b/src/cloudflare/resources/argo/tiered_caching.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.argo import tiered_caching_edit_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.argo.tiered_caching_get_response import TieredCachingGetResponse
from ...types.argo.tiered_caching_edit_response import TieredCachingEditResponse
diff --git a/src/cloudflare/resources/audit_logs.py b/src/cloudflare/resources/audit_logs.py
index 2d8cd11c4ba..5958b8541e7 100644
--- a/src/cloudflare/resources/audit_logs.py
+++ b/src/cloudflare/resources/audit_logs.py
@@ -19,10 +19,7 @@
async_to_streamed_response_wrapper,
)
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.audit_logs import audit_log_list_params
from ..types.shared.audit_log import AuditLog
diff --git a/src/cloudflare/resources/billing/profiles.py b/src/cloudflare/resources/billing/profiles.py
index 011916b05ba..4ee42cdb407 100644
--- a/src/cloudflare/resources/billing/profiles.py
+++ b/src/cloudflare/resources/billing/profiles.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.billing.profile_get_response import ProfileGetResponse
__all__ = ["ProfilesResource", "AsyncProfilesResource"]
diff --git a/src/cloudflare/resources/bot_management.py b/src/cloudflare/resources/bot_management.py
index d1ee986475a..d0974c04dc4 100644
--- a/src/cloudflare/resources/bot_management.py
+++ b/src/cloudflare/resources/bot_management.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from .._wrappers import ResultWrapper
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.bot_management import bot_management_update_params
from ..types.bot_management.bot_management_get_response import BotManagementGetResponse
from ..types.bot_management.bot_management_update_response import BotManagementUpdateResponse
diff --git a/src/cloudflare/resources/brand_protection.py b/src/cloudflare/resources/brand_protection.py
index f23dee3648c..ce9193d61eb 100644
--- a/src/cloudflare/resources/brand_protection.py
+++ b/src/cloudflare/resources/brand_protection.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from .._wrappers import ResultWrapper
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.brand_protection import brand_protection_submit_params, brand_protection_url_info_params
from ..types.brand_protection.info import Info
from ..types.brand_protection.submit import Submit
diff --git a/src/cloudflare/resources/cache/cache.py b/src/cloudflare/resources/cache/cache.py
index 0b6fc0dd540..ad1bbcf2b6a 100644
--- a/src/cloudflare/resources/cache/cache.py
+++ b/src/cloudflare/resources/cache/cache.py
@@ -38,9 +38,7 @@
CacheReserveResourceWithStreamingResponse,
AsyncCacheReserveResourceWithStreamingResponse,
)
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from .smart_tiered_cache import (
SmartTieredCacheResource,
AsyncSmartTieredCacheResource,
diff --git a/src/cloudflare/resources/cache/cache_reserve.py b/src/cloudflare/resources/cache/cache_reserve.py
index 8a249b50a0a..ad27c95386f 100644
--- a/src/cloudflare/resources/cache/cache_reserve.py
+++ b/src/cloudflare/resources/cache/cache_reserve.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.cache import cache_reserve_edit_params, cache_reserve_clear_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.cache.cache_reserve_get_response import CacheReserveGetResponse
from ...types.cache.cache_reserve_edit_response import CacheReserveEditResponse
from ...types.cache.cache_reserve_clear_response import CacheReserveClearResponse
diff --git a/src/cloudflare/resources/cache/regional_tiered_cache.py b/src/cloudflare/resources/cache/regional_tiered_cache.py
index 4ccfd7c49cc..ad130a1e6a3 100644
--- a/src/cloudflare/resources/cache/regional_tiered_cache.py
+++ b/src/cloudflare/resources/cache/regional_tiered_cache.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.cache import regional_tiered_cache_edit_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.cache.regional_tiered_cache_get_response import RegionalTieredCacheGetResponse
from ...types.cache.regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse
diff --git a/src/cloudflare/resources/cache/smart_tiered_cache.py b/src/cloudflare/resources/cache/smart_tiered_cache.py
index 28189fb0fe5..44e94e58319 100644
--- a/src/cloudflare/resources/cache/smart_tiered_cache.py
+++ b/src/cloudflare/resources/cache/smart_tiered_cache.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.cache import smart_tiered_cache_edit_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.cache.smart_tiered_cache_get_response import SmartTieredCacheGetResponse
from ...types.cache.smart_tiered_cache_edit_response import SmartTieredCacheEditResponse
from ...types.cache.smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse
diff --git a/src/cloudflare/resources/cache/variants.py b/src/cloudflare/resources/cache/variants.py
index 3c7f760c774..bf705271620 100644
--- a/src/cloudflare/resources/cache/variants.py
+++ b/src/cloudflare/resources/cache/variants.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.cache import variant_edit_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.cache.cache_variant import CacheVariant
from ...types.cache.variant_get_response import VariantGetResponse
from ...types.cache.variant_edit_response import VariantEditResponse
diff --git a/src/cloudflare/resources/calls/calls.py b/src/cloudflare/resources/calls/calls.py
index 17455714979..2e6a89aaf41 100644
--- a/src/cloudflare/resources/calls/calls.py
+++ b/src/cloudflare/resources/calls/calls.py
@@ -31,10 +31,7 @@
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.calls import call_create_params, call_update_params
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.calls.calls_app import CallsApp
from ...types.calls.call_list_response import CallListResponse
from ...types.calls.calls_app_with_secret import CallsAppWithSecret
diff --git a/src/cloudflare/resources/calls/turn/keys.py b/src/cloudflare/resources/calls/turn/keys.py
index f87b1c8c6f4..bd7dd6712bd 100644
--- a/src/cloudflare/resources/calls/turn/keys.py
+++ b/src/cloudflare/resources/calls/turn/keys.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.calls.turn import key_create_params, key_update_params
from ....types.calls.turn.key_get_response import KeyGetResponse
from ....types.calls.turn.key_list_response import KeyListResponse
diff --git a/src/cloudflare/resources/certificate_authorities/hostname_associations.py b/src/cloudflare/resources/certificate_authorities/hostname_associations.py
index 4867abd374d..486b397704e 100644
--- a/src/cloudflare/resources/certificate_authorities/hostname_associations.py
+++ b/src/cloudflare/resources/certificate_authorities/hostname_associations.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.certificate_authorities import hostname_association_get_params, hostname_association_update_params
from ...types.certificate_authorities.hostname_association import HostnameAssociation
from ...types.certificate_authorities.hostname_association_get_response import HostnameAssociationGetResponse
diff --git a/src/cloudflare/resources/challenges/widgets.py b/src/cloudflare/resources/challenges/widgets.py
index 89830325d3c..95cf49944dc 100644
--- a/src/cloudflare/resources/challenges/widgets.py
+++ b/src/cloudflare/resources/challenges/widgets.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.challenges import (
widget_list_params,
widget_create_params,
diff --git a/src/cloudflare/resources/client_certificates.py b/src/cloudflare/resources/client_certificates.py
index f8a069fc5a7..238739406c6 100644
--- a/src/cloudflare/resources/client_certificates.py
+++ b/src/cloudflare/resources/client_certificates.py
@@ -22,10 +22,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.client_certificates import client_certificate_list_params, client_certificate_create_params
from ..types.client_certificates.client_certificate import ClientCertificate
diff --git a/src/cloudflare/resources/cloud_connector/__init__.py b/src/cloudflare/resources/cloud_connector/__init__.py
new file mode 100644
index 00000000000..da4c14aec1c
--- /dev/null
+++ b/src/cloudflare/resources/cloud_connector/__init__.py
@@ -0,0 +1,33 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from .rules import (
+ RulesResource,
+ AsyncRulesResource,
+ RulesResourceWithRawResponse,
+ AsyncRulesResourceWithRawResponse,
+ RulesResourceWithStreamingResponse,
+ AsyncRulesResourceWithStreamingResponse,
+)
+from .cloud_connector import (
+ CloudConnectorResource,
+ AsyncCloudConnectorResource,
+ CloudConnectorResourceWithRawResponse,
+ AsyncCloudConnectorResourceWithRawResponse,
+ CloudConnectorResourceWithStreamingResponse,
+ AsyncCloudConnectorResourceWithStreamingResponse,
+)
+
+__all__ = [
+ "RulesResource",
+ "AsyncRulesResource",
+ "RulesResourceWithRawResponse",
+ "AsyncRulesResourceWithRawResponse",
+ "RulesResourceWithStreamingResponse",
+ "AsyncRulesResourceWithStreamingResponse",
+ "CloudConnectorResource",
+ "AsyncCloudConnectorResource",
+ "CloudConnectorResourceWithRawResponse",
+ "AsyncCloudConnectorResourceWithRawResponse",
+ "CloudConnectorResourceWithStreamingResponse",
+ "AsyncCloudConnectorResourceWithStreamingResponse",
+]
diff --git a/src/cloudflare/resources/cloud_connector/cloud_connector.py b/src/cloudflare/resources/cloud_connector/cloud_connector.py
new file mode 100644
index 00000000000..f95e76646df
--- /dev/null
+++ b/src/cloudflare/resources/cloud_connector/cloud_connector.py
@@ -0,0 +1,80 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from .rules import (
+ RulesResource,
+ AsyncRulesResource,
+ RulesResourceWithRawResponse,
+ AsyncRulesResourceWithRawResponse,
+ RulesResourceWithStreamingResponse,
+ AsyncRulesResourceWithStreamingResponse,
+)
+from ..._compat import cached_property
+from ..._resource import SyncAPIResource, AsyncAPIResource
+
+__all__ = ["CloudConnectorResource", "AsyncCloudConnectorResource"]
+
+
+class CloudConnectorResource(SyncAPIResource):
+ @cached_property
+ def rules(self) -> RulesResource:
+ return RulesResource(self._client)
+
+ @cached_property
+ def with_raw_response(self) -> CloudConnectorResourceWithRawResponse:
+ return CloudConnectorResourceWithRawResponse(self)
+
+ @cached_property
+ def with_streaming_response(self) -> CloudConnectorResourceWithStreamingResponse:
+ return CloudConnectorResourceWithStreamingResponse(self)
+
+
+class AsyncCloudConnectorResource(AsyncAPIResource):
+ @cached_property
+ def rules(self) -> AsyncRulesResource:
+ return AsyncRulesResource(self._client)
+
+ @cached_property
+ def with_raw_response(self) -> AsyncCloudConnectorResourceWithRawResponse:
+ return AsyncCloudConnectorResourceWithRawResponse(self)
+
+ @cached_property
+ def with_streaming_response(self) -> AsyncCloudConnectorResourceWithStreamingResponse:
+ return AsyncCloudConnectorResourceWithStreamingResponse(self)
+
+
+class CloudConnectorResourceWithRawResponse:
+ def __init__(self, cloud_connector: CloudConnectorResource) -> None:
+ self._cloud_connector = cloud_connector
+
+ @cached_property
+ def rules(self) -> RulesResourceWithRawResponse:
+ return RulesResourceWithRawResponse(self._cloud_connector.rules)
+
+
+class AsyncCloudConnectorResourceWithRawResponse:
+ def __init__(self, cloud_connector: AsyncCloudConnectorResource) -> None:
+ self._cloud_connector = cloud_connector
+
+ @cached_property
+ def rules(self) -> AsyncRulesResourceWithRawResponse:
+ return AsyncRulesResourceWithRawResponse(self._cloud_connector.rules)
+
+
+class CloudConnectorResourceWithStreamingResponse:
+ def __init__(self, cloud_connector: CloudConnectorResource) -> None:
+ self._cloud_connector = cloud_connector
+
+ @cached_property
+ def rules(self) -> RulesResourceWithStreamingResponse:
+ return RulesResourceWithStreamingResponse(self._cloud_connector.rules)
+
+
+class AsyncCloudConnectorResourceWithStreamingResponse:
+ def __init__(self, cloud_connector: AsyncCloudConnectorResource) -> None:
+ self._cloud_connector = cloud_connector
+
+ @cached_property
+ def rules(self) -> AsyncRulesResourceWithStreamingResponse:
+ return AsyncRulesResourceWithStreamingResponse(self._cloud_connector.rules)
diff --git a/src/cloudflare/resources/zones/settings/http2.py b/src/cloudflare/resources/cloud_connector/rules.py
similarity index 55%
rename from src/cloudflare/resources/zones/settings/http2.py
rename to src/cloudflare/resources/cloud_connector/rules.py
index 8b545d2e20d..0b741471554 100644
--- a/src/cloudflare/resources/zones/settings/http2.py
+++ b/src/cloudflare/resources/cloud_connector/rules.py
@@ -2,62 +2,61 @@
from __future__ import annotations
-from typing import Type, Optional, cast
-from typing_extensions import Literal
+from typing import Type, Iterable, Optional, cast
import httpx
-from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
-from ...._utils import (
+from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
+from ..._utils import (
maybe_transform,
async_maybe_transform,
)
-from ...._compat import cached_property
-from ...._resource import SyncAPIResource, AsyncAPIResource
-from ...._response import (
+from ..._compat import cached_property
+from ..._resource import SyncAPIResource, AsyncAPIResource
+from ..._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
-from ....types.zones.settings import http2_edit_params
-from ....types.zones.settings.http2 import HTTP2
+from ..._wrappers import ResultWrapper
+from ...pagination import SyncSinglePage, AsyncSinglePage
+from ..._base_client import AsyncPaginator, make_request_options
+from ...types.cloud_connector import rule_update_params
+from ...types.cloud_connector.rule_list_response import RuleListResponse
+from ...types.cloud_connector.rule_update_response import RuleUpdateResponse
-__all__ = ["HTTP2Resource", "AsyncHTTP2Resource"]
+__all__ = ["RulesResource", "AsyncRulesResource"]
-class HTTP2Resource(SyncAPIResource):
+class RulesResource(SyncAPIResource):
@cached_property
- def with_raw_response(self) -> HTTP2ResourceWithRawResponse:
- return HTTP2ResourceWithRawResponse(self)
+ def with_raw_response(self) -> RulesResourceWithRawResponse:
+ return RulesResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> HTTP2ResourceWithStreamingResponse:
- return HTTP2ResourceWithStreamingResponse(self)
+ def with_streaming_response(self) -> RulesResourceWithStreamingResponse:
+ return RulesResourceWithStreamingResponse(self)
- def edit(
+ def update(
self,
*,
zone_id: str,
- value: Literal["on", "off"],
+ body: Iterable[rule_update_params.Body],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[HTTP2]:
+ ) -> Optional[RuleUpdateResponse]:
"""
- Value of the HTTP2 setting.
+ Put Rules
Args:
zone_id: Identifier
- value: Value of the HTTP2 setting.
+ body: List of Cloud Connector rules
extra_headers: Send extra headers
@@ -69,20 +68,20 @@ def edit(
"""
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
- return self._patch(
- f"/zones/{zone_id}/settings/http2",
- body=maybe_transform({"value": value}, http2_edit_params.HTTP2EditParams),
+ return self._put(
+ f"/zones/{zone_id}/cloud_connector/rules",
+ body=maybe_transform(body, rule_update_params.RuleUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[HTTP2]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RuleUpdateResponse]]._unwrapper,
),
- cast_to=cast(Type[Optional[HTTP2]], ResultWrapper[HTTP2]),
+ cast_to=cast(Type[Optional[RuleUpdateResponse]], ResultWrapper[RuleUpdateResponse]),
)
- def get(
+ def list(
self,
*,
zone_id: str,
@@ -92,9 +91,9 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[HTTP2]:
+ ) -> SyncSinglePage[RuleListResponse]:
"""
- Value of the HTTP2 setting.
+ Rules
Args:
zone_id: Identifier
@@ -109,47 +108,44 @@ def get(
"""
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
- return self._get(
- f"/zones/{zone_id}/settings/http2",
+ return self._get_api_list(
+ f"/zones/{zone_id}/cloud_connector/rules",
+ page=SyncSinglePage[RuleListResponse],
options=make_request_options(
- extra_headers=extra_headers,
- extra_query=extra_query,
- extra_body=extra_body,
- timeout=timeout,
- post_parser=ResultWrapper[Optional[HTTP2]]._unwrapper,
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=cast(Type[Optional[HTTP2]], ResultWrapper[HTTP2]),
+ model=RuleListResponse,
)
-class AsyncHTTP2Resource(AsyncAPIResource):
+class AsyncRulesResource(AsyncAPIResource):
@cached_property
- def with_raw_response(self) -> AsyncHTTP2ResourceWithRawResponse:
- return AsyncHTTP2ResourceWithRawResponse(self)
+ def with_raw_response(self) -> AsyncRulesResourceWithRawResponse:
+ return AsyncRulesResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> AsyncHTTP2ResourceWithStreamingResponse:
- return AsyncHTTP2ResourceWithStreamingResponse(self)
+ def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse:
+ return AsyncRulesResourceWithStreamingResponse(self)
- async def edit(
+ async def update(
self,
*,
zone_id: str,
- value: Literal["on", "off"],
+ body: Iterable[rule_update_params.Body],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[HTTP2]:
+ ) -> Optional[RuleUpdateResponse]:
"""
- Value of the HTTP2 setting.
+ Put Rules
Args:
zone_id: Identifier
- value: Value of the HTTP2 setting.
+ body: List of Cloud Connector rules
extra_headers: Send extra headers
@@ -161,20 +157,20 @@ async def edit(
"""
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
- return await self._patch(
- f"/zones/{zone_id}/settings/http2",
- body=await async_maybe_transform({"value": value}, http2_edit_params.HTTP2EditParams),
+ return await self._put(
+ f"/zones/{zone_id}/cloud_connector/rules",
+ body=await async_maybe_transform(body, rule_update_params.RuleUpdateParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Optional[HTTP2]]._unwrapper,
+ post_parser=ResultWrapper[Optional[RuleUpdateResponse]]._unwrapper,
),
- cast_to=cast(Type[Optional[HTTP2]], ResultWrapper[HTTP2]),
+ cast_to=cast(Type[Optional[RuleUpdateResponse]], ResultWrapper[RuleUpdateResponse]),
)
- async def get(
+ def list(
self,
*,
zone_id: str,
@@ -184,9 +180,9 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[HTTP2]:
+ ) -> AsyncPaginator[RuleListResponse, AsyncSinglePage[RuleListResponse]]:
"""
- Value of the HTTP2 setting.
+ Rules
Args:
zone_id: Identifier
@@ -201,62 +197,59 @@ async def get(
"""
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
- return await self._get(
- f"/zones/{zone_id}/settings/http2",
+ return self._get_api_list(
+ f"/zones/{zone_id}/cloud_connector/rules",
+ page=AsyncSinglePage[RuleListResponse],
options=make_request_options(
- extra_headers=extra_headers,
- extra_query=extra_query,
- extra_body=extra_body,
- timeout=timeout,
- post_parser=ResultWrapper[Optional[HTTP2]]._unwrapper,
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=cast(Type[Optional[HTTP2]], ResultWrapper[HTTP2]),
+ model=RuleListResponse,
)
-class HTTP2ResourceWithRawResponse:
- def __init__(self, http2: HTTP2Resource) -> None:
- self._http2 = http2
+class RulesResourceWithRawResponse:
+ def __init__(self, rules: RulesResource) -> None:
+ self._rules = rules
- self.edit = to_raw_response_wrapper(
- http2.edit,
+ self.update = to_raw_response_wrapper(
+ rules.update,
)
- self.get = to_raw_response_wrapper(
- http2.get,
+ self.list = to_raw_response_wrapper(
+ rules.list,
)
-class AsyncHTTP2ResourceWithRawResponse:
- def __init__(self, http2: AsyncHTTP2Resource) -> None:
- self._http2 = http2
+class AsyncRulesResourceWithRawResponse:
+ def __init__(self, rules: AsyncRulesResource) -> None:
+ self._rules = rules
- self.edit = async_to_raw_response_wrapper(
- http2.edit,
+ self.update = async_to_raw_response_wrapper(
+ rules.update,
)
- self.get = async_to_raw_response_wrapper(
- http2.get,
+ self.list = async_to_raw_response_wrapper(
+ rules.list,
)
-class HTTP2ResourceWithStreamingResponse:
- def __init__(self, http2: HTTP2Resource) -> None:
- self._http2 = http2
+class RulesResourceWithStreamingResponse:
+ def __init__(self, rules: RulesResource) -> None:
+ self._rules = rules
- self.edit = to_streamed_response_wrapper(
- http2.edit,
+ self.update = to_streamed_response_wrapper(
+ rules.update,
)
- self.get = to_streamed_response_wrapper(
- http2.get,
+ self.list = to_streamed_response_wrapper(
+ rules.list,
)
-class AsyncHTTP2ResourceWithStreamingResponse:
- def __init__(self, http2: AsyncHTTP2Resource) -> None:
- self._http2 = http2
+class AsyncRulesResourceWithStreamingResponse:
+ def __init__(self, rules: AsyncRulesResource) -> None:
+ self._rules = rules
- self.edit = async_to_streamed_response_wrapper(
- http2.edit,
+ self.update = async_to_streamed_response_wrapper(
+ rules.update,
)
- self.get = async_to_streamed_response_wrapper(
- http2.get,
+ self.list = async_to_streamed_response_wrapper(
+ rules.list,
)
diff --git a/src/cloudflare/resources/cloudforce_one/requests/message.py b/src/cloudflare/resources/cloudforce_one/requests/message.py
index 177e2c5b099..84388261101 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/message.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/message.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.cloudforce_one.requests import message_get_params, message_create_params, message_update_params
from ....types.cloudforce_one.requests.message import Message
from ....types.cloudforce_one.requests.message_get_response import MessageGetResponse
diff --git a/src/cloudflare/resources/cloudforce_one/requests/priority.py b/src/cloudflare/resources/cloudforce_one/requests/priority.py
index 243e43f789b..956da5319ea 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/priority.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/priority.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.cloudforce_one.item import Item
from ....types.cloudforce_one.quota import Quota
from ....types.cloudforce_one.requests import priority_create_params, priority_update_params
diff --git a/src/cloudflare/resources/cloudforce_one/requests/requests.py b/src/cloudflare/resources/cloudforce_one/requests/requests.py
index 267e04595d6..8d16022f5e3 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/requests.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/requests.py
@@ -39,10 +39,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.cloudforce_one import request_list_params, request_create_params, request_update_params
from ....types.cloudforce_one.item import Item
from ....types.cloudforce_one.quota import Quota
diff --git a/src/cloudflare/resources/custom_certificates/custom_certificates.py b/src/cloudflare/resources/custom_certificates/custom_certificates.py
index a3deb798257..2dc84158685 100644
--- a/src/cloudflare/resources/custom_certificates/custom_certificates.py
+++ b/src/cloudflare/resources/custom_certificates/custom_certificates.py
@@ -30,10 +30,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.custom_hostnames import BundleMethod
from ...types.custom_certificates import (
custom_certificate_edit_params,
diff --git a/src/cloudflare/resources/custom_certificates/prioritize.py b/src/cloudflare/resources/custom_certificates/prioritize.py
index 1b4813ec49d..c16c625fb77 100644
--- a/src/cloudflare/resources/custom_certificates/prioritize.py
+++ b/src/cloudflare/resources/custom_certificates/prioritize.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.custom_certificates import prioritize_update_params
from ...types.custom_certificates.prioritize_update_response import PrioritizeUpdateResponse
diff --git a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
index 8ed92ce708f..64f36eb8d6e 100644
--- a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
+++ b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from .fallback_origin import (
FallbackOriginResource,
AsyncFallbackOriginResource,
diff --git a/src/cloudflare/resources/custom_hostnames/fallback_origin.py b/src/cloudflare/resources/custom_hostnames/fallback_origin.py
index 8ca189ddf97..cfaf566b272 100644
--- a/src/cloudflare/resources/custom_hostnames/fallback_origin.py
+++ b/src/cloudflare/resources/custom_hostnames/fallback_origin.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.custom_hostnames import fallback_origin_update_params
from ...types.custom_hostnames.fallback_origin_get_response import FallbackOriginGetResponse
from ...types.custom_hostnames.fallback_origin_delete_response import FallbackOriginDeleteResponse
diff --git a/src/cloudflare/resources/custom_nameservers.py b/src/cloudflare/resources/custom_nameservers.py
index e0aa1a8fee7..29c581ade49 100644
--- a/src/cloudflare/resources/custom_nameservers.py
+++ b/src/cloudflare/resources/custom_nameservers.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from .._wrappers import ResultWrapper
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.custom_nameservers import custom_nameserver_create_params
from ..types.custom_nameservers.custom_nameserver import CustomNameserver
from ..types.custom_nameservers.custom_nameserver_get_response import CustomNameserverGetResponse
diff --git a/src/cloudflare/resources/d1/database.py b/src/cloudflare/resources/d1/database.py
index d4b4ca58763..14a2dfce413 100644
--- a/src/cloudflare/resources/d1/database.py
+++ b/src/cloudflare/resources/d1/database.py
@@ -3,6 +3,7 @@
from __future__ import annotations
from typing import Any, List, Type, cast
+from typing_extensions import Literal
import httpx
@@ -23,10 +24,7 @@
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...types.d1.d1 import D1
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.d1.database_raw_response import DatabaseRawResponse
from ...types.d1.database_list_response import DatabaseListResponse
from ...types.d1.database_query_response import DatabaseQueryResponse
@@ -50,6 +48,7 @@ def create(
*,
account_id: str,
name: str,
+ primary_location_hint: Literal["wnam", "enam", "weur", "eeur", "apac", "oc"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -63,6 +62,9 @@ def create(
Args:
account_id: Account identifier tag.
+ primary_location_hint: Specify the region to create the D1 primary, if available. If this option is
+ omitted, the D1 will be created as close as possible to the current user.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -75,7 +77,13 @@ def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._post(
f"/accounts/{account_id}/d1/database",
- body=maybe_transform({"name": name}, database_create_params.DatabaseCreateParams),
+ body=maybe_transform(
+ {
+ "name": name,
+ "primary_location_hint": primary_location_hint,
+ },
+ database_create_params.DatabaseCreateParams,
+ ),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -251,6 +259,9 @@ def query(
Args:
account_id: Account identifier tag.
+ sql: Your SQL query. Supports multiple statements, joined by semicolons, which will
+ be executed as a batch.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -304,6 +315,9 @@ def raw(
Args:
account_id: Account identifier tag.
+ sql: Your SQL query. Supports multiple statements, joined by semicolons, which will
+ be executed as a batch.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -350,6 +364,7 @@ async def create(
*,
account_id: str,
name: str,
+ primary_location_hint: Literal["wnam", "enam", "weur", "eeur", "apac", "oc"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -363,6 +378,9 @@ async def create(
Args:
account_id: Account identifier tag.
+ primary_location_hint: Specify the region to create the D1 primary, if available. If this option is
+ omitted, the D1 will be created as close as possible to the current user.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -375,7 +393,13 @@ async def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return await self._post(
f"/accounts/{account_id}/d1/database",
- body=await async_maybe_transform({"name": name}, database_create_params.DatabaseCreateParams),
+ body=await async_maybe_transform(
+ {
+ "name": name,
+ "primary_location_hint": primary_location_hint,
+ },
+ database_create_params.DatabaseCreateParams,
+ ),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -551,6 +575,9 @@ async def query(
Args:
account_id: Account identifier tag.
+ sql: Your SQL query. Supports multiple statements, joined by semicolons, which will
+ be executed as a batch.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -604,6 +631,9 @@ async def raw(
Args:
account_id: Account identifier tag.
+ sql: Your SQL query. Supports multiple statements, joined by semicolons, which will
+ be executed as a batch.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
diff --git a/src/cloudflare/resources/dcv_delegation.py b/src/cloudflare/resources/dcv_delegation.py
index 18aa2d28f43..127c13a15c5 100644
--- a/src/cloudflare/resources/dcv_delegation.py
+++ b/src/cloudflare/resources/dcv_delegation.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from .._wrappers import ResultWrapper
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.dcv_delegation.dcv_delegation_uuid import DCVDelegationUUID
__all__ = ["DCVDelegationResource", "AsyncDCVDelegationResource"]
diff --git a/src/cloudflare/resources/diagnostics/traceroutes.py b/src/cloudflare/resources/diagnostics/traceroutes.py
index 78ec1ca7d88..61741357995 100644
--- a/src/cloudflare/resources/diagnostics/traceroutes.py
+++ b/src/cloudflare/resources/diagnostics/traceroutes.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.diagnostics import traceroute_create_params
from ...types.diagnostics.traceroute_create_response import TracerouteCreateResponse
diff --git a/src/cloudflare/resources/dns/analytics/reports/bytimes.py b/src/cloudflare/resources/dns/analytics/reports/bytimes.py
index 18e924c6fb2..2832c5b6782 100644
--- a/src/cloudflare/resources/dns/analytics/reports/bytimes.py
+++ b/src/cloudflare/resources/dns/analytics/reports/bytimes.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.dns.firewall import Delta
from .....types.dns.firewall.delta import Delta
from .....types.dns.analytics.reports import bytime_get_params
diff --git a/src/cloudflare/resources/dns/analytics/reports/reports.py b/src/cloudflare/resources/dns/analytics/reports/reports.py
index 7649e01724f..6faf0eead08 100644
--- a/src/cloudflare/resources/dns/analytics/reports/reports.py
+++ b/src/cloudflare/resources/dns/analytics/reports/reports.py
@@ -29,9 +29,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.dns.analytics import report_get_params
from .....types.dns.analytics.report import Report
diff --git a/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py b/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py
index de7eb9723da..f11dd11b4ad 100644
--- a/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py
+++ b/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.dns.firewall import Delta
from ......types.dns.firewall.delta import Delta
from ......types.dns.analytics.reports.by_time import ByTime
diff --git a/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py b/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py
index 09693f73830..387bdb32beb 100644
--- a/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py
+++ b/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py
@@ -29,9 +29,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.dns.analytics.report import Report
from ......types.dns.firewall.analytics import report_get_params
diff --git a/src/cloudflare/resources/dns/firewall/firewall.py b/src/cloudflare/resources/dns/firewall/firewall.py
index dd82f5448c3..608e46bb270 100644
--- a/src/cloudflare/resources/dns/firewall/firewall.py
+++ b/src/cloudflare/resources/dns/firewall/firewall.py
@@ -30,10 +30,7 @@
from ...._wrappers import ResultWrapper
from ....types.dns import firewall_edit_params, firewall_list_params, firewall_create_params
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource
from ....types.dns.firewall.firewall import Firewall
from ....types.dns.firewall_ips_param import FirewallIPsParam
@@ -77,7 +74,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Firewall:
+ ) -> Optional[Firewall]:
"""
Create a configured DNS Firewall Cluster.
@@ -92,11 +89,16 @@ def create(
ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
- maximum_cache_ttl: Maximum DNS Cache TTL.
+ maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
+ of caching between DNS Firewall and the upstream servers. Higher TTLs will be
+ decreased to the maximum defined here for caching purposes.
- minimum_cache_ttl: Minimum DNS Cache TTL.
+ minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
+ of caching between DNS Firewall and the upstream servers. Lower TTLs will be
+ increased to the minimum defined here for caching purposes.
- negative_cache_ttl: Negative DNS Cache TTL.
+ negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
+ negative responses (e.g., NXDOMAIN) from the upstream servers.
ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
the upstream nameservers configured on the cluster).
@@ -136,9 +138,9 @@ def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Firewall]._unwrapper,
+ post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
),
- cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
+ cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
)
def list(
@@ -204,7 +206,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> FirewallDeleteResponse:
+ ) -> Optional[FirewallDeleteResponse]:
"""
Delete a configured DNS Firewall Cluster.
@@ -232,9 +234,9 @@ def delete(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[FirewallDeleteResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[FirewallDeleteResponse]]._unwrapper,
),
- cast_to=cast(Type[FirewallDeleteResponse], ResultWrapper[FirewallDeleteResponse]),
+ cast_to=cast(Type[Optional[FirewallDeleteResponse]], ResultWrapper[FirewallDeleteResponse]),
)
def edit(
@@ -242,6 +244,7 @@ def edit(
dns_firewall_id: str,
*,
account_id: str,
+ id: str,
deprecate_any_requests: bool,
dns_firewall_ips: List[FirewallIPsParam],
ecs_fallback: bool,
@@ -259,7 +262,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Firewall:
+ ) -> Optional[Firewall]:
"""
Modify a DNS Firewall Cluster configuration.
@@ -268,19 +271,26 @@ def edit(
dns_firewall_id: Identifier
+ id: Identifier
+
deprecate_any_requests: Deprecate the response to ANY requests.
ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
- maximum_cache_ttl: Maximum DNS Cache TTL.
+ maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
+ of caching between DNS Firewall and the upstream servers. Higher TTLs will be
+ decreased to the maximum defined here for caching purposes.
- minimum_cache_ttl: Minimum DNS Cache TTL.
+ minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
+ of caching between DNS Firewall and the upstream servers. Lower TTLs will be
+ increased to the minimum defined here for caching purposes.
name: DNS Firewall Cluster Name.
attack_mitigation: Attack mitigation settings.
- negative_cache_ttl: Negative DNS Cache TTL.
+ negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
+ negative responses (e.g., NXDOMAIN) from the upstream servers.
ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
the upstream nameservers configured on the cluster).
@@ -304,6 +314,7 @@ def edit(
f"/accounts/{account_id}/dns_firewall/{dns_firewall_id}",
body=maybe_transform(
{
+ "id": id,
"deprecate_any_requests": deprecate_any_requests,
"dns_firewall_ips": dns_firewall_ips,
"ecs_fallback": ecs_fallback,
@@ -323,9 +334,9 @@ def edit(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Firewall]._unwrapper,
+ post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
),
- cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
+ cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
)
def get(
@@ -339,7 +350,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Firewall:
+ ) -> Optional[Firewall]:
"""
Show a single configured DNS Firewall cluster for an account.
@@ -367,9 +378,9 @@ def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Firewall]._unwrapper,
+ post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
),
- cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
+ cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
)
@@ -406,7 +417,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Firewall:
+ ) -> Optional[Firewall]:
"""
Create a configured DNS Firewall Cluster.
@@ -421,11 +432,16 @@ async def create(
ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
- maximum_cache_ttl: Maximum DNS Cache TTL.
+ maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
+ of caching between DNS Firewall and the upstream servers. Higher TTLs will be
+ decreased to the maximum defined here for caching purposes.
- minimum_cache_ttl: Minimum DNS Cache TTL.
+ minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
+ of caching between DNS Firewall and the upstream servers. Lower TTLs will be
+ increased to the minimum defined here for caching purposes.
- negative_cache_ttl: Negative DNS Cache TTL.
+ negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
+ negative responses (e.g., NXDOMAIN) from the upstream servers.
ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
the upstream nameservers configured on the cluster).
@@ -465,9 +481,9 @@ async def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Firewall]._unwrapper,
+ post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
),
- cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
+ cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
)
def list(
@@ -533,7 +549,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> FirewallDeleteResponse:
+ ) -> Optional[FirewallDeleteResponse]:
"""
Delete a configured DNS Firewall Cluster.
@@ -561,9 +577,9 @@ async def delete(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[FirewallDeleteResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[FirewallDeleteResponse]]._unwrapper,
),
- cast_to=cast(Type[FirewallDeleteResponse], ResultWrapper[FirewallDeleteResponse]),
+ cast_to=cast(Type[Optional[FirewallDeleteResponse]], ResultWrapper[FirewallDeleteResponse]),
)
async def edit(
@@ -571,6 +587,7 @@ async def edit(
dns_firewall_id: str,
*,
account_id: str,
+ id: str,
deprecate_any_requests: bool,
dns_firewall_ips: List[FirewallIPsParam],
ecs_fallback: bool,
@@ -588,7 +605,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Firewall:
+ ) -> Optional[Firewall]:
"""
Modify a DNS Firewall Cluster configuration.
@@ -597,19 +614,26 @@ async def edit(
dns_firewall_id: Identifier
+ id: Identifier
+
deprecate_any_requests: Deprecate the response to ANY requests.
ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
- maximum_cache_ttl: Maximum DNS Cache TTL.
+ maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
+ of caching between DNS Firewall and the upstream servers. Higher TTLs will be
+ decreased to the maximum defined here for caching purposes.
- minimum_cache_ttl: Minimum DNS Cache TTL.
+ minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
+ of caching between DNS Firewall and the upstream servers. Lower TTLs will be
+ increased to the minimum defined here for caching purposes.
name: DNS Firewall Cluster Name.
attack_mitigation: Attack mitigation settings.
- negative_cache_ttl: Negative DNS Cache TTL.
+ negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
+ negative responses (e.g., NXDOMAIN) from the upstream servers.
ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
the upstream nameservers configured on the cluster).
@@ -633,6 +657,7 @@ async def edit(
f"/accounts/{account_id}/dns_firewall/{dns_firewall_id}",
body=await async_maybe_transform(
{
+ "id": id,
"deprecate_any_requests": deprecate_any_requests,
"dns_firewall_ips": dns_firewall_ips,
"ecs_fallback": ecs_fallback,
@@ -652,9 +677,9 @@ async def edit(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Firewall]._unwrapper,
+ post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
),
- cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
+ cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
)
async def get(
@@ -668,7 +693,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Firewall:
+ ) -> Optional[Firewall]:
"""
Show a single configured DNS Firewall cluster for an account.
@@ -696,9 +721,9 @@ async def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[Firewall]._unwrapper,
+ post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
),
- cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
+ cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
)
diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py
index 078bf19d50e..feb3b54b6e5 100644
--- a/src/cloudflare/resources/dns/records.py
+++ b/src/cloudflare/resources/dns/records.py
@@ -31,10 +31,7 @@
record_update_params,
)
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.dns.record import Record
from ...types.dns.ttl_param import TTLParam
from ...types.dns.record_tags import RecordTags
@@ -4326,6 +4323,10 @@ def import_(
"""
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._post(
f"/zones/{zone_id}/dns_records/import",
body=maybe_transform(
@@ -8668,6 +8669,10 @@ async def import_(
"""
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._post(
f"/zones/{zone_id}/dns_records/import",
body=await async_maybe_transform(
diff --git a/src/cloudflare/resources/dns/settings.py b/src/cloudflare/resources/dns/settings.py
index 635b4b77250..097801053cc 100644
--- a/src/cloudflare/resources/dns/settings.py
+++ b/src/cloudflare/resources/dns/settings.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.dns import setting_edit_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.dns.dns_setting_param import DNSSettingParam
from ...types.dns.setting_get_response import SettingGetResponse
from ...types.dns.setting_edit_response import SettingEditResponse
diff --git a/src/cloudflare/resources/dnssec.py b/src/cloudflare/resources/dnssec.py
index 54a5ec093ab..577e7edfcf0 100644
--- a/src/cloudflare/resources/dnssec.py
+++ b/src/cloudflare/resources/dnssec.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from .._wrappers import ResultWrapper
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.dnssec import dnssec_edit_params
from ..types.dnssec.dnssec import DNSSEC
from ..types.dnssec.dnssec_delete_response import DNSSECDeleteResponse
diff --git a/src/cloudflare/resources/durable_objects/namespaces/namespaces.py b/src/cloudflare/resources/durable_objects/namespaces/namespaces.py
index 7c8870332a3..c663cfe151a 100644
--- a/src/cloudflare/resources/durable_objects/namespaces/namespaces.py
+++ b/src/cloudflare/resources/durable_objects/namespaces/namespaces.py
@@ -22,10 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.durable_objects.namespace import Namespace
__all__ = ["NamespacesResource", "AsyncNamespacesResource"]
diff --git a/src/cloudflare/resources/durable_objects/namespaces/objects.py b/src/cloudflare/resources/durable_objects/namespaces/objects.py
index 0c05a216f24..8203cafb04c 100644
--- a/src/cloudflare/resources/durable_objects/namespaces/objects.py
+++ b/src/cloudflare/resources/durable_objects/namespaces/objects.py
@@ -15,10 +15,7 @@
async_to_streamed_response_wrapper,
)
from ....pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.durable_objects.namespaces import object_list_params
from ....types.durable_objects.namespaces.durable_object import DurableObject
diff --git a/src/cloudflare/resources/email_routing/addresses.py b/src/cloudflare/resources/email_routing/addresses.py
index 2ee58159aa2..24d0ccf8fee 100644
--- a/src/cloudflare/resources/email_routing/addresses.py
+++ b/src/cloudflare/resources/email_routing/addresses.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.email_routing import address_list_params, address_create_params
from ...types.email_routing.address import Address
diff --git a/src/cloudflare/resources/email_routing/dns.py b/src/cloudflare/resources/email_routing/dns.py
index 7e438437227..52ed8de53e3 100644
--- a/src/cloudflare/resources/email_routing/dns.py
+++ b/src/cloudflare/resources/email_routing/dns.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.email_routing.dns_get_response import DNSGetResponse
__all__ = ["DNSResource", "AsyncDNSResource"]
diff --git a/src/cloudflare/resources/email_routing/email_routing.py b/src/cloudflare/resources/email_routing/email_routing.py
index 52ff5a1758d..a784226f1f4 100644
--- a/src/cloudflare/resources/email_routing/email_routing.py
+++ b/src/cloudflare/resources/email_routing/email_routing.py
@@ -45,9 +45,7 @@
)
from ..._wrappers import ResultWrapper
from .rules.rules import RulesResource, AsyncRulesResource
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.email_routing import email_routing_enable_params, email_routing_disable_params
from ...types.email_routing.settings import Settings
diff --git a/src/cloudflare/resources/email_routing/rules/catch_alls.py b/src/cloudflare/resources/email_routing/rules/catch_alls.py
index 567104c8c91..14135aadea5 100644
--- a/src/cloudflare/resources/email_routing/rules/catch_alls.py
+++ b/src/cloudflare/resources/email_routing/rules/catch_alls.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.email_routing.rules import catch_all_update_params
from ....types.email_routing.rules.catch_all_action_param import CatchAllActionParam
from ....types.email_routing.rules.catch_all_get_response import CatchAllGetResponse
diff --git a/src/cloudflare/resources/email_routing/rules/rules.py b/src/cloudflare/resources/email_routing/rules/rules.py
index d38f48dfc4a..520f6cd4641 100644
--- a/src/cloudflare/resources/email_routing/rules/rules.py
+++ b/src/cloudflare/resources/email_routing/rules/rules.py
@@ -30,10 +30,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.email_routing import rule_list_params, rule_create_params, rule_update_params
from ....types.email_routing.action_param import ActionParam
from ....types.email_routing.matcher_param import MatcherParam
diff --git a/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py b/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py
index b4c80577222..c1c541c1d96 100644
--- a/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py
+++ b/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py
@@ -24,9 +24,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.event_notifications.r2.configuration_get_response import ConfigurationGetResponse
__all__ = ["ConfigurationResource", "AsyncConfigurationResource"]
diff --git a/src/cloudflare/resources/event_notifications/r2/configuration/queues.py b/src/cloudflare/resources/event_notifications/r2/configuration/queues.py
index cee65c5ac89..6b4d28e5383 100644
--- a/src/cloudflare/resources/event_notifications/r2/configuration/queues.py
+++ b/src/cloudflare/resources/event_notifications/r2/configuration/queues.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.event_notifications.r2.configuration import queue_update_params
from .....types.event_notifications.r2.configuration.queue_delete_response import QueueDeleteResponse
from .....types.event_notifications.r2.configuration.queue_update_response import QueueUpdateResponse
diff --git a/src/cloudflare/resources/filters.py b/src/cloudflare/resources/filters.py
index 7c71132b273..ce71f975685 100644
--- a/src/cloudflare/resources/filters.py
+++ b/src/cloudflare/resources/filters.py
@@ -22,10 +22,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.filters import filter_list_params, filter_create_params, filter_update_params
from ..types.filters.firewall_filter import FirewallFilter
from ..types.filters.filter_create_response import FilterCreateResponse
diff --git a/src/cloudflare/resources/firewall/access_rules.py b/src/cloudflare/resources/firewall/access_rules.py
index 3fac39c90ce..80afe6dd910 100644
--- a/src/cloudflare/resources/firewall/access_rules.py
+++ b/src/cloudflare/resources/firewall/access_rules.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.firewall import access_rule_edit_params, access_rule_list_params, access_rule_create_params
from ...types.firewall.access_rule_get_response import AccessRuleGetResponse
from ...types.firewall.access_rule_edit_response import AccessRuleEditResponse
diff --git a/src/cloudflare/resources/firewall/lockdowns.py b/src/cloudflare/resources/firewall/lockdowns.py
index da3be5c7fc9..52479f92639 100644
--- a/src/cloudflare/resources/firewall/lockdowns.py
+++ b/src/cloudflare/resources/firewall/lockdowns.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.firewall import lockdown_list_params, lockdown_create_params, lockdown_update_params
from ...types.firewall.lockdown import Lockdown
from ...types.firewall.lockdown_delete_response import LockdownDeleteResponse
diff --git a/src/cloudflare/resources/firewall/rules.py b/src/cloudflare/resources/firewall/rules.py
index 8e58114ac84..7eb3973dc9f 100644
--- a/src/cloudflare/resources/firewall/rules.py
+++ b/src/cloudflare/resources/firewall/rules.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.firewall import (
rule_get_params,
rule_edit_params,
diff --git a/src/cloudflare/resources/firewall/ua_rules.py b/src/cloudflare/resources/firewall/ua_rules.py
index 4da2caa2b8e..3aec71bcbda 100644
--- a/src/cloudflare/resources/firewall/ua_rules.py
+++ b/src/cloudflare/resources/firewall/ua_rules.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.firewall import ua_rule_list_params, ua_rule_create_params, ua_rule_update_params
from ...types.firewall.ua_rule_get_response import UARuleGetResponse
from ...types.firewall.ua_rule_list_response import UARuleListResponse
diff --git a/src/cloudflare/resources/firewall/waf/overrides.py b/src/cloudflare/resources/firewall/waf/overrides.py
index 682e482964f..0562584da76 100644
--- a/src/cloudflare/resources/firewall/waf/overrides.py
+++ b/src/cloudflare/resources/firewall/waf/overrides.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.firewall.waf import override_list_params, override_create_params, override_update_params
from ....types.firewall.waf.override import Override
from ....types.firewall.waf.override_delete_response import OverrideDeleteResponse
diff --git a/src/cloudflare/resources/firewall/waf/packages/groups.py b/src/cloudflare/resources/firewall/waf/packages/groups.py
index efd106d5cec..a3835297072 100644
--- a/src/cloudflare/resources/firewall/waf/packages/groups.py
+++ b/src/cloudflare/resources/firewall/waf/packages/groups.py
@@ -22,10 +22,7 @@
)
from ....._wrappers import ResultWrapper
from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ....._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....._base_client import AsyncPaginator, make_request_options
from .....types.firewall.waf.packages import group_edit_params, group_list_params
from .....types.firewall.waf.packages.group import Group
from .....types.firewall.waf.packages.group_get_response import GroupGetResponse
diff --git a/src/cloudflare/resources/firewall/waf/packages/packages.py b/src/cloudflare/resources/firewall/waf/packages/packages.py
index bf8c365887e..b4d5b62323a 100644
--- a/src/cloudflare/resources/firewall/waf/packages/packages.py
+++ b/src/cloudflare/resources/firewall/waf/packages/packages.py
@@ -34,10 +34,7 @@
async_to_streamed_response_wrapper,
)
from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ....._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....._base_client import AsyncPaginator, make_request_options
from .....types.firewall.waf import package_list_params
from .....types.firewall.waf.package_get_response import PackageGetResponse
from .....types.firewall.waf.package_list_response import PackageListResponse
diff --git a/src/cloudflare/resources/firewall/waf/packages/rules.py b/src/cloudflare/resources/firewall/waf/packages/rules.py
index 7a1f92a3ede..697ce9315d8 100644
--- a/src/cloudflare/resources/firewall/waf/packages/rules.py
+++ b/src/cloudflare/resources/firewall/waf/packages/rules.py
@@ -22,10 +22,7 @@
)
from ....._wrappers import ResultWrapper
from .....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ....._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....._base_client import AsyncPaginator, make_request_options
from .....types.firewall.waf.packages import rule_edit_params, rule_list_params
from .....types.firewall.waf.packages.rule_get_response import RuleGetResponse
from .....types.firewall.waf.packages.rule_edit_response import RuleEditResponse
diff --git a/src/cloudflare/resources/healthchecks/healthchecks.py b/src/cloudflare/resources/healthchecks/healthchecks.py
index 8120a2f6944..7097e46f114 100644
--- a/src/cloudflare/resources/healthchecks/healthchecks.py
+++ b/src/cloudflare/resources/healthchecks/healthchecks.py
@@ -29,10 +29,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.healthchecks import (
healthcheck_edit_params,
healthcheck_list_params,
diff --git a/src/cloudflare/resources/healthchecks/previews.py b/src/cloudflare/resources/healthchecks/previews.py
index c15f4667368..d6593156765 100644
--- a/src/cloudflare/resources/healthchecks/previews.py
+++ b/src/cloudflare/resources/healthchecks/previews.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.healthchecks import preview_create_params
from ...types.healthchecks.healthcheck import Healthcheck
from ...types.healthchecks.check_region import CheckRegion
diff --git a/src/cloudflare/resources/hostnames/settings/tls.py b/src/cloudflare/resources/hostnames/settings/tls.py
index 03e541fc6e2..32cf20e4ec3 100644
--- a/src/cloudflare/resources/hostnames/settings/tls.py
+++ b/src/cloudflare/resources/hostnames/settings/tls.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.hostnames.settings import tls_update_params
from ....types.hostnames.settings.setting import Setting
from ....types.hostnames.settings.tls_get_response import TLSGetResponse
diff --git a/src/cloudflare/resources/hyperdrive/configs.py b/src/cloudflare/resources/hyperdrive/configs.py
index 66f94ebdeec..47c9a7cd72a 100644
--- a/src/cloudflare/resources/hyperdrive/configs.py
+++ b/src/cloudflare/resources/hyperdrive/configs.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.hyperdrive import config_edit_params, config_create_params, config_update_params
from ...types.hyperdrive.hyperdrive import Hyperdrive
from ...types.hyperdrive.configuration_param import ConfigurationParam
diff --git a/src/cloudflare/resources/iam/permission_groups.py b/src/cloudflare/resources/iam/permission_groups.py
index 1bb7effc98d..a73299d11ad 100644
--- a/src/cloudflare/resources/iam/permission_groups.py
+++ b/src/cloudflare/resources/iam/permission_groups.py
@@ -16,10 +16,7 @@
)
from ...types.iam import permission_group_list_params
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.iam.permission_group_get_response import PermissionGroupGetResponse
__all__ = ["PermissionGroupsResource", "AsyncPermissionGroupsResource"]
diff --git a/src/cloudflare/resources/iam/resource_groups.py b/src/cloudflare/resources/iam/resource_groups.py
index 9d524bcea8e..d31ccfb2bd4 100644
--- a/src/cloudflare/resources/iam/resource_groups.py
+++ b/src/cloudflare/resources/iam/resource_groups.py
@@ -22,10 +22,7 @@
from ..._wrappers import ResultWrapper
from ...types.iam import resource_group_list_params, resource_group_create_params, resource_group_update_params
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.iam.resource_group_get_response import ResourceGroupGetResponse
from ...types.iam.resource_group_create_response import ResourceGroupCreateResponse
from ...types.iam.resource_group_delete_response import ResourceGroupDeleteResponse
diff --git a/src/cloudflare/resources/images/v1/blobs.py b/src/cloudflare/resources/images/v1/blobs.py
index 4a4dec6571c..d8e492724aa 100644
--- a/src/cloudflare/resources/images/v1/blobs.py
+++ b/src/cloudflare/resources/images/v1/blobs.py
@@ -17,9 +17,7 @@
async_to_custom_raw_response_wrapper,
async_to_custom_streamed_response_wrapper,
)
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
__all__ = ["BlobsResource", "AsyncBlobsResource"]
diff --git a/src/cloudflare/resources/images/v1/keys.py b/src/cloudflare/resources/images/v1/keys.py
index 96ff163104a..fb2704fbcf5 100644
--- a/src/cloudflare/resources/images/v1/keys.py
+++ b/src/cloudflare/resources/images/v1/keys.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.images.v1.key_list_response import KeyListResponse
from ....types.images.v1.key_delete_response import KeyDeleteResponse
from ....types.images.v1.key_update_response import KeyUpdateResponse
diff --git a/src/cloudflare/resources/images/v1/stats.py b/src/cloudflare/resources/images/v1/stats.py
index f67fea164a7..bff97af42d4 100644
--- a/src/cloudflare/resources/images/v1/stats.py
+++ b/src/cloudflare/resources/images/v1/stats.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.images.v1.stat import Stat
__all__ = ["StatsResource", "AsyncStatsResource"]
diff --git a/src/cloudflare/resources/images/v1/v1.py b/src/cloudflare/resources/images/v1/v1.py
index b3ae56942d4..094a8bb7375 100644
--- a/src/cloudflare/resources/images/v1/v1.py
+++ b/src/cloudflare/resources/images/v1/v1.py
@@ -53,10 +53,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePagination, AsyncV4PagePagination
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.images import v1_edit_params, v1_list_params, v1_create_params
from ....types.images.image import Image
from ....types.images.v1_list_response import V1ListResponse
@@ -133,6 +130,10 @@ def create(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._post(
f"/accounts/{account_id}/images/v1",
body=maybe_transform(
@@ -434,6 +435,10 @@ async def create(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._post(
f"/accounts/{account_id}/images/v1",
body=await async_maybe_transform(
diff --git a/src/cloudflare/resources/images/v1/variants.py b/src/cloudflare/resources/images/v1/variants.py
index f8572736699..e81e9a49cd2 100644
--- a/src/cloudflare/resources/images/v1/variants.py
+++ b/src/cloudflare/resources/images/v1/variants.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.images.v1 import variant_edit_params, variant_create_params
from ....types.images.v1.variant import Variant
from ....types.images.v1.variant_get_response import VariantGetResponse
diff --git a/src/cloudflare/resources/images/v2/direct_uploads.py b/src/cloudflare/resources/images/v2/direct_uploads.py
index 3c66318e9f2..85950b687e7 100644
--- a/src/cloudflare/resources/images/v2/direct_uploads.py
+++ b/src/cloudflare/resources/images/v2/direct_uploads.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.images.v2 import direct_upload_create_params
from ....types.images.v2.direct_upload_create_response import DirectUploadCreateResponse
@@ -89,6 +87,10 @@ def create(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._post(
f"/accounts/{account_id}/images/v2/direct_upload",
body=maybe_transform(
@@ -170,6 +172,10 @@ async def create(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._post(
f"/accounts/{account_id}/images/v2/direct_upload",
body=await async_maybe_transform(
diff --git a/src/cloudflare/resources/images/v2/v2.py b/src/cloudflare/resources/images/v2/v2.py
index b683506e828..2aba0656813 100644
--- a/src/cloudflare/resources/images/v2/v2.py
+++ b/src/cloudflare/resources/images/v2/v2.py
@@ -29,9 +29,7 @@
DirectUploadsResourceWithStreamingResponse,
AsyncDirectUploadsResourceWithStreamingResponse,
)
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.images import v2_list_params
from ....types.images.v2_list_response import V2ListResponse
diff --git a/src/cloudflare/resources/intel/asn/asn.py b/src/cloudflare/resources/intel/asn/asn.py
index 97ac5cb12f8..d8084c9b2c8 100644
--- a/src/cloudflare/resources/intel/asn/asn.py
+++ b/src/cloudflare/resources/intel/asn/asn.py
@@ -24,9 +24,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.shared.asn import ASN
__all__ = ["ASNResource", "AsyncASNResource"]
diff --git a/src/cloudflare/resources/intel/asn/subnets.py b/src/cloudflare/resources/intel/asn/subnets.py
index 20fc57dcf63..0bc5182e2bf 100644
--- a/src/cloudflare/resources/intel/asn/subnets.py
+++ b/src/cloudflare/resources/intel/asn/subnets.py
@@ -13,9 +13,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.shared.asn import ASN
from ....types.intel.asn.subnet_get_response import SubnetGetResponse
diff --git a/src/cloudflare/resources/intel/attack_surface_report/issue_types.py b/src/cloudflare/resources/intel/attack_surface_report/issue_types.py
index 327ad759c0c..c29c09235d0 100644
--- a/src/cloudflare/resources/intel/attack_surface_report/issue_types.py
+++ b/src/cloudflare/resources/intel/attack_surface_report/issue_types.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Type, cast
+from typing import Type, Optional, cast
import httpx
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.intel.attack_surface_report.issue_type_get_response import IssueTypeGetResponse
__all__ = ["IssueTypesResource", "AsyncIssueTypesResource"]
@@ -43,7 +41,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueTypeGetResponse:
+ ) -> Optional[IssueTypeGetResponse]:
"""
Get Security Center Issues Types
@@ -67,9 +65,9 @@ def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IssueTypeGetResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueTypeGetResponse]]._unwrapper,
),
- cast_to=cast(Type[IssueTypeGetResponse], ResultWrapper[IssueTypeGetResponse]),
+ cast_to=cast(Type[Optional[IssueTypeGetResponse]], ResultWrapper[IssueTypeGetResponse]),
)
@@ -92,7 +90,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueTypeGetResponse:
+ ) -> Optional[IssueTypeGetResponse]:
"""
Get Security Center Issues Types
@@ -116,9 +114,9 @@ async def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IssueTypeGetResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueTypeGetResponse]]._unwrapper,
),
- cast_to=cast(Type[IssueTypeGetResponse], ResultWrapper[IssueTypeGetResponse]),
+ cast_to=cast(Type[Optional[IssueTypeGetResponse]], ResultWrapper[IssueTypeGetResponse]),
)
diff --git a/src/cloudflare/resources/intel/attack_surface_report/issues.py b/src/cloudflare/resources/intel/attack_surface_report/issues.py
index d4f6cca2c9f..1045499937e 100644
--- a/src/cloudflare/resources/intel/attack_surface_report/issues.py
+++ b/src/cloudflare/resources/intel/attack_surface_report/issues.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Any, List, Type, cast
+from typing import Any, List, Type, Optional, cast
import httpx
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePagination, AsyncV4PagePagination
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.intel.attack_surface_report import (
issue_list_params,
issue_type_params,
@@ -147,7 +144,7 @@ def class_(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueClassResponse:
+ ) -> Optional[IssueClassResponse]:
"""
Get Security Center Issue Counts by Class
@@ -187,9 +184,9 @@ def class_(
},
issue_class_params.IssueClassParams,
),
- post_parser=ResultWrapper[IssueClassResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueClassResponse]]._unwrapper,
),
- cast_to=cast(Type[IssueClassResponse], ResultWrapper[IssueClassResponse]),
+ cast_to=cast(Type[Optional[IssueClassResponse]], ResultWrapper[IssueClassResponse]),
)
def dismiss(
@@ -204,7 +201,7 @@ def dismiss(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueDismissResponse:
+ ) -> Optional[IssueDismissResponse]:
"""
Archive Security Center Insight
@@ -224,7 +221,7 @@ def dismiss(
if not issue_id:
raise ValueError(f"Expected a non-empty value for `issue_id` but received {issue_id!r}")
return cast(
- IssueDismissResponse,
+ Optional[IssueDismissResponse],
self._put(
f"/accounts/{account_id}/intel/attack-surface-report/{issue_id}/dismiss",
body=maybe_transform({"dismiss": dismiss}, issue_dismiss_params.IssueDismissParams),
@@ -233,7 +230,7 @@ def dismiss(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IssueDismissResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueDismissResponse]]._unwrapper,
),
cast_to=cast(
Any, ResultWrapper[IssueDismissResponse]
@@ -262,7 +259,7 @@ def severity(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueSeverityResponse:
+ ) -> Optional[IssueSeverityResponse]:
"""
Get Security Center Issue Counts by Severity
@@ -302,9 +299,9 @@ def severity(
},
issue_severity_params.IssueSeverityParams,
),
- post_parser=ResultWrapper[IssueSeverityResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueSeverityResponse]]._unwrapper,
),
- cast_to=cast(Type[IssueSeverityResponse], ResultWrapper[IssueSeverityResponse]),
+ cast_to=cast(Type[Optional[IssueSeverityResponse]], ResultWrapper[IssueSeverityResponse]),
)
def type(
@@ -328,7 +325,7 @@ def type(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueTypeResponse:
+ ) -> Optional[IssueTypeResponse]:
"""
Get Security Center Issue Counts by Type
@@ -368,9 +365,9 @@ def type(
},
issue_type_params.IssueTypeParams,
),
- post_parser=ResultWrapper[IssueTypeResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueTypeResponse]]._unwrapper,
),
- cast_to=cast(Type[IssueTypeResponse], ResultWrapper[IssueTypeResponse]),
+ cast_to=cast(Type[Optional[IssueTypeResponse]], ResultWrapper[IssueTypeResponse]),
)
@@ -478,7 +475,7 @@ async def class_(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueClassResponse:
+ ) -> Optional[IssueClassResponse]:
"""
Get Security Center Issue Counts by Class
@@ -518,9 +515,9 @@ async def class_(
},
issue_class_params.IssueClassParams,
),
- post_parser=ResultWrapper[IssueClassResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueClassResponse]]._unwrapper,
),
- cast_to=cast(Type[IssueClassResponse], ResultWrapper[IssueClassResponse]),
+ cast_to=cast(Type[Optional[IssueClassResponse]], ResultWrapper[IssueClassResponse]),
)
async def dismiss(
@@ -535,7 +532,7 @@ async def dismiss(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueDismissResponse:
+ ) -> Optional[IssueDismissResponse]:
"""
Archive Security Center Insight
@@ -555,7 +552,7 @@ async def dismiss(
if not issue_id:
raise ValueError(f"Expected a non-empty value for `issue_id` but received {issue_id!r}")
return cast(
- IssueDismissResponse,
+ Optional[IssueDismissResponse],
await self._put(
f"/accounts/{account_id}/intel/attack-surface-report/{issue_id}/dismiss",
body=await async_maybe_transform({"dismiss": dismiss}, issue_dismiss_params.IssueDismissParams),
@@ -564,7 +561,7 @@ async def dismiss(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IssueDismissResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueDismissResponse]]._unwrapper,
),
cast_to=cast(
Any, ResultWrapper[IssueDismissResponse]
@@ -593,7 +590,7 @@ async def severity(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueSeverityResponse:
+ ) -> Optional[IssueSeverityResponse]:
"""
Get Security Center Issue Counts by Severity
@@ -633,9 +630,9 @@ async def severity(
},
issue_severity_params.IssueSeverityParams,
),
- post_parser=ResultWrapper[IssueSeverityResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueSeverityResponse]]._unwrapper,
),
- cast_to=cast(Type[IssueSeverityResponse], ResultWrapper[IssueSeverityResponse]),
+ cast_to=cast(Type[Optional[IssueSeverityResponse]], ResultWrapper[IssueSeverityResponse]),
)
async def type(
@@ -659,7 +656,7 @@ async def type(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IssueTypeResponse:
+ ) -> Optional[IssueTypeResponse]:
"""
Get Security Center Issue Counts by Type
@@ -699,9 +696,9 @@ async def type(
},
issue_type_params.IssueTypeParams,
),
- post_parser=ResultWrapper[IssueTypeResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IssueTypeResponse]]._unwrapper,
),
- cast_to=cast(Type[IssueTypeResponse], ResultWrapper[IssueTypeResponse]),
+ cast_to=cast(Type[Optional[IssueTypeResponse]], ResultWrapper[IssueTypeResponse]),
)
diff --git a/src/cloudflare/resources/intel/dns.py b/src/cloudflare/resources/intel/dns.py
index 7a5835921b8..94c5cc0f84f 100644
--- a/src/cloudflare/resources/intel/dns.py
+++ b/src/cloudflare/resources/intel/dns.py
@@ -16,10 +16,7 @@
)
from ...pagination import SyncV4PagePagination, AsyncV4PagePagination
from ...types.intel import dns_list_params
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.intel.dns_list_response import DNSListResponse
__all__ = ["DNSResource", "AsyncDNSResource"]
diff --git a/src/cloudflare/resources/intel/domain_history.py b/src/cloudflare/resources/intel/domain_history.py
index 01f977b3b72..819f4154b0f 100644
--- a/src/cloudflare/resources/intel/domain_history.py
+++ b/src/cloudflare/resources/intel/domain_history.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.intel import domain_history_get_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.intel.domain_history_get_response import DomainHistoryGetResponse
__all__ = ["DomainHistoryResource", "AsyncDomainHistoryResource"]
diff --git a/src/cloudflare/resources/intel/domains/bulks.py b/src/cloudflare/resources/intel/domains/bulks.py
index c8eb350e1ae..86a51260bd7 100644
--- a/src/cloudflare/resources/intel/domains/bulks.py
+++ b/src/cloudflare/resources/intel/domains/bulks.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.intel.domains import bulk_get_params
from ....types.intel.domains.bulk_get_response import BulkGetResponse
diff --git a/src/cloudflare/resources/intel/domains/domains.py b/src/cloudflare/resources/intel/domains/domains.py
index 81e9d09a452..18d75cbf4f4 100644
--- a/src/cloudflare/resources/intel/domains/domains.py
+++ b/src/cloudflare/resources/intel/domains/domains.py
@@ -29,9 +29,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.intel import domain_get_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.intel.domain import Domain
__all__ = ["DomainsResource", "AsyncDomainsResource"]
diff --git a/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py b/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py
index 59883527aab..06fe7ca7890 100644
--- a/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py
+++ b/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py
@@ -38,10 +38,7 @@
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.intel import indicator_feed_create_params, indicator_feed_update_params
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.intel.indicator_feed_get_response import IndicatorFeedGetResponse
from ....types.intel.indicator_feed_list_response import IndicatorFeedListResponse
from ....types.intel.indicator_feed_create_response import IndicatorFeedCreateResponse
diff --git a/src/cloudflare/resources/intel/indicator_feeds/permissions.py b/src/cloudflare/resources/intel/indicator_feeds/permissions.py
index fe0f399ebdd..cba5e239a46 100644
--- a/src/cloudflare/resources/intel/indicator_feeds/permissions.py
+++ b/src/cloudflare/resources/intel/indicator_feeds/permissions.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.intel.indicator_feeds import permission_create_params, permission_delete_params
from ....types.intel.indicator_feeds.permission_list_response import PermissionListResponse
from ....types.intel.indicator_feeds.permission_create_response import PermissionCreateResponse
diff --git a/src/cloudflare/resources/intel/indicator_feeds/snapshots.py b/src/cloudflare/resources/intel/indicator_feeds/snapshots.py
index 3f05ef5b71a..b2e4466cc2e 100644
--- a/src/cloudflare/resources/intel/indicator_feeds/snapshots.py
+++ b/src/cloudflare/resources/intel/indicator_feeds/snapshots.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.intel.indicator_feeds import snapshot_update_params
from ....types.intel.indicator_feeds.snapshot_update_response import SnapshotUpdateResponse
@@ -71,6 +69,10 @@ def update(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._put(
f"/accounts/{account_id}/intel/indicator-feeds/{feed_id}/snapshot",
body=maybe_transform({"source": source}, snapshot_update_params.SnapshotUpdateParams),
@@ -127,6 +129,10 @@ async def update(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._put(
f"/accounts/{account_id}/intel/indicator-feeds/{feed_id}/snapshot",
body=await async_maybe_transform({"source": source}, snapshot_update_params.SnapshotUpdateParams),
diff --git a/src/cloudflare/resources/intel/ip_lists.py b/src/cloudflare/resources/intel/ip_lists.py
index 78bb216c729..71a5e24ea72 100644
--- a/src/cloudflare/resources/intel/ip_lists.py
+++ b/src/cloudflare/resources/intel/ip_lists.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.intel.ip_list_get_response import IPListGetResponse
__all__ = ["IPListsResource", "AsyncIPListsResource"]
diff --git a/src/cloudflare/resources/intel/ips.py b/src/cloudflare/resources/intel/ips.py
index f205d9a9afd..b652e3a4898 100644
--- a/src/cloudflare/resources/intel/ips.py
+++ b/src/cloudflare/resources/intel/ips.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.intel import ip_get_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.intel.ip_get_response import IPGetResponse
__all__ = ["IPsResource", "AsyncIPsResource"]
diff --git a/src/cloudflare/resources/intel/miscategorizations.py b/src/cloudflare/resources/intel/miscategorizations.py
index bea63b18176..dfb119d4d40 100644
--- a/src/cloudflare/resources/intel/miscategorizations.py
+++ b/src/cloudflare/resources/intel/miscategorizations.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.intel import miscategorization_create_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.intel.miscategorization_create_response import MiscategorizationCreateResponse
__all__ = ["MiscategorizationsResource", "AsyncMiscategorizationsResource"]
diff --git a/src/cloudflare/resources/intel/sinkholes.py b/src/cloudflare/resources/intel/sinkholes.py
index 39757a98044..42afd8a78c0 100644
--- a/src/cloudflare/resources/intel/sinkholes.py
+++ b/src/cloudflare/resources/intel/sinkholes.py
@@ -14,10 +14,7 @@
async_to_streamed_response_wrapper,
)
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.intel.sinkhole import Sinkhole
__all__ = ["SinkholesResource", "AsyncSinkholesResource"]
diff --git a/src/cloudflare/resources/intel/whois.py b/src/cloudflare/resources/intel/whois.py
index d8f2efe389c..ebef795bb02 100644
--- a/src/cloudflare/resources/intel/whois.py
+++ b/src/cloudflare/resources/intel/whois.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.intel import whois_get_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.intel.whois_get_response import WhoisGetResponse
__all__ = ["WhoisResource", "AsyncWhoisResource"]
diff --git a/src/cloudflare/resources/ips.py b/src/cloudflare/resources/ips.py
index c5d99f25d6b..9beb8f86528 100644
--- a/src/cloudflare/resources/ips.py
+++ b/src/cloudflare/resources/ips.py
@@ -21,9 +21,7 @@
)
from .._wrappers import ResultWrapper
from ..types.ips import ip_list_params
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.ips.ip_list_response import IPListResponse
__all__ = ["IPsResource", "AsyncIPsResource"]
diff --git a/src/cloudflare/resources/keyless_certificates.py b/src/cloudflare/resources/keyless_certificates.py
index 2d68350af29..8aec29d7a7d 100644
--- a/src/cloudflare/resources/keyless_certificates.py
+++ b/src/cloudflare/resources/keyless_certificates.py
@@ -21,10 +21,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncSinglePage, AsyncSinglePage
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.custom_hostnames import BundleMethod
from ..types.keyless_certificates import keyless_certificate_edit_params, keyless_certificate_create_params
from ..types.custom_hostnames.bundle_method import BundleMethod
diff --git a/src/cloudflare/resources/kv/namespaces/bulk.py b/src/cloudflare/resources/kv/namespaces/bulk.py
index 7bc398ecfd9..6c9c6a7d1a7 100644
--- a/src/cloudflare/resources/kv/namespaces/bulk.py
+++ b/src/cloudflare/resources/kv/namespaces/bulk.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.kv.namespaces import bulk_update_params
from ....types.kv.namespaces.bulk_delete_response import BulkDeleteResponse
from ....types.kv.namespaces.bulk_update_response import BulkUpdateResponse
diff --git a/src/cloudflare/resources/kv/namespaces/keys.py b/src/cloudflare/resources/kv/namespaces/keys.py
index 8d8c4ed3727..c61d663f9ba 100644
--- a/src/cloudflare/resources/kv/namespaces/keys.py
+++ b/src/cloudflare/resources/kv/namespaces/keys.py
@@ -15,10 +15,7 @@
async_to_streamed_response_wrapper,
)
from ....pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.kv.namespaces import key_list_params
from ....types.kv.namespaces.key import Key
diff --git a/src/cloudflare/resources/kv/namespaces/metadata.py b/src/cloudflare/resources/kv/namespaces/metadata.py
index 9112053105f..1aef3f0725d 100644
--- a/src/cloudflare/resources/kv/namespaces/metadata.py
+++ b/src/cloudflare/resources/kv/namespaces/metadata.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.kv.namespaces.metadata_get_response import MetadataGetResponse
__all__ = ["MetadataResource", "AsyncMetadataResource"]
diff --git a/src/cloudflare/resources/kv/namespaces/namespaces.py b/src/cloudflare/resources/kv/namespaces/namespaces.py
index be73605e215..6f82507c4e0 100644
--- a/src/cloudflare/resources/kv/namespaces/namespaces.py
+++ b/src/cloudflare/resources/kv/namespaces/namespaces.py
@@ -55,10 +55,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.kv.namespace import Namespace
from ....types.kv.namespace_delete_response import NamespaceDeleteResponse
from ....types.kv.namespace_update_response import NamespaceUpdateResponse
diff --git a/src/cloudflare/resources/kv/namespaces/values.py b/src/cloudflare/resources/kv/namespaces/values.py
index b80c2b635bb..67c7e92f75d 100644
--- a/src/cloudflare/resources/kv/namespaces/values.py
+++ b/src/cloudflare/resources/kv/namespaces/values.py
@@ -28,9 +28,7 @@
async_to_custom_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.kv.namespaces import value_update_params
from ....types.kv.namespaces.value_delete_response import ValueDeleteResponse
from ....types.kv.namespaces.value_update_response import ValueUpdateResponse
@@ -97,6 +95,10 @@ def update(
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
if not key_name:
raise ValueError(f"Expected a non-empty value for `key_name` but received {key_name!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._put(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}",
body=maybe_transform(
@@ -280,6 +282,10 @@ async def update(
raise ValueError(f"Expected a non-empty value for `namespace_id` but received {namespace_id!r}")
if not key_name:
raise ValueError(f"Expected a non-empty value for `key_name` but received {key_name!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._put(
f"/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}",
body=await async_maybe_transform(
diff --git a/src/cloudflare/resources/load_balancers/load_balancers.py b/src/cloudflare/resources/load_balancers/load_balancers.py
index 251ee8f97bb..5474bf9e565 100644
--- a/src/cloudflare/resources/load_balancers/load_balancers.py
+++ b/src/cloudflare/resources/load_balancers/load_balancers.py
@@ -62,10 +62,7 @@
from ..._wrappers import ResultWrapper
from .pools.pools import PoolsResource, AsyncPoolsResource
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from .monitors.monitors import MonitorsResource, AsyncMonitorsResource
from ...types.load_balancers import (
SteeringPolicy,
diff --git a/src/cloudflare/resources/load_balancers/monitors/monitors.py b/src/cloudflare/resources/load_balancers/monitors/monitors.py
index d416ac7f341..ed24c10037a 100644
--- a/src/cloudflare/resources/load_balancers/monitors/monitors.py
+++ b/src/cloudflare/resources/load_balancers/monitors/monitors.py
@@ -38,10 +38,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.load_balancers import monitor_edit_params, monitor_create_params, monitor_update_params
from ....types.load_balancers.monitor import Monitor
from ....types.load_balancers.monitor_delete_response import MonitorDeleteResponse
diff --git a/src/cloudflare/resources/load_balancers/monitors/previews.py b/src/cloudflare/resources/load_balancers/monitors/previews.py
index df68da9f446..4de5c71cf24 100644
--- a/src/cloudflare/resources/load_balancers/monitors/previews.py
+++ b/src/cloudflare/resources/load_balancers/monitors/previews.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.load_balancers.monitors import preview_create_params
from ....types.load_balancers.monitors.preview_create_response import PreviewCreateResponse
diff --git a/src/cloudflare/resources/load_balancers/monitors/references.py b/src/cloudflare/resources/load_balancers/monitors/references.py
index d6a57962095..ef46a6ac365 100644
--- a/src/cloudflare/resources/load_balancers/monitors/references.py
+++ b/src/cloudflare/resources/load_balancers/monitors/references.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.load_balancers.monitors.reference_get_response import ReferenceGetResponse
__all__ = ["ReferencesResource", "AsyncReferencesResource"]
diff --git a/src/cloudflare/resources/load_balancers/pools/health.py b/src/cloudflare/resources/load_balancers/pools/health.py
index 9018456132c..0f583723a77 100644
--- a/src/cloudflare/resources/load_balancers/pools/health.py
+++ b/src/cloudflare/resources/load_balancers/pools/health.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.load_balancers.pools import health_create_params
from ....types.load_balancers.pools.health_get_response import HealthGetResponse
from ....types.load_balancers.pools.health_create_response import HealthCreateResponse
diff --git a/src/cloudflare/resources/load_balancers/pools/pools.py b/src/cloudflare/resources/load_balancers/pools/pools.py
index 1652a3bed56..332d6f7146c 100644
--- a/src/cloudflare/resources/load_balancers/pools/pools.py
+++ b/src/cloudflare/resources/load_balancers/pools/pools.py
@@ -37,10 +37,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.load_balancers import (
pool_edit_params,
pool_list_params,
diff --git a/src/cloudflare/resources/load_balancers/pools/references.py b/src/cloudflare/resources/load_balancers/pools/references.py
index a66b780bb96..6f75e55bb3e 100644
--- a/src/cloudflare/resources/load_balancers/pools/references.py
+++ b/src/cloudflare/resources/load_balancers/pools/references.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.load_balancers.pools.reference_get_response import ReferenceGetResponse
__all__ = ["ReferencesResource", "AsyncReferencesResource"]
diff --git a/src/cloudflare/resources/load_balancers/previews.py b/src/cloudflare/resources/load_balancers/previews.py
index 5014648be35..a444e682d3e 100644
--- a/src/cloudflare/resources/load_balancers/previews.py
+++ b/src/cloudflare/resources/load_balancers/previews.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.load_balancers.preview_get_response import PreviewGetResponse
__all__ = ["PreviewsResource", "AsyncPreviewsResource"]
diff --git a/src/cloudflare/resources/load_balancers/regions.py b/src/cloudflare/resources/load_balancers/regions.py
index 21ce3a8b4eb..38b0f38de4a 100644
--- a/src/cloudflare/resources/load_balancers/regions.py
+++ b/src/cloudflare/resources/load_balancers/regions.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.load_balancers import region_list_params
from ...types.load_balancers.region_get_response import RegionGetResponse
from ...types.load_balancers.region_list_response import RegionListResponse
diff --git a/src/cloudflare/resources/load_balancers/searches.py b/src/cloudflare/resources/load_balancers/searches.py
index 5d52ce7aaec..c0e2eaf46c9 100644
--- a/src/cloudflare/resources/load_balancers/searches.py
+++ b/src/cloudflare/resources/load_balancers/searches.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.load_balancers import search_get_params
from ...types.load_balancers.search_get_response import SearchGetResponse
diff --git a/src/cloudflare/resources/logpush/datasets/fields.py b/src/cloudflare/resources/logpush/datasets/fields.py
index 611c0f0f15a..5e661edf514 100644
--- a/src/cloudflare/resources/logpush/datasets/fields.py
+++ b/src/cloudflare/resources/logpush/datasets/fields.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
__all__ = ["FieldsResource", "AsyncFieldsResource"]
diff --git a/src/cloudflare/resources/logpush/datasets/jobs.py b/src/cloudflare/resources/logpush/datasets/jobs.py
index 4da84bf1027..f96da336d34 100644
--- a/src/cloudflare/resources/logpush/datasets/jobs.py
+++ b/src/cloudflare/resources/logpush/datasets/jobs.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.logpush.datasets.job_get_response import JobGetResponse
__all__ = ["JobsResource", "AsyncJobsResource"]
diff --git a/src/cloudflare/resources/logpush/edge.py b/src/cloudflare/resources/logpush/edge.py
index de3d6ff76e2..a708f47cfb3 100644
--- a/src/cloudflare/resources/logpush/edge.py
+++ b/src/cloudflare/resources/logpush/edge.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.logpush import edge_create_params
from ...types.logpush.edge_get_response import EdgeGetResponse
from ...types.logpush.instant_logpush_job import InstantLogpushJob
diff --git a/src/cloudflare/resources/logpush/jobs.py b/src/cloudflare/resources/logpush/jobs.py
index b91faac731a..142476cb9a4 100644
--- a/src/cloudflare/resources/logpush/jobs.py
+++ b/src/cloudflare/resources/logpush/jobs.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.logpush import job_create_params, job_update_params
from ...types.logpush.logpush_job import LogpushJob
from ...types.logpush.output_options_param import OutputOptionsParam
diff --git a/src/cloudflare/resources/logpush/ownership.py b/src/cloudflare/resources/logpush/ownership.py
index 5498bb1f679..42cf9a9ab36 100644
--- a/src/cloudflare/resources/logpush/ownership.py
+++ b/src/cloudflare/resources/logpush/ownership.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.logpush import ownership_create_params, ownership_validate_params
from ...types.logpush.ownership_validation import OwnershipValidation
from ...types.logpush.ownership_create_response import OwnershipCreateResponse
diff --git a/src/cloudflare/resources/logpush/validate.py b/src/cloudflare/resources/logpush/validate.py
index c334340392b..2de975b9580 100644
--- a/src/cloudflare/resources/logpush/validate.py
+++ b/src/cloudflare/resources/logpush/validate.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.logpush import validate_origin_params, validate_destination_params
from ...types.logpush.validate_origin_response import ValidateOriginResponse
from ...types.logpush.validate_destination_response import ValidateDestinationResponse
diff --git a/src/cloudflare/resources/logs/control/cmb/config.py b/src/cloudflare/resources/logs/control/cmb/config.py
index b1c4353d078..ac19a9921c9 100644
--- a/src/cloudflare/resources/logs/control/cmb/config.py
+++ b/src/cloudflare/resources/logs/control/cmb/config.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.logs.control.cmb import config_create_params
from .....types.logs.control.cmb.cmb_config import CmbConfig
diff --git a/src/cloudflare/resources/logs/control/retention.py b/src/cloudflare/resources/logs/control/retention.py
index 2d468f2a73f..ad95003425b 100644
--- a/src/cloudflare/resources/logs/control/retention.py
+++ b/src/cloudflare/resources/logs/control/retention.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.logs.control import retention_create_params
from ....types.logs.control.retention_get_response import RetentionGetResponse
from ....types.logs.control.retention_create_response import RetentionCreateResponse
diff --git a/src/cloudflare/resources/logs/rayid.py b/src/cloudflare/resources/logs/rayid.py
index d6cbefae0ee..2cc4d4c11dc 100644
--- a/src/cloudflare/resources/logs/rayid.py
+++ b/src/cloudflare/resources/logs/rayid.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...types.logs import rayid_get_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.logs.rayid_get_response import RayIDGetResponse
__all__ = ["RayIDResource", "AsyncRayIDResource"]
diff --git a/src/cloudflare/resources/logs/received/fields.py b/src/cloudflare/resources/logs/received/fields.py
index 18015412ab8..f8e041e7866 100644
--- a/src/cloudflare/resources/logs/received/fields.py
+++ b/src/cloudflare/resources/logs/received/fields.py
@@ -13,9 +13,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.logs.received.field_get_response import FieldGetResponse
__all__ = ["FieldsResource", "AsyncFieldsResource"]
diff --git a/src/cloudflare/resources/logs/received/received.py b/src/cloudflare/resources/logs/received/received.py
index fe5ea8ffda1..ce56f1d3f04 100644
--- a/src/cloudflare/resources/logs/received/received.py
+++ b/src/cloudflare/resources/logs/received/received.py
@@ -29,9 +29,7 @@
async_to_streamed_response_wrapper,
)
from ....types.logs import received_get_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.logs.received_get_response import ReceivedGetResponse
__all__ = ["ReceivedResource", "AsyncReceivedResource"]
diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
index c5588ee35fb..ea4fc1e11d7 100644
--- a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
+++ b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py
@@ -28,9 +28,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.magic_network_monitoring import config_edit_params, config_create_params, config_update_params
from ....types.magic_network_monitoring.configuration import Configuration
diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/full.py b/src/cloudflare/resources/magic_network_monitoring/configs/full.py
index ef411789377..3e7c2df80e9 100644
--- a/src/cloudflare/resources/magic_network_monitoring/configs/full.py
+++ b/src/cloudflare/resources/magic_network_monitoring/configs/full.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.magic_network_monitoring.configuration import Configuration
__all__ = ["FullResource", "AsyncFullResource"]
diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
index 73550783cd7..b50a63f2784 100644
--- a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
+++ b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.magic_network_monitoring.rules import advertisement_edit_params
from ....types.magic_network_monitoring.rules.advertisement import Advertisement
diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
index 5d1deee2646..d963c020ce0 100644
--- a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
+++ b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py
@@ -29,10 +29,7 @@
AdvertisementsResourceWithStreamingResponse,
AsyncAdvertisementsResourceWithStreamingResponse,
)
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.magic_network_monitoring import rule_edit_params, rule_create_params, rule_update_params
from ....types.magic_network_monitoring.magic_network_monitoring_rule import MagicNetworkMonitoringRule
diff --git a/src/cloudflare/resources/magic_transit/apps.py b/src/cloudflare/resources/magic_transit/apps.py
index c0e9b974eec..d2f727e82ea 100644
--- a/src/cloudflare/resources/magic_transit/apps.py
+++ b/src/cloudflare/resources/magic_transit/apps.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.magic_transit import app_create_params, app_update_params
from ...types.magic_transit.app_list_response import AppListResponse
from ...types.magic_transit.app_create_response import AppCreateResponse
diff --git a/src/cloudflare/resources/magic_transit/cf_interconnects.py b/src/cloudflare/resources/magic_transit/cf_interconnects.py
index e06f3339eaa..1b8f9558567 100644
--- a/src/cloudflare/resources/magic_transit/cf_interconnects.py
+++ b/src/cloudflare/resources/magic_transit/cf_interconnects.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.magic_transit import cf_interconnect_update_params
from ...types.magic_transit.cf_interconnect_get_response import CfInterconnectGetResponse
from ...types.magic_transit.cf_interconnect_list_response import CfInterconnectListResponse
diff --git a/src/cloudflare/resources/magic_transit/connectors.py b/src/cloudflare/resources/magic_transit/connectors.py
index c9c670927e4..0f881783b86 100644
--- a/src/cloudflare/resources/magic_transit/connectors.py
+++ b/src/cloudflare/resources/magic_transit/connectors.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.magic_transit import connector_edit_params, connector_update_params
from ...types.magic_transit.connector_get_response import ConnectorGetResponse
from ...types.magic_transit.connector_edit_response import ConnectorEditResponse
diff --git a/src/cloudflare/resources/magic_transit/gre_tunnels.py b/src/cloudflare/resources/magic_transit/gre_tunnels.py
index 0a0ecac6b40..32c92784750 100644
--- a/src/cloudflare/resources/magic_transit/gre_tunnels.py
+++ b/src/cloudflare/resources/magic_transit/gre_tunnels.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.magic_transit import gre_tunnel_create_params, gre_tunnel_update_params
from ...types.magic_transit.health_check_param import HealthCheckParam
from ...types.magic_transit.gre_tunnel_get_response import GRETunnelGetResponse
diff --git a/src/cloudflare/resources/magic_transit/ipsec_tunnels.py b/src/cloudflare/resources/magic_transit/ipsec_tunnels.py
index 5628e089a81..f7b347a9460 100644
--- a/src/cloudflare/resources/magic_transit/ipsec_tunnels.py
+++ b/src/cloudflare/resources/magic_transit/ipsec_tunnels.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.magic_transit import (
ipsec_tunnel_create_params,
ipsec_tunnel_update_params,
diff --git a/src/cloudflare/resources/magic_transit/routes.py b/src/cloudflare/resources/magic_transit/routes.py
index be721725cbc..7d122a07e8e 100644
--- a/src/cloudflare/resources/magic_transit/routes.py
+++ b/src/cloudflare/resources/magic_transit/routes.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.magic_transit import route_create_params, route_update_params
from ...types.magic_transit.scope_param import ScopeParam
from ...types.magic_transit.route_get_response import RouteGetResponse
diff --git a/src/cloudflare/resources/magic_transit/sites/acls.py b/src/cloudflare/resources/magic_transit/sites/acls.py
index 6d675b5378a..b7957dd5131 100644
--- a/src/cloudflare/resources/magic_transit/sites/acls.py
+++ b/src/cloudflare/resources/magic_transit/sites/acls.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.magic_transit.sites import acl_edit_params, acl_create_params, acl_update_params
from ....types.magic_transit.sites.acl import ACL
from ....types.magic_transit.sites.allowed_protocol import AllowedProtocol
diff --git a/src/cloudflare/resources/magic_transit/sites/lans.py b/src/cloudflare/resources/magic_transit/sites/lans.py
index 307bdcffc9b..8232dbc6418 100644
--- a/src/cloudflare/resources/magic_transit/sites/lans.py
+++ b/src/cloudflare/resources/magic_transit/sites/lans.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.magic_transit.sites import (
lan_edit_params,
lan_create_params,
diff --git a/src/cloudflare/resources/magic_transit/sites/sites.py b/src/cloudflare/resources/magic_transit/sites/sites.py
index 67c24a85c6f..ac9dec96af6 100644
--- a/src/cloudflare/resources/magic_transit/sites/sites.py
+++ b/src/cloudflare/resources/magic_transit/sites/sites.py
@@ -45,10 +45,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.magic_transit import (
site_edit_params,
site_list_params,
diff --git a/src/cloudflare/resources/magic_transit/sites/wans.py b/src/cloudflare/resources/magic_transit/sites/wans.py
index 90cba1d7d90..eb7364a3e58 100644
--- a/src/cloudflare/resources/magic_transit/sites/wans.py
+++ b/src/cloudflare/resources/magic_transit/sites/wans.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.magic_transit.sites import wan_edit_params, wan_create_params, wan_update_params
from ....types.magic_transit.sites.wan import WAN
from ....types.magic_transit.sites.wan_create_response import WANCreateResponse
diff --git a/src/cloudflare/resources/managed_headers.py b/src/cloudflare/resources/managed_headers.py
index 345adb7d6e5..6f625e31c16 100644
--- a/src/cloudflare/resources/managed_headers.py
+++ b/src/cloudflare/resources/managed_headers.py
@@ -19,9 +19,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.managed_headers import managed_header_edit_params
from ..types.managed_headers.request_model_param import RequestModelParam
from ..types.managed_headers.managed_header_edit_response import ManagedHeaderEditResponse
diff --git a/src/cloudflare/resources/memberships.py b/src/cloudflare/resources/memberships.py
index b4c963fbea7..eee1608095c 100644
--- a/src/cloudflare/resources/memberships.py
+++ b/src/cloudflare/resources/memberships.py
@@ -22,10 +22,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.memberships import membership_list_params, membership_update_params
from ..types.memberships.membership import Membership
from ..types.memberships.membership_get_response import MembershipGetResponse
diff --git a/src/cloudflare/resources/mtls_certificates/associations.py b/src/cloudflare/resources/mtls_certificates/associations.py
index bd3fcd1f7dc..89da4efe30e 100644
--- a/src/cloudflare/resources/mtls_certificates/associations.py
+++ b/src/cloudflare/resources/mtls_certificates/associations.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.mtls_certificates.association_get_response import AssociationGetResponse
__all__ = ["AssociationsResource", "AsyncAssociationsResource"]
diff --git a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py
index d6d4f1a60d8..c9a0deacd8d 100644
--- a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py
+++ b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py
@@ -29,10 +29,7 @@
AssociationsResourceWithStreamingResponse,
AsyncAssociationsResourceWithStreamingResponse,
)
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.mtls_certificates import mtls_certificate_create_params
from ...types.mtls_certificates.mtls_certificate import MTLSCertificate
from ...types.mtls_certificates.mtls_certificate_create_response import MTLSCertificateCreateResponse
diff --git a/src/cloudflare/resources/origin_ca_certificates.py b/src/cloudflare/resources/origin_ca_certificates.py
index 0469f455fb2..d9c889e484e 100644
--- a/src/cloudflare/resources/origin_ca_certificates.py
+++ b/src/cloudflare/resources/origin_ca_certificates.py
@@ -22,10 +22,7 @@
from .._wrappers import ResultWrapper
from ..types.ssl import RequestValidity
from ..pagination import SyncSinglePage, AsyncSinglePage
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.ssl.request_validity import RequestValidity
from ..types.origin_ca_certificates import origin_ca_certificate_list_params, origin_ca_certificate_create_params
from ..types.shared.certificate_request_type import CertificateRequestType
diff --git a/src/cloudflare/resources/origin_post_quantum_encryption.py b/src/cloudflare/resources/origin_post_quantum_encryption.py
index 58c75a387f7..8ff26e81893 100644
--- a/src/cloudflare/resources/origin_post_quantum_encryption.py
+++ b/src/cloudflare/resources/origin_post_quantum_encryption.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from .._wrappers import ResultWrapper
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.origin_post_quantum_encryption import origin_post_quantum_encryption_update_params
from ..types.origin_post_quantum_encryption.origin_post_quantum_encryption_get_response import (
OriginPostQuantumEncryptionGetResponse,
diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py
index 9375047412c..cbcf295a206 100644
--- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py
+++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.origin_tls_client_auth.hostnames import certificate_create_params
from ....types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull
from ....types.origin_tls_client_auth.hostnames.certificate_get_response import CertificateGetResponse
diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py
index 438508acb12..a481ade84de 100644
--- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py
+++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py
@@ -28,9 +28,7 @@
CertificatesResourceWithStreamingResponse,
AsyncCertificatesResourceWithStreamingResponse,
)
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.origin_tls_client_auth import hostname_update_params
from ....types.origin_tls_client_auth.hostname_update_response import HostnameUpdateResponse
from ....types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull
diff --git a/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py b/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
index f1899c77cdf..1eabc1123fe 100644
--- a/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
+++ b/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
@@ -37,10 +37,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from .hostnames.hostnames import HostnamesResource, AsyncHostnamesResource
from ...types.origin_tls_client_auth import origin_tls_client_auth_create_params
from ...types.origin_tls_client_auth.zone_authenticated_origin_pull import ZoneAuthenticatedOriginPull
diff --git a/src/cloudflare/resources/origin_tls_client_auth/settings.py b/src/cloudflare/resources/origin_tls_client_auth/settings.py
index 67fc7cdba8e..1342bbbf064 100644
--- a/src/cloudflare/resources/origin_tls_client_auth/settings.py
+++ b/src/cloudflare/resources/origin_tls_client_auth/settings.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.origin_tls_client_auth import setting_update_params
from ...types.origin_tls_client_auth.setting_get_response import SettingGetResponse
from ...types.origin_tls_client_auth.setting_update_response import SettingUpdateResponse
diff --git a/src/cloudflare/resources/page_shield/connections.py b/src/cloudflare/resources/page_shield/connections.py
index e961e1e4bc6..ac42a24e1f6 100644
--- a/src/cloudflare/resources/page_shield/connections.py
+++ b/src/cloudflare/resources/page_shield/connections.py
@@ -19,10 +19,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.page_shield import connection_list_params
from ...types.page_shield.connection import Connection
diff --git a/src/cloudflare/resources/page_shield/cookies.py b/src/cloudflare/resources/page_shield/cookies.py
index d35ffba6734..cdbc8dc6abb 100644
--- a/src/cloudflare/resources/page_shield/cookies.py
+++ b/src/cloudflare/resources/page_shield/cookies.py
@@ -19,10 +19,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.page_shield import cookie_list_params
from ...types.page_shield.cookie_get_response import CookieGetResponse
from ...types.page_shield.cookie_list_response import CookieListResponse
diff --git a/src/cloudflare/resources/page_shield/page_shield.py b/src/cloudflare/resources/page_shield/page_shield.py
index 9e7d2e27f74..11f6a949378 100644
--- a/src/cloudflare/resources/page_shield/page_shield.py
+++ b/src/cloudflare/resources/page_shield/page_shield.py
@@ -52,9 +52,7 @@
ConnectionsResourceWithStreamingResponse,
AsyncConnectionsResourceWithStreamingResponse,
)
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.page_shield import page_shield_update_params
from ...types.page_shield.setting import Setting
from ...types.page_shield.page_shield_update_response import PageShieldUpdateResponse
diff --git a/src/cloudflare/resources/page_shield/policies.py b/src/cloudflare/resources/page_shield/policies.py
index de2822019e7..645079e3e9b 100644
--- a/src/cloudflare/resources/page_shield/policies.py
+++ b/src/cloudflare/resources/page_shield/policies.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.page_shield import policy_create_params, policy_update_params
from ...types.page_shield.policy_get_response import PolicyGetResponse
from ...types.page_shield.policy_list_response import PolicyListResponse
diff --git a/src/cloudflare/resources/page_shield/scripts.py b/src/cloudflare/resources/page_shield/scripts.py
index 2a3e556f7cc..541aefbee44 100644
--- a/src/cloudflare/resources/page_shield/scripts.py
+++ b/src/cloudflare/resources/page_shield/scripts.py
@@ -19,10 +19,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.page_shield import script_list_params
from ...types.page_shield.script import Script
from ...types.page_shield.script_get_response import ScriptGetResponse
diff --git a/src/cloudflare/resources/pagerules/pagerules.py b/src/cloudflare/resources/pagerules/pagerules.py
index 440b172abde..5f251b595db 100644
--- a/src/cloudflare/resources/pagerules/pagerules.py
+++ b/src/cloudflare/resources/pagerules/pagerules.py
@@ -30,9 +30,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.pagerules import (
pagerule_edit_params,
pagerule_list_params,
diff --git a/src/cloudflare/resources/pagerules/settings.py b/src/cloudflare/resources/pagerules/settings.py
index b89f657bbbb..450fac94b4d 100644
--- a/src/cloudflare/resources/pagerules/settings.py
+++ b/src/cloudflare/resources/pagerules/settings.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.pagerules.setting_list_response import SettingListResponse
__all__ = ["SettingsResource", "AsyncSettingsResource"]
diff --git a/src/cloudflare/resources/pages/projects/deployments/deployments.py b/src/cloudflare/resources/pages/projects/deployments/deployments.py
index 366eb26eacd..f2c545dc237 100644
--- a/src/cloudflare/resources/pages/projects/deployments/deployments.py
+++ b/src/cloudflare/resources/pages/projects/deployments/deployments.py
@@ -31,10 +31,7 @@
from ....._wrappers import ResultWrapper
from .....pagination import SyncSinglePage, AsyncSinglePage
from .history.history import HistoryResource, AsyncHistoryResource
-from ....._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....._base_client import AsyncPaginator, make_request_options
from .....types.pages.projects import (
deployment_list_params,
deployment_retry_params,
@@ -97,6 +94,10 @@ def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not project_name:
raise ValueError(f"Expected a non-empty value for `project_name` but received {project_name!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._post(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments",
body=maybe_transform({"branch": branch}, deployment_create_params.DeploymentCreateParams),
@@ -408,6 +409,10 @@ async def create(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
if not project_name:
raise ValueError(f"Expected a non-empty value for `project_name` but received {project_name!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._post(
f"/accounts/{account_id}/pages/projects/{project_name}/deployments",
body=await async_maybe_transform({"branch": branch}, deployment_create_params.DeploymentCreateParams),
diff --git a/src/cloudflare/resources/pages/projects/deployments/history/logs.py b/src/cloudflare/resources/pages/projects/deployments/history/logs.py
index b3a5e2aaf67..631dd9e7aab 100644
--- a/src/cloudflare/resources/pages/projects/deployments/history/logs.py
+++ b/src/cloudflare/resources/pages/projects/deployments/history/logs.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.pages.projects.deployments.history.log_get_response import LogGetResponse
__all__ = ["LogsResource", "AsyncLogsResource"]
diff --git a/src/cloudflare/resources/pages/projects/domains.py b/src/cloudflare/resources/pages/projects/domains.py
index 65054b9aa45..7e6c839a248 100644
--- a/src/cloudflare/resources/pages/projects/domains.py
+++ b/src/cloudflare/resources/pages/projects/domains.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.pages.projects import domain_edit_params, domain_create_params
from ....types.pages.projects.domain_get_response import DomainGetResponse
from ....types.pages.projects.domain_edit_response import DomainEditResponse
diff --git a/src/cloudflare/resources/pages/projects/projects.py b/src/cloudflare/resources/pages/projects/projects.py
index 09b5912fffb..ced923eda18 100644
--- a/src/cloudflare/resources/pages/projects/projects.py
+++ b/src/cloudflare/resources/pages/projects/projects.py
@@ -38,10 +38,7 @@
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.pages import Deployment, project_edit_params, project_create_params
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.pages.project import Project
from .deployments.deployments import DeploymentsResource, AsyncDeploymentsResource
from ....types.pages.deployment import Deployment
diff --git a/src/cloudflare/resources/pcaps/download.py b/src/cloudflare/resources/pcaps/download.py
index de8e8fa0168..84cfebf9c6b 100644
--- a/src/cloudflare/resources/pcaps/download.py
+++ b/src/cloudflare/resources/pcaps/download.py
@@ -17,9 +17,7 @@
async_to_custom_raw_response_wrapper,
async_to_custom_streamed_response_wrapper,
)
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
__all__ = ["DownloadResource", "AsyncDownloadResource"]
diff --git a/src/cloudflare/resources/pcaps/ownership.py b/src/cloudflare/resources/pcaps/ownership.py
index 618d9796ddd..fb7229716c9 100644
--- a/src/cloudflare/resources/pcaps/ownership.py
+++ b/src/cloudflare/resources/pcaps/ownership.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.pcaps import ownership_create_params, ownership_validate_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.pcaps.ownership import Ownership
from ...types.pcaps.ownership_get_response import OwnershipGetResponse
diff --git a/src/cloudflare/resources/pcaps/pcaps.py b/src/cloudflare/resources/pcaps/pcaps.py
index e6ea121deb1..88b6a85dc45 100644
--- a/src/cloudflare/resources/pcaps/pcaps.py
+++ b/src/cloudflare/resources/pcaps/pcaps.py
@@ -40,10 +40,7 @@
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.pcaps import pcap_create_params
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.pcaps.pcap_filter_param import PCAPFilterParam
from ...types.pcaps.pcap_get_response import PCAPGetResponse
from ...types.pcaps.pcap_list_response import PCAPListResponse
diff --git a/src/cloudflare/resources/plans.py b/src/cloudflare/resources/plans.py
index fc177c15925..fec32838ad7 100644
--- a/src/cloudflare/resources/plans.py
+++ b/src/cloudflare/resources/plans.py
@@ -17,10 +17,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncSinglePage, AsyncSinglePage
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.plans.available_rate_plan import AvailableRatePlan
__all__ = ["PlansResource", "AsyncPlansResource"]
diff --git a/src/cloudflare/resources/queues/consumers.py b/src/cloudflare/resources/queues/consumers.py
index 9854d15ce64..62500828562 100644
--- a/src/cloudflare/resources/queues/consumers.py
+++ b/src/cloudflare/resources/queues/consumers.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.queues import consumer_create_params, consumer_update_params
from ...types.queues.consumer_get_response import ConsumerGetResponse
from ...types.queues.consumer_create_response import ConsumerCreateResponse
diff --git a/src/cloudflare/resources/queues/messages.py b/src/cloudflare/resources/queues/messages.py
index 8b651b0dcf2..61a6e360ed3 100644
--- a/src/cloudflare/resources/queues/messages.py
+++ b/src/cloudflare/resources/queues/messages.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.queues import message_ack_params, message_pull_params
from ...types.queues.message_ack_response import MessageAckResponse
from ...types.queues.message_pull_response import MessagePullResponse
diff --git a/src/cloudflare/resources/queues/queues.py b/src/cloudflare/resources/queues/queues.py
index 39a6012d574..f3995757a32 100644
--- a/src/cloudflare/resources/queues/queues.py
+++ b/src/cloudflare/resources/queues/queues.py
@@ -37,10 +37,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.queues import queue_create_params, queue_update_params
from ...types.queues.queue import Queue
from ...types.queues.queue_created import QueueCreated
diff --git a/src/cloudflare/resources/r2/buckets.py b/src/cloudflare/resources/r2/buckets.py
index 2b322b7a24c..bde62555b2f 100644
--- a/src/cloudflare/resources/r2/buckets.py
+++ b/src/cloudflare/resources/r2/buckets.py
@@ -23,10 +23,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncCursorPagination, AsyncCursorPagination
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.r2.bucket import Bucket
__all__ = ["BucketsResource", "AsyncBucketsResource"]
diff --git a/src/cloudflare/resources/r2/sippy.py b/src/cloudflare/resources/r2/sippy.py
index 7f134a5e730..178f4279f44 100644
--- a/src/cloudflare/resources/r2/sippy.py
+++ b/src/cloudflare/resources/r2/sippy.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.r2.sippy import Sippy
from ...types.r2.sippy_delete_response import SippyDeleteResponse
diff --git a/src/cloudflare/resources/r2/temporary_credentials.py b/src/cloudflare/resources/r2/temporary_credentials.py
index f621ecdab1a..9715a6feadd 100644
--- a/src/cloudflare/resources/r2/temporary_credentials.py
+++ b/src/cloudflare/resources/r2/temporary_credentials.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.r2.temporary_credential_create_response import TemporaryCredentialCreateResponse
__all__ = ["TemporaryCredentialsResource", "AsyncTemporaryCredentialsResource"]
@@ -63,7 +61,7 @@ def create(
Args:
account_id: Account ID
- bucket: Name of the GCS bucket
+ bucket: Name of the R2 bucket
parent_access_key_id: The parent access key id to use for signing
@@ -142,7 +140,7 @@ async def create(
Args:
account_id: Account ID
- bucket: Name of the GCS bucket
+ bucket: Name of the R2 bucket
parent_access_key_id: The parent access key id to use for signing
diff --git a/src/cloudflare/resources/radar/__init__.py b/src/cloudflare/resources/radar/__init__.py
index 00dd0bb0fcf..5ea83f8d764 100644
--- a/src/cloudflare/resources/radar/__init__.py
+++ b/src/cloudflare/resources/radar/__init__.py
@@ -128,13 +128,13 @@
TrafficAnomaliesResourceWithStreamingResponse,
AsyncTrafficAnomaliesResourceWithStreamingResponse,
)
-from .connection_tampering import (
- ConnectionTamperingResource,
- AsyncConnectionTamperingResource,
- ConnectionTamperingResourceWithRawResponse,
- AsyncConnectionTamperingResourceWithRawResponse,
- ConnectionTamperingResourceWithStreamingResponse,
- AsyncConnectionTamperingResourceWithStreamingResponse,
+from .tcp_resets_timeouts import (
+ TCPResetsTimeoutsResource,
+ AsyncTCPResetsTimeoutsResource,
+ TCPResetsTimeoutsResourceWithRawResponse,
+ AsyncTCPResetsTimeoutsResourceWithRawResponse,
+ TCPResetsTimeoutsResourceWithStreamingResponse,
+ AsyncTCPResetsTimeoutsResourceWithStreamingResponse,
)
__all__ = [
@@ -186,12 +186,6 @@
"AsyncAS112ResourceWithRawResponse",
"AS112ResourceWithStreamingResponse",
"AsyncAS112ResourceWithStreamingResponse",
- "ConnectionTamperingResource",
- "AsyncConnectionTamperingResource",
- "ConnectionTamperingResourceWithRawResponse",
- "AsyncConnectionTamperingResourceWithRawResponse",
- "ConnectionTamperingResourceWithStreamingResponse",
- "AsyncConnectionTamperingResourceWithStreamingResponse",
"EmailResource",
"AsyncEmailResource",
"EmailResourceWithRawResponse",
@@ -234,6 +228,12 @@
"AsyncTrafficAnomaliesResourceWithRawResponse",
"TrafficAnomaliesResourceWithStreamingResponse",
"AsyncTrafficAnomaliesResourceWithStreamingResponse",
+ "TCPResetsTimeoutsResource",
+ "AsyncTCPResetsTimeoutsResource",
+ "TCPResetsTimeoutsResourceWithRawResponse",
+ "AsyncTCPResetsTimeoutsResourceWithRawResponse",
+ "TCPResetsTimeoutsResourceWithStreamingResponse",
+ "AsyncTCPResetsTimeoutsResourceWithStreamingResponse",
"RadarResource",
"AsyncRadarResource",
"RadarResourceWithRawResponse",
diff --git a/src/cloudflare/resources/radar/annotations/outages.py b/src/cloudflare/resources/radar/annotations/outages.py
index f53fee61e9d..12344d7d80e 100644
--- a/src/cloudflare/resources/radar/annotations/outages.py
+++ b/src/cloudflare/resources/radar/annotations/outages.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.annotations import outage_get_params, outage_locations_params
from ....types.radar.annotations.outage_get_response import OutageGetResponse
from ....types.radar.annotations.outage_locations_response import OutageLocationsResponse
@@ -46,24 +44,7 @@ def get(
*,
asn: int | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -134,24 +115,7 @@ def locations(
self,
*,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -222,24 +186,7 @@ async def get(
*,
asn: int | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -310,24 +257,7 @@ async def locations(
self,
*,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/as112/as112.py b/src/cloudflare/resources/radar/as112/as112.py
index d9245a12e0e..bdd295c2412 100644
--- a/src/cloudflare/resources/radar/as112/as112.py
+++ b/src/cloudflare/resources/radar/as112/as112.py
@@ -39,9 +39,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.radar import as112_timeseries_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from .timeseries_groups import (
TimeseriesGroupsResource,
AsyncTimeseriesGroupsResource,
@@ -83,26 +81,7 @@ def timeseries(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -209,26 +188,7 @@ async def timeseries(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/as112/summary.py b/src/cloudflare/resources/radar/as112/summary.py
index a67b1833204..2e695cbfd97 100644
--- a/src/cloudflare/resources/radar/as112/summary.py
+++ b/src/cloudflare/resources/radar/as112/summary.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.as112 import (
summary_edns_params,
summary_dnssec_params,
@@ -58,26 +56,7 @@ def dnssec(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -156,26 +135,7 @@ def edns(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -254,26 +214,7 @@ def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -352,26 +293,7 @@ def protocol(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -450,26 +372,7 @@ def query_type(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -548,26 +451,7 @@ def response_codes(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -656,26 +540,7 @@ async def dnssec(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -754,26 +619,7 @@ async def edns(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -852,26 +698,7 @@ async def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -950,26 +777,7 @@ async def protocol(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -1048,26 +856,7 @@ async def query_type(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -1146,26 +935,7 @@ async def response_codes(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups.py b/src/cloudflare/resources/radar/as112/timeseries_groups.py
index 22765f808f8..2b654a4a755 100644
--- a/src/cloudflare/resources/radar/as112/timeseries_groups.py
+++ b/src/cloudflare/resources/radar/as112/timeseries_groups.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.as112 import (
timeseries_group_edns_params,
timeseries_group_dnssec_params,
@@ -59,26 +57,7 @@ def dnssec(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -163,26 +142,7 @@ def edns(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -267,26 +227,7 @@ def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -371,26 +312,7 @@ def protocol(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -475,26 +397,7 @@ def query_type(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -579,26 +482,7 @@ def response_codes(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -696,26 +580,7 @@ async def dnssec(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -800,26 +665,7 @@ async def edns(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -904,26 +750,7 @@ async def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -1008,26 +835,7 @@ async def protocol(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -1112,26 +920,7 @@ async def query_type(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -1216,26 +1005,7 @@ async def response_codes(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/as112/top.py b/src/cloudflare/resources/radar/as112/top.py
index bf2166e991f..85152434160 100644
--- a/src/cloudflare/resources/radar/as112/top.py
+++ b/src/cloudflare/resources/radar/as112/top.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.as112 import top_edns_params, top_dnssec_params, top_locations_params, top_ip_version_params
from ....types.radar.as112.top_edns_response import TopEdnsResponse
from ....types.radar.as112.top_dnssec_response import TopDNSSECResponse
@@ -50,26 +48,7 @@ def dnssec(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -157,26 +136,7 @@ def edns(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -264,26 +224,7 @@ def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -370,26 +311,7 @@ def locations(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -485,26 +407,7 @@ async def dnssec(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -592,26 +495,7 @@ async def edns(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -699,26 +583,7 @@ async def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -805,26 +670,7 @@ async def locations(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/attacks/layer3/layer3.py b/src/cloudflare/resources/radar/attacks/layer3/layer3.py
index 22a1a7a706b..40608aa9246 100644
--- a/src/cloudflare/resources/radar/attacks/layer3/layer3.py
+++ b/src/cloudflare/resources/radar/attacks/layer3/layer3.py
@@ -39,9 +39,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .timeseries_groups import (
TimeseriesGroupsResource,
AsyncTimeseriesGroupsResource,
@@ -84,26 +82,7 @@ def timeseries(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -232,26 +211,7 @@ async def timeseries(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/attacks/layer3/summary.py b/src/cloudflare/resources/radar/attacks/layer3/summary.py
index d894d181af2..9f83b0a9198 100644
--- a/src/cloudflare/resources/radar/attacks/layer3/summary.py
+++ b/src/cloudflare/resources/radar/attacks/layer3/summary.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.attacks.layer3 import (
summary_get_params,
summary_vector_params,
@@ -57,26 +55,7 @@ def bitrate(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -162,26 +141,7 @@ def duration(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -268,26 +228,7 @@ def get(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -366,26 +307,7 @@ def ip_version(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -467,26 +389,7 @@ def protocol(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -568,26 +471,7 @@ def vector(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -683,26 +567,7 @@ async def bitrate(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -788,26 +653,7 @@ async def duration(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -894,26 +740,7 @@ async def get(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -992,26 +819,7 @@ async def ip_version(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1093,26 +901,7 @@ async def protocol(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1194,26 +983,7 @@ async def vector(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py
index 17011e35747..353c8457d47 100644
--- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py
+++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.attacks.layer3 import (
timeseries_group_get_params,
timeseries_group_vector_params,
@@ -62,26 +60,7 @@ def bitrate(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -178,26 +157,7 @@ def duration(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -295,26 +255,7 @@ def get(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -399,26 +340,7 @@ def industry(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -427,6 +349,7 @@ def industry(
location: List[str] | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN,
+ protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -473,6 +396,8 @@ def industry(
normalization: Normalization method applied. Refer to
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ protocol: Array of L3/4 attack types.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -502,6 +427,7 @@ def industry(
"location": location,
"name": name,
"normalization": normalization,
+ "protocol": protocol,
},
timeseries_group_industry_params.TimeseriesGroupIndustryParams,
),
@@ -516,26 +442,7 @@ def ip_version(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -628,26 +535,7 @@ def protocol(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -740,26 +628,7 @@ def vector(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -861,26 +730,7 @@ def vertical(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -889,6 +739,7 @@ def vertical(
location: List[str] | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN,
+ protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -935,6 +786,8 @@ def vertical(
normalization: Normalization method applied. Refer to
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ protocol: Array of L3/4 attack types.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -964,6 +817,7 @@ def vertical(
"location": location,
"name": name,
"normalization": normalization,
+ "protocol": protocol,
},
timeseries_group_vertical_params.TimeseriesGroupVerticalParams,
),
@@ -988,26 +842,7 @@ async def bitrate(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1104,26 +939,7 @@ async def duration(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1221,26 +1037,7 @@ async def get(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -1325,26 +1122,7 @@ async def industry(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1353,6 +1131,7 @@ async def industry(
location: List[str] | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN,
+ protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1399,6 +1178,8 @@ async def industry(
normalization: Normalization method applied. Refer to
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ protocol: Array of L3/4 attack types.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1428,6 +1209,7 @@ async def industry(
"location": location,
"name": name,
"normalization": normalization,
+ "protocol": protocol,
},
timeseries_group_industry_params.TimeseriesGroupIndustryParams,
),
@@ -1442,26 +1224,7 @@ async def ip_version(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1554,26 +1317,7 @@ async def protocol(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1666,26 +1410,7 @@ async def vector(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1787,26 +1512,7 @@ async def vertical(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1815,6 +1521,7 @@ async def vertical(
location: List[str] | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN,
+ protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1861,6 +1568,8 @@ async def vertical(
normalization: Normalization method applied. Refer to
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
+ protocol: Array of L3/4 attack types.
+
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
@@ -1890,6 +1599,7 @@ async def vertical(
"location": location,
"name": name,
"normalization": normalization,
+ "protocol": protocol,
},
timeseries_group_vertical_params.TimeseriesGroupVerticalParams,
),
diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/locations.py b/src/cloudflare/resources/radar/attacks/layer3/top/locations.py
index 998521834a5..fb70d8bcbd7 100644
--- a/src/cloudflare/resources/radar/attacks/layer3/top/locations.py
+++ b/src/cloudflare/resources/radar/attacks/layer3/top/locations.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.radar.attacks.layer3.top import location_origin_params, location_target_params
from ......types.radar.attacks.layer3.top.location_origin_response import LocationOriginResponse
from ......types.radar.attacks.layer3.top.location_target_response import LocationTargetResponse
@@ -46,26 +44,7 @@ def origin(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
@@ -150,26 +129,7 @@ def target(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
@@ -264,26 +224,7 @@ async def origin(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
@@ -368,26 +309,7 @@ async def target(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/top.py b/src/cloudflare/resources/radar/attacks/layer3/top/top.py
index 42c7224e8d6..3e6817465e2 100644
--- a/src/cloudflare/resources/radar/attacks/layer3/top/top.py
+++ b/src/cloudflare/resources/radar/attacks/layer3/top/top.py
@@ -30,9 +30,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.radar.attacks.layer3 import top_attacks_params, top_industry_params, top_vertical_params
from ......types.radar.attacks.layer3.top_attacks_response import TopAttacksResponse
from ......types.radar.attacks.layer3.top_industry_response import TopIndustryResponse
@@ -59,26 +57,7 @@ def attacks(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
@@ -183,26 +162,7 @@ def industry(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
@@ -287,26 +247,7 @@ def vertical(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
@@ -405,26 +346,7 @@ async def attacks(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
@@ -529,26 +451,7 @@ async def industry(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
@@ -633,26 +536,7 @@ async def vertical(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/attacks/layer7/layer7.py b/src/cloudflare/resources/radar/attacks/layer7/layer7.py
index 713c3e11de2..3677d19f359 100644
--- a/src/cloudflare/resources/radar/attacks/layer7/layer7.py
+++ b/src/cloudflare/resources/radar/attacks/layer7/layer7.py
@@ -39,9 +39,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .timeseries_groups import (
TimeseriesGroupsResource,
AsyncTimeseriesGroupsResource,
@@ -90,29 +88,69 @@ def timeseries(
| NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
normalization: Literal["PERCENTAGE_CHANGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -136,7 +174,7 @@ def timeseries(
For example, `-174, 3356` excludes results from AS174, but includes results from
AS3356.
- attack: Array of L7 attack types.
+ attack: This field is deprecated, please use the new `mitigationProduct`.
continent: Array of comma separated list of continents (alpha-2 continent codes). Start
with `-` to exclude from results. For example, `-EU,NA` excludes results from
@@ -152,10 +190,18 @@ def timeseries(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
location: Array of comma separated list of locations (alpha-2 country codes). Start with
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
but includes results from PT.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
normalization: Normalization method applied. Refer to
@@ -186,7 +232,11 @@ def timeseries(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"location": location,
+ "mitigation_product": mitigation_product,
"name": name,
"normalization": normalization,
},
@@ -232,29 +282,69 @@ async def timeseries(
| NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
normalization: Literal["PERCENTAGE_CHANGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -278,7 +368,7 @@ async def timeseries(
For example, `-174, 3356` excludes results from AS174, but includes results from
AS3356.
- attack: Array of L7 attack types.
+ attack: This field is deprecated, please use the new `mitigationProduct`.
continent: Array of comma separated list of continents (alpha-2 continent codes). Start
with `-` to exclude from results. For example, `-EU,NA` excludes results from
@@ -294,10 +384,18 @@ async def timeseries(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
location: Array of comma separated list of locations (alpha-2 country codes). Start with
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
but includes results from PT.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
normalization: Normalization method applied. Refer to
@@ -328,7 +426,11 @@ async def timeseries(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"location": location,
+ "mitigation_product": mitigation_product,
"name": name,
"normalization": normalization,
},
diff --git a/src/cloudflare/resources/radar/attacks/layer7/summary.py b/src/cloudflare/resources/radar/attacks/layer7/summary.py
index 9af8c3dd0d9..8eaccf847dd 100644
--- a/src/cloudflare/resources/radar/attacks/layer7/summary.py
+++ b/src/cloudflare/resources/radar/attacks/layer7/summary.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.attacks.layer7 import (
summary_get_params,
summary_ip_version_params,
@@ -58,26 +56,7 @@ def get(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -156,26 +135,7 @@ def http_method(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
@@ -271,26 +231,7 @@ def http_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -436,26 +377,7 @@ def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -601,26 +523,7 @@ def managed_rules(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -770,26 +673,7 @@ def mitigation_product(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -940,26 +824,7 @@ async def get(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -1038,26 +903,7 @@ async def http_method(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
@@ -1153,26 +999,7 @@ async def http_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -1318,26 +1145,7 @@ async def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -1483,26 +1291,7 @@ async def managed_rules(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -1652,26 +1441,7 @@ async def mitigation_product(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
diff --git a/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py
index 35c2b923a1b..47260ea2ee2 100644
--- a/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py
+++ b/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.attacks.layer7 import (
timeseries_group_get_params,
timeseries_group_industry_params,
@@ -65,26 +63,7 @@ def get(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -170,26 +149,7 @@ def http_method(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
@@ -296,26 +256,7 @@ def http_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -472,26 +413,7 @@ def industry(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -657,26 +579,7 @@ def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -833,26 +736,7 @@ def managed_rules(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -1013,26 +897,7 @@ def mitigation_product(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -1186,26 +1051,7 @@ def vertical(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -1381,26 +1227,7 @@ async def get(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -1486,26 +1313,7 @@ async def http_method(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
@@ -1612,26 +1420,7 @@ async def http_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -1788,26 +1577,7 @@ async def industry(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -1973,26 +1743,7 @@ async def ip_version(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -2149,26 +1900,7 @@ async def managed_rules(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -2329,26 +2061,7 @@ async def mitigation_product(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
@@ -2502,26 +2215,7 @@ async def vertical(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_method: List[
diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/ases.py b/src/cloudflare/resources/radar/attacks/layer7/top/ases.py
index f6d4c1a7476..f43f40bd92f 100644
--- a/src/cloudflare/resources/radar/attacks/layer7/top/ases.py
+++ b/src/cloudflare/resources/radar/attacks/layer7/top/ases.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.radar.attacks.layer7.top import ase_origin_params
from ......types.radar.attacks.layer7.top.ase_origin_response import AseOriginResponse
@@ -45,30 +43,70 @@ def origin(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -98,12 +136,20 @@ def origin(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
location: Array of comma separated list of locations (alpha-2 country codes). Start with
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
but includes results from PT.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -128,8 +174,12 @@ def origin(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
"location": location,
+ "mitigation_product": mitigation_product,
"name": name,
},
ase_origin_params.AseOriginParams,
@@ -154,30 +204,70 @@ async def origin(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -207,12 +297,20 @@ async def origin(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
location: Array of comma separated list of locations (alpha-2 country codes). Start with
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
but includes results from PT.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -237,8 +335,12 @@ async def origin(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
"location": location,
+ "mitigation_product": mitigation_product,
"name": name,
},
ase_origin_params.AseOriginParams,
diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py
index 033bda36fdf..7a7f9f867c7 100644
--- a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py
+++ b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.radar.attacks.layer7.top import location_origin_params, location_target_params
from ......types.radar.attacks.layer7.top.location_origin_response import LocationOriginResponse
from ......types.radar.attacks.layer7.top.location_target_response import LocationTargetResponse
@@ -47,29 +45,69 @@ def origin(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -103,8 +141,16 @@ def origin(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -130,7 +176,11 @@ def origin(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
+ "mitigation_product": mitigation_product,
"name": name,
},
location_origin_params.LocationOriginParams,
@@ -145,29 +195,69 @@ def target(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -197,8 +287,16 @@ def target(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -223,7 +321,11 @@ def target(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
+ "mitigation_product": mitigation_product,
"name": name,
},
location_target_params.LocationTargetParams,
@@ -249,29 +351,69 @@ async def origin(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -305,8 +447,16 @@ async def origin(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -332,7 +482,11 @@ async def origin(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
+ "mitigation_product": mitigation_product,
"name": name,
},
location_origin_params.LocationOriginParams,
@@ -347,29 +501,69 @@ async def target(
*,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -399,8 +593,16 @@ async def target(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -425,7 +627,11 @@ async def target(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
+ "mitigation_product": mitigation_product,
"name": name,
},
location_target_params.LocationTargetParams,
diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/top.py b/src/cloudflare/resources/radar/attacks/layer7/top/top.py
index 7ad637c5f91..685caa45d7b 100644
--- a/src/cloudflare/resources/radar/attacks/layer7/top/top.py
+++ b/src/cloudflare/resources/radar/attacks/layer7/top/top.py
@@ -38,9 +38,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.radar.attacks.layer7 import top_attacks_params, top_industry_params, top_vertical_params
from ......types.radar.attacks.layer7.top_attacks_response import TopAttacksResponse
from ......types.radar.attacks.layer7.top_industry_response import TopIndustryResponse
@@ -72,33 +70,73 @@ def attacks(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
limit_direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
limit_per_location: int | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
magnitude: Literal["AFFECTED_ZONES", "MITIGATED_REQUESTS"] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
normalization: Literal["PERCENTAGE", "MIN_MAX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -135,6 +173,12 @@ def attacks(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
limit_direction: Array of attack origin/target location attack limits. Together with
@@ -151,6 +195,8 @@ def attacks(
magnitude: Attack magnitude can be defined by total requests mitigated or by total zones
attacked.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
normalization: Normalization method applied. Refer to
@@ -179,11 +225,15 @@ def attacks(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
"limit_direction": limit_direction,
"limit_per_location": limit_per_location,
"location": location,
"magnitude": magnitude,
+ "mitigation_product": mitigation_product,
"name": name,
"normalization": normalization,
},
@@ -200,30 +250,70 @@ def industry(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -254,12 +344,20 @@ def industry(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
location: Array of comma separated list of locations (alpha-2 country codes). Start with
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
but includes results from PT.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -285,8 +383,12 @@ def industry(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
"location": location,
+ "mitigation_product": mitigation_product,
"name": name,
},
top_industry_params.TopIndustryParams,
@@ -302,30 +404,70 @@ def vertical(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -356,12 +498,20 @@ def vertical(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
location: Array of comma separated list of locations (alpha-2 country codes). Start with
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
but includes results from PT.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -387,8 +537,12 @@ def vertical(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
"location": location,
+ "mitigation_product": mitigation_product,
"name": name,
},
top_vertical_params.TopVerticalParams,
@@ -422,33 +576,73 @@ async def attacks(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
limit_direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
limit_per_location: int | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
magnitude: Literal["AFFECTED_ZONES", "MITIGATED_REQUESTS"] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
normalization: Literal["PERCENTAGE", "MIN_MAX"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -485,6 +679,12 @@ async def attacks(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
limit_direction: Array of attack origin/target location attack limits. Together with
@@ -501,6 +701,8 @@ async def attacks(
magnitude: Attack magnitude can be defined by total requests mitigated or by total zones
attacked.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
normalization: Normalization method applied. Refer to
@@ -529,11 +731,15 @@ async def attacks(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
"limit_direction": limit_direction,
"limit_per_location": limit_per_location,
"location": location,
"magnitude": magnitude,
+ "mitigation_product": mitigation_product,
"name": name,
"normalization": normalization,
},
@@ -550,30 +756,70 @@ async def industry(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -604,12 +850,20 @@ async def industry(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
location: Array of comma separated list of locations (alpha-2 country codes). Start with
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
but includes results from PT.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -635,8 +889,12 @@ async def industry(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
"location": location,
+ "mitigation_product": mitigation_product,
"name": name,
},
top_industry_params.TopIndustryParams,
@@ -652,30 +910,70 @@ async def vertical(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
+ date_range: List[str] | NotGiven = NOT_GIVEN,
+ date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
+ format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_method: List[
Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
+ "GET",
+ "POST",
+ "DELETE",
+ "PUT",
+ "HEAD",
+ "PURGE",
+ "OPTIONS",
+ "PROPFIND",
+ "MKCOL",
+ "PATCH",
+ "ACL",
+ "BCOPY",
+ "BDELETE",
+ "BMOVE",
+ "BPROPFIND",
+ "BPROPPATCH",
+ "CHECKIN",
+ "CHECKOUT",
+ "CONNECT",
+ "COPY",
+ "LABEL",
+ "LOCK",
+ "MERGE",
+ "MKACTIVITY",
+ "MKWORKSPACE",
+ "MOVE",
+ "NOTIFY",
+ "ORDERPATCH",
+ "POLL",
+ "PROPPATCH",
+ "REPORT",
+ "SEARCH",
+ "SUBSCRIBE",
+ "TRACE",
+ "UNCHECKOUT",
+ "UNLOCK",
+ "UNSUBSCRIBE",
+ "UPDATE",
+ "VERSIONCONTROL",
+ "BASELINECONTROL",
+ "XMSENUMATTS",
+ "RPC_OUT_DATA",
+ "RPC_IN_DATA",
+ "JSON",
+ "COOK",
+ "TRACK",
]
]
| NotGiven = NOT_GIVEN,
- date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
+ http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
+ ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
+ mitigation_product: List[
+ Literal[
+ "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
+ ]
+ ]
+ | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -706,12 +1004,20 @@ async def vertical(
format: Format results are returned in.
+ http_method: Filter for http method.
+
+ http_version: Filter for http version.
+
+ ip_version: Filter for ip version.
+
limit: Limit the number of objects in the response.
location: Array of comma separated list of locations (alpha-2 country codes). Start with
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
but includes results from PT.
+ mitigation_product: Array of L7 mitigation products.
+
name: Array of names that will be used to name the series in responses.
extra_headers: Send extra headers
@@ -737,8 +1043,12 @@ async def vertical(
"date_range": date_range,
"date_start": date_start,
"format": format,
+ "http_method": http_method,
+ "http_version": http_version,
+ "ip_version": ip_version,
"limit": limit,
"location": location,
+ "mitigation_product": mitigation_product,
"name": name,
},
top_vertical_params.TopVerticalParams,
diff --git a/src/cloudflare/resources/radar/bgp/bgp.py b/src/cloudflare/resources/radar/bgp/bgp.py
index 0b0c2aa8a06..b02292f89e7 100644
--- a/src/cloudflare/resources/radar/bgp/bgp.py
+++ b/src/cloudflare/resources/radar/bgp/bgp.py
@@ -65,9 +65,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.radar import bgp_timeseries_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from .hijacks.hijacks import HijacksResource, AsyncHijacksResource
from ....types.radar.bgp_timeseries_response import BGPTimeseriesResponse
@@ -109,26 +107,7 @@ def timeseries(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
asn: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
@@ -242,26 +221,7 @@ async def timeseries(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
asn: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
name: List[str] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/bgp/hijacks/events.py b/src/cloudflare/resources/radar/bgp/hijacks/events.py
index 6700a064beb..14867a2ca72 100644
--- a/src/cloudflare/resources/radar/bgp/hijacks/events.py
+++ b/src/cloudflare/resources/radar/bgp/hijacks/events.py
@@ -19,10 +19,7 @@
async_to_streamed_response_wrapper,
)
from .....pagination import SyncV4PagePagination, AsyncV4PagePagination
-from ....._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....._base_client import AsyncPaginator, make_request_options
from .....types.radar.bgp.hijacks import event_list_params
from .....types.radar.bgp.hijacks.event_list_response import EventListResponse
@@ -42,24 +39,7 @@ def list(
self,
*,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
event_id: int | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -174,24 +154,7 @@ def list(
self,
*,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
event_id: int | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/bgp/ips.py b/src/cloudflare/resources/radar/bgp/ips.py
index 62cfdacf32a..8ea07a04ee7 100644
--- a/src/cloudflare/resources/radar/bgp/ips.py
+++ b/src/cloudflare/resources/radar/bgp/ips.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.bgp import ip_timeseries_params
from ....types.radar.bgp.ip_timeseries_response import IPTimeseriesResponse
@@ -45,24 +43,7 @@ def timeseries(
*,
asn: str | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
include_delay: bool | NotGiven = NOT_GIVEN,
@@ -145,24 +126,7 @@ async def timeseries(
*,
asn: str | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
include_delay: bool | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/bgp/leaks/events.py b/src/cloudflare/resources/radar/bgp/leaks/events.py
index 92227d0287b..61b19dfeb74 100644
--- a/src/cloudflare/resources/radar/bgp/leaks/events.py
+++ b/src/cloudflare/resources/radar/bgp/leaks/events.py
@@ -19,10 +19,7 @@
async_to_streamed_response_wrapper,
)
from .....pagination import SyncV4PagePagination, AsyncV4PagePagination
-from ....._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ....._base_client import AsyncPaginator, make_request_options
from .....types.radar.bgp.leaks import event_list_params
from .....types.radar.bgp.leaks.event_list_response import EventListResponse
@@ -42,24 +39,7 @@ def list(
self,
*,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
event_id: int | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -157,24 +137,7 @@ def list(
self,
*,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
event_id: int | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/bgp/routes.py b/src/cloudflare/resources/radar/bgp/routes.py
index 104c66fdd4d..7f16e51043e 100644
--- a/src/cloudflare/resources/radar/bgp/routes.py
+++ b/src/cloudflare/resources/radar/bgp/routes.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.bgp import route_ases_params, route_moas_params, route_stats_params, route_pfx2as_params
from ....types.radar.bgp.route_ases_response import RouteAsesResponse
from ....types.radar.bgp.route_moas_response import RouteMoasResponse
diff --git a/src/cloudflare/resources/radar/bgp/top/ases.py b/src/cloudflare/resources/radar/bgp/top/ases.py
index c0b8db153c0..d0f5b339eed 100644
--- a/src/cloudflare/resources/radar/bgp/top/ases.py
+++ b/src/cloudflare/resources/radar/bgp/top/ases.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.bgp.top import ase_get_params, ase_prefixes_params
from .....types.radar.bgp.top.ase_get_response import AseGetResponse
from .....types.radar.bgp.top.ase_prefixes_response import AsePrefixesResponse
@@ -46,26 +44,7 @@ def get(
*,
asn: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -209,26 +188,7 @@ async def get(
*,
asn: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/bgp/top/top.py b/src/cloudflare/resources/radar/bgp/top/top.py
index 17826f992e9..b9ab93e865d 100644
--- a/src/cloudflare/resources/radar/bgp/top/top.py
+++ b/src/cloudflare/resources/radar/bgp/top/top.py
@@ -30,9 +30,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.bgp import top_prefixes_params
from .....types.radar.bgp.top_prefixes_response import TopPrefixesResponse
@@ -57,26 +55,7 @@ def prefixes(
*,
asn: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -167,26 +146,7 @@ async def prefixes(
*,
asn: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/datasets.py b/src/cloudflare/resources/radar/datasets.py
index 68a0bf3e5f1..632237f86d6 100644
--- a/src/cloudflare/resources/radar/datasets.py
+++ b/src/cloudflare/resources/radar/datasets.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.radar import dataset_list_params, dataset_download_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.radar.dataset_list_response import DatasetListResponse
from ...types.radar.dataset_download_response import DatasetDownloadResponse
diff --git a/src/cloudflare/resources/radar/dns/top.py b/src/cloudflare/resources/radar/dns/top.py
index ea775bb8d98..717d70919d0 100644
--- a/src/cloudflare/resources/radar/dns/top.py
+++ b/src/cloudflare/resources/radar/dns/top.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.dns import top_ases_params, top_locations_params
from ....types.radar.dns.top_ases_response import TopAsesResponse
from ....types.radar.dns.top_locations_response import TopLocationsResponse
@@ -48,26 +46,7 @@ def ases(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -155,26 +134,7 @@ def locations(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -271,26 +231,7 @@ async def ases(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -378,26 +319,7 @@ async def locations(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/email/routing/summary.py b/src/cloudflare/resources/radar/email/routing/summary.py
index 574def195a1..d6574ac8585 100644
--- a/src/cloudflare/resources/radar/email/routing/summary.py
+++ b/src/cloudflare/resources/radar/email/routing/summary.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.email.routing import (
summary_arc_params,
summary_spf_params,
@@ -56,26 +54,7 @@ def arc(
self,
*,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -157,26 +136,7 @@ def dkim(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN,
@@ -257,26 +217,7 @@ def dmarc(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN,
@@ -357,26 +298,7 @@ def encrypted(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -457,26 +379,7 @@ def ip_version(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -557,26 +460,7 @@ def spf(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -666,26 +550,7 @@ async def arc(
self,
*,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -767,26 +632,7 @@ async def dkim(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN,
@@ -867,26 +713,7 @@ async def dmarc(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN,
@@ -967,26 +794,7 @@ async def encrypted(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1067,26 +875,7 @@ async def ip_version(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1167,26 +956,7 @@ async def spf(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/email/routing/timeseries_groups.py b/src/cloudflare/resources/radar/email/routing/timeseries_groups.py
index bffe7e21af1..5a54a062f1b 100644
--- a/src/cloudflare/resources/radar/email/routing/timeseries_groups.py
+++ b/src/cloudflare/resources/radar/email/routing/timeseries_groups.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.email.routing import (
timeseries_group_arc_params,
timeseries_group_spf_params,
@@ -57,26 +55,7 @@ def arc(
*,
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -164,26 +143,7 @@ def dkim(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN,
@@ -270,26 +230,7 @@ def dmarc(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN,
@@ -376,26 +317,7 @@ def encrypted(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -482,26 +404,7 @@ def ip_version(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -588,26 +491,7 @@ def spf(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -703,26 +587,7 @@ async def arc(
*,
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -810,26 +675,7 @@ async def dkim(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN,
@@ -916,26 +762,7 @@ async def dmarc(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN,
@@ -1022,26 +849,7 @@ async def encrypted(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1128,26 +936,7 @@ async def ip_version(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1234,26 +1023,7 @@ async def spf(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/email/security/summary.py b/src/cloudflare/resources/radar/email/security/summary.py
index 65f3b3d8dd1..a31f5660e8c 100644
--- a/src/cloudflare/resources/radar/email/security/summary.py
+++ b/src/cloudflare/resources/radar/email/security/summary.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.email.security import (
summary_arc_params,
summary_spf_params,
@@ -62,26 +60,7 @@ def arc(
self,
*,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -159,26 +138,7 @@ def dkim(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -255,26 +215,7 @@ def dmarc(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -351,26 +292,7 @@ def malicious(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -451,26 +373,7 @@ def spam(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -551,26 +454,7 @@ def spf(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -647,26 +531,7 @@ def spoof(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -747,26 +612,7 @@ def threat_category(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -847,26 +693,7 @@ def tls_version(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -952,26 +779,7 @@ async def arc(
self,
*,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1049,26 +857,7 @@ async def dkim(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1145,26 +934,7 @@ async def dmarc(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1241,26 +1011,7 @@ async def malicious(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1341,26 +1092,7 @@ async def spam(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1441,26 +1173,7 @@ async def spf(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1537,26 +1250,7 @@ async def spoof(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1637,26 +1331,7 @@ async def threat_category(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1737,26 +1412,7 @@ async def tls_version(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/email/security/timeseries_groups.py b/src/cloudflare/resources/radar/email/security/timeseries_groups.py
index 12486f075c1..c957c81c55b 100644
--- a/src/cloudflare/resources/radar/email/security/timeseries_groups.py
+++ b/src/cloudflare/resources/radar/email/security/timeseries_groups.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.email.security import (
timeseries_group_arc_params,
timeseries_group_spf_params,
@@ -65,26 +63,7 @@ def arc(
*,
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -168,26 +147,7 @@ def dkim(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -270,26 +230,7 @@ def dmarc(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -372,26 +313,7 @@ def malicious(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -478,26 +400,7 @@ def spam(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -584,26 +487,7 @@ def spf(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -686,26 +570,7 @@ def spoof(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -792,26 +657,7 @@ def threat_category(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -900,26 +746,7 @@ def tls_version(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1011,26 +838,7 @@ async def arc(
*,
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1114,26 +922,7 @@ async def dkim(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1216,26 +1005,7 @@ async def dmarc(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1318,26 +1088,7 @@ async def malicious(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1424,26 +1175,7 @@ async def spam(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1530,26 +1262,7 @@ async def spf(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1632,26 +1345,7 @@ async def spoof(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1738,26 +1432,7 @@ async def threat_category(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -1846,26 +1521,7 @@ async def tls_version(
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py b/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py
index c9166b9619b..d6877ec1080 100644
--- a/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py
+++ b/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ......._wrappers import ResultWrapper
-from ......._base_client import (
- make_request_options,
-)
+from ......._base_client import make_request_options
from .......types.radar.email.security.top.tlds import malicious_get_params
from .......types.radar.email.security.top.tlds.malicious_get_response import MaliciousGetResponse
@@ -46,26 +44,7 @@ def get(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -169,26 +148,7 @@ async def get(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/spam.py b/src/cloudflare/resources/radar/email/security/top/tlds/spam.py
index 40886bdcb09..f97f98691f3 100644
--- a/src/cloudflare/resources/radar/email/security/top/tlds/spam.py
+++ b/src/cloudflare/resources/radar/email/security/top/tlds/spam.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ......._wrappers import ResultWrapper
-from ......._base_client import (
- make_request_options,
-)
+from ......._base_client import make_request_options
from .......types.radar.email.security.top.tlds import spam_get_params
from .......types.radar.email.security.top.tlds.spam_get_response import SpamGetResponse
@@ -46,26 +44,7 @@ def get(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -169,26 +148,7 @@ async def get(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py b/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py
index 49e04d09ce5..865a62aa66b 100644
--- a/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py
+++ b/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ......._wrappers import ResultWrapper
-from ......._base_client import (
- make_request_options,
-)
+from ......._base_client import make_request_options
from .......types.radar.email.security.top.tlds import spoof_get_params
from .......types.radar.email.security.top.tlds.spoof_get_response import SpoofGetResponse
@@ -46,26 +44,7 @@ def get(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -169,26 +148,7 @@ async def get(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py b/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py
index 8cc5c7e2b3b..23c281c9eb9 100644
--- a/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py
+++ b/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py
@@ -46,9 +46,7 @@
async_to_streamed_response_wrapper,
)
from ......._wrappers import ResultWrapper
-from ......._base_client import (
- make_request_options,
-)
+from ......._base_client import make_request_options
from .......types.radar.email.security.top import tld_get_params
from .......types.radar.email.security.top.tld_get_response import TldGetResponse
@@ -81,26 +79,7 @@ def get(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
@@ -213,26 +192,7 @@ async def get(
*,
arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/entities/asns.py b/src/cloudflare/resources/radar/entities/asns.py
index f0479103d73..4aa81250ed1 100644
--- a/src/cloudflare/resources/radar/entities/asns.py
+++ b/src/cloudflare/resources/radar/entities/asns.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.entities import asn_ip_params, asn_get_params, asn_rel_params, asn_list_params
from ....types.radar.entities.asn_ip_response import ASNIPResponse
from ....types.radar.entities.asn_get_response import ASNGetResponse
diff --git a/src/cloudflare/resources/radar/entities/entities.py b/src/cloudflare/resources/radar/entities/entities.py
index 7308469e676..291834dcb5e 100644
--- a/src/cloudflare/resources/radar/entities/entities.py
+++ b/src/cloudflare/resources/radar/entities/entities.py
@@ -38,9 +38,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.radar import entity_get_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.entity_get_response import EntityGetResponse
__all__ = ["EntitiesResource", "AsyncEntitiesResource"]
diff --git a/src/cloudflare/resources/radar/entities/locations.py b/src/cloudflare/resources/radar/entities/locations.py
index a05fa19ad17..fb242a70bbb 100644
--- a/src/cloudflare/resources/radar/entities/locations.py
+++ b/src/cloudflare/resources/radar/entities/locations.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.entities import location_get_params, location_list_params
from ....types.radar.entities.location_get_response import LocationGetResponse
from ....types.radar.entities.location_list_response import LocationListResponse
diff --git a/src/cloudflare/resources/radar/http/ases/ases.py b/src/cloudflare/resources/radar/http/ases/ases.py
index 4666cedea05..a275adbc00d 100644
--- a/src/cloudflare/resources/radar/http/ases/ases.py
+++ b/src/cloudflare/resources/radar/http/ases/ases.py
@@ -86,9 +86,7 @@
BrowserFamilyResourceWithStreamingResponse,
AsyncBrowserFamilyResourceWithStreamingResponse,
)
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http import ase_get_params
from .....types.radar.http.ase_get_response import AseGetResponse
@@ -144,26 +142,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -324,26 +303,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/ases/bot_class.py b/src/cloudflare/resources/radar/http/ases/bot_class.py
index d9665ba21c1..3f4493e31ea 100644
--- a/src/cloudflare/resources/radar/http/ases/bot_class.py
+++ b/src/cloudflare/resources/radar/http/ases/bot_class.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.ases import bot_class_get_params
from .....types.radar.http.ases.bot_class_get_response import BotClassGetResponse
@@ -48,26 +46,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -198,26 +177,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/ases/browser_family.py b/src/cloudflare/resources/radar/http/ases/browser_family.py
index 93f2d1bcc91..bcc9fb10647 100644
--- a/src/cloudflare/resources/radar/http/ases/browser_family.py
+++ b/src/cloudflare/resources/radar/http/ases/browser_family.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.ases import browser_family_get_params
from .....types.radar.http.ases.browser_family_get_response import BrowserFamilyGetResponse
@@ -48,26 +46,7 @@ def get(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -196,26 +175,7 @@ async def get(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/ases/device_type.py b/src/cloudflare/resources/radar/http/ases/device_type.py
index 3c74d3c5e77..13de5ce2c67 100644
--- a/src/cloudflare/resources/radar/http/ases/device_type.py
+++ b/src/cloudflare/resources/radar/http/ases/device_type.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.ases import device_type_get_params
from .....types.radar.http.ases.device_type_get_response import DeviceTypeGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN,
@@ -197,26 +176,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/ases/http_method.py b/src/cloudflare/resources/radar/http/ases/http_method.py
index bbf7d121de4..8a2527c126d 100644
--- a/src/cloudflare/resources/radar/http/ases/http_method.py
+++ b/src/cloudflare/resources/radar/http/ases/http_method.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.ases import http_method_get_params
from .....types.radar.http.ases.http_method_get_response import HTTPMethodGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -197,26 +176,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/ases/http_protocol.py b/src/cloudflare/resources/radar/http/ases/http_protocol.py
index 980a72d60c2..69342c498fe 100644
--- a/src/cloudflare/resources/radar/http/ases/http_protocol.py
+++ b/src/cloudflare/resources/radar/http/ases/http_protocol.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.ases import http_protocol_get_params
from .....types.radar.http.ases.http_protocol_get_response import HTTPProtocolGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -193,26 +172,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/ases/ip_version.py b/src/cloudflare/resources/radar/http/ases/ip_version.py
index 13d9e9d31a5..30c602493a0 100644
--- a/src/cloudflare/resources/radar/http/ases/ip_version.py
+++ b/src/cloudflare/resources/radar/http/ases/ip_version.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.ases import ip_version_get_params
from .....types.radar.http.ases.ip_version_get_response import IPVersionGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -197,26 +176,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/ases/os.py b/src/cloudflare/resources/radar/http/ases/os.py
index 33c0223fddf..f394fff7819 100644
--- a/src/cloudflare/resources/radar/http/ases/os.py
+++ b/src/cloudflare/resources/radar/http/ases/os.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.ases import os_get_params
from .....types.radar.http.ases.os_get_response import OSGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -196,26 +175,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/ases/tls_version.py b/src/cloudflare/resources/radar/http/ases/tls_version.py
index 8b002599f70..22ab58f84c1 100644
--- a/src/cloudflare/resources/radar/http/ases/tls_version.py
+++ b/src/cloudflare/resources/radar/http/ases/tls_version.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.ases import tls_version_get_params
from .....types.radar.http.ases.tls_version_get_response import TLSVersionGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -197,26 +176,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/http.py b/src/cloudflare/resources/radar/http/http.py
index 9f32cbdd054..725429a8b08 100644
--- a/src/cloudflare/resources/radar/http/http.py
+++ b/src/cloudflare/resources/radar/http/http.py
@@ -56,9 +56,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.radar import http_timeseries_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from .timeseries_groups import (
TimeseriesGroupsResource,
AsyncTimeseriesGroupsResource,
@@ -109,26 +107,7 @@ def timeseries(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -243,26 +222,7 @@ async def timeseries(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/bot_class.py b/src/cloudflare/resources/radar/http/locations/bot_class.py
index e19b3d4ee2e..943db404c22 100644
--- a/src/cloudflare/resources/radar/http/locations/bot_class.py
+++ b/src/cloudflare/resources/radar/http/locations/bot_class.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.locations import bot_class_get_params
from .....types.radar.http.locations.bot_class_get_response import BotClassGetResponse
@@ -48,26 +46,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -198,26 +177,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/browser_family.py b/src/cloudflare/resources/radar/http/locations/browser_family.py
index 42a6dfc2c94..3c5693a7e01 100644
--- a/src/cloudflare/resources/radar/http/locations/browser_family.py
+++ b/src/cloudflare/resources/radar/http/locations/browser_family.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.locations import browser_family_get_params
from .....types.radar.http.locations.browser_family_get_response import BrowserFamilyGetResponse
@@ -48,26 +46,7 @@ def get(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -197,26 +176,7 @@ async def get(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/device_type.py b/src/cloudflare/resources/radar/http/locations/device_type.py
index db12278738c..982e239c758 100644
--- a/src/cloudflare/resources/radar/http/locations/device_type.py
+++ b/src/cloudflare/resources/radar/http/locations/device_type.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.locations import device_type_get_params
from .....types.radar.http.locations.device_type_get_response import DeviceTypeGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN,
@@ -198,26 +177,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/http_method.py b/src/cloudflare/resources/radar/http/locations/http_method.py
index c524a57a4dc..54df750513e 100644
--- a/src/cloudflare/resources/radar/http/locations/http_method.py
+++ b/src/cloudflare/resources/radar/http/locations/http_method.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.locations import http_method_get_params
from .....types.radar.http.locations.http_method_get_response import HTTPMethodGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -198,26 +177,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/http_protocol.py b/src/cloudflare/resources/radar/http/locations/http_protocol.py
index 76b7013a00d..5c434792c6b 100644
--- a/src/cloudflare/resources/radar/http/locations/http_protocol.py
+++ b/src/cloudflare/resources/radar/http/locations/http_protocol.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.locations import http_protocol_get_params
from .....types.radar.http.locations.http_protocol_get_response import HTTPProtocolGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -194,26 +173,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/ip_version.py b/src/cloudflare/resources/radar/http/locations/ip_version.py
index 2eba4d7db23..c41ee965321 100644
--- a/src/cloudflare/resources/radar/http/locations/ip_version.py
+++ b/src/cloudflare/resources/radar/http/locations/ip_version.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.locations import ip_version_get_params
from .....types.radar.http.locations.ip_version_get_response import IPVersionGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -197,26 +176,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/locations.py b/src/cloudflare/resources/radar/http/locations/locations.py
index 0839a8f25ae..9055706a402 100644
--- a/src/cloudflare/resources/radar/http/locations/locations.py
+++ b/src/cloudflare/resources/radar/http/locations/locations.py
@@ -86,9 +86,7 @@
BrowserFamilyResourceWithStreamingResponse,
AsyncBrowserFamilyResourceWithStreamingResponse,
)
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http import location_get_params
from .....types.radar.http.location_get_response import LocationGetResponse
@@ -144,26 +142,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -324,26 +303,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/os.py b/src/cloudflare/resources/radar/http/locations/os.py
index 1b89d9d2a66..131769f84dc 100644
--- a/src/cloudflare/resources/radar/http/locations/os.py
+++ b/src/cloudflare/resources/radar/http/locations/os.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.locations import os_get_params
from .....types.radar.http.locations.os_get_response import OSGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -196,26 +175,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/locations/tls_version.py b/src/cloudflare/resources/radar/http/locations/tls_version.py
index c1fd6d54336..0ece72750aa 100644
--- a/src/cloudflare/resources/radar/http/locations/tls_version.py
+++ b/src/cloudflare/resources/radar/http/locations/tls_version.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.http.locations import tls_version_get_params
from .....types.radar.http.locations.tls_version_get_response import TLSVersionGetResponse
@@ -49,26 +47,7 @@ def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -197,26 +176,7 @@ async def get(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/summary.py b/src/cloudflare/resources/radar/http/summary.py
index 12defd73b00..59e479d8ce6 100644
--- a/src/cloudflare/resources/radar/http/summary.py
+++ b/src/cloudflare/resources/radar/http/summary.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.http import (
summary_os_params,
summary_bot_class_params,
@@ -62,26 +60,7 @@ def bot_class(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -189,26 +168,7 @@ def device_type(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN,
@@ -314,26 +274,7 @@ def http_protocol(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -438,26 +379,7 @@ def http_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -563,26 +485,7 @@ def ip_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -688,26 +591,7 @@ def os(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -812,26 +696,7 @@ def post_quantum(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -941,26 +806,7 @@ def tls_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1075,26 +921,7 @@ async def bot_class(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1202,26 +1029,7 @@ async def device_type(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN,
@@ -1327,26 +1135,7 @@ async def http_protocol(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1451,26 +1240,7 @@ async def http_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1576,26 +1346,7 @@ async def ip_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1701,26 +1452,7 @@ async def os(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1825,26 +1557,7 @@ async def post_quantum(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1954,26 +1667,7 @@ async def tls_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/timeseries_groups.py b/src/cloudflare/resources/radar/http/timeseries_groups.py
index 6dcf5fd060d..d1e43be8b77 100644
--- a/src/cloudflare/resources/radar/http/timeseries_groups.py
+++ b/src/cloudflare/resources/radar/http/timeseries_groups.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.http import (
timeseries_group_os_params,
timeseries_group_browser_params,
@@ -67,26 +65,7 @@ def bot_class(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -200,26 +179,7 @@ def browser(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -340,26 +300,7 @@ def browser_family(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -477,26 +418,7 @@ def device_type(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN,
@@ -607,26 +529,7 @@ def http_protocol(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -737,26 +640,7 @@ def http_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -868,26 +752,7 @@ def ip_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -999,26 +864,7 @@ def os(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1129,26 +975,7 @@ def post_quantum(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1264,26 +1091,7 @@ def tls_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1404,26 +1212,7 @@ async def bot_class(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1537,26 +1326,7 @@ async def browser(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1677,26 +1447,7 @@ async def browser_family(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -1814,26 +1565,7 @@ async def device_type(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN,
@@ -1944,26 +1676,7 @@ async def http_protocol(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -2074,26 +1787,7 @@ async def http_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -2205,26 +1899,7 @@ async def ip_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -2336,26 +2011,7 @@ async def os(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -2466,26 +2122,7 @@ async def post_quantum(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -2601,26 +2238,7 @@ async def tls_version(
bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/http/top.py b/src/cloudflare/resources/radar/http/top.py
index 7cd13feaadd..53c92195d72 100644
--- a/src/cloudflare/resources/radar/http/top.py
+++ b/src/cloudflare/resources/radar/http/top.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.http import top_browsers_params, top_browser_families_params
from ....types.radar.http.top_browsers_response import TopBrowsersResponse
from ....types.radar.http.top_browser_families_response import TopBrowserFamiliesResponse
@@ -49,26 +47,7 @@ def browser_families(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -187,26 +166,7 @@ def browsers(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -335,26 +295,7 @@ async def browser_families(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -473,26 +414,7 @@ async def browsers(
browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/netflows/netflows.py b/src/cloudflare/resources/radar/netflows/netflows.py
index b82345a5b43..c40b62990df 100644
--- a/src/cloudflare/resources/radar/netflows/netflows.py
+++ b/src/cloudflare/resources/radar/netflows/netflows.py
@@ -31,9 +31,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.radar import netflow_timeseries_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.netflow_timeseries_response import NetflowTimeseriesResponse
__all__ = ["NetflowsResource", "AsyncNetflowsResource"]
@@ -59,26 +57,7 @@ def timeseries(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -188,26 +167,7 @@ async def timeseries(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/netflows/top.py b/src/cloudflare/resources/radar/netflows/top.py
index 310e0a90323..a16cb4ef770 100644
--- a/src/cloudflare/resources/radar/netflows/top.py
+++ b/src/cloudflare/resources/radar/netflows/top.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.netflows import top_ases_params, top_locations_params
from ....types.radar.netflows.top_ases_response import TopAsesResponse
from ....types.radar.netflows.top_locations_response import TopLocationsResponse
@@ -47,26 +45,7 @@ def ases(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -150,26 +129,7 @@ def locations(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -263,26 +223,7 @@ async def ases(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -366,26 +307,7 @@ async def locations(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/quality/iqi.py b/src/cloudflare/resources/radar/quality/iqi.py
index 3a3c8ba4da3..ceb5522fc2c 100644
--- a/src/cloudflare/resources/radar/quality/iqi.py
+++ b/src/cloudflare/resources/radar/quality/iqi.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.quality import iqi_summary_params, iqi_timeseries_groups_params
from ....types.radar.quality.iqi_summary_response import IQISummaryResponse
from ....types.radar.quality.iqi_timeseries_groups_response import IQITimeseriesGroupsResponse
@@ -48,26 +46,7 @@ def summary(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -152,26 +131,7 @@ def timeseries_groups(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
interpolation: bool | NotGiven = NOT_GIVEN,
@@ -274,26 +234,7 @@ async def summary(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -378,26 +319,7 @@ async def timeseries_groups(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
interpolation: bool | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/quality/speed/speed.py b/src/cloudflare/resources/radar/quality/speed/speed.py
index 83d157cd559..58823322df2 100644
--- a/src/cloudflare/resources/radar/quality/speed/speed.py
+++ b/src/cloudflare/resources/radar/quality/speed/speed.py
@@ -30,9 +30,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.quality import speed_summary_params, speed_histogram_params
from .....types.radar.quality.speed_summary_response import SpeedSummaryResponse
from .....types.radar.quality.speed_histogram_response import SpeedHistogramResponse
diff --git a/src/cloudflare/resources/radar/quality/speed/top.py b/src/cloudflare/resources/radar/quality/speed/top.py
index 847810362a3..966bcea0eb9 100644
--- a/src/cloudflare/resources/radar/quality/speed/top.py
+++ b/src/cloudflare/resources/radar/quality/speed/top.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.radar.quality.speed import top_ases_params, top_locations_params
from .....types.radar.quality.speed.top_ases_response import TopAsesResponse
from .....types.radar.quality.speed.top_locations_response import TopLocationsResponse
diff --git a/src/cloudflare/resources/radar/radar.py b/src/cloudflare/resources/radar/radar.py
index c6859e8b70c..555d88e7bf5 100644
--- a/src/cloudflare/resources/radar/radar.py
+++ b/src/cloudflare/resources/radar/radar.py
@@ -134,13 +134,13 @@
TrafficAnomaliesResourceWithStreamingResponse,
AsyncTrafficAnomaliesResourceWithStreamingResponse,
)
-from .connection_tampering import (
- ConnectionTamperingResource,
- AsyncConnectionTamperingResource,
- ConnectionTamperingResourceWithRawResponse,
- AsyncConnectionTamperingResourceWithRawResponse,
- ConnectionTamperingResourceWithStreamingResponse,
- AsyncConnectionTamperingResourceWithStreamingResponse,
+from .tcp_resets_timeouts import (
+ TCPResetsTimeoutsResource,
+ AsyncTCPResetsTimeoutsResource,
+ TCPResetsTimeoutsResourceWithRawResponse,
+ AsyncTCPResetsTimeoutsResourceWithRawResponse,
+ TCPResetsTimeoutsResourceWithStreamingResponse,
+ AsyncTCPResetsTimeoutsResourceWithStreamingResponse,
)
from .annotations.annotations import AnnotationsResource, AsyncAnnotationsResource
from .verified_bots.verified_bots import VerifiedBotsResource, AsyncVerifiedBotsResource
@@ -182,10 +182,6 @@ def verified_bots(self) -> VerifiedBotsResource:
def as112(self) -> AS112Resource:
return AS112Resource(self._client)
- @cached_property
- def connection_tampering(self) -> ConnectionTamperingResource:
- return ConnectionTamperingResource(self._client)
-
@cached_property
def email(self) -> EmailResource:
return EmailResource(self._client)
@@ -214,6 +210,10 @@ def ranking(self) -> RankingResource:
def traffic_anomalies(self) -> TrafficAnomaliesResource:
return TrafficAnomaliesResource(self._client)
+ @cached_property
+ def tcp_resets_timeouts(self) -> TCPResetsTimeoutsResource:
+ return TCPResetsTimeoutsResource(self._client)
+
@cached_property
def with_raw_response(self) -> RadarResourceWithRawResponse:
return RadarResourceWithRawResponse(self)
@@ -256,10 +256,6 @@ def verified_bots(self) -> AsyncVerifiedBotsResource:
def as112(self) -> AsyncAS112Resource:
return AsyncAS112Resource(self._client)
- @cached_property
- def connection_tampering(self) -> AsyncConnectionTamperingResource:
- return AsyncConnectionTamperingResource(self._client)
-
@cached_property
def email(self) -> AsyncEmailResource:
return AsyncEmailResource(self._client)
@@ -288,6 +284,10 @@ def ranking(self) -> AsyncRankingResource:
def traffic_anomalies(self) -> AsyncTrafficAnomaliesResource:
return AsyncTrafficAnomaliesResource(self._client)
+ @cached_property
+ def tcp_resets_timeouts(self) -> AsyncTCPResetsTimeoutsResource:
+ return AsyncTCPResetsTimeoutsResource(self._client)
+
@cached_property
def with_raw_response(self) -> AsyncRadarResourceWithRawResponse:
return AsyncRadarResourceWithRawResponse(self)
@@ -333,10 +333,6 @@ def verified_bots(self) -> VerifiedBotsResourceWithRawResponse:
def as112(self) -> AS112ResourceWithRawResponse:
return AS112ResourceWithRawResponse(self._radar.as112)
- @cached_property
- def connection_tampering(self) -> ConnectionTamperingResourceWithRawResponse:
- return ConnectionTamperingResourceWithRawResponse(self._radar.connection_tampering)
-
@cached_property
def email(self) -> EmailResourceWithRawResponse:
return EmailResourceWithRawResponse(self._radar.email)
@@ -365,6 +361,10 @@ def ranking(self) -> RankingResourceWithRawResponse:
def traffic_anomalies(self) -> TrafficAnomaliesResourceWithRawResponse:
return TrafficAnomaliesResourceWithRawResponse(self._radar.traffic_anomalies)
+ @cached_property
+ def tcp_resets_timeouts(self) -> TCPResetsTimeoutsResourceWithRawResponse:
+ return TCPResetsTimeoutsResourceWithRawResponse(self._radar.tcp_resets_timeouts)
+
class AsyncRadarResourceWithRawResponse:
def __init__(self, radar: AsyncRadarResource) -> None:
@@ -402,10 +402,6 @@ def verified_bots(self) -> AsyncVerifiedBotsResourceWithRawResponse:
def as112(self) -> AsyncAS112ResourceWithRawResponse:
return AsyncAS112ResourceWithRawResponse(self._radar.as112)
- @cached_property
- def connection_tampering(self) -> AsyncConnectionTamperingResourceWithRawResponse:
- return AsyncConnectionTamperingResourceWithRawResponse(self._radar.connection_tampering)
-
@cached_property
def email(self) -> AsyncEmailResourceWithRawResponse:
return AsyncEmailResourceWithRawResponse(self._radar.email)
@@ -434,6 +430,10 @@ def ranking(self) -> AsyncRankingResourceWithRawResponse:
def traffic_anomalies(self) -> AsyncTrafficAnomaliesResourceWithRawResponse:
return AsyncTrafficAnomaliesResourceWithRawResponse(self._radar.traffic_anomalies)
+ @cached_property
+ def tcp_resets_timeouts(self) -> AsyncTCPResetsTimeoutsResourceWithRawResponse:
+ return AsyncTCPResetsTimeoutsResourceWithRawResponse(self._radar.tcp_resets_timeouts)
+
class RadarResourceWithStreamingResponse:
def __init__(self, radar: RadarResource) -> None:
@@ -471,10 +471,6 @@ def verified_bots(self) -> VerifiedBotsResourceWithStreamingResponse:
def as112(self) -> AS112ResourceWithStreamingResponse:
return AS112ResourceWithStreamingResponse(self._radar.as112)
- @cached_property
- def connection_tampering(self) -> ConnectionTamperingResourceWithStreamingResponse:
- return ConnectionTamperingResourceWithStreamingResponse(self._radar.connection_tampering)
-
@cached_property
def email(self) -> EmailResourceWithStreamingResponse:
return EmailResourceWithStreamingResponse(self._radar.email)
@@ -503,6 +499,10 @@ def ranking(self) -> RankingResourceWithStreamingResponse:
def traffic_anomalies(self) -> TrafficAnomaliesResourceWithStreamingResponse:
return TrafficAnomaliesResourceWithStreamingResponse(self._radar.traffic_anomalies)
+ @cached_property
+ def tcp_resets_timeouts(self) -> TCPResetsTimeoutsResourceWithStreamingResponse:
+ return TCPResetsTimeoutsResourceWithStreamingResponse(self._radar.tcp_resets_timeouts)
+
class AsyncRadarResourceWithStreamingResponse:
def __init__(self, radar: AsyncRadarResource) -> None:
@@ -540,10 +540,6 @@ def verified_bots(self) -> AsyncVerifiedBotsResourceWithStreamingResponse:
def as112(self) -> AsyncAS112ResourceWithStreamingResponse:
return AsyncAS112ResourceWithStreamingResponse(self._radar.as112)
- @cached_property
- def connection_tampering(self) -> AsyncConnectionTamperingResourceWithStreamingResponse:
- return AsyncConnectionTamperingResourceWithStreamingResponse(self._radar.connection_tampering)
-
@cached_property
def email(self) -> AsyncEmailResourceWithStreamingResponse:
return AsyncEmailResourceWithStreamingResponse(self._radar.email)
@@ -571,3 +567,7 @@ def ranking(self) -> AsyncRankingResourceWithStreamingResponse:
@cached_property
def traffic_anomalies(self) -> AsyncTrafficAnomaliesResourceWithStreamingResponse:
return AsyncTrafficAnomaliesResourceWithStreamingResponse(self._radar.traffic_anomalies)
+
+ @cached_property
+ def tcp_resets_timeouts(self) -> AsyncTCPResetsTimeoutsResourceWithStreamingResponse:
+ return AsyncTCPResetsTimeoutsResourceWithStreamingResponse(self._radar.tcp_resets_timeouts)
diff --git a/src/cloudflare/resources/radar/ranking/domain.py b/src/cloudflare/resources/radar/ranking/domain.py
index 3cc705d7ad6..c44caa95006 100644
--- a/src/cloudflare/resources/radar/ranking/domain.py
+++ b/src/cloudflare/resources/radar/ranking/domain.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.ranking import domain_get_params
from ....types.radar.ranking.domain_get_response import DomainGetResponse
diff --git a/src/cloudflare/resources/radar/ranking/ranking.py b/src/cloudflare/resources/radar/ranking/ranking.py
index fdbb566b907..0bfe61b8dc0 100644
--- a/src/cloudflare/resources/radar/ranking/ranking.py
+++ b/src/cloudflare/resources/radar/ranking/ranking.py
@@ -31,9 +31,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.radar import ranking_top_params, ranking_timeseries_groups_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.ranking_top_response import RankingTopResponse
from ....types.radar.ranking_timeseries_groups_response import RankingTimeseriesGroupsResponse
@@ -57,26 +55,7 @@ def timeseries_groups(
self,
*,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
domains: List[str] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
@@ -235,26 +214,7 @@ async def timeseries_groups(
self,
*,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
domains: List[str] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/search.py b/src/cloudflare/resources/radar/search.py
index d355e6deb96..18cb4de529c 100644
--- a/src/cloudflare/resources/radar/search.py
+++ b/src/cloudflare/resources/radar/search.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.radar import search_global_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.radar.search_global_response import SearchGlobalResponse
__all__ = ["SearchResource", "AsyncSearchResource"]
diff --git a/src/cloudflare/resources/radar/connection_tampering.py b/src/cloudflare/resources/radar/tcp_resets_timeouts.py
similarity index 69%
rename from src/cloudflare/resources/radar/connection_tampering.py
rename to src/cloudflare/resources/radar/tcp_resets_timeouts.py
index 76c5a4c8512..1a87837a3af 100644
--- a/src/cloudflare/resources/radar/connection_tampering.py
+++ b/src/cloudflare/resources/radar/tcp_resets_timeouts.py
@@ -22,24 +22,22 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.radar import connection_tampering_summary_params, connection_tampering_timeseries_groups_params
-from ..._base_client import (
- make_request_options,
-)
-from ...types.radar.connection_tampering_summary_response import ConnectionTamperingSummaryResponse
-from ...types.radar.connection_tampering_timeseries_groups_response import ConnectionTamperingTimeseriesGroupsResponse
+from ...types.radar import tcp_resets_timeout_summary_params, tcp_resets_timeout_timeseries_groups_params
+from ..._base_client import make_request_options
+from ...types.radar.tcp_resets_timeout_summary_response import TCPResetsTimeoutSummaryResponse
+from ...types.radar.tcp_resets_timeout_timeseries_groups_response import TCPResetsTimeoutTimeseriesGroupsResponse
-__all__ = ["ConnectionTamperingResource", "AsyncConnectionTamperingResource"]
+__all__ = ["TCPResetsTimeoutsResource", "AsyncTCPResetsTimeoutsResource"]
-class ConnectionTamperingResource(SyncAPIResource):
+class TCPResetsTimeoutsResource(SyncAPIResource):
@cached_property
- def with_raw_response(self) -> ConnectionTamperingResourceWithRawResponse:
- return ConnectionTamperingResourceWithRawResponse(self)
+ def with_raw_response(self) -> TCPResetsTimeoutsResourceWithRawResponse:
+ return TCPResetsTimeoutsResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> ConnectionTamperingResourceWithStreamingResponse:
- return ConnectionTamperingResourceWithStreamingResponse(self)
+ def with_streaming_response(self) -> TCPResetsTimeoutsResourceWithStreamingResponse:
+ return TCPResetsTimeoutsResourceWithStreamingResponse(self)
def summary(
self,
@@ -47,26 +45,7 @@ def summary(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -77,9 +56,10 @@ def summary(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ConnectionTamperingSummaryResponse:
+ ) -> TCPResetsTimeoutSummaryResponse:
"""
- Distribution of connection tampering types over a given time period.
+ Percentage distribution by connection stage of TCP connections terminated within
+ the first 10 packets by a reset or timeout, for a given time period.
Args:
asn: Array of comma separated list of ASNs, start with `-` to exclude from results.
@@ -115,7 +95,7 @@ def summary(
timeout: Override the client-level default timeout for this request, in seconds
"""
return self._get(
- "/radar/connection_tampering/summary",
+ "/radar/tcp_resets_timeouts/summary",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -132,11 +112,11 @@ def summary(
"location": location,
"name": name,
},
- connection_tampering_summary_params.ConnectionTamperingSummaryParams,
+ tcp_resets_timeout_summary_params.TCPResetsTimeoutSummaryParams,
),
- post_parser=ResultWrapper[ConnectionTamperingSummaryResponse]._unwrapper,
+ post_parser=ResultWrapper[TCPResetsTimeoutSummaryResponse]._unwrapper,
),
- cast_to=cast(Type[ConnectionTamperingSummaryResponse], ResultWrapper[ConnectionTamperingSummaryResponse]),
+ cast_to=cast(Type[TCPResetsTimeoutSummaryResponse], ResultWrapper[TCPResetsTimeoutSummaryResponse]),
)
def timeseries_groups(
@@ -146,26 +126,7 @@ def timeseries_groups(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -176,9 +137,10 @@ def timeseries_groups(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ConnectionTamperingTimeseriesGroupsResponse:
+ ) -> TCPResetsTimeoutTimeseriesGroupsResponse:
"""
- Distribution of connection tampering types over time.
+ Percentage distribution by connection stage of TCP connections terminated within
+ the first 10 packets by a reset or timeout, over time.
Args:
agg_interval: Aggregation interval results should be returned in (for example, in 15 minutes
@@ -218,7 +180,7 @@ def timeseries_groups(
timeout: Override the client-level default timeout for this request, in seconds
"""
return self._get(
- "/radar/connection_tampering/timeseries_groups",
+ "/radar/tcp_resets_timeouts/timeseries_groups",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -236,25 +198,24 @@ def timeseries_groups(
"location": location,
"name": name,
},
- connection_tampering_timeseries_groups_params.ConnectionTamperingTimeseriesGroupsParams,
+ tcp_resets_timeout_timeseries_groups_params.TCPResetsTimeoutTimeseriesGroupsParams,
),
- post_parser=ResultWrapper[ConnectionTamperingTimeseriesGroupsResponse]._unwrapper,
+ post_parser=ResultWrapper[TCPResetsTimeoutTimeseriesGroupsResponse]._unwrapper,
),
cast_to=cast(
- Type[ConnectionTamperingTimeseriesGroupsResponse],
- ResultWrapper[ConnectionTamperingTimeseriesGroupsResponse],
+ Type[TCPResetsTimeoutTimeseriesGroupsResponse], ResultWrapper[TCPResetsTimeoutTimeseriesGroupsResponse]
),
)
-class AsyncConnectionTamperingResource(AsyncAPIResource):
+class AsyncTCPResetsTimeoutsResource(AsyncAPIResource):
@cached_property
- def with_raw_response(self) -> AsyncConnectionTamperingResourceWithRawResponse:
- return AsyncConnectionTamperingResourceWithRawResponse(self)
+ def with_raw_response(self) -> AsyncTCPResetsTimeoutsResourceWithRawResponse:
+ return AsyncTCPResetsTimeoutsResourceWithRawResponse(self)
@cached_property
- def with_streaming_response(self) -> AsyncConnectionTamperingResourceWithStreamingResponse:
- return AsyncConnectionTamperingResourceWithStreamingResponse(self)
+ def with_streaming_response(self) -> AsyncTCPResetsTimeoutsResourceWithStreamingResponse:
+ return AsyncTCPResetsTimeoutsResourceWithStreamingResponse(self)
async def summary(
self,
@@ -262,26 +223,7 @@ async def summary(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -292,9 +234,10 @@ async def summary(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ConnectionTamperingSummaryResponse:
+ ) -> TCPResetsTimeoutSummaryResponse:
"""
- Distribution of connection tampering types over a given time period.
+ Percentage distribution by connection stage of TCP connections terminated within
+ the first 10 packets by a reset or timeout, for a given time period.
Args:
asn: Array of comma separated list of ASNs, start with `-` to exclude from results.
@@ -330,7 +273,7 @@ async def summary(
timeout: Override the client-level default timeout for this request, in seconds
"""
return await self._get(
- "/radar/connection_tampering/summary",
+ "/radar/tcp_resets_timeouts/summary",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -347,11 +290,11 @@ async def summary(
"location": location,
"name": name,
},
- connection_tampering_summary_params.ConnectionTamperingSummaryParams,
+ tcp_resets_timeout_summary_params.TCPResetsTimeoutSummaryParams,
),
- post_parser=ResultWrapper[ConnectionTamperingSummaryResponse]._unwrapper,
+ post_parser=ResultWrapper[TCPResetsTimeoutSummaryResponse]._unwrapper,
),
- cast_to=cast(Type[ConnectionTamperingSummaryResponse], ResultWrapper[ConnectionTamperingSummaryResponse]),
+ cast_to=cast(Type[TCPResetsTimeoutSummaryResponse], ResultWrapper[TCPResetsTimeoutSummaryResponse]),
)
async def timeseries_groups(
@@ -361,26 +304,7 @@ async def timeseries_groups(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
location: List[str] | NotGiven = NOT_GIVEN,
@@ -391,9 +315,10 @@ async def timeseries_groups(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ConnectionTamperingTimeseriesGroupsResponse:
+ ) -> TCPResetsTimeoutTimeseriesGroupsResponse:
"""
- Distribution of connection tampering types over time.
+ Percentage distribution by connection stage of TCP connections terminated within
+ the first 10 packets by a reset or timeout, over time.
Args:
agg_interval: Aggregation interval results should be returned in (for example, in 15 minutes
@@ -433,7 +358,7 @@ async def timeseries_groups(
timeout: Override the client-level default timeout for this request, in seconds
"""
return await self._get(
- "/radar/connection_tampering/timeseries_groups",
+ "/radar/tcp_resets_timeouts/timeseries_groups",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -451,60 +376,59 @@ async def timeseries_groups(
"location": location,
"name": name,
},
- connection_tampering_timeseries_groups_params.ConnectionTamperingTimeseriesGroupsParams,
+ tcp_resets_timeout_timeseries_groups_params.TCPResetsTimeoutTimeseriesGroupsParams,
),
- post_parser=ResultWrapper[ConnectionTamperingTimeseriesGroupsResponse]._unwrapper,
+ post_parser=ResultWrapper[TCPResetsTimeoutTimeseriesGroupsResponse]._unwrapper,
),
cast_to=cast(
- Type[ConnectionTamperingTimeseriesGroupsResponse],
- ResultWrapper[ConnectionTamperingTimeseriesGroupsResponse],
+ Type[TCPResetsTimeoutTimeseriesGroupsResponse], ResultWrapper[TCPResetsTimeoutTimeseriesGroupsResponse]
),
)
-class ConnectionTamperingResourceWithRawResponse:
- def __init__(self, connection_tampering: ConnectionTamperingResource) -> None:
- self._connection_tampering = connection_tampering
+class TCPResetsTimeoutsResourceWithRawResponse:
+ def __init__(self, tcp_resets_timeouts: TCPResetsTimeoutsResource) -> None:
+ self._tcp_resets_timeouts = tcp_resets_timeouts
self.summary = to_raw_response_wrapper(
- connection_tampering.summary,
+ tcp_resets_timeouts.summary,
)
self.timeseries_groups = to_raw_response_wrapper(
- connection_tampering.timeseries_groups,
+ tcp_resets_timeouts.timeseries_groups,
)
-class AsyncConnectionTamperingResourceWithRawResponse:
- def __init__(self, connection_tampering: AsyncConnectionTamperingResource) -> None:
- self._connection_tampering = connection_tampering
+class AsyncTCPResetsTimeoutsResourceWithRawResponse:
+ def __init__(self, tcp_resets_timeouts: AsyncTCPResetsTimeoutsResource) -> None:
+ self._tcp_resets_timeouts = tcp_resets_timeouts
self.summary = async_to_raw_response_wrapper(
- connection_tampering.summary,
+ tcp_resets_timeouts.summary,
)
self.timeseries_groups = async_to_raw_response_wrapper(
- connection_tampering.timeseries_groups,
+ tcp_resets_timeouts.timeseries_groups,
)
-class ConnectionTamperingResourceWithStreamingResponse:
- def __init__(self, connection_tampering: ConnectionTamperingResource) -> None:
- self._connection_tampering = connection_tampering
+class TCPResetsTimeoutsResourceWithStreamingResponse:
+ def __init__(self, tcp_resets_timeouts: TCPResetsTimeoutsResource) -> None:
+ self._tcp_resets_timeouts = tcp_resets_timeouts
self.summary = to_streamed_response_wrapper(
- connection_tampering.summary,
+ tcp_resets_timeouts.summary,
)
self.timeseries_groups = to_streamed_response_wrapper(
- connection_tampering.timeseries_groups,
+ tcp_resets_timeouts.timeseries_groups,
)
-class AsyncConnectionTamperingResourceWithStreamingResponse:
- def __init__(self, connection_tampering: AsyncConnectionTamperingResource) -> None:
- self._connection_tampering = connection_tampering
+class AsyncTCPResetsTimeoutsResourceWithStreamingResponse:
+ def __init__(self, tcp_resets_timeouts: AsyncTCPResetsTimeoutsResource) -> None:
+ self._tcp_resets_timeouts = tcp_resets_timeouts
self.summary = async_to_streamed_response_wrapper(
- connection_tampering.summary,
+ tcp_resets_timeouts.summary,
)
self.timeseries_groups = async_to_streamed_response_wrapper(
- connection_tampering.timeseries_groups,
+ tcp_resets_timeouts.timeseries_groups,
)
diff --git a/src/cloudflare/resources/radar/traffic_anomalies/locations.py b/src/cloudflare/resources/radar/traffic_anomalies/locations.py
index 851686c3964..9acfecc4ed8 100644
--- a/src/cloudflare/resources/radar/traffic_anomalies/locations.py
+++ b/src/cloudflare/resources/radar/traffic_anomalies/locations.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.traffic_anomalies import location_get_params
from ....types.radar.traffic_anomalies.location_get_response import LocationGetResponse
@@ -44,24 +42,7 @@ def get(
self,
*,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -135,24 +116,7 @@ async def get(
self,
*,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py
index 6a24039a9aa..3060a34f7ec 100644
--- a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py
+++ b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py
@@ -31,9 +31,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.radar import traffic_anomaly_get_params
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.traffic_anomaly_get_response import TrafficAnomalyGetResponse
__all__ = ["TrafficAnomaliesResource", "AsyncTrafficAnomaliesResource"]
@@ -57,24 +55,7 @@ def get(
*,
asn: int | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -164,24 +145,7 @@ async def get(
*,
asn: int | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
- date_range: Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: str | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/radar/verified_bots/top.py b/src/cloudflare/resources/radar/verified_bots/top.py
index 5b7b011891a..86e94bb809e 100644
--- a/src/cloudflare/resources/radar/verified_bots/top.py
+++ b/src/cloudflare/resources/radar/verified_bots/top.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.radar.verified_bots import top_bots_params, top_categories_params
from ....types.radar.verified_bots.top_bots_response import TopBotsResponse
from ....types.radar.verified_bots.top_categories_response import TopCategoriesResponse
@@ -47,26 +45,7 @@ def bots(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -149,26 +128,7 @@ def categories(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -262,26 +222,7 @@ async def bots(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
@@ -364,26 +305,7 @@ async def categories(
asn: List[str] | NotGiven = NOT_GIVEN,
continent: List[str] | NotGiven = NOT_GIVEN,
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
- date_range: List[
- Literal[
- "1d",
- "2d",
- "7d",
- "14d",
- "28d",
- "12w",
- "24w",
- "52w",
- "1dControl",
- "2dControl",
- "7dControl",
- "14dControl",
- "28dControl",
- "12wControl",
- "24wControl",
- ]
- ]
- | NotGiven = NOT_GIVEN,
+ date_range: List[str] | NotGiven = NOT_GIVEN,
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
limit: int | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/rate_limits.py b/src/cloudflare/resources/rate_limits.py
index 37c05e4d0ac..f7808df1006 100644
--- a/src/cloudflare/resources/rate_limits.py
+++ b/src/cloudflare/resources/rate_limits.py
@@ -22,10 +22,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.rate_limits import rate_limit_edit_params, rate_limit_list_params, rate_limit_create_params
from ..types.rate_limits.rate_limit import RateLimit
from ..types.rate_limits.rate_limit_get_response import RateLimitGetResponse
diff --git a/src/cloudflare/resources/rate_plans.py b/src/cloudflare/resources/rate_plans.py
index 3c90903292e..76a97e6d87e 100644
--- a/src/cloudflare/resources/rate_plans.py
+++ b/src/cloudflare/resources/rate_plans.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from .._wrappers import ResultWrapper
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.rate_plans.rate_plan_get_response import RatePlanGetResponse
__all__ = ["RatePlansResource", "AsyncRatePlansResource"]
diff --git a/src/cloudflare/resources/registrar/domains.py b/src/cloudflare/resources/registrar/domains.py
index 2dc5c9955fc..b75018f5fd2 100644
--- a/src/cloudflare/resources/registrar/domains.py
+++ b/src/cloudflare/resources/registrar/domains.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.registrar import domain_update_params
from ...types.registrar.domain import Domain
from ...types.registrar.domain_get_response import DomainGetResponse
diff --git a/src/cloudflare/resources/request_tracers/traces.py b/src/cloudflare/resources/request_tracers/traces.py
index 55f4b1ea22a..9934896d0a6 100644
--- a/src/cloudflare/resources/request_tracers/traces.py
+++ b/src/cloudflare/resources/request_tracers/traces.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.request_tracers import trace_create_params
from ...types.request_tracers.trace_create_response import TraceCreateResponse
diff --git a/src/cloudflare/resources/rules/lists/bulk_operations.py b/src/cloudflare/resources/rules/lists/bulk_operations.py
index b1c7f0b3399..2eb9982373c 100644
--- a/src/cloudflare/resources/rules/lists/bulk_operations.py
+++ b/src/cloudflare/resources/rules/lists/bulk_operations.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.rules.lists.bulk_operation_get_response import BulkOperationGetResponse
__all__ = ["BulkOperationsResource", "AsyncBulkOperationsResource"]
diff --git a/src/cloudflare/resources/rules/lists/items.py b/src/cloudflare/resources/rules/lists/items.py
index 7e101796486..ffa94113ad1 100644
--- a/src/cloudflare/resources/rules/lists/items.py
+++ b/src/cloudflare/resources/rules/lists/items.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncCursorPagination, AsyncCursorPagination
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.rules.lists import item_list_params, item_create_params, item_update_params
from ....types.rules.lists.item_get_response import ItemGetResponse
from ....types.rules.lists.item_create_response import ItemCreateResponse
diff --git a/src/cloudflare/resources/rules/lists/lists.py b/src/cloudflare/resources/rules/lists/lists.py
index 31f16742c7d..6b5bf038661 100644
--- a/src/cloudflare/resources/rules/lists/lists.py
+++ b/src/cloudflare/resources/rules/lists/lists.py
@@ -31,10 +31,7 @@
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.rules import list_create_params, list_update_params
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from .bulk_operations import (
BulkOperationsResource,
AsyncBulkOperationsResource,
diff --git a/src/cloudflare/resources/rulesets/phases/phases.py b/src/cloudflare/resources/rulesets/phases/phases.py
index 9f6a6755eb3..8522d55dc66 100644
--- a/src/cloudflare/resources/rulesets/phases/phases.py
+++ b/src/cloudflare/resources/rulesets/phases/phases.py
@@ -28,9 +28,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.rulesets import Phase, phase_update_params
from ....types.rulesets.phase import Phase
from ....types.rulesets.phase_get_response import PhaseGetResponse
diff --git a/src/cloudflare/resources/rulesets/phases/versions.py b/src/cloudflare/resources/rulesets/phases/versions.py
index 93fbc705d12..77ac256caa0 100644
--- a/src/cloudflare/resources/rulesets/phases/versions.py
+++ b/src/cloudflare/resources/rulesets/phases/versions.py
@@ -17,10 +17,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.rulesets import Phase
from ....types.rulesets.phase import Phase
from ....types.rulesets.phases.version_get_response import VersionGetResponse
diff --git a/src/cloudflare/resources/rulesets/rules.py b/src/cloudflare/resources/rulesets/rules.py
index ecf569b9efa..866e2ec673f 100644
--- a/src/cloudflare/resources/rulesets/rules.py
+++ b/src/cloudflare/resources/rulesets/rules.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.rulesets import rule_edit_params, rule_create_params
from ...types.rulesets.logging_param import LoggingParam
from ...types.rulesets.rule_edit_response import RuleEditResponse
diff --git a/src/cloudflare/resources/rulesets/rulesets.py b/src/cloudflare/resources/rulesets/rulesets.py
index 7347798d5fd..243a61e9e6b 100644
--- a/src/cloudflare/resources/rulesets/rulesets.py
+++ b/src/cloudflare/resources/rulesets/rulesets.py
@@ -46,10 +46,7 @@
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from .phases.phases import PhasesResource, AsyncPhasesResource
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.rulesets import Kind, Phase, ruleset_create_params, ruleset_update_params
from .versions.versions import VersionsResource, AsyncVersionsResource
from ...types.rulesets.kind import Kind
diff --git a/src/cloudflare/resources/rulesets/versions/by_tag.py b/src/cloudflare/resources/rulesets/versions/by_tag.py
index 7bc2877a38d..b08564f4b33 100644
--- a/src/cloudflare/resources/rulesets/versions/by_tag.py
+++ b/src/cloudflare/resources/rulesets/versions/by_tag.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.rulesets.versions.by_tag_get_response import ByTagGetResponse
__all__ = ["ByTagResource", "AsyncByTagResource"]
diff --git a/src/cloudflare/resources/rulesets/versions/versions.py b/src/cloudflare/resources/rulesets/versions/versions.py
index d19afd50795..408cc80d4aa 100644
--- a/src/cloudflare/resources/rulesets/versions/versions.py
+++ b/src/cloudflare/resources/rulesets/versions/versions.py
@@ -25,10 +25,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.rulesets.version_get_response import VersionGetResponse
from ....types.rulesets.version_list_response import VersionListResponse
diff --git a/src/cloudflare/resources/rum/rules.py b/src/cloudflare/resources/rum/rules.py
index f78f37f35bf..799901afab6 100644
--- a/src/cloudflare/resources/rum/rules.py
+++ b/src/cloudflare/resources/rum/rules.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.rum import rule_create_params, rule_update_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.rum.rum_rule import RUMRule
from ...types.rum.rule_list_response import RuleListResponse
from ...types.rum.rule_delete_response import RuleDeleteResponse
diff --git a/src/cloudflare/resources/rum/site_info.py b/src/cloudflare/resources/rum/site_info.py
index c70c62d4385..51c5e276022 100644
--- a/src/cloudflare/resources/rum/site_info.py
+++ b/src/cloudflare/resources/rum/site_info.py
@@ -23,10 +23,7 @@
from ..._wrappers import ResultWrapper
from ...types.rum import site_info_list_params, site_info_create_params, site_info_update_params
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.rum.site import Site
from ...types.rum.site_info_delete_response import SiteInfoDeleteResponse
diff --git a/src/cloudflare/resources/secondary_dns/acls.py b/src/cloudflare/resources/secondary_dns/acls.py
index ec5c89c6865..9266ddbfe07 100644
--- a/src/cloudflare/resources/secondary_dns/acls.py
+++ b/src/cloudflare/resources/secondary_dns/acls.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.secondary_dns import acl_create_params, acl_update_params
from ...types.secondary_dns.acl import ACL
from ...types.secondary_dns.acl_delete_response import ACLDeleteResponse
diff --git a/src/cloudflare/resources/secondary_dns/force_axfr.py b/src/cloudflare/resources/secondary_dns/force_axfr.py
index 406f15e5108..a2fb2cc46dd 100644
--- a/src/cloudflare/resources/secondary_dns/force_axfr.py
+++ b/src/cloudflare/resources/secondary_dns/force_axfr.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.secondary_dns import force_axfr_create_params
from ...types.secondary_dns.force_axfr import ForceAXFR
diff --git a/src/cloudflare/resources/secondary_dns/incoming.py b/src/cloudflare/resources/secondary_dns/incoming.py
index 1b6e5aa3d6a..ac41746a731 100644
--- a/src/cloudflare/resources/secondary_dns/incoming.py
+++ b/src/cloudflare/resources/secondary_dns/incoming.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.secondary_dns import incoming_create_params, incoming_update_params
from ...types.secondary_dns.incoming_get_response import IncomingGetResponse
from ...types.secondary_dns.incoming_create_response import IncomingCreateResponse
diff --git a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
index 080b2ce8f1a..8ad56fddf4e 100644
--- a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
+++ b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py
@@ -28,9 +28,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.secondary_dns import (
outgoing_create_params,
outgoing_enable_params,
diff --git a/src/cloudflare/resources/secondary_dns/outgoing/status.py b/src/cloudflare/resources/secondary_dns/outgoing/status.py
index 6a99e783349..da0505a75ac 100644
--- a/src/cloudflare/resources/secondary_dns/outgoing/status.py
+++ b/src/cloudflare/resources/secondary_dns/outgoing/status.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.secondary_dns.enable_transfer import EnableTransfer
__all__ = ["StatusResource", "AsyncStatusResource"]
diff --git a/src/cloudflare/resources/secondary_dns/peers.py b/src/cloudflare/resources/secondary_dns/peers.py
index 843cf963c96..b8f485bcde8 100644
--- a/src/cloudflare/resources/secondary_dns/peers.py
+++ b/src/cloudflare/resources/secondary_dns/peers.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.secondary_dns import peer_create_params, peer_update_params
from ...types.secondary_dns.peer import Peer
from ...types.secondary_dns.peer_delete_response import PeerDeleteResponse
diff --git a/src/cloudflare/resources/secondary_dns/tsigs.py b/src/cloudflare/resources/secondary_dns/tsigs.py
index 90ba72b0053..6b1caa49fe6 100644
--- a/src/cloudflare/resources/secondary_dns/tsigs.py
+++ b/src/cloudflare/resources/secondary_dns/tsigs.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.secondary_dns import tsig_create_params, tsig_update_params
from ...types.secondary_dns.tsig import TSIG
from ...types.secondary_dns.tsig_delete_response import TSIGDeleteResponse
diff --git a/src/cloudflare/resources/snippets/content.py b/src/cloudflare/resources/snippets/content.py
index a0b6d8f5a28..562ba2647bd 100644
--- a/src/cloudflare/resources/snippets/content.py
+++ b/src/cloudflare/resources/snippets/content.py
@@ -17,9 +17,7 @@
async_to_custom_raw_response_wrapper,
async_to_custom_streamed_response_wrapper,
)
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
__all__ = ["ContentResource", "AsyncContentResource"]
diff --git a/src/cloudflare/resources/snippets/rules.py b/src/cloudflare/resources/snippets/rules.py
index 5405a709a12..71d202e94fd 100644
--- a/src/cloudflare/resources/snippets/rules.py
+++ b/src/cloudflare/resources/snippets/rules.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.snippets import rule_update_params
from ...types.snippets.rule_list_response import RuleListResponse
from ...types.snippets.rule_update_response import RuleUpdateResponse
diff --git a/src/cloudflare/resources/snippets/snippets.py b/src/cloudflare/resources/snippets/snippets.py
index 5c1a0bb75b0..b1633698058 100644
--- a/src/cloudflare/resources/snippets/snippets.py
+++ b/src/cloudflare/resources/snippets/snippets.py
@@ -37,10 +37,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.snippets import snippet_update_params
from ...types.snippets.snippet import Snippet
from ...types.snippets.snippet_delete_response import SnippetDeleteResponse
@@ -101,6 +98,10 @@ def update(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
if not snippet_name:
raise ValueError(f"Expected a non-empty value for `snippet_name` but received {snippet_name!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._put(
f"/zones/{zone_id}/snippets/{snippet_name}",
body=maybe_transform(
@@ -294,6 +295,10 @@ async def update(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
if not snippet_name:
raise ValueError(f"Expected a non-empty value for `snippet_name` but received {snippet_name!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._put(
f"/zones/{zone_id}/snippets/{snippet_name}",
body=await async_maybe_transform(
diff --git a/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py b/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py
index b8a7869260e..2829e3ac981 100644
--- a/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py
+++ b/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.spectrum.analytics.aggregates import current_get_params
from .....types.spectrum.analytics.aggregates.current_get_response import CurrentGetResponse
diff --git a/src/cloudflare/resources/spectrum/analytics/events/bytimes.py b/src/cloudflare/resources/spectrum/analytics/events/bytimes.py
index 81fd0a6f738..19ab3a93512 100644
--- a/src/cloudflare/resources/spectrum/analytics/events/bytimes.py
+++ b/src/cloudflare/resources/spectrum/analytics/events/bytimes.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.spectrum.analytics.events import bytime_get_params
from .....types.spectrum.analytics.dimension import Dimension
from .....types.spectrum.analytics.events.bytime_get_response import BytimeGetResponse
diff --git a/src/cloudflare/resources/spectrum/analytics/events/summaries.py b/src/cloudflare/resources/spectrum/analytics/events/summaries.py
index 23badfc934c..1b11361a151 100644
--- a/src/cloudflare/resources/spectrum/analytics/events/summaries.py
+++ b/src/cloudflare/resources/spectrum/analytics/events/summaries.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.spectrum.analytics.events import summary_get_params
from .....types.spectrum.analytics.dimension import Dimension
from .....types.spectrum.analytics.events.summary_get_response import SummaryGetResponse
diff --git a/src/cloudflare/resources/spectrum/apps.py b/src/cloudflare/resources/spectrum/apps.py
index 2d29796de6e..d27fa0e0774 100644
--- a/src/cloudflare/resources/spectrum/apps.py
+++ b/src/cloudflare/resources/spectrum/apps.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.spectrum import app_list_params, app_create_params, app_update_params
from ...types.spectrum.dns_param import DNSParam
from ...types.spectrum.edge_ips_param import EdgeIPsParam
diff --git a/src/cloudflare/resources/speed/availabilities.py b/src/cloudflare/resources/speed/availabilities.py
index 930d106c8ef..91aff6050d5 100644
--- a/src/cloudflare/resources/speed/availabilities.py
+++ b/src/cloudflare/resources/speed/availabilities.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.speed.availability import Availability
__all__ = ["AvailabilitiesResource", "AsyncAvailabilitiesResource"]
diff --git a/src/cloudflare/resources/speed/pages/pages.py b/src/cloudflare/resources/speed/pages/pages.py
index 7eab8c6dcf9..26f747222f6 100644
--- a/src/cloudflare/resources/speed/pages/pages.py
+++ b/src/cloudflare/resources/speed/pages/pages.py
@@ -32,10 +32,7 @@
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.speed import page_trend_params
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.speed.trend import Trend
from ....types.speed.page_list_response import PageListResponse
diff --git a/src/cloudflare/resources/speed/pages/tests.py b/src/cloudflare/resources/speed/pages/tests.py
index 20a1a66f7af..d8d7c846c1b 100644
--- a/src/cloudflare/resources/speed/pages/tests.py
+++ b/src/cloudflare/resources/speed/pages/tests.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.speed.pages import test_list_params, test_create_params, test_delete_params
from ....types.speed.pages.test import Test
from ....types.speed.pages.test_list_response import TestListResponse
diff --git a/src/cloudflare/resources/speed/schedule.py b/src/cloudflare/resources/speed/schedule.py
index 1bc4cdf214a..55c89ed3389 100644
--- a/src/cloudflare/resources/speed/schedule.py
+++ b/src/cloudflare/resources/speed/schedule.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.speed import schedule_get_params, schedule_create_params, schedule_delete_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.speed.schedule import Schedule
from ...types.speed.schedule_create_response import ScheduleCreateResponse
from ...types.speed.schedule_delete_response import ScheduleDeleteResponse
diff --git a/src/cloudflare/resources/ssl/analyze.py b/src/cloudflare/resources/ssl/analyze.py
index 7736fb778a3..2396db10045 100644
--- a/src/cloudflare/resources/ssl/analyze.py
+++ b/src/cloudflare/resources/ssl/analyze.py
@@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.ssl import analyze_create_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.custom_hostnames import BundleMethod
from ...types.ssl.analyze_create_response import AnalyzeCreateResponse
from ...types.custom_hostnames.bundle_method import BundleMethod
diff --git a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
index b1d841e10ca..af6eb2e0c63 100644
--- a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
+++ b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
@@ -39,10 +39,7 @@
from ...._wrappers import ResultWrapper
from ....types.ssl import certificate_pack_edit_params, certificate_pack_list_params
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.ssl.certificate_pack_get_response import CertificatePackGetResponse
from ....types.ssl.certificate_pack_edit_response import CertificatePackEditResponse
from ....types.ssl.certificate_pack_delete_response import CertificatePackDeleteResponse
diff --git a/src/cloudflare/resources/ssl/certificate_packs/order.py b/src/cloudflare/resources/ssl/certificate_packs/order.py
index 2f1e7e4e871..9c9079cf17d 100644
--- a/src/cloudflare/resources/ssl/certificate_packs/order.py
+++ b/src/cloudflare/resources/ssl/certificate_packs/order.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.ssl.host import Host
from ....types.ssl.certificate_packs import order_create_params
from ....types.ssl.certificate_packs.order_create_response import OrderCreateResponse
diff --git a/src/cloudflare/resources/ssl/certificate_packs/quota.py b/src/cloudflare/resources/ssl/certificate_packs/quota.py
index c641a1906e8..c9a985900f6 100644
--- a/src/cloudflare/resources/ssl/certificate_packs/quota.py
+++ b/src/cloudflare/resources/ssl/certificate_packs/quota.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.ssl.certificate_packs.quota_get_response import QuotaGetResponse
__all__ = ["QuotaResource", "AsyncQuotaResource"]
diff --git a/src/cloudflare/resources/ssl/recommendations.py b/src/cloudflare/resources/ssl/recommendations.py
index c94199658f6..b66214bd700 100644
--- a/src/cloudflare/resources/ssl/recommendations.py
+++ b/src/cloudflare/resources/ssl/recommendations.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.ssl.recommendation_get_response import RecommendationGetResponse
__all__ = ["RecommendationsResource", "AsyncRecommendationsResource"]
diff --git a/src/cloudflare/resources/ssl/universal/settings.py b/src/cloudflare/resources/ssl/universal/settings.py
index b50248a086a..a595d0c0d46 100644
--- a/src/cloudflare/resources/ssl/universal/settings.py
+++ b/src/cloudflare/resources/ssl/universal/settings.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.ssl.universal import setting_edit_params
from ....types.ssl.universal.universal_ssl_settings import UniversalSSLSettings
diff --git a/src/cloudflare/resources/ssl/verification.py b/src/cloudflare/resources/ssl/verification.py
index 832d313ec8b..6c5f9e0da7a 100644
--- a/src/cloudflare/resources/ssl/verification.py
+++ b/src/cloudflare/resources/ssl/verification.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.ssl import verification_get_params, verification_edit_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.ssl.verification_get_response import VerificationGetResponse
from ...types.ssl.verification_edit_response import VerificationEditResponse
diff --git a/src/cloudflare/resources/storage/analytics.py b/src/cloudflare/resources/storage/analytics.py
index dfef4b35536..fa6849c8620 100644
--- a/src/cloudflare/resources/storage/analytics.py
+++ b/src/cloudflare/resources/storage/analytics.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.storage import analytics_list_params, analytics_stored_params
from ...types.storage.schema import Schema
from ...types.storage.components import Components
diff --git a/src/cloudflare/resources/stream/audio_tracks.py b/src/cloudflare/resources/stream/audio_tracks.py
index 5d61f6567e7..9f62246419c 100644
--- a/src/cloudflare/resources/stream/audio_tracks.py
+++ b/src/cloudflare/resources/stream/audio_tracks.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import audio_track_copy_params, audio_track_edit_params
from ...types.stream.audio import Audio
from ...types.stream.audio_track_get_response import AudioTrackGetResponse
diff --git a/src/cloudflare/resources/stream/captions/captions.py b/src/cloudflare/resources/stream/captions/captions.py
index 516845ba8d0..c677efa56fd 100644
--- a/src/cloudflare/resources/stream/captions/captions.py
+++ b/src/cloudflare/resources/stream/captions/captions.py
@@ -24,9 +24,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from .language.language import LanguageResource, AsyncLanguageResource
from ....types.stream.caption_get_response import CaptionGetResponse
diff --git a/src/cloudflare/resources/stream/captions/language/language.py b/src/cloudflare/resources/stream/captions/language/language.py
index 3c1bfec470e..d14623d3ff0 100644
--- a/src/cloudflare/resources/stream/captions/language/language.py
+++ b/src/cloudflare/resources/stream/captions/language/language.py
@@ -28,9 +28,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.stream.caption import Caption
from .....types.stream.captions import language_update_params
from .....types.stream.captions.language_delete_response import LanguageDeleteResponse
@@ -141,6 +139,10 @@ def update(
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not language:
raise ValueError(f"Expected a non-empty value for `language` but received {language!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._put(
f"/accounts/{account_id}/stream/{identifier}/captions/{language}",
body=maybe_transform({"file": file}, language_update_params.LanguageUpdateParams),
@@ -356,6 +358,10 @@ async def update(
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
if not language:
raise ValueError(f"Expected a non-empty value for `language` but received {language!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._put(
f"/accounts/{account_id}/stream/{identifier}/captions/{language}",
body=await async_maybe_transform({"file": file}, language_update_params.LanguageUpdateParams),
diff --git a/src/cloudflare/resources/stream/captions/language/vtt.py b/src/cloudflare/resources/stream/captions/language/vtt.py
index 3136e929c75..2d9bc01af2a 100644
--- a/src/cloudflare/resources/stream/captions/language/vtt.py
+++ b/src/cloudflare/resources/stream/captions/language/vtt.py
@@ -13,9 +13,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
__all__ = ["VttResource", "AsyncVttResource"]
diff --git a/src/cloudflare/resources/stream/clip.py b/src/cloudflare/resources/stream/clip.py
index 9c34d5ab4aa..f7cfef075ae 100644
--- a/src/cloudflare/resources/stream/clip.py
+++ b/src/cloudflare/resources/stream/clip.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import clip_create_params
from ...types.stream.clip import Clip
from ...types.stream.allowed_origins import AllowedOrigins
diff --git a/src/cloudflare/resources/stream/copy.py b/src/cloudflare/resources/stream/copy.py
index e6b85f79d95..ba3e519005d 100644
--- a/src/cloudflare/resources/stream/copy.py
+++ b/src/cloudflare/resources/stream/copy.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import copy_create_params
from ...types.stream.video import Video
from ...types.stream.allowed_origins import AllowedOrigins
diff --git a/src/cloudflare/resources/stream/direct_upload.py b/src/cloudflare/resources/stream/direct_upload.py
index efa26368eeb..774c9b4ce11 100644
--- a/src/cloudflare/resources/stream/direct_upload.py
+++ b/src/cloudflare/resources/stream/direct_upload.py
@@ -22,9 +22,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import direct_upload_create_params
from ...types.stream.allowed_origins import AllowedOrigins
from ...types.stream.direct_upload_create_response import DirectUploadCreateResponse
diff --git a/src/cloudflare/resources/stream/downloads.py b/src/cloudflare/resources/stream/downloads.py
index 531b646b1bc..77a98568ce5 100644
--- a/src/cloudflare/resources/stream/downloads.py
+++ b/src/cloudflare/resources/stream/downloads.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import download_create_params
from ...types.stream.download_get_response import DownloadGetResponse
from ...types.stream.download_create_response import DownloadCreateResponse
diff --git a/src/cloudflare/resources/stream/embed.py b/src/cloudflare/resources/stream/embed.py
index 4f1dc61f770..f63b5db6f43 100644
--- a/src/cloudflare/resources/stream/embed.py
+++ b/src/cloudflare/resources/stream/embed.py
@@ -13,9 +13,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
__all__ = ["EmbedResource", "AsyncEmbedResource"]
diff --git a/src/cloudflare/resources/stream/keys.py b/src/cloudflare/resources/stream/keys.py
index dee3531fb43..2c915fc8e2f 100644
--- a/src/cloudflare/resources/stream/keys.py
+++ b/src/cloudflare/resources/stream/keys.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import key_create_params
from ...types.stream.keys import Keys
from ...types.stream.key_get_response import KeyGetResponse
diff --git a/src/cloudflare/resources/stream/live_inputs/live_inputs.py b/src/cloudflare/resources/stream/live_inputs/live_inputs.py
index 442706aab62..1bf4fe3446d 100644
--- a/src/cloudflare/resources/stream/live_inputs/live_inputs.py
+++ b/src/cloudflare/resources/stream/live_inputs/live_inputs.py
@@ -28,9 +28,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.stream import live_input_list_params, live_input_create_params, live_input_update_params
from ....types.stream.live_input import LiveInput
from ....types.stream.live_input_list_response import LiveInputListResponse
diff --git a/src/cloudflare/resources/stream/live_inputs/outputs.py b/src/cloudflare/resources/stream/live_inputs/outputs.py
index af1464d04a7..ef72ec551ff 100644
--- a/src/cloudflare/resources/stream/live_inputs/outputs.py
+++ b/src/cloudflare/resources/stream/live_inputs/outputs.py
@@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.stream.live_inputs import output_create_params, output_update_params
from ....types.stream.live_inputs.output import Output
diff --git a/src/cloudflare/resources/stream/stream.py b/src/cloudflare/resources/stream/stream.py
index 5c7449705e8..ce47eef83bc 100644
--- a/src/cloudflare/resources/stream/stream.py
+++ b/src/cloudflare/resources/stream/stream.py
@@ -128,10 +128,7 @@
DirectUploadResourceWithStreamingResponse,
AsyncDirectUploadResourceWithStreamingResponse,
)
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.stream import stream_list_params, stream_create_params
from .captions.captions import CaptionsResource, AsyncCaptionsResource
from ...types.stream.video import Video
diff --git a/src/cloudflare/resources/stream/token.py b/src/cloudflare/resources/stream/token.py
index c52d130dd39..1a4d637d5ea 100644
--- a/src/cloudflare/resources/stream/token.py
+++ b/src/cloudflare/resources/stream/token.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import token_create_params
from ...types.stream.token_create_response import TokenCreateResponse
diff --git a/src/cloudflare/resources/stream/videos.py b/src/cloudflare/resources/stream/videos.py
index f8ccd3c97a5..a1dcd2db874 100644
--- a/src/cloudflare/resources/stream/videos.py
+++ b/src/cloudflare/resources/stream/videos.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import video_storage_usage_params
from ...types.stream.video_storage_usage_response import VideoStorageUsageResponse
diff --git a/src/cloudflare/resources/stream/watermarks.py b/src/cloudflare/resources/stream/watermarks.py
index bb80780d25d..73ff089d577 100644
--- a/src/cloudflare/resources/stream/watermarks.py
+++ b/src/cloudflare/resources/stream/watermarks.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.stream import watermark_create_params
from ...types.stream.watermark import Watermark
from ...types.stream.watermark_delete_response import WatermarkDeleteResponse
@@ -96,6 +93,10 @@ def create(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return self._post(
f"/accounts/{account_id}/stream/watermarks",
body=maybe_transform(
@@ -313,6 +314,10 @@ async def create(
"""
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
+ # It should be noted that the actual Content-Type header that will be
+ # sent to the server will contain a `boundary` parameter, e.g.
+ # multipart/form-data; boundary=---abc--
+ extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
return await self._post(
f"/accounts/{account_id}/stream/watermarks",
body=await async_maybe_transform(
diff --git a/src/cloudflare/resources/stream/webhooks.py b/src/cloudflare/resources/stream/webhooks.py
index 2f3879b43c1..174fdbe1f2f 100644
--- a/src/cloudflare/resources/stream/webhooks.py
+++ b/src/cloudflare/resources/stream/webhooks.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.stream import webhook_update_params
from ...types.stream.webhook_get_response import WebhookGetResponse
from ...types.stream.webhook_delete_response import WebhookDeleteResponse
diff --git a/src/cloudflare/resources/subscriptions.py b/src/cloudflare/resources/subscriptions.py
index 2d30e1af043..7bde4c878d3 100644
--- a/src/cloudflare/resources/subscriptions.py
+++ b/src/cloudflare/resources/subscriptions.py
@@ -22,10 +22,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncSinglePage, AsyncSinglePage
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.subscriptions import subscription_create_params, subscription_update_params
from ..types.user.subscription import Subscription
from ..types.user.rate_plan_param import RatePlanParam
diff --git a/src/cloudflare/resources/url_normalization.py b/src/cloudflare/resources/url_normalization.py
index 3ec4291906e..6fc393df1ae 100644
--- a/src/cloudflare/resources/url_normalization.py
+++ b/src/cloudflare/resources/url_normalization.py
@@ -17,9 +17,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
-from .._base_client import (
- make_request_options,
-)
+from .._base_client import make_request_options
from ..types.url_normalization import url_normalization_update_params
from ..types.url_normalization.url_normalization_get_response import URLNormalizationGetResponse
from ..types.url_normalization.url_normalization_update_response import URLNormalizationUpdateResponse
diff --git a/src/cloudflare/resources/url_scanner/scans.py b/src/cloudflare/resources/url_scanner/scans.py
index 54764c566f1..36fe07465c1 100644
--- a/src/cloudflare/resources/url_scanner/scans.py
+++ b/src/cloudflare/resources/url_scanner/scans.py
@@ -29,9 +29,7 @@
async_to_custom_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.url_scanner import scan_get_params, scan_create_params, scan_screenshot_params
from ...types.url_scanner.scan_get_response import ScanGetResponse
from ...types.url_scanner.scan_har_response import ScanHarResponse
diff --git a/src/cloudflare/resources/url_scanner/url_scanner.py b/src/cloudflare/resources/url_scanner/url_scanner.py
index 92707d1f132..4c7bf2e1059 100644
--- a/src/cloudflare/resources/url_scanner/url_scanner.py
+++ b/src/cloudflare/resources/url_scanner/url_scanner.py
@@ -29,9 +29,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.url_scanner import url_scanner_scan_params
from ...types.url_scanner.url_scanner_scan_response import URLScannerScanResponse
@@ -59,6 +57,7 @@ def scan(
asn: str | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
+ hash: str | NotGiven = NOT_GIVEN,
hostname: str | NotGiven = NOT_GIVEN,
ip: str | NotGiven = NOT_GIVEN,
is_malicious: bool | NotGiven = NOT_GIVEN,
@@ -99,6 +98,8 @@ def scan(
date_start: Filter scans requested after date (inclusive).
+ hash: Filter scans by hash of any html/js/css request made by the webpage.
+
hostname: Filter scans by hostname of _any_ request made by the webpage.
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
@@ -148,6 +149,7 @@ def scan(
"asn": asn,
"date_end": date_end,
"date_start": date_start,
+ "hash": hash,
"hostname": hostname,
"ip": ip,
"is_malicious": is_malicious,
@@ -191,6 +193,7 @@ async def scan(
asn: str | NotGiven = NOT_GIVEN,
date_end: Union[str, datetime] | NotGiven = NOT_GIVEN,
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
+ hash: str | NotGiven = NOT_GIVEN,
hostname: str | NotGiven = NOT_GIVEN,
ip: str | NotGiven = NOT_GIVEN,
is_malicious: bool | NotGiven = NOT_GIVEN,
@@ -231,6 +234,8 @@ async def scan(
date_start: Filter scans requested after date (inclusive).
+ hash: Filter scans by hash of any html/js/css request made by the webpage.
+
hostname: Filter scans by hostname of _any_ request made by the webpage.
ip: Filter scans by IP address (IPv4 or IPv6) of _any_ request made by the webpage.
@@ -280,6 +285,7 @@ async def scan(
"asn": asn,
"date_end": date_end,
"date_start": date_start,
+ "hash": hash,
"hostname": hostname,
"ip": ip,
"is_malicious": is_malicious,
diff --git a/src/cloudflare/resources/user/audit_logs.py b/src/cloudflare/resources/user/audit_logs.py
index 6699c4aef11..6c01a9f3612 100644
--- a/src/cloudflare/resources/user/audit_logs.py
+++ b/src/cloudflare/resources/user/audit_logs.py
@@ -20,10 +20,7 @@
)
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...types.user import audit_log_list_params
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.shared.audit_log import AuditLog
__all__ = ["AuditLogsResource", "AsyncAuditLogsResource"]
diff --git a/src/cloudflare/resources/user/billing/history.py b/src/cloudflare/resources/user/billing/history.py
index 538d34c5186..7f102ac237e 100644
--- a/src/cloudflare/resources/user/billing/history.py
+++ b/src/cloudflare/resources/user/billing/history.py
@@ -19,10 +19,7 @@
async_to_streamed_response_wrapper,
)
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.user.billing import history_list_params
from ....types.user.billing.billing_history import BillingHistory
diff --git a/src/cloudflare/resources/user/billing/profile.py b/src/cloudflare/resources/user/billing/profile.py
index 1a12d11902a..3956a2cb1e0 100644
--- a/src/cloudflare/resources/user/billing/profile.py
+++ b/src/cloudflare/resources/user/billing/profile.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.user.billing.profile_get_response import ProfileGetResponse
__all__ = ["ProfileResource", "AsyncProfileResource"]
diff --git a/src/cloudflare/resources/user/invites.py b/src/cloudflare/resources/user/invites.py
index 84d658ed708..51522de111d 100644
--- a/src/cloudflare/resources/user/invites.py
+++ b/src/cloudflare/resources/user/invites.py
@@ -23,10 +23,7 @@
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.user import invite_edit_params
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.user.invite import Invite
__all__ = ["InvitesResource", "AsyncInvitesResource"]
diff --git a/src/cloudflare/resources/user/organizations.py b/src/cloudflare/resources/user/organizations.py
index be94b8acb6a..6024fd116ec 100644
--- a/src/cloudflare/resources/user/organizations.py
+++ b/src/cloudflare/resources/user/organizations.py
@@ -20,10 +20,7 @@
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...types.user import organization_list_params
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.user.organization import Organization
from ...types.user.organization_delete_response import OrganizationDeleteResponse
diff --git a/src/cloudflare/resources/user/subscriptions.py b/src/cloudflare/resources/user/subscriptions.py
index 9c2405a54ea..11657a0b01e 100644
--- a/src/cloudflare/resources/user/subscriptions.py
+++ b/src/cloudflare/resources/user/subscriptions.py
@@ -22,9 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.user import subscription_edit_params, subscription_update_params
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.user.rate_plan_param import RatePlanParam
from ...types.user.subscription_zone_param import SubscriptionZoneParam
from ...types.user.subscription_get_response import SubscriptionGetResponse
diff --git a/src/cloudflare/resources/user/tokens/permission_groups.py b/src/cloudflare/resources/user/tokens/permission_groups.py
index 28efd8ca0e4..2a9cc0d5fda 100644
--- a/src/cloudflare/resources/user/tokens/permission_groups.py
+++ b/src/cloudflare/resources/user/tokens/permission_groups.py
@@ -14,10 +14,7 @@
async_to_streamed_response_wrapper,
)
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
__all__ = ["PermissionGroupsResource", "AsyncPermissionGroupsResource"]
diff --git a/src/cloudflare/resources/user/tokens/tokens.py b/src/cloudflare/resources/user/tokens/tokens.py
index 877a4388e81..16c141b6a72 100644
--- a/src/cloudflare/resources/user/tokens/tokens.py
+++ b/src/cloudflare/resources/user/tokens/tokens.py
@@ -32,10 +32,7 @@
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ....types.user import token_list_params, token_create_params, token_update_params
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from .permission_groups import (
PermissionGroupsResource,
AsyncPermissionGroupsResource,
diff --git a/src/cloudflare/resources/user/tokens/value.py b/src/cloudflare/resources/user/tokens/value.py
index 90195f2c4d2..7f2c8244596 100644
--- a/src/cloudflare/resources/user/tokens/value.py
+++ b/src/cloudflare/resources/user/tokens/value.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.user.tokens import value_update_params
from ....types.user.tokens.value import Value
diff --git a/src/cloudflare/resources/user/user.py b/src/cloudflare/resources/user/user.py
index 083b24efdb0..cd85bfe6a6e 100644
--- a/src/cloudflare/resources/user/user.py
+++ b/src/cloudflare/resources/user/user.py
@@ -70,9 +70,7 @@
AsyncSubscriptionsResourceWithStreamingResponse,
)
from .tokens.tokens import TokensResource, AsyncTokensResource
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from .billing.billing import BillingResource, AsyncBillingResource
__all__ = ["UserResource", "AsyncUserResource"]
diff --git a/src/cloudflare/resources/vectorize/indexes.py b/src/cloudflare/resources/vectorize/indexes.py
index fb9cdaeb7f0..4f1775fdb3e 100644
--- a/src/cloudflare/resources/vectorize/indexes.py
+++ b/src/cloudflare/resources/vectorize/indexes.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.vectorize import (
index_query_params,
index_create_params,
diff --git a/src/cloudflare/resources/waiting_rooms/events/details.py b/src/cloudflare/resources/waiting_rooms/events/details.py
index 4e99504cb01..4496d35d42f 100644
--- a/src/cloudflare/resources/waiting_rooms/events/details.py
+++ b/src/cloudflare/resources/waiting_rooms/events/details.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.waiting_rooms.events.detail_get_response import DetailGetResponse
__all__ = ["DetailsResource", "AsyncDetailsResource"]
diff --git a/src/cloudflare/resources/waiting_rooms/events/events.py b/src/cloudflare/resources/waiting_rooms/events/events.py
index 2c4a3998a86..f070f985934 100644
--- a/src/cloudflare/resources/waiting_rooms/events/events.py
+++ b/src/cloudflare/resources/waiting_rooms/events/events.py
@@ -29,10 +29,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from ....types.waiting_rooms import event_edit_params, event_list_params, event_create_params, event_update_params
from ....types.waiting_rooms.event import Event
from ....types.waiting_rooms.event_delete_response import EventDeleteResponse
diff --git a/src/cloudflare/resources/waiting_rooms/page.py b/src/cloudflare/resources/waiting_rooms/page.py
index f8d511a8d16..e77b2a77148 100644
--- a/src/cloudflare/resources/waiting_rooms/page.py
+++ b/src/cloudflare/resources/waiting_rooms/page.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.waiting_rooms import page_preview_params
from ...types.waiting_rooms.page_preview_response import PagePreviewResponse
diff --git a/src/cloudflare/resources/waiting_rooms/rules.py b/src/cloudflare/resources/waiting_rooms/rules.py
index ca249b40fc6..03de4d31c7c 100644
--- a/src/cloudflare/resources/waiting_rooms/rules.py
+++ b/src/cloudflare/resources/waiting_rooms/rules.py
@@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.waiting_rooms import rule_edit_params, rule_create_params, rule_update_params
from ...types.waiting_rooms.waiting_room_rule import WaitingRoomRule
from ...types.waiting_rooms.rule_edit_response import RuleEditResponse
diff --git a/src/cloudflare/resources/waiting_rooms/settings.py b/src/cloudflare/resources/waiting_rooms/settings.py
index 2c793777bc2..b3cc49bc001 100644
--- a/src/cloudflare/resources/waiting_rooms/settings.py
+++ b/src/cloudflare/resources/waiting_rooms/settings.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.waiting_rooms import setting_edit_params, setting_update_params
from ...types.waiting_rooms.setting_get_response import SettingGetResponse
from ...types.waiting_rooms.setting_edit_response import SettingEditResponse
diff --git a/src/cloudflare/resources/waiting_rooms/statuses.py b/src/cloudflare/resources/waiting_rooms/statuses.py
index 81dc369cb7f..c09b4a8e29b 100644
--- a/src/cloudflare/resources/waiting_rooms/statuses.py
+++ b/src/cloudflare/resources/waiting_rooms/statuses.py
@@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.waiting_rooms.status_get_response import StatusGetResponse
__all__ = ["StatusesResource", "AsyncStatusesResource"]
diff --git a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
index 70d9b6d225d..d2913dc2f93 100644
--- a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
+++ b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py
@@ -63,10 +63,7 @@
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from .events.events import EventsResource, AsyncEventsResource
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.waiting_rooms import (
waiting_room_edit_params,
waiting_room_list_params,
diff --git a/src/cloudflare/resources/warp_connector.py b/src/cloudflare/resources/warp_connector.py
index b2df61979db..0e97bf21e8f 100644
--- a/src/cloudflare/resources/warp_connector.py
+++ b/src/cloudflare/resources/warp_connector.py
@@ -23,10 +23,7 @@
)
from .._wrappers import ResultWrapper
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from .._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from .._base_client import AsyncPaginator, make_request_options
from ..types.warp_connector import warp_connector_edit_params, warp_connector_list_params, warp_connector_create_params
from ..types.warp_connector.warp_connector_get_response import WARPConnectorGetResponse
from ..types.warp_connector.warp_connector_edit_response import WARPConnectorEditResponse
diff --git a/src/cloudflare/resources/web3/hostnames/hostnames.py b/src/cloudflare/resources/web3/hostnames/hostnames.py
index 9bf5ac86e9a..f0d2e53f58a 100644
--- a/src/cloudflare/resources/web3/hostnames/hostnames.py
+++ b/src/cloudflare/resources/web3/hostnames/hostnames.py
@@ -23,10 +23,7 @@
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.web3 import hostname_edit_params, hostname_create_params
-from ...._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ...._base_client import AsyncPaginator, make_request_options
from .ipfs_universal_paths import (
IPFSUniversalPathsResource,
AsyncIPFSUniversalPathsResource,
diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py
index d8c028bfc32..3230e01fe76 100644
--- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py
+++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py
@@ -29,9 +29,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.web3.hostnames.ipfs_universal_paths import content_list_update_params
from ......types.web3.hostnames.ipfs_universal_paths.content_list import ContentList
diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py
index 4170fac51c8..488eaacca22 100644
--- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py
+++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py
@@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ......_wrappers import ResultWrapper
-from ......_base_client import (
- make_request_options,
-)
+from ......_base_client import make_request_options
from ......types.web3.hostnames.ipfs_universal_paths.content_lists import entry_create_params, entry_update_params
from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_get_response import EntryGetResponse
from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_list_response import EntryListResponse
diff --git a/src/cloudflare/resources/workers/account_settings.py b/src/cloudflare/resources/workers/account_settings.py
index ed3dea6115c..eb77cdd8b01 100644
--- a/src/cloudflare/resources/workers/account_settings.py
+++ b/src/cloudflare/resources/workers/account_settings.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ..._base_client import (
- make_request_options,
-)
+from ..._base_client import make_request_options
from ...types.workers import account_setting_update_params
from ...types.workers.account_setting_get_response import AccountSettingGetResponse
from ...types.workers.account_setting_update_response import AccountSettingUpdateResponse
diff --git a/src/cloudflare/resources/workers/ai/ai.py b/src/cloudflare/resources/workers/ai/ai.py
index 86d294ec5fa..673262c5fed 100644
--- a/src/cloudflare/resources/workers/ai/ai.py
+++ b/src/cloudflare/resources/workers/ai/ai.py
@@ -30,9 +30,7 @@
)
from ...._wrappers import ResultWrapper
from .models.models import ModelsResource, AsyncModelsResource
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.workers import ai_run_params
from ....types.workers.ai_run_response import AIRunResponse
@@ -96,10 +94,17 @@ def run(
account_id: str,
prompt: str,
guidance: float | NotGiven = NOT_GIVEN,
+ height: int | NotGiven = NOT_GIVEN,
image: Iterable[float] | NotGiven = NOT_GIVEN,
+ image_b64: str | NotGiven = NOT_GIVEN,
+ lora_weights: Iterable[float] | NotGiven = NOT_GIVEN,
+ loras: List[str] | NotGiven = NOT_GIVEN,
mask: Iterable[float] | NotGiven = NOT_GIVEN,
+ negative_prompt: str | NotGiven = NOT_GIVEN,
num_steps: int | NotGiven = NOT_GIVEN,
+ seed: int | NotGiven = NOT_GIVEN,
strength: float | NotGiven = NOT_GIVEN,
+ width: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -135,8 +140,7 @@ def run(
model_name: str,
*,
account_id: str,
- sentences: List[str],
- source: str,
+ text: Union[str, List[str]],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -172,7 +176,7 @@ def run(
model_name: str,
*,
account_id: str,
- text: Union[str, List[str]],
+ audio: Iterable[float],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -208,7 +212,7 @@ def run(
model_name: str,
*,
account_id: str,
- audio: Iterable[float],
+ image: Iterable[float],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -244,7 +248,7 @@ def run(
model_name: str,
*,
account_id: str,
- image: Iterable[float],
+ image: Iterable[float] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -280,7 +284,18 @@ def run(
model_name: str,
*,
account_id: str,
- image: Iterable[float] | NotGiven = NOT_GIVEN,
+ prompt: str,
+ frequency_penalty: float | NotGiven = NOT_GIVEN,
+ lora: str | NotGiven = NOT_GIVEN,
+ max_tokens: int | NotGiven = NOT_GIVEN,
+ presence_penalty: float | NotGiven = NOT_GIVEN,
+ raw: bool | NotGiven = NOT_GIVEN,
+ repetition_penalty: float | NotGiven = NOT_GIVEN,
+ seed: int | NotGiven = NOT_GIVEN,
+ stream: bool | NotGiven = NOT_GIVEN,
+ temperature: float | NotGiven = NOT_GIVEN,
+ top_k: int | NotGiven = NOT_GIVEN,
+ top_p: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -316,12 +331,17 @@ def run(
model_name: str,
*,
account_id: str,
- lora: str | NotGiven = NOT_GIVEN,
+ messages: Iterable[ai_run_params.Variant7Message],
+ frequency_penalty: float | NotGiven = NOT_GIVEN,
max_tokens: int | NotGiven = NOT_GIVEN,
- messages: Iterable[ai_run_params.TextGenerationMessage] | NotGiven = NOT_GIVEN,
- prompt: str | NotGiven = NOT_GIVEN,
- raw: bool | NotGiven = NOT_GIVEN,
+ presence_penalty: float | NotGiven = NOT_GIVEN,
+ repetition_penalty: float | NotGiven = NOT_GIVEN,
+ seed: int | NotGiven = NOT_GIVEN,
stream: bool | NotGiven = NOT_GIVEN,
+ temperature: float | NotGiven = NOT_GIVEN,
+ tools: Iterable[ai_run_params.Variant7Tool] | NotGiven = NOT_GIVEN,
+ top_k: int | NotGiven = NOT_GIVEN,
+ top_p: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -470,10 +490,10 @@ def run(
@required_args(
["account_id", "text"],
["account_id", "prompt"],
- ["account_id", "sentences", "source"],
["account_id", "audio"],
["account_id", "image"],
["account_id"],
+ ["account_id", "messages"],
["account_id", "target_lang", "text"],
["account_id", "input_text"],
)
@@ -485,23 +505,34 @@ def run(
text: str | Union[str, List[str]] | NotGiven = NOT_GIVEN,
prompt: str | NotGiven = NOT_GIVEN,
guidance: float | NotGiven = NOT_GIVEN,
+ height: int | NotGiven = NOT_GIVEN,
image: Iterable[float] | NotGiven = NOT_GIVEN,
+ image_b64: str | NotGiven = NOT_GIVEN,
+ lora_weights: Iterable[float] | NotGiven = NOT_GIVEN,
+ loras: List[str] | NotGiven = NOT_GIVEN,
mask: Iterable[float] | NotGiven = NOT_GIVEN,
+ negative_prompt: str | NotGiven = NOT_GIVEN,
num_steps: int | NotGiven = NOT_GIVEN,
+ seed: int | NotGiven = NOT_GIVEN,
strength: float | NotGiven = NOT_GIVEN,
- sentences: List[str] | NotGiven = NOT_GIVEN,
- source: str | NotGiven = NOT_GIVEN,
+ width: int | NotGiven = NOT_GIVEN,
audio: Iterable[float] | NotGiven = NOT_GIVEN,
+ frequency_penalty: float | NotGiven = NOT_GIVEN,
lora: str | NotGiven = NOT_GIVEN,
max_tokens: int | NotGiven = NOT_GIVEN,
- messages: Iterable[ai_run_params.TextGenerationMessage] | NotGiven = NOT_GIVEN,
+ presence_penalty: float | NotGiven = NOT_GIVEN,
raw: bool | NotGiven = NOT_GIVEN,
+ repetition_penalty: float | NotGiven = NOT_GIVEN,
stream: bool | NotGiven = NOT_GIVEN,
+ temperature: float | NotGiven = NOT_GIVEN,
+ top_k: int | NotGiven = NOT_GIVEN,
+ top_p: float | NotGiven = NOT_GIVEN,
+ messages: Iterable[ai_run_params.Variant7Message] | NotGiven = NOT_GIVEN,
+ tools: Iterable[ai_run_params.Variant7Tool] | NotGiven = NOT_GIVEN,
target_lang: str | NotGiven = NOT_GIVEN,
source_lang: str | NotGiven = NOT_GIVEN,
input_text: str | NotGiven = NOT_GIVEN,
max_length: int | NotGiven = NOT_GIVEN,
- temperature: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -522,23 +553,34 @@ def run(
"text": text,
"prompt": prompt,
"guidance": guidance,
+ "height": height,
"image": image,
+ "image_b64": image_b64,
+ "lora_weights": lora_weights,
+ "loras": loras,
"mask": mask,
+ "negative_prompt": negative_prompt,
"num_steps": num_steps,
+ "seed": seed,
"strength": strength,
- "sentences": sentences,
- "source": source,
+ "width": width,
"audio": audio,
+ "frequency_penalty": frequency_penalty,
"lora": lora,
"max_tokens": max_tokens,
- "messages": messages,
+ "presence_penalty": presence_penalty,
"raw": raw,
+ "repetition_penalty": repetition_penalty,
"stream": stream,
+ "temperature": temperature,
+ "top_k": top_k,
+ "top_p": top_p,
+ "messages": messages,
+ "tools": tools,
"target_lang": target_lang,
"source_lang": source_lang,
"input_text": input_text,
"max_length": max_length,
- "temperature": temperature,
},
ai_run_params.AIRunParams,
),
@@ -613,10 +655,17 @@ async def run(
account_id: str,
prompt: str,
guidance: float | NotGiven = NOT_GIVEN,
+ height: int | NotGiven = NOT_GIVEN,
image: Iterable[float] | NotGiven = NOT_GIVEN,
+ image_b64: str | NotGiven = NOT_GIVEN,
+ lora_weights: Iterable[float] | NotGiven = NOT_GIVEN,
+ loras: List[str] | NotGiven = NOT_GIVEN,
mask: Iterable[float] | NotGiven = NOT_GIVEN,
+ negative_prompt: str | NotGiven = NOT_GIVEN,
num_steps: int | NotGiven = NOT_GIVEN,
+ seed: int | NotGiven = NOT_GIVEN,
strength: float | NotGiven = NOT_GIVEN,
+ width: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -652,8 +701,7 @@ async def run(
model_name: str,
*,
account_id: str,
- sentences: List[str],
- source: str,
+ text: Union[str, List[str]],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -689,7 +737,7 @@ async def run(
model_name: str,
*,
account_id: str,
- text: Union[str, List[str]],
+ audio: Iterable[float],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -725,7 +773,7 @@ async def run(
model_name: str,
*,
account_id: str,
- audio: Iterable[float],
+ image: Iterable[float],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -761,7 +809,7 @@ async def run(
model_name: str,
*,
account_id: str,
- image: Iterable[float],
+ image: Iterable[float] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -797,7 +845,18 @@ async def run(
model_name: str,
*,
account_id: str,
- image: Iterable[float] | NotGiven = NOT_GIVEN,
+ prompt: str,
+ frequency_penalty: float | NotGiven = NOT_GIVEN,
+ lora: str | NotGiven = NOT_GIVEN,
+ max_tokens: int | NotGiven = NOT_GIVEN,
+ presence_penalty: float | NotGiven = NOT_GIVEN,
+ raw: bool | NotGiven = NOT_GIVEN,
+ repetition_penalty: float | NotGiven = NOT_GIVEN,
+ seed: int | NotGiven = NOT_GIVEN,
+ stream: bool | NotGiven = NOT_GIVEN,
+ temperature: float | NotGiven = NOT_GIVEN,
+ top_k: int | NotGiven = NOT_GIVEN,
+ top_p: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -833,12 +892,17 @@ async def run(
model_name: str,
*,
account_id: str,
- lora: str | NotGiven = NOT_GIVEN,
+ messages: Iterable[ai_run_params.Variant7Message],
+ frequency_penalty: float | NotGiven = NOT_GIVEN,
max_tokens: int | NotGiven = NOT_GIVEN,
- messages: Iterable[ai_run_params.TextGenerationMessage] | NotGiven = NOT_GIVEN,
- prompt: str | NotGiven = NOT_GIVEN,
- raw: bool | NotGiven = NOT_GIVEN,
+ presence_penalty: float | NotGiven = NOT_GIVEN,
+ repetition_penalty: float | NotGiven = NOT_GIVEN,
+ seed: int | NotGiven = NOT_GIVEN,
stream: bool | NotGiven = NOT_GIVEN,
+ temperature: float | NotGiven = NOT_GIVEN,
+ tools: Iterable[ai_run_params.Variant7Tool] | NotGiven = NOT_GIVEN,
+ top_k: int | NotGiven = NOT_GIVEN,
+ top_p: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -987,10 +1051,10 @@ async def run(
@required_args(
["account_id", "text"],
["account_id", "prompt"],
- ["account_id", "sentences", "source"],
["account_id", "audio"],
["account_id", "image"],
["account_id"],
+ ["account_id", "messages"],
["account_id", "target_lang", "text"],
["account_id", "input_text"],
)
@@ -1002,23 +1066,34 @@ async def run(
text: str | Union[str, List[str]] | NotGiven = NOT_GIVEN,
prompt: str | NotGiven = NOT_GIVEN,
guidance: float | NotGiven = NOT_GIVEN,
+ height: int | NotGiven = NOT_GIVEN,
image: Iterable[float] | NotGiven = NOT_GIVEN,
+ image_b64: str | NotGiven = NOT_GIVEN,
+ lora_weights: Iterable[float] | NotGiven = NOT_GIVEN,
+ loras: List[str] | NotGiven = NOT_GIVEN,
mask: Iterable[float] | NotGiven = NOT_GIVEN,
+ negative_prompt: str | NotGiven = NOT_GIVEN,
num_steps: int | NotGiven = NOT_GIVEN,
+ seed: int | NotGiven = NOT_GIVEN,
strength: float | NotGiven = NOT_GIVEN,
- sentences: List[str] | NotGiven = NOT_GIVEN,
- source: str | NotGiven = NOT_GIVEN,
+ width: int | NotGiven = NOT_GIVEN,
audio: Iterable[float] | NotGiven = NOT_GIVEN,
+ frequency_penalty: float | NotGiven = NOT_GIVEN,
lora: str | NotGiven = NOT_GIVEN,
max_tokens: int | NotGiven = NOT_GIVEN,
- messages: Iterable[ai_run_params.TextGenerationMessage] | NotGiven = NOT_GIVEN,
+ presence_penalty: float | NotGiven = NOT_GIVEN,
raw: bool | NotGiven = NOT_GIVEN,
+ repetition_penalty: float | NotGiven = NOT_GIVEN,
stream: bool | NotGiven = NOT_GIVEN,
+ temperature: float | NotGiven = NOT_GIVEN,
+ top_k: int | NotGiven = NOT_GIVEN,
+ top_p: float | NotGiven = NOT_GIVEN,
+ messages: Iterable[ai_run_params.Variant7Message] | NotGiven = NOT_GIVEN,
+ tools: Iterable[ai_run_params.Variant7Tool] | NotGiven = NOT_GIVEN,
target_lang: str | NotGiven = NOT_GIVEN,
source_lang: str | NotGiven = NOT_GIVEN,
input_text: str | NotGiven = NOT_GIVEN,
max_length: int | NotGiven = NOT_GIVEN,
- temperature: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
@@ -1039,23 +1114,34 @@ async def run(
"text": text,
"prompt": prompt,
"guidance": guidance,
+ "height": height,
"image": image,
+ "image_b64": image_b64,
+ "lora_weights": lora_weights,
+ "loras": loras,
"mask": mask,
+ "negative_prompt": negative_prompt,
"num_steps": num_steps,
+ "seed": seed,
"strength": strength,
- "sentences": sentences,
- "source": source,
+ "width": width,
"audio": audio,
+ "frequency_penalty": frequency_penalty,
"lora": lora,
"max_tokens": max_tokens,
- "messages": messages,
+ "presence_penalty": presence_penalty,
"raw": raw,
+ "repetition_penalty": repetition_penalty,
"stream": stream,
+ "temperature": temperature,
+ "top_k": top_k,
+ "top_p": top_p,
+ "messages": messages,
+ "tools": tools,
"target_lang": target_lang,
"source_lang": source_lang,
"input_text": input_text,
"max_length": max_length,
- "temperature": temperature,
},
ai_run_params.AIRunParams,
),
diff --git a/src/cloudflare/resources/workers/ai/models/schema.py b/src/cloudflare/resources/workers/ai/models/schema.py
index 934b517b989..7d5d6c3157c 100644
--- a/src/cloudflare/resources/workers/ai/models/schema.py
+++ b/src/cloudflare/resources/workers/ai/models/schema.py
@@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
-from ....._base_client import (
- make_request_options,
-)
+from ....._base_client import make_request_options
from .....types.workers.ai.models import schema_get_params
__all__ = ["SchemaResource", "AsyncSchemaResource"]
diff --git a/src/cloudflare/resources/workers/domains.py b/src/cloudflare/resources/workers/domains.py
index 1ef08b0f762..94a2b626e43 100644
--- a/src/cloudflare/resources/workers/domains.py
+++ b/src/cloudflare/resources/workers/domains.py
@@ -21,10 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ..._base_client import (
- AsyncPaginator,
- make_request_options,
-)
+from ..._base_client import AsyncPaginator, make_request_options
from ...types.workers import domain_list_params, domain_update_params
from ...types.workers.domain import Domain
diff --git a/src/cloudflare/resources/workers/scripts/content.py b/src/cloudflare/resources/workers/scripts/content.py
index 381a25fff2d..b57cdfddbf3 100644
--- a/src/cloudflare/resources/workers/scripts/content.py
+++ b/src/cloudflare/resources/workers/scripts/content.py
@@ -31,9 +31,7 @@
async_to_custom_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
-from ...._base_client import (
- make_request_options,
-)
+from ...._base_client import make_request_options
from ....types.workers.script import Script
from ....types.workers.scripts import content_update_params
from ....types.workers.worker_metadata_param import WorkerMetadataParam
@@ -111,11 +109,10 @@ def update(
}
)
files = extract_files(cast(Mapping[str, object], body), paths=[["Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: