diff --git a/api.md b/api.md
index a3e4ab3ea2c..25151f39684 100644
--- a/api.md
+++ b/api.md
@@ -1,7 +1,129 @@
# Shared Types
```python
-from cloudflare.types import ErrorData
+from cloudflare.types import (
+ ErrorData,
+ Logging,
+ UnnamedSchemaRef10,
+ UnnamedSchemaRef100,
+ UnnamedSchemaRef101,
+ UnnamedSchemaRef102,
+ UnnamedSchemaRef103,
+ UnnamedSchemaRef104,
+ UnnamedSchemaRef105,
+ UnnamedSchemaRef107,
+ UnnamedSchemaRef108,
+ UnnamedSchemaRef109,
+ UnnamedSchemaRef11,
+ UnnamedSchemaRef110,
+ UnnamedSchemaRef111,
+ UnnamedSchemaRef113,
+ UnnamedSchemaRef114,
+ UnnamedSchemaRef115,
+ UnnamedSchemaRef116,
+ UnnamedSchemaRef117,
+ UnnamedSchemaRef118,
+ UnnamedSchemaRef119,
+ UnnamedSchemaRef12,
+ UnnamedSchemaRef120,
+ UnnamedSchemaRef121,
+ UnnamedSchemaRef122,
+ UnnamedSchemaRef123,
+ UnnamedSchemaRef124,
+ UnnamedSchemaRef125,
+ UnnamedSchemaRef126,
+ UnnamedSchemaRef13,
+ UnnamedSchemaRef131,
+ UnnamedSchemaRef132,
+ UnnamedSchemaRef135,
+ UnnamedSchemaRef136,
+ UnnamedSchemaRef139,
+ UnnamedSchemaRef14,
+ UnnamedSchemaRef140,
+ UnnamedSchemaRef142,
+ UnnamedSchemaRef143,
+ UnnamedSchemaRef144,
+ UnnamedSchemaRef145,
+ UnnamedSchemaRef146,
+ UnnamedSchemaRef147,
+ UnnamedSchemaRef148,
+ UnnamedSchemaRef15,
+ UnnamedSchemaRef151,
+ UnnamedSchemaRef152,
+ UnnamedSchemaRef155,
+ UnnamedSchemaRef156,
+ UnnamedSchemaRef158,
+ UnnamedSchemaRef159,
+ UnnamedSchemaRef16,
+ UnnamedSchemaRef161,
+ UnnamedSchemaRef162,
+ UnnamedSchemaRef163,
+ UnnamedSchemaRef167,
+ UnnamedSchemaRef169,
+ UnnamedSchemaRef170,
+ UnnamedSchemaRef171,
+ UnnamedSchemaRef172,
+ UnnamedSchemaRef173,
+ UnnamedSchemaRef2,
+ UnnamedSchemaRef22,
+ UnnamedSchemaRef23,
+ UnnamedSchemaRef24,
+ UnnamedSchemaRef25,
+ UnnamedSchemaRef28,
+ UnnamedSchemaRef3,
+ UnnamedSchemaRef34,
+ UnnamedSchemaRef35,
+ UnnamedSchemaRef36,
+ UnnamedSchemaRef37,
+ UnnamedSchemaRef38,
+ UnnamedSchemaRef39,
+ UnnamedSchemaRef4,
+ UnnamedSchemaRef40,
+ UnnamedSchemaRef41,
+ UnnamedSchemaRef43,
+ UnnamedSchemaRef44,
+ UnnamedSchemaRef46,
+ UnnamedSchemaRef49,
+ UnnamedSchemaRef5,
+ UnnamedSchemaRef51,
+ UnnamedSchemaRef52,
+ UnnamedSchemaRef57,
+ UnnamedSchemaRef59,
+ UnnamedSchemaRef61,
+ UnnamedSchemaRef62,
+ UnnamedSchemaRef63,
+ UnnamedSchemaRef65,
+ UnnamedSchemaRef69,
+ UnnamedSchemaRef7,
+ UnnamedSchemaRef71,
+ UnnamedSchemaRef72,
+ UnnamedSchemaRef73,
+ UnnamedSchemaRef75,
+ UnnamedSchemaRef76,
+ UnnamedSchemaRef77,
+ UnnamedSchemaRef78,
+ UnnamedSchemaRef79,
+ UnnamedSchemaRef8,
+ UnnamedSchemaRef80,
+ UnnamedSchemaRef81,
+ UnnamedSchemaRef82,
+ UnnamedSchemaRef83,
+ UnnamedSchemaRef84,
+ UnnamedSchemaRef85,
+ UnnamedSchemaRef87,
+ UnnamedSchemaRef88,
+ UnnamedSchemaRef89,
+ UnnamedSchemaRef9,
+ UnnamedSchemaRef90,
+ UnnamedSchemaRef91,
+ UnnamedSchemaRef92,
+ UnnamedSchemaRef93,
+ UnnamedSchemaRef94,
+ UnnamedSchemaRef96,
+ UnnamedSchemaRef97,
+ UnnamedSchemaRef98,
+ UnnamedSchemaRef99,
+)
```
# Accounts
@@ -287,7 +409,6 @@ Types:
from cloudflare.types.user import (
Subscription,
SubscriptionUpdateResponse,
- SubscriptionDeleteResponse,
SubscriptionEditResponse,
SubscriptionGetResponse,
)
@@ -296,7 +417,7 @@ from cloudflare.types.user import (
Methods:
- client.user.subscriptions.update(identifier, \*\*params) -> SubscriptionUpdateResponse
-- client.user.subscriptions.delete(identifier, \*\*params) -> SubscriptionDeleteResponse
+- client.user.subscriptions.delete(identifier, \*\*params) -> UnnamedSchemaRef3
- client.user.subscriptions.edit(identifier, \*\*params) -> SubscriptionEditResponse
- client.user.subscriptions.get() -> Optional
@@ -1072,26 +1193,26 @@ Methods:
Types:
```python
-from cloudflare.types.zones import CustomNameserverUpdateResponse, CustomNameserverGetResponse
+from cloudflare.types.zones import CustomNameserverUpdateResponse
```
Methods:
- client.zones.custom_nameservers.update(\*, zone_id, \*\*params) -> Optional
-- client.zones.custom_nameservers.get(\*, zone_id) -> Optional
+- client.zones.custom_nameservers.get(\*, zone_id) -> Optional
## Holds
Types:
```python
-from cloudflare.types.zones import HoldCreateResponse, HoldDeleteResponse, HoldGetResponse
+from cloudflare.types.zones import UnnamedSchemaRef64, HoldCreateResponse, HoldGetResponse
```
Methods:
- client.zones.holds.create(\*, zone_id, \*\*params) -> HoldCreateResponse
-- client.zones.holds.delete(\*, zone_id, \*\*params) -> Optional
+- client.zones.holds.delete(\*, zone_id, \*\*params) -> Optional
- client.zones.holds.get(\*, zone_id) -> HoldGetResponse
## Workers
@@ -1133,7 +1254,7 @@ Methods:
Types:
```python
-from cloudflare.types import LoadBalancer, LoadBalancerDeleteResponse
+from cloudflare.types import LoadBalancer, UnnamedSchemaRef112, LoadBalancerDeleteResponse
```
Methods:
@@ -1447,7 +1568,6 @@ from cloudflare.types import (
SubscriptionCreateResponse,
SubscriptionUpdateResponse,
SubscriptionListResponse,
- SubscriptionDeleteResponse,
SubscriptionGetResponse,
)
```
@@ -1457,7 +1577,7 @@ Methods:
- client.subscriptions.create(identifier, \*\*params) -> SubscriptionCreateResponse
- client.subscriptions.update(subscription_identifier, \*, account_identifier, \*\*params) -> SubscriptionUpdateResponse
- client.subscriptions.list(account_identifier) -> SyncSinglePage[SubscriptionListResponse]
-- client.subscriptions.delete(subscription_identifier, \*, account_identifier, \*\*params) -> SubscriptionDeleteResponse
+- client.subscriptions.delete(subscription_identifier, \*, account_identifier, \*\*params) -> UnnamedSchemaRef3
- client.subscriptions.get(identifier) -> SubscriptionGetResponse
# ACM
@@ -1604,6 +1724,7 @@ Types:
```python
from cloudflare.types import (
CustomHostname,
+ UnnamedSchemaRef60,
CustomHostnameCreateResponse,
CustomHostnameListResponse,
CustomHostnameDeleteResponse,
@@ -1719,7 +1840,7 @@ Methods:
Types:
```python
-from cloudflare.types.dns import DNSFirewall, FirewallDeleteResponse
+from cloudflare.types.dns import DNSFirewall, UnnamedSchemaRef21, FirewallDeleteResponse
```
Methods:
@@ -1749,12 +1870,12 @@ Methods:
Types:
```python
-from cloudflare.types import DNSSEC, DNSSECDeleteResponse
+from cloudflare.types import DNSSEC
```
Methods:
-- client.dnssec.delete(\*, zone_id, \*\*params) -> DNSSECDeleteResponse
+- client.dnssec.delete(\*, zone_id, \*\*params) -> UnnamedSchemaRef49
- client.dnssec.edit(\*, zone_id, \*\*params) -> DNSSEC
- client.dnssec.get(\*, zone_id) -> DNSSEC
@@ -1869,7 +1990,11 @@ Methods:
Types:
```python
-from cloudflare.types.firewall import FirewallZoneLockdown, LockdownDeleteResponse
+from cloudflare.types.firewall import (
+ FirewallZoneLockdown,
+ UnnamedSchemaRef54,
+ LockdownDeleteResponse,
+)
```
Methods:
@@ -1902,22 +2027,16 @@ Methods:
Types:
```python
-from cloudflare.types.firewall import (
- AccessRuleCreateResponse,
- AccessRuleListResponse,
- AccessRuleDeleteResponse,
- AccessRuleEditResponse,
- AccessRuleGetResponse,
-)
+from cloudflare.types.firewall import AccessRuleListResponse, AccessRuleDeleteResponse
```
Methods:
-- client.firewall.access_rules.create(\*, account_id, zone_id, \*\*params) -> Optional
+- client.firewall.access_rules.create(\*, account_id, zone_id, \*\*params) -> Optional
- client.firewall.access_rules.list(\*, account_id, zone_id, \*\*params) -> SyncV4PagePaginationArray[object]
- client.firewall.access_rules.delete(identifier, \*, account_id, zone_id, \*\*params) -> Optional
-- client.firewall.access_rules.edit(identifier, \*, account_id, zone_id, \*\*params) -> Optional
-- client.firewall.access_rules.get(identifier, \*, account_id, zone_id) -> Optional
+- client.firewall.access_rules.edit(identifier, \*, account_id, zone_id, \*\*params) -> Optional
+- client.firewall.access_rules.get(identifier, \*, account_id, zone_id) -> Optional
## UARules
@@ -1926,21 +2045,18 @@ Types:
```python
from cloudflare.types.firewall import (
FirewallUserAgentRule,
- UARuleCreateResponse,
- UARuleUpdateResponse,
UARuleListResponse,
UARuleDeleteResponse,
- UARuleGetResponse,
)
```
Methods:
-- client.firewall.ua_rules.create(zone_identifier, \*\*params) -> Optional
-- client.firewall.ua_rules.update(id, \*, zone_identifier, \*\*params) -> Optional
+- client.firewall.ua_rules.create(zone_identifier, \*\*params) -> Optional
+- client.firewall.ua_rules.update(id, \*, zone_identifier, \*\*params) -> Optional
- client.firewall.ua_rules.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[UARuleListResponse]
- client.firewall.ua_rules.delete(id, \*, zone_identifier, \*\*params) -> Optional
-- client.firewall.ua_rules.get(id, \*, zone_identifier) -> Optional
+- client.firewall.ua_rules.get(id, \*, zone_identifier) -> Optional
## WAF
@@ -1949,7 +2065,7 @@ Methods:
Types:
```python
-from cloudflare.types.firewall.waf import WAFOverride, OverrideDeleteResponse
+from cloudflare.types.firewall.waf import UnnamedSchemaRef55, WAFOverride, OverrideDeleteResponse
```
Methods:
@@ -2014,7 +2130,7 @@ Methods:
Types:
```python
-from cloudflare.types import Healthcheck, HealthcheckDeleteResponse
+from cloudflare.types import Healthcheck, UnnamedSchemaRef141, HealthcheckDeleteResponse
```
Methods:
@@ -2048,6 +2164,7 @@ Types:
from cloudflare.types import (
KeylessCertificate,
KeylessCertificateHostname,
+ UnnamedSchemaRef66,
KeylessCertificateDeleteResponse,
)
```
@@ -2106,7 +2223,7 @@ Methods:
Types:
```python
-from cloudflare.types.logpush import JobDeleteResponse
+from cloudflare.types.logpush import UnnamedSchemaRef74
```
Methods:
@@ -2114,7 +2231,7 @@ Methods:
- client.logpush.jobs.create(\*, account_id, zone_id, \*\*params) -> Optional
- client.logpush.jobs.update(job_id, \*, account_id, zone_id, \*\*params) -> Optional
- client.logpush.jobs.list(\*, account_id, zone_id) -> SyncSinglePage[Optional]
-- client.logpush.jobs.delete(job_id, \*, account_id, zone_id, \*\*params) -> Optional
+- client.logpush.jobs.delete(job_id, \*, account_id, zone_id, \*\*params) -> Optional
- client.logpush.jobs.get(job_id, \*, account_id, zone_id) -> Optional
## Ownership
@@ -2169,13 +2286,13 @@ Methods:
Types:
```python
-from cloudflare.types.logs.control.cmb import CmbConfig, ConfigDeleteResponse
+from cloudflare.types.logs.control.cmb import CmbConfig
```
Methods:
- client.logs.control.cmb.config.create(\*, account_id, \*\*params) -> Optional
-- client.logs.control.cmb.config.delete(\*, account_id, \*\*params) -> Optional
+- client.logs.control.cmb.config.delete(\*, account_id, \*\*params) -> Optional
- client.logs.control.cmb.config.get(\*, account_id) -> Optional
## RayID
@@ -2257,7 +2374,10 @@ Methods:
Types:
```python
-from cloudflare.types.origin_tls_client_auth.hostnames import OriginTLSClientCertificate
+from cloudflare.types.origin_tls_client_auth.hostnames import (
+ OriginTLSClientCertificate,
+ UnnamedSchemaRef67,
+)
```
Methods:
@@ -2286,6 +2406,7 @@ Types:
```python
from cloudflare.types import (
+ UnnamedSchemaRef68,
ZonesPagerule,
PageruleCreateResponse,
PageruleUpdateResponse,
@@ -2322,23 +2443,16 @@ Methods:
Types:
```python
-from cloudflare.types import (
- RateLimit,
- RateLimitCreateResponse,
- RateLimitListResponse,
- RateLimitDeleteResponse,
- RateLimitEditResponse,
- RateLimitGetResponse,
-)
+from cloudflare.types import RateLimit, RateLimitListResponse, RateLimitDeleteResponse
```
Methods:
-- client.rate_limits.create(zone_identifier, \*\*params) -> Optional
+- client.rate_limits.create(zone_identifier, \*\*params) -> Optional
- client.rate_limits.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[RateLimitListResponse]
- client.rate_limits.delete(id, \*, zone_identifier, \*\*params) -> Optional
-- client.rate_limits.edit(id, \*, zone_identifier, \*\*params) -> Optional
-- client.rate_limits.get(id, \*, zone_identifier) -> Optional
+- client.rate_limits.edit(id, \*, zone_identifier, \*\*params) -> Optional
+- client.rate_limits.get(id, \*, zone_identifier) -> Optional
# SecondaryDNS
@@ -2382,6 +2496,7 @@ Types:
from cloudflare.types.secondary_dns import (
SecondaryDNSDisableTransfer,
SecondaryDNSEnableTransfer,
+ UnnamedSchemaRef70,
OutgoingCreateResponse,
OutgoingUpdateResponse,
OutgoingDeleteResponse,
@@ -2411,7 +2526,7 @@ Methods:
Types:
```python
-from cloudflare.types.secondary_dns import SecondaryDNSACL, ACLDeleteResponse
+from cloudflare.types.secondary_dns import SecondaryDNSACL, UnnamedSchemaRef45, ACLDeleteResponse
```
Methods:
@@ -2427,7 +2542,7 @@ Methods:
Types:
```python
-from cloudflare.types.secondary_dns import SecondaryDNSPeer, PeerDeleteResponse
+from cloudflare.types.secondary_dns import SecondaryDNSPeer, UnnamedSchemaRef47, PeerDeleteResponse
```
Methods:
@@ -2443,7 +2558,7 @@ Methods:
Types:
```python
-from cloudflare.types.secondary_dns import SecondaryDNSTSIG, TSIGDeleteResponse
+from cloudflare.types.secondary_dns import SecondaryDNSTSIG, UnnamedSchemaRef48, TSIGDeleteResponse
```
Methods:
@@ -2571,7 +2686,7 @@ Methods:
Types:
```python
-from cloudflare.types.web3 import DistributedWebHostname, HostnameDeleteResponse
+from cloudflare.types.web3 import DistributedWebHostname, UnnamedSchemaRef56, HostnameDeleteResponse
```
Methods:
@@ -2604,6 +2719,7 @@ Types:
```python
from cloudflare.types.web3.hostnames.ipfs_universal_paths.content_lists import (
DistributedWebConfigContentListEntry,
+ UnnamedSchemaRef58,
EntryListResponse,
EntryDeleteResponse,
)
@@ -2676,13 +2792,13 @@ Methods:
Types:
```python
-from cloudflare.types.workers.scripts import TailCreateResponse, TailDeleteResponse, TailGetResponse
+from cloudflare.types.workers.scripts import TailCreateResponse, TailGetResponse
```
Methods:
- client.workers.scripts.tail.create(script_name, \*, account_id, \*\*params) -> TailCreateResponse
-- client.workers.scripts.tail.delete(id, \*, account_id, script_name, \*\*params) -> TailDeleteResponse
+- client.workers.scripts.tail.delete(id, \*, account_id, script_name, \*\*params) -> UnnamedSchemaRef171
- client.workers.scripts.tail.get(script_name, \*, account_id) -> TailGetResponse
### UsageModel
@@ -2955,7 +3071,6 @@ from cloudflare.types import (
QueueCreateResponse,
QueueUpdateResponse,
QueueListResponse,
- QueueDeleteResponse,
QueueGetResponse,
)
```
@@ -2965,7 +3080,7 @@ Methods:
- client.queues.create(\*, account_id, \*\*params) -> Optional
- client.queues.update(queue_id, \*, account_id, \*\*params) -> Optional
- client.queues.list(\*, account_id) -> Optional
-- client.queues.delete(queue_id, \*, account_id, \*\*params) -> Optional
+- client.queues.delete(queue_id, \*, account_id, \*\*params) -> Optional
- client.queues.get(queue_id, \*, account_id) -> Optional
## Consumers
@@ -2976,7 +3091,6 @@ Types:
from cloudflare.types.queues import (
ConsumerCreateResponse,
ConsumerUpdateResponse,
- ConsumerDeleteResponse,
ConsumerGetResponse,
)
```
@@ -2985,7 +3099,7 @@ Methods:
- client.queues.consumers.create(queue_id, \*, account_id, \*\*params) -> Optional
- client.queues.consumers.update(consumer_id, \*, account_id, queue_id, \*\*params) -> Optional
-- client.queues.consumers.delete(consumer_id, \*, account_id, queue_id, \*\*params) -> Optional
+- client.queues.consumers.delete(consumer_id, \*, account_id, queue_id, \*\*params) -> Optional
- client.queues.consumers.get(queue_id, \*, account_id) -> Optional
## Messages
@@ -3223,7 +3337,6 @@ from cloudflare.types.spectrum import (
AppUpdateResponse,
AppListResponse,
AppDeleteResponse,
- AppGetResponse,
)
```
@@ -3233,7 +3346,7 @@ Methods:
- client.spectrum.apps.update(app_id, \*, zone, \*\*params) -> Optional
- client.spectrum.apps.list(zone, \*\*params) -> SyncV4PagePaginationArray[object]
- client.spectrum.apps.delete(app_id, \*, zone, \*\*params) -> Optional
-- client.spectrum.apps.get(app_id, \*, zone) -> Optional
+- client.spectrum.apps.get(app_id, \*, zone) -> Optional
# Addressing
@@ -3257,7 +3370,6 @@ Types:
from cloudflare.types.addressing import (
AddressingAddressMaps,
AddressMapCreateResponse,
- AddressMapDeleteResponse,
AddressMapGetResponse,
)
```
@@ -3266,48 +3378,30 @@ Methods:
- client.addressing.address_maps.create(\*, account_id, \*\*params) -> AddressMapCreateResponse
- client.addressing.address_maps.list(\*, account_id) -> SyncSinglePage[AddressingAddressMaps]
-- client.addressing.address_maps.delete(address_map_id, \*, account_id, \*\*params) -> Optional
+- client.addressing.address_maps.delete(address_map_id, \*, account_id, \*\*params) -> Optional
- client.addressing.address_maps.edit(address_map_id, \*, account_id, \*\*params) -> AddressingAddressMaps
- client.addressing.address_maps.get(address_map_id, \*, account_id) -> AddressMapGetResponse
### Accounts
-Types:
-
-```python
-from cloudflare.types.addressing.address_maps import AccountUpdateResponse, AccountDeleteResponse
-```
-
Methods:
-- client.addressing.address_maps.accounts.update(address_map_id, \*, account_id, \*\*params) -> Optional
-- client.addressing.address_maps.accounts.delete(address_map_id, \*, account_id, \*\*params) -> Optional
+- client.addressing.address_maps.accounts.update(address_map_id, \*, account_id, \*\*params) -> Optional
+- client.addressing.address_maps.accounts.delete(address_map_id, \*, account_id, \*\*params) -> Optional
### IPs
-Types:
-
-```python
-from cloudflare.types.addressing.address_maps import IPUpdateResponse, IPDeleteResponse
-```
-
Methods:
-- client.addressing.address_maps.ips.update(ip_address, \*, account_id, address_map_id, \*\*params) -> Optional
-- client.addressing.address_maps.ips.delete(ip_address, \*, account_id, address_map_id, \*\*params) -> Optional
+- client.addressing.address_maps.ips.update(ip_address, \*, account_id, address_map_id, \*\*params) -> Optional
+- client.addressing.address_maps.ips.delete(ip_address, \*, account_id, address_map_id, \*\*params) -> Optional
### Zones
-Types:
-
-```python
-from cloudflare.types.addressing.address_maps import ZoneUpdateResponse, ZoneDeleteResponse
-```
-
Methods:
-- client.addressing.address_maps.zones.update(address_map_id, \*, zone_id, account_id, \*\*params) -> Optional
-- client.addressing.address_maps.zones.delete(address_map_id, \*, zone_id, account_id, \*\*params) -> Optional
+- client.addressing.address_maps.zones.update(address_map_id, \*, zone_id, account_id, \*\*params) -> Optional
+- client.addressing.address_maps.zones.delete(address_map_id, \*, zone_id, account_id, \*\*params) -> Optional
## LOADocuments
@@ -3338,14 +3432,14 @@ Methods:
Types:
```python
-from cloudflare.types.addressing import AddressingIpamPrefixes, PrefixDeleteResponse
+from cloudflare.types.addressing import AddressingIpamPrefixes, UnnamedSchemaRef6
```
Methods:
- client.addressing.prefixes.create(\*, account_id, \*\*params) -> AddressingIpamPrefixes
- client.addressing.prefixes.list(\*, account_id) -> SyncSinglePage[AddressingIpamPrefixes]
-- client.addressing.prefixes.delete(prefix_id, \*, account_id, \*\*params) -> Optional
+- client.addressing.prefixes.delete(prefix_id, \*, account_id, \*\*params) -> Optional
- client.addressing.prefixes.edit(prefix_id, \*, account_id, \*\*params) -> AddressingIpamPrefixes
- client.addressing.prefixes.get(prefix_id, \*, account_id) -> AddressingIpamPrefixes
@@ -3356,14 +3450,14 @@ Methods:
Types:
```python
-from cloudflare.types.addressing.prefixes.bgp import AddressingServiceBinding, BindingDeleteResponse
+from cloudflare.types.addressing.prefixes.bgp import AddressingServiceBinding
```
Methods:
- client.addressing.prefixes.bgp.bindings.create(prefix_id, \*, account_id, \*\*params) -> AddressingServiceBinding
- client.addressing.prefixes.bgp.bindings.list(prefix_id, \*, account_id) -> SyncSinglePage[AddressingServiceBinding]
-- client.addressing.prefixes.bgp.bindings.delete(binding_id, \*, account_id, prefix_id) -> BindingDeleteResponse
+- client.addressing.prefixes.bgp.bindings.delete(binding_id, \*, account_id, prefix_id) -> UnnamedSchemaRef171
- client.addressing.prefixes.bgp.bindings.get(binding_id, \*, account_id, prefix_id) -> AddressingServiceBinding
#### Prefixes
@@ -3467,7 +3561,7 @@ Methods:
Types:
```python
-from cloudflare.types.images import Image, V1ListResponse, V1DeleteResponse
+from cloudflare.types.images import Image, UnnamedSchemaRef31, V1ListResponse, V1DeleteResponse
```
Methods:
@@ -3483,7 +3577,7 @@ Methods:
Types:
```python
-from cloudflare.types.images.v1 import ImagesImageKeys
+from cloudflare.types.images.v1 import ImagesImageKeys, UnnamedSchemaRef32
```
Methods:
@@ -3509,7 +3603,12 @@ Methods:
Types:
```python
-from cloudflare.types.images.v1 import V1ImageVariant, V1ImageVariants, VariantDeleteResponse
+from cloudflare.types.images.v1 import (
+ UnnamedSchemaRef33,
+ V1ImageVariant,
+ V1ImageVariants,
+ VariantDeleteResponse,
+)
```
Methods:
@@ -3945,7 +4044,10 @@ Methods:
Types:
```python
-from cloudflare.types.magic_network_monitoring import MagicNetworkMonitoringConfig
+from cloudflare.types.magic_network_monitoring import (
+ MagicNetworkMonitoringConfig,
+ UnnamedSchemaRef137,
+)
```
Methods:
@@ -3967,7 +4069,10 @@ Methods:
Types:
```python
-from cloudflare.types.magic_network_monitoring import MagicNetworkMonitoringRule
+from cloudflare.types.magic_network_monitoring import (
+ MagicNetworkMonitoringRule,
+ UnnamedSchemaRef127,
+)
```
Methods:
@@ -4174,7 +4279,7 @@ Methods:
Types:
```python
-from cloudflare.types.rules import ListsList, ListDeleteResponse
+from cloudflare.types.rules import ListsList, UnnamedSchemaRef42, ListDeleteResponse
```
Methods:
@@ -4356,19 +4461,14 @@ Methods:
Types:
```python
-from cloudflare.types.stream import (
- StreamWatermarks,
- WatermarkCreateResponse,
- WatermarkDeleteResponse,
- WatermarkGetResponse,
-)
+from cloudflare.types.stream import StreamWatermarks, WatermarkCreateResponse, WatermarkGetResponse
```
Methods:
- client.stream.watermarks.create(\*, account_id, \*\*params) -> WatermarkCreateResponse
- client.stream.watermarks.list(\*, account_id) -> SyncSinglePage[StreamWatermarks]
-- client.stream.watermarks.delete(identifier, \*, account_id, \*\*params) -> WatermarkDeleteResponse
+- client.stream.watermarks.delete(identifier, \*, account_id, \*\*params) -> UnnamedSchemaRef49
- client.stream.watermarks.get(identifier, \*, account_id) -> WatermarkGetResponse
## Webhooks
@@ -4450,15 +4550,9 @@ Methods:
## AvailableAlerts
-Types:
-
-```python
-from cloudflare.types.alerting import AvailableAlertListResponse
-```
-
Methods:
-- client.alerting.available_alerts.list(\*, account_id) -> Optional
+- client.alerting.available_alerts.list(\*, account_id) -> Optional
## Destinations
@@ -4482,7 +4576,6 @@ Types:
from cloudflare.types.alerting.destinations import (
AlertingPagerduty,
PagerdutyCreateResponse,
- PagerdutyDeleteResponse,
PagerdutyGetResponse,
PagerdutyLinkResponse,
)
@@ -4491,7 +4584,7 @@ from cloudflare.types.alerting.destinations import (
Methods:
- client.alerting.destinations.pagerduty.create(\*, account_id) -> PagerdutyCreateResponse
-- client.alerting.destinations.pagerduty.delete(\*, account_id) -> Optional
+- client.alerting.destinations.pagerduty.delete(\*, account_id) -> Optional
- client.alerting.destinations.pagerduty.get(\*, account_id) -> Optional
- client.alerting.destinations.pagerduty.link(token_id, \*, account_id) -> PagerdutyLinkResponse
@@ -4504,7 +4597,6 @@ from cloudflare.types.alerting.destinations import (
AlertingWebhooks,
WebhookCreateResponse,
WebhookUpdateResponse,
- WebhookDeleteResponse,
)
```
@@ -4513,7 +4605,7 @@ Methods:
- client.alerting.destinations.webhooks.create(\*, account_id, \*\*params) -> WebhookCreateResponse
- client.alerting.destinations.webhooks.update(webhook_id, \*, account_id, \*\*params) -> WebhookUpdateResponse
- client.alerting.destinations.webhooks.list(\*, account_id) -> SyncSinglePage[AlertingWebhooks]
-- client.alerting.destinations.webhooks.delete(webhook_id, \*, account_id) -> Optional
+- client.alerting.destinations.webhooks.delete(webhook_id, \*, account_id) -> Optional
- client.alerting.destinations.webhooks.get(webhook_id, \*, account_id) -> AlertingWebhooks
## History
@@ -4533,12 +4625,7 @@ Methods:
Types:
```python
-from cloudflare.types.alerting import (
- AlertingPolicies,
- PolicyCreateResponse,
- PolicyUpdateResponse,
- PolicyDeleteResponse,
-)
+from cloudflare.types.alerting import AlertingPolicies, PolicyCreateResponse, PolicyUpdateResponse
```
Methods:
@@ -4546,7 +4633,7 @@ Methods:
- client.alerting.policies.create(\*, account_id, \*\*params) -> PolicyCreateResponse
- client.alerting.policies.update(policy_id, \*, account_id, \*\*params) -> PolicyUpdateResponse
- client.alerting.policies.list(\*, account_id) -> SyncSinglePage[AlertingPolicies]
-- client.alerting.policies.delete(policy_id, \*, account_id) -> Optional
+- client.alerting.policies.delete(policy_id, \*, account_id) -> Optional
- client.alerting.policies.get(policy_id, \*, account_id) -> AlertingPolicies
# D1
@@ -4560,7 +4647,6 @@ from cloudflare.types.d1 import (
D1CreateDatabase,
D1DatabaseDetails,
D1QueryResult,
- DatabaseDeleteResponse,
DatabaseQueryResponse,
)
```
@@ -4569,7 +4655,7 @@ Methods:
- client.d1.database.create(\*, account_id, \*\*params) -> D1CreateDatabase
- client.d1.database.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[D1CreateDatabase]
-- client.d1.database.delete(database_identifier, \*, account_identifier) -> Optional
+- client.d1.database.delete(database_identifier, \*, account_identifier) -> Optional
- client.d1.database.get(database_identifier, \*, account_identifier) -> D1DatabaseDetails
- client.d1.database.query(database_identifier, \*, account_identifier, \*\*params) -> DatabaseQueryResponse
@@ -4609,23 +4695,16 @@ Methods:
Types:
```python
-from cloudflare.types import (
- WARPConnectorCreateResponse,
- WARPConnectorListResponse,
- WARPConnectorDeleteResponse,
- WARPConnectorEditResponse,
- WARPConnectorGetResponse,
- WARPConnectorTokenResponse,
-)
+from cloudflare.types import WARPConnectorTokenResponse
```
Methods:
-- client.warp_connector.create(\*, account_id, \*\*params) -> WARPConnectorCreateResponse
-- client.warp_connector.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[WARPConnectorListResponse]
-- client.warp_connector.delete(tunnel_id, \*, account_id, \*\*params) -> WARPConnectorDeleteResponse
-- client.warp_connector.edit(tunnel_id, \*, account_id, \*\*params) -> WARPConnectorEditResponse
-- client.warp_connector.get(tunnel_id, \*, account_id) -> WARPConnectorGetResponse
+- client.warp_connector.create(\*, account_id, \*\*params) -> UnnamedSchemaRef123
+- client.warp_connector.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[UnnamedSchemaRef123]
+- client.warp_connector.delete(tunnel_id, \*, account_id, \*\*params) -> UnnamedSchemaRef123
+- client.warp_connector.edit(tunnel_id, \*, account_id, \*\*params) -> UnnamedSchemaRef123
+- client.warp_connector.get(tunnel_id, \*, account_id) -> UnnamedSchemaRef123
- client.warp_connector.token(tunnel_id, \*, account_id) -> WARPConnectorTokenResponse
# WorkersForPlatforms
@@ -4710,20 +4789,24 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust import ZeroTrustDevices, DeviceGetResponse
+from cloudflare.types.zero_trust import ZeroTrustDevices
```
Methods:
- client.zero_trust.devices.list(\*, account_id) -> SyncSinglePage[ZeroTrustDevices]
-- client.zero_trust.devices.get(device_id, \*, account_id) -> Optional
+- client.zero_trust.devices.get(device_id, \*, account_id) -> Optional
### DEXTests
Types:
```python
-from cloudflare.types.zero_trust.devices import DEXTestSchemasHTTP, DEXTestDeleteResponse
+from cloudflare.types.zero_trust.devices import (
+ DEXTestSchemasHTTP,
+ UnnamedSchemaRef95,
+ DEXTestDeleteResponse,
+)
```
Methods:
@@ -4739,7 +4822,11 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.devices import DeviceManagedNetworks, NetworkDeleteResponse
+from cloudflare.types.zero_trust.devices import (
+ DeviceManagedNetworks,
+ UnnamedSchemaRef17,
+ NetworkDeleteResponse,
+)
```
Methods:
@@ -4755,7 +4842,11 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.devices import DevicesDeviceSettingsPolicy, PolicyDeleteResponse
+from cloudflare.types.zero_trust.devices import (
+ DevicesDeviceSettingsPolicy,
+ UnnamedSchemaRef18,
+ PolicyDeleteResponse,
+)
```
Methods:
@@ -4837,7 +4928,11 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.devices import DevicePostureRules, PostureDeleteResponse
+from cloudflare.types.zero_trust.devices import (
+ DevicePostureRules,
+ UnnamedSchemaRef19,
+ PostureDeleteResponse,
+)
```
Methods:
@@ -4855,7 +4950,7 @@ Types:
```python
from cloudflare.types.zero_trust.devices.posture import (
DevicePostureIntegrations,
- IntegrationDeleteResponse,
+ UnnamedSchemaRef20,
)
```
@@ -4863,21 +4958,15 @@ Methods:
- client.zero_trust.devices.posture.integrations.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.integrations.list(\*, account_id) -> SyncSinglePage[DevicePostureIntegrations]
-- client.zero_trust.devices.posture.integrations.delete(integration_id, \*, account_id, \*\*params) -> Optional
+- client.zero_trust.devices.posture.integrations.delete(integration_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.integrations.edit(integration_id, \*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.integrations.get(integration_id, \*, account_id) -> Optional
### Revoke
-Types:
-
-```python
-from cloudflare.types.zero_trust.devices import RevokeCreateResponse
-```
-
Methods:
-- client.zero_trust.devices.revoke.create(\*, account_id, \*\*params) -> Optional
+- client.zero_trust.devices.revoke.create(\*, account_id, \*\*params) -> Optional
### Settings
@@ -4894,15 +4983,9 @@ Methods:
### Unrevoke
-Types:
-
-```python
-from cloudflare.types.zero_trust.devices import UnrevokeCreateResponse
-```
-
Methods:
-- client.zero_trust.devices.unrevoke.create(\*, account_id, \*\*params) -> Optional
+- client.zero_trust.devices.unrevoke.create(\*, account_id, \*\*params) -> Optional
### OverrideCodes
@@ -5367,15 +5450,15 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust import TunnelArgoTunnel, TunnelListResponse, TunnelEditResponse
+from cloudflare.types.zero_trust import TunnelArgoTunnel, UnnamedSchemaRef50
```
Methods:
- client.zero_trust.tunnels.create(\*, account_id, \*\*params) -> TunnelArgoTunnel
-- client.zero_trust.tunnels.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[TunnelListResponse]
+- client.zero_trust.tunnels.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[UnnamedSchemaRef123]
- client.zero_trust.tunnels.delete(tunnel_id, \*, account_id, \*\*params) -> TunnelArgoTunnel
-- client.zero_trust.tunnels.edit(tunnel_id, \*, account_id, \*\*params) -> TunnelEditResponse
+- client.zero_trust.tunnels.edit(tunnel_id, \*, account_id, \*\*params) -> UnnamedSchemaRef123
- client.zero_trust.tunnels.get(tunnel_id, \*, account_id) -> TunnelArgoTunnel
### Configurations
@@ -5531,18 +5614,14 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.dlp.profiles import (
- DLPCustomProfile,
- CustomCreateResponse,
- CustomDeleteResponse,
-)
+from cloudflare.types.zero_trust.dlp.profiles import DLPCustomProfile, CustomCreateResponse
```
Methods:
- client.zero_trust.dlp.profiles.custom.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.dlp.profiles.custom.update(profile_id, \*, account_id, \*\*params) -> DLPCustomProfile
-- client.zero_trust.dlp.profiles.custom.delete(profile_id, \*, account_id, \*\*params) -> CustomDeleteResponse
+- client.zero_trust.dlp.profiles.custom.delete(profile_id, \*, account_id, \*\*params) -> UnnamedSchemaRef169
- client.zero_trust.dlp.profiles.custom.get(profile_id, \*, account_id) -> DLPCustomProfile
#### Predefined
@@ -5632,6 +5711,7 @@ Types:
```python
from cloudflare.types.zero_trust.gateway import (
+ UnnamedSchemaRef26,
ZeroTrustGatewayLists,
ListCreateResponse,
ListDeleteResponse,
@@ -5664,7 +5744,11 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.gateway import ZeroTrustGatewayLocations, LocationDeleteResponse
+from cloudflare.types.zero_trust.gateway import (
+ UnnamedSchemaRef27,
+ ZeroTrustGatewayLocations,
+ LocationDeleteResponse,
+)
```
Methods:
@@ -5694,6 +5778,7 @@ Types:
```python
from cloudflare.types.zero_trust.gateway import (
+ UnnamedSchemaRef29,
ZeroTrustGatewayProxyEndpoints,
ProxyEndpointDeleteResponse,
)
@@ -5712,7 +5797,11 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.gateway import ZeroTrustGatewayRules, RuleDeleteResponse
+from cloudflare.types.zero_trust.gateway import (
+ UnnamedSchemaRef30,
+ ZeroTrustGatewayRules,
+ RuleDeleteResponse,
+)
```
Methods:
@@ -5730,7 +5819,7 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.networks import TunnelRoute, TunnelTeamnet
+from cloudflare.types.zero_trust.networks import TunnelRoute, TunnelTeamnet, UnnamedSchemaRef138
```
Methods:
@@ -5810,7 +5899,6 @@ from cloudflare.types.hyperdrive import (
ConfigCreateResponse,
ConfigUpdateResponse,
ConfigListResponse,
- ConfigDeleteResponse,
ConfigEditResponse,
ConfigGetResponse,
)
@@ -5821,7 +5909,7 @@ Methods:
- client.hyperdrive.configs.create(\*, account_id, \*\*params) -> Optional
- client.hyperdrive.configs.update(hyperdrive_id, \*, account_id, \*\*params) -> Optional
- client.hyperdrive.configs.list(\*, account_id) -> SyncSinglePage[ConfigListResponse]
-- client.hyperdrive.configs.delete(hyperdrive_id, \*, account_id) -> Optional
+- client.hyperdrive.configs.delete(hyperdrive_id, \*, account_id) -> Optional
- client.hyperdrive.configs.edit(hyperdrive_id, \*, account_id, \*\*params) -> Optional
- client.hyperdrive.configs.get(hyperdrive_id, \*, account_id) -> Optional
@@ -5871,7 +5959,6 @@ from cloudflare.types.vectorize import (
VectorizeIndexInsert,
VectorizeIndexQuery,
VectorizeIndexUpsert,
- IndexDeleteResponse,
IndexGetByIDsResponse,
)
```
@@ -5881,7 +5968,7 @@ Methods:
- client.vectorize.indexes.create(account_identifier, \*\*params) -> Optional
- client.vectorize.indexes.update(index_name, \*, account_identifier, \*\*params) -> Optional
- client.vectorize.indexes.list(account_identifier) -> SyncSinglePage[VectorizeCreateIndex]
-- client.vectorize.indexes.delete(index_name, \*, account_identifier) -> Optional
+- client.vectorize.indexes.delete(index_name, \*, account_identifier) -> Optional
- client.vectorize.indexes.delete_by_ids(index_name, \*, account_identifier, \*\*params) -> Optional
- client.vectorize.indexes.get(index_name, \*, account_identifier) -> Optional
- client.vectorize.indexes.get_by_ids(index_name, \*, account_identifier, \*\*params) -> object
@@ -5906,7 +5993,13 @@ Methods:
Types:
```python
-from cloudflare.types.url_scanner import ScanCreateResponse, ScanGetResponse, ScanHarResponse
+from cloudflare.types.url_scanner import (
+ UnnamedSchemaRef1,
+ UnnamedSchemaRef134,
+ ScanCreateResponse,
+ ScanGetResponse,
+ ScanHarResponse,
+)
```
Methods:
@@ -5918,6 +6011,24 @@ Methods:
# Radar
+Types:
+
+```python
+from cloudflare.types import (
+ UnnamedSchemaRef106,
+ UnnamedSchemaRef128,
+ UnnamedSchemaRef129,
+ UnnamedSchemaRef130,
+ UnnamedSchemaRef153,
+ UnnamedSchemaRef154,
+ UnnamedSchemaRef160,
+ UnnamedSchemaRef168,
+ UnnamedSchemaRef174,
+ UnnamedSchemaRef175,
+ UnnamedSchemaRef53,
+)
+```
+
## Annotations
### Outages
@@ -6193,6 +6304,12 @@ Methods:
## Email
+Types:
+
+```python
+from cloudflare.types.radar import UnnamedSchemaRef149, UnnamedSchemaRef150
+```
+
### Routing
#### Summary
@@ -7083,7 +7200,7 @@ from cloudflare.types.hostnames.settings import (
Methods:
-- client.hostnames.settings.tls.update(hostname, \*, zone_id, setting_id, \*\*params) -> HostnameStting
+- client.hostnames.settings.tls.update(hostname, \*, zone_id, setting_id, \*\*params) -> UnnamedSchemaRef65
- client.hostnames.settings.tls.delete(hostname, \*, zone_id, setting_id) -> HostnameSettingDelete
- client.hostnames.settings.tls.get(setting_id, \*, zone_id) -> Optional
@@ -7092,14 +7209,14 @@ Methods:
Types:
```python
-from cloudflare.types import Snippet, SnippetDeleteResponse
+from cloudflare.types import Snippet
```
Methods:
- client.snippets.update(snippet_name, \*, zone_identifier, \*\*params) -> Snippet
- client.snippets.list(zone_identifier) -> SyncSinglePage[Snippet]
-- client.snippets.delete(snippet_name, \*, zone_identifier) -> SnippetDeleteResponse
+- client.snippets.delete(snippet_name, \*, zone_identifier) -> UnnamedSchemaRef171
- client.snippets.get(snippet_name, \*, zone_identifier) -> Snippet
## Content
@@ -7150,7 +7267,6 @@ from cloudflare.types.cloudforce_one import (
CloudforceOneRequestItem,
CloudforceOneRequestListItem,
CloudforceOneRequestTypes,
- RequestDeleteResponse,
)
```
@@ -7159,7 +7275,7 @@ Methods:
- client.cloudforce_one.requests.create(account_identifier, \*\*params) -> CloudforceOneRequestItem
- client.cloudforce_one.requests.update(request_identifier, \*, account_identifier, \*\*params) -> CloudforceOneRequestItem
- client.cloudforce_one.requests.list(account_identifier, \*\*params) -> SyncV4PagePaginationArray[CloudforceOneRequestListItem]
-- client.cloudforce_one.requests.delete(request_identifier, \*, account_identifier) -> RequestDeleteResponse
+- client.cloudforce_one.requests.delete(request_identifier, \*, account_identifier) -> UnnamedSchemaRef171
- client.cloudforce_one.requests.constants(account_identifier) -> CloudforceOneRequestConstants
- client.cloudforce_one.requests.get(request_identifier, \*, account_identifier) -> CloudforceOneRequestItem
- client.cloudforce_one.requests.quota(account_identifier) -> CloudforceOneQuota
@@ -7172,7 +7288,6 @@ Types:
```python
from cloudflare.types.cloudforce_one.requests import (
CloudforceOneRequestMessageItem,
- MessageDeleteResponse,
MessageGetResponse,
)
```
@@ -7181,7 +7296,7 @@ Methods:
- client.cloudforce_one.requests.message.create(request_identifier, \*, account_identifier, \*\*params) -> CloudforceOneRequestMessageItem
- client.cloudforce_one.requests.message.update(message_identifer, \*, account_identifier, request_identifier, \*\*params) -> CloudforceOneRequestMessageItem
-- client.cloudforce_one.requests.message.delete(message_identifer, \*, account_identifier, request_identifier) -> MessageDeleteResponse
+- client.cloudforce_one.requests.message.delete(message_identifer, \*, account_identifier, request_identifier) -> UnnamedSchemaRef171
- client.cloudforce_one.requests.message.get(request_identifier, \*, account_identifier, \*\*params) -> MessageGetResponse
### Priority
@@ -7189,16 +7304,13 @@ Methods:
Types:
```python
-from cloudflare.types.cloudforce_one.requests import (
- CloudforceOnePriorityItem,
- PriorityDeleteResponse,
-)
+from cloudflare.types.cloudforce_one.requests import CloudforceOnePriorityItem
```
Methods:
- client.cloudforce_one.requests.priority.create(account_identifier, \*\*params) -> CloudforceOnePriorityItem
- client.cloudforce_one.requests.priority.update(priority_identifer, \*, account_identifier, \*\*params) -> CloudforceOneRequestItem
-- client.cloudforce_one.requests.priority.delete(priority_identifer, \*, account_identifier) -> PriorityDeleteResponse
+- client.cloudforce_one.requests.priority.delete(priority_identifer, \*, account_identifier) -> UnnamedSchemaRef171
- client.cloudforce_one.requests.priority.get(priority_identifer, \*, account_identifier) -> CloudforceOneRequestItem
- client.cloudforce_one.requests.priority.quota(account_identifier) -> CloudforceOneQuota
diff --git a/src/cloudflare/resources/addressing/address_maps/accounts.py b/src/cloudflare/resources/addressing/address_maps/accounts.py
index 71b9fb4dd2a..23a60c572f4 100644
--- a/src/cloudflare/resources/addressing/address_maps/accounts.py
+++ b/src/cloudflare/resources/addressing/address_maps/accounts.py
@@ -23,12 +23,8 @@
from ...._base_client import (
make_request_options,
)
-from ....types.addressing.address_maps import (
- AccountDeleteResponse,
- AccountUpdateResponse,
- account_delete_params,
- account_update_params,
-)
+from ....types.shared import UnnamedSchemaRef167
+from ....types.addressing.address_maps import account_delete_params, account_update_params
__all__ = ["Accounts", "AsyncAccounts"]
@@ -54,7 +50,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccountUpdateResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Add an account as a member of a particular address map.
@@ -76,7 +72,7 @@ def update(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[AccountUpdateResponse],
+ Optional[UnnamedSchemaRef167],
self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
body=maybe_transform(body, account_update_params.AccountUpdateParams),
@@ -88,7 +84,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccountUpdateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -105,7 +101,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccountDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Remove an account as a member of a particular address map.
@@ -127,7 +123,7 @@ def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[AccountDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
body=maybe_transform(body, account_delete_params.AccountDeleteParams),
@@ -139,7 +135,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccountDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -166,7 +162,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccountUpdateResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Add an account as a member of a particular address map.
@@ -188,7 +184,7 @@ async def update(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[AccountUpdateResponse],
+ Optional[UnnamedSchemaRef167],
await self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
body=await async_maybe_transform(body, account_update_params.AccountUpdateParams),
@@ -200,7 +196,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccountUpdateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -217,7 +213,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccountDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Remove an account as a member of a particular address map.
@@ -239,7 +235,7 @@ async def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[AccountDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
body=await async_maybe_transform(body, account_delete_params.AccountDeleteParams),
@@ -251,7 +247,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccountDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/address_maps/address_maps.py b/src/cloudflare/resources/addressing/address_maps/address_maps.py
index 8d42cd84a16..52862ef3e66 100644
--- a/src/cloudflare/resources/addressing/address_maps/address_maps.py
+++ b/src/cloudflare/resources/addressing/address_maps/address_maps.py
@@ -49,11 +49,11 @@
AsyncPaginator,
make_request_options,
)
+from ....types.shared import UnnamedSchemaRef167
from ....types.addressing import (
AddressingAddressMaps,
AddressMapGetResponse,
AddressMapCreateResponse,
- AddressMapDeleteResponse,
address_map_edit_params,
address_map_create_params,
address_map_delete_params,
@@ -185,7 +185,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AddressMapDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""Delete a particular address map owned by the account.
An Address Map must be
@@ -209,7 +209,7 @@ def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[AddressMapDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}",
body=maybe_transform(body, address_map_delete_params.AddressMapDeleteParams),
@@ -221,7 +221,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AddressMapDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -461,7 +461,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AddressMapDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""Delete a particular address map owned by the account.
An Address Map must be
@@ -485,7 +485,7 @@ async def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[AddressMapDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}",
body=await async_maybe_transform(body, address_map_delete_params.AddressMapDeleteParams),
@@ -497,7 +497,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AddressMapDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/address_maps/ips.py b/src/cloudflare/resources/addressing/address_maps/ips.py
index ff87f190f0b..dabe95c94d9 100644
--- a/src/cloudflare/resources/addressing/address_maps/ips.py
+++ b/src/cloudflare/resources/addressing/address_maps/ips.py
@@ -23,7 +23,8 @@
from ...._base_client import (
make_request_options,
)
-from ....types.addressing.address_maps import IPDeleteResponse, IPUpdateResponse, ip_delete_params, ip_update_params
+from ....types.shared import UnnamedSchemaRef167
+from ....types.addressing.address_maps import ip_delete_params, ip_update_params
__all__ = ["IPs", "AsyncIPs"]
@@ -50,7 +51,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[IPUpdateResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Add an IP from a prefix owned by the account to a particular address map.
@@ -76,7 +77,7 @@ def update(
if not ip_address:
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return cast(
- Optional[IPUpdateResponse],
+ Optional[UnnamedSchemaRef167],
self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
body=maybe_transform(body, ip_update_params.IPUpdateParams),
@@ -88,7 +89,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[IPUpdateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -106,7 +107,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[IPDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Remove an IP from a particular address map.
@@ -132,7 +133,7 @@ def delete(
if not ip_address:
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return cast(
- Optional[IPDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
body=maybe_transform(body, ip_delete_params.IPDeleteParams),
@@ -144,7 +145,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[IPDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -172,7 +173,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[IPUpdateResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Add an IP from a prefix owned by the account to a particular address map.
@@ -198,7 +199,7 @@ async def update(
if not ip_address:
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return cast(
- Optional[IPUpdateResponse],
+ Optional[UnnamedSchemaRef167],
await self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
body=await async_maybe_transform(body, ip_update_params.IPUpdateParams),
@@ -210,7 +211,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[IPUpdateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -228,7 +229,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[IPDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Remove an IP from a particular address map.
@@ -254,7 +255,7 @@ async def delete(
if not ip_address:
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return cast(
- Optional[IPDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
body=await async_maybe_transform(body, ip_delete_params.IPDeleteParams),
@@ -266,7 +267,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[IPDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/address_maps/zones.py b/src/cloudflare/resources/addressing/address_maps/zones.py
index 6bf140d4d71..173e95e94e2 100644
--- a/src/cloudflare/resources/addressing/address_maps/zones.py
+++ b/src/cloudflare/resources/addressing/address_maps/zones.py
@@ -23,12 +23,8 @@
from ...._base_client import (
make_request_options,
)
-from ....types.addressing.address_maps import (
- ZoneDeleteResponse,
- ZoneUpdateResponse,
- zone_delete_params,
- zone_update_params,
-)
+from ....types.shared import UnnamedSchemaRef167
+from ....types.addressing.address_maps import zone_delete_params, zone_update_params
__all__ = ["Zones", "AsyncZones"]
@@ -55,7 +51,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ZoneUpdateResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Add a zone as a member of a particular address map.
@@ -81,7 +77,7 @@ def update(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[ZoneUpdateResponse],
+ Optional[UnnamedSchemaRef167],
self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=maybe_transform(body, zone_update_params.ZoneUpdateParams),
@@ -93,7 +89,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ZoneUpdateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -111,7 +107,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ZoneDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Remove a zone as a member of a particular address map.
@@ -137,7 +133,7 @@ def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[ZoneDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=maybe_transform(body, zone_delete_params.ZoneDeleteParams),
@@ -149,7 +145,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ZoneDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -177,7 +173,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ZoneUpdateResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Add a zone as a member of a particular address map.
@@ -203,7 +199,7 @@ async def update(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[ZoneUpdateResponse],
+ Optional[UnnamedSchemaRef167],
await self._put(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=await async_maybe_transform(body, zone_update_params.ZoneUpdateParams),
@@ -215,7 +211,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ZoneUpdateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -233,7 +229,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ZoneDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Remove a zone as a member of a particular address map.
@@ -259,7 +255,7 @@ async def delete(
if not address_map_id:
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return cast(
- Optional[ZoneDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=await async_maybe_transform(body, zone_delete_params.ZoneDeleteParams),
@@ -271,7 +267,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ZoneDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
index 46ce8e5e38d..8b83ba3380d 100644
--- a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
+++ b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
@@ -25,7 +25,8 @@
AsyncPaginator,
make_request_options,
)
-from .....types.addressing.prefixes.bgp import BindingDeleteResponse, AddressingServiceBinding, binding_create_params
+from .....types.shared import UnnamedSchemaRef171
+from .....types.addressing.prefixes.bgp import AddressingServiceBinding, binding_create_params
__all__ = ["Bindings", "AsyncBindings"]
@@ -158,7 +159,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> BindingDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete a Service Binding
@@ -184,7 +185,7 @@ def delete(
if not binding_id:
raise ValueError(f"Expected a non-empty value for `binding_id` but received {binding_id!r}")
return cast(
- BindingDeleteResponse,
+ UnnamedSchemaRef171,
self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/bindings/{binding_id}",
options=make_request_options(
@@ -195,7 +196,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[BindingDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -378,7 +379,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> BindingDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete a Service Binding
@@ -404,7 +405,7 @@ async def delete(
if not binding_id:
raise ValueError(f"Expected a non-empty value for `binding_id` but received {binding_id!r}")
return cast(
- BindingDeleteResponse,
+ UnnamedSchemaRef171,
await self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/bindings/{binding_id}",
options=make_request_options(
@@ -415,7 +416,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[BindingDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/addressing/prefixes/prefixes.py b/src/cloudflare/resources/addressing/prefixes/prefixes.py
index ff45c6c4ac5..174cbaf61a6 100644
--- a/src/cloudflare/resources/addressing/prefixes/prefixes.py
+++ b/src/cloudflare/resources/addressing/prefixes/prefixes.py
@@ -42,13 +42,8 @@
AsyncPaginator,
make_request_options,
)
-from ....types.addressing import (
- PrefixDeleteResponse,
- AddressingIpamPrefixes,
- prefix_edit_params,
- prefix_create_params,
- prefix_delete_params,
-)
+from ....types.shared import UnnamedSchemaRef167
+from ....types.addressing import AddressingIpamPrefixes, prefix_edit_params, prefix_create_params, prefix_delete_params
__all__ = ["Prefixes", "AsyncPrefixes"]
@@ -174,7 +169,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[PrefixDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Delete an unapproved prefix owned by the account.
@@ -196,7 +191,7 @@ def delete(
if not prefix_id:
raise ValueError(f"Expected a non-empty value for `prefix_id` but received {prefix_id!r}")
return cast(
- Optional[PrefixDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}",
body=maybe_transform(body, prefix_delete_params.PrefixDeleteParams),
@@ -208,7 +203,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[PrefixDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -427,7 +422,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[PrefixDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Delete an unapproved prefix owned by the account.
@@ -449,7 +444,7 @@ async def delete(
if not prefix_id:
raise ValueError(f"Expected a non-empty value for `prefix_id` but received {prefix_id!r}")
return cast(
- Optional[PrefixDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}",
body=await async_maybe_transform(body, prefix_delete_params.PrefixDeleteParams),
@@ -461,7 +456,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[PrefixDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/alerting/available_alerts.py b/src/cloudflare/resources/alerting/available_alerts.py
index 660b0e2fb6f..c82b9a6af06 100644
--- a/src/cloudflare/resources/alerting/available_alerts.py
+++ b/src/cloudflare/resources/alerting/available_alerts.py
@@ -19,7 +19,7 @@
from ..._base_client import (
make_request_options,
)
-from ...types.alerting import AvailableAlertListResponse
+from ...types.shared import UnnamedSchemaRef116
__all__ = ["AvailableAlerts", "AsyncAvailableAlerts"]
@@ -43,7 +43,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AvailableAlertListResponse]:
+ ) -> Optional[UnnamedSchemaRef116]:
"""
Gets a list of all alert types for which an account is eligible.
@@ -61,7 +61,7 @@ def list(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[AvailableAlertListResponse],
+ Optional[UnnamedSchemaRef116],
self._get(
f"/accounts/{account_id}/alerting/v3/available_alerts",
options=make_request_options(
@@ -72,7 +72,7 @@ def list(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AvailableAlertListResponse]
+ Any, ResultWrapper[UnnamedSchemaRef116]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -97,7 +97,7 @@ async def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AvailableAlertListResponse]:
+ ) -> Optional[UnnamedSchemaRef116]:
"""
Gets a list of all alert types for which an account is eligible.
@@ -115,7 +115,7 @@ async def list(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[AvailableAlertListResponse],
+ Optional[UnnamedSchemaRef116],
await self._get(
f"/accounts/{account_id}/alerting/v3/available_alerts",
options=make_request_options(
@@ -126,7 +126,7 @@ async def list(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AvailableAlertListResponse]
+ Any, ResultWrapper[UnnamedSchemaRef116]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/alerting/destinations/pagerduty.py b/src/cloudflare/resources/alerting/destinations/pagerduty.py
index d92b8bf9a8d..3e3658a0a01 100644
--- a/src/cloudflare/resources/alerting/destinations/pagerduty.py
+++ b/src/cloudflare/resources/alerting/destinations/pagerduty.py
@@ -19,12 +19,8 @@
from ...._base_client import (
make_request_options,
)
-from ....types.alerting.destinations import (
- PagerdutyGetResponse,
- PagerdutyLinkResponse,
- PagerdutyCreateResponse,
- PagerdutyDeleteResponse,
-)
+from ....types.shared import UnnamedSchemaRef167
+from ....types.alerting.destinations import PagerdutyGetResponse, PagerdutyLinkResponse, PagerdutyCreateResponse
__all__ = ["Pagerduty", "AsyncPagerduty"]
@@ -87,7 +83,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[PagerdutyDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Deletes all the PagerDuty Services connected to the account.
@@ -105,7 +101,7 @@ def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[PagerdutyDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/alerting/v3/destinations/pagerduty",
options=make_request_options(
@@ -116,7 +112,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[PagerdutyDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -263,7 +259,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[PagerdutyDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Deletes all the PagerDuty Services connected to the account.
@@ -281,7 +277,7 @@ async def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[PagerdutyDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/alerting/v3/destinations/pagerduty",
options=make_request_options(
@@ -292,7 +288,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[PagerdutyDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/alerting/destinations/webhooks.py b/src/cloudflare/resources/alerting/destinations/webhooks.py
index 62528f9e741..e336382ab58 100644
--- a/src/cloudflare/resources/alerting/destinations/webhooks.py
+++ b/src/cloudflare/resources/alerting/destinations/webhooks.py
@@ -25,10 +25,10 @@
AsyncPaginator,
make_request_options,
)
+from ....types.shared import UnnamedSchemaRef167
from ....types.alerting.destinations import (
AlertingWebhooks,
WebhookCreateResponse,
- WebhookDeleteResponse,
WebhookUpdateResponse,
webhook_create_params,
webhook_update_params,
@@ -216,7 +216,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[WebhookDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Delete a configured webhook destination.
@@ -238,7 +238,7 @@ def delete(
if not webhook_id:
raise ValueError(f"Expected a non-empty value for `webhook_id` but received {webhook_id!r}")
return cast(
- Optional[WebhookDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}",
options=make_request_options(
@@ -249,7 +249,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WebhookDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -478,7 +478,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[WebhookDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Delete a configured webhook destination.
@@ -500,7 +500,7 @@ async def delete(
if not webhook_id:
raise ValueError(f"Expected a non-empty value for `webhook_id` but received {webhook_id!r}")
return cast(
- Optional[WebhookDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}",
options=make_request_options(
@@ -511,7 +511,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WebhookDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/alerting/policies.py b/src/cloudflare/resources/alerting/policies.py
index a3372cb90f5..441e432faf4 100644
--- a/src/cloudflare/resources/alerting/policies.py
+++ b/src/cloudflare/resources/alerting/policies.py
@@ -26,10 +26,10 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef167
from ...types.alerting import (
AlertingPolicies,
PolicyCreateResponse,
- PolicyDeleteResponse,
PolicyUpdateResponse,
policy_create_params,
policy_update_params,
@@ -358,7 +358,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[PolicyDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Delete a Notification policy.
@@ -380,7 +380,7 @@ def delete(
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return cast(
- Optional[PolicyDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/alerting/v3/policies/{policy_id}",
options=make_request_options(
@@ -391,7 +391,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[PolicyDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -761,7 +761,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[PolicyDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Delete a Notification policy.
@@ -783,7 +783,7 @@ async def delete(
if not policy_id:
raise ValueError(f"Expected a non-empty value for `policy_id` but received {policy_id!r}")
return cast(
- Optional[PolicyDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/alerting/v3/policies/{policy_id}",
options=make_request_options(
@@ -794,7 +794,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[PolicyDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/cloudforce_one/requests/message.py b/src/cloudflare/resources/cloudforce_one/requests/message.py
index 40948ce2089..3a034129e86 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/message.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/message.py
@@ -25,9 +25,9 @@
from ...._base_client import (
make_request_options,
)
+from ....types.shared import UnnamedSchemaRef171
from ....types.cloudforce_one.requests import (
MessageGetResponse,
- MessageDeleteResponse,
CloudforceOneRequestMessageItem,
message_get_params,
message_create_params,
@@ -178,7 +178,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> MessageDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete a Request Message
@@ -200,7 +200,7 @@ def delete(
if not request_identifier:
raise ValueError(f"Expected a non-empty value for `request_identifier` but received {request_identifier!r}")
return cast(
- MessageDeleteResponse,
+ UnnamedSchemaRef171,
self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}/message/{message_identifer}",
options=make_request_options(
@@ -211,7 +211,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[MessageDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -431,7 +431,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> MessageDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete a Request Message
@@ -453,7 +453,7 @@ async def delete(
if not request_identifier:
raise ValueError(f"Expected a non-empty value for `request_identifier` but received {request_identifier!r}")
return cast(
- MessageDeleteResponse,
+ UnnamedSchemaRef171,
await self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}/message/{message_identifer}",
options=make_request_options(
@@ -464,7 +464,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[MessageDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/cloudforce_one/requests/priority.py b/src/cloudflare/resources/cloudforce_one/requests/priority.py
index e3bc6dc3115..96c17d23252 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/priority.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/priority.py
@@ -24,13 +24,9 @@
from ...._base_client import (
make_request_options,
)
+from ....types.shared import UnnamedSchemaRef171
from ....types.cloudforce_one import CloudforceOneQuota, CloudforceOneRequestItem
-from ....types.cloudforce_one.requests import (
- PriorityDeleteResponse,
- CloudforceOnePriorityItem,
- priority_create_params,
- priority_update_params,
-)
+from ....types.cloudforce_one.requests import CloudforceOnePriorityItem, priority_create_params, priority_update_params
__all__ = ["Priority", "AsyncPriority"]
@@ -180,7 +176,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> PriorityDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete a Priority Intelligence Report
@@ -202,7 +198,7 @@ def delete(
if not priority_identifer:
raise ValueError(f"Expected a non-empty value for `priority_identifer` but received {priority_identifer!r}")
return cast(
- PriorityDeleteResponse,
+ UnnamedSchemaRef171,
self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/priority/{priority_identifer}",
options=make_request_options(
@@ -213,7 +209,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[PriorityDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -447,7 +443,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> PriorityDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete a Priority Intelligence Report
@@ -469,7 +465,7 @@ async def delete(
if not priority_identifer:
raise ValueError(f"Expected a non-empty value for `priority_identifer` but received {priority_identifer!r}")
return cast(
- PriorityDeleteResponse,
+ UnnamedSchemaRef171,
await self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/priority/{priority_identifer}",
options=make_request_options(
@@ -480,7 +476,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[PriorityDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/cloudforce_one/requests/requests.py b/src/cloudflare/resources/cloudforce_one/requests/requests.py
index 59a9bd8c04f..7c4134a8771 100644
--- a/src/cloudflare/resources/cloudforce_one/requests/requests.py
+++ b/src/cloudflare/resources/cloudforce_one/requests/requests.py
@@ -43,9 +43,9 @@
AsyncPaginator,
make_request_options,
)
+from ....types.shared import UnnamedSchemaRef171
from ....types.cloudforce_one import (
CloudforceOneQuota,
- RequestDeleteResponse,
CloudforceOneRequestItem,
CloudforceOneRequestTypes,
CloudforceOneRequestListItem,
@@ -306,7 +306,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> RequestDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete a Request
@@ -328,7 +328,7 @@ def delete(
if not request_identifier:
raise ValueError(f"Expected a non-empty value for `request_identifier` but received {request_identifier!r}")
return cast(
- RequestDeleteResponse,
+ UnnamedSchemaRef171,
self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}",
options=make_request_options(
@@ -339,7 +339,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RequestDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -754,7 +754,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> RequestDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete a Request
@@ -776,7 +776,7 @@ async def delete(
if not request_identifier:
raise ValueError(f"Expected a non-empty value for `request_identifier` but received {request_identifier!r}")
return cast(
- RequestDeleteResponse,
+ UnnamedSchemaRef171,
await self._delete(
f"/accounts/{account_identifier}/cloudforce-one/requests/{request_identifier}",
options=make_request_options(
@@ -787,7 +787,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RequestDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/custom_certificates/custom_certificates.py b/src/cloudflare/resources/custom_certificates/custom_certificates.py
index 2658dfd3431..03c105e3ea7 100644
--- a/src/cloudflare/resources/custom_certificates/custom_certificates.py
+++ b/src/cloudflare/resources/custom_certificates/custom_certificates.py
@@ -45,6 +45,7 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef78
__all__ = ["CustomCertificates", "AsyncCustomCertificates"]
@@ -68,7 +69,7 @@ def create(
zone_id: str,
certificate: str,
private_key: str,
- bundle_method: Literal["ubiquitous", "optimal", "force"] | NotGiven = NOT_GIVEN,
+ bundle_method: UnnamedSchemaRef78 | NotGiven = NOT_GIVEN,
geo_restrictions: custom_certificate_create_params.GeoRestrictions | NotGiven = NOT_GIVEN,
policy: str | NotGiven = NOT_GIVEN,
type: Literal["legacy_custom", "sni_custom"] | NotGiven = NOT_GIVEN,
@@ -269,7 +270,7 @@ def edit(
custom_certificate_id: str,
*,
zone_id: str,
- bundle_method: Literal["ubiquitous", "optimal", "force"] | NotGiven = NOT_GIVEN,
+ bundle_method: UnnamedSchemaRef78 | NotGiven = NOT_GIVEN,
certificate: str | NotGiven = NOT_GIVEN,
geo_restrictions: custom_certificate_edit_params.GeoRestrictions | NotGiven = NOT_GIVEN,
policy: str | NotGiven = NOT_GIVEN,
@@ -431,7 +432,7 @@ async def create(
zone_id: str,
certificate: str,
private_key: str,
- bundle_method: Literal["ubiquitous", "optimal", "force"] | NotGiven = NOT_GIVEN,
+ bundle_method: UnnamedSchemaRef78 | NotGiven = NOT_GIVEN,
geo_restrictions: custom_certificate_create_params.GeoRestrictions | NotGiven = NOT_GIVEN,
policy: str | NotGiven = NOT_GIVEN,
type: Literal["legacy_custom", "sni_custom"] | NotGiven = NOT_GIVEN,
@@ -632,7 +633,7 @@ async def edit(
custom_certificate_id: str,
*,
zone_id: str,
- bundle_method: Literal["ubiquitous", "optimal", "force"] | NotGiven = NOT_GIVEN,
+ bundle_method: UnnamedSchemaRef78 | NotGiven = NOT_GIVEN,
certificate: str | NotGiven = NOT_GIVEN,
geo_restrictions: custom_certificate_edit_params.GeoRestrictions | NotGiven = NOT_GIVEN,
policy: str | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/d1/database.py b/src/cloudflare/resources/d1/database.py
index 1e8cfa67955..fbd55ad01e7 100644
--- a/src/cloudflare/resources/d1/database.py
+++ b/src/cloudflare/resources/d1/database.py
@@ -16,7 +16,6 @@
D1CreateDatabase,
D1DatabaseDetails,
DatabaseQueryResponse,
- DatabaseDeleteResponse,
database_list_params,
database_query_params,
database_create_params,
@@ -34,6 +33,7 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef173
__all__ = ["Database", "AsyncDatabase"]
@@ -155,7 +155,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[DatabaseDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Deletes the specified D1 database.
@@ -177,7 +177,7 @@ def delete(
f"Expected a non-empty value for `database_identifier` but received {database_identifier!r}"
)
return cast(
- Optional[DatabaseDeleteResponse],
+ Optional[UnnamedSchemaRef173],
self._delete(
f"/accounts/{account_identifier}/d1/database/{database_identifier}",
options=make_request_options(
@@ -188,7 +188,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[DatabaseDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -408,7 +408,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[DatabaseDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Deletes the specified D1 database.
@@ -430,7 +430,7 @@ async def delete(
f"Expected a non-empty value for `database_identifier` but received {database_identifier!r}"
)
return cast(
- Optional[DatabaseDeleteResponse],
+ Optional[UnnamedSchemaRef173],
await self._delete(
f"/accounts/{account_identifier}/d1/database/{database_identifier}",
options=make_request_options(
@@ -441,7 +441,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[DatabaseDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/dnssec.py b/src/cloudflare/resources/dnssec.py
index 5cb64138375..b6dbd5f3a10 100644
--- a/src/cloudflare/resources/dnssec.py
+++ b/src/cloudflare/resources/dnssec.py
@@ -7,7 +7,7 @@
import httpx
-from ..types import DNSSEC, DNSSECDeleteResponse, dnssec_edit_params, dnssec_delete_params
+from ..types import DNSSEC, dnssec_edit_params, dnssec_delete_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
@@ -25,6 +25,7 @@
from .._base_client import (
make_request_options,
)
+from ..types.shared import UnnamedSchemaRef49
__all__ = ["DNSSECResource", "AsyncDNSSECResource"]
@@ -49,7 +50,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> DNSSECDeleteResponse:
+ ) -> UnnamedSchemaRef49:
"""
Delete DNSSEC.
@@ -67,7 +68,7 @@ def delete(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- DNSSECDeleteResponse,
+ UnnamedSchemaRef49,
self._delete(
f"/zones/{zone_id}/dnssec",
body=maybe_transform(body, dnssec_delete_params.DNSSECDeleteParams),
@@ -79,7 +80,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[DNSSECDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef49]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -213,7 +214,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> DNSSECDeleteResponse:
+ ) -> UnnamedSchemaRef49:
"""
Delete DNSSEC.
@@ -231,7 +232,7 @@ async def delete(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- DNSSECDeleteResponse,
+ UnnamedSchemaRef49,
await self._delete(
f"/zones/{zone_id}/dnssec",
body=await async_maybe_transform(body, dnssec_delete_params.DNSSECDeleteParams),
@@ -243,7 +244,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[DNSSECDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef49]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/firewall/access_rules.py b/src/cloudflare/resources/firewall/access_rules.py
index e7319fba30c..a8f571363f9 100644
--- a/src/cloudflare/resources/firewall/access_rules.py
+++ b/src/cloudflare/resources/firewall/access_rules.py
@@ -26,10 +26,8 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef173
from ...types.firewall import (
- AccessRuleGetResponse,
- AccessRuleEditResponse,
- AccessRuleCreateResponse,
AccessRuleDeleteResponse,
access_rule_edit_params,
access_rule_list_params,
@@ -63,7 +61,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccessRuleCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""Creates a new IP Access rule for an account or zone.
The rule will apply to all
@@ -107,7 +105,7 @@ def create(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[AccessRuleCreateResponse],
+ Optional[UnnamedSchemaRef173],
self._post(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules",
body=maybe_transform(
@@ -126,7 +124,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccessRuleCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -289,7 +287,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccessRuleEditResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Updates an IP Access rule defined.
@@ -330,7 +328,7 @@ def edit(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[AccessRuleEditResponse],
+ Optional[UnnamedSchemaRef173],
self._patch(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
body=maybe_transform(
@@ -349,7 +347,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccessRuleEditResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -366,7 +364,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccessRuleGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Fetches the details of an IP Access rule defined.
@@ -399,7 +397,7 @@ def get(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[AccessRuleGetResponse],
+ Optional[UnnamedSchemaRef173],
self._get(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
options=make_request_options(
@@ -410,7 +408,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccessRuleGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -439,7 +437,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccessRuleCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""Creates a new IP Access rule for an account or zone.
The rule will apply to all
@@ -483,7 +481,7 @@ async def create(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[AccessRuleCreateResponse],
+ Optional[UnnamedSchemaRef173],
await self._post(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules",
body=await async_maybe_transform(
@@ -502,7 +500,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccessRuleCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -665,7 +663,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccessRuleEditResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Updates an IP Access rule defined.
@@ -706,7 +704,7 @@ async def edit(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[AccessRuleEditResponse],
+ Optional[UnnamedSchemaRef173],
await self._patch(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
body=await async_maybe_transform(
@@ -725,7 +723,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccessRuleEditResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -742,7 +740,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AccessRuleGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Fetches the details of an IP Access rule defined.
@@ -775,7 +773,7 @@ async def get(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[AccessRuleGetResponse],
+ Optional[UnnamedSchemaRef173],
await self._get(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
options=make_request_options(
@@ -786,7 +784,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AccessRuleGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/firewall/ua_rules.py b/src/cloudflare/resources/firewall/ua_rules.py
index 08a3c7d9982..da5cd2f8bbf 100644
--- a/src/cloudflare/resources/firewall/ua_rules.py
+++ b/src/cloudflare/resources/firewall/ua_rules.py
@@ -25,12 +25,10 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef173
from ...types.firewall import (
- UARuleGetResponse,
UARuleListResponse,
- UARuleCreateResponse,
UARuleDeleteResponse,
- UARuleUpdateResponse,
ua_rule_list_params,
ua_rule_create_params,
ua_rule_delete_params,
@@ -60,7 +58,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UARuleCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Creates a new User Agent Blocking rule in a zone.
@@ -78,7 +76,7 @@ def create(
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return cast(
- Optional[UARuleCreateResponse],
+ Optional[UnnamedSchemaRef173],
self._post(
f"/zones/{zone_identifier}/firewall/ua_rules",
body=maybe_transform(body, ua_rule_create_params.UARuleCreateParams),
@@ -90,7 +88,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UARuleCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -107,7 +105,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UARuleUpdateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Updates an existing User Agent Blocking rule.
@@ -129,7 +127,7 @@ def update(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- Optional[UARuleUpdateResponse],
+ Optional[UnnamedSchemaRef173],
self._put(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
body=maybe_transform(body, ua_rule_update_params.UARuleUpdateParams),
@@ -141,7 +139,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UARuleUpdateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -270,7 +268,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UARuleGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Fetches the details of a User Agent Blocking rule.
@@ -292,7 +290,7 @@ def get(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- Optional[UARuleGetResponse],
+ Optional[UnnamedSchemaRef173],
self._get(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
options=make_request_options(
@@ -303,7 +301,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UARuleGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -329,7 +327,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UARuleCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Creates a new User Agent Blocking rule in a zone.
@@ -347,7 +345,7 @@ async def create(
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return cast(
- Optional[UARuleCreateResponse],
+ Optional[UnnamedSchemaRef173],
await self._post(
f"/zones/{zone_identifier}/firewall/ua_rules",
body=await async_maybe_transform(body, ua_rule_create_params.UARuleCreateParams),
@@ -359,7 +357,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UARuleCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -376,7 +374,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UARuleUpdateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Updates an existing User Agent Blocking rule.
@@ -398,7 +396,7 @@ async def update(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- Optional[UARuleUpdateResponse],
+ Optional[UnnamedSchemaRef173],
await self._put(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
body=await async_maybe_transform(body, ua_rule_update_params.UARuleUpdateParams),
@@ -410,7 +408,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UARuleUpdateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -539,7 +537,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UARuleGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Fetches the details of a User Agent Blocking rule.
@@ -561,7 +559,7 @@ async def get(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- Optional[UARuleGetResponse],
+ Optional[UnnamedSchemaRef173],
await self._get(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
options=make_request_options(
@@ -572,7 +570,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UARuleGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/hostnames/settings/tls.py b/src/cloudflare/resources/hostnames/settings/tls.py
index 9c58de5adde..2c97cc76250 100644
--- a/src/cloudflare/resources/hostnames/settings/tls.py
+++ b/src/cloudflare/resources/hostnames/settings/tls.py
@@ -24,7 +24,8 @@
from ...._base_client import (
make_request_options,
)
-from ....types.hostnames.settings import HostnameStting, TLSGetResponse, HostnameSettingDelete, tls_update_params
+from ....types.shared import UnnamedSchemaRef65
+from ....types.hostnames.settings import TLSGetResponse, HostnameSettingDelete, tls_update_params
__all__ = ["TLS", "AsyncTLS"]
@@ -51,7 +52,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> HostnameStting:
+ ) -> UnnamedSchemaRef65:
"""
Update the tls setting value for the hostname.
@@ -88,7 +89,7 @@ def update(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[HostnameStting], ResultWrapper[HostnameStting]),
+ cast_to=cast(Type[UnnamedSchemaRef65], ResultWrapper[UnnamedSchemaRef65]),
)
def delete(
@@ -207,7 +208,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> HostnameStting:
+ ) -> UnnamedSchemaRef65:
"""
Update the tls setting value for the hostname.
@@ -244,7 +245,7 @@ async def update(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[HostnameStting], ResultWrapper[HostnameStting]),
+ cast_to=cast(Type[UnnamedSchemaRef65], ResultWrapper[UnnamedSchemaRef65]),
)
async def delete(
diff --git a/src/cloudflare/resources/hyperdrive/configs.py b/src/cloudflare/resources/hyperdrive/configs.py
index b357896061d..ff1fa9c98e0 100644
--- a/src/cloudflare/resources/hyperdrive/configs.py
+++ b/src/cloudflare/resources/hyperdrive/configs.py
@@ -25,12 +25,12 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef173
from ...types.hyperdrive import (
ConfigGetResponse,
ConfigEditResponse,
ConfigListResponse,
ConfigCreateResponse,
- ConfigDeleteResponse,
ConfigUpdateResponse,
config_edit_params,
config_create_params,
@@ -197,7 +197,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ConfigDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Deletes the specified Hyperdrive.
@@ -219,7 +219,7 @@ def delete(
if not hyperdrive_id:
raise ValueError(f"Expected a non-empty value for `hyperdrive_id` but received {hyperdrive_id!r}")
return cast(
- Optional[ConfigDeleteResponse],
+ Optional[UnnamedSchemaRef173],
self._delete(
f"/accounts/{account_id}/hyperdrive/configs/{hyperdrive_id}",
options=make_request_options(
@@ -230,7 +230,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ConfigDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -485,7 +485,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ConfigDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Deletes the specified Hyperdrive.
@@ -507,7 +507,7 @@ async def delete(
if not hyperdrive_id:
raise ValueError(f"Expected a non-empty value for `hyperdrive_id` but received {hyperdrive_id!r}")
return cast(
- Optional[ConfigDeleteResponse],
+ Optional[UnnamedSchemaRef173],
await self._delete(
f"/accounts/{account_id}/hyperdrive/configs/{hyperdrive_id}",
options=make_request_options(
@@ -518,7 +518,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ConfigDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/keyless_certificates.py b/src/cloudflare/resources/keyless_certificates.py
index 4fc45232bc7..b80f1eef732 100644
--- a/src/cloudflare/resources/keyless_certificates.py
+++ b/src/cloudflare/resources/keyless_certificates.py
@@ -3,7 +3,6 @@
from __future__ import annotations
from typing import Type, cast
-from typing_extensions import Literal
import httpx
@@ -33,6 +32,7 @@
AsyncPaginator,
make_request_options,
)
+from ..types.shared import UnnamedSchemaRef78
__all__ = ["KeylessCertificates", "AsyncKeylessCertificates"]
@@ -53,7 +53,7 @@ def create(
certificate: str,
host: str,
port: float,
- bundle_method: Literal["ubiquitous", "optimal", "force"] | NotGiven = NOT_GIVEN,
+ bundle_method: UnnamedSchemaRef78 | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
tunnel: keyless_certificate_create_params.Tunnel | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -339,7 +339,7 @@ async def create(
certificate: str,
host: str,
port: float,
- bundle_method: Literal["ubiquitous", "optimal", "force"] | NotGiven = NOT_GIVEN,
+ bundle_method: UnnamedSchemaRef78 | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
tunnel: keyless_certificate_create_params.Tunnel | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
diff --git a/src/cloudflare/resources/logpush/jobs.py b/src/cloudflare/resources/logpush/jobs.py
index b0587dd3d47..e459918c8c6 100644
--- a/src/cloudflare/resources/logpush/jobs.py
+++ b/src/cloudflare/resources/logpush/jobs.py
@@ -26,7 +26,8 @@
AsyncPaginator,
make_request_options,
)
-from ...types.logpush import JobDeleteResponse, job_create_params, job_delete_params, job_update_params
+from ...types.shared import UnnamedSchemaRef161
+from ...types.logpush import job_create_params, job_delete_params, job_update_params
from ...types.logpush.datasets import LogpushJob
__all__ = ["Jobs", "AsyncJobs"]
@@ -305,7 +306,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[JobDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef161]:
"""
Deletes a Logpush job.
@@ -340,7 +341,7 @@ def delete(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[JobDeleteResponse],
+ Optional[UnnamedSchemaRef161],
self._delete(
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}",
body=maybe_transform(body, job_delete_params.JobDeleteParams),
@@ -352,7 +353,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[JobDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef161]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -689,7 +690,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[JobDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef161]:
"""
Deletes a Logpush job.
@@ -724,7 +725,7 @@ async def delete(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- Optional[JobDeleteResponse],
+ Optional[UnnamedSchemaRef161],
await self._delete(
f"/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}",
body=await async_maybe_transform(body, job_delete_params.JobDeleteParams),
@@ -736,7 +737,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[JobDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef161]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/logs/control/cmb/config.py b/src/cloudflare/resources/logs/control/cmb/config.py
index 86da5f0ff2c..e73d3ad8f8e 100644
--- a/src/cloudflare/resources/logs/control/cmb/config.py
+++ b/src/cloudflare/resources/logs/control/cmb/config.py
@@ -23,7 +23,8 @@
from ....._base_client import (
make_request_options,
)
-from .....types.logs.control.cmb import CmbConfig, ConfigDeleteResponse, config_create_params, config_delete_params
+from .....types.shared import UnnamedSchemaRef161
+from .....types.logs.control.cmb import CmbConfig, config_create_params, config_delete_params
__all__ = ["Config", "AsyncConfig"]
@@ -91,7 +92,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ConfigDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef161]:
"""
Deletes CMB config.
@@ -109,7 +110,7 @@ def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[ConfigDeleteResponse],
+ Optional[UnnamedSchemaRef161],
self._delete(
f"/accounts/{account_id}/logs/control/cmb/config",
body=maybe_transform(body, config_delete_params.ConfigDeleteParams),
@@ -121,7 +122,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ConfigDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef161]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -229,7 +230,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ConfigDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef161]:
"""
Deletes CMB config.
@@ -247,7 +248,7 @@ async def delete(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[ConfigDeleteResponse],
+ Optional[UnnamedSchemaRef161],
await self._delete(
f"/accounts/{account_id}/logs/control/cmb/config",
body=await async_maybe_transform(body, config_delete_params.ConfigDeleteParams),
@@ -259,7 +260,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ConfigDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef161]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/queues/consumers.py b/src/cloudflare/resources/queues/consumers.py
index e860164b69c..ace7d75222e 100644
--- a/src/cloudflare/resources/queues/consumers.py
+++ b/src/cloudflare/resources/queues/consumers.py
@@ -26,12 +26,12 @@
from ...types.queues import (
ConsumerGetResponse,
ConsumerCreateResponse,
- ConsumerDeleteResponse,
ConsumerUpdateResponse,
consumer_create_params,
consumer_delete_params,
consumer_update_params,
)
+from ...types.shared import UnnamedSchemaRef167
__all__ = ["Consumers", "AsyncConsumers"]
@@ -155,7 +155,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ConsumerDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Deletes the consumer for a queue.
@@ -181,7 +181,7 @@ def delete(
if not consumer_id:
raise ValueError(f"Expected a non-empty value for `consumer_id` but received {consumer_id!r}")
return cast(
- Optional[ConsumerDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id}",
body=maybe_transform(body, consumer_delete_params.ConsumerDeleteParams),
@@ -193,7 +193,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ConsumerDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -362,7 +362,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[ConsumerDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Deletes the consumer for a queue.
@@ -388,7 +388,7 @@ async def delete(
if not consumer_id:
raise ValueError(f"Expected a non-empty value for `consumer_id` but received {consumer_id!r}")
return cast(
- Optional[ConsumerDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/queues/{queue_id}/consumers/{consumer_id}",
body=await async_maybe_transform(body, consumer_delete_params.ConsumerDeleteParams),
@@ -400,7 +400,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[ConsumerDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/queues/queues.py b/src/cloudflare/resources/queues/queues.py
index 4cc9fd64ac5..4f424b72b44 100644
--- a/src/cloudflare/resources/queues/queues.py
+++ b/src/cloudflare/resources/queues/queues.py
@@ -10,7 +10,6 @@
QueueGetResponse,
QueueListResponse,
QueueCreateResponse,
- QueueDeleteResponse,
QueueUpdateResponse,
queue_create_params,
queue_delete_params,
@@ -49,6 +48,7 @@
from ..._base_client import (
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef167
__all__ = ["Queues", "AsyncQueues"]
@@ -208,7 +208,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[QueueDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Deletes a queue.
@@ -230,7 +230,7 @@ def delete(
if not queue_id:
raise ValueError(f"Expected a non-empty value for `queue_id` but received {queue_id!r}")
return cast(
- Optional[QueueDeleteResponse],
+ Optional[UnnamedSchemaRef167],
self._delete(
f"/accounts/{account_id}/queues/{queue_id}",
body=maybe_transform(body, queue_delete_params.QueueDeleteParams),
@@ -242,7 +242,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[QueueDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -447,7 +447,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[QueueDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Deletes a queue.
@@ -469,7 +469,7 @@ async def delete(
if not queue_id:
raise ValueError(f"Expected a non-empty value for `queue_id` but received {queue_id!r}")
return cast(
- Optional[QueueDeleteResponse],
+ Optional[UnnamedSchemaRef167],
await self._delete(
f"/accounts/{account_id}/queues/{queue_id}",
body=await async_maybe_transform(body, queue_delete_params.QueueDeleteParams),
@@ -481,7 +481,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[QueueDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/rate_limits.py b/src/cloudflare/resources/rate_limits.py
index ae4f5d42df1..81ead5e676a 100644
--- a/src/cloudflare/resources/rate_limits.py
+++ b/src/cloudflare/resources/rate_limits.py
@@ -7,10 +7,7 @@
import httpx
from ..types import (
- RateLimitGetResponse,
- RateLimitEditResponse,
RateLimitListResponse,
- RateLimitCreateResponse,
RateLimitDeleteResponse,
rate_limit_edit_params,
rate_limit_list_params,
@@ -36,6 +33,7 @@
AsyncPaginator,
make_request_options,
)
+from ..types.shared import UnnamedSchemaRef173
__all__ = ["RateLimits", "AsyncRateLimits"]
@@ -60,7 +58,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RateLimitCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""Creates a new rate limit for a zone.
Refer to the object definition for a list
@@ -80,7 +78,7 @@ def create(
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return cast(
- Optional[RateLimitCreateResponse],
+ Optional[UnnamedSchemaRef173],
self._post(
f"/zones/{zone_identifier}/rate_limits",
body=maybe_transform(body, rate_limit_create_params.RateLimitCreateParams),
@@ -92,7 +90,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RateLimitCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -208,7 +206,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RateLimitEditResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Updates an existing rate limit.
@@ -230,7 +228,7 @@ def edit(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- Optional[RateLimitEditResponse],
+ Optional[UnnamedSchemaRef173],
self._put(
f"/zones/{zone_identifier}/rate_limits/{id}",
body=maybe_transform(body, rate_limit_edit_params.RateLimitEditParams),
@@ -242,7 +240,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RateLimitEditResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -258,7 +256,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RateLimitGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Fetches the details of a rate limit.
@@ -280,7 +278,7 @@ def get(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- Optional[RateLimitGetResponse],
+ Optional[UnnamedSchemaRef173],
self._get(
f"/zones/{zone_identifier}/rate_limits/{id}",
options=make_request_options(
@@ -291,7 +289,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RateLimitGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -317,7 +315,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RateLimitCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""Creates a new rate limit for a zone.
Refer to the object definition for a list
@@ -337,7 +335,7 @@ async def create(
if not zone_identifier:
raise ValueError(f"Expected a non-empty value for `zone_identifier` but received {zone_identifier!r}")
return cast(
- Optional[RateLimitCreateResponse],
+ Optional[UnnamedSchemaRef173],
await self._post(
f"/zones/{zone_identifier}/rate_limits",
body=await async_maybe_transform(body, rate_limit_create_params.RateLimitCreateParams),
@@ -349,7 +347,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RateLimitCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -465,7 +463,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RateLimitEditResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Updates an existing rate limit.
@@ -487,7 +485,7 @@ async def edit(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- Optional[RateLimitEditResponse],
+ Optional[UnnamedSchemaRef173],
await self._put(
f"/zones/{zone_identifier}/rate_limits/{id}",
body=await async_maybe_transform(body, rate_limit_edit_params.RateLimitEditParams),
@@ -499,7 +497,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RateLimitEditResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -515,7 +513,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RateLimitGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Fetches the details of a rate limit.
@@ -537,7 +535,7 @@ async def get(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- Optional[RateLimitGetResponse],
+ Optional[UnnamedSchemaRef173],
await self._get(
f"/zones/{zone_identifier}/rate_limits/{id}",
options=make_request_options(
@@ -548,7 +546,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RateLimitGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/rulesets/rules.py b/src/cloudflare/resources/rulesets/rules.py
index 9e2f16abaae..b96832e395e 100644
--- a/src/cloudflare/resources/rulesets/rules.py
+++ b/src/cloudflare/resources/rulesets/rules.py
@@ -7,6 +7,7 @@
import httpx
+from ...types import shared_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
required_args,
@@ -58,7 +59,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsBlockRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -118,7 +119,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsExecuteRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -178,7 +179,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsLogRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -238,7 +239,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsSkipRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -301,7 +302,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsBlockRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -431,7 +432,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsBlockRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -492,7 +493,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsExecuteRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -553,7 +554,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsLogRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -614,7 +615,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsSkipRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -679,7 +680,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsBlockRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -755,7 +756,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsBlockRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -815,7 +816,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsExecuteRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -875,7 +876,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsLogRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -935,7 +936,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsSkipRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -998,7 +999,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_create_params.RulesetsBlockRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -1128,7 +1129,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsBlockRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -1189,7 +1190,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsExecuteRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -1250,7 +1251,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsLogRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -1311,7 +1312,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsSkipRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
@@ -1376,7 +1377,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: rule_edit_params.RulesetsBlockRuleLogging | NotGiven = NOT_GIVEN,
+ logging: shared_params.Logging | NotGiven = NOT_GIVEN,
ref: 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.
diff --git a/src/cloudflare/resources/snippets/snippets.py b/src/cloudflare/resources/snippets/snippets.py
index b0427590db5..7218c8709e0 100644
--- a/src/cloudflare/resources/snippets/snippets.py
+++ b/src/cloudflare/resources/snippets/snippets.py
@@ -14,7 +14,7 @@
RulesWithStreamingResponse,
AsyncRulesWithStreamingResponse,
)
-from ...types import Snippet, SnippetDeleteResponse, snippet_update_params
+from ...types import Snippet, snippet_update_params
from .content import (
Content,
AsyncContent,
@@ -42,6 +42,7 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef171
__all__ = ["Snippets", "AsyncSnippets"]
@@ -165,7 +166,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SnippetDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete Snippet
@@ -187,7 +188,7 @@ def delete(
if not snippet_name:
raise ValueError(f"Expected a non-empty value for `snippet_name` but received {snippet_name!r}")
return cast(
- SnippetDeleteResponse,
+ UnnamedSchemaRef171,
self._delete(
f"/zones/{zone_identifier}/snippets/{snippet_name}",
options=make_request_options(
@@ -198,7 +199,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[SnippetDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -367,7 +368,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SnippetDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Delete Snippet
@@ -389,7 +390,7 @@ async def delete(
if not snippet_name:
raise ValueError(f"Expected a non-empty value for `snippet_name` but received {snippet_name!r}")
return cast(
- SnippetDeleteResponse,
+ UnnamedSchemaRef171,
await self._delete(
f"/zones/{zone_identifier}/snippets/{snippet_name}",
options=make_request_options(
@@ -400,7 +401,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[SnippetDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/spectrum/apps.py b/src/cloudflare/resources/spectrum/apps.py
index 7ac67c7485f..4d0a803ef86 100644
--- a/src/cloudflare/resources/spectrum/apps.py
+++ b/src/cloudflare/resources/spectrum/apps.py
@@ -26,8 +26,8 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef173
from ...types.spectrum import (
- AppGetResponse,
AppCreateResponse,
AppDeleteResponse,
AppUpdateResponse,
@@ -371,7 +371,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AppGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Gets the application configuration of a specific application inside a zone.
@@ -393,7 +393,7 @@ def get(
if not app_id:
raise ValueError(f"Expected a non-empty value for `app_id` but received {app_id!r}")
return cast(
- Optional[AppGetResponse],
+ Optional[UnnamedSchemaRef173],
self._get(
f"/zones/{zone}/spectrum/apps/{app_id}",
options=make_request_options(
@@ -404,7 +404,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AppGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -741,7 +741,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[AppGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Gets the application configuration of a specific application inside a zone.
@@ -763,7 +763,7 @@ async def get(
if not app_id:
raise ValueError(f"Expected a non-empty value for `app_id` but received {app_id!r}")
return cast(
- Optional[AppGetResponse],
+ Optional[UnnamedSchemaRef173],
await self._get(
f"/zones/{zone}/spectrum/apps/{app_id}",
options=make_request_options(
@@ -774,7 +774,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[AppGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/ssl/analyze.py b/src/cloudflare/resources/ssl/analyze.py
index 15bf18adf51..2681e4a88f7 100644
--- a/src/cloudflare/resources/ssl/analyze.py
+++ b/src/cloudflare/resources/ssl/analyze.py
@@ -3,7 +3,6 @@
from __future__ import annotations
from typing import Any, cast
-from typing_extensions import Literal
import httpx
@@ -25,6 +24,7 @@
from ..._base_client import (
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef78
__all__ = ["Analyze", "AsyncAnalyze"]
@@ -42,7 +42,7 @@ def create(
self,
*,
zone_id: str,
- bundle_method: Literal["ubiquitous", "optimal", "force"] | NotGiven = NOT_GIVEN,
+ bundle_method: UnnamedSchemaRef78 | NotGiven = NOT_GIVEN,
certificate: 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.
@@ -113,7 +113,7 @@ async def create(
self,
*,
zone_id: str,
- bundle_method: Literal["ubiquitous", "optimal", "force"] | NotGiven = NOT_GIVEN,
+ bundle_method: UnnamedSchemaRef78 | NotGiven = NOT_GIVEN,
certificate: 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.
diff --git a/src/cloudflare/resources/stream/watermarks.py b/src/cloudflare/resources/stream/watermarks.py
index 09b6ec954eb..8dc6ed15f0c 100644
--- a/src/cloudflare/resources/stream/watermarks.py
+++ b/src/cloudflare/resources/stream/watermarks.py
@@ -25,11 +25,11 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef49
from ...types.stream import (
StreamWatermarks,
WatermarkGetResponse,
WatermarkCreateResponse,
- WatermarkDeleteResponse,
watermark_create_params,
watermark_delete_params,
)
@@ -177,7 +177,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WatermarkDeleteResponse:
+ ) -> UnnamedSchemaRef49:
"""
Deletes a watermark profile.
@@ -199,7 +199,7 @@ def delete(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- WatermarkDeleteResponse,
+ UnnamedSchemaRef49,
self._delete(
f"/accounts/{account_id}/stream/watermarks/{identifier}",
body=maybe_transform(body, watermark_delete_params.WatermarkDeleteParams),
@@ -211,7 +211,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WatermarkDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef49]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -406,7 +406,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WatermarkDeleteResponse:
+ ) -> UnnamedSchemaRef49:
"""
Deletes a watermark profile.
@@ -428,7 +428,7 @@ async def delete(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- WatermarkDeleteResponse,
+ UnnamedSchemaRef49,
await self._delete(
f"/accounts/{account_id}/stream/watermarks/{identifier}",
body=await async_maybe_transform(body, watermark_delete_params.WatermarkDeleteParams),
@@ -440,7 +440,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WatermarkDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef49]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/subscriptions.py b/src/cloudflare/resources/subscriptions.py
index 1c83750ecec..4a5e28a959e 100644
--- a/src/cloudflare/resources/subscriptions.py
+++ b/src/cloudflare/resources/subscriptions.py
@@ -11,7 +11,6 @@
SubscriptionGetResponse,
SubscriptionListResponse,
SubscriptionCreateResponse,
- SubscriptionDeleteResponse,
SubscriptionUpdateResponse,
subscription_create_params,
subscription_delete_params,
@@ -36,6 +35,7 @@
AsyncPaginator,
make_request_options,
)
+from ..types.shared import UnnamedSchemaRef3
__all__ = ["Subscriptions", "AsyncSubscriptions"]
@@ -238,7 +238,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SubscriptionDeleteResponse:
+ ) -> UnnamedSchemaRef3:
"""
Deletes an account's subscription.
@@ -271,7 +271,7 @@ def delete(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[SubscriptionDeleteResponse], ResultWrapper[SubscriptionDeleteResponse]),
+ cast_to=cast(Type[UnnamedSchemaRef3], ResultWrapper[UnnamedSchemaRef3]),
)
def get(
@@ -517,7 +517,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SubscriptionDeleteResponse:
+ ) -> UnnamedSchemaRef3:
"""
Deletes an account's subscription.
@@ -550,7 +550,7 @@ async def delete(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[SubscriptionDeleteResponse], ResultWrapper[SubscriptionDeleteResponse]),
+ cast_to=cast(Type[UnnamedSchemaRef3], ResultWrapper[UnnamedSchemaRef3]),
)
async def get(
diff --git a/src/cloudflare/resources/user/subscriptions.py b/src/cloudflare/resources/user/subscriptions.py
index 48a9fef6ed7..e9592502128 100644
--- a/src/cloudflare/resources/user/subscriptions.py
+++ b/src/cloudflare/resources/user/subscriptions.py
@@ -24,7 +24,6 @@
from ...types.user import (
SubscriptionGetResponse,
SubscriptionEditResponse,
- SubscriptionDeleteResponse,
SubscriptionUpdateResponse,
subscription_edit_params,
subscription_delete_params,
@@ -33,6 +32,7 @@
from ..._base_client import (
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef3
__all__ = ["Subscriptions", "AsyncSubscriptions"]
@@ -124,7 +124,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SubscriptionDeleteResponse:
+ ) -> UnnamedSchemaRef3:
"""
Deletes a user's subscription.
@@ -147,7 +147,7 @@ def delete(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=SubscriptionDeleteResponse,
+ cast_to=UnnamedSchemaRef3,
)
def edit(
@@ -328,7 +328,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SubscriptionDeleteResponse:
+ ) -> UnnamedSchemaRef3:
"""
Deletes a user's subscription.
@@ -351,7 +351,7 @@ async def delete(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=SubscriptionDeleteResponse,
+ cast_to=UnnamedSchemaRef3,
)
async def edit(
diff --git a/src/cloudflare/resources/vectorize/indexes.py b/src/cloudflare/resources/vectorize/indexes.py
index 76f1f295606..59e80fdbf68 100644
--- a/src/cloudflare/resources/vectorize/indexes.py
+++ b/src/cloudflare/resources/vectorize/indexes.py
@@ -25,8 +25,8 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef173
from ...types.vectorize import (
- IndexDeleteResponse,
VectorizeIndexQuery,
VectorizeCreateIndex,
VectorizeIndexInsert,
@@ -200,7 +200,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[IndexDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Deletes the specified Vectorize Index.
@@ -220,7 +220,7 @@ def delete(
if not index_name:
raise ValueError(f"Expected a non-empty value for `index_name` but received {index_name!r}")
return cast(
- Optional[IndexDeleteResponse],
+ Optional[UnnamedSchemaRef173],
self._delete(
f"/accounts/{account_identifier}/vectorize/indexes/{index_name}",
options=make_request_options(
@@ -231,7 +231,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[IndexDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -682,7 +682,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[IndexDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Deletes the specified Vectorize Index.
@@ -702,7 +702,7 @@ async def delete(
if not index_name:
raise ValueError(f"Expected a non-empty value for `index_name` but received {index_name!r}")
return cast(
- Optional[IndexDeleteResponse],
+ Optional[UnnamedSchemaRef173],
await self._delete(
f"/accounts/{account_identifier}/vectorize/indexes/{index_name}",
options=make_request_options(
@@ -713,7 +713,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[IndexDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/warp_connector.py b/src/cloudflare/resources/warp_connector.py
index c25a010f0d3..787d0065918 100644
--- a/src/cloudflare/resources/warp_connector.py
+++ b/src/cloudflare/resources/warp_connector.py
@@ -8,12 +8,7 @@
import httpx
from ..types import (
- WARPConnectorGetResponse,
- WARPConnectorEditResponse,
- WARPConnectorListResponse,
WARPConnectorTokenResponse,
- WARPConnectorCreateResponse,
- WARPConnectorDeleteResponse,
warp_connector_edit_params,
warp_connector_list_params,
warp_connector_create_params,
@@ -38,6 +33,7 @@
AsyncPaginator,
make_request_options,
)
+from ..types.shared import UnnamedSchemaRef123
__all__ = ["WARPConnector", "AsyncWARPConnector"]
@@ -62,7 +58,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WARPConnectorCreateResponse:
+ ) -> UnnamedSchemaRef123:
"""
Creates a new Warp Connector Tunnel in an account.
@@ -82,7 +78,7 @@ def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- WARPConnectorCreateResponse,
+ UnnamedSchemaRef123,
self._post(
f"/accounts/{account_id}/warp_connector",
body=maybe_transform({"name": name}, warp_connector_create_params.WARPConnectorCreateParams),
@@ -94,7 +90,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WARPConnectorCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -119,7 +115,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncV4PagePaginationArray[WARPConnectorListResponse]:
+ ) -> SyncV4PagePaginationArray[UnnamedSchemaRef123]:
"""
Lists and filters Warp Connector Tunnels in an account.
@@ -152,7 +148,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/warp_connector",
- page=SyncV4PagePaginationArray[WARPConnectorListResponse],
+ page=SyncV4PagePaginationArray[UnnamedSchemaRef123],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -174,9 +170,7 @@ def list(
warp_connector_list_params.WARPConnectorListParams,
),
),
- model=cast(
- Any, WARPConnectorListResponse
- ), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, UnnamedSchemaRef123), # Union types cannot be passed in as arguments in the type system
)
def delete(
@@ -191,7 +185,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WARPConnectorDeleteResponse:
+ ) -> UnnamedSchemaRef123:
"""
Deletes a Warp Connector Tunnel from an account.
@@ -213,7 +207,7 @@ def delete(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- WARPConnectorDeleteResponse,
+ UnnamedSchemaRef123,
self._delete(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
body=maybe_transform(body, warp_connector_delete_params.WARPConnectorDeleteParams),
@@ -225,7 +219,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WARPConnectorDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -243,7 +237,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WARPConnectorEditResponse:
+ ) -> UnnamedSchemaRef123:
"""
Updates an existing Warp Connector Tunnel.
@@ -270,7 +264,7 @@ def edit(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- WARPConnectorEditResponse,
+ UnnamedSchemaRef123,
self._patch(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
body=maybe_transform(
@@ -288,7 +282,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WARPConnectorEditResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -304,7 +298,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WARPConnectorGetResponse:
+ ) -> UnnamedSchemaRef123:
"""
Fetches a single Warp Connector Tunnel.
@@ -326,7 +320,7 @@ def get(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- WARPConnectorGetResponse,
+ UnnamedSchemaRef123,
self._get(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
options=make_request_options(
@@ -337,7 +331,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WARPConnectorGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -413,7 +407,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WARPConnectorCreateResponse:
+ ) -> UnnamedSchemaRef123:
"""
Creates a new Warp Connector Tunnel in an account.
@@ -433,7 +427,7 @@ async def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- WARPConnectorCreateResponse,
+ UnnamedSchemaRef123,
await self._post(
f"/accounts/{account_id}/warp_connector",
body=await async_maybe_transform(
@@ -447,7 +441,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WARPConnectorCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -472,7 +466,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[WARPConnectorListResponse, AsyncV4PagePaginationArray[WARPConnectorListResponse]]:
+ ) -> AsyncPaginator[UnnamedSchemaRef123, AsyncV4PagePaginationArray[UnnamedSchemaRef123]]:
"""
Lists and filters Warp Connector Tunnels in an account.
@@ -505,7 +499,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/warp_connector",
- page=AsyncV4PagePaginationArray[WARPConnectorListResponse],
+ page=AsyncV4PagePaginationArray[UnnamedSchemaRef123],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -527,9 +521,7 @@ def list(
warp_connector_list_params.WARPConnectorListParams,
),
),
- model=cast(
- Any, WARPConnectorListResponse
- ), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, UnnamedSchemaRef123), # Union types cannot be passed in as arguments in the type system
)
async def delete(
@@ -544,7 +536,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WARPConnectorDeleteResponse:
+ ) -> UnnamedSchemaRef123:
"""
Deletes a Warp Connector Tunnel from an account.
@@ -566,7 +558,7 @@ async def delete(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- WARPConnectorDeleteResponse,
+ UnnamedSchemaRef123,
await self._delete(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
body=await async_maybe_transform(body, warp_connector_delete_params.WARPConnectorDeleteParams),
@@ -578,7 +570,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WARPConnectorDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -596,7 +588,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WARPConnectorEditResponse:
+ ) -> UnnamedSchemaRef123:
"""
Updates an existing Warp Connector Tunnel.
@@ -623,7 +615,7 @@ async def edit(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- WARPConnectorEditResponse,
+ UnnamedSchemaRef123,
await self._patch(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
body=await async_maybe_transform(
@@ -641,7 +633,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WARPConnectorEditResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -657,7 +649,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> WARPConnectorGetResponse:
+ ) -> UnnamedSchemaRef123:
"""
Fetches a single Warp Connector Tunnel.
@@ -679,7 +671,7 @@ async def get(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- WARPConnectorGetResponse,
+ UnnamedSchemaRef123,
await self._get(
f"/accounts/{account_id}/warp_connector/{tunnel_id}",
options=make_request_options(
@@ -690,7 +682,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[WARPConnectorGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/workers/ai.py b/src/cloudflare/resources/workers/ai.py
index bfa50dff4b9..062bb55b841 100644
--- a/src/cloudflare/resources/workers/ai.py
+++ b/src/cloudflare/resources/workers/ai.py
@@ -2,10 +2,11 @@
from __future__ import annotations
-from typing import Any, List, Union, Iterable, Optional, cast, overload
+from typing import Any, List, Iterable, Optional, cast, overload
import httpx
+from ...types import shared_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
required_args,
@@ -158,7 +159,7 @@ def run(
model_name: str,
*,
account_id: str,
- text: Union[str, List[str]],
+ text: shared_params.UnnamedSchemaRef121,
# 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,
@@ -468,7 +469,7 @@ def run(
model_name: str,
*,
account_id: str,
- text: str | Union[str, List[str]] | NotGiven = NOT_GIVEN,
+ text: str | shared_params.UnnamedSchemaRef121 | NotGiven = NOT_GIVEN,
prompt: str | NotGiven = NOT_GIVEN,
guidance: float | NotGiven = NOT_GIVEN,
image: Iterable[float] | NotGiven = NOT_GIVEN,
@@ -669,7 +670,7 @@ async def run(
model_name: str,
*,
account_id: str,
- text: Union[str, List[str]],
+ text: shared_params.UnnamedSchemaRef121,
# 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,
@@ -979,7 +980,7 @@ async def run(
model_name: str,
*,
account_id: str,
- text: str | Union[str, List[str]] | NotGiven = NOT_GIVEN,
+ text: str | shared_params.UnnamedSchemaRef121 | NotGiven = NOT_GIVEN,
prompt: str | NotGiven = NOT_GIVEN,
guidance: float | NotGiven = NOT_GIVEN,
image: Iterable[float] | NotGiven = NOT_GIVEN,
diff --git a/src/cloudflare/resources/workers/scripts/content.py b/src/cloudflare/resources/workers/scripts/content.py
index 2eeeb184cb3..15a1dfa44da 100644
--- a/src/cloudflare/resources/workers/scripts/content.py
+++ b/src/cloudflare/resources/workers/scripts/content.py
@@ -6,6 +6,7 @@
import httpx
+from ....types import shared_params
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
from ...._utils import (
extract_files,
@@ -46,7 +47,7 @@ def update(
*,
account_id: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: content_update_params.Metadata | NotGiven = NOT_GIVEN,
+ metadata: shared_params.UnnamedSchemaRef51 | 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,
@@ -124,7 +125,7 @@ async def update(
*,
account_id: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: content_update_params.Metadata | NotGiven = NOT_GIVEN,
+ metadata: shared_params.UnnamedSchemaRef51 | 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,
diff --git a/src/cloudflare/resources/workers/scripts/tail.py b/src/cloudflare/resources/workers/scripts/tail.py
index 0ed29531117..556584285ad 100644
--- a/src/cloudflare/resources/workers/scripts/tail.py
+++ b/src/cloudflare/resources/workers/scripts/tail.py
@@ -23,13 +23,8 @@
from ...._base_client import (
make_request_options,
)
-from ....types.workers.scripts import (
- TailGetResponse,
- TailCreateResponse,
- TailDeleteResponse,
- tail_create_params,
- tail_delete_params,
-)
+from ....types.shared import UnnamedSchemaRef171
+from ....types.workers.scripts import TailGetResponse, TailCreateResponse, tail_create_params, tail_delete_params
__all__ = ["Tail", "AsyncTail"]
@@ -102,7 +97,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> TailDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Deletes a tail from a Worker.
@@ -128,7 +123,7 @@ def delete(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- TailDeleteResponse,
+ UnnamedSchemaRef171,
self._delete(
f"/accounts/{account_id}/workers/scripts/{script_name}/tails/{id}",
body=maybe_transform(body, tail_delete_params.TailDeleteParams),
@@ -140,7 +135,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[TailDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -258,7 +253,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> TailDeleteResponse:
+ ) -> UnnamedSchemaRef171:
"""
Deletes a tail from a Worker.
@@ -284,7 +279,7 @@ async def delete(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- TailDeleteResponse,
+ UnnamedSchemaRef171,
await self._delete(
f"/accounts/{account_id}/workers/scripts/{script_name}/tails/{id}",
body=await async_maybe_transform(body, tail_delete_params.TailDeleteParams),
@@ -296,7 +291,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[TailDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef171]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/workers/services/environments/content.py b/src/cloudflare/resources/workers/services/environments/content.py
index de0711bacb6..b0815d43420 100644
--- a/src/cloudflare/resources/workers/services/environments/content.py
+++ b/src/cloudflare/resources/workers/services/environments/content.py
@@ -6,6 +6,7 @@
import httpx
+from .....types import shared_params
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
from ....._utils import (
extract_files,
@@ -55,7 +56,7 @@ def update(
account_id: str,
service_name: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: content_update_params.Metadata | NotGiven = NOT_GIVEN,
+ metadata: shared_params.UnnamedSchemaRef51 | 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,
@@ -184,7 +185,7 @@ async def update(
account_id: str,
service_name: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: content_update_params.Metadata | NotGiven = NOT_GIVEN,
+ metadata: shared_params.UnnamedSchemaRef51 | 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,
diff --git a/src/cloudflare/resources/workers/services/environments/settings.py b/src/cloudflare/resources/workers/services/environments/settings.py
index 89ebd37de6d..44ba38e0a1f 100644
--- a/src/cloudflare/resources/workers/services/environments/settings.py
+++ b/src/cloudflare/resources/workers/services/environments/settings.py
@@ -7,6 +7,7 @@
import httpx
+from .....types import shared_params
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ....._utils import (
maybe_transform,
@@ -44,8 +45,8 @@ def edit(
*,
account_id: str,
service_name: str,
- errors: Iterable[setting_edit_params.Error],
- messages: Iterable[setting_edit_params.Message],
+ errors: Iterable[shared_params.UnnamedSchemaRef172],
+ messages: Iterable[shared_params.UnnamedSchemaRef172],
result: setting_edit_params.Result,
success: Literal[True],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -167,8 +168,8 @@ async def edit(
*,
account_id: str,
service_name: str,
- errors: Iterable[setting_edit_params.Error],
- messages: Iterable[setting_edit_params.Message],
+ errors: Iterable[shared_params.UnnamedSchemaRef172],
+ messages: Iterable[shared_params.UnnamedSchemaRef172],
result: setting_edit_params.Result,
success: Literal[True],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py
index f7ecc203ed3..054610ff963 100644
--- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py
+++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py
@@ -6,6 +6,7 @@
import httpx
+from ......types import shared_params
from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
from ......_utils import (
extract_files,
@@ -55,7 +56,7 @@ def update(
account_id: str,
dispatch_namespace: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: content_update_params.Metadata | NotGiven = NOT_GIVEN,
+ metadata: shared_params.UnnamedSchemaRef51 | 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,
@@ -185,7 +186,7 @@ async def update(
account_id: str,
dispatch_namespace: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: content_update_params.Metadata | NotGiven = NOT_GIVEN,
+ metadata: shared_params.UnnamedSchemaRef51 | 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,
diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py
index a7f47326564..2bea1bf19f4 100644
--- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py
+++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py
@@ -7,6 +7,7 @@
import httpx
+from ......types import shared_params
from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ......_utils import (
maybe_transform,
@@ -48,8 +49,8 @@ def edit(
*,
account_id: str,
dispatch_namespace: str,
- errors: Iterable[setting_edit_params.Error],
- messages: Iterable[setting_edit_params.Message],
+ errors: Iterable[shared_params.UnnamedSchemaRef172],
+ messages: Iterable[shared_params.UnnamedSchemaRef172],
result: setting_edit_params.Result,
success: Literal[True],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -171,8 +172,8 @@ async def edit(
*,
account_id: str,
dispatch_namespace: str,
- errors: Iterable[setting_edit_params.Error],
- messages: Iterable[setting_edit_params.Message],
+ errors: Iterable[shared_params.UnnamedSchemaRef172],
+ messages: Iterable[shared_params.UnnamedSchemaRef172],
result: setting_edit_params.Result,
success: Literal[True],
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
diff --git a/src/cloudflare/resources/zero_trust/devices/devices.py b/src/cloudflare/resources/zero_trust/devices/devices.py
index c8462bafd41..f9270710108 100644
--- a/src/cloudflare/resources/zero_trust/devices/devices.py
+++ b/src/cloudflare/resources/zero_trust/devices/devices.py
@@ -85,9 +85,10 @@
AsyncPaginator,
make_request_options,
)
+from ....types.shared import UnnamedSchemaRef173
from .posture.posture import Posture, AsyncPosture
from .policies.policies import Policies, AsyncPolicies
-from ....types.zero_trust import ZeroTrustDevices, DeviceGetResponse
+from ....types.zero_trust import ZeroTrustDevices
__all__ = ["Devices", "AsyncDevices"]
@@ -178,7 +179,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[DeviceGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Fetches details for a single device.
@@ -198,7 +199,7 @@ def get(
if not device_id:
raise ValueError(f"Expected a non-empty value for `device_id` but received {device_id!r}")
return cast(
- Optional[DeviceGetResponse],
+ Optional[UnnamedSchemaRef173],
self._get(
f"/accounts/{account_id}/devices/{device_id}",
options=make_request_options(
@@ -209,7 +210,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[DeviceGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -301,7 +302,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[DeviceGetResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Fetches details for a single device.
@@ -321,7 +322,7 @@ async def get(
if not device_id:
raise ValueError(f"Expected a non-empty value for `device_id` but received {device_id!r}")
return cast(
- Optional[DeviceGetResponse],
+ Optional[UnnamedSchemaRef173],
await self._get(
f"/accounts/{account_id}/devices/{device_id}",
options=make_request_options(
@@ -332,7 +333,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[DeviceGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
index 8128af8cd1c..eac33b4bb40 100644
--- a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
+++ b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py
@@ -26,9 +26,9 @@
AsyncPaginator,
make_request_options,
)
+from .....types.shared import UnnamedSchemaRef173
from .....types.zero_trust.devices.posture import (
DevicePostureIntegrations,
- IntegrationDeleteResponse,
integration_edit_params,
integration_create_params,
integration_delete_params,
@@ -151,7 +151,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[IntegrationDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Delete a configured device posture integration.
@@ -171,7 +171,7 @@ def delete(
if not integration_id:
raise ValueError(f"Expected a non-empty value for `integration_id` but received {integration_id!r}")
return cast(
- Optional[IntegrationDeleteResponse],
+ Optional[UnnamedSchemaRef173],
self._delete(
f"/accounts/{account_id}/devices/posture/integration/{integration_id}",
body=maybe_transform(body, integration_delete_params.IntegrationDeleteParams),
@@ -183,7 +183,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[IntegrationDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -410,7 +410,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[IntegrationDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Delete a configured device posture integration.
@@ -430,7 +430,7 @@ async def delete(
if not integration_id:
raise ValueError(f"Expected a non-empty value for `integration_id` but received {integration_id!r}")
return cast(
- Optional[IntegrationDeleteResponse],
+ Optional[UnnamedSchemaRef173],
await self._delete(
f"/accounts/{account_id}/devices/posture/integration/{integration_id}",
body=await async_maybe_transform(body, integration_delete_params.IntegrationDeleteParams),
@@ -442,7 +442,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[IntegrationDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/devices/revoke.py b/src/cloudflare/resources/zero_trust/devices/revoke.py
index 2cad8a4c6d1..228fa7107a8 100644
--- a/src/cloudflare/resources/zero_trust/devices/revoke.py
+++ b/src/cloudflare/resources/zero_trust/devices/revoke.py
@@ -23,7 +23,8 @@
from ...._base_client import (
make_request_options,
)
-from ....types.zero_trust.devices import RevokeCreateResponse, revoke_create_params
+from ....types.shared import UnnamedSchemaRef173
+from ....types.zero_trust.devices import revoke_create_params
__all__ = ["Revoke", "AsyncRevoke"]
@@ -48,7 +49,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RevokeCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Revokes a list of devices.
@@ -66,7 +67,7 @@ def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[RevokeCreateResponse],
+ Optional[UnnamedSchemaRef173],
self._post(
f"/accounts/{account_id}/devices/revoke",
body=maybe_transform(body, revoke_create_params.RevokeCreateParams),
@@ -78,7 +79,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RevokeCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -104,7 +105,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[RevokeCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Revokes a list of devices.
@@ -122,7 +123,7 @@ async def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[RevokeCreateResponse],
+ Optional[UnnamedSchemaRef173],
await self._post(
f"/accounts/{account_id}/devices/revoke",
body=await async_maybe_transform(body, revoke_create_params.RevokeCreateParams),
@@ -134,7 +135,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[RevokeCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/devices/unrevoke.py b/src/cloudflare/resources/zero_trust/devices/unrevoke.py
index af66f3e37f9..b8c3f3ac985 100644
--- a/src/cloudflare/resources/zero_trust/devices/unrevoke.py
+++ b/src/cloudflare/resources/zero_trust/devices/unrevoke.py
@@ -23,7 +23,8 @@
from ...._base_client import (
make_request_options,
)
-from ....types.zero_trust.devices import UnrevokeCreateResponse, unrevoke_create_params
+from ....types.shared import UnnamedSchemaRef173
+from ....types.zero_trust.devices import unrevoke_create_params
__all__ = ["Unrevoke", "AsyncUnrevoke"]
@@ -48,7 +49,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnrevokeCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Unrevokes a list of devices.
@@ -66,7 +67,7 @@ def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnrevokeCreateResponse],
+ Optional[UnnamedSchemaRef173],
self._post(
f"/accounts/{account_id}/devices/unrevoke",
body=maybe_transform(body, unrevoke_create_params.UnrevokeCreateParams),
@@ -78,7 +79,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnrevokeCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -104,7 +105,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[UnrevokeCreateResponse]:
+ ) -> Optional[UnnamedSchemaRef173]:
"""
Unrevokes a list of devices.
@@ -122,7 +123,7 @@ async def create(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- Optional[UnrevokeCreateResponse],
+ Optional[UnnamedSchemaRef173],
await self._post(
f"/accounts/{account_id}/devices/unrevoke",
body=await async_maybe_transform(body, unrevoke_create_params.UnrevokeCreateParams),
@@ -134,7 +135,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnrevokeCreateResponse]
+ Any, ResultWrapper[UnnamedSchemaRef173]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
index ab0acfa2d3a..18403b3c76b 100644
--- a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
+++ b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py
@@ -23,10 +23,10 @@
from ....._base_client import (
make_request_options,
)
+from .....types.shared import UnnamedSchemaRef169
from .....types.zero_trust.dlp.profiles import (
DLPCustomProfile,
CustomCreateResponse,
- CustomDeleteResponse,
custom_create_params,
custom_delete_params,
custom_update_params,
@@ -174,7 +174,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CustomDeleteResponse:
+ ) -> UnnamedSchemaRef169:
"""
Deletes a DLP custom profile.
@@ -196,7 +196,7 @@ def delete(
if not profile_id:
raise ValueError(f"Expected a non-empty value for `profile_id` but received {profile_id!r}")
return cast(
- CustomDeleteResponse,
+ UnnamedSchemaRef169,
self._delete(
f"/accounts/{account_id}/dlp/profiles/custom/{profile_id}",
body=maybe_transform(body, custom_delete_params.CustomDeleteParams),
@@ -208,7 +208,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[CustomDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef169]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -397,7 +397,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CustomDeleteResponse:
+ ) -> UnnamedSchemaRef169:
"""
Deletes a DLP custom profile.
@@ -419,7 +419,7 @@ async def delete(
if not profile_id:
raise ValueError(f"Expected a non-empty value for `profile_id` but received {profile_id!r}")
return cast(
- CustomDeleteResponse,
+ UnnamedSchemaRef169,
await self._delete(
f"/accounts/{account_id}/dlp/profiles/custom/{profile_id}",
body=await async_maybe_transform(body, custom_delete_params.CustomDeleteParams),
@@ -431,7 +431,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[CustomDeleteResponse]
+ Any, ResultWrapper[UnnamedSchemaRef169]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/gateway/configurations.py b/src/cloudflare/resources/zero_trust/gateway/configurations.py
index 0479cfe4a78..22624eaf595 100644
--- a/src/cloudflare/resources/zero_trust/gateway/configurations.py
+++ b/src/cloudflare/resources/zero_trust/gateway/configurations.py
@@ -6,6 +6,7 @@
import httpx
+from ....types import shared_params
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
@@ -47,7 +48,7 @@ def update(
self,
*,
account_id: str,
- settings: configuration_update_params.Settings | NotGiven = NOT_GIVEN,
+ settings: shared_params.UnnamedSchemaRef125 | 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,
@@ -88,7 +89,7 @@ def edit(
self,
*,
account_id: str,
- settings: configuration_edit_params.Settings | NotGiven = NOT_GIVEN,
+ settings: shared_params.UnnamedSchemaRef125 | 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,
@@ -181,7 +182,7 @@ async def update(
self,
*,
account_id: str,
- settings: configuration_update_params.Settings | NotGiven = NOT_GIVEN,
+ settings: shared_params.UnnamedSchemaRef125 | 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,
@@ -224,7 +225,7 @@ async def edit(
self,
*,
account_id: str,
- settings: configuration_edit_params.Settings | NotGiven = NOT_GIVEN,
+ settings: shared_params.UnnamedSchemaRef125 | 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,
diff --git a/src/cloudflare/resources/zero_trust/gateway/logging.py b/src/cloudflare/resources/zero_trust/gateway/logging.py
index 6dfba1dff9e..1a88c6343e0 100644
--- a/src/cloudflare/resources/zero_trust/gateway/logging.py
+++ b/src/cloudflare/resources/zero_trust/gateway/logging.py
@@ -6,6 +6,7 @@
import httpx
+from ....types import shared_params
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
@@ -42,7 +43,7 @@ def update(
*,
account_id: str,
redact_pii: bool | NotGiven = NOT_GIVEN,
- settings_by_rule_type: logging_update_params.SettingsByRuleType | NotGiven = NOT_GIVEN,
+ settings_by_rule_type: shared_params.UnnamedSchemaRef28 | 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,
@@ -146,7 +147,7 @@ async def update(
*,
account_id: str,
redact_pii: bool | NotGiven = NOT_GIVEN,
- settings_by_rule_type: logging_update_params.SettingsByRuleType | NotGiven = NOT_GIVEN,
+ settings_by_rule_type: shared_params.UnnamedSchemaRef28 | 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,
diff --git a/src/cloudflare/resources/zero_trust/identity_providers.py b/src/cloudflare/resources/zero_trust/identity_providers.py
index c265b813a21..e0e0898ac06 100644
--- a/src/cloudflare/resources/zero_trust/identity_providers.py
+++ b/src/cloudflare/resources/zero_trust/identity_providers.py
@@ -3,10 +3,10 @@
from __future__ import annotations
from typing import Any, Type, cast, overload
-from typing_extensions import Literal
import httpx
+from ...types import shared_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
required_args,
@@ -27,6 +27,7 @@
AsyncPaginator,
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef163
from ...types.zero_trust import (
ZeroTrustIdentityProviders,
IdentityProviderListResponse,
@@ -53,25 +54,10 @@ def create(
*,
config: identity_provider_create_params.AccessAzureAdConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessAzureAdScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -116,25 +102,10 @@ def create(
*,
config: identity_provider_create_params.AccessCentrifyConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessCentrifyScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -179,25 +150,10 @@ def create(
*,
config: identity_provider_create_params.AccessFacebookConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessFacebookScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -242,25 +198,10 @@ def create(
*,
config: identity_provider_create_params.AccessGitHubConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessGitHubScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -305,25 +246,10 @@ def create(
*,
config: identity_provider_create_params.AccessGoogleConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessGoogleScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -368,25 +294,10 @@ def create(
*,
config: identity_provider_create_params.AccessGoogleAppsConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessGoogleAppsScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -431,25 +342,10 @@ def create(
*,
config: identity_provider_create_params.AccessLinkedinConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessLinkedinScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -494,25 +390,10 @@ def create(
*,
config: identity_provider_create_params.AccessOidcConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessOidcScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -557,25 +438,10 @@ def create(
*,
config: identity_provider_create_params.AccessOktaConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessOktaScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -620,25 +486,10 @@ def create(
*,
config: identity_provider_create_params.AccessOneloginConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessOneloginScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -683,25 +534,10 @@ def create(
*,
config: identity_provider_create_params.AccessPingoneConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessPingoneScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -746,25 +582,10 @@ def create(
*,
config: identity_provider_create_params.AccessSamlConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessSamlScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -809,25 +630,10 @@ def create(
*,
config: identity_provider_create_params.AccessYandexConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessYandexScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -872,25 +678,10 @@ def create(
*,
config: object,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessOnetimepinScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -960,25 +751,10 @@ def create(
| identity_provider_create_params.AccessSamlConfig
| object,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessAzureAdScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1034,25 +810,10 @@ def update(
*,
config: identity_provider_update_params.AccessAzureAdConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessAzureAdScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1100,25 +861,10 @@ def update(
*,
config: identity_provider_update_params.AccessCentrifyConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessCentrifyScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1166,25 +912,10 @@ def update(
*,
config: identity_provider_update_params.AccessFacebookConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessFacebookScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1232,25 +963,10 @@ def update(
*,
config: identity_provider_update_params.AccessGitHubConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessGitHubScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1298,25 +1014,10 @@ def update(
*,
config: identity_provider_update_params.AccessGoogleConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessGoogleScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1364,25 +1065,10 @@ def update(
*,
config: identity_provider_update_params.AccessGoogleAppsConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessGoogleAppsScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1430,25 +1116,10 @@ def update(
*,
config: identity_provider_update_params.AccessLinkedinConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessLinkedinScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1496,25 +1167,10 @@ def update(
*,
config: identity_provider_update_params.AccessOidcConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessOidcScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1562,25 +1218,10 @@ def update(
*,
config: identity_provider_update_params.AccessOktaConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessOktaScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1628,25 +1269,10 @@ def update(
*,
config: identity_provider_update_params.AccessOneloginConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessOneloginScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1694,25 +1320,10 @@ def update(
*,
config: identity_provider_update_params.AccessPingoneConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessPingoneScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1760,25 +1371,10 @@ def update(
*,
config: identity_provider_update_params.AccessSamlConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessSamlScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1826,25 +1422,10 @@ def update(
*,
config: identity_provider_update_params.AccessYandexConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessYandexScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1892,25 +1473,10 @@ def update(
*,
config: object,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessOnetimepinScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -1983,25 +1549,10 @@ def update(
| identity_provider_update_params.AccessSamlConfig
| object,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessAzureAdScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2247,25 +1798,10 @@ async def create(
*,
config: identity_provider_create_params.AccessAzureAdConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessAzureAdScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2310,25 +1846,10 @@ async def create(
*,
config: identity_provider_create_params.AccessCentrifyConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessCentrifyScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2373,25 +1894,10 @@ async def create(
*,
config: identity_provider_create_params.AccessFacebookConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessFacebookScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2436,25 +1942,10 @@ async def create(
*,
config: identity_provider_create_params.AccessGitHubConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessGitHubScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2499,25 +1990,10 @@ async def create(
*,
config: identity_provider_create_params.AccessGoogleConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessGoogleScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2562,25 +2038,10 @@ async def create(
*,
config: identity_provider_create_params.AccessGoogleAppsConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessGoogleAppsScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2625,25 +2086,10 @@ async def create(
*,
config: identity_provider_create_params.AccessLinkedinConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessLinkedinScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2688,25 +2134,10 @@ async def create(
*,
config: identity_provider_create_params.AccessOidcConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessOidcScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2751,25 +2182,10 @@ async def create(
*,
config: identity_provider_create_params.AccessOktaConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessOktaScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2814,25 +2230,10 @@ async def create(
*,
config: identity_provider_create_params.AccessOneloginConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessOneloginScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2877,25 +2278,10 @@ async def create(
*,
config: identity_provider_create_params.AccessPingoneConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessPingoneScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -2940,25 +2326,10 @@ async def create(
*,
config: identity_provider_create_params.AccessSamlConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessSamlScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3003,25 +2374,10 @@ async def create(
*,
config: identity_provider_create_params.AccessYandexConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessYandexScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3066,25 +2422,10 @@ async def create(
*,
config: object,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessOnetimepinScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3154,25 +2495,10 @@ async def create(
| identity_provider_create_params.AccessSamlConfig
| object,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_create_params.AccessAzureAdScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3228,25 +2554,10 @@ async def update(
*,
config: identity_provider_update_params.AccessAzureAdConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessAzureAdScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3294,25 +2605,10 @@ async def update(
*,
config: identity_provider_update_params.AccessCentrifyConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessCentrifyScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3360,25 +2656,10 @@ async def update(
*,
config: identity_provider_update_params.AccessFacebookConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessFacebookScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3426,25 +2707,10 @@ async def update(
*,
config: identity_provider_update_params.AccessGitHubConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessGitHubScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3492,25 +2758,10 @@ async def update(
*,
config: identity_provider_update_params.AccessGoogleConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessGoogleScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3558,25 +2809,10 @@ async def update(
*,
config: identity_provider_update_params.AccessGoogleAppsConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessGoogleAppsScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3624,25 +2860,10 @@ async def update(
*,
config: identity_provider_update_params.AccessLinkedinConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessLinkedinScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3690,25 +2911,10 @@ async def update(
*,
config: identity_provider_update_params.AccessOidcConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessOidcScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3756,25 +2962,10 @@ async def update(
*,
config: identity_provider_update_params.AccessOktaConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessOktaScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3822,25 +3013,10 @@ async def update(
*,
config: identity_provider_update_params.AccessOneloginConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessOneloginScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3888,25 +3064,10 @@ async def update(
*,
config: identity_provider_update_params.AccessPingoneConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessPingoneScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -3954,25 +3115,10 @@ async def update(
*,
config: identity_provider_update_params.AccessSamlConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessSamlScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -4020,25 +3166,10 @@ async def update(
*,
config: identity_provider_update_params.AccessYandexConfig,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessYandexScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -4086,25 +3217,10 @@ async def update(
*,
config: object,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessOnetimepinScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
@@ -4177,25 +3293,10 @@ async def update(
| identity_provider_update_params.AccessSamlConfig
| object,
name: str,
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ],
+ type: UnnamedSchemaRef163,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
- scim_config: identity_provider_update_params.AccessAzureAdScimConfig | NotGiven = NOT_GIVEN,
+ scim_config: shared_params.UnnamedSchemaRef158 | 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,
diff --git a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
index 84b79f0673e..9aa2eed3fbe 100644
--- a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
+++ b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py
@@ -66,10 +66,9 @@
AsyncPaginator,
make_request_options,
)
+from ....types.shared import UnnamedSchemaRef123
from ....types.zero_trust import (
TunnelArgoTunnel,
- TunnelEditResponse,
- TunnelListResponse,
tunnel_edit_params,
tunnel_list_params,
tunnel_create_params,
@@ -182,7 +181,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncV4PagePaginationArray[TunnelListResponse]:
+ ) -> SyncV4PagePaginationArray[UnnamedSchemaRef123]:
"""
Lists and filters all types of Tunnels in an account.
@@ -217,7 +216,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/tunnels",
- page=SyncV4PagePaginationArray[TunnelListResponse],
+ page=SyncV4PagePaginationArray[UnnamedSchemaRef123],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -240,7 +239,7 @@ def list(
tunnel_list_params.TunnelListParams,
),
),
- model=cast(Any, TunnelListResponse), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, UnnamedSchemaRef123), # Union types cannot be passed in as arguments in the type system
)
def delete(
@@ -302,7 +301,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> TunnelEditResponse:
+ ) -> UnnamedSchemaRef123:
"""
Updates an existing Cloudflare Tunnel.
@@ -329,7 +328,7 @@ def edit(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- TunnelEditResponse,
+ UnnamedSchemaRef123,
self._patch(
f"/accounts/{account_id}/cfd_tunnel/{tunnel_id}",
body=maybe_transform(
@@ -347,7 +346,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[TunnelEditResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -500,7 +499,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[TunnelListResponse, AsyncV4PagePaginationArray[TunnelListResponse]]:
+ ) -> AsyncPaginator[UnnamedSchemaRef123, AsyncV4PagePaginationArray[UnnamedSchemaRef123]]:
"""
Lists and filters all types of Tunnels in an account.
@@ -535,7 +534,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return self._get_api_list(
f"/accounts/{account_id}/tunnels",
- page=AsyncV4PagePaginationArray[TunnelListResponse],
+ page=AsyncV4PagePaginationArray[UnnamedSchemaRef123],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -558,7 +557,7 @@ def list(
tunnel_list_params.TunnelListParams,
),
),
- model=cast(Any, TunnelListResponse), # Union types cannot be passed in as arguments in the type system
+ model=cast(Any, UnnamedSchemaRef123), # Union types cannot be passed in as arguments in the type system
)
async def delete(
@@ -620,7 +619,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> TunnelEditResponse:
+ ) -> UnnamedSchemaRef123:
"""
Updates an existing Cloudflare Tunnel.
@@ -647,7 +646,7 @@ async def edit(
if not tunnel_id:
raise ValueError(f"Expected a non-empty value for `tunnel_id` but received {tunnel_id!r}")
return cast(
- TunnelEditResponse,
+ UnnamedSchemaRef123,
await self._patch(
f"/accounts/{account_id}/cfd_tunnel/{tunnel_id}",
body=await async_maybe_transform(
@@ -665,7 +664,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[TunnelEditResponse]
+ Any, ResultWrapper[UnnamedSchemaRef123]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zones/custom_nameservers.py b/src/cloudflare/resources/zones/custom_nameservers.py
index f5a2db1748d..ac605325391 100644
--- a/src/cloudflare/resources/zones/custom_nameservers.py
+++ b/src/cloudflare/resources/zones/custom_nameservers.py
@@ -20,10 +20,11 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.zones import CustomNameserverGetResponse, CustomNameserverUpdateResponse, custom_nameserver_update_params
+from ...types.zones import CustomNameserverUpdateResponse, custom_nameserver_update_params
from ..._base_client import (
make_request_options,
)
+from ...types.shared import UnnamedSchemaRef167
__all__ = ["CustomNameservers", "AsyncCustomNameservers"]
@@ -108,7 +109,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[CustomNameserverGetResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Get metadata for account-level custom nameservers on a zone.
@@ -126,7 +127,7 @@ def get(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- Optional[CustomNameserverGetResponse],
+ Optional[UnnamedSchemaRef167],
self._get(
f"/zones/{zone_id}/custom_ns",
options=make_request_options(
@@ -137,7 +138,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[CustomNameserverGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -223,7 +224,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[CustomNameserverGetResponse]:
+ ) -> Optional[UnnamedSchemaRef167]:
"""
Get metadata for account-level custom nameservers on a zone.
@@ -241,7 +242,7 @@ async def get(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- Optional[CustomNameserverGetResponse],
+ Optional[UnnamedSchemaRef167],
await self._get(
f"/zones/{zone_id}/custom_ns",
options=make_request_options(
@@ -252,7 +253,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[CustomNameserverGetResponse]
+ Any, ResultWrapper[UnnamedSchemaRef167]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zones/holds.py b/src/cloudflare/resources/zones/holds.py
index 96a4032d17b..71412bf61e4 100644
--- a/src/cloudflare/resources/zones/holds.py
+++ b/src/cloudflare/resources/zones/holds.py
@@ -23,7 +23,7 @@
from ...types.zones import (
HoldGetResponse,
HoldCreateResponse,
- HoldDeleteResponse,
+ UnnamedSchemaRef64,
hold_create_params,
hold_delete_params,
)
@@ -101,7 +101,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[HoldDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef64]:
"""
Stop enforcement of a zone hold on the zone, permanently or temporarily,
allowing the creation and activation of zones with this zone's hostname.
@@ -133,7 +133,7 @@ def delete(
query=maybe_transform({"hold_after": hold_after}, hold_delete_params.HoldDeleteParams),
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[Optional[HoldDeleteResponse]], ResultWrapper[HoldDeleteResponse]),
+ cast_to=cast(Type[Optional[UnnamedSchemaRef64]], ResultWrapper[UnnamedSchemaRef64]),
)
def get(
@@ -246,7 +246,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> Optional[HoldDeleteResponse]:
+ ) -> Optional[UnnamedSchemaRef64]:
"""
Stop enforcement of a zone hold on the zone, permanently or temporarily,
allowing the creation and activation of zones with this zone's hostname.
@@ -278,7 +278,7 @@ async def delete(
query=await async_maybe_transform({"hold_after": hold_after}, hold_delete_params.HoldDeleteParams),
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[Optional[HoldDeleteResponse]], ResultWrapper[HoldDeleteResponse]),
+ cast_to=cast(Type[Optional[UnnamedSchemaRef64]], ResultWrapper[UnnamedSchemaRef64]),
)
async def get(
diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py
index 88a2f857e44..9be059fd52c 100644
--- a/src/cloudflare/types/__init__.py
+++ b/src/cloudflare/types/__init__.py
@@ -5,7 +5,129 @@
from .ips import IPs as IPs
from .zone import Zone as Zone
from .dnssec import DNSSEC as DNSSEC
-from .shared import ErrorData as ErrorData
+from .shared import (
+ Logging as Logging,
+ ErrorData as ErrorData,
+ UnnamedSchemaRef2 as UnnamedSchemaRef2,
+ UnnamedSchemaRef3 as UnnamedSchemaRef3,
+ UnnamedSchemaRef4 as UnnamedSchemaRef4,
+ UnnamedSchemaRef5 as UnnamedSchemaRef5,
+ UnnamedSchemaRef7 as UnnamedSchemaRef7,
+ UnnamedSchemaRef8 as UnnamedSchemaRef8,
+ UnnamedSchemaRef9 as UnnamedSchemaRef9,
+ UnnamedSchemaRef10 as UnnamedSchemaRef10,
+ UnnamedSchemaRef11 as UnnamedSchemaRef11,
+ UnnamedSchemaRef12 as UnnamedSchemaRef12,
+ UnnamedSchemaRef13 as UnnamedSchemaRef13,
+ UnnamedSchemaRef14 as UnnamedSchemaRef14,
+ UnnamedSchemaRef15 as UnnamedSchemaRef15,
+ UnnamedSchemaRef16 as UnnamedSchemaRef16,
+ UnnamedSchemaRef22 as UnnamedSchemaRef22,
+ UnnamedSchemaRef23 as UnnamedSchemaRef23,
+ UnnamedSchemaRef24 as UnnamedSchemaRef24,
+ UnnamedSchemaRef25 as UnnamedSchemaRef25,
+ UnnamedSchemaRef28 as UnnamedSchemaRef28,
+ UnnamedSchemaRef34 as UnnamedSchemaRef34,
+ UnnamedSchemaRef35 as UnnamedSchemaRef35,
+ UnnamedSchemaRef36 as UnnamedSchemaRef36,
+ UnnamedSchemaRef37 as UnnamedSchemaRef37,
+ UnnamedSchemaRef38 as UnnamedSchemaRef38,
+ UnnamedSchemaRef39 as UnnamedSchemaRef39,
+ UnnamedSchemaRef40 as UnnamedSchemaRef40,
+ UnnamedSchemaRef41 as UnnamedSchemaRef41,
+ UnnamedSchemaRef43 as UnnamedSchemaRef43,
+ UnnamedSchemaRef44 as UnnamedSchemaRef44,
+ UnnamedSchemaRef46 as UnnamedSchemaRef46,
+ UnnamedSchemaRef49 as UnnamedSchemaRef49,
+ UnnamedSchemaRef51 as UnnamedSchemaRef51,
+ UnnamedSchemaRef52 as UnnamedSchemaRef52,
+ UnnamedSchemaRef57 as UnnamedSchemaRef57,
+ UnnamedSchemaRef59 as UnnamedSchemaRef59,
+ UnnamedSchemaRef61 as UnnamedSchemaRef61,
+ UnnamedSchemaRef62 as UnnamedSchemaRef62,
+ UnnamedSchemaRef63 as UnnamedSchemaRef63,
+ UnnamedSchemaRef65 as UnnamedSchemaRef65,
+ UnnamedSchemaRef69 as UnnamedSchemaRef69,
+ UnnamedSchemaRef71 as UnnamedSchemaRef71,
+ UnnamedSchemaRef72 as UnnamedSchemaRef72,
+ UnnamedSchemaRef73 as UnnamedSchemaRef73,
+ UnnamedSchemaRef75 as UnnamedSchemaRef75,
+ UnnamedSchemaRef76 as UnnamedSchemaRef76,
+ UnnamedSchemaRef77 as UnnamedSchemaRef77,
+ UnnamedSchemaRef78 as UnnamedSchemaRef78,
+ UnnamedSchemaRef79 as UnnamedSchemaRef79,
+ UnnamedSchemaRef80 as UnnamedSchemaRef80,
+ UnnamedSchemaRef81 as UnnamedSchemaRef81,
+ UnnamedSchemaRef82 as UnnamedSchemaRef82,
+ UnnamedSchemaRef83 as UnnamedSchemaRef83,
+ UnnamedSchemaRef84 as UnnamedSchemaRef84,
+ UnnamedSchemaRef85 as UnnamedSchemaRef85,
+ UnnamedSchemaRef87 as UnnamedSchemaRef87,
+ UnnamedSchemaRef88 as UnnamedSchemaRef88,
+ UnnamedSchemaRef89 as UnnamedSchemaRef89,
+ UnnamedSchemaRef90 as UnnamedSchemaRef90,
+ UnnamedSchemaRef91 as UnnamedSchemaRef91,
+ UnnamedSchemaRef92 as UnnamedSchemaRef92,
+ UnnamedSchemaRef93 as UnnamedSchemaRef93,
+ UnnamedSchemaRef94 as UnnamedSchemaRef94,
+ UnnamedSchemaRef96 as UnnamedSchemaRef96,
+ UnnamedSchemaRef97 as UnnamedSchemaRef97,
+ UnnamedSchemaRef98 as UnnamedSchemaRef98,
+ UnnamedSchemaRef99 as UnnamedSchemaRef99,
+ UnnamedSchemaRef100 as UnnamedSchemaRef100,
+ UnnamedSchemaRef101 as UnnamedSchemaRef101,
+ UnnamedSchemaRef102 as UnnamedSchemaRef102,
+ UnnamedSchemaRef103 as UnnamedSchemaRef103,
+ UnnamedSchemaRef104 as UnnamedSchemaRef104,
+ UnnamedSchemaRef105 as UnnamedSchemaRef105,
+ UnnamedSchemaRef107 as UnnamedSchemaRef107,
+ UnnamedSchemaRef108 as UnnamedSchemaRef108,
+ UnnamedSchemaRef109 as UnnamedSchemaRef109,
+ UnnamedSchemaRef110 as UnnamedSchemaRef110,
+ UnnamedSchemaRef111 as UnnamedSchemaRef111,
+ UnnamedSchemaRef113 as UnnamedSchemaRef113,
+ UnnamedSchemaRef114 as UnnamedSchemaRef114,
+ UnnamedSchemaRef115 as UnnamedSchemaRef115,
+ UnnamedSchemaRef116 as UnnamedSchemaRef116,
+ UnnamedSchemaRef117 as UnnamedSchemaRef117,
+ UnnamedSchemaRef118 as UnnamedSchemaRef118,
+ UnnamedSchemaRef119 as UnnamedSchemaRef119,
+ UnnamedSchemaRef120 as UnnamedSchemaRef120,
+ UnnamedSchemaRef121 as UnnamedSchemaRef121,
+ UnnamedSchemaRef122 as UnnamedSchemaRef122,
+ UnnamedSchemaRef123 as UnnamedSchemaRef123,
+ UnnamedSchemaRef124 as UnnamedSchemaRef124,
+ UnnamedSchemaRef125 as UnnamedSchemaRef125,
+ UnnamedSchemaRef126 as UnnamedSchemaRef126,
+ UnnamedSchemaRef131 as UnnamedSchemaRef131,
+ UnnamedSchemaRef132 as UnnamedSchemaRef132,
+ UnnamedSchemaRef135 as UnnamedSchemaRef135,
+ UnnamedSchemaRef136 as UnnamedSchemaRef136,
+ UnnamedSchemaRef139 as UnnamedSchemaRef139,
+ UnnamedSchemaRef140 as UnnamedSchemaRef140,
+ UnnamedSchemaRef142 as UnnamedSchemaRef142,
+ UnnamedSchemaRef143 as UnnamedSchemaRef143,
+ UnnamedSchemaRef144 as UnnamedSchemaRef144,
+ UnnamedSchemaRef145 as UnnamedSchemaRef145,
+ UnnamedSchemaRef146 as UnnamedSchemaRef146,
+ UnnamedSchemaRef147 as UnnamedSchemaRef147,
+ UnnamedSchemaRef148 as UnnamedSchemaRef148,
+ UnnamedSchemaRef151 as UnnamedSchemaRef151,
+ UnnamedSchemaRef152 as UnnamedSchemaRef152,
+ UnnamedSchemaRef155 as UnnamedSchemaRef155,
+ UnnamedSchemaRef156 as UnnamedSchemaRef156,
+ UnnamedSchemaRef158 as UnnamedSchemaRef158,
+ UnnamedSchemaRef159 as UnnamedSchemaRef159,
+ UnnamedSchemaRef161 as UnnamedSchemaRef161,
+ UnnamedSchemaRef162 as UnnamedSchemaRef162,
+ UnnamedSchemaRef163 as UnnamedSchemaRef163,
+ UnnamedSchemaRef167 as UnnamedSchemaRef167,
+ UnnamedSchemaRef169 as UnnamedSchemaRef169,
+ UnnamedSchemaRef170 as UnnamedSchemaRef170,
+ UnnamedSchemaRef171 as UnnamedSchemaRef171,
+ UnnamedSchemaRef172 as UnnamedSchemaRef172,
+ UnnamedSchemaRef173 as UnnamedSchemaRef173,
+)
from .account import Account as Account
from .snippet import Snippet as Snippet
from .calls_app import CallsApp as CallsApp
@@ -68,14 +190,13 @@
from .origin_ca_certificate import OriginCACertificate as OriginCACertificate
from .pagerule_get_response import PageruleGetResponse as PageruleGetResponse
from .queue_create_response import QueueCreateResponse as QueueCreateResponse
-from .queue_delete_response import QueueDeleteResponse as QueueDeleteResponse
from .queue_update_response import QueueUpdateResponse as QueueUpdateResponse
from .ruleset_create_params import RulesetCreateParams as RulesetCreateParams
from .ruleset_list_response import RulesetListResponse as RulesetListResponse
from .ruleset_update_params import RulesetUpdateParams as RulesetUpdateParams
from .snippet_update_params import SnippetUpdateParams as SnippetUpdateParams
from .speed_delete_response import SpeedDeleteResponse as SpeedDeleteResponse
-from .dnssec_delete_response import DNSSECDeleteResponse as DNSSECDeleteResponse
+from .unnamed_schema_ref_53 import UnnamedSchemaRef53 as UnnamedSchemaRef53
from .filter_create_response import FilterCreateResponse as FilterCreateResponse
from .membership_list_params import MembershipListParams as MembershipListParams
from .pagerule_create_params import PageruleCreateParams as PageruleCreateParams
@@ -86,16 +207,23 @@
from .rate_limit_edit_params import RateLimitEditParams as RateLimitEditParams
from .rate_limit_list_params import RateLimitListParams as RateLimitListParams
from .rate_plan_get_response import RatePlanGetResponse as RatePlanGetResponse
+from .unnamed_schema_ref_106 import UnnamedSchemaRef106 as UnnamedSchemaRef106
+from .unnamed_schema_ref_128 import UnnamedSchemaRef128 as UnnamedSchemaRef128
+from .unnamed_schema_ref_129 import UnnamedSchemaRef129 as UnnamedSchemaRef129
+from .unnamed_schema_ref_130 import UnnamedSchemaRef130 as UnnamedSchemaRef130
+from .unnamed_schema_ref_153 import UnnamedSchemaRef153 as UnnamedSchemaRef153
+from .unnamed_schema_ref_154 import UnnamedSchemaRef154 as UnnamedSchemaRef154
+from .unnamed_schema_ref_160 import UnnamedSchemaRef160 as UnnamedSchemaRef160
+from .unnamed_schema_ref_174 import UnnamedSchemaRef174 as UnnamedSchemaRef174
+from .unnamed_schema_ref_175 import UnnamedSchemaRef175 as UnnamedSchemaRef175
from .account_update_response import AccountUpdateResponse as AccountUpdateResponse
from .audit_log_list_response import AuditLogListResponse as AuditLogListResponse
from .healthcheck_edit_params import HealthcheckEditParams as HealthcheckEditParams
from .intel_phishing_url_info import IntelPhishingURLInfo as IntelPhishingURLInfo
from .membership_get_response import MembershipGetResponse as MembershipGetResponse
from .mtls_certificate_update import MTLSCertificateUpdate as MTLSCertificateUpdate
-from .rate_limit_get_response import RateLimitGetResponse as RateLimitGetResponse
from .ruleset_create_response import RulesetCreateResponse as RulesetCreateResponse
from .ruleset_update_response import RulesetUpdateResponse as RulesetUpdateResponse
-from .snippet_delete_response import SnippetDeleteResponse as SnippetDeleteResponse
from .url_scanner_scan_params import URLScannerScanParams as URLScannerScanParams
from .membership_delete_params import MembershipDeleteParams as MembershipDeleteParams
from .membership_update_params import MembershipUpdateParams as MembershipUpdateParams
@@ -104,7 +232,6 @@
from .pagerule_update_response import PageruleUpdateResponse as PageruleUpdateResponse
from .rate_limit_create_params import RateLimitCreateParams as RateLimitCreateParams
from .rate_limit_delete_params import RateLimitDeleteParams as RateLimitDeleteParams
-from .rate_limit_edit_response import RateLimitEditResponse as RateLimitEditResponse
from .rate_limit_list_response import RateLimitListResponse as RateLimitListResponse
from .speed_trends_list_params import SpeedTrendsListParams as SpeedTrendsListParams
from .waiting_room_edit_params import WaitingRoomEditParams as WaitingRoomEditParams
@@ -121,7 +248,6 @@
from .managed_header_edit_params import ManagedHeaderEditParams as ManagedHeaderEditParams
from .membership_delete_response import MembershipDeleteResponse as MembershipDeleteResponse
from .membership_update_response import MembershipUpdateResponse as MembershipUpdateResponse
-from .rate_limit_create_response import RateLimitCreateResponse as RateLimitCreateResponse
from .rate_limit_delete_response import RateLimitDeleteResponse as RateLimitDeleteResponse
from .subscription_create_params import SubscriptionCreateParams as SubscriptionCreateParams
from .subscription_delete_params import SubscriptionDeleteParams as SubscriptionDeleteParams
@@ -141,7 +267,6 @@
from .load_balancer_delete_params import LoadBalancerDeleteParams as LoadBalancerDeleteParams
from .load_balancer_update_params import LoadBalancerUpdateParams as LoadBalancerUpdateParams
from .page_shield_update_response import PageShieldUpdateResponse as PageShieldUpdateResponse
-from .warp_connector_get_response import WARPConnectorGetResponse as WARPConnectorGetResponse
from .bot_management_update_params import BotManagementUpdateParams as BotManagementUpdateParams
from .custom_hostname_get_response import CustomHostnameGetResponse as CustomHostnameGetResponse
from .email_routing_disable_params import EmailRoutingDisableParams as EmailRoutingDisableParams
@@ -149,13 +274,10 @@
from .managed_header_edit_response import ManagedHeaderEditResponse as ManagedHeaderEditResponse
from .managed_header_list_response import ManagedHeaderListResponse as ManagedHeaderListResponse
from .subscription_create_response import SubscriptionCreateResponse as SubscriptionCreateResponse
-from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse
from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse
from .waiting_room_delete_response import WaitingRoomDeleteResponse as WaitingRoomDeleteResponse
from .warp_connector_create_params import WARPConnectorCreateParams as WARPConnectorCreateParams
from .warp_connector_delete_params import WARPConnectorDeleteParams as WARPConnectorDeleteParams
-from .warp_connector_edit_response import WARPConnectorEditResponse as WARPConnectorEditResponse
-from .warp_connector_list_response import WARPConnectorListResponse as WARPConnectorListResponse
from .custom_hostname_create_params import CustomHostnameCreateParams as CustomHostnameCreateParams
from .custom_hostname_delete_params import CustomHostnameDeleteParams as CustomHostnameDeleteParams
from .custom_hostname_edit_response import CustomHostnameEditResponse as CustomHostnameEditResponse
@@ -173,8 +295,6 @@
from .mtls_certificate_create_params import MTLSCertificateCreateParams as MTLSCertificateCreateParams
from .mtls_certificate_delete_params import MTLSCertificateDeleteParams as MTLSCertificateDeleteParams
from .url_normalization_get_response import URLNormalizationGetResponse as URLNormalizationGetResponse
-from .warp_connector_create_response import WARPConnectorCreateResponse as WARPConnectorCreateResponse
-from .warp_connector_delete_response import WARPConnectorDeleteResponse as WARPConnectorDeleteResponse
from .custom_certificate_get_response import CustomCertificateGetResponse as CustomCertificateGetResponse
from .custom_hostname_create_response import CustomHostnameCreateResponse as CustomHostnameCreateResponse
from .custom_hostname_delete_response import CustomHostnameDeleteResponse as CustomHostnameDeleteResponse
diff --git a/src/cloudflare/types/addressing/__init__.py b/src/cloudflare/types/addressing/__init__.py
index e3f50f14a63..506808a48cb 100644
--- a/src/cloudflare/types/addressing/__init__.py
+++ b/src/cloudflare/types/addressing/__init__.py
@@ -6,7 +6,6 @@
from .prefix_create_params import PrefixCreateParams as PrefixCreateParams
from .prefix_delete_params import PrefixDeleteParams as PrefixDeleteParams
from .service_list_response import ServiceListResponse as ServiceListResponse
-from .prefix_delete_response import PrefixDeleteResponse as PrefixDeleteResponse
from .address_map_edit_params import AddressMapEditParams as AddressMapEditParams
from .addressing_address_maps import AddressingAddressMaps as AddressingAddressMaps
from .address_map_get_response import AddressMapGetResponse as AddressMapGetResponse
@@ -15,5 +14,4 @@
from .address_map_delete_params import AddressMapDeleteParams as AddressMapDeleteParams
from .loa_document_create_params import LOADocumentCreateParams as LOADocumentCreateParams
from .address_map_create_response import AddressMapCreateResponse as AddressMapCreateResponse
-from .address_map_delete_response import AddressMapDeleteResponse as AddressMapDeleteResponse
from .loa_document_create_response import LOADocumentCreateResponse as LOADocumentCreateResponse
diff --git a/src/cloudflare/types/addressing/address_map_delete_response.py b/src/cloudflare/types/addressing/address_map_delete_response.py
deleted file mode 100644
index 57b879481e2..00000000000
--- a/src/cloudflare/types/addressing/address_map_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["AddressMapDeleteResponse"]
-
-AddressMapDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/address_maps/__init__.py b/src/cloudflare/types/addressing/address_maps/__init__.py
index 3ec4e9eda25..a9d27b6bf97 100644
--- a/src/cloudflare/types/addressing/address_maps/__init__.py
+++ b/src/cloudflare/types/addressing/address_maps/__init__.py
@@ -4,13 +4,7 @@
from .ip_delete_params import IPDeleteParams as IPDeleteParams
from .ip_update_params import IPUpdateParams as IPUpdateParams
-from .ip_delete_response import IPDeleteResponse as IPDeleteResponse
-from .ip_update_response import IPUpdateResponse as IPUpdateResponse
from .zone_delete_params import ZoneDeleteParams as ZoneDeleteParams
from .zone_update_params import ZoneUpdateParams as ZoneUpdateParams
-from .zone_delete_response import ZoneDeleteResponse as ZoneDeleteResponse
-from .zone_update_response import ZoneUpdateResponse as ZoneUpdateResponse
from .account_delete_params import AccountDeleteParams as AccountDeleteParams
from .account_update_params import AccountUpdateParams as AccountUpdateParams
-from .account_delete_response import AccountDeleteResponse as AccountDeleteResponse
-from .account_update_response import AccountUpdateResponse as AccountUpdateResponse
diff --git a/src/cloudflare/types/addressing/address_maps/account_delete_response.py b/src/cloudflare/types/addressing/address_maps/account_delete_response.py
deleted file mode 100644
index 3ddf76cafe9..00000000000
--- a/src/cloudflare/types/addressing/address_maps/account_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["AccountDeleteResponse"]
-
-AccountDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/address_maps/account_update_response.py b/src/cloudflare/types/addressing/address_maps/account_update_response.py
deleted file mode 100644
index 53831e97698..00000000000
--- a/src/cloudflare/types/addressing/address_maps/account_update_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["AccountUpdateResponse"]
-
-AccountUpdateResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/addressing/prefixes/bgp/__init__.py b/src/cloudflare/types/addressing/prefixes/bgp/__init__.py
index 6e1aa204e26..c5d887f81aa 100644
--- a/src/cloudflare/types/addressing/prefixes/bgp/__init__.py
+++ b/src/cloudflare/types/addressing/prefixes/bgp/__init__.py
@@ -7,6 +7,5 @@
from .status_get_response import StatusGetResponse as StatusGetResponse
from .status_edit_response import StatusEditResponse as StatusEditResponse
from .binding_create_params import BindingCreateParams as BindingCreateParams
-from .binding_delete_response import BindingDeleteResponse as BindingDeleteResponse
from .addressing_service_binding import AddressingServiceBinding as AddressingServiceBinding
from .addressing_ipam_bgp_prefixes import AddressingIpamBGPPrefixes as AddressingIpamBGPPrefixes
diff --git a/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py b/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py
deleted file mode 100644
index e2afa483e21..00000000000
--- a/src/cloudflare/types/addressing/prefixes/bgp/binding_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["BindingDeleteResponse"]
-
-BindingDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/alerting/__init__.py b/src/cloudflare/types/alerting/__init__.py
index 50de6d3c5e7..cd1516c9f63 100644
--- a/src/cloudflare/types/alerting/__init__.py
+++ b/src/cloudflare/types/alerting/__init__.py
@@ -8,6 +8,4 @@
from .policy_create_params import PolicyCreateParams as PolicyCreateParams
from .policy_update_params import PolicyUpdateParams as PolicyUpdateParams
from .policy_create_response import PolicyCreateResponse as PolicyCreateResponse
-from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse
from .policy_update_response import PolicyUpdateResponse as PolicyUpdateResponse
-from .available_alert_list_response import AvailableAlertListResponse as AvailableAlertListResponse
diff --git a/src/cloudflare/types/alerting/available_alert_list_response.py b/src/cloudflare/types/alerting/available_alert_list_response.py
deleted file mode 100644
index 10470fec71c..00000000000
--- a/src/cloudflare/types/alerting/available_alert_list_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["AvailableAlertListResponse"]
-
-AvailableAlertListResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/alerting/destinations/__init__.py b/src/cloudflare/types/alerting/destinations/__init__.py
index 720b22c588e..4b73d19b9a5 100644
--- a/src/cloudflare/types/alerting/destinations/__init__.py
+++ b/src/cloudflare/types/alerting/destinations/__init__.py
@@ -10,7 +10,5 @@
from .pagerduty_get_response import PagerdutyGetResponse as PagerdutyGetResponse
from .pagerduty_link_response import PagerdutyLinkResponse as PagerdutyLinkResponse
from .webhook_create_response import WebhookCreateResponse as WebhookCreateResponse
-from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse
from .webhook_update_response import WebhookUpdateResponse as WebhookUpdateResponse
from .pagerduty_create_response import PagerdutyCreateResponse as PagerdutyCreateResponse
-from .pagerduty_delete_response import PagerdutyDeleteResponse as PagerdutyDeleteResponse
diff --git a/src/cloudflare/types/alerting/destinations/webhook_delete_response.py b/src/cloudflare/types/alerting/destinations/webhook_delete_response.py
deleted file mode 100644
index 2869927bb58..00000000000
--- a/src/cloudflare/types/alerting/destinations/webhook_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["WebhookDeleteResponse"]
-
-WebhookDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/alerting/policy_delete_response.py b/src/cloudflare/types/alerting/policy_delete_response.py
deleted file mode 100644
index f211604e11c..00000000000
--- a/src/cloudflare/types/alerting/policy_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["PolicyDeleteResponse"]
-
-PolicyDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/cache/cache_reserve_clear_response.py b/src/cloudflare/types/cache/cache_reserve_clear_response.py
index 2673a64ba06..c68866deb75 100644
--- a/src/cloudflare/types/cache/cache_reserve_clear_response.py
+++ b/src/cloudflare/types/cache/cache_reserve_clear_response.py
@@ -4,13 +4,14 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef139
from ..._models import BaseModel
__all__ = ["CacheReserveClearResponse"]
class CacheReserveClearResponse(BaseModel):
- id: Literal["cache_reserve_clear"]
+ id: UnnamedSchemaRef139
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/cache_reserve_edit_response.py b/src/cloudflare/types/cache/cache_reserve_edit_response.py
index ac16cac20ce..f50a53b9842 100644
--- a/src/cloudflare/types/cache/cache_reserve_edit_response.py
+++ b/src/cloudflare/types/cache/cache_reserve_edit_response.py
@@ -4,13 +4,14 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef144
from ..._models import BaseModel
__all__ = ["CacheReserveEditResponse"]
class CacheReserveEditResponse(BaseModel):
- id: Literal["cache_reserve"]
+ id: UnnamedSchemaRef144
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/cache_reserve_get_response.py b/src/cloudflare/types/cache/cache_reserve_get_response.py
index e438bd1ba63..1257839c11a 100644
--- a/src/cloudflare/types/cache/cache_reserve_get_response.py
+++ b/src/cloudflare/types/cache/cache_reserve_get_response.py
@@ -4,13 +4,14 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef144
from ..._models import BaseModel
__all__ = ["CacheReserveGetResponse"]
class CacheReserveGetResponse(BaseModel):
- id: Literal["cache_reserve"]
+ id: UnnamedSchemaRef144
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/cache_reserve_status_response.py b/src/cloudflare/types/cache/cache_reserve_status_response.py
index 9aceb6d15fc..e2ab9aa39fa 100644
--- a/src/cloudflare/types/cache/cache_reserve_status_response.py
+++ b/src/cloudflare/types/cache/cache_reserve_status_response.py
@@ -4,13 +4,14 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef139
from ..._models import BaseModel
__all__ = ["CacheReserveStatusResponse"]
class CacheReserveStatusResponse(BaseModel):
- id: Literal["cache_reserve_clear"]
+ id: UnnamedSchemaRef139
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/cache_variants.py b/src/cloudflare/types/cache/cache_variants.py
index 0d23989e611..eb96aefc766 100644
--- a/src/cloudflare/types/cache/cache_variants.py
+++ b/src/cloudflare/types/cache/cache_variants.py
@@ -2,15 +2,15 @@
from typing import Optional
from datetime import datetime
-from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef151
from ..._models import BaseModel
__all__ = ["CacheVariants"]
class CacheVariants(BaseModel):
- id: Literal["variants"]
+ id: UnnamedSchemaRef151
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py b/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py
index 0de0911995c..e766960726a 100644
--- a/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py
+++ b/src/cloudflare/types/cache/regional_tiered_cache_edit_response.py
@@ -2,15 +2,15 @@
from typing import Optional
from datetime import datetime
-from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef140
from ..._models import BaseModel
__all__ = ["RegionalTieredCacheEditResponse", "Value"]
class Value(BaseModel):
- id: Literal["tc_regional"]
+ id: UnnamedSchemaRef140
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
@@ -18,7 +18,7 @@ class Value(BaseModel):
class RegionalTieredCacheEditResponse(BaseModel):
- id: Literal["tc_regional"]
+ id: UnnamedSchemaRef140
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/regional_tiered_cache_get_response.py b/src/cloudflare/types/cache/regional_tiered_cache_get_response.py
index 28123c3537f..5ba7f36e858 100644
--- a/src/cloudflare/types/cache/regional_tiered_cache_get_response.py
+++ b/src/cloudflare/types/cache/regional_tiered_cache_get_response.py
@@ -2,15 +2,15 @@
from typing import Optional
from datetime import datetime
-from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef140
from ..._models import BaseModel
__all__ = ["RegionalTieredCacheGetResponse", "Value"]
class Value(BaseModel):
- id: Literal["tc_regional"]
+ id: UnnamedSchemaRef140
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
@@ -18,7 +18,7 @@ class Value(BaseModel):
class RegionalTieredCacheGetResponse(BaseModel):
- id: Literal["tc_regional"]
+ id: UnnamedSchemaRef140
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/variant_edit_response.py b/src/cloudflare/types/cache/variant_edit_response.py
index a6e58fbc52c..5db000343b6 100644
--- a/src/cloudflare/types/cache/variant_edit_response.py
+++ b/src/cloudflare/types/cache/variant_edit_response.py
@@ -2,8 +2,8 @@
from typing import List, Optional
from datetime import datetime
-from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef151
from ..._models import BaseModel
__all__ = ["VariantEditResponse", "Value"]
@@ -78,7 +78,7 @@ class Value(BaseModel):
class VariantEditResponse(BaseModel):
- id: Literal["variants"]
+ id: UnnamedSchemaRef151
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/variant_get_response.py b/src/cloudflare/types/cache/variant_get_response.py
index faedee52e1c..4f6073a1b7f 100644
--- a/src/cloudflare/types/cache/variant_get_response.py
+++ b/src/cloudflare/types/cache/variant_get_response.py
@@ -2,8 +2,8 @@
from typing import List, Optional
from datetime import datetime
-from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef151
from ..._models import BaseModel
__all__ = ["VariantGetResponse", "Value"]
@@ -78,7 +78,7 @@ class Value(BaseModel):
class VariantGetResponse(BaseModel):
- id: Literal["variants"]
+ id: UnnamedSchemaRef151
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cloudforce_one/__init__.py b/src/cloudflare/types/cloudforce_one/__init__.py
index 0c910734870..91aa0651ad2 100644
--- a/src/cloudflare/types/cloudforce_one/__init__.py
+++ b/src/cloudflare/types/cloudforce_one/__init__.py
@@ -6,7 +6,6 @@
from .cloudforce_one_quota import CloudforceOneQuota as CloudforceOneQuota
from .request_create_params import RequestCreateParams as RequestCreateParams
from .request_update_params import RequestUpdateParams as RequestUpdateParams
-from .request_delete_response import RequestDeleteResponse as RequestDeleteResponse
from .cloudforce_one_request_item import CloudforceOneRequestItem as CloudforceOneRequestItem
from .cloudforce_one_request_types import CloudforceOneRequestTypes as CloudforceOneRequestTypes
from .cloudforce_one_request_constants import CloudforceOneRequestConstants as CloudforceOneRequestConstants
diff --git a/src/cloudflare/types/cloudforce_one/request_delete_response.py b/src/cloudflare/types/cloudforce_one/request_delete_response.py
deleted file mode 100644
index f6dca1edb3f..00000000000
--- a/src/cloudflare/types/cloudforce_one/request_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["RequestDeleteResponse"]
-
-RequestDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/cloudforce_one/requests/__init__.py b/src/cloudflare/types/cloudforce_one/requests/__init__.py
index 84181ca8d9e..e0b1c0a3abb 100644
--- a/src/cloudflare/types/cloudforce_one/requests/__init__.py
+++ b/src/cloudflare/types/cloudforce_one/requests/__init__.py
@@ -8,7 +8,5 @@
from .message_update_params import MessageUpdateParams as MessageUpdateParams
from .priority_create_params import PriorityCreateParams as PriorityCreateParams
from .priority_update_params import PriorityUpdateParams as PriorityUpdateParams
-from .message_delete_response import MessageDeleteResponse as MessageDeleteResponse
-from .priority_delete_response import PriorityDeleteResponse as PriorityDeleteResponse
from .cloudforce_one_priority_item import CloudforceOnePriorityItem as CloudforceOnePriorityItem
from .cloudforce_one_request_message_item import CloudforceOneRequestMessageItem as CloudforceOneRequestMessageItem
diff --git a/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py b/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py
deleted file mode 100644
index eaadbea2ab5..00000000000
--- a/src/cloudflare/types/cloudforce_one/requests/message_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["MessageDeleteResponse"]
-
-MessageDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py b/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py
deleted file mode 100644
index 60bd9aae8bd..00000000000
--- a/src/cloudflare/types/cloudforce_one/requests/priority_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["PriorityDeleteResponse"]
-
-PriorityDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/custom_certificate.py b/src/cloudflare/types/custom_certificate.py
index ec5edeb63a9..30c7a35085f 100644
--- a/src/cloudflare/types/custom_certificate.py
+++ b/src/cloudflare/types/custom_certificate.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from .shared import UnnamedSchemaRef78
from .._models import BaseModel
from .keyless_certificate_hostname import KeylessCertificateHostname
@@ -18,7 +19,7 @@ class CustomCertificate(BaseModel):
id: str
"""Identifier"""
- bundle_method: Literal["ubiquitous", "optimal", "force"]
+ bundle_method: UnnamedSchemaRef78
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
diff --git a/src/cloudflare/types/custom_certificate_create_params.py b/src/cloudflare/types/custom_certificate_create_params.py
index f517fc05ae5..a5b6dcfe1b3 100644
--- a/src/cloudflare/types/custom_certificate_create_params.py
+++ b/src/cloudflare/types/custom_certificate_create_params.py
@@ -4,6 +4,8 @@
from typing_extensions import Literal, Required, TypedDict
+from .shared import UnnamedSchemaRef78
+
__all__ = ["CustomCertificateCreateParams", "GeoRestrictions"]
@@ -17,7 +19,7 @@ class CustomCertificateCreateParams(TypedDict, total=False):
private_key: Required[str]
"""The zone's private key."""
- bundle_method: Literal["ubiquitous", "optimal", "force"]
+ bundle_method: UnnamedSchemaRef78
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
diff --git a/src/cloudflare/types/custom_certificate_edit_params.py b/src/cloudflare/types/custom_certificate_edit_params.py
index e6a3d9ab525..a2cade47043 100644
--- a/src/cloudflare/types/custom_certificate_edit_params.py
+++ b/src/cloudflare/types/custom_certificate_edit_params.py
@@ -4,6 +4,8 @@
from typing_extensions import Literal, Required, TypedDict
+from .shared import UnnamedSchemaRef78
+
__all__ = ["CustomCertificateEditParams", "GeoRestrictions"]
@@ -11,7 +13,7 @@ class CustomCertificateEditParams(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
- bundle_method: Literal["ubiquitous", "optimal", "force"]
+ bundle_method: UnnamedSchemaRef78
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
diff --git a/src/cloudflare/types/custom_hostname_create_params.py b/src/cloudflare/types/custom_hostname_create_params.py
index 31262f87b56..afad1b6ec3d 100644
--- a/src/cloudflare/types/custom_hostname_create_params.py
+++ b/src/cloudflare/types/custom_hostname_create_params.py
@@ -5,6 +5,8 @@
from typing import List
from typing_extensions import Literal, Required, TypedDict
+from .shared import UnnamedSchemaRef78, UnnamedSchemaRef81
+
__all__ = ["CustomHostnameCreateParams", "SSL", "SSLSettings", "CustomMetadata"]
@@ -29,7 +31,7 @@ class SSLSettings(TypedDict, total=False):
These ciphers must be in the BoringSSL format.
"""
- early_hints: Literal["on", "off"]
+ early_hints: UnnamedSchemaRef81
"""Whether or not Early Hints is enabled."""
http2: Literal["on", "off"]
@@ -43,7 +45,7 @@ class SSLSettings(TypedDict, total=False):
class SSL(TypedDict, total=False):
- bundle_method: Literal["ubiquitous", "optimal", "force"]
+ bundle_method: UnnamedSchemaRef78
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
diff --git a/src/cloudflare/types/custom_hostname_create_response.py b/src/cloudflare/types/custom_hostname_create_response.py
index 73608df0ee5..e9933097eb6 100644
--- a/src/cloudflare/types/custom_hostname_create_response.py
+++ b/src/cloudflare/types/custom_hostname_create_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from .shared import UnnamedSchemaRef78, UnnamedSchemaRef79, UnnamedSchemaRef80, UnnamedSchemaRef81
from .._models import BaseModel
__all__ = ["CustomHostnameCreateResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"]
@@ -16,7 +17,7 @@ class SSLSettings(BaseModel):
These ciphers must be in the BoringSSL format.
"""
- early_hints: Optional[Literal["on", "off"]] = None
+ early_hints: Optional[UnnamedSchemaRef81] = None
"""Whether or not Early Hints is enabled."""
http2: Optional[Literal["on", "off"]] = None
@@ -67,7 +68,7 @@ class SSL(BaseModel):
id: Optional[str] = None
"""Custom hostname SSL identifier tag."""
- bundle_method: Optional[Literal["ubiquitous", "optimal", "force"]] = None
+ bundle_method: Optional[UnnamedSchemaRef78] = None
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
@@ -96,7 +97,7 @@ class SSL(BaseModel):
issuer: Optional[str] = None
"""The issuer on a custom uploaded certificate."""
- method: Optional[Literal["http", "txt", "email"]] = None
+ method: Optional[UnnamedSchemaRef79] = None
"""Domain control validation (DCV) method used for this hostname."""
serial_number: Optional[str] = None
@@ -135,7 +136,7 @@ class SSL(BaseModel):
] = None
"""Status of the hostname's SSL certificates."""
- type: Optional[Literal["dv"]] = None
+ type: Optional[UnnamedSchemaRef80] = None
"""Level of validation to be used for this hostname.
Domain validation (dv) must be used.
diff --git a/src/cloudflare/types/custom_hostname_edit_params.py b/src/cloudflare/types/custom_hostname_edit_params.py
index e2218a1d971..f0fcf8cc9e3 100644
--- a/src/cloudflare/types/custom_hostname_edit_params.py
+++ b/src/cloudflare/types/custom_hostname_edit_params.py
@@ -5,6 +5,8 @@
from typing import List
from typing_extensions import Literal, Required, TypedDict
+from .shared import UnnamedSchemaRef78, UnnamedSchemaRef81
+
__all__ = ["CustomHostnameEditParams", "CustomMetadata", "SSL", "SSLSettings"]
@@ -46,7 +48,7 @@ class SSLSettings(TypedDict, total=False):
These ciphers must be in the BoringSSL format.
"""
- early_hints: Literal["on", "off"]
+ early_hints: UnnamedSchemaRef81
"""Whether or not Early Hints is enabled."""
http2: Literal["on", "off"]
@@ -60,7 +62,7 @@ class SSLSettings(TypedDict, total=False):
class SSL(TypedDict, total=False):
- bundle_method: Literal["ubiquitous", "optimal", "force"]
+ bundle_method: UnnamedSchemaRef78
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
diff --git a/src/cloudflare/types/custom_hostname_edit_response.py b/src/cloudflare/types/custom_hostname_edit_response.py
index 5d7176fbdcf..75c6d69f9d7 100644
--- a/src/cloudflare/types/custom_hostname_edit_response.py
+++ b/src/cloudflare/types/custom_hostname_edit_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from .shared import UnnamedSchemaRef78, UnnamedSchemaRef79, UnnamedSchemaRef80, UnnamedSchemaRef81
from .._models import BaseModel
__all__ = ["CustomHostnameEditResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"]
@@ -16,7 +17,7 @@ class SSLSettings(BaseModel):
These ciphers must be in the BoringSSL format.
"""
- early_hints: Optional[Literal["on", "off"]] = None
+ early_hints: Optional[UnnamedSchemaRef81] = None
"""Whether or not Early Hints is enabled."""
http2: Optional[Literal["on", "off"]] = None
@@ -67,7 +68,7 @@ class SSL(BaseModel):
id: Optional[str] = None
"""Custom hostname SSL identifier tag."""
- bundle_method: Optional[Literal["ubiquitous", "optimal", "force"]] = None
+ bundle_method: Optional[UnnamedSchemaRef78] = None
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
@@ -96,7 +97,7 @@ class SSL(BaseModel):
issuer: Optional[str] = None
"""The issuer on a custom uploaded certificate."""
- method: Optional[Literal["http", "txt", "email"]] = None
+ method: Optional[UnnamedSchemaRef79] = None
"""Domain control validation (DCV) method used for this hostname."""
serial_number: Optional[str] = None
@@ -135,7 +136,7 @@ class SSL(BaseModel):
] = None
"""Status of the hostname's SSL certificates."""
- type: Optional[Literal["dv"]] = None
+ type: Optional[UnnamedSchemaRef80] = None
"""Level of validation to be used for this hostname.
Domain validation (dv) must be used.
diff --git a/src/cloudflare/types/custom_hostname_get_response.py b/src/cloudflare/types/custom_hostname_get_response.py
index 8ab02d4ba45..0ea427a9274 100644
--- a/src/cloudflare/types/custom_hostname_get_response.py
+++ b/src/cloudflare/types/custom_hostname_get_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from .shared import UnnamedSchemaRef78, UnnamedSchemaRef79, UnnamedSchemaRef80, UnnamedSchemaRef81
from .._models import BaseModel
__all__ = ["CustomHostnameGetResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"]
@@ -16,7 +17,7 @@ class SSLSettings(BaseModel):
These ciphers must be in the BoringSSL format.
"""
- early_hints: Optional[Literal["on", "off"]] = None
+ early_hints: Optional[UnnamedSchemaRef81] = None
"""Whether or not Early Hints is enabled."""
http2: Optional[Literal["on", "off"]] = None
@@ -67,7 +68,7 @@ class SSL(BaseModel):
id: Optional[str] = None
"""Custom hostname SSL identifier tag."""
- bundle_method: Optional[Literal["ubiquitous", "optimal", "force"]] = None
+ bundle_method: Optional[UnnamedSchemaRef78] = None
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
@@ -96,7 +97,7 @@ class SSL(BaseModel):
issuer: Optional[str] = None
"""The issuer on a custom uploaded certificate."""
- method: Optional[Literal["http", "txt", "email"]] = None
+ method: Optional[UnnamedSchemaRef79] = None
"""Domain control validation (DCV) method used for this hostname."""
serial_number: Optional[str] = None
@@ -135,7 +136,7 @@ class SSL(BaseModel):
] = None
"""Status of the hostname's SSL certificates."""
- type: Optional[Literal["dv"]] = None
+ type: Optional[UnnamedSchemaRef80] = None
"""Level of validation to be used for this hostname.
Domain validation (dv) must be used.
diff --git a/src/cloudflare/types/custom_hostname_list_response.py b/src/cloudflare/types/custom_hostname_list_response.py
index a010884bd61..ddb6303e9c2 100644
--- a/src/cloudflare/types/custom_hostname_list_response.py
+++ b/src/cloudflare/types/custom_hostname_list_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from .shared import UnnamedSchemaRef78, UnnamedSchemaRef79, UnnamedSchemaRef80, UnnamedSchemaRef81
from .._models import BaseModel
__all__ = ["CustomHostnameListResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"]
@@ -16,7 +17,7 @@ class SSLSettings(BaseModel):
These ciphers must be in the BoringSSL format.
"""
- early_hints: Optional[Literal["on", "off"]] = None
+ early_hints: Optional[UnnamedSchemaRef81] = None
"""Whether or not Early Hints is enabled."""
http2: Optional[Literal["on", "off"]] = None
@@ -67,7 +68,7 @@ class SSL(BaseModel):
id: Optional[str] = None
"""Custom hostname SSL identifier tag."""
- bundle_method: Optional[Literal["ubiquitous", "optimal", "force"]] = None
+ bundle_method: Optional[UnnamedSchemaRef78] = None
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
@@ -96,7 +97,7 @@ class SSL(BaseModel):
issuer: Optional[str] = None
"""The issuer on a custom uploaded certificate."""
- method: Optional[Literal["http", "txt", "email"]] = None
+ method: Optional[UnnamedSchemaRef79] = None
"""Domain control validation (DCV) method used for this hostname."""
serial_number: Optional[str] = None
@@ -135,7 +136,7 @@ class SSL(BaseModel):
] = None
"""Status of the hostname's SSL certificates."""
- type: Optional[Literal["dv"]] = None
+ type: Optional[UnnamedSchemaRef80] = None
"""Level of validation to be used for this hostname.
Domain validation (dv) must be used.
diff --git a/src/cloudflare/types/d1/__init__.py b/src/cloudflare/types/d1/__init__.py
index 6331e16c24f..a442960eab2 100644
--- a/src/cloudflare/types/d1/__init__.py
+++ b/src/cloudflare/types/d1/__init__.py
@@ -9,4 +9,3 @@
from .database_query_params import DatabaseQueryParams as DatabaseQueryParams
from .database_create_params import DatabaseCreateParams as DatabaseCreateParams
from .database_query_response import DatabaseQueryResponse as DatabaseQueryResponse
-from .database_delete_response import DatabaseDeleteResponse as DatabaseDeleteResponse
diff --git a/src/cloudflare/types/d1/database_delete_response.py b/src/cloudflare/types/d1/database_delete_response.py
deleted file mode 100644
index 0d3afb4e896..00000000000
--- a/src/cloudflare/types/d1/database_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["DatabaseDeleteResponse"]
-
-DatabaseDeleteResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/dns/analytics/dns_analytics_report.py b/src/cloudflare/types/dns/analytics/dns_analytics_report.py
index 2dfde2775d2..969957e441b 100644
--- a/src/cloudflare/types/dns/analytics/dns_analytics_report.py
+++ b/src/cloudflare/types/dns/analytics/dns_analytics_report.py
@@ -3,20 +3,10 @@
from typing import List, Optional
from datetime import datetime
+from ...shared import UnnamedSchemaRef22
from ...._models import BaseModel
-__all__ = ["DNSAnalyticsReport", "Data", "Query"]
-
-
-class Data(BaseModel):
- dimensions: List[str]
- """
- Array of dimension values, representing the combination of dimension values
- corresponding to this row.
- """
-
- metrics: List[float]
- """Array with one item per requested metric. Each item is a single value."""
+__all__ = ["DNSAnalyticsReport", "Query"]
class Query(BaseModel):
@@ -46,7 +36,7 @@ class Query(BaseModel):
class DNSAnalyticsReport(BaseModel):
- data: List[Data]
+ data: List[UnnamedSchemaRef22]
"""Array with one row per combination of dimension values."""
data_lag: float
diff --git a/src/cloudflare/types/dns/analytics/reports/dns_analytics_report_by_time.py b/src/cloudflare/types/dns/analytics/reports/dns_analytics_report_by_time.py
index 460a19f5ffe..4401f12e7b1 100644
--- a/src/cloudflare/types/dns/analytics/reports/dns_analytics_report_by_time.py
+++ b/src/cloudflare/types/dns/analytics/reports/dns_analytics_report_by_time.py
@@ -1,12 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List, Optional
+from typing import List
from datetime import datetime
-from typing_extensions import Literal
+from ....shared import UnnamedSchemaRef23, UnnamedSchemaRef24
from ....._models import BaseModel
-__all__ = ["DNSAnalyticsReportByTime", "Data", "Query"]
+__all__ = ["DNSAnalyticsReportByTime", "Data"]
class Data(BaseModel):
@@ -16,42 +16,13 @@ class Data(BaseModel):
corresponding to this row.
"""
- metrics: List[List[object]]
+ metrics: List[UnnamedSchemaRef23]
"""Array with one item per requested metric.
Each item is an array of values, broken down by time interval.
"""
-class Query(BaseModel):
- dimensions: List[str]
- """Array of dimension names."""
-
- limit: int
- """Limit number of returned metrics."""
-
- metrics: List[str]
- """Array of metric names."""
-
- since: datetime
- """Start date and time of requesting data period in ISO 8601 format."""
-
- time_delta: Literal["all", "auto", "year", "quarter", "month", "week", "day", "hour", "dekaminute", "minute"]
- """Unit of time to group data by."""
-
- until: datetime
- """End date and time of requesting data period in ISO 8601 format."""
-
- filters: Optional[str] = None
- """Segmentation filter in 'attribute operator value' format."""
-
- sort: Optional[List[str]] = None
- """
- Array of dimensions to sort by, where each dimension may be prefixed by -
- (descending) or + (ascending).
- """
-
-
class DNSAnalyticsReportByTime(BaseModel):
data: List[Data]
"""Array with one row per combination of dimension values."""
@@ -74,7 +45,7 @@ class DNSAnalyticsReportByTime(BaseModel):
Currently always an empty object.
"""
- query: Query
+ query: UnnamedSchemaRef24
rows: float
"""Total number of rows in the result."""
diff --git a/src/cloudflare/types/dns/dns_record.py b/src/cloudflare/types/dns/dns_record.py
index d2717cee112..6c13e4dc685 100644
--- a/src/cloudflare/types/dns/dns_record.py
+++ b/src/cloudflare/types/dns/dns_record.py
@@ -4,78 +4,48 @@
from datetime import datetime
from typing_extensions import Literal, Annotated
+from ..shared import UnnamedSchemaRef162
from ..._utils import PropertyInfo
from ..._models import BaseModel
__all__ = [
"DNSRecord",
"A",
- "AMeta",
"AAAA",
- "AAAAMeta",
"CAA",
"CAAData",
- "CAAMeta",
"CERT",
"CERTData",
- "CERTMeta",
"CNAME",
- "CNAMEMeta",
"DNSKEY",
"DNSKEYData",
- "DNSKEYMeta",
"DS",
"DSData",
- "DSMeta",
"HTTPS",
"HTTPSData",
- "HTTPSMeta",
"LOC",
"LOCData",
- "LOCMeta",
"MX",
- "MXMeta",
"NAPTR",
"NAPTRData",
- "NAPTRMeta",
"NS",
- "NSMeta",
"PTR",
- "PTRMeta",
"SMIMEA",
"SMIMEAData",
- "SMIMEAMeta",
"SRV",
"SRVData",
- "SRVMeta",
"SSHFP",
"SSHFPData",
- "SSHFPMeta",
"SVCB",
"SVCBData",
- "SVCBMeta",
"TLSA",
"TLSAData",
- "TLSAMeta",
"TXT",
- "TXTMeta",
"URI",
"URIData",
- "URIMeta",
]
-class AMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class A(BaseModel):
content: str
"""A valid IPv4 address."""
@@ -104,7 +74,7 @@ class A(BaseModel):
Cloudflare).
"""
- meta: Optional[AMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -136,17 +106,6 @@ class A(BaseModel):
"""The domain of the record."""
-class AAAAMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class AAAA(BaseModel):
content: str
"""A valid IPv6 address."""
@@ -175,7 +134,7 @@ class AAAA(BaseModel):
Cloudflare).
"""
- meta: Optional[AAAAMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -218,17 +177,6 @@ class CAAData(BaseModel):
"""Value of the record. This field's semantics depend on the chosen tag."""
-class CAAMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class CAA(BaseModel):
data: CAAData
"""Components of a CAA record."""
@@ -260,7 +208,7 @@ class CAA(BaseModel):
Cloudflare).
"""
- meta: Optional[CAAMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -300,17 +248,6 @@ class CERTData(BaseModel):
"""Type."""
-class CERTMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class CERT(BaseModel):
data: CERTData
"""Components of a CERT record."""
@@ -342,7 +279,7 @@ class CERT(BaseModel):
Cloudflare).
"""
- meta: Optional[CERTMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -368,17 +305,6 @@ class CERT(BaseModel):
"""The domain of the record."""
-class CNAMEMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class CNAME(BaseModel):
content: object
"""A valid hostname. Must not match the record's name."""
@@ -407,7 +333,7 @@ class CNAME(BaseModel):
Cloudflare).
"""
- meta: Optional[CNAMEMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -453,17 +379,6 @@ class DNSKEYData(BaseModel):
"""Public Key."""
-class DNSKEYMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class DNSKEY(BaseModel):
data: DNSKEYData
"""Components of a DNSKEY record."""
@@ -495,7 +410,7 @@ class DNSKEY(BaseModel):
Cloudflare).
"""
- meta: Optional[DNSKEYMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -535,17 +450,6 @@ class DSData(BaseModel):
"""Key Tag."""
-class DSMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class DS(BaseModel):
data: DSData
"""Components of a DS record."""
@@ -577,7 +481,7 @@ class DS(BaseModel):
Cloudflare).
"""
- meta: Optional[DSMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -614,17 +518,6 @@ class HTTPSData(BaseModel):
"""value."""
-class HTTPSMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class HTTPS(BaseModel):
data: HTTPSData
"""Components of a HTTPS record."""
@@ -656,7 +549,7 @@ class HTTPS(BaseModel):
Cloudflare).
"""
- meta: Optional[HTTPSMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -720,17 +613,6 @@ class LOCData(BaseModel):
"""Size of location in meters."""
-class LOCMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class LOC(BaseModel):
data: LOCData
"""Components of a LOC record."""
@@ -762,7 +644,7 @@ class LOC(BaseModel):
Cloudflare).
"""
- meta: Optional[LOCMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -788,17 +670,6 @@ class LOC(BaseModel):
"""The domain of the record."""
-class MXMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class MX(BaseModel):
content: str
"""A valid mail server hostname."""
@@ -833,7 +704,7 @@ class MX(BaseModel):
Cloudflare).
"""
- meta: Optional[MXMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -879,17 +750,6 @@ class NAPTRData(BaseModel):
"""Service."""
-class NAPTRMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class NAPTR(BaseModel):
data: NAPTRData
"""Components of a NAPTR record."""
@@ -921,7 +781,7 @@ class NAPTR(BaseModel):
Cloudflare).
"""
- meta: Optional[NAPTRMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -947,17 +807,6 @@ class NAPTR(BaseModel):
"""The domain of the record."""
-class NSMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class NS(BaseModel):
content: str
"""A valid name server host name."""
@@ -986,7 +835,7 @@ class NS(BaseModel):
Cloudflare).
"""
- meta: Optional[NSMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -1012,17 +861,6 @@ class NS(BaseModel):
"""The domain of the record."""
-class PTRMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class PTR(BaseModel):
content: str
"""Domain name pointing to the address."""
@@ -1051,7 +889,7 @@ class PTR(BaseModel):
Cloudflare).
"""
- meta: Optional[PTRMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -1091,17 +929,6 @@ class SMIMEAData(BaseModel):
"""Usage."""
-class SMIMEAMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class SMIMEA(BaseModel):
data: SMIMEAData
"""Components of a SMIMEA record."""
@@ -1133,7 +960,7 @@ class SMIMEA(BaseModel):
Cloudflare).
"""
- meta: Optional[SMIMEAMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -1198,17 +1025,6 @@ class SRVData(BaseModel):
"""The record weight."""
-class SRVMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class SRV(BaseModel):
data: SRVData
"""Components of a SRV record."""
@@ -1247,7 +1063,7 @@ class SRV(BaseModel):
Cloudflare).
"""
- meta: Optional[SRVMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -1284,17 +1100,6 @@ class SSHFPData(BaseModel):
"""type."""
-class SSHFPMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class SSHFP(BaseModel):
data: SSHFPData
"""Components of a SSHFP record."""
@@ -1326,7 +1131,7 @@ class SSHFP(BaseModel):
Cloudflare).
"""
- meta: Optional[SSHFPMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -1363,17 +1168,6 @@ class SVCBData(BaseModel):
"""value."""
-class SVCBMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class SVCB(BaseModel):
data: SVCBData
"""Components of a SVCB record."""
@@ -1405,7 +1199,7 @@ class SVCB(BaseModel):
Cloudflare).
"""
- meta: Optional[SVCBMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -1445,17 +1239,6 @@ class TLSAData(BaseModel):
"""Usage."""
-class TLSAMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class TLSA(BaseModel):
data: TLSAData
"""Components of a TLSA record."""
@@ -1487,7 +1270,7 @@ class TLSA(BaseModel):
Cloudflare).
"""
- meta: Optional[TLSAMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -1513,17 +1296,6 @@ class TLSA(BaseModel):
"""The domain of the record."""
-class TXTMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class TXT(BaseModel):
content: str
"""Text content for the record."""
@@ -1552,7 +1324,7 @@ class TXT(BaseModel):
Cloudflare).
"""
- meta: Optional[TXTMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
@@ -1586,17 +1358,6 @@ class URIData(BaseModel):
"""The record weight."""
-class URIMeta(BaseModel):
- auto_added: Optional[bool] = None
- """
- Will exist if Cloudflare automatically added this DNS record during initial
- setup.
- """
-
- source: Optional[str] = None
- """Where the record originated from."""
-
-
class URI(BaseModel):
data: URIData
"""Components of a URI record."""
@@ -1634,7 +1395,7 @@ class URI(BaseModel):
Cloudflare).
"""
- meta: Optional[URIMeta] = None
+ meta: Optional[UnnamedSchemaRef162] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dnssec_delete_response.py b/src/cloudflare/types/dnssec_delete_response.py
deleted file mode 100644
index cf05605b328..00000000000
--- a/src/cloudflare/types/dnssec_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["DNSSECDeleteResponse"]
-
-DNSSECDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/firewall/__init__.py b/src/cloudflare/types/firewall/__init__.py
index bc5028dedaa..a32dc468920 100644
--- a/src/cloudflare/types/firewall/__init__.py
+++ b/src/cloudflare/types/firewall/__init__.py
@@ -13,7 +13,6 @@
from .firewall_filter_rule import FirewallFilterRule as FirewallFilterRule
from .lockdown_list_params import LockdownListParams as LockdownListParams
from .rule_create_response import RuleCreateResponse as RuleCreateResponse
-from .ua_rule_get_response import UARuleGetResponse as UARuleGetResponse
from .ua_rule_create_params import UARuleCreateParams as UARuleCreateParams
from .ua_rule_delete_params import UARuleDeleteParams as UARuleDeleteParams
from .ua_rule_list_response import UARuleListResponse as UARuleListResponse
@@ -24,13 +23,8 @@
from .lockdown_update_params import LockdownUpdateParams as LockdownUpdateParams
from .access_rule_edit_params import AccessRuleEditParams as AccessRuleEditParams
from .access_rule_list_params import AccessRuleListParams as AccessRuleListParams
-from .ua_rule_create_response import UARuleCreateResponse as UARuleCreateResponse
from .ua_rule_delete_response import UARuleDeleteResponse as UARuleDeleteResponse
-from .ua_rule_update_response import UARuleUpdateResponse as UARuleUpdateResponse
-from .access_rule_get_response import AccessRuleGetResponse as AccessRuleGetResponse
from .lockdown_delete_response import LockdownDeleteResponse as LockdownDeleteResponse
from .access_rule_create_params import AccessRuleCreateParams as AccessRuleCreateParams
from .access_rule_delete_params import AccessRuleDeleteParams as AccessRuleDeleteParams
-from .access_rule_edit_response import AccessRuleEditResponse as AccessRuleEditResponse
-from .access_rule_create_response import AccessRuleCreateResponse as AccessRuleCreateResponse
from .access_rule_delete_response import AccessRuleDeleteResponse as AccessRuleDeleteResponse
diff --git a/src/cloudflare/types/firewall/access_rule_create_response.py b/src/cloudflare/types/firewall/access_rule_create_response.py
deleted file mode 100644
index d68421c6413..00000000000
--- a/src/cloudflare/types/firewall/access_rule_create_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["AccessRuleCreateResponse"]
-
-AccessRuleCreateResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/firewall/access_rule_edit_response.py b/src/cloudflare/types/firewall/access_rule_edit_response.py
deleted file mode 100644
index ca5ae10863a..00000000000
--- a/src/cloudflare/types/firewall/access_rule_edit_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["AccessRuleEditResponse"]
-
-AccessRuleEditResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/firewall/access_rule_get_response.py b/src/cloudflare/types/firewall/access_rule_get_response.py
deleted file mode 100644
index a81cdbb8fa3..00000000000
--- a/src/cloudflare/types/firewall/access_rule_get_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["AccessRuleGetResponse"]
-
-AccessRuleGetResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/firewall/firewall_filter_rule.py b/src/cloudflare/types/firewall/firewall_filter_rule.py
index 6c08cb85929..f65fd380ed7 100644
--- a/src/cloudflare/types/firewall/firewall_filter_rule.py
+++ b/src/cloudflare/types/firewall/firewall_filter_rule.py
@@ -1,23 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List, Union, Optional
+from typing import List, Optional
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef107
from ..._models import BaseModel
-from ..firewall_filter import FirewallFilter
-__all__ = ["FirewallFilterRule", "Filter", "FilterLegacyJhsDeletedFilter"]
-
-
-class FilterLegacyJhsDeletedFilter(BaseModel):
- id: str
- """The unique identifier of the filter."""
-
- deleted: bool
- """When true, indicates that the firewall rule was deleted."""
-
-
-Filter = Union[FirewallFilter, FilterLegacyJhsDeletedFilter]
+__all__ = ["FirewallFilterRule"]
class FirewallFilterRule(BaseModel):
@@ -35,7 +24,7 @@ class FirewallFilterRule(BaseModel):
description: Optional[str] = None
"""An informative summary of the firewall rule."""
- filter: Optional[Filter] = None
+ filter: Optional[UnnamedSchemaRef107] = None
paused: Optional[bool] = None
"""When true, indicates that the firewall rule is currently paused."""
diff --git a/src/cloudflare/types/firewall/ua_rule_create_response.py b/src/cloudflare/types/firewall/ua_rule_create_response.py
deleted file mode 100644
index dd128577d6f..00000000000
--- a/src/cloudflare/types/firewall/ua_rule_create_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["UARuleCreateResponse"]
-
-UARuleCreateResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/firewall/ua_rule_get_response.py b/src/cloudflare/types/firewall/ua_rule_get_response.py
deleted file mode 100644
index c1fbd966332..00000000000
--- a/src/cloudflare/types/firewall/ua_rule_get_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["UARuleGetResponse"]
-
-UARuleGetResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/firewall/ua_rule_update_response.py b/src/cloudflare/types/firewall/ua_rule_update_response.py
deleted file mode 100644
index fde2e2d7b60..00000000000
--- a/src/cloudflare/types/firewall/ua_rule_update_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["UARuleUpdateResponse"]
-
-UARuleUpdateResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/firewall/waf/package_get_response.py b/src/cloudflare/types/firewall/waf/package_get_response.py
index bfd6ecb7e43..facfc2433a2 100644
--- a/src/cloudflare/types/firewall/waf/package_get_response.py
+++ b/src/cloudflare/types/firewall/waf/package_get_response.py
@@ -3,33 +3,16 @@
from typing import List, Union, Optional
from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef172
from ...._models import BaseModel
-__all__ = [
- "PackageGetResponse",
- "LegacyJhsAPIResponseSingle",
- "LegacyJhsAPIResponseSingleError",
- "LegacyJhsAPIResponseSingleMessage",
- "Result",
-]
-
-
-class LegacyJhsAPIResponseSingleError(BaseModel):
- code: int
-
- message: str
-
-
-class LegacyJhsAPIResponseSingleMessage(BaseModel):
- code: int
-
- message: str
+__all__ = ["PackageGetResponse", "LegacyJhsAPIResponseSingle", "Result"]
class LegacyJhsAPIResponseSingle(BaseModel):
- errors: List[LegacyJhsAPIResponseSingleError]
+ errors: List[UnnamedSchemaRef172]
- messages: List[LegacyJhsAPIResponseSingleMessage]
+ messages: List[UnnamedSchemaRef172]
result: Union[str, object, None] = None
diff --git a/src/cloudflare/types/firewall/waf/package_list_response.py b/src/cloudflare/types/firewall/waf/package_list_response.py
index 407cdf602c0..6cb67850c4b 100644
--- a/src/cloudflare/types/firewall/waf/package_list_response.py
+++ b/src/cloudflare/types/firewall/waf/package_list_response.py
@@ -3,13 +3,12 @@
from typing import List, Union, Optional
from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef167, UnnamedSchemaRef172
from ...._models import BaseModel
__all__ = [
"PackageListResponse",
"LegacyJhsAPIResponseCollection",
- "LegacyJhsAPIResponseCollectionError",
- "LegacyJhsAPIResponseCollectionMessage",
"LegacyJhsAPIResponseCollectionResultInfo",
"Result",
"ResultResult",
@@ -18,18 +17,6 @@
]
-class LegacyJhsAPIResponseCollectionError(BaseModel):
- code: int
-
- message: str
-
-
-class LegacyJhsAPIResponseCollectionMessage(BaseModel):
- code: int
-
- message: str
-
-
class LegacyJhsAPIResponseCollectionResultInfo(BaseModel):
count: Optional[float] = None
"""Total number of results for the requested service"""
@@ -45,11 +32,11 @@ class LegacyJhsAPIResponseCollectionResultInfo(BaseModel):
class LegacyJhsAPIResponseCollection(BaseModel):
- errors: List[LegacyJhsAPIResponseCollectionError]
+ errors: List[UnnamedSchemaRef172]
- messages: List[LegacyJhsAPIResponseCollectionMessage]
+ messages: List[UnnamedSchemaRef172]
- result: Union[List[object], str, object, None] = None
+ result: Optional[UnnamedSchemaRef167] = None
success: Literal[True]
"""Whether the API call was successful"""
diff --git a/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py b/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py
index 3adf633f411..3d2079adcaf 100644
--- a/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py
+++ b/src/cloudflare/types/firewall/waf/packages/rule_edit_response.py
@@ -1,29 +1,19 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List, Union, Optional
+from typing import List, Union
from typing_extensions import Literal
+from ....shared import UnnamedSchemaRef120
from ....._models import BaseModel
__all__ = [
"RuleEditResponse",
"WAFManagedRulesAnomalyRule",
- "WAFManagedRulesAnomalyRuleGroup",
"WAFManagedRulesTraditionalDenyRule",
- "WAFManagedRulesTraditionalDenyRuleGroup",
"WAFManagedRulesTraditionalAllowRule",
- "WAFManagedRulesTraditionalAllowRuleGroup",
]
-class WAFManagedRulesAnomalyRuleGroup(BaseModel):
- id: Optional[str] = None
- """The unique identifier of the rule group."""
-
- name: Optional[str] = None
- """The name of the rule group."""
-
-
class WAFManagedRulesAnomalyRule(BaseModel):
id: str
"""The unique identifier of the WAF rule."""
@@ -37,7 +27,7 @@ class WAFManagedRulesAnomalyRule(BaseModel):
description: str
"""The public description of the WAF rule."""
- group: WAFManagedRulesAnomalyRuleGroup
+ group: UnnamedSchemaRef120
"""The rule group to which the current WAF rule belongs."""
mode: Literal["on", "off"]
@@ -53,14 +43,6 @@ class WAFManagedRulesAnomalyRule(BaseModel):
"""The order in which the individual WAF rule is executed within its rule group."""
-class WAFManagedRulesTraditionalDenyRuleGroup(BaseModel):
- id: Optional[str] = None
- """The unique identifier of the rule group."""
-
- name: Optional[str] = None
- """The name of the rule group."""
-
-
class WAFManagedRulesTraditionalDenyRule(BaseModel):
id: str
"""The unique identifier of the WAF rule."""
@@ -74,7 +56,7 @@ class WAFManagedRulesTraditionalDenyRule(BaseModel):
description: str
"""The public description of the WAF rule."""
- group: WAFManagedRulesTraditionalDenyRuleGroup
+ group: UnnamedSchemaRef120
"""The rule group to which the current WAF rule belongs."""
mode: Literal["default", "disable", "simulate", "block", "challenge"]
@@ -90,14 +72,6 @@ class WAFManagedRulesTraditionalDenyRule(BaseModel):
"""The order in which the individual WAF rule is executed within its rule group."""
-class WAFManagedRulesTraditionalAllowRuleGroup(BaseModel):
- id: Optional[str] = None
- """The unique identifier of the rule group."""
-
- name: Optional[str] = None
- """The name of the rule group."""
-
-
class WAFManagedRulesTraditionalAllowRule(BaseModel):
id: str
"""The unique identifier of the WAF rule."""
@@ -110,7 +84,7 @@ class WAFManagedRulesTraditionalAllowRule(BaseModel):
description: str
"""The public description of the WAF rule."""
- group: WAFManagedRulesTraditionalAllowRuleGroup
+ group: UnnamedSchemaRef120
"""The rule group to which the current WAF rule belongs."""
mode: Literal["on", "off"]
diff --git a/src/cloudflare/types/firewall/waf/packages/waf_managed_rules_rule.py b/src/cloudflare/types/firewall/waf/packages/waf_managed_rules_rule.py
index 2ce6a915be2..7de69993662 100644
--- a/src/cloudflare/types/firewall/waf/packages/waf_managed_rules_rule.py
+++ b/src/cloudflare/types/firewall/waf/packages/waf_managed_rules_rule.py
@@ -1,29 +1,19 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List, Union, Optional
+from typing import List, Union
from typing_extensions import Literal
+from ....shared import UnnamedSchemaRef120
from ....._models import BaseModel
__all__ = [
"WAFManagedRulesRule",
"WAFManagedRulesAnomalyRule",
- "WAFManagedRulesAnomalyRuleGroup",
"WAFManagedRulesTraditionalDenyRule",
- "WAFManagedRulesTraditionalDenyRuleGroup",
"WAFManagedRulesTraditionalAllowRule",
- "WAFManagedRulesTraditionalAllowRuleGroup",
]
-class WAFManagedRulesAnomalyRuleGroup(BaseModel):
- id: Optional[str] = None
- """The unique identifier of the rule group."""
-
- name: Optional[str] = None
- """The name of the rule group."""
-
-
class WAFManagedRulesAnomalyRule(BaseModel):
id: str
"""The unique identifier of the WAF rule."""
@@ -37,7 +27,7 @@ class WAFManagedRulesAnomalyRule(BaseModel):
description: str
"""The public description of the WAF rule."""
- group: WAFManagedRulesAnomalyRuleGroup
+ group: UnnamedSchemaRef120
"""The rule group to which the current WAF rule belongs."""
mode: Literal["on", "off"]
@@ -53,14 +43,6 @@ class WAFManagedRulesAnomalyRule(BaseModel):
"""The order in which the individual WAF rule is executed within its rule group."""
-class WAFManagedRulesTraditionalDenyRuleGroup(BaseModel):
- id: Optional[str] = None
- """The unique identifier of the rule group."""
-
- name: Optional[str] = None
- """The name of the rule group."""
-
-
class WAFManagedRulesTraditionalDenyRule(BaseModel):
id: str
"""The unique identifier of the WAF rule."""
@@ -74,7 +56,7 @@ class WAFManagedRulesTraditionalDenyRule(BaseModel):
description: str
"""The public description of the WAF rule."""
- group: WAFManagedRulesTraditionalDenyRuleGroup
+ group: UnnamedSchemaRef120
"""The rule group to which the current WAF rule belongs."""
mode: Literal["default", "disable", "simulate", "block", "challenge"]
@@ -90,14 +72,6 @@ class WAFManagedRulesTraditionalDenyRule(BaseModel):
"""The order in which the individual WAF rule is executed within its rule group."""
-class WAFManagedRulesTraditionalAllowRuleGroup(BaseModel):
- id: Optional[str] = None
- """The unique identifier of the rule group."""
-
- name: Optional[str] = None
- """The name of the rule group."""
-
-
class WAFManagedRulesTraditionalAllowRule(BaseModel):
id: str
"""The unique identifier of the WAF rule."""
@@ -110,7 +84,7 @@ class WAFManagedRulesTraditionalAllowRule(BaseModel):
description: str
"""The public description of the WAF rule."""
- group: WAFManagedRulesTraditionalAllowRuleGroup
+ group: UnnamedSchemaRef120
"""The rule group to which the current WAF rule belongs."""
mode: Literal["on", "off"]
diff --git a/src/cloudflare/types/hostnames/settings/__init__.py b/src/cloudflare/types/hostnames/settings/__init__.py
index d4d13ab9044..16bf74b172c 100644
--- a/src/cloudflare/types/hostnames/settings/__init__.py
+++ b/src/cloudflare/types/hostnames/settings/__init__.py
@@ -2,7 +2,6 @@
from __future__ import annotations
-from .hostname_stting import HostnameStting as HostnameStting
from .tls_get_response import TLSGetResponse as TLSGetResponse
from .tls_update_params import TLSUpdateParams as TLSUpdateParams
from .hostname_setting_delete import HostnameSettingDelete as HostnameSettingDelete
diff --git a/src/cloudflare/types/hostnames/settings/tls_get_response.py b/src/cloudflare/types/hostnames/settings/tls_get_response.py
index 69e61d6d8ac..11800be7c68 100644
--- a/src/cloudflare/types/hostnames/settings/tls_get_response.py
+++ b/src/cloudflare/types/hostnames/settings/tls_get_response.py
@@ -1,28 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List, Union, Optional
-from datetime import datetime
+from typing import List
-from ...._models import BaseModel
+from ...shared import UnnamedSchemaRef65
-__all__ = ["TLSGetResponse", "TLSGetResponseItem"]
+__all__ = ["TLSGetResponse"]
-
-class TLSGetResponseItem(BaseModel):
- created_at: Optional[datetime] = None
- """This is the time the tls setting was originally created for this hostname."""
-
- hostname: Optional[str] = None
- """The hostname for which the tls settings are set."""
-
- status: Optional[str] = None
- """Deployment status for the given tls setting."""
-
- updated_at: Optional[datetime] = None
- """This is the time the tls setting was updated."""
-
- value: Union[float, str, List[str], None] = None
- """The tls setting value."""
-
-
-TLSGetResponse = List[TLSGetResponseItem]
+TLSGetResponse = List[UnnamedSchemaRef65]
diff --git a/src/cloudflare/types/hyperdrive/__init__.py b/src/cloudflare/types/hyperdrive/__init__.py
index 0891cd295ba..91e983052a0 100644
--- a/src/cloudflare/types/hyperdrive/__init__.py
+++ b/src/cloudflare/types/hyperdrive/__init__.py
@@ -10,5 +10,4 @@
from .config_list_response import ConfigListResponse as ConfigListResponse
from .config_update_params import ConfigUpdateParams as ConfigUpdateParams
from .config_create_response import ConfigCreateResponse as ConfigCreateResponse
-from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse
from .config_update_response import ConfigUpdateResponse as ConfigUpdateResponse
diff --git a/src/cloudflare/types/hyperdrive/config_delete_response.py b/src/cloudflare/types/hyperdrive/config_delete_response.py
deleted file mode 100644
index e0da387119b..00000000000
--- a/src/cloudflare/types/hyperdrive/config_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["ConfigDeleteResponse"]
-
-ConfigDeleteResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/images/v1_list_response.py b/src/cloudflare/types/images/v1_list_response.py
index 249b4c9523d..7ef3c751b46 100644
--- a/src/cloudflare/types/images/v1_list_response.py
+++ b/src/cloudflare/types/images/v1_list_response.py
@@ -4,21 +4,10 @@
from typing_extensions import Literal
from .image import Image
+from ..shared import UnnamedSchemaRef172
from ..._models import BaseModel
-__all__ = ["V1ListResponse", "Error", "Message", "Result"]
-
-
-class Error(BaseModel):
- code: int
-
- message: str
-
-
-class Message(BaseModel):
- code: int
-
- message: str
+__all__ = ["V1ListResponse", "Result"]
class Result(BaseModel):
@@ -26,9 +15,9 @@ class Result(BaseModel):
class V1ListResponse(BaseModel):
- errors: List[Error]
+ errors: List[UnnamedSchemaRef172]
- messages: List[Message]
+ messages: List[UnnamedSchemaRef172]
result: Result
diff --git a/src/cloudflare/types/intel/attack_surface_report/issue_list_response.py b/src/cloudflare/types/intel/attack_surface_report/issue_list_response.py
index 8f068cd640a..2489485ac7d 100644
--- a/src/cloudflare/types/intel/attack_surface_report/issue_list_response.py
+++ b/src/cloudflare/types/intel/attack_surface_report/issue_list_response.py
@@ -4,21 +4,10 @@
from datetime import datetime
from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef172
from ...._models import BaseModel
-__all__ = ["IssueListResponse", "Error", "Message", "Result", "ResultIssue"]
-
-
-class Error(BaseModel):
- code: int
-
- message: str
-
-
-class Message(BaseModel):
- code: int
-
- message: str
+__all__ = ["IssueListResponse", "Result", "ResultIssue"]
class ResultIssue(BaseModel):
@@ -67,9 +56,9 @@ class Result(BaseModel):
class IssueListResponse(BaseModel):
- errors: List[Error]
+ errors: List[UnnamedSchemaRef172]
- messages: List[Message]
+ messages: List[UnnamedSchemaRef172]
result: Result
diff --git a/src/cloudflare/types/intel/intel_passive_dns_by_ip.py b/src/cloudflare/types/intel/intel_passive_dns_by_ip.py
index 7fc207eb380..d008d41e205 100644
--- a/src/cloudflare/types/intel/intel_passive_dns_by_ip.py
+++ b/src/cloudflare/types/intel/intel_passive_dns_by_ip.py
@@ -1,22 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import date
+from ..shared import UnnamedSchemaRef35
from ..._models import BaseModel
-__all__ = ["IntelPassiveDNSByIP", "ReverseRecord"]
-
-
-class ReverseRecord(BaseModel):
- first_seen: Optional[date] = None
- """First seen date of the DNS record during the time period."""
-
- hostname: Optional[object] = None
- """Hostname that the IP was observed resolving to."""
-
- last_seen: Optional[date] = None
- """Last seen date of the DNS record during the time period."""
+__all__ = ["IntelPassiveDNSByIP"]
class IntelPassiveDNSByIP(BaseModel):
@@ -29,5 +18,5 @@ class IntelPassiveDNSByIP(BaseModel):
per_page: Optional[float] = None
"""Number of results per page of results."""
- reverse_records: Optional[List[ReverseRecord]] = None
+ reverse_records: Optional[List[UnnamedSchemaRef35]] = None
"""Reverse DNS look-ups observed during the time period."""
diff --git a/src/cloudflare/types/intel_phishing_url_info.py b/src/cloudflare/types/intel_phishing_url_info.py
index 81ee8a8ece7..032b3662be4 100644
--- a/src/cloudflare/types/intel_phishing_url_info.py
+++ b/src/cloudflare/types/intel_phishing_url_info.py
@@ -4,69 +4,26 @@
from pydantic import Field as FieldInfo
+from .shared import UnnamedSchemaRef13, UnnamedSchemaRef14, UnnamedSchemaRef15, UnnamedSchemaRef16
from .._models import BaseModel
-__all__ = ["IntelPhishingURLInfo", "Categorization", "ModelResult", "RuleMatch", "ScanStatus"]
-
-
-class Categorization(BaseModel):
- category: Optional[str] = None
- """Name of the category applied."""
-
- verification_status: Optional[str] = None
- """Result of human review for this categorization."""
-
-
-class ModelResult(BaseModel):
- ai_model_name: Optional[str] = FieldInfo(alias="model_name", default=None)
- """Name of the model."""
-
- ai_model_score: Optional[float] = FieldInfo(alias="model_score", default=None)
- """Score output by the model for this submission."""
-
-
-class RuleMatch(BaseModel):
- banning: Optional[bool] = None
- """For internal use."""
-
- blocking: Optional[bool] = None
- """For internal use."""
-
- description: Optional[str] = None
- """Description of the signature that matched."""
-
- name: Optional[str] = None
- """Name of the signature that matched."""
-
-
-class ScanStatus(BaseModel):
- last_processed: Optional[str] = None
- """Timestamp of when the submission was processed."""
-
- scan_complete: Optional[bool] = None
- """For internal use."""
-
- status_code: Optional[int] = None
- """Status code that the crawler received when loading the submitted URL."""
-
- submission_id: Optional[int] = None
- """ID of the most recent submission."""
+__all__ = ["IntelPhishingURLInfo"]
class IntelPhishingURLInfo(BaseModel):
- categorizations: Optional[List[Categorization]] = None
+ categorizations: Optional[List[UnnamedSchemaRef13]] = None
"""List of categorizations applied to this submission."""
- ai_model_results: Optional[List[ModelResult]] = FieldInfo(alias="model_results", default=None)
+ ai_model_results: Optional[List[UnnamedSchemaRef14]] = FieldInfo(alias="model_results", default=None)
"""List of model results for completed scans."""
- rule_matches: Optional[List[RuleMatch]] = None
+ rule_matches: Optional[List[UnnamedSchemaRef15]] = None
"""
List of signatures that matched against site content found when crawling the
URL.
"""
- scan_status: Optional[ScanStatus] = None
+ scan_status: Optional[UnnamedSchemaRef16] = None
"""Status of the most recent scan found."""
screenshot_download_signature: Optional[str] = None
diff --git a/src/cloudflare/types/intel_phishing_url_submit.py b/src/cloudflare/types/intel_phishing_url_submit.py
index 70d8c27e5db..925d1ea1170 100644
--- a/src/cloudflare/types/intel_phishing_url_submit.py
+++ b/src/cloudflare/types/intel_phishing_url_submit.py
@@ -2,41 +2,21 @@
from typing import List, Optional
+from .shared import UnnamedSchemaRef10, UnnamedSchemaRef11, UnnamedSchemaRef12
from .._models import BaseModel
-__all__ = ["IntelPhishingURLSubmit", "ExcludedURL", "SkippedURL", "SubmittedURL"]
-
-
-class ExcludedURL(BaseModel):
- url: Optional[str] = None
- """URL that was excluded."""
-
-
-class SkippedURL(BaseModel):
- url: Optional[str] = None
- """URL that was skipped."""
-
- url_id: Optional[int] = None
- """ID of the submission of that URL that is currently scanning."""
-
-
-class SubmittedURL(BaseModel):
- url: Optional[str] = None
- """URL that was submitted."""
-
- url_id: Optional[int] = None
- """ID assigned to this URL submission. Used to retrieve scanning results."""
+__all__ = ["IntelPhishingURLSubmit"]
class IntelPhishingURLSubmit(BaseModel):
- excluded_urls: Optional[List[ExcludedURL]] = None
+ excluded_urls: Optional[List[UnnamedSchemaRef10]] = None
"""
URLs that were excluded from scanning because their domain is in our no-scan
list.
"""
- skipped_urls: Optional[List[SkippedURL]] = None
+ skipped_urls: Optional[List[UnnamedSchemaRef11]] = None
"""URLs that were skipped because the same URL is currently being scanned"""
- submitted_urls: Optional[List[SubmittedURL]] = None
+ submitted_urls: Optional[List[UnnamedSchemaRef12]] = None
"""URLs that were successfully submitted for scanning."""
diff --git a/src/cloudflare/types/keyless_certificate_create_params.py b/src/cloudflare/types/keyless_certificate_create_params.py
index 4a5c45381c9..a2a31e6a645 100644
--- a/src/cloudflare/types/keyless_certificate_create_params.py
+++ b/src/cloudflare/types/keyless_certificate_create_params.py
@@ -2,7 +2,9 @@
from __future__ import annotations
-from typing_extensions import Literal, Required, TypedDict
+from typing_extensions import Required, TypedDict
+
+from .shared import UnnamedSchemaRef78
__all__ = ["KeylessCertificateCreateParams", "Tunnel"]
@@ -23,7 +25,7 @@ class KeylessCertificateCreateParams(TypedDict, total=False):
Keyless SSL server.
"""
- bundle_method: Literal["ubiquitous", "optimal", "force"]
+ bundle_method: UnnamedSchemaRef78
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
diff --git a/src/cloudflare/types/load_balancers/monitors/reference_get_response.py b/src/cloudflare/types/load_balancers/monitors/reference_get_response.py
index 6d8e6c352ed..db36365c787 100644
--- a/src/cloudflare/types/load_balancers/monitors/reference_get_response.py
+++ b/src/cloudflare/types/load_balancers/monitors/reference_get_response.py
@@ -1,15 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef146
from ...._models import BaseModel
__all__ = ["ReferenceGetResponse", "ReferenceGetResponseItem"]
class ReferenceGetResponseItem(BaseModel):
- reference_type: Optional[Literal["*", "referral", "referrer"]] = None
+ reference_type: Optional[UnnamedSchemaRef146] = None
resource_id: Optional[str] = None
diff --git a/src/cloudflare/types/load_balancers/pools/reference_get_response.py b/src/cloudflare/types/load_balancers/pools/reference_get_response.py
index 6d8e6c352ed..db36365c787 100644
--- a/src/cloudflare/types/load_balancers/pools/reference_get_response.py
+++ b/src/cloudflare/types/load_balancers/pools/reference_get_response.py
@@ -1,15 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef146
from ...._models import BaseModel
__all__ = ["ReferenceGetResponse", "ReferenceGetResponseItem"]
class ReferenceGetResponseItem(BaseModel):
- reference_type: Optional[Literal["*", "referral", "referrer"]] = None
+ reference_type: Optional[UnnamedSchemaRef146] = None
resource_id: Optional[str] = None
diff --git a/src/cloudflare/types/logpush/__init__.py b/src/cloudflare/types/logpush/__init__.py
index 45910e35fb2..dc92af9159e 100644
--- a/src/cloudflare/types/logpush/__init__.py
+++ b/src/cloudflare/types/logpush/__init__.py
@@ -8,7 +8,6 @@
from .job_update_params import JobUpdateParams as JobUpdateParams
from .edge_create_params import EdgeCreateParams as EdgeCreateParams
from .instant_logpush_job import InstantLogpushJob as InstantLogpushJob
-from .job_delete_response import JobDeleteResponse as JobDeleteResponse
from .validate_origin_params import ValidateOriginParams as ValidateOriginParams
from .ownership_create_params import OwnershipCreateParams as OwnershipCreateParams
from .validate_origin_response import ValidateOriginResponse as ValidateOriginResponse
diff --git a/src/cloudflare/types/logpush/job_delete_response.py b/src/cloudflare/types/logpush/job_delete_response.py
deleted file mode 100644
index fef20041b3f..00000000000
--- a/src/cloudflare/types/logpush/job_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["JobDeleteResponse"]
-
-JobDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/logs/control/cmb/__init__.py b/src/cloudflare/types/logs/control/cmb/__init__.py
index dc545fb11dd..d96a935ea5d 100644
--- a/src/cloudflare/types/logs/control/cmb/__init__.py
+++ b/src/cloudflare/types/logs/control/cmb/__init__.py
@@ -5,4 +5,3 @@
from .cmb_config import CmbConfig as CmbConfig
from .config_create_params import ConfigCreateParams as ConfigCreateParams
from .config_delete_params import ConfigDeleteParams as ConfigDeleteParams
-from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse
diff --git a/src/cloudflare/types/logs/control/cmb/config_delete_response.py b/src/cloudflare/types/logs/control/cmb/config_delete_response.py
deleted file mode 100644
index 4407776e27b..00000000000
--- a/src/cloudflare/types/logs/control/cmb/config_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["ConfigDeleteResponse"]
-
-ConfigDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py b/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py
index 4fe4b3e4947..b771c93811e 100644
--- a/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py
+++ b/src/cloudflare/types/magic_transit/cf_interconnect_list_response.py
@@ -2,8 +2,8 @@
from typing import List, Optional
from datetime import datetime
-from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
from ..._models import BaseModel
__all__ = ["CfInterconnectListResponse", "Interconnect", "InterconnectGRE", "InterconnectHealthCheck"]
@@ -21,7 +21,7 @@ class InterconnectHealthCheck(BaseModel):
enabled: Optional[bool] = None
"""Determines whether to run healthchecks for a tunnel."""
- rate: Optional[Literal["low", "mid", "high"]] = None
+ rate: Optional[UnnamedSchemaRef83] = None
"""How frequent the health check is run. The default value is `mid`."""
target: Optional[str] = None
@@ -32,7 +32,7 @@ class InterconnectHealthCheck(BaseModel):
`customer_gre_endpoint address`.
"""
- type: Optional[Literal["reply", "request"]] = None
+ type: Optional[UnnamedSchemaRef84] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py b/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py
index 647a50b30ab..5800b4fc23a 100644
--- a/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py
+++ b/src/cloudflare/types/magic_transit/cf_interconnect_update_params.py
@@ -2,7 +2,9 @@
from __future__ import annotations
-from typing_extensions import Literal, Required, TypedDict
+from typing_extensions import Required, TypedDict
+
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
__all__ = ["CfInterconnectUpdateParams", "GRE", "HealthCheck"]
@@ -45,7 +47,7 @@ class HealthCheck(TypedDict, total=False):
enabled: bool
"""Determines whether to run healthchecks for a tunnel."""
- rate: Literal["low", "mid", "high"]
+ rate: UnnamedSchemaRef83
"""How frequent the health check is run. The default value is `mid`."""
target: str
@@ -56,5 +58,5 @@ class HealthCheck(TypedDict, total=False):
`customer_gre_endpoint address`.
"""
- type: Literal["reply", "request"]
+ type: UnnamedSchemaRef84
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_create_response.py b/src/cloudflare/types/magic_transit/gre_tunnel_create_response.py
index c6cb68e2b20..b2f13c60e0a 100644
--- a/src/cloudflare/types/magic_transit/gre_tunnel_create_response.py
+++ b/src/cloudflare/types/magic_transit/gre_tunnel_create_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
from ..._models import BaseModel
__all__ = ["GRETunnelCreateResponse", "GRETunnel", "GRETunnelHealthCheck"]
@@ -23,7 +24,7 @@ class GRETunnelHealthCheck(BaseModel):
enabled: Optional[bool] = None
"""Determines whether to run healthchecks for a tunnel."""
- rate: Optional[Literal["low", "mid", "high"]] = None
+ rate: Optional[UnnamedSchemaRef83] = None
"""How frequent the health check is run. The default value is `mid`."""
target: Optional[str] = None
@@ -36,7 +37,7 @@ class GRETunnelHealthCheck(BaseModel):
the tunnel) is used as the target.
"""
- type: Optional[Literal["reply", "request"]] = None
+ type: Optional[UnnamedSchemaRef84] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_list_response.py b/src/cloudflare/types/magic_transit/gre_tunnel_list_response.py
index 017d9f3608d..7636505cfd3 100644
--- a/src/cloudflare/types/magic_transit/gre_tunnel_list_response.py
+++ b/src/cloudflare/types/magic_transit/gre_tunnel_list_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
from ..._models import BaseModel
__all__ = ["GRETunnelListResponse", "GRETunnel", "GRETunnelHealthCheck"]
@@ -23,7 +24,7 @@ class GRETunnelHealthCheck(BaseModel):
enabled: Optional[bool] = None
"""Determines whether to run healthchecks for a tunnel."""
- rate: Optional[Literal["low", "mid", "high"]] = None
+ rate: Optional[UnnamedSchemaRef83] = None
"""How frequent the health check is run. The default value is `mid`."""
target: Optional[str] = None
@@ -36,7 +37,7 @@ class GRETunnelHealthCheck(BaseModel):
the tunnel) is used as the target.
"""
- type: Optional[Literal["reply", "request"]] = None
+ type: Optional[UnnamedSchemaRef84] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/gre_tunnel_update_params.py b/src/cloudflare/types/magic_transit/gre_tunnel_update_params.py
index d47de7a4dd0..71d5d4953aa 100644
--- a/src/cloudflare/types/magic_transit/gre_tunnel_update_params.py
+++ b/src/cloudflare/types/magic_transit/gre_tunnel_update_params.py
@@ -4,6 +4,8 @@
from typing_extensions import Literal, Required, TypedDict
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
+
__all__ = ["GRETunnelUpdateParams", "HealthCheck"]
@@ -60,7 +62,7 @@ class HealthCheck(TypedDict, total=False):
enabled: bool
"""Determines whether to run healthchecks for a tunnel."""
- rate: Literal["low", "mid", "high"]
+ rate: UnnamedSchemaRef83
"""How frequent the health check is run. The default value is `mid`."""
target: str
@@ -73,5 +75,5 @@ class HealthCheck(TypedDict, total=False):
the tunnel) is used as the target.
"""
- type: Literal["reply", "request"]
+ type: UnnamedSchemaRef84
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_params.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_params.py
index 38abef0649d..9298abc8fb1 100644
--- a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_params.py
+++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_params.py
@@ -4,6 +4,8 @@
from typing_extensions import Literal, Required, TypedDict
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
+
__all__ = ["IPSECTunnelCreateParams", "HealthCheck"]
@@ -56,7 +58,7 @@ class HealthCheck(TypedDict, total=False):
enabled: bool
"""Determines whether to run healthchecks for a tunnel."""
- rate: Literal["low", "mid", "high"]
+ rate: UnnamedSchemaRef83
"""How frequent the health check is run. The default value is `mid`."""
target: str
@@ -69,5 +71,5 @@ class HealthCheck(TypedDict, total=False):
the tunnel) is used as the target.
"""
- type: Literal["reply", "request"]
+ type: UnnamedSchemaRef84
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py
index 19870c524ab..1f05aa2af4f 100644
--- a/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py
+++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_create_response.py
@@ -2,8 +2,8 @@
from typing import List, Optional
from datetime import datetime
-from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
from ..._models import BaseModel
__all__ = ["IPSECTunnelCreateResponse", "IPSECTunnel", "IPSECTunnelPSKMetadata", "IPSECTunnelTunnelHealthCheck"]
@@ -18,7 +18,7 @@ class IPSECTunnelTunnelHealthCheck(BaseModel):
enabled: Optional[bool] = None
"""Determines whether to run healthchecks for a tunnel."""
- rate: Optional[Literal["low", "mid", "high"]] = None
+ rate: Optional[UnnamedSchemaRef83] = None
"""How frequent the health check is run. The default value is `mid`."""
target: Optional[str] = None
@@ -29,7 +29,7 @@ class IPSECTunnelTunnelHealthCheck(BaseModel):
`customer_gre_endpoint address`.
"""
- type: Optional[Literal["reply", "request"]] = None
+ type: Optional[UnnamedSchemaRef84] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py
index 93f47391a93..16b1c426444 100644
--- a/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py
+++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_list_response.py
@@ -2,8 +2,8 @@
from typing import List, Optional
from datetime import datetime
-from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
from ..._models import BaseModel
__all__ = ["IPSECTunnelListResponse", "IPSECTunnel", "IPSECTunnelPSKMetadata", "IPSECTunnelTunnelHealthCheck"]
@@ -18,7 +18,7 @@ class IPSECTunnelTunnelHealthCheck(BaseModel):
enabled: Optional[bool] = None
"""Determines whether to run healthchecks for a tunnel."""
- rate: Optional[Literal["low", "mid", "high"]] = None
+ rate: Optional[UnnamedSchemaRef83] = None
"""How frequent the health check is run. The default value is `mid`."""
target: Optional[str] = None
@@ -29,7 +29,7 @@ class IPSECTunnelTunnelHealthCheck(BaseModel):
`customer_gre_endpoint address`.
"""
- type: Optional[Literal["reply", "request"]] = None
+ type: Optional[UnnamedSchemaRef84] = None
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/ipsec_tunnel_update_params.py b/src/cloudflare/types/magic_transit/ipsec_tunnel_update_params.py
index d1f1730d3dc..04719676bba 100644
--- a/src/cloudflare/types/magic_transit/ipsec_tunnel_update_params.py
+++ b/src/cloudflare/types/magic_transit/ipsec_tunnel_update_params.py
@@ -4,6 +4,8 @@
from typing_extensions import Literal, Required, TypedDict
+from ..shared import UnnamedSchemaRef83, UnnamedSchemaRef84
+
__all__ = ["IPSECTunnelUpdateParams", "HealthCheck"]
@@ -56,7 +58,7 @@ class HealthCheck(TypedDict, total=False):
enabled: bool
"""Determines whether to run healthchecks for a tunnel."""
- rate: Literal["low", "mid", "high"]
+ rate: UnnamedSchemaRef83
"""How frequent the health check is run. The default value is `mid`."""
target: str
@@ -69,5 +71,5 @@ class HealthCheck(TypedDict, total=False):
the tunnel) is used as the target.
"""
- type: Literal["reply", "request"]
+ type: UnnamedSchemaRef84
"""The type of healthcheck to run, reply or request. The default value is `reply`."""
diff --git a/src/cloudflare/types/magic_transit/sites/acl_create_params.py b/src/cloudflare/types/magic_transit/sites/acl_create_params.py
index 2347358c3b4..7c572eeddf8 100644
--- a/src/cloudflare/types/magic_transit/sites/acl_create_params.py
+++ b/src/cloudflare/types/magic_transit/sites/acl_create_params.py
@@ -3,7 +3,9 @@
from __future__ import annotations
from typing import List, Union, Iterable
-from typing_extensions import Literal, Required, TypedDict
+from typing_extensions import Required, TypedDict
+
+from ...shared import UnnamedSchemaRef82
__all__ = ["ACLCreateParams", "ACL", "ACLLAN1", "ACLLAN2"]
@@ -76,4 +78,4 @@ class ACL(TypedDict, total=False):
not included in request, will default to false.
"""
- protocols: List[Literal["tcp", "udp", "icmp"]]
+ protocols: List[UnnamedSchemaRef82]
diff --git a/src/cloudflare/types/magic_transit/sites/acl_create_response.py b/src/cloudflare/types/magic_transit/sites/acl_create_response.py
index 2c6563ba7e1..50b40d30f0a 100644
--- a/src/cloudflare/types/magic_transit/sites/acl_create_response.py
+++ b/src/cloudflare/types/magic_transit/sites/acl_create_response.py
@@ -1,8 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Union, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef82
from ...._models import BaseModel
__all__ = ["ACLCreateResponse", "ACL", "ACLLAN1", "ACLLAN2"]
@@ -72,7 +72,7 @@ class ACL(BaseModel):
name: Optional[str] = None
"""The name of the ACL."""
- protocols: Optional[List[Literal["tcp", "udp", "icmp"]]] = None
+ protocols: Optional[List[UnnamedSchemaRef82]] = None
class ACLCreateResponse(BaseModel):
diff --git a/src/cloudflare/types/magic_transit/sites/acl_delete_response.py b/src/cloudflare/types/magic_transit/sites/acl_delete_response.py
index f13226c7fe7..67806e5b077 100644
--- a/src/cloudflare/types/magic_transit/sites/acl_delete_response.py
+++ b/src/cloudflare/types/magic_transit/sites/acl_delete_response.py
@@ -1,8 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Union, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef82
from ...._models import BaseModel
__all__ = ["ACLDeleteResponse", "DeletedACL", "DeletedACLLAN1", "DeletedACLLAN2"]
@@ -72,7 +72,7 @@ class DeletedACL(BaseModel):
name: Optional[str] = None
"""The name of the ACL."""
- protocols: Optional[List[Literal["tcp", "udp", "icmp"]]] = None
+ protocols: Optional[List[UnnamedSchemaRef82]] = None
class ACLDeleteResponse(BaseModel):
diff --git a/src/cloudflare/types/magic_transit/sites/acl_get_response.py b/src/cloudflare/types/magic_transit/sites/acl_get_response.py
index 69aea2ba0fa..ce2118fa73b 100644
--- a/src/cloudflare/types/magic_transit/sites/acl_get_response.py
+++ b/src/cloudflare/types/magic_transit/sites/acl_get_response.py
@@ -1,8 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Union, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef82
from ...._models import BaseModel
__all__ = ["ACLGetResponse", "ACL", "ACLLAN1", "ACLLAN2"]
@@ -72,7 +72,7 @@ class ACL(BaseModel):
name: Optional[str] = None
"""The name of the ACL."""
- protocols: Optional[List[Literal["tcp", "udp", "icmp"]]] = None
+ protocols: Optional[List[UnnamedSchemaRef82]] = None
class ACLGetResponse(BaseModel):
diff --git a/src/cloudflare/types/magic_transit/sites/acl_list_response.py b/src/cloudflare/types/magic_transit/sites/acl_list_response.py
index d3bc62b6891..1c23eafbfd2 100644
--- a/src/cloudflare/types/magic_transit/sites/acl_list_response.py
+++ b/src/cloudflare/types/magic_transit/sites/acl_list_response.py
@@ -1,8 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Union, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef82
from ...._models import BaseModel
__all__ = ["ACLListResponse", "ACL", "ACLLAN1", "ACLLAN2"]
@@ -72,7 +72,7 @@ class ACL(BaseModel):
name: Optional[str] = None
"""The name of the ACL."""
- protocols: Optional[List[Literal["tcp", "udp", "icmp"]]] = None
+ protocols: Optional[List[UnnamedSchemaRef82]] = None
class ACLListResponse(BaseModel):
diff --git a/src/cloudflare/types/magic_transit/sites/acl_update_params.py b/src/cloudflare/types/magic_transit/sites/acl_update_params.py
index a1b9f527345..65b19a0932a 100644
--- a/src/cloudflare/types/magic_transit/sites/acl_update_params.py
+++ b/src/cloudflare/types/magic_transit/sites/acl_update_params.py
@@ -3,7 +3,9 @@
from __future__ import annotations
from typing import List, Union, Iterable
-from typing_extensions import Literal, Required, TypedDict
+from typing_extensions import Required, TypedDict
+
+from ...shared import UnnamedSchemaRef82
__all__ = ["ACLUpdateParams", "ACL", "ACLLAN1", "ACLLAN2"]
@@ -79,4 +81,4 @@ class ACL(TypedDict, total=False):
name: str
"""The name of the ACL."""
- protocols: List[Literal["tcp", "udp", "icmp"]]
+ protocols: List[UnnamedSchemaRef82]
diff --git a/src/cloudflare/types/magic_transit/sites/acl_update_response.py b/src/cloudflare/types/magic_transit/sites/acl_update_response.py
index a3d1aea08da..d93b061e0fb 100644
--- a/src/cloudflare/types/magic_transit/sites/acl_update_response.py
+++ b/src/cloudflare/types/magic_transit/sites/acl_update_response.py
@@ -1,8 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Union, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef82
from ...._models import BaseModel
__all__ = ["ACLUpdateResponse", "ACL", "ACLLAN1", "ACLLAN2"]
@@ -72,7 +72,7 @@ class ACL(BaseModel):
name: Optional[str] = None
"""The name of the ACL."""
- protocols: Optional[List[Literal["tcp", "udp", "icmp"]]] = None
+ protocols: Optional[List[UnnamedSchemaRef82]] = None
class ACLUpdateResponse(BaseModel):
diff --git a/src/cloudflare/types/queue_delete_response.py b/src/cloudflare/types/queue_delete_response.py
deleted file mode 100644
index 4e660c2b0e0..00000000000
--- a/src/cloudflare/types/queue_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["QueueDeleteResponse"]
-
-QueueDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/queues/__init__.py b/src/cloudflare/types/queues/__init__.py
index fa5698295b9..a83d84a0d6d 100644
--- a/src/cloudflare/types/queues/__init__.py
+++ b/src/cloudflare/types/queues/__init__.py
@@ -11,5 +11,4 @@
from .consumer_delete_params import ConsumerDeleteParams as ConsumerDeleteParams
from .consumer_update_params import ConsumerUpdateParams as ConsumerUpdateParams
from .consumer_create_response import ConsumerCreateResponse as ConsumerCreateResponse
-from .consumer_delete_response import ConsumerDeleteResponse as ConsumerDeleteResponse
from .consumer_update_response import ConsumerUpdateResponse as ConsumerUpdateResponse
diff --git a/src/cloudflare/types/queues/consumer_create_response.py b/src/cloudflare/types/queues/consumer_create_response.py
index 14efd41f1da..a873a30a0a4 100644
--- a/src/cloudflare/types/queues/consumer_create_response.py
+++ b/src/cloudflare/types/queues/consumer_create_response.py
@@ -2,18 +2,10 @@
from typing import Optional
+from ..shared import UnnamedSchemaRef41
from ..._models import BaseModel
-__all__ = ["ConsumerCreateResponse", "Settings"]
-
-
-class Settings(BaseModel):
- batch_size: Optional[float] = None
- """The maximum number of messages to include in a batch"""
-
- max_retries: Optional[float] = None
-
- max_wait_time_ms: Optional[float] = None
+__all__ = ["ConsumerCreateResponse"]
class ConsumerCreateResponse(BaseModel):
@@ -27,4 +19,4 @@ class ConsumerCreateResponse(BaseModel):
script_name: Optional[object] = None
- settings: Optional[Settings] = None
+ settings: Optional[UnnamedSchemaRef41] = None
diff --git a/src/cloudflare/types/queues/consumer_delete_response.py b/src/cloudflare/types/queues/consumer_delete_response.py
deleted file mode 100644
index 341f83809a0..00000000000
--- a/src/cloudflare/types/queues/consumer_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["ConsumerDeleteResponse"]
-
-ConsumerDeleteResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/queues/consumer_get_response.py b/src/cloudflare/types/queues/consumer_get_response.py
index 8a00b17a127..2c214b4163d 100644
--- a/src/cloudflare/types/queues/consumer_get_response.py
+++ b/src/cloudflare/types/queues/consumer_get_response.py
@@ -2,18 +2,10 @@
from typing import List, Optional
+from ..shared import UnnamedSchemaRef41
from ..._models import BaseModel
-__all__ = ["ConsumerGetResponse", "ConsumerGetResponseItem", "ConsumerGetResponseItemSettings"]
-
-
-class ConsumerGetResponseItemSettings(BaseModel):
- batch_size: Optional[float] = None
- """The maximum number of messages to include in a batch"""
-
- max_retries: Optional[float] = None
-
- max_wait_time_ms: Optional[float] = None
+__all__ = ["ConsumerGetResponse", "ConsumerGetResponseItem"]
class ConsumerGetResponseItem(BaseModel):
@@ -25,7 +17,7 @@ class ConsumerGetResponseItem(BaseModel):
service: Optional[object] = None
- settings: Optional[ConsumerGetResponseItemSettings] = None
+ settings: Optional[UnnamedSchemaRef41] = None
ConsumerGetResponse = List[ConsumerGetResponseItem]
diff --git a/src/cloudflare/types/r2/r2_sippy.py b/src/cloudflare/types/r2/r2_sippy.py
index ec7049bf536..c0872613671 100644
--- a/src/cloudflare/types/r2/r2_sippy.py
+++ b/src/cloudflare/types/r2/r2_sippy.py
@@ -5,6 +5,7 @@
from pydantic import Field as FieldInfo
+from ..shared import UnnamedSchemaRef85
from ..._models import BaseModel
__all__ = ["R2Sippy", "Destination", "Source"]
@@ -19,7 +20,7 @@ class Destination(BaseModel):
bucket: Optional[str] = None
"""Name of the bucket on the provider"""
- provider: Optional[Literal["r2"]] = None
+ provider: Optional[UnnamedSchemaRef85] = None
class Source(BaseModel):
diff --git a/src/cloudflare/types/r2/sippy_update_params.py b/src/cloudflare/types/r2/sippy_update_params.py
index 7730cbef116..dadca78aca8 100644
--- a/src/cloudflare/types/r2/sippy_update_params.py
+++ b/src/cloudflare/types/r2/sippy_update_params.py
@@ -5,6 +5,7 @@
from typing import Union
from typing_extensions import Literal, Required, Annotated, TypedDict
+from ..shared import UnnamedSchemaRef85
from ..._utils import PropertyInfo
__all__ = [
@@ -40,7 +41,7 @@ class R2EnableSippyAwsDestination(TypedDict, total=False):
this token to the bucket you're enabling Sippy for.
"""
- provider: Literal["r2"]
+ provider: UnnamedSchemaRef85
secret_access_key: Annotated[str, PropertyInfo(alias="secretAccessKey")]
"""
@@ -91,7 +92,7 @@ class R2EnableSippyGcsDestination(TypedDict, total=False):
this token to the bucket you're enabling Sippy for.
"""
- provider: Literal["r2"]
+ provider: UnnamedSchemaRef85
secret_access_key: Annotated[str, PropertyInfo(alias="secretAccessKey")]
"""
diff --git a/src/cloudflare/types/radar/__init__.py b/src/cloudflare/types/radar/__init__.py
index 368692fe253..17ddff69c0a 100644
--- a/src/cloudflare/types/radar/__init__.py
+++ b/src/cloudflare/types/radar/__init__.py
@@ -13,6 +13,8 @@
from .bgp_timeseries_params import BGPTimeseriesParams as BGPTimeseriesParams
from .dataset_list_response import DatasetListResponse as DatasetListResponse
from .search_global_response import SearchGlobalResponse as SearchGlobalResponse
+from .unnamed_schema_ref_149 import UnnamedSchemaRef149 as UnnamedSchemaRef149
+from .unnamed_schema_ref_150 import UnnamedSchemaRef150 as UnnamedSchemaRef150
from .as112_timeseries_params import AS112TimeseriesParams as AS112TimeseriesParams
from .bgp_timeseries_response import BGPTimeseriesResponse as BGPTimeseriesResponse
from .dataset_download_params import DatasetDownloadParams as DatasetDownloadParams
diff --git a/src/cloudflare/types/radar/annotations/outage_get_response.py b/src/cloudflare/types/radar/annotations/outage_get_response.py
index a849b72fd21..9d96dcf09d5 100644
--- a/src/cloudflare/types/radar/annotations/outage_get_response.py
+++ b/src/cloudflare/types/radar/annotations/outage_get_response.py
@@ -5,21 +5,9 @@
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_106 import UnnamedSchemaRef106
-__all__ = [
- "OutageGetResponse",
- "Annotation",
- "AnnotationASNsDetail",
- "AnnotationASNsDetailLocations",
- "AnnotationLocationsDetail",
- "AnnotationOutage",
-]
-
-
-class AnnotationASNsDetailLocations(BaseModel):
- code: str
-
- name: str
+__all__ = ["OutageGetResponse", "Annotation", "AnnotationASNsDetail", "AnnotationOutage"]
class AnnotationASNsDetail(BaseModel):
@@ -27,13 +15,7 @@ class AnnotationASNsDetail(BaseModel):
name: str
- locations: Optional[AnnotationASNsDetailLocations] = None
-
-
-class AnnotationLocationsDetail(BaseModel):
- code: str
-
- name: str
+ locations: Optional[UnnamedSchemaRef106] = None
class AnnotationOutage(BaseModel):
@@ -55,7 +37,7 @@ class Annotation(BaseModel):
locations: List[str]
- locations_details: List[AnnotationLocationsDetail] = FieldInfo(alias="locationsDetails")
+ locations_details: List[UnnamedSchemaRef106] = FieldInfo(alias="locationsDetails")
outage: AnnotationOutage
diff --git a/src/cloudflare/types/radar/annotations/outage_locations_response.py b/src/cloudflare/types/radar/annotations/outage_locations_response.py
index b175087e150..108cd4fd9ef 100644
--- a/src/cloudflare/types/radar/annotations/outage_locations_response.py
+++ b/src/cloudflare/types/radar/annotations/outage_locations_response.py
@@ -2,20 +2,11 @@
from typing import List
-from pydantic import Field as FieldInfo
-
from ...._models import BaseModel
+from ...unnamed_schema_ref_160 import UnnamedSchemaRef160
-__all__ = ["OutageLocationsResponse", "Annotation"]
-
-
-class Annotation(BaseModel):
- client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2")
-
- client_country_name: str = FieldInfo(alias="clientCountryName")
-
- value: str
+__all__ = ["OutageLocationsResponse"]
class OutageLocationsResponse(BaseModel):
- annotations: List[Annotation]
+ annotations: List[UnnamedSchemaRef160]
diff --git a/src/cloudflare/types/radar/as112/summary_dnssec_response.py b/src/cloudflare/types/radar/as112/summary_dnssec_response.py
index 1dea9f500ff..0b6a3b53734 100644
--- a/src/cloudflare/types/radar/as112/summary_dnssec_response.py
+++ b/src/cloudflare/types/radar/as112/summary_dnssec_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryDNSSECResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryDNSSECResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112/summary_edns_response.py b/src/cloudflare/types/radar/as112/summary_edns_response.py
index da899d3649d..c76c9e61aea 100644
--- a/src/cloudflare/types/radar/as112/summary_edns_response.py
+++ b/src/cloudflare/types/radar/as112/summary_edns_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryEdnsResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryEdnsResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112/summary_ip_version_response.py b/src/cloudflare/types/radar/as112/summary_ip_version_response.py
index e8515c06e80..dcf6192bac2 100644
--- a/src/cloudflare/types/radar/as112/summary_ip_version_response.py
+++ b/src/cloudflare/types/radar/as112/summary_ip_version_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_128 import UnnamedSchemaRef128
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryIPVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryIPVersionResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,13 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- i_pv4: str = FieldInfo(alias="IPv4")
-
- i_pv6: str = FieldInfo(alias="IPv6")
-
-
class SummaryIPVersionResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef128
diff --git a/src/cloudflare/types/radar/as112/summary_protocol_response.py b/src/cloudflare/types/radar/as112/summary_protocol_response.py
index 3af1df35781..89974b6e77f 100644
--- a/src/cloudflare/types/radar/as112/summary_protocol_response.py
+++ b/src/cloudflare/types/radar/as112/summary_protocol_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryProtocolResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryProtocolResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112/summary_query_type_response.py b/src/cloudflare/types/radar/as112/summary_query_type_response.py
index d302fae8743..28f2264c0cb 100644
--- a/src/cloudflare/types/radar/as112/summary_query_type_response.py
+++ b/src/cloudflare/types/radar/as112/summary_query_type_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryQueryTypeResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryQueryTypeResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112/summary_response_codes_response.py b/src/cloudflare/types/radar/as112/summary_response_codes_response.py
index 9ee9b90e7d0..3ee7347128c 100644
--- a/src/cloudflare/types/radar/as112/summary_response_codes_response.py
+++ b/src/cloudflare/types/radar/as112/summary_response_codes_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryResponseCodesResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryResponseCodesResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112/top_dnssec_response.py b/src/cloudflare/types/radar/as112/top_dnssec_response.py
index 6896a1eb516..366a65a7634 100644
--- a/src/cloudflare/types/radar/as112/top_dnssec_response.py
+++ b/src/cloudflare/types/radar/as112/top_dnssec_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopDNSSECResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopDNSSECResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112/top_edns_response.py b/src/cloudflare/types/radar/as112/top_edns_response.py
index 88dd69c3350..55b43868446 100644
--- a/src/cloudflare/types/radar/as112/top_edns_response.py
+++ b/src/cloudflare/types/radar/as112/top_edns_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopEdnsResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopEdnsResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112/top_ip_version_response.py b/src/cloudflare/types/radar/as112/top_ip_version_response.py
index 3ca89699881..c755bf8c53a 100644
--- a/src/cloudflare/types/radar/as112/top_ip_version_response.py
+++ b/src/cloudflare/types/radar/as112/top_ip_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TopIPVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopIPVersionResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112/top_locations_response.py b/src/cloudflare/types/radar/as112/top_locations_response.py
index ccfeff38397..71e85b4d3bd 100644
--- a/src/cloudflare/types/radar/as112/top_locations_response.py
+++ b/src/cloudflare/types/radar/as112/top_locations_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TopLocationsResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopLocationsResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/as112_timeseries_response.py b/src/cloudflare/types/radar/as112_timeseries_response.py
index 169b4dc6611..135d6e48455 100644
--- a/src/cloudflare/types/radar/as112_timeseries_response.py
+++ b/src/cloudflare/types/radar/as112_timeseries_response.py
@@ -6,43 +6,15 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
+from ..unnamed_schema_ref_129 import UnnamedSchemaRef129
+from ..unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ..unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "AS112TimeseriesResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Serie0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["AS112TimeseriesResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
@@ -50,20 +22,14 @@ class MetaConfidenceInfo(BaseModel):
class Meta(BaseModel):
agg_interval: str = FieldInfo(alias="aggInterval")
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: datetime = FieldInfo(alias="lastUpdated")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Serie0(BaseModel):
- timestamps: List[datetime]
-
- values: List[str]
-
-
class AS112TimeseriesResponse(BaseModel):
meta: Meta
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef129
diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py
index 8669564cff6..d788c3db8b5 100644
--- a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryBitrateResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryBitrateResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py
index 648f29c9030..72949bd7c73 100644
--- a/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/summary_duration_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryDurationResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryDurationResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py
index 1465bcb67d6..a0ffd10ce0d 100644
--- a/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/summary_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryGetResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py
index b4f96b8667e..68ef0940e70 100644
--- a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryIPVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryIPVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py
index 1cf176e0a5e..ffd3a83694c 100644
--- a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryProtocolResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryProtocolResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py b/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py
index 47fb5fed0c0..bab09f402cf 100644
--- a/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/summary_vector_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Dict, List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["SummaryVectorResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryVectorResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py
index e7bf91ff7a1..d09c83880f9 100644
--- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_response.py
@@ -6,43 +6,14 @@
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TimeseriesGroupGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Serie0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TimeseriesGroupGetResponse", "Meta", "MetaConfidenceInfo", "Serie0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
@@ -50,7 +21,7 @@ class MetaConfidenceInfo(BaseModel):
class Meta(BaseModel):
agg_interval: str = FieldInfo(alias="aggInterval")
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: datetime = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py
index eee79e8794f..d6502fa2086 100644
--- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_response.py
@@ -1,24 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import TYPE_CHECKING, List
-from ....._models import BaseModel
-
-__all__ = ["TimeseriesGroupIndustryResponse", "Serie0"]
+from ....._models import BaseModel
+from ....unnamed_schema_ref_153 import UnnamedSchemaRef153
-class Serie0(BaseModel):
- timestamps: List[str]
-
- if TYPE_CHECKING:
- # Stub to indicate that arbitrary properties are accepted.
- # To access properties that are not valid identifiers you can use `getattr`, e.g.
- # `getattr(obj, '$type')`
- def __getattr__(self, attr: str) -> List[str]:
- ...
+__all__ = ["TimeseriesGroupIndustryResponse"]
class TimeseriesGroupIndustryResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef153
diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py
index 136fc4da363..94739d5ed99 100644
--- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_53 import UnnamedSchemaRef53
-__all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- i_pv4: List[str] = FieldInfo(alias="IPv4")
-
- i_pv6: List[str] = FieldInfo(alias="IPv6")
-
- timestamps: List[str]
+__all__ = ["TimeseriesGroupIPVersionResponse"]
class TimeseriesGroupIPVersionResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef53
diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py
index 486e59f89c0..829edc9ba48 100644
--- a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......_models import BaseModel
+from .....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from .....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "LocationOriginResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["LocationOriginResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py b/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py
index 781bdd4f4f4..817f3e65a71 100644
--- a/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/top/location_target_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......_models import BaseModel
+from .....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from .....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "LocationTargetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["LocationTargetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py b/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py
index 96160d6f724..df240597a80 100644
--- a/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/top_attacks_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopAttacksResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopAttacksResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py b/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py
index c24a6c7ee84..e9b5fae86c2 100644
--- a/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/top_industry_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopIndustryResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopIndustryResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py b/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py
index 1b9d9238ed2..eb289821d39 100644
--- a/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py
+++ b/src/cloudflare/types/radar/attacks/layer3/top_vertical_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopVerticalResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopVerticalResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py
index 8b65b6328df..d462dd3c885 100644
--- a/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/summary_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryGetResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py
index 40b3d9de8d0..4c82fb7d53a 100644
--- a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryHTTPMethodResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryHTTPMethodResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py
index 6fc2906c230..4b2135808fb 100644
--- a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryHTTPVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryHTTPVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py
index b4f96b8667e..68ef0940e70 100644
--- a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryIPVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryIPVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py
index 98285c0015c..31c74627f37 100644
--- a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryManagedRulesResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryManagedRulesResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py
index 2e1ac27eb10..c7140fffaf3 100644
--- a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryMitigationProductResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryMitigationProductResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py
index 422b256d9cb..a0a421b67f4 100644
--- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_response.py
@@ -6,43 +6,14 @@
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TimeseriesGroupGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Serie0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TimeseriesGroupGetResponse", "Meta", "MetaConfidenceInfo", "Serie0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
@@ -50,7 +21,7 @@ class MetaConfidenceInfo(BaseModel):
class Meta(BaseModel):
agg_interval: str = FieldInfo(alias="aggInterval")
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: datetime = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py
index eee79e8794f..d6502fa2086 100644
--- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_response.py
@@ -1,24 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import TYPE_CHECKING, List
-from ....._models import BaseModel
-
-__all__ = ["TimeseriesGroupIndustryResponse", "Serie0"]
+from ....._models import BaseModel
+from ....unnamed_schema_ref_153 import UnnamedSchemaRef153
-class Serie0(BaseModel):
- timestamps: List[str]
-
- if TYPE_CHECKING:
- # Stub to indicate that arbitrary properties are accepted.
- # To access properties that are not valid identifiers you can use `getattr`, e.g.
- # `getattr(obj, '$type')`
- def __getattr__(self, attr: str) -> List[str]:
- ...
+__all__ = ["TimeseriesGroupIndustryResponse"]
class TimeseriesGroupIndustryResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef153
diff --git a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py
index 10a3c3a5307..0ba1fa446bf 100644
--- a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......_models import BaseModel
+from .....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from .....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["AseOriginResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["AseOriginResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py
index 486e59f89c0..829edc9ba48 100644
--- a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......_models import BaseModel
+from .....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from .....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "LocationOriginResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["LocationOriginResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py b/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py
index 781bdd4f4f4..817f3e65a71 100644
--- a/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/top/location_target_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......_models import BaseModel
+from .....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from .....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "LocationTargetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["LocationTargetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py b/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py
index f9824a7d0b8..bb1d6898114 100644
--- a/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/top_attacks_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopAttacksResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopAttacksResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py b/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py
index c24a6c7ee84..e9b5fae86c2 100644
--- a/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/top_industry_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopIndustryResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopIndustryResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py b/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py
index 1b9d9238ed2..eb289821d39 100644
--- a/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7/top_vertical_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopVerticalResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopVerticalResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py b/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py
index 6cc4c9b2636..64f39d6a735 100644
--- a/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py
+++ b/src/cloudflare/types/radar/attacks/layer7_timeseries_response.py
@@ -6,43 +6,15 @@
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_129 import UnnamedSchemaRef129
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "Layer7TimeseriesResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Serie0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["Layer7TimeseriesResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
@@ -50,20 +22,14 @@ class MetaConfidenceInfo(BaseModel):
class Meta(BaseModel):
agg_interval: str = FieldInfo(alias="aggInterval")
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: datetime = FieldInfo(alias="lastUpdated")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Serie0(BaseModel):
- timestamps: List[datetime]
-
- values: List[str]
-
-
class Layer7TimeseriesResponse(BaseModel):
meta: Meta
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef129
diff --git a/src/cloudflare/types/radar/bgp/route_moas_response.py b/src/cloudflare/types/radar/bgp/route_moas_response.py
index 13918ba1f33..1bf42788fe6 100644
--- a/src/cloudflare/types/radar/bgp/route_moas_response.py
+++ b/src/cloudflare/types/radar/bgp/route_moas_response.py
@@ -3,16 +3,9 @@
from typing import List
from ...._models import BaseModel
+from ...unnamed_schema_ref_130 import UnnamedSchemaRef130
-__all__ = ["RouteMoasResponse", "Meta", "Moa", "MoaOrigin"]
-
-
-class Meta(BaseModel):
- data_time: str
-
- query_time: str
-
- total_peers: int
+__all__ = ["RouteMoasResponse", "Moa", "MoaOrigin"]
class MoaOrigin(BaseModel):
@@ -30,6 +23,6 @@ class Moa(BaseModel):
class RouteMoasResponse(BaseModel):
- meta: Meta
+ meta: UnnamedSchemaRef130
moas: List[Moa]
diff --git a/src/cloudflare/types/radar/bgp/route_pfx2as_response.py b/src/cloudflare/types/radar/bgp/route_pfx2as_response.py
index 2bcf9de4eb0..de9974ab00b 100644
--- a/src/cloudflare/types/radar/bgp/route_pfx2as_response.py
+++ b/src/cloudflare/types/radar/bgp/route_pfx2as_response.py
@@ -3,16 +3,9 @@
from typing import List
from ...._models import BaseModel
+from ...unnamed_schema_ref_130 import UnnamedSchemaRef130
-__all__ = ["RoutePfx2asResponse", "Meta", "PrefixOrigin"]
-
-
-class Meta(BaseModel):
- data_time: str
-
- query_time: str
-
- total_peers: int
+__all__ = ["RoutePfx2asResponse", "PrefixOrigin"]
class PrefixOrigin(BaseModel):
@@ -26,6 +19,6 @@ class PrefixOrigin(BaseModel):
class RoutePfx2asResponse(BaseModel):
- meta: Meta
+ meta: UnnamedSchemaRef130
prefix_origins: List[PrefixOrigin]
diff --git a/src/cloudflare/types/radar/bgp/route_stats_response.py b/src/cloudflare/types/radar/bgp/route_stats_response.py
index 7ccf3b286a2..fd4086d34c1 100644
--- a/src/cloudflare/types/radar/bgp/route_stats_response.py
+++ b/src/cloudflare/types/radar/bgp/route_stats_response.py
@@ -1,16 +1,11 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from ...._models import BaseModel
-
-__all__ = ["RouteStatsResponse", "Meta", "Stats"]
-class Meta(BaseModel):
- data_time: str
-
- query_time: str
+from ...._models import BaseModel
+from ...unnamed_schema_ref_130 import UnnamedSchemaRef130
- total_peers: int
+__all__ = ["RouteStatsResponse", "Stats"]
class Stats(BaseModel):
@@ -52,6 +47,6 @@ class Stats(BaseModel):
class RouteStatsResponse(BaseModel):
- meta: Meta
+ meta: UnnamedSchemaRef130
stats: Stats
diff --git a/src/cloudflare/types/radar/bgp/route_timeseries_response.py b/src/cloudflare/types/radar/bgp/route_timeseries_response.py
index fa7506de2c5..c2772e0d9f4 100644
--- a/src/cloudflare/types/radar/bgp/route_timeseries_response.py
+++ b/src/cloudflare/types/radar/bgp/route_timeseries_response.py
@@ -6,20 +6,13 @@
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["RouteTimeseriesResponse", "Meta", "MetaDateRange", "SerieIPV4_24s", "SerieIPV6_48s"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
+__all__ = ["RouteTimeseriesResponse", "Meta", "SerieIPV4_24s", "SerieIPV6_48s"]
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
class SerieIPV4_24s(BaseModel):
diff --git a/src/cloudflare/types/radar/bgp/top/ase_get_response.py b/src/cloudflare/types/radar/bgp/top/ase_get_response.py
index e891e99cefa..0df19972f76 100644
--- a/src/cloudflare/types/radar/bgp/top/ase_get_response.py
+++ b/src/cloudflare/types/radar/bgp/top/ase_get_response.py
@@ -1,25 +1,17 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["AseGetResponse", "Meta", "MetaDateRange", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
+__all__ = ["AseGetResponse", "Meta", "Top0"]
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
class Top0(BaseModel):
diff --git a/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py b/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py
index e0a853b09a6..bea133a3918 100644
--- a/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py
+++ b/src/cloudflare/types/radar/bgp/top/ase_prefixes_response.py
@@ -3,8 +3,9 @@
from typing import List
from ....._models import BaseModel
+from ....unnamed_schema_ref_130 import UnnamedSchemaRef130
-__all__ = ["AsePrefixesResponse", "ASN", "Meta"]
+__all__ = ["AsePrefixesResponse", "ASN"]
class ASN(BaseModel):
@@ -17,15 +18,7 @@ class ASN(BaseModel):
pfxs_count: int
-class Meta(BaseModel):
- data_time: str
-
- query_time: str
-
- total_peers: int
-
-
class AsePrefixesResponse(BaseModel):
asns: List[ASN]
- meta: Meta
+ meta: UnnamedSchemaRef130
diff --git a/src/cloudflare/types/radar/bgp/top_prefixes_response.py b/src/cloudflare/types/radar/bgp/top_prefixes_response.py
index 9f5e92716b7..8b0110b439e 100644
--- a/src/cloudflare/types/radar/bgp/top_prefixes_response.py
+++ b/src/cloudflare/types/radar/bgp/top_prefixes_response.py
@@ -1,25 +1,17 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopPrefixesResponse", "Meta", "MetaDateRange", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
+__all__ = ["TopPrefixesResponse", "Meta", "Top0"]
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
class Top0(BaseModel):
diff --git a/src/cloudflare/types/radar/bgp_timeseries_response.py b/src/cloudflare/types/radar/bgp_timeseries_response.py
index 0d3f009785a..415c142e157 100644
--- a/src/cloudflare/types/radar/bgp_timeseries_response.py
+++ b/src/cloudflare/types/radar/bgp_timeseries_response.py
@@ -6,43 +6,15 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
+from ..unnamed_schema_ref_129 import UnnamedSchemaRef129
+from ..unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ..unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "BGPTimeseriesResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Serie0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["BGPTimeseriesResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
@@ -50,20 +22,14 @@ class MetaConfidenceInfo(BaseModel):
class Meta(BaseModel):
agg_interval: str = FieldInfo(alias="aggInterval")
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: datetime = FieldInfo(alias="lastUpdated")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Serie0(BaseModel):
- timestamps: List[datetime]
-
- values: List[str]
-
-
class BGPTimeseriesResponse(BaseModel):
meta: Meta
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef129
diff --git a/src/cloudflare/types/radar/connection_tampering_summary_response.py b/src/cloudflare/types/radar/connection_tampering_summary_response.py
index c2685cd0557..6ba18b4b2e9 100644
--- a/src/cloudflare/types/radar/connection_tampering_summary_response.py
+++ b/src/cloudflare/types/radar/connection_tampering_summary_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ..._models import BaseModel
+from ..unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ..unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "ConnectionTamperingSummaryResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["ConnectionTamperingSummaryResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
diff --git a/src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py b/src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py
index 32bef3b657f..79c043e7143 100644
--- a/src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py
+++ b/src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py
@@ -6,43 +6,14 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
+from ..unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ..unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "ConnectionTamperingTimeseriesGroupsResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Serie0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["ConnectionTamperingTimeseriesGroupsResponse", "Meta", "MetaConfidenceInfo", "Serie0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
@@ -50,7 +21,7 @@ class MetaConfidenceInfo(BaseModel):
class Meta(BaseModel):
agg_interval: str = FieldInfo(alias="aggInterval")
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: datetime = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/dns/top_ases_response.py b/src/cloudflare/types/radar/dns/top_ases_response.py
index e1094d9a13e..2b4023d3270 100644
--- a/src/cloudflare/types/radar/dns/top_ases_response.py
+++ b/src/cloudflare/types/radar/dns/top_ases_response.py
@@ -1,60 +1,30 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_154 import UnnamedSchemaRef154
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopAsesResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopAsesResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Top0(BaseModel):
- client_asn: int = FieldInfo(alias="clientASN")
-
- client_as_name: str = FieldInfo(alias="clientASName")
-
- value: str
-
-
class TopAsesResponse(BaseModel):
meta: Meta
- top_0: List[Top0]
+ top_0: List[UnnamedSchemaRef154]
diff --git a/src/cloudflare/types/radar/dns/top_locations_response.py b/src/cloudflare/types/radar/dns/top_locations_response.py
index e87ae114cf4..37979f87701 100644
--- a/src/cloudflare/types/radar/dns/top_locations_response.py
+++ b/src/cloudflare/types/radar/dns/top_locations_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TopLocationsResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopLocationsResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
diff --git a/src/cloudflare/types/radar/email/routing/summary_arc_response.py b/src/cloudflare/types/radar/email/routing/summary_arc_response.py
index 4060b61777b..edb300cae5b 100644
--- a/src/cloudflare/types/radar/email/routing/summary_arc_response.py
+++ b/src/cloudflare/types/radar/email/routing/summary_arc_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_149 import UnnamedSchemaRef149
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryARCResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryARCResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,15 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- fail: str = FieldInfo(alias="FAIL")
-
- none: str = FieldInfo(alias="NONE")
-
- pass_: str = FieldInfo(alias="PASS")
-
-
class SummaryARCResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef149
diff --git a/src/cloudflare/types/radar/email/routing/summary_dkim_response.py b/src/cloudflare/types/radar/email/routing/summary_dkim_response.py
index 703c34db85d..59245dc61ed 100644
--- a/src/cloudflare/types/radar/email/routing/summary_dkim_response.py
+++ b/src/cloudflare/types/radar/email/routing/summary_dkim_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_149 import UnnamedSchemaRef149
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryDKIMResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryDKIMResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,15 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- fail: str = FieldInfo(alias="FAIL")
-
- none: str = FieldInfo(alias="NONE")
-
- pass_: str = FieldInfo(alias="PASS")
-
-
class SummaryDKIMResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef149
diff --git a/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py b/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py
index 05b679b110d..926bf9e3b2a 100644
--- a/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py
+++ b/src/cloudflare/types/radar/email/routing/summary_dmarc_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_149 import UnnamedSchemaRef149
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryDMARCResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryDMARCResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,15 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- fail: str = FieldInfo(alias="FAIL")
-
- none: str = FieldInfo(alias="NONE")
-
- pass_: str = FieldInfo(alias="PASS")
-
-
class SummaryDMARCResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef149
diff --git a/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py b/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py
index 61c4957355f..76626ac5f3a 100644
--- a/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py
+++ b/src/cloudflare/types/radar/email/routing/summary_encrypted_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryEncryptedResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryEncryptedResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py b/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py
index b4f96b8667e..68ef0940e70 100644
--- a/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py
+++ b/src/cloudflare/types/radar/email/routing/summary_ip_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryIPVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryIPVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/routing/summary_spf_response.py b/src/cloudflare/types/radar/email/routing/summary_spf_response.py
index b379f447301..a059e86c959 100644
--- a/src/cloudflare/types/radar/email/routing/summary_spf_response.py
+++ b/src/cloudflare/types/radar/email/routing/summary_spf_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_149 import UnnamedSchemaRef149
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummarySPFResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummarySPFResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,15 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- fail: str = FieldInfo(alias="FAIL")
-
- none: str = FieldInfo(alias="NONE")
-
- pass_: str = FieldInfo(alias="PASS")
-
-
class SummarySPFResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef149
diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py
index a719097fa78..ee4cbc32d3f 100644
--- a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py
+++ b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_150 import UnnamedSchemaRef150
-__all__ = ["TimeseriesGroupARCResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- fail: List[str] = FieldInfo(alias="FAIL")
-
- none: List[str] = FieldInfo(alias="NONE")
-
- pass_: List[str] = FieldInfo(alias="PASS")
+__all__ = ["TimeseriesGroupARCResponse"]
class TimeseriesGroupARCResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef150
diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py
index 2431244bb4c..8ce87370328 100644
--- a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py
+++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_150 import UnnamedSchemaRef150
-__all__ = ["TimeseriesGroupDKIMResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- fail: List[str] = FieldInfo(alias="FAIL")
-
- none: List[str] = FieldInfo(alias="NONE")
-
- pass_: List[str] = FieldInfo(alias="PASS")
+__all__ = ["TimeseriesGroupDKIMResponse"]
class TimeseriesGroupDKIMResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef150
diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py
index f00574e15d6..6e8593deb0e 100644
--- a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py
+++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_150 import UnnamedSchemaRef150
-__all__ = ["TimeseriesGroupDMARCResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- fail: List[str] = FieldInfo(alias="FAIL")
-
- none: List[str] = FieldInfo(alias="NONE")
-
- pass_: List[str] = FieldInfo(alias="PASS")
+__all__ = ["TimeseriesGroupDMARCResponse"]
class TimeseriesGroupDMARCResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef150
diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py
index 772609a5048..e7ffc4790c0 100644
--- a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py
+++ b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_150 import UnnamedSchemaRef150
-__all__ = ["TimeseriesGroupSPFResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- fail: List[str] = FieldInfo(alias="FAIL")
-
- none: List[str] = FieldInfo(alias="NONE")
-
- pass_: List[str] = FieldInfo(alias="PASS")
+__all__ = ["TimeseriesGroupSPFResponse"]
class TimeseriesGroupSPFResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef150
diff --git a/src/cloudflare/types/radar/email/security/summary_arc_response.py b/src/cloudflare/types/radar/email/security/summary_arc_response.py
index 4060b61777b..edb300cae5b 100644
--- a/src/cloudflare/types/radar/email/security/summary_arc_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_arc_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_149 import UnnamedSchemaRef149
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryARCResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryARCResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,15 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- fail: str = FieldInfo(alias="FAIL")
-
- none: str = FieldInfo(alias="NONE")
-
- pass_: str = FieldInfo(alias="PASS")
-
-
class SummaryARCResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef149
diff --git a/src/cloudflare/types/radar/email/security/summary_dkim_response.py b/src/cloudflare/types/radar/email/security/summary_dkim_response.py
index 703c34db85d..59245dc61ed 100644
--- a/src/cloudflare/types/radar/email/security/summary_dkim_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_dkim_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_149 import UnnamedSchemaRef149
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryDKIMResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryDKIMResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,15 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- fail: str = FieldInfo(alias="FAIL")
-
- none: str = FieldInfo(alias="NONE")
-
- pass_: str = FieldInfo(alias="PASS")
-
-
class SummaryDKIMResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef149
diff --git a/src/cloudflare/types/radar/email/security/summary_dmarc_response.py b/src/cloudflare/types/radar/email/security/summary_dmarc_response.py
index 05b679b110d..926bf9e3b2a 100644
--- a/src/cloudflare/types/radar/email/security/summary_dmarc_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_dmarc_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_149 import UnnamedSchemaRef149
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryDMARCResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryDMARCResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,15 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- fail: str = FieldInfo(alias="FAIL")
-
- none: str = FieldInfo(alias="NONE")
-
- pass_: str = FieldInfo(alias="PASS")
-
-
class SummaryDMARCResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef149
diff --git a/src/cloudflare/types/radar/email/security/summary_malicious_response.py b/src/cloudflare/types/radar/email/security/summary_malicious_response.py
index 011e9d8e9a3..47e7b2debe7 100644
--- a/src/cloudflare/types/radar/email/security/summary_malicious_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_malicious_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryMaliciousResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryMaliciousResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/security/summary_spam_response.py b/src/cloudflare/types/radar/email/security/summary_spam_response.py
index cf8250de214..9083340bd8c 100644
--- a/src/cloudflare/types/radar/email/security/summary_spam_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_spam_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummarySpamResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummarySpamResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/security/summary_spf_response.py b/src/cloudflare/types/radar/email/security/summary_spf_response.py
index b379f447301..a059e86c959 100644
--- a/src/cloudflare/types/radar/email/security/summary_spf_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_spf_response.py
@@ -1,54 +1,25 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_149 import UnnamedSchemaRef149
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummarySPFResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummarySPFResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
@@ -57,15 +28,7 @@ class Meta(BaseModel):
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Summary0(BaseModel):
- fail: str = FieldInfo(alias="FAIL")
-
- none: str = FieldInfo(alias="NONE")
-
- pass_: str = FieldInfo(alias="PASS")
-
-
class SummarySPFResponse(BaseModel):
meta: Meta
- summary_0: Summary0
+ summary_0: UnnamedSchemaRef149
diff --git a/src/cloudflare/types/radar/email/security/summary_spoof_response.py b/src/cloudflare/types/radar/email/security/summary_spoof_response.py
index cd55371280b..7e4b407b586 100644
--- a/src/cloudflare/types/radar/email/security/summary_spoof_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_spoof_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummarySpoofResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummarySpoofResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/security/summary_threat_category_response.py b/src/cloudflare/types/radar/email/security/summary_threat_category_response.py
index 0ed00cba9cc..184e587a4fe 100644
--- a/src/cloudflare/types/radar/email/security/summary_threat_category_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_threat_category_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryThreatCategoryResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryThreatCategoryResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/security/summary_tls_version_response.py b/src/cloudflare/types/radar/email/security/summary_tls_version_response.py
index ad9e0d52245..f19982681bf 100644
--- a/src/cloudflare/types/radar/email/security/summary_tls_version_response.py
+++ b/src/cloudflare/types/radar/email/security/summary_tls_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryTLSVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryTLSVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py
index a719097fa78..ee4cbc32d3f 100644
--- a/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py
+++ b/src/cloudflare/types/radar/email/security/timeseries_group_arc_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_150 import UnnamedSchemaRef150
-__all__ = ["TimeseriesGroupARCResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- fail: List[str] = FieldInfo(alias="FAIL")
-
- none: List[str] = FieldInfo(alias="NONE")
-
- pass_: List[str] = FieldInfo(alias="PASS")
+__all__ = ["TimeseriesGroupARCResponse"]
class TimeseriesGroupARCResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef150
diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py
index 2431244bb4c..8ce87370328 100644
--- a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py
+++ b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_150 import UnnamedSchemaRef150
-__all__ = ["TimeseriesGroupDKIMResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- fail: List[str] = FieldInfo(alias="FAIL")
-
- none: List[str] = FieldInfo(alias="NONE")
-
- pass_: List[str] = FieldInfo(alias="PASS")
+__all__ = ["TimeseriesGroupDKIMResponse"]
class TimeseriesGroupDKIMResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef150
diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py
index f00574e15d6..6e8593deb0e 100644
--- a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py
+++ b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_150 import UnnamedSchemaRef150
-__all__ = ["TimeseriesGroupDMARCResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- fail: List[str] = FieldInfo(alias="FAIL")
-
- none: List[str] = FieldInfo(alias="NONE")
-
- pass_: List[str] = FieldInfo(alias="PASS")
+__all__ = ["TimeseriesGroupDMARCResponse"]
class TimeseriesGroupDMARCResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef150
diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py b/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py
index 772609a5048..e7ffc4790c0 100644
--- a/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py
+++ b/src/cloudflare/types/radar/email/security/timeseries_group_spf_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ...unnamed_schema_ref_150 import UnnamedSchemaRef150
-__all__ = ["TimeseriesGroupSPFResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- fail: List[str] = FieldInfo(alias="FAIL")
-
- none: List[str] = FieldInfo(alias="NONE")
-
- pass_: List[str] = FieldInfo(alias="PASS")
+__all__ = ["TimeseriesGroupSPFResponse"]
class TimeseriesGroupSPFResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef150
diff --git a/src/cloudflare/types/radar/email/security/top/tld_get_response.py b/src/cloudflare/types/radar/email/security/top/tld_get_response.py
index 723c1abf50c..ffef1a50ed5 100644
--- a/src/cloudflare/types/radar/email/security/top/tld_get_response.py
+++ b/src/cloudflare/types/radar/email/security/top/tld_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......_models import BaseModel
+from .....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from .....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TldGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TldGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py
index 70db6c049ff..6bc6d0c566d 100644
--- a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py
+++ b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......._models import BaseModel
+from ......unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ......unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "MaliciousGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["MaliciousGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py
index c82df6a2d66..3dd7df26857 100644
--- a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py
+++ b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......._models import BaseModel
+from ......unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ......unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["SpamGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SpamGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py
index 9cd4c157ef0..659fe588241 100644
--- a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py
+++ b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ......._models import BaseModel
+from ......unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ......unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["SpoofGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SpoofGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/entities/asn_rel_response.py b/src/cloudflare/types/radar/entities/asn_rel_response.py
index f6c855e3438..c17cce12b08 100644
--- a/src/cloudflare/types/radar/entities/asn_rel_response.py
+++ b/src/cloudflare/types/radar/entities/asn_rel_response.py
@@ -3,16 +3,9 @@
from typing import List
from ...._models import BaseModel
+from ...unnamed_schema_ref_130 import UnnamedSchemaRef130
-__all__ = ["ASNRelResponse", "Meta", "Rel"]
-
-
-class Meta(BaseModel):
- data_time: str
-
- query_time: str
-
- total_peers: int
+__all__ = ["ASNRelResponse", "Rel"]
class Rel(BaseModel):
@@ -32,6 +25,6 @@ class Rel(BaseModel):
class ASNRelResponse(BaseModel):
- meta: Meta
+ meta: UnnamedSchemaRef130
rels: List[Rel]
diff --git a/src/cloudflare/types/radar/http/ase_get_response.py b/src/cloudflare/types/radar/http/ase_get_response.py
index 8daef594897..991aab1e32b 100644
--- a/src/cloudflare/types/radar/http/ase_get_response.py
+++ b/src/cloudflare/types/radar/http/ase_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["AseGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["AseGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/ases/bot_class_get_response.py b/src/cloudflare/types/radar/http/ases/bot_class_get_response.py
index f31bfef2e86..0366924b266 100644
--- a/src/cloudflare/types/radar/http/ases/bot_class_get_response.py
+++ b/src/cloudflare/types/radar/http/ases/bot_class_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["BotClassGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["BotClassGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/ases/device_type_get_response.py b/src/cloudflare/types/radar/http/ases/device_type_get_response.py
index f6392b8020c..7307655bf07 100644
--- a/src/cloudflare/types/radar/http/ases/device_type_get_response.py
+++ b/src/cloudflare/types/radar/http/ases/device_type_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "DeviceTypeGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["DeviceTypeGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/ases/http_method_get_response.py b/src/cloudflare/types/radar/http/ases/http_method_get_response.py
index ea15fbf1f95..9f988b1c4c8 100644
--- a/src/cloudflare/types/radar/http/ases/http_method_get_response.py
+++ b/src/cloudflare/types/radar/http/ases/http_method_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "HTTPMethodGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["HTTPMethodGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py b/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py
index 14a1768cd08..6cd7122cc44 100644
--- a/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py
+++ b/src/cloudflare/types/radar/http/ases/http_protocol_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "HTTPProtocolGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["HTTPProtocolGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/ases/ip_version_get_response.py b/src/cloudflare/types/radar/http/ases/ip_version_get_response.py
index f2af7dd18a2..d84c63cb537 100644
--- a/src/cloudflare/types/radar/http/ases/ip_version_get_response.py
+++ b/src/cloudflare/types/radar/http/ases/ip_version_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "IPVersionGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["IPVersionGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/ases/os_get_response.py b/src/cloudflare/types/radar/http/ases/os_get_response.py
index 1bbbd47f758..8a4d759bdba 100644
--- a/src/cloudflare/types/radar/http/ases/os_get_response.py
+++ b/src/cloudflare/types/radar/http/ases/os_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["OSGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["OSGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/ases/tls_version_get_response.py b/src/cloudflare/types/radar/http/ases/tls_version_get_response.py
index 132880a8088..90e75588dde 100644
--- a/src/cloudflare/types/radar/http/ases/tls_version_get_response.py
+++ b/src/cloudflare/types/radar/http/ases/tls_version_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TLSVersionGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TLSVersionGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/location_get_response.py b/src/cloudflare/types/radar/http/location_get_response.py
index fbed118e87d..fcaa711580e 100644
--- a/src/cloudflare/types/radar/http/location_get_response.py
+++ b/src/cloudflare/types/radar/http/location_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["LocationGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["LocationGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/locations/bot_class_get_response.py b/src/cloudflare/types/radar/http/locations/bot_class_get_response.py
index 929152ac6d2..623fd2ad230 100644
--- a/src/cloudflare/types/radar/http/locations/bot_class_get_response.py
+++ b/src/cloudflare/types/radar/http/locations/bot_class_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["BotClassGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["BotClassGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/locations/device_type_get_response.py b/src/cloudflare/types/radar/http/locations/device_type_get_response.py
index fe44c5066f6..db1cb265302 100644
--- a/src/cloudflare/types/radar/http/locations/device_type_get_response.py
+++ b/src/cloudflare/types/radar/http/locations/device_type_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "DeviceTypeGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["DeviceTypeGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/locations/http_method_get_response.py b/src/cloudflare/types/radar/http/locations/http_method_get_response.py
index cc7fa8f3096..7fcaf80b0a1 100644
--- a/src/cloudflare/types/radar/http/locations/http_method_get_response.py
+++ b/src/cloudflare/types/radar/http/locations/http_method_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "HTTPMethodGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["HTTPMethodGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py b/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py
index 487174e2c48..77f6eb8eba1 100644
--- a/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py
+++ b/src/cloudflare/types/radar/http/locations/http_protocol_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "HTTPProtocolGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["HTTPProtocolGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/locations/ip_version_get_response.py b/src/cloudflare/types/radar/http/locations/ip_version_get_response.py
index 148244ac334..36000b2e863 100644
--- a/src/cloudflare/types/radar/http/locations/ip_version_get_response.py
+++ b/src/cloudflare/types/radar/http/locations/ip_version_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "IPVersionGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["IPVersionGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/locations/os_get_response.py b/src/cloudflare/types/radar/http/locations/os_get_response.py
index 0696ba3b166..7efa823fb35 100644
--- a/src/cloudflare/types/radar/http/locations/os_get_response.py
+++ b/src/cloudflare/types/radar/http/locations/os_get_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["OSGetResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["OSGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/locations/tls_version_get_response.py b/src/cloudflare/types/radar/http/locations/tls_version_get_response.py
index 158ddcdffaf..c7158ca7abf 100644
--- a/src/cloudflare/types/radar/http/locations/tls_version_get_response.py
+++ b/src/cloudflare/types/radar/http/locations/tls_version_get_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TLSVersionGetResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TLSVersionGetResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/summary_bot_class_response.py b/src/cloudflare/types/radar/http/summary_bot_class_response.py
index 133e6e9b160..14a06b34331 100644
--- a/src/cloudflare/types/radar/http/summary_bot_class_response.py
+++ b/src/cloudflare/types/radar/http/summary_bot_class_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryBotClassResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryBotClassResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/summary_device_type_response.py b/src/cloudflare/types/radar/http/summary_device_type_response.py
index b59e448a726..953aba81e3c 100644
--- a/src/cloudflare/types/radar/http/summary_device_type_response.py
+++ b/src/cloudflare/types/radar/http/summary_device_type_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryDeviceTypeResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryDeviceTypeResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/summary_http_protocol_response.py b/src/cloudflare/types/radar/http/summary_http_protocol_response.py
index 5777d29f25d..8e8bc4436c7 100644
--- a/src/cloudflare/types/radar/http/summary_http_protocol_response.py
+++ b/src/cloudflare/types/radar/http/summary_http_protocol_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryHTTPProtocolResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryHTTPProtocolResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/summary_http_version_response.py b/src/cloudflare/types/radar/http/summary_http_version_response.py
index f8c1e4f3f9e..52031504363 100644
--- a/src/cloudflare/types/radar/http/summary_http_version_response.py
+++ b/src/cloudflare/types/radar/http/summary_http_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryHTTPVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryHTTPVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/summary_ip_version_response.py b/src/cloudflare/types/radar/http/summary_ip_version_response.py
index e8515c06e80..cdfb6c0e58c 100644
--- a/src/cloudflare/types/radar/http/summary_ip_version_response.py
+++ b/src/cloudflare/types/radar/http/summary_ip_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryIPVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryIPVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/summary_os_response.py b/src/cloudflare/types/radar/http/summary_os_response.py
index eba9ffc9621..201368d5ed6 100644
--- a/src/cloudflare/types/radar/http/summary_os_response.py
+++ b/src/cloudflare/types/radar/http/summary_os_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryOSResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryOSResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/summary_tls_version_response.py b/src/cloudflare/types/radar/http/summary_tls_version_response.py
index 67c78083050..7da9bc23609 100644
--- a/src/cloudflare/types/radar/http/summary_tls_version_response.py
+++ b/src/cloudflare/types/radar/http/summary_tls_version_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SummaryTLSVersionResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SummaryTLSVersionResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py b/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py
index 560271c2fd8..f35f3bbef09 100644
--- a/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py
+++ b/src/cloudflare/types/radar/http/timeseries_group_ip_version_response.py
@@ -1,23 +1,14 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List
-from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_53 import UnnamedSchemaRef53
-__all__ = ["TimeseriesGroupIPVersionResponse", "Serie0"]
-
-
-class Serie0(BaseModel):
- i_pv4: List[str] = FieldInfo(alias="IPv4")
-
- i_pv6: List[str] = FieldInfo(alias="IPv6")
-
- timestamps: List[str]
+__all__ = ["TimeseriesGroupIPVersionResponse"]
class TimeseriesGroupIPVersionResponse(BaseModel):
meta: object
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef53
diff --git a/src/cloudflare/types/radar/http/top_browser_families_response.py b/src/cloudflare/types/radar/http/top_browser_families_response.py
index f2f6809d5d2..e76a8b654e5 100644
--- a/src/cloudflare/types/radar/http/top_browser_families_response.py
+++ b/src/cloudflare/types/radar/http/top_browser_families_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TopBrowserFamiliesResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopBrowserFamiliesResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/http/top_browsers_response.py b/src/cloudflare/types/radar/http/top_browsers_response.py
index f5a101636bb..b36eb3e89c7 100644
--- a/src/cloudflare/types/radar/http/top_browsers_response.py
+++ b/src/cloudflare/types/radar/http/top_browsers_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopBrowsersResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopBrowsersResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/netflow_timeseries_response.py b/src/cloudflare/types/radar/netflow_timeseries_response.py
index d58a81a7360..45a298364a8 100644
--- a/src/cloudflare/types/radar/netflow_timeseries_response.py
+++ b/src/cloudflare/types/radar/netflow_timeseries_response.py
@@ -6,43 +6,15 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
+from ..unnamed_schema_ref_129 import UnnamedSchemaRef129
+from ..unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ..unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "NetflowTimeseriesResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Serie0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["NetflowTimeseriesResponse", "Meta", "MetaConfidenceInfo"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
@@ -50,20 +22,14 @@ class MetaConfidenceInfo(BaseModel):
class Meta(BaseModel):
agg_interval: str = FieldInfo(alias="aggInterval")
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: datetime = FieldInfo(alias="lastUpdated")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
-class Serie0(BaseModel):
- timestamps: List[datetime]
-
- values: List[str]
-
-
class NetflowTimeseriesResponse(BaseModel):
meta: Meta
- serie_0: Serie0
+ serie_0: UnnamedSchemaRef129
diff --git a/src/cloudflare/types/radar/quality/iqi_summary_response.py b/src/cloudflare/types/radar/quality/iqi_summary_response.py
index 9b9c2a25df7..7be8d09366f 100644
--- a/src/cloudflare/types/radar/quality/iqi_summary_response.py
+++ b/src/cloudflare/types/radar/quality/iqi_summary_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "IQISummaryResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["IQISummaryResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/quality/speed/top_ases_response.py b/src/cloudflare/types/radar/quality/speed/top_ases_response.py
index 1f6fdf10cac..51c4560c310 100644
--- a/src/cloudflare/types/radar/quality/speed/top_ases_response.py
+++ b/src/cloudflare/types/radar/quality/speed/top_ases_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopAsesResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopAsesResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/quality/speed/top_locations_response.py b/src/cloudflare/types/radar/quality/speed/top_locations_response.py
index 588ddd56f4d..7bc14628b0e 100644
--- a/src/cloudflare/types/radar/quality/speed/top_locations_response.py
+++ b/src/cloudflare/types/radar/quality/speed/top_locations_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ....._models import BaseModel
+from ....unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ....unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TopLocationsResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopLocationsResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/quality/speed_summary_response.py b/src/cloudflare/types/radar/quality/speed_summary_response.py
index a549509d36d..f6ce013edf3 100644
--- a/src/cloudflare/types/radar/quality/speed_summary_response.py
+++ b/src/cloudflare/types/radar/quality/speed_summary_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "SpeedSummaryResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Summary0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["SpeedSummaryResponse", "Meta", "MetaConfidenceInfo", "Summary0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
last_updated: str = FieldInfo(alias="lastUpdated")
diff --git a/src/cloudflare/types/radar/ranking_timeseries_groups_response.py b/src/cloudflare/types/radar/ranking_timeseries_groups_response.py
index 7b5aeecff77..de95e8e8fbd 100644
--- a/src/cloudflare/types/radar/ranking_timeseries_groups_response.py
+++ b/src/cloudflare/types/radar/ranking_timeseries_groups_response.py
@@ -1,25 +1,17 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import TYPE_CHECKING, List, Union
-from datetime import datetime
from pydantic import Field as FieldInfo
from ..._models import BaseModel
+from ..unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["RankingTimeseriesGroupsResponse", "Meta", "MetaDateRange", "Serie0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
+__all__ = ["RankingTimeseriesGroupsResponse", "Meta", "Serie0"]
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
class Serie0(BaseModel):
diff --git a/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py b/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py
index 3cf6ca01da7..f19b5fcc6ba 100644
--- a/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py
+++ b/src/cloudflare/types/radar/traffic_anomalies/location_get_response.py
@@ -5,17 +5,10 @@
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_160 import UnnamedSchemaRef160
-__all__ = ["LocationGetResponse", "TrafficAnomaly"]
-
-
-class TrafficAnomaly(BaseModel):
- client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2")
-
- client_country_name: str = FieldInfo(alias="clientCountryName")
-
- value: str
+__all__ = ["LocationGetResponse"]
class LocationGetResponse(BaseModel):
- traffic_anomalies: List[TrafficAnomaly] = FieldInfo(alias="trafficAnomalies")
+ traffic_anomalies: List[UnnamedSchemaRef160] = FieldInfo(alias="trafficAnomalies")
diff --git a/src/cloudflare/types/radar/traffic_anomaly_get_response.py b/src/cloudflare/types/radar/traffic_anomaly_get_response.py
index ba231bfa22c..1fe652bae04 100644
--- a/src/cloudflare/types/radar/traffic_anomaly_get_response.py
+++ b/src/cloudflare/types/radar/traffic_anomaly_get_response.py
@@ -5,20 +5,9 @@
from pydantic import Field as FieldInfo
from ..._models import BaseModel
+from ..unnamed_schema_ref_106 import UnnamedSchemaRef106
-__all__ = [
- "TrafficAnomalyGetResponse",
- "TrafficAnomaly",
- "TrafficAnomalyASNDetails",
- "TrafficAnomalyASNDetailsLocations",
- "TrafficAnomalyLocationDetails",
-]
-
-
-class TrafficAnomalyASNDetailsLocations(BaseModel):
- code: str
-
- name: str
+__all__ = ["TrafficAnomalyGetResponse", "TrafficAnomaly", "TrafficAnomalyASNDetails"]
class TrafficAnomalyASNDetails(BaseModel):
@@ -26,13 +15,7 @@ class TrafficAnomalyASNDetails(BaseModel):
name: str
- locations: Optional[TrafficAnomalyASNDetailsLocations] = None
-
-
-class TrafficAnomalyLocationDetails(BaseModel):
- code: str
-
- name: str
+ locations: Optional[UnnamedSchemaRef106] = None
class TrafficAnomaly(BaseModel):
@@ -48,7 +31,7 @@ class TrafficAnomaly(BaseModel):
end_date: Optional[str] = FieldInfo(alias="endDate", default=None)
- location_details: Optional[TrafficAnomalyLocationDetails] = FieldInfo(alias="locationDetails", default=None)
+ location_details: Optional[UnnamedSchemaRef106] = FieldInfo(alias="locationDetails", default=None)
visible_in_data_sources: Optional[List[str]] = FieldInfo(alias="visibleInDataSources", default=None)
diff --git a/src/cloudflare/types/radar/unnamed_schema_ref_149.py b/src/cloudflare/types/radar/unnamed_schema_ref_149.py
new file mode 100644
index 00000000000..abda4fe6744
--- /dev/null
+++ b/src/cloudflare/types/radar/unnamed_schema_ref_149.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef149"]
+
+
+class UnnamedSchemaRef149(BaseModel):
+ fail: str = FieldInfo(alias="FAIL")
+
+ none: str = FieldInfo(alias="NONE")
+
+ pass_: str = FieldInfo(alias="PASS")
diff --git a/src/cloudflare/types/radar/unnamed_schema_ref_150.py b/src/cloudflare/types/radar/unnamed_schema_ref_150.py
new file mode 100644
index 00000000000..9ec81770242
--- /dev/null
+++ b/src/cloudflare/types/radar/unnamed_schema_ref_150.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef150"]
+
+
+class UnnamedSchemaRef150(BaseModel):
+ fail: List[str] = FieldInfo(alias="FAIL")
+
+ none: List[str] = FieldInfo(alias="NONE")
+
+ pass_: List[str] = FieldInfo(alias="PASS")
diff --git a/src/cloudflare/types/radar/verified_bots/top_bots_response.py b/src/cloudflare/types/radar/verified_bots/top_bots_response.py
index b75b4174bc9..3f8879a372e 100644
--- a/src/cloudflare/types/radar/verified_bots/top_bots_response.py
+++ b/src/cloudflare/types/radar/verified_bots/top_bots_response.py
@@ -1,47 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = ["TopBotsResponse", "Meta", "MetaDateRange", "MetaConfidenceInfo", "MetaConfidenceInfoAnnotation", "Top0"]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopBotsResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
diff --git a/src/cloudflare/types/radar/verified_bots/top_categories_response.py b/src/cloudflare/types/radar/verified_bots/top_categories_response.py
index ddc083c00ac..a882f9d0d09 100644
--- a/src/cloudflare/types/radar/verified_bots/top_categories_response.py
+++ b/src/cloudflare/types/radar/verified_bots/top_categories_response.py
@@ -1,54 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from datetime import datetime
from pydantic import Field as FieldInfo
from ...._models import BaseModel
+from ...unnamed_schema_ref_174 import UnnamedSchemaRef174
+from ...unnamed_schema_ref_175 import UnnamedSchemaRef175
-__all__ = [
- "TopCategoriesResponse",
- "Meta",
- "MetaDateRange",
- "MetaConfidenceInfo",
- "MetaConfidenceInfoAnnotation",
- "Top0",
-]
-
-
-class MetaDateRange(BaseModel):
- end_time: datetime = FieldInfo(alias="endTime")
- """Adjusted end of date range."""
-
- start_time: datetime = FieldInfo(alias="startTime")
- """Adjusted start of date range."""
-
-
-class MetaConfidenceInfoAnnotation(BaseModel):
- data_source: str = FieldInfo(alias="dataSource")
-
- description: str
-
- event_type: str = FieldInfo(alias="eventType")
-
- is_instantaneous: object = FieldInfo(alias="isInstantaneous")
-
- end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
-
- linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
-
- start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
+__all__ = ["TopCategoriesResponse", "Meta", "MetaConfidenceInfo", "Top0"]
class MetaConfidenceInfo(BaseModel):
- annotations: Optional[List[MetaConfidenceInfoAnnotation]] = None
+ annotations: Optional[List[UnnamedSchemaRef174]] = None
level: Optional[int] = None
class Meta(BaseModel):
- date_range: List[MetaDateRange] = FieldInfo(alias="dateRange")
+ date_range: List[UnnamedSchemaRef175] = FieldInfo(alias="dateRange")
confidence_info: Optional[MetaConfidenceInfo] = FieldInfo(alias="confidenceInfo", default=None)
diff --git a/src/cloudflare/types/rate_limit_create_response.py b/src/cloudflare/types/rate_limit_create_response.py
deleted file mode 100644
index 259d16d85ed..00000000000
--- a/src/cloudflare/types/rate_limit_create_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["RateLimitCreateResponse"]
-
-RateLimitCreateResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/rate_limit_edit_response.py b/src/cloudflare/types/rate_limit_edit_response.py
deleted file mode 100644
index 8cbc4d42071..00000000000
--- a/src/cloudflare/types/rate_limit_edit_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["RateLimitEditResponse"]
-
-RateLimitEditResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/rate_limit_get_response.py b/src/cloudflare/types/rate_limit_get_response.py
deleted file mode 100644
index a49c1c80fc6..00000000000
--- a/src/cloudflare/types/rate_limit_get_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["RateLimitGetResponse"]
-
-RateLimitGetResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/ruleset_create_params.py b/src/cloudflare/types/ruleset_create_params.py
index 919e13429fa..42f9caae0b2 100644
--- a/src/cloudflare/types/ruleset_create_params.py
+++ b/src/cloudflare/types/ruleset_create_params.py
@@ -5,25 +5,23 @@
from typing import Dict, List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from ..types import shared_params
+
__all__ = [
"RulesetCreateParams",
"Rule",
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -92,11 +90,6 @@ class RuleRulesetsBlockRuleActionParameters(TypedDict, total=False):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -116,7 +109,7 @@ class RuleRulesetsBlockRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsBlockRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -200,11 +193,6 @@ class RuleRulesetsExecuteRuleActionParameters(TypedDict, total=False):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -224,18 +212,13 @@ class RuleRulesetsExecuteRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsExecuteRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -255,7 +238,7 @@ class RuleRulesetsLogRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsLogRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -317,11 +300,6 @@ class RuleRulesetsSkipRuleActionParameters(TypedDict, total=False):
"""
-class RuleRulesetsSkipRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -341,7 +319,7 @@ class RuleRulesetsSkipRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsSkipRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/ruleset_create_response.py b/src/cloudflare/types/ruleset_create_response.py
index 94bbc5b1382..5db43f26ec3 100644
--- a/src/cloudflare/types/ruleset_create_response.py
+++ b/src/cloudflare/types/ruleset_create_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from .shared import Logging
from .._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/ruleset_get_response.py b/src/cloudflare/types/ruleset_get_response.py
index 4a2f5a59ce8..413dce87839 100644
--- a/src/cloudflare/types/ruleset_get_response.py
+++ b/src/cloudflare/types/ruleset_get_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from .shared import Logging
from .._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/ruleset_update_params.py b/src/cloudflare/types/ruleset_update_params.py
index 2d24b569df0..ce5feee4b6d 100644
--- a/src/cloudflare/types/ruleset_update_params.py
+++ b/src/cloudflare/types/ruleset_update_params.py
@@ -5,25 +5,23 @@
from typing import Dict, List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from ..types import shared_params
+
__all__ = [
"RulesetUpdateParams",
"Rule",
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -90,11 +88,6 @@ class RuleRulesetsBlockRuleActionParameters(TypedDict, total=False):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -114,7 +107,7 @@ class RuleRulesetsBlockRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsBlockRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -198,11 +191,6 @@ class RuleRulesetsExecuteRuleActionParameters(TypedDict, total=False):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -222,18 +210,13 @@ class RuleRulesetsExecuteRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsExecuteRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -253,7 +236,7 @@ class RuleRulesetsLogRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsLogRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -315,11 +298,6 @@ class RuleRulesetsSkipRuleActionParameters(TypedDict, total=False):
"""
-class RuleRulesetsSkipRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -339,7 +317,7 @@ class RuleRulesetsSkipRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsSkipRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/ruleset_update_response.py b/src/cloudflare/types/ruleset_update_response.py
index 98e79a07087..c710dbf576a 100644
--- a/src/cloudflare/types/ruleset_update_response.py
+++ b/src/cloudflare/types/ruleset_update_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from .shared import Logging
from .._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/phase_get_response.py b/src/cloudflare/types/rulesets/phase_get_response.py
index 65dff1b0698..242b61e4dce 100644
--- a/src/cloudflare/types/rulesets/phase_get_response.py
+++ b/src/cloudflare/types/rulesets/phase_get_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import Logging
from ..._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/phase_update_params.py b/src/cloudflare/types/rulesets/phase_update_params.py
index a5a40297b50..affacd4914f 100644
--- a/src/cloudflare/types/rulesets/phase_update_params.py
+++ b/src/cloudflare/types/rulesets/phase_update_params.py
@@ -5,25 +5,23 @@
from typing import Dict, List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from ...types import shared_params
+
__all__ = [
"PhaseUpdateParams",
"Rule",
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -90,11 +88,6 @@ class RuleRulesetsBlockRuleActionParameters(TypedDict, total=False):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -114,7 +107,7 @@ class RuleRulesetsBlockRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsBlockRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -198,11 +191,6 @@ class RuleRulesetsExecuteRuleActionParameters(TypedDict, total=False):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -222,18 +210,13 @@ class RuleRulesetsExecuteRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsExecuteRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -253,7 +236,7 @@ class RuleRulesetsLogRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsLogRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -315,11 +298,6 @@ class RuleRulesetsSkipRuleActionParameters(TypedDict, total=False):
"""
-class RuleRulesetsSkipRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(TypedDict, total=False):
id: str
"""The unique ID of the rule."""
@@ -339,7 +317,7 @@ class RuleRulesetsSkipRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RuleRulesetsSkipRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/rulesets/phase_update_response.py b/src/cloudflare/types/rulesets/phase_update_response.py
index 7d379b726af..40af85f6eb4 100644
--- a/src/cloudflare/types/rulesets/phase_update_response.py
+++ b/src/cloudflare/types/rulesets/phase_update_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import Logging
from ..._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/phases/version_get_response.py b/src/cloudflare/types/rulesets/phases/version_get_response.py
index 9255b7f1b92..9cc6e6e807d 100644
--- a/src/cloudflare/types/rulesets/phases/version_get_response.py
+++ b/src/cloudflare/types/rulesets/phases/version_get_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ...shared import Logging
from ...._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/rule_create_params.py b/src/cloudflare/types/rulesets/rule_create_params.py
index 3a8867ac974..26e93ea9fdf 100644
--- a/src/cloudflare/types/rulesets/rule_create_params.py
+++ b/src/cloudflare/types/rulesets/rule_create_params.py
@@ -5,24 +5,22 @@
from typing import Dict, List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from ...types import shared_params
+
__all__ = [
"RuleCreateParams",
"RulesetsBlockRule",
"RulesetsBlockRuleActionParameters",
"RulesetsBlockRuleActionParametersResponse",
- "RulesetsBlockRuleLogging",
"RulesetsExecuteRule",
"RulesetsExecuteRuleActionParameters",
"RulesetsExecuteRuleActionParametersMatchedData",
"RulesetsExecuteRuleActionParametersOverrides",
"RulesetsExecuteRuleActionParametersOverridesCategory",
"RulesetsExecuteRuleActionParametersOverridesRule",
- "RulesetsExecuteRuleLogging",
"RulesetsLogRule",
- "RulesetsLogRuleLogging",
"RulesetsSkipRule",
"RulesetsSkipRuleActionParameters",
- "RulesetsSkipRuleLogging",
]
@@ -51,7 +49,7 @@ class RulesetsBlockRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RulesetsBlockRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -74,11 +72,6 @@ class RulesetsBlockRuleActionParameters(TypedDict, total=False):
"""The response to show when the block is applied."""
-class RulesetsBlockRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RulesetsExecuteRule(TypedDict, total=False):
account_id: str
"""The Account ID to use for this endpoint. Mutually exclusive with the Zone ID."""
@@ -104,7 +97,7 @@ class RulesetsExecuteRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RulesetsExecuteRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -188,11 +181,6 @@ class RulesetsExecuteRuleActionParameters(TypedDict, total=False):
"""A set of overrides to apply to the target ruleset."""
-class RulesetsExecuteRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RulesetsLogRule(TypedDict, total=False):
account_id: str
"""The Account ID to use for this endpoint. Mutually exclusive with the Zone ID."""
@@ -218,18 +206,13 @@ class RulesetsLogRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RulesetsLogRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
"""The reference of the rule (the rule ID by default)."""
-class RulesetsLogRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RulesetsSkipRule(TypedDict, total=False):
account_id: str
"""The Account ID to use for this endpoint. Mutually exclusive with the Zone ID."""
@@ -255,7 +238,7 @@ class RulesetsSkipRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RulesetsSkipRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -317,9 +300,4 @@ class RulesetsSkipRuleActionParameters(TypedDict, total=False):
"""
-class RulesetsSkipRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
RuleCreateParams = Union[RulesetsBlockRule, RulesetsExecuteRule, RulesetsLogRule, RulesetsSkipRule]
diff --git a/src/cloudflare/types/rulesets/rule_create_response.py b/src/cloudflare/types/rulesets/rule_create_response.py
index b5229bf4d40..29f5df7156b 100644
--- a/src/cloudflare/types/rulesets/rule_create_response.py
+++ b/src/cloudflare/types/rulesets/rule_create_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import Logging
from ..._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/rule_delete_response.py b/src/cloudflare/types/rulesets/rule_delete_response.py
index 005278d1989..81cf4352479 100644
--- a/src/cloudflare/types/rulesets/rule_delete_response.py
+++ b/src/cloudflare/types/rulesets/rule_delete_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import Logging
from ..._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/rule_edit_params.py b/src/cloudflare/types/rulesets/rule_edit_params.py
index 4c92db407db..86ccc259473 100644
--- a/src/cloudflare/types/rulesets/rule_edit_params.py
+++ b/src/cloudflare/types/rulesets/rule_edit_params.py
@@ -5,24 +5,22 @@
from typing import Dict, List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from ...types import shared_params
+
__all__ = [
"RuleEditParams",
"RulesetsBlockRule",
"RulesetsBlockRuleActionParameters",
"RulesetsBlockRuleActionParametersResponse",
- "RulesetsBlockRuleLogging",
"RulesetsExecuteRule",
"RulesetsExecuteRuleActionParameters",
"RulesetsExecuteRuleActionParametersMatchedData",
"RulesetsExecuteRuleActionParametersOverrides",
"RulesetsExecuteRuleActionParametersOverridesCategory",
"RulesetsExecuteRuleActionParametersOverridesRule",
- "RulesetsExecuteRuleLogging",
"RulesetsLogRule",
- "RulesetsLogRuleLogging",
"RulesetsSkipRule",
"RulesetsSkipRuleActionParameters",
- "RulesetsSkipRuleLogging",
]
@@ -54,7 +52,7 @@ class RulesetsBlockRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RulesetsBlockRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -77,11 +75,6 @@ class RulesetsBlockRuleActionParameters(TypedDict, total=False):
"""The response to show when the block is applied."""
-class RulesetsBlockRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RulesetsExecuteRule(TypedDict, total=False):
ruleset_id: Required[str]
"""The unique ID of the ruleset."""
@@ -110,7 +103,7 @@ class RulesetsExecuteRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RulesetsExecuteRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -194,11 +187,6 @@ class RulesetsExecuteRuleActionParameters(TypedDict, total=False):
"""A set of overrides to apply to the target ruleset."""
-class RulesetsExecuteRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RulesetsLogRule(TypedDict, total=False):
ruleset_id: Required[str]
"""The unique ID of the ruleset."""
@@ -227,18 +215,13 @@ class RulesetsLogRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RulesetsLogRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
"""The reference of the rule (the rule ID by default)."""
-class RulesetsLogRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
class RulesetsSkipRule(TypedDict, total=False):
ruleset_id: Required[str]
"""The unique ID of the ruleset."""
@@ -267,7 +250,7 @@ class RulesetsSkipRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: RulesetsSkipRuleLogging
+ logging: shared_params.Logging
"""An object configuring the rule's logging behavior."""
ref: str
@@ -329,9 +312,4 @@ class RulesetsSkipRuleActionParameters(TypedDict, total=False):
"""
-class RulesetsSkipRuleLogging(TypedDict, total=False):
- enabled: Required[bool]
- """Whether to generate a log when the rule matches."""
-
-
RuleEditParams = Union[RulesetsBlockRule, RulesetsExecuteRule, RulesetsLogRule, RulesetsSkipRule]
diff --git a/src/cloudflare/types/rulesets/rule_edit_response.py b/src/cloudflare/types/rulesets/rule_edit_response.py
index 0bc4d960a69..00a6972b403 100644
--- a/src/cloudflare/types/rulesets/rule_edit_response.py
+++ b/src/cloudflare/types/rulesets/rule_edit_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import Logging
from ..._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/version_get_response.py b/src/cloudflare/types/rulesets/version_get_response.py
index 66b232547ca..7d3b0d572eb 100644
--- a/src/cloudflare/types/rulesets/version_get_response.py
+++ b/src/cloudflare/types/rulesets/version_get_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ..shared import Logging
from ..._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/versions/by_tag_get_response.py b/src/cloudflare/types/rulesets/versions/by_tag_get_response.py
index 1f926df94eb..46216aba8db 100644
--- a/src/cloudflare/types/rulesets/versions/by_tag_get_response.py
+++ b/src/cloudflare/types/rulesets/versions/by_tag_get_response.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ...shared import Logging
from ...._models import BaseModel
__all__ = [
@@ -12,19 +13,15 @@
"RuleRulesetsBlockRule",
"RuleRulesetsBlockRuleActionParameters",
"RuleRulesetsBlockRuleActionParametersResponse",
- "RuleRulesetsBlockRuleLogging",
"RuleRulesetsExecuteRule",
"RuleRulesetsExecuteRuleActionParameters",
"RuleRulesetsExecuteRuleActionParametersMatchedData",
"RuleRulesetsExecuteRuleActionParametersOverrides",
"RuleRulesetsExecuteRuleActionParametersOverridesCategory",
"RuleRulesetsExecuteRuleActionParametersOverridesRule",
- "RuleRulesetsExecuteRuleLogging",
"RuleRulesetsLogRule",
- "RuleRulesetsLogRuleLogging",
"RuleRulesetsSkipRule",
"RuleRulesetsSkipRuleActionParameters",
- "RuleRulesetsSkipRuleLogging",
]
@@ -44,11 +41,6 @@ class RuleRulesetsBlockRuleActionParameters(BaseModel):
"""The response to show when the block is applied."""
-class RuleRulesetsBlockRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsBlockRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -77,7 +69,7 @@ class RuleRulesetsBlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsBlockRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -161,11 +153,6 @@ class RuleRulesetsExecuteRuleActionParameters(BaseModel):
"""A set of overrides to apply to the target ruleset."""
-class RuleRulesetsExecuteRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsExecuteRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -194,18 +181,13 @@ class RuleRulesetsExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsExecuteRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
"""The reference of the rule (the rule ID by default)."""
-class RuleRulesetsLogRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsLogRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -234,7 +216,7 @@ class RuleRulesetsLogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsLogRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
@@ -300,11 +282,6 @@ class RuleRulesetsSkipRuleActionParameters(BaseModel):
"""
-class RuleRulesetsSkipRuleLogging(BaseModel):
- enabled: bool
- """Whether to generate a log when the rule matches."""
-
-
class RuleRulesetsSkipRule(BaseModel):
last_updated: datetime
"""The timestamp of when the rule was last modified."""
@@ -333,7 +310,7 @@ class RuleRulesetsSkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[RuleRulesetsSkipRuleLogging] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/secondary_dns/__init__.py b/src/cloudflare/types/secondary_dns/__init__.py
index 4f74d97b8cf..580bcfd952a 100644
--- a/src/cloudflare/types/secondary_dns/__init__.py
+++ b/src/cloudflare/types/secondary_dns/__init__.py
@@ -20,6 +20,7 @@
from .tsig_delete_response import TSIGDeleteResponse as TSIGDeleteResponse
from .incoming_get_response import IncomingGetResponse as IncomingGetResponse
from .outgoing_get_response import OutgoingGetResponse as OutgoingGetResponse
+from .unnamed_schema_ref_70 import UnnamedSchemaRef70 as UnnamedSchemaRef70
from .incoming_create_params import IncomingCreateParams as IncomingCreateParams
from .incoming_delete_params import IncomingDeleteParams as IncomingDeleteParams
from .incoming_update_params import IncomingUpdateParams as IncomingUpdateParams
diff --git a/src/cloudflare/types/secondary_dns/unnamed_schema_ref_70.py b/src/cloudflare/types/secondary_dns/unnamed_schema_ref_70.py
new file mode 100644
index 00000000000..6678dc2bbd1
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/unnamed_schema_ref_70.py
@@ -0,0 +1,8 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef70"]
+
+UnnamedSchemaRef70 = Optional[Literal]
diff --git a/src/cloudflare/types/shared/__init__.py b/src/cloudflare/types/shared/__init__.py
index 28c422b2fc6..bf5cf523d43 100644
--- a/src/cloudflare/types/shared/__init__.py
+++ b/src/cloudflare/types/shared/__init__.py
@@ -1,3 +1,123 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+from .logging import Logging as Logging
from .error_data import ErrorData as ErrorData
+from .unnamed_schema_ref_2 import UnnamedSchemaRef2 as UnnamedSchemaRef2
+from .unnamed_schema_ref_3 import UnnamedSchemaRef3 as UnnamedSchemaRef3
+from .unnamed_schema_ref_4 import UnnamedSchemaRef4 as UnnamedSchemaRef4
+from .unnamed_schema_ref_5 import UnnamedSchemaRef5 as UnnamedSchemaRef5
+from .unnamed_schema_ref_7 import UnnamedSchemaRef7 as UnnamedSchemaRef7
+from .unnamed_schema_ref_8 import UnnamedSchemaRef8 as UnnamedSchemaRef8
+from .unnamed_schema_ref_9 import UnnamedSchemaRef9 as UnnamedSchemaRef9
+from .unnamed_schema_ref_10 import UnnamedSchemaRef10 as UnnamedSchemaRef10
+from .unnamed_schema_ref_11 import UnnamedSchemaRef11 as UnnamedSchemaRef11
+from .unnamed_schema_ref_12 import UnnamedSchemaRef12 as UnnamedSchemaRef12
+from .unnamed_schema_ref_13 import UnnamedSchemaRef13 as UnnamedSchemaRef13
+from .unnamed_schema_ref_14 import UnnamedSchemaRef14 as UnnamedSchemaRef14
+from .unnamed_schema_ref_15 import UnnamedSchemaRef15 as UnnamedSchemaRef15
+from .unnamed_schema_ref_16 import UnnamedSchemaRef16 as UnnamedSchemaRef16
+from .unnamed_schema_ref_22 import UnnamedSchemaRef22 as UnnamedSchemaRef22
+from .unnamed_schema_ref_23 import UnnamedSchemaRef23 as UnnamedSchemaRef23
+from .unnamed_schema_ref_24 import UnnamedSchemaRef24 as UnnamedSchemaRef24
+from .unnamed_schema_ref_25 import UnnamedSchemaRef25 as UnnamedSchemaRef25
+from .unnamed_schema_ref_28 import UnnamedSchemaRef28 as UnnamedSchemaRef28
+from .unnamed_schema_ref_34 import UnnamedSchemaRef34 as UnnamedSchemaRef34
+from .unnamed_schema_ref_35 import UnnamedSchemaRef35 as UnnamedSchemaRef35
+from .unnamed_schema_ref_36 import UnnamedSchemaRef36 as UnnamedSchemaRef36
+from .unnamed_schema_ref_37 import UnnamedSchemaRef37 as UnnamedSchemaRef37
+from .unnamed_schema_ref_38 import UnnamedSchemaRef38 as UnnamedSchemaRef38
+from .unnamed_schema_ref_39 import UnnamedSchemaRef39 as UnnamedSchemaRef39
+from .unnamed_schema_ref_40 import UnnamedSchemaRef40 as UnnamedSchemaRef40
+from .unnamed_schema_ref_41 import UnnamedSchemaRef41 as UnnamedSchemaRef41
+from .unnamed_schema_ref_43 import UnnamedSchemaRef43 as UnnamedSchemaRef43
+from .unnamed_schema_ref_44 import UnnamedSchemaRef44 as UnnamedSchemaRef44
+from .unnamed_schema_ref_46 import UnnamedSchemaRef46 as UnnamedSchemaRef46
+from .unnamed_schema_ref_49 import UnnamedSchemaRef49 as UnnamedSchemaRef49
+from .unnamed_schema_ref_51 import UnnamedSchemaRef51 as UnnamedSchemaRef51
+from .unnamed_schema_ref_52 import UnnamedSchemaRef52 as UnnamedSchemaRef52
+from .unnamed_schema_ref_57 import UnnamedSchemaRef57 as UnnamedSchemaRef57
+from .unnamed_schema_ref_59 import UnnamedSchemaRef59 as UnnamedSchemaRef59
+from .unnamed_schema_ref_61 import UnnamedSchemaRef61 as UnnamedSchemaRef61
+from .unnamed_schema_ref_62 import UnnamedSchemaRef62 as UnnamedSchemaRef62
+from .unnamed_schema_ref_63 import UnnamedSchemaRef63 as UnnamedSchemaRef63
+from .unnamed_schema_ref_65 import UnnamedSchemaRef65 as UnnamedSchemaRef65
+from .unnamed_schema_ref_69 import UnnamedSchemaRef69 as UnnamedSchemaRef69
+from .unnamed_schema_ref_71 import UnnamedSchemaRef71 as UnnamedSchemaRef71
+from .unnamed_schema_ref_72 import UnnamedSchemaRef72 as UnnamedSchemaRef72
+from .unnamed_schema_ref_73 import UnnamedSchemaRef73 as UnnamedSchemaRef73
+from .unnamed_schema_ref_75 import UnnamedSchemaRef75 as UnnamedSchemaRef75
+from .unnamed_schema_ref_76 import UnnamedSchemaRef76 as UnnamedSchemaRef76
+from .unnamed_schema_ref_77 import UnnamedSchemaRef77 as UnnamedSchemaRef77
+from .unnamed_schema_ref_78 import UnnamedSchemaRef78 as UnnamedSchemaRef78
+from .unnamed_schema_ref_79 import UnnamedSchemaRef79 as UnnamedSchemaRef79
+from .unnamed_schema_ref_80 import UnnamedSchemaRef80 as UnnamedSchemaRef80
+from .unnamed_schema_ref_81 import UnnamedSchemaRef81 as UnnamedSchemaRef81
+from .unnamed_schema_ref_82 import UnnamedSchemaRef82 as UnnamedSchemaRef82
+from .unnamed_schema_ref_83 import UnnamedSchemaRef83 as UnnamedSchemaRef83
+from .unnamed_schema_ref_84 import UnnamedSchemaRef84 as UnnamedSchemaRef84
+from .unnamed_schema_ref_85 import UnnamedSchemaRef85 as UnnamedSchemaRef85
+from .unnamed_schema_ref_87 import UnnamedSchemaRef87 as UnnamedSchemaRef87
+from .unnamed_schema_ref_88 import UnnamedSchemaRef88 as UnnamedSchemaRef88
+from .unnamed_schema_ref_89 import UnnamedSchemaRef89 as UnnamedSchemaRef89
+from .unnamed_schema_ref_90 import UnnamedSchemaRef90 as UnnamedSchemaRef90
+from .unnamed_schema_ref_91 import UnnamedSchemaRef91 as UnnamedSchemaRef91
+from .unnamed_schema_ref_92 import UnnamedSchemaRef92 as UnnamedSchemaRef92
+from .unnamed_schema_ref_93 import UnnamedSchemaRef93 as UnnamedSchemaRef93
+from .unnamed_schema_ref_94 import UnnamedSchemaRef94 as UnnamedSchemaRef94
+from .unnamed_schema_ref_96 import UnnamedSchemaRef96 as UnnamedSchemaRef96
+from .unnamed_schema_ref_97 import UnnamedSchemaRef97 as UnnamedSchemaRef97
+from .unnamed_schema_ref_98 import UnnamedSchemaRef98 as UnnamedSchemaRef98
+from .unnamed_schema_ref_99 import UnnamedSchemaRef99 as UnnamedSchemaRef99
+from .unnamed_schema_ref_100 import UnnamedSchemaRef100 as UnnamedSchemaRef100
+from .unnamed_schema_ref_101 import UnnamedSchemaRef101 as UnnamedSchemaRef101
+from .unnamed_schema_ref_102 import UnnamedSchemaRef102 as UnnamedSchemaRef102
+from .unnamed_schema_ref_103 import UnnamedSchemaRef103 as UnnamedSchemaRef103
+from .unnamed_schema_ref_104 import UnnamedSchemaRef104 as UnnamedSchemaRef104
+from .unnamed_schema_ref_105 import UnnamedSchemaRef105 as UnnamedSchemaRef105
+from .unnamed_schema_ref_107 import UnnamedSchemaRef107 as UnnamedSchemaRef107
+from .unnamed_schema_ref_108 import UnnamedSchemaRef108 as UnnamedSchemaRef108
+from .unnamed_schema_ref_109 import UnnamedSchemaRef109 as UnnamedSchemaRef109
+from .unnamed_schema_ref_110 import UnnamedSchemaRef110 as UnnamedSchemaRef110
+from .unnamed_schema_ref_111 import UnnamedSchemaRef111 as UnnamedSchemaRef111
+from .unnamed_schema_ref_113 import UnnamedSchemaRef113 as UnnamedSchemaRef113
+from .unnamed_schema_ref_114 import UnnamedSchemaRef114 as UnnamedSchemaRef114
+from .unnamed_schema_ref_115 import UnnamedSchemaRef115 as UnnamedSchemaRef115
+from .unnamed_schema_ref_116 import UnnamedSchemaRef116 as UnnamedSchemaRef116
+from .unnamed_schema_ref_117 import UnnamedSchemaRef117 as UnnamedSchemaRef117
+from .unnamed_schema_ref_118 import UnnamedSchemaRef118 as UnnamedSchemaRef118
+from .unnamed_schema_ref_119 import UnnamedSchemaRef119 as UnnamedSchemaRef119
+from .unnamed_schema_ref_120 import UnnamedSchemaRef120 as UnnamedSchemaRef120
+from .unnamed_schema_ref_121 import UnnamedSchemaRef121 as UnnamedSchemaRef121
+from .unnamed_schema_ref_122 import UnnamedSchemaRef122 as UnnamedSchemaRef122
+from .unnamed_schema_ref_123 import UnnamedSchemaRef123 as UnnamedSchemaRef123
+from .unnamed_schema_ref_124 import UnnamedSchemaRef124 as UnnamedSchemaRef124
+from .unnamed_schema_ref_125 import UnnamedSchemaRef125 as UnnamedSchemaRef125
+from .unnamed_schema_ref_126 import UnnamedSchemaRef126 as UnnamedSchemaRef126
+from .unnamed_schema_ref_131 import UnnamedSchemaRef131 as UnnamedSchemaRef131
+from .unnamed_schema_ref_132 import UnnamedSchemaRef132 as UnnamedSchemaRef132
+from .unnamed_schema_ref_135 import UnnamedSchemaRef135 as UnnamedSchemaRef135
+from .unnamed_schema_ref_136 import UnnamedSchemaRef136 as UnnamedSchemaRef136
+from .unnamed_schema_ref_139 import UnnamedSchemaRef139 as UnnamedSchemaRef139
+from .unnamed_schema_ref_140 import UnnamedSchemaRef140 as UnnamedSchemaRef140
+from .unnamed_schema_ref_142 import UnnamedSchemaRef142 as UnnamedSchemaRef142
+from .unnamed_schema_ref_143 import UnnamedSchemaRef143 as UnnamedSchemaRef143
+from .unnamed_schema_ref_144 import UnnamedSchemaRef144 as UnnamedSchemaRef144
+from .unnamed_schema_ref_145 import UnnamedSchemaRef145 as UnnamedSchemaRef145
+from .unnamed_schema_ref_146 import UnnamedSchemaRef146 as UnnamedSchemaRef146
+from .unnamed_schema_ref_147 import UnnamedSchemaRef147 as UnnamedSchemaRef147
+from .unnamed_schema_ref_148 import UnnamedSchemaRef148 as UnnamedSchemaRef148
+from .unnamed_schema_ref_151 import UnnamedSchemaRef151 as UnnamedSchemaRef151
+from .unnamed_schema_ref_152 import UnnamedSchemaRef152 as UnnamedSchemaRef152
+from .unnamed_schema_ref_155 import UnnamedSchemaRef155 as UnnamedSchemaRef155
+from .unnamed_schema_ref_156 import UnnamedSchemaRef156 as UnnamedSchemaRef156
+from .unnamed_schema_ref_158 import UnnamedSchemaRef158 as UnnamedSchemaRef158
+from .unnamed_schema_ref_159 import UnnamedSchemaRef159 as UnnamedSchemaRef159
+from .unnamed_schema_ref_161 import UnnamedSchemaRef161 as UnnamedSchemaRef161
+from .unnamed_schema_ref_162 import UnnamedSchemaRef162 as UnnamedSchemaRef162
+from .unnamed_schema_ref_163 import UnnamedSchemaRef163 as UnnamedSchemaRef163
+from .unnamed_schema_ref_167 import UnnamedSchemaRef167 as UnnamedSchemaRef167
+from .unnamed_schema_ref_169 import UnnamedSchemaRef169 as UnnamedSchemaRef169
+from .unnamed_schema_ref_170 import UnnamedSchemaRef170 as UnnamedSchemaRef170
+from .unnamed_schema_ref_171 import UnnamedSchemaRef171 as UnnamedSchemaRef171
+from .unnamed_schema_ref_172 import UnnamedSchemaRef172 as UnnamedSchemaRef172
+from .unnamed_schema_ref_173 import UnnamedSchemaRef173 as UnnamedSchemaRef173
diff --git a/src/cloudflare/types/shared/logging.py b/src/cloudflare/types/shared/logging.py
new file mode 100644
index 00000000000..6e4bb74304d
--- /dev/null
+++ b/src/cloudflare/types/shared/logging.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["Logging"]
+
+
+class Logging(BaseModel):
+ enabled: bool
+ """Whether to generate a log when the rule matches."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_10.py b/src/cloudflare/types/shared/unnamed_schema_ref_10.py
new file mode 100644
index 00000000000..ab9356b1fb0
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_10.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef10"]
+
+
+class UnnamedSchemaRef10(BaseModel):
+ url: Optional[str] = None
+ """URL that was excluded."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_100.py b/src/cloudflare/types/shared/unnamed_schema_ref_100.py
new file mode 100644
index 00000000000..0ae4800563e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_100.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef100"]
+
+
+class UnnamedSchemaRef100(BaseModel):
+ operation_id: Optional[str] = None
+ """The unique operation ID of the asynchronous action."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_101.py b/src/cloudflare/types/shared/unnamed_schema_ref_101.py
new file mode 100644
index 00000000000..75dac4d5769
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_101.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef101"]
+
+
+class UnnamedSchemaRef101(BaseModel):
+ default_usage_model: Optional[object] = None
+
+ green_compute: Optional[object] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_102.py b/src/cloudflare/types/shared/unnamed_schema_ref_102.py
new file mode 100644
index 00000000000..e347f399f19
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_102.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef102"]
+
+
+class UnnamedSchemaRef102(BaseModel):
+ created_on: Optional[object] = None
+
+ cron: Optional[object] = None
+
+ modified_on: Optional[object] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_103.py b/src/cloudflare/types/shared/unnamed_schema_ref_103.py
new file mode 100644
index 00000000000..464f042db64
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_103.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef103"]
+
+
+class UnnamedSchemaRef103(BaseModel):
+ id: Optional[object] = None
+
+ expires_at: Optional[object] = None
+
+ url: Optional[object] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_104.py b/src/cloudflare/types/shared/unnamed_schema_ref_104.py
new file mode 100644
index 00000000000..c3d392451f8
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_104.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef104"]
+
+
+class UnnamedSchemaRef104(BaseModel):
+ usage_model: Optional[object] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_105.py b/src/cloudflare/types/shared/unnamed_schema_ref_105.py
new file mode 100644
index 00000000000..2b072da1e0e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_105.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef105"]
+
+
+class UnnamedSchemaRef105(BaseModel):
+ name: Optional[object] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_107.py b/src/cloudflare/types/shared/unnamed_schema_ref_107.py
new file mode 100644
index 00000000000..d43b6ee5dc6
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_107.py
@@ -0,0 +1,19 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union
+
+from ..._models import BaseModel
+from ..firewall_filter import FirewallFilter
+
+__all__ = ["UnnamedSchemaRef107", "LegacyJhsDeletedFilter"]
+
+
+class LegacyJhsDeletedFilter(BaseModel):
+ id: str
+ """The unique identifier of the filter."""
+
+ deleted: bool
+ """When true, indicates that the firewall rule was deleted."""
+
+
+UnnamedSchemaRef107 = Union[FirewallFilter, LegacyJhsDeletedFilter]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_108.py b/src/cloudflare/types/shared/unnamed_schema_ref_108.py
new file mode 100644
index 00000000000..03a30e37fee
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_108.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef108"]
+
+
+class UnnamedSchemaRef108(BaseModel):
+ flag: Optional[bool] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_109.py b/src/cloudflare/types/shared/unnamed_schema_ref_109.py
new file mode 100644
index 00000000000..f1e7421c5f5
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_109.py
@@ -0,0 +1,388 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef109", "AdditionalRoute", "CookieAttributes"]
+
+
+class AdditionalRoute(BaseModel):
+ host: Optional[str] = None
+ """The hostname to which this waiting room will be applied (no wildcards).
+
+ The hostname must be the primary domain, subdomain, or custom hostname (if using
+ SSL for SaaS) of this zone. Please do not include the scheme (http:// or
+ https://).
+ """
+
+ path: Optional[str] = None
+ """Sets the path within the host to enable the waiting room on.
+
+ The waiting room will be enabled for all subpaths as well. If there are two
+ waiting rooms on the same subpath, the waiting room for the most specific path
+ will be chosen. Wildcards and query parameters are not supported.
+ """
+
+
+class CookieAttributes(BaseModel):
+ samesite: Optional[Literal["auto", "lax", "none", "strict"]] = None
+ """Configures the SameSite attribute on the waiting room cookie.
+
+ Value `auto` will be translated to `lax` or `none` depending if **Always Use
+ HTTPS** is enabled. Note that when using value `none`, the secure attribute
+ cannot be set to `never`.
+ """
+
+ secure: Optional[Literal["auto", "always", "never"]] = None
+ """Configures the Secure attribute on the waiting room cookie.
+
+ Value `always` indicates that the Secure attribute will be set in the Set-Cookie
+ header, `never` indicates that the Secure attribute will not be set, and `auto`
+ will set the Secure attribute depending if **Always Use HTTPS** is enabled.
+ """
+
+
+class UnnamedSchemaRef109(BaseModel):
+ id: Optional[str] = None
+
+ additional_routes: Optional[List[AdditionalRoute]] = None
+ """Only available for the Waiting Room Advanced subscription.
+
+ Additional hostname and path combinations to which this waiting room will be
+ applied. There is an implied wildcard at the end of the path. The hostname and
+ path combination must be unique to this and all other waiting rooms.
+ """
+
+ cookie_attributes: Optional[CookieAttributes] = None
+ """Configures cookie attributes for the waiting room cookie.
+
+ This encrypted cookie stores a user's status in the waiting room, such as queue
+ position.
+ """
+
+ cookie_suffix: Optional[str] = None
+ """
+ Appends a '\\__' + a custom suffix to the end of Cloudflare Waiting Room's cookie
+ name(**cf_waitingroom). If `cookie_suffix` is "abcd", the cookie name will be
+ `**cf_waitingroom_abcd`. This field is required if using `additional_routes`.
+ """
+
+ created_on: Optional[datetime] = None
+
+ custom_page_html: Optional[str] = None
+ """Only available for the Waiting Room Advanced subscription.
+
+ This is a template html file that will be rendered at the edge. If no
+ custom_page_html is provided, the default waiting room will be used. The
+ template is based on mustache ( https://mustache.github.io/ ). There are several
+ variables that are evaluated by the Cloudflare edge:
+
+ 1. {{`waitTimeKnown`}} Acts like a boolean value that indicates the behavior to
+ take when wait time is not available, for instance when queue_all is
+ **true**.
+ 2. {{`waitTimeFormatted`}} Estimated wait time for the user. For example, five
+ minutes. Alternatively, you can use:
+ 3. {{`waitTime`}} Number of minutes of estimated wait for a user.
+ 4. {{`waitTimeHours`}} Number of hours of estimated wait for a user
+ (`Math.floor(waitTime/60)`).
+ 5. {{`waitTimeHourMinutes`}} Number of minutes above the `waitTimeHours` value
+ (`waitTime%60`).
+ 6. {{`queueIsFull`}} Changes to **true** when no more people can be added to the
+ queue.
+
+ To view the full list of variables, look at the `cfWaitingRoom` object described
+ under the `json_response_enabled` property in other Waiting Room API calls.
+ """
+
+ default_template_language: Optional[
+ Literal[
+ "en-US",
+ "es-ES",
+ "de-DE",
+ "fr-FR",
+ "it-IT",
+ "ja-JP",
+ "ko-KR",
+ "pt-BR",
+ "zh-CN",
+ "zh-TW",
+ "nl-NL",
+ "pl-PL",
+ "id-ID",
+ "tr-TR",
+ "ar-EG",
+ "ru-RU",
+ "fa-IR",
+ ]
+ ] = None
+ """The language of the default page template.
+
+ If no default_template_language is provided, then `en-US` (English) will be
+ used.
+ """
+
+ description: Optional[str] = None
+ """A note that you can use to add more details about the waiting room."""
+
+ disable_session_renewal: Optional[bool] = None
+ """Only available for the Waiting Room Advanced subscription.
+
+ Disables automatic renewal of session cookies. If `true`, an accepted user will
+ have session_duration minutes to browse the site. After that, they will have to
+ go through the waiting room again. If `false`, a user's session cookie will be
+ automatically renewed on every request.
+ """
+
+ host: Optional[str] = None
+ """The host name to which the waiting room will be applied (no wildcards).
+
+ Please do not include the scheme (http:// or https://). The host and path
+ combination must be unique.
+ """
+
+ json_response_enabled: Optional[bool] = None
+ """Only available for the Waiting Room Advanced subscription.
+
+ If `true`, requests to the waiting room with the header
+ `Accept: application/json` will receive a JSON response object with information
+ on the user's status in the waiting room as opposed to the configured static
+ HTML page. This JSON response object has one property `cfWaitingRoom` which is
+ an object containing the following fields:
+
+ 1. `inWaitingRoom`: Boolean indicating if the user is in the waiting room
+ (always **true**).
+ 2. `waitTimeKnown`: Boolean indicating if the current estimated wait times are
+ accurate. If **false**, they are not available.
+ 3. `waitTime`: Valid only when `waitTimeKnown` is **true**. Integer indicating
+ the current estimated time in minutes the user will wait in the waiting room.
+ When `queueingMethod` is **random**, this is set to `waitTime50Percentile`.
+ 4. `waitTime25Percentile`: Valid only when `queueingMethod` is **random** and
+ `waitTimeKnown` is **true**. Integer indicating the current estimated maximum
+ wait time for the 25% of users that gain entry the fastest (25th percentile).
+ 5. `waitTime50Percentile`: Valid only when `queueingMethod` is **random** and
+ `waitTimeKnown` is **true**. Integer indicating the current estimated maximum
+ wait time for the 50% of users that gain entry the fastest (50th percentile).
+ In other words, half of the queued users are expected to let into the origin
+ website before `waitTime50Percentile` and half are expected to be let in
+ after it.
+ 6. `waitTime75Percentile`: Valid only when `queueingMethod` is **random** and
+ `waitTimeKnown` is **true**. Integer indicating the current estimated maximum
+ wait time for the 75% of users that gain entry the fastest (75th percentile).
+ 7. `waitTimeFormatted`: String displaying the `waitTime` formatted in English
+ for users. If `waitTimeKnown` is **false**, `waitTimeFormatted` will display
+ **unavailable**.
+ 8. `queueIsFull`: Boolean indicating if the waiting room's queue is currently
+ full and not accepting new users at the moment.
+ 9. `queueAll`: Boolean indicating if all users will be queued in the waiting
+ room and no one will be let into the origin website.
+ 10. `lastUpdated`: String displaying the timestamp as an ISO 8601 string of the
+ user's last attempt to leave the waiting room and be let into the origin
+ website. The user is able to make another attempt after
+ `refreshIntervalSeconds` past this time. If the user makes a request too
+ soon, it will be ignored and `lastUpdated` will not change.
+ 11. `refreshIntervalSeconds`: Integer indicating the number of seconds after
+ `lastUpdated` until the user is able to make another attempt to leave the
+ waiting room and be let into the origin website. When the `queueingMethod`
+ is `reject`, there is no specified refresh time — it will always be
+ **zero**.
+ 12. `queueingMethod`: The queueing method currently used by the waiting room. It
+ is either **fifo**, **random**, **passthrough**, or **reject**.
+ 13. `isFIFOQueue`: Boolean indicating if the waiting room uses a FIFO
+ (First-In-First-Out) queue.
+ 14. `isRandomQueue`: Boolean indicating if the waiting room uses a Random queue
+ where users gain access randomly.
+ 15. `isPassthroughQueue`: Boolean indicating if the waiting room uses a
+ passthrough queue. Keep in mind that when passthrough is enabled, this JSON
+ response will only exist when `queueAll` is **true** or `isEventPrequeueing`
+ is **true** because in all other cases requests will go directly to the
+ origin.
+ 16. `isRejectQueue`: Boolean indicating if the waiting room uses a reject queue.
+ 17. `isEventActive`: Boolean indicating if an event is currently occurring.
+ Events are able to change a waiting room's behavior during a specified
+ period of time. For additional information, look at the event properties
+ `prequeue_start_time`, `event_start_time`, and `event_end_time` in the
+ documentation for creating waiting room events. Events are considered active
+ between these start and end times, as well as during the prequeueing period
+ if it exists.
+ 18. `isEventPrequeueing`: Valid only when `isEventActive` is **true**. Boolean
+ indicating if an event is currently prequeueing users before it starts.
+ 19. `timeUntilEventStart`: Valid only when `isEventPrequeueing` is **true**.
+ Integer indicating the number of minutes until the event starts.
+ 20. `timeUntilEventStartFormatted`: String displaying the `timeUntilEventStart`
+ formatted in English for users. If `isEventPrequeueing` is **false**,
+ `timeUntilEventStartFormatted` will display **unavailable**.
+ 21. `timeUntilEventEnd`: Valid only when `isEventActive` is **true**. Integer
+ indicating the number of minutes until the event ends.
+ 22. `timeUntilEventEndFormatted`: String displaying the `timeUntilEventEnd`
+ formatted in English for users. If `isEventActive` is **false**,
+ `timeUntilEventEndFormatted` will display **unavailable**.
+ 23. `shuffleAtEventStart`: Valid only when `isEventActive` is **true**. Boolean
+ indicating if the users in the prequeue are shuffled randomly when the event
+ starts.
+
+ An example cURL to a waiting room could be:
+
+ curl -X GET "https://example.com/waitingroom" \\
+ -H "Accept: application/json"
+
+ If `json_response_enabled` is **true** and the request hits the waiting room, an
+ example JSON response when `queueingMethod` is **fifo** and no event is active
+ could be:
+
+ {
+ "cfWaitingRoom": {
+ "inWaitingRoom": true,
+ "waitTimeKnown": true,
+ "waitTime": 10,
+ "waitTime25Percentile": 0,
+ "waitTime50Percentile": 0,
+ "waitTime75Percentile": 0,
+ "waitTimeFormatted": "10 minutes",
+ "queueIsFull": false,
+ "queueAll": false,
+ "lastUpdated": "2020-08-03T23:46:00.000Z",
+ "refreshIntervalSeconds": 20,
+ "queueingMethod": "fifo",
+ "isFIFOQueue": true,
+ "isRandomQueue": false,
+ "isPassthroughQueue": false,
+ "isRejectQueue": false,
+ "isEventActive": false,
+ "isEventPrequeueing": false,
+ "timeUntilEventStart": 0,
+ "timeUntilEventStartFormatted": "unavailable",
+ "timeUntilEventEnd": 0,
+ "timeUntilEventEndFormatted": "unavailable",
+ "shuffleAtEventStart": false
+ }
+ }
+
+ If `json_response_enabled` is **true** and the request hits the waiting room, an
+ example JSON response when `queueingMethod` is **random** and an event is active
+ could be:
+
+ {
+ "cfWaitingRoom": {
+ "inWaitingRoom": true,
+ "waitTimeKnown": true,
+ "waitTime": 10,
+ "waitTime25Percentile": 5,
+ "waitTime50Percentile": 10,
+ "waitTime75Percentile": 15,
+ "waitTimeFormatted": "5 minutes to 15 minutes",
+ "queueIsFull": false,
+ "queueAll": false,
+ "lastUpdated": "2020-08-03T23:46:00.000Z",
+ "refreshIntervalSeconds": 20,
+ "queueingMethod": "random",
+ "isFIFOQueue": false,
+ "isRandomQueue": true,
+ "isPassthroughQueue": false,
+ "isRejectQueue": false,
+ "isEventActive": true,
+ "isEventPrequeueing": false,
+ "timeUntilEventStart": 0,
+ "timeUntilEventStartFormatted": "unavailable",
+ "timeUntilEventEnd": 15,
+ "timeUntilEventEndFormatted": "15 minutes",
+ "shuffleAtEventStart": true
+ }
+ }.
+ """
+
+ modified_on: Optional[datetime] = None
+
+ name: Optional[str] = None
+ """A unique name to identify the waiting room.
+
+ Only alphanumeric characters, hyphens and underscores are allowed.
+ """
+
+ new_users_per_minute: Optional[int] = None
+ """Sets the number of new users that will be let into the route every minute.
+
+ This value is used as baseline for the number of users that are let in per
+ minute. So it is possible that there is a little more or little less traffic
+ coming to the route based on the traffic patterns at that time around the world.
+ """
+
+ next_event_prequeue_start_time: Optional[str] = None
+ """An ISO 8601 timestamp that marks when the next event will begin queueing."""
+
+ next_event_start_time: Optional[str] = None
+ """An ISO 8601 timestamp that marks when the next event will start."""
+
+ path: Optional[str] = None
+ """Sets the path within the host to enable the waiting room on.
+
+ The waiting room will be enabled for all subpaths as well. If there are two
+ waiting rooms on the same subpath, the waiting room for the most specific path
+ will be chosen. Wildcards and query parameters are not supported.
+ """
+
+ queue_all: Optional[bool] = None
+ """
+ If queue_all is `true`, all the traffic that is coming to a route will be sent
+ to the waiting room. No new traffic can get to the route once this field is set
+ and estimated time will become unavailable.
+ """
+
+ queueing_method: Optional[Literal["fifo", "random", "passthrough", "reject"]] = None
+ """Sets the queueing method used by the waiting room.
+
+ Changing this parameter from the **default** queueing method is only available
+ for the Waiting Room Advanced subscription. Regardless of the queueing method,
+ if `queue_all` is enabled or an event is prequeueing, users in the waiting room
+ will not be accepted to the origin. These users will always see a waiting room
+ page that refreshes automatically. The valid queueing methods are:
+
+ 1. `fifo` **(default)**: First-In-First-Out queue where customers gain access in
+ the order they arrived.
+ 2. `random`: Random queue where customers gain access randomly, regardless of
+ arrival time.
+ 3. `passthrough`: Users will pass directly through the waiting room and into the
+ origin website. As a result, any configured limits will not be respected
+ while this is enabled. This method can be used as an alternative to disabling
+ a waiting room (with `suspended`) so that analytics are still reported. This
+ can be used if you wish to allow all traffic normally, but want to restrict
+ traffic during a waiting room event, or vice versa.
+ 4. `reject`: Users will be immediately rejected from the waiting room. As a
+ result, no users will reach the origin website while this is enabled. This
+ can be used if you wish to reject all traffic while performing maintenance,
+ block traffic during a specified period of time (an event), or block traffic
+ while events are not occurring. Consider a waiting room used for vaccine
+ distribution that only allows traffic during sign-up events, and otherwise
+ blocks all traffic. For this case, the waiting room uses `reject`, and its
+ events override this with `fifo`, `random`, or `passthrough`. When this
+ queueing method is enabled and neither `queueAll` is enabled nor an event is
+ prequeueing, the waiting room page **will not refresh automatically**.
+ """
+
+ queueing_status_code: Optional[Literal[200, 202, 429]] = None
+ """HTTP status code returned to a user while in the queue."""
+
+ session_duration: Optional[int] = None
+ """
+ Lifetime of a cookie (in minutes) set by Cloudflare for users who get access to
+ the route. If a user is not seen by Cloudflare again in that time period, they
+ will be treated as a new user that visits the route.
+ """
+
+ suspended: Optional[bool] = None
+ """Suspends or allows traffic going to the waiting room.
+
+ If set to `true`, the traffic will not go to the waiting room.
+ """
+
+ total_active_users: Optional[int] = None
+ """Sets the total number of active user sessions on the route at a point in time.
+
+ A route is a combination of host and path on which a waiting room is available.
+ This value is used as a baseline for the total number of active user sessions on
+ the route. It is possible to have a situation where there are more or less
+ active users sessions on the route based on the traffic patterns at that time
+ around the world.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_11.py b/src/cloudflare/types/shared/unnamed_schema_ref_11.py
new file mode 100644
index 00000000000..ade6c43749e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_11.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef11"]
+
+
+class UnnamedSchemaRef11(BaseModel):
+ url: Optional[str] = None
+ """URL that was skipped."""
+
+ url_id: Optional[int] = None
+ """ID of the submission of that URL that is currently scanning."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_110.py b/src/cloudflare/types/shared/unnamed_schema_ref_110.py
new file mode 100644
index 00000000000..0ad2f345d8f
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_110.py
@@ -0,0 +1,16 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef110"]
+
+
+class UnnamedSchemaRef110(BaseModel):
+ search_engine_crawler_bypass: bool
+ """
+ Whether to allow verified search engine crawlers to bypass all waiting rooms on
+ this zone. Verified search engine crawlers will not be tracked or counted by the
+ waiting room system, and will not appear in waiting room analytics.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_111.py b/src/cloudflare/types/shared/unnamed_schema_ref_111.py
new file mode 100644
index 00000000000..ab38424e7b9
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_111.py
@@ -0,0 +1,97 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from datetime import datetime
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef111"]
+
+
+class UnnamedSchemaRef111(BaseModel):
+ id: Optional[str] = None
+
+ created_on: Optional[datetime] = None
+
+ custom_page_html: Optional[str] = None
+ """
+ If set, the event will override the waiting room's `custom_page_html` property
+ while it is active. If null, the event will inherit it.
+ """
+
+ description: Optional[str] = None
+ """A note that you can use to add more details about the event."""
+
+ disable_session_renewal: Optional[bool] = None
+ """
+ If set, the event will override the waiting room's `disable_session_renewal`
+ property while it is active. If null, the event will inherit it.
+ """
+
+ event_end_time: Optional[str] = None
+ """An ISO 8601 timestamp that marks the end of the event."""
+
+ event_start_time: Optional[str] = None
+ """An ISO 8601 timestamp that marks the start of the event.
+
+ At this time, queued users will be processed with the event's configuration. The
+ start time must be at least one minute before `event_end_time`.
+ """
+
+ modified_on: Optional[datetime] = None
+
+ name: Optional[str] = None
+ """A unique name to identify the event.
+
+ Only alphanumeric characters, hyphens and underscores are allowed.
+ """
+
+ new_users_per_minute: Optional[int] = None
+ """
+ If set, the event will override the waiting room's `new_users_per_minute`
+ property while it is active. If null, the event will inherit it. This can only
+ be set if the event's `total_active_users` property is also set.
+ """
+
+ prequeue_start_time: Optional[str] = None
+ """
+ An ISO 8601 timestamp that marks when to begin queueing all users before the
+ event starts. The prequeue must start at least five minutes before
+ `event_start_time`.
+ """
+
+ queueing_method: Optional[str] = None
+ """
+ If set, the event will override the waiting room's `queueing_method` property
+ while it is active. If null, the event will inherit it.
+ """
+
+ session_duration: Optional[int] = None
+ """
+ If set, the event will override the waiting room's `session_duration` property
+ while it is active. If null, the event will inherit it.
+ """
+
+ shuffle_at_event_start: Optional[bool] = None
+ """
+ If enabled, users in the prequeue will be shuffled randomly at the
+ `event_start_time`. Requires that `prequeue_start_time` is not null. This is
+ useful for situations when many users will join the event prequeue at the same
+ time and you want to shuffle them to ensure fairness. Naturally, it makes the
+ most sense to enable this feature when the `queueing_method` during the event
+ respects ordering such as **fifo**, or else the shuffling may be unnecessary.
+ """
+
+ suspended: Optional[bool] = None
+ """Suspends or allows an event.
+
+ If set to `true`, the event is ignored and traffic will be handled based on the
+ waiting room configuration.
+ """
+
+ total_active_users: Optional[int] = None
+ """
+ If set, the event will override the waiting room's `total_active_users` property
+ while it is active. If null, the event will inherit it. This can only be set if
+ the event's `new_users_per_minute` property is also set.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_113.py b/src/cloudflare/types/shared/unnamed_schema_ref_113.py
new file mode 100644
index 00000000000..9bf207d0d5e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_113.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef113"]
+
+
+class UnnamedSchemaRef113(BaseModel):
+ enabled: Optional[bool] = None
+ """Indicates whether zone-level authenticated origin pulls is enabled."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_114.py b/src/cloudflare/types/shared/unnamed_schema_ref_114.py
new file mode 100644
index 00000000000..88cb275fc83
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_114.py
@@ -0,0 +1,35 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef114"]
+
+
+class UnnamedSchemaRef114(BaseModel):
+ id: Optional[str] = None
+
+ auto_refresh_seconds: Optional[float] = None
+ """
+ How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not
+ applicable for primary zones.
+ """
+
+ checked_time: Optional[str] = None
+ """The time for a specific event."""
+
+ created_time: Optional[str] = None
+ """The time for a specific event."""
+
+ modified_time: Optional[str] = None
+ """The time for a specific event."""
+
+ name: Optional[str] = None
+ """Zone name."""
+
+ peers: Optional[List[object]] = None
+ """A list of peer tags."""
+
+ soa_serial: Optional[float] = None
+ """The serial number of the SOA for the given zone."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_115.py b/src/cloudflare/types/shared/unnamed_schema_ref_115.py
new file mode 100644
index 00000000000..70df0cccaa9
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_115.py
@@ -0,0 +1,29 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef115"]
+
+
+class UnnamedSchemaRef115(BaseModel):
+ id: Optional[str] = None
+
+ checked_time: Optional[str] = None
+ """The time for a specific event."""
+
+ created_time: Optional[str] = None
+ """The time for a specific event."""
+
+ last_transferred_time: Optional[str] = None
+ """The time for a specific event."""
+
+ name: Optional[str] = None
+ """Zone name."""
+
+ peers: Optional[List[object]] = None
+ """A list of peer tags."""
+
+ soa_serial: Optional[float] = None
+ """The serial number of the SOA for the given zone."""
diff --git a/src/cloudflare/types/addressing/address_maps/zone_delete_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_116.py
similarity index 55%
rename from src/cloudflare/types/addressing/address_maps/zone_delete_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_116.py
index 6fdbcc03fa7..088490c1124 100644
--- a/src/cloudflare/types/addressing/address_maps/zone_delete_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_116.py
@@ -2,6 +2,6 @@
from typing import List, Union
-__all__ = ["ZoneDeleteResponse"]
+__all__ = ["UnnamedSchemaRef116"]
-ZoneDeleteResponse = Union[List[object], str, object, None]
+UnnamedSchemaRef116 = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_117.py b/src/cloudflare/types/shared/unnamed_schema_ref_117.py
new file mode 100644
index 00000000000..7991aa35884
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_117.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef117"]
+
+
+class UnnamedSchemaRef117(BaseModel):
+ encrypted: Optional[int] = None
+ """The number of bytes served over HTTPS."""
+
+ unencrypted: Optional[int] = None
+ """The number of bytes served over HTTP."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_118.py b/src/cloudflare/types/shared/unnamed_schema_ref_118.py
new file mode 100644
index 00000000000..42b550a10a1
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_118.py
@@ -0,0 +1,26 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef118"]
+
+
+class UnnamedSchemaRef118(BaseModel):
+ none: Optional[int] = None
+ """The number of requests served over HTTP."""
+
+ tl_sv1: Optional[int] = FieldInfo(alias="TLSv1", default=None)
+ """The number of requests served over TLS v1.0."""
+
+ tl_sv1_1: Optional[int] = FieldInfo(alias="TLSv1.1", default=None)
+ """The number of requests served over TLS v1.1."""
+
+ tl_sv1_2: Optional[int] = FieldInfo(alias="TLSv1.2", default=None)
+ """The number of requests served over TLS v1.2."""
+
+ tl_sv1_3: Optional[int] = FieldInfo(alias="TLSv1.3", default=None)
+ """The number of requests served over TLS v1.3."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_119.py b/src/cloudflare/types/shared/unnamed_schema_ref_119.py
new file mode 100644
index 00000000000..65371bf11ea
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_119.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef119"]
+
+UnnamedSchemaRef119 = Literal["windows", "linux", "mac"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_12.py b/src/cloudflare/types/shared/unnamed_schema_ref_12.py
new file mode 100644
index 00000000000..ed0af536908
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_12.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef12"]
+
+
+class UnnamedSchemaRef12(BaseModel):
+ url: Optional[str] = None
+ """URL that was submitted."""
+
+ url_id: Optional[int] = None
+ """ID assigned to this URL submission. Used to retrieve scanning results."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_120.py b/src/cloudflare/types/shared/unnamed_schema_ref_120.py
new file mode 100644
index 00000000000..a0055ab758b
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_120.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef120"]
+
+
+class UnnamedSchemaRef120(BaseModel):
+ id: Optional[str] = None
+ """The unique identifier of the rule group."""
+
+ name: Optional[str] = None
+ """The name of the rule group."""
diff --git a/src/cloudflare/types/workers/scripts/tail_delete_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_121.py
similarity index 57%
rename from src/cloudflare/types/workers/scripts/tail_delete_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_121.py
index 5c1bf53bdf6..f8449546af3 100644
--- a/src/cloudflare/types/workers/scripts/tail_delete_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_121.py
@@ -2,6 +2,6 @@
from typing import List, Union
-__all__ = ["TailDeleteResponse"]
+__all__ = ["UnnamedSchemaRef121"]
-TailDeleteResponse = Union[List[object], str, object]
+UnnamedSchemaRef121 = Union[str, List[str]]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_122.py b/src/cloudflare/types/shared/unnamed_schema_ref_122.py
new file mode 100644
index 00000000000..a1e170dc93a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_122.py
@@ -0,0 +1,21 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef122"]
+
+
+class UnnamedSchemaRef122(BaseModel):
+ prompt: str
+
+ guidance: Optional[float] = None
+
+ image: Optional[List[float]] = None
+
+ mask: Optional[List[float]] = None
+
+ num_steps: Optional[int] = None
+
+ strength: Optional[float] = None
diff --git a/src/cloudflare/types/zero_trust/tunnel_list_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_123.py
similarity index 98%
rename from src/cloudflare/types/zero_trust/tunnel_list_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_123.py
index cd8241050c5..616f87ec81d 100644
--- a/src/cloudflare/types/zero_trust/tunnel_list_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_123.py
@@ -7,7 +7,7 @@
from ..._models import BaseModel
__all__ = [
- "TunnelListResponse",
+ "UnnamedSchemaRef123",
"TunnelCfdTunnel",
"TunnelCfdTunnelConnection",
"TunnelWARPConnectorTunnel",
@@ -183,4 +183,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""
-TunnelListResponse = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
+UnnamedSchemaRef123 = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_124.py b/src/cloudflare/types/shared/unnamed_schema_ref_124.py
new file mode 100644
index 00000000000..12cab73aac7
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_124.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef124"]
+
+
+class UnnamedSchemaRef124(BaseModel):
+ valid: Optional[bool] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_125.py b/src/cloudflare/types/shared/unnamed_schema_ref_125.py
new file mode 100644
index 00000000000..612a25e9a5a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_125.py
@@ -0,0 +1,167 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from datetime import datetime
+
+from ..._models import BaseModel
+
+__all__ = [
+ "UnnamedSchemaRef125",
+ "ActivityLog",
+ "Antivirus",
+ "AntivirusNotificationSettings",
+ "BlockPage",
+ "BodyScanning",
+ "BrowserIsolation",
+ "CustomCertificate",
+ "ExtendedEmailMatching",
+ "Fips",
+ "ProtocolDetection",
+ "TLSDecrypt",
+]
+
+
+class ActivityLog(BaseModel):
+ enabled: Optional[bool] = None
+ """Enable activity logging."""
+
+
+class AntivirusNotificationSettings(BaseModel):
+ enabled: Optional[bool] = None
+ """Set notification on"""
+
+ msg: Optional[str] = None
+ """Customize the message shown in the notification."""
+
+ support_url: Optional[str] = None
+ """Optional URL to direct users to additional information.
+
+ If not set, the notification will open a block page.
+ """
+
+
+class Antivirus(BaseModel):
+ enabled_download_phase: Optional[bool] = None
+ """Enable anti-virus scanning on downloads."""
+
+ enabled_upload_phase: Optional[bool] = None
+ """Enable anti-virus scanning on uploads."""
+
+ fail_closed: Optional[bool] = None
+ """Block requests for files that cannot be scanned."""
+
+ notification_settings: Optional[AntivirusNotificationSettings] = None
+ """
+ Configure a message to display on the user's device when an antivirus search is
+ performed.
+ """
+
+
+class BlockPage(BaseModel):
+ background_color: Optional[str] = None
+ """Block page background color in #rrggbb format."""
+
+ enabled: Optional[bool] = None
+ """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
+
+ footer_text: Optional[str] = None
+ """Block page footer text."""
+
+ header_text: Optional[str] = None
+ """Block page header text."""
+
+ logo_path: Optional[str] = None
+ """Full URL to the logo file."""
+
+ mailto_address: Optional[str] = None
+ """Admin email for users to contact."""
+
+ mailto_subject: Optional[str] = None
+ """Subject line for emails created from block page."""
+
+ name: Optional[str] = None
+ """Block page title."""
+
+ suppress_footer: Optional[bool] = None
+ """Suppress detailed info at the bottom of the block page."""
+
+
+class BodyScanning(BaseModel):
+ inspection_mode: Optional[str] = None
+ """Set the inspection mode to either `deep` or `shallow`."""
+
+
+class BrowserIsolation(BaseModel):
+ non_identity_enabled: Optional[bool] = None
+ """Enable non-identity onramp support for Browser Isolation."""
+
+ url_browser_isolation_enabled: Optional[bool] = None
+ """Enable Clientless Browser Isolation."""
+
+
+class CustomCertificate(BaseModel):
+ enabled: bool
+ """Enable use of custom certificate authority for signing Gateway traffic."""
+
+ id: Optional[str] = None
+ """UUID of certificate (ID from MTLS certificate store)."""
+
+ binding_status: Optional[str] = None
+ """Certificate status (internal)."""
+
+ updated_at: Optional[datetime] = None
+
+
+class ExtendedEmailMatching(BaseModel):
+ enabled: Optional[bool] = None
+ """Enable matching all variants of user emails (with + or .
+
+ modifiers) used as criteria in Firewall policies.
+ """
+
+
+class Fips(BaseModel):
+ tls: Optional[bool] = None
+ """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
+
+
+class ProtocolDetection(BaseModel):
+ enabled: Optional[bool] = None
+ """Enable detecting protocol on initial bytes of client traffic."""
+
+
+class TLSDecrypt(BaseModel):
+ enabled: Optional[bool] = None
+ """Enable inspecting encrypted HTTP traffic."""
+
+
+class UnnamedSchemaRef125(BaseModel):
+ activity_log: Optional[ActivityLog] = None
+ """Activity log settings."""
+
+ antivirus: Optional[Antivirus] = None
+ """Anti-virus settings."""
+
+ block_page: Optional[BlockPage] = None
+ """Block page layout settings."""
+
+ body_scanning: Optional[BodyScanning] = None
+ """DLP body scanning settings."""
+
+ browser_isolation: Optional[BrowserIsolation] = None
+ """Browser isolation settings."""
+
+ custom_certificate: Optional[CustomCertificate] = None
+ """Custom certificate settings for BYO-PKI."""
+
+ extended_email_matching: Optional[ExtendedEmailMatching] = None
+ """Extended e-mail matching settings."""
+
+ fips: Optional[Fips] = None
+ """FIPS settings."""
+
+ protocol_detection: Optional[ProtocolDetection] = None
+ """Protocol Detection settings."""
+
+ tls_decrypt: Optional[TLSDecrypt] = None
+ """TLS interception settings."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_126.py b/src/cloudflare/types/shared/unnamed_schema_ref_126.py
new file mode 100644
index 00000000000..7911501f830
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_126.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Dict, Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef126"]
+
+
+class UnnamedSchemaRef126(BaseModel):
+ pools: Optional[Dict[str, str]] = None
+ """Monitored pool IDs mapped to their respective names."""
+
+ preview_id: Optional[str] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_13.py b/src/cloudflare/types/shared/unnamed_schema_ref_13.py
new file mode 100644
index 00000000000..e4488937e57
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_13.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef13"]
+
+
+class UnnamedSchemaRef13(BaseModel):
+ category: Optional[str] = None
+ """Name of the category applied."""
+
+ verification_status: Optional[str] = None
+ """Result of human review for this categorization."""
diff --git a/src/cloudflare/types/addressing/prefix_delete_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_131.py
similarity index 54%
rename from src/cloudflare/types/addressing/prefix_delete_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_131.py
index cf2acba9231..d7e8056af16 100644
--- a/src/cloudflare/types/addressing/prefix_delete_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_131.py
@@ -1,7 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import List, Union
-__all__ = ["PrefixDeleteResponse"]
-PrefixDeleteResponse = Union[List[object], str, object, None]
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef131"]
+
+
+class UnnamedSchemaRef131(BaseModel):
+ id: str
+ """The ID of a previously created Access group."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_132.py b/src/cloudflare/types/shared/unnamed_schema_ref_132.py
new file mode 100644
index 00000000000..7aca941d765
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_132.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef132"]
+
+
+class UnnamedSchemaRef132(BaseModel):
+ id: Optional[str] = None
+ """UUID"""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_135.py b/src/cloudflare/types/shared/unnamed_schema_ref_135.py
new file mode 100644
index 00000000000..a7480728755
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_135.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef135"]
+
+
+class UnnamedSchemaRef135(BaseModel):
+ label: Optional[str] = None
+
+ score: Optional[float] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_136.py b/src/cloudflare/types/shared/unnamed_schema_ref_136.py
new file mode 100644
index 00000000000..075ca5dfd1b
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_136.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef136"]
+
+
+class UnnamedSchemaRef136(BaseModel):
+ public_key: Optional[str] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_139.py b/src/cloudflare/types/shared/unnamed_schema_ref_139.py
new file mode 100644
index 00000000000..96e9b0c5392
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_139.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef139"]
+
+UnnamedSchemaRef139 = Literal["cache_reserve_clear"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_14.py b/src/cloudflare/types/shared/unnamed_schema_ref_14.py
new file mode 100644
index 00000000000..64c9d8814f0
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_14.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef14"]
+
+
+class UnnamedSchemaRef14(BaseModel):
+ ai_model_name: Optional[str] = FieldInfo(alias="model_name", default=None)
+ """Name of the model."""
+
+ ai_model_score: Optional[float] = FieldInfo(alias="model_score", default=None)
+ """Score output by the model for this submission."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_140.py b/src/cloudflare/types/shared/unnamed_schema_ref_140.py
new file mode 100644
index 00000000000..e3c3ba6b1dc
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_140.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef140"]
+
+UnnamedSchemaRef140 = Literal["tc_regional"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_142.py b/src/cloudflare/types/shared/unnamed_schema_ref_142.py
new file mode 100644
index 00000000000..cb15ca85aaa
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_142.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef142"]
+
+UnnamedSchemaRef142 = Literal["origin_max_http_version"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_143.py b/src/cloudflare/types/shared/unnamed_schema_ref_143.py
new file mode 100644
index 00000000000..00eab0d3a96
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_143.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef143"]
+
+
+class UnnamedSchemaRef143(BaseModel):
+ id: Optional[str] = None
+ """UUID"""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_144.py b/src/cloudflare/types/shared/unnamed_schema_ref_144.py
new file mode 100644
index 00000000000..a386e63cacb
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_144.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef144"]
+
+UnnamedSchemaRef144 = Literal["cache_reserve"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_145.py b/src/cloudflare/types/shared/unnamed_schema_ref_145.py
new file mode 100644
index 00000000000..1a02bdf5bd8
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_145.py
@@ -0,0 +1,113 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef145"]
+
+
+class UnnamedSchemaRef145(BaseModel):
+ id: Optional[str] = None
+
+ allow_insecure: Optional[bool] = None
+ """Do not validate the certificate when monitor use HTTPS.
+
+ This parameter is currently only valid for HTTP and HTTPS monitors.
+ """
+
+ consecutive_down: Optional[int] = None
+ """
+ To be marked unhealthy the monitored origin must fail this healthcheck N
+ consecutive times.
+ """
+
+ consecutive_up: Optional[int] = None
+ """
+ To be marked healthy the monitored origin must pass this healthcheck N
+ consecutive times.
+ """
+
+ created_on: Optional[datetime] = None
+
+ description: Optional[str] = None
+ """Object description."""
+
+ expected_body: Optional[str] = None
+ """A case-insensitive sub-string to look for in the response body.
+
+ If this string is not found, the origin will be marked as unhealthy. This
+ parameter is only valid for HTTP and HTTPS monitors.
+ """
+
+ expected_codes: Optional[str] = None
+ """The expected HTTP response code or code range of the health check.
+
+ This parameter is only valid for HTTP and HTTPS monitors.
+ """
+
+ follow_redirects: Optional[bool] = None
+ """Follow redirects if returned by the origin.
+
+ This parameter is only valid for HTTP and HTTPS monitors.
+ """
+
+ header: Optional[object] = None
+ """The HTTP request headers to send in the health check.
+
+ It is recommended you set a Host header by default. The User-Agent header cannot
+ be overridden. This parameter is only valid for HTTP and HTTPS monitors.
+ """
+
+ interval: Optional[int] = None
+ """The interval between each health check.
+
+ Shorter intervals may improve failover time, but will increase load on the
+ origins as we check from multiple locations.
+ """
+
+ method: Optional[str] = None
+ """The method to use for the health check.
+
+ This defaults to 'GET' for HTTP/HTTPS based checks and 'connection_established'
+ for TCP based health checks.
+ """
+
+ modified_on: Optional[datetime] = None
+
+ path: Optional[str] = None
+ """The endpoint path you want to conduct a health check against.
+
+ This parameter is only valid for HTTP and HTTPS monitors.
+ """
+
+ port: Optional[int] = None
+ """The port number to connect to for the health check.
+
+ Required for TCP, UDP, and SMTP checks. HTTP and HTTPS checks should only define
+ the port when using a non-standard port (HTTP: default 80, HTTPS: default 443).
+ """
+
+ probe_zone: Optional[str] = None
+ """Assign this monitor to emulate the specified zone while probing.
+
+ This parameter is only valid for HTTP and HTTPS monitors.
+ """
+
+ retries: Optional[int] = None
+ """
+ The number of retries to attempt in case of a timeout before marking the origin
+ as unhealthy. Retries are attempted immediately.
+ """
+
+ timeout: Optional[int] = None
+ """The timeout (in seconds) before marking the health check as failed."""
+
+ type: Optional[Literal["http", "https", "tcp", "udp_icmp", "icmp_ping", "smtp"]] = None
+ """The protocol to use for the health check.
+
+ Currently supported protocols are 'HTTP','HTTPS', 'TCP', 'ICMP-PING',
+ 'UDP-ICMP', and 'SMTP'.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_146.py b/src/cloudflare/types/shared/unnamed_schema_ref_146.py
new file mode 100644
index 00000000000..c187cfced00
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_146.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef146"]
+
+UnnamedSchemaRef146 = Literal["*", "referral", "referrer"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_147.py b/src/cloudflare/types/shared/unnamed_schema_ref_147.py
new file mode 100644
index 00000000000..60bb3a10843
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_147.py
@@ -0,0 +1,273 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = [
+ "UnnamedSchemaRef147",
+ "LoadShedding",
+ "NotificationFilter",
+ "NotificationFilterOrigin",
+ "NotificationFilterPool",
+ "OriginSteering",
+ "Origin",
+ "OriginHeader",
+]
+
+
+class LoadShedding(BaseModel):
+ default_percent: Optional[float] = None
+ """The percent of traffic to shed from the pool, according to the default policy.
+
+ Applies to new sessions and traffic without session affinity.
+ """
+
+ default_policy: Optional[Literal["random", "hash"]] = None
+ """The default policy to use when load shedding.
+
+ A random policy randomly sheds a given percent of requests. A hash policy
+ computes a hash over the CF-Connecting-IP address and sheds all requests
+ originating from a percent of IPs.
+ """
+
+ session_percent: Optional[float] = None
+ """
+ The percent of existing sessions to shed from the pool, according to the session
+ policy.
+ """
+
+ session_policy: Optional[Literal["hash"]] = None
+ """
+ Only the hash policy is supported for existing sessions (to avoid exponential
+ decay).
+ """
+
+
+class NotificationFilterOrigin(BaseModel):
+ disable: Optional[bool] = None
+ """If set true, disable notifications for this type of resource (pool or origin)."""
+
+ healthy: Optional[bool] = None
+ """If present, send notifications only for this health status (e.g.
+
+ false for only DOWN events). Use null to reset (all events).
+ """
+
+
+class NotificationFilterPool(BaseModel):
+ disable: Optional[bool] = None
+ """If set true, disable notifications for this type of resource (pool or origin)."""
+
+ healthy: Optional[bool] = None
+ """If present, send notifications only for this health status (e.g.
+
+ false for only DOWN events). Use null to reset (all events).
+ """
+
+
+class NotificationFilter(BaseModel):
+ origin: Optional[NotificationFilterOrigin] = None
+ """Filter options for a particular resource type (pool or origin).
+
+ Use null to reset.
+ """
+
+ pool: Optional[NotificationFilterPool] = None
+ """Filter options for a particular resource type (pool or origin).
+
+ Use null to reset.
+ """
+
+
+class OriginSteering(BaseModel):
+ policy: Optional[Literal["random", "hash", "least_outstanding_requests", "least_connections"]] = None
+ """The type of origin steering policy to use.
+
+ - `"random"`: Select an origin randomly.
+ - `"hash"`: Select an origin by computing a hash over the CF-Connecting-IP
+ address.
+ - `"least_outstanding_requests"`: Select an origin by taking into consideration
+ origin weights, as well as each origin's number of outstanding requests.
+ Origins with more pending requests are weighted proportionately less relative
+ to others.
+ - `"least_connections"`: Select an origin by taking into consideration origin
+ weights, as well as each origin's number of open connections. Origins with
+ more open connections are weighted proportionately less relative to others.
+ Supported for HTTP/1 and HTTP/2 connections.
+ """
+
+
+class OriginHeader(BaseModel):
+ host: Optional[List[str]] = FieldInfo(alias="Host", default=None)
+ """The 'Host' header allows to override the hostname set in the HTTP request.
+
+ Current support is 1 'Host' header override per origin.
+ """
+
+
+class Origin(BaseModel):
+ address: Optional[str] = None
+ """
+ The IP address (IPv4 or IPv6) of the origin, or its publicly addressable
+ hostname. Hostnames entered here should resolve directly to the origin, and not
+ be a hostname proxied by Cloudflare. To set an internal/reserved address,
+ virtual_network_id must also be set.
+ """
+
+ disabled_at: Optional[datetime] = None
+ """This field shows up only if the origin is disabled.
+
+ This field is set with the time the origin was disabled.
+ """
+
+ enabled: Optional[bool] = None
+ """Whether to enable (the default) this origin within the pool.
+
+ Disabled origins will not receive traffic and are excluded from health checks.
+ The origin will only be disabled for the current pool.
+ """
+
+ header: Optional[OriginHeader] = None
+ """The request header is used to pass additional information with an HTTP request.
+
+ Currently supported header is 'Host'.
+ """
+
+ name: Optional[str] = None
+ """A human-identifiable name for the origin."""
+
+ virtual_network_id: Optional[str] = None
+ """The virtual network subnet ID the origin belongs in.
+
+ Virtual network must also belong to the account.
+ """
+
+ weight: Optional[float] = None
+ """The weight of this origin relative to other origins in the pool.
+
+ Based on the configured weight the total traffic is distributed among origins
+ within the pool.
+
+ - `origin_steering.policy="least_outstanding_requests"`: Use weight to scale the
+ origin's outstanding requests.
+ - `origin_steering.policy="least_connections"`: Use weight to scale the origin's
+ open connections.
+ """
+
+
+class UnnamedSchemaRef147(BaseModel):
+ id: Optional[str] = None
+
+ check_regions: Optional[
+ List[
+ Literal[
+ "WNAM",
+ "ENAM",
+ "WEU",
+ "EEU",
+ "NSAM",
+ "SSAM",
+ "OC",
+ "ME",
+ "NAF",
+ "SAF",
+ "SAS",
+ "SEAS",
+ "NEAS",
+ "ALL_REGIONS",
+ ]
+ ]
+ ] = None
+ """A list of regions from which to run health checks.
+
+ Null means every Cloudflare data center.
+ """
+
+ created_on: Optional[datetime] = None
+
+ description: Optional[str] = None
+ """A human-readable description of the pool."""
+
+ disabled_at: Optional[datetime] = None
+ """This field shows up only if the pool is disabled.
+
+ This field is set with the time the pool was disabled at.
+ """
+
+ enabled: Optional[bool] = None
+ """Whether to enable (the default) or disable this pool.
+
+ Disabled pools will not receive traffic and are excluded from health checks.
+ Disabling a pool will cause any load balancers using it to failover to the next
+ pool (if any).
+ """
+
+ latitude: Optional[float] = None
+ """
+ The latitude of the data center containing the origins used in this pool in
+ decimal degrees. If this is set, longitude must also be set.
+ """
+
+ load_shedding: Optional[LoadShedding] = None
+ """Configures load shedding policies and percentages for the pool."""
+
+ longitude: Optional[float] = None
+ """
+ The longitude of the data center containing the origins used in this pool in
+ decimal degrees. If this is set, latitude must also be set.
+ """
+
+ minimum_origins: Optional[int] = None
+ """
+ The minimum number of origins that must be healthy for this pool to serve
+ traffic. If the number of healthy origins falls below this number, the pool will
+ be marked unhealthy and will failover to the next available pool.
+ """
+
+ modified_on: Optional[datetime] = None
+
+ monitor: Optional[object] = None
+ """
+ The ID of the Monitor to use for checking the health of origins within this
+ pool.
+ """
+
+ name: Optional[str] = None
+ """A short name (tag) for the pool.
+
+ Only alphanumeric characters, hyphens, and underscores are allowed.
+ """
+
+ notification_email: Optional[str] = None
+ """This field is now deprecated.
+
+ It has been moved to Cloudflare's Centralized Notification service
+ https://developers.cloudflare.com/fundamentals/notifications/. The email address
+ to send health status notifications to. This can be an individual mailbox or a
+ mailing list. Multiple emails can be supplied as a comma delimited list.
+ """
+
+ notification_filter: Optional[NotificationFilter] = None
+ """Filter pool and origin health notifications by resource type or health status.
+
+ Use null to reset.
+ """
+
+ origin_steering: Optional[OriginSteering] = None
+ """Configures origin steering for the pool.
+
+ Controls how origins are selected for new sessions and traffic without session
+ affinity.
+ """
+
+ origins: Optional[List[Origin]] = None
+ """The list of origins within this pool.
+
+ Traffic directed at this pool is balanced across all currently healthy origins,
+ provided the pool itself is healthy.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_148.py b/src/cloudflare/types/shared/unnamed_schema_ref_148.py
new file mode 100644
index 00000000000..67bd3bd6c40
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_148.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef148"]
+
+
+class UnnamedSchemaRef148(BaseModel):
+ metrics: List[object]
+ """List of metrics returned by the query."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_15.py b/src/cloudflare/types/shared/unnamed_schema_ref_15.py
new file mode 100644
index 00000000000..79e26e28a4d
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_15.py
@@ -0,0 +1,21 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef15"]
+
+
+class UnnamedSchemaRef15(BaseModel):
+ banning: Optional[bool] = None
+ """For internal use."""
+
+ blocking: Optional[bool] = None
+ """For internal use."""
+
+ description: Optional[str] = None
+ """Description of the signature that matched."""
+
+ name: Optional[str] = None
+ """Name of the signature that matched."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_151.py b/src/cloudflare/types/shared/unnamed_schema_ref_151.py
new file mode 100644
index 00000000000..d148924ef42
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_151.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef151"]
+
+UnnamedSchemaRef151 = Literal["variants"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_152.py b/src/cloudflare/types/shared/unnamed_schema_ref_152.py
new file mode 100644
index 00000000000..59a7bae895e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_152.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef152"]
+
+
+class UnnamedSchemaRef152(BaseModel):
+ id: Optional[str] = None
+ """Identifier"""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_155.py b/src/cloudflare/types/shared/unnamed_schema_ref_155.py
new file mode 100644
index 00000000000..d43aa9efa11
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_155.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef155"]
+
+
+class UnnamedSchemaRef155(BaseModel):
+ name: str
+
+ value: str
diff --git a/src/cloudflare/types/zero_trust/tunnel_edit_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_156.py
similarity index 98%
rename from src/cloudflare/types/zero_trust/tunnel_edit_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_156.py
index 2089655cc5e..0184d965119 100644
--- a/src/cloudflare/types/zero_trust/tunnel_edit_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_156.py
@@ -7,7 +7,7 @@
from ..._models import BaseModel
__all__ = [
- "TunnelEditResponse",
+ "UnnamedSchemaRef156",
"TunnelCfdTunnel",
"TunnelCfdTunnelConnection",
"TunnelWARPConnectorTunnel",
@@ -183,4 +183,4 @@ class TunnelWARPConnectorTunnel(BaseModel):
"""The type of tunnel."""
-TunnelEditResponse = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
+UnnamedSchemaRef156 = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_158.py b/src/cloudflare/types/shared/unnamed_schema_ref_158.py
new file mode 100644
index 00000000000..d89fcc91e0a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_158.py
@@ -0,0 +1,39 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef158"]
+
+
+class UnnamedSchemaRef158(BaseModel):
+ enabled: Optional[bool] = None
+ """A flag to enable or disable SCIM for the identity provider."""
+
+ group_member_deprovision: Optional[bool] = None
+ """
+ A flag to revoke a user's session in Access and force a reauthentication on the
+ user's Gateway session when they have been added or removed from a group in the
+ Identity Provider.
+ """
+
+ seat_deprovision: Optional[bool] = None
+ """
+ A flag to remove a user's seat in Zero Trust when they have been deprovisioned
+ in the Identity Provider. This cannot be enabled unless user_deprovision is also
+ enabled.
+ """
+
+ secret: Optional[str] = None
+ """
+ A read-only token generated when the SCIM integration is enabled for the first
+ time. It is redacted on subsequent requests. If you lose this you will need to
+ refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
+ """
+
+ user_deprovision: Optional[bool] = None
+ """
+ A flag to enable revoking a user's session in Access and Gateway when they have
+ been deprovisioned in the Identity Provider.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_159.py b/src/cloudflare/types/shared/unnamed_schema_ref_159.py
new file mode 100644
index 00000000000..a0d7ec590e9
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_159.py
@@ -0,0 +1,39 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef159"]
+
+
+class UnnamedSchemaRef159(BaseModel):
+ enabled: Optional[bool] = None
+ """A flag to enable or disable SCIM for the identity provider."""
+
+ group_member_deprovision: Optional[bool] = None
+ """
+ A flag to revoke a user's session in Access and force a reauthentication on the
+ user's Gateway session when they have been added or removed from a group in the
+ Identity Provider.
+ """
+
+ seat_deprovision: Optional[bool] = None
+ """
+ A flag to remove a user's seat in Zero Trust when they have been deprovisioned
+ in the Identity Provider. This cannot be enabled unless user_deprovision is also
+ enabled.
+ """
+
+ secret: Optional[str] = None
+ """
+ A read-only token generated when the SCIM integration is enabled for the first
+ time. It is redacted on subsequent requests. If you lose this you will need to
+ refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
+ """
+
+ user_deprovision: Optional[bool] = None
+ """
+ A flag to enable revoking a user's session in Access and Gateway when they have
+ been deprovisioned in the Identity Provider.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_16.py b/src/cloudflare/types/shared/unnamed_schema_ref_16.py
new file mode 100644
index 00000000000..70b32870a50
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_16.py
@@ -0,0 +1,21 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef16"]
+
+
+class UnnamedSchemaRef16(BaseModel):
+ last_processed: Optional[str] = None
+ """Timestamp of when the submission was processed."""
+
+ scan_complete: Optional[bool] = None
+ """For internal use."""
+
+ status_code: Optional[int] = None
+ """Status code that the crawler received when loading the submitted URL."""
+
+ submission_id: Optional[int] = None
+ """ID of the most recent submission."""
diff --git a/src/cloudflare/types/addressing/address_maps/zone_update_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_161.py
similarity index 55%
rename from src/cloudflare/types/addressing/address_maps/zone_update_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_161.py
index 1f488961e0d..acc2c3f4bb9 100644
--- a/src/cloudflare/types/addressing/address_maps/zone_update_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_161.py
@@ -2,6 +2,6 @@
from typing import List, Union
-__all__ = ["ZoneUpdateResponse"]
+__all__ = ["UnnamedSchemaRef161"]
-ZoneUpdateResponse = Union[List[object], str, object, None]
+UnnamedSchemaRef161 = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_162.py b/src/cloudflare/types/shared/unnamed_schema_ref_162.py
new file mode 100644
index 00000000000..70f19e2fb76
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_162.py
@@ -0,0 +1,18 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef162"]
+
+
+class UnnamedSchemaRef162(BaseModel):
+ auto_added: Optional[bool] = None
+ """
+ Will exist if Cloudflare automatically added this DNS record during initial
+ setup.
+ """
+
+ source: Optional[str] = None
+ """Where the record originated from."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_163.py b/src/cloudflare/types/shared/unnamed_schema_ref_163.py
new file mode 100644
index 00000000000..e0a43260a8a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_163.py
@@ -0,0 +1,22 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef163"]
+
+UnnamedSchemaRef163 = Literal[
+ "onetimepin",
+ "azureAD",
+ "saml",
+ "centrify",
+ "facebook",
+ "github",
+ "google-apps",
+ "google",
+ "linkedin",
+ "oidc",
+ "okta",
+ "onelogin",
+ "pingone",
+ "yandex",
+]
diff --git a/src/cloudflare/types/addressing/address_maps/ip_delete_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_167.py
similarity index 55%
rename from src/cloudflare/types/addressing/address_maps/ip_delete_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_167.py
index 9cb4b12b353..734862839db 100644
--- a/src/cloudflare/types/addressing/address_maps/ip_delete_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_167.py
@@ -2,6 +2,6 @@
from typing import List, Union
-__all__ = ["IPDeleteResponse"]
+__all__ = ["UnnamedSchemaRef167"]
-IPDeleteResponse = Union[List[object], str, object, None]
+UnnamedSchemaRef167 = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_169.py
similarity index 56%
rename from src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_169.py
index 15f451c25c3..9dfc7edd8d1 100644
--- a/src/cloudflare/types/zero_trust/dlp/profiles/custom_delete_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_169.py
@@ -2,6 +2,6 @@
from typing import Union, Optional
-__all__ = ["CustomDeleteResponse"]
+__all__ = ["UnnamedSchemaRef169"]
-CustomDeleteResponse = Union[Optional[str], Optional[object]]
+UnnamedSchemaRef169 = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_170.py b/src/cloudflare/types/shared/unnamed_schema_ref_170.py
new file mode 100644
index 00000000000..7c05f2237bf
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_170.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef170"]
+
+
+class UnnamedSchemaRef170(BaseModel):
+ code: str
+
+ message: str
diff --git a/src/cloudflare/types/addressing/address_maps/ip_update_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_171.py
similarity index 57%
rename from src/cloudflare/types/addressing/address_maps/ip_update_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_171.py
index d4b874c9522..07e3c0ac2d6 100644
--- a/src/cloudflare/types/addressing/address_maps/ip_update_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_171.py
@@ -2,6 +2,6 @@
from typing import List, Union
-__all__ = ["IPUpdateResponse"]
+__all__ = ["UnnamedSchemaRef171"]
-IPUpdateResponse = Union[List[object], str, object, None]
+UnnamedSchemaRef171 = Union[List[object], str, object]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_172.py b/src/cloudflare/types/shared/unnamed_schema_ref_172.py
new file mode 100644
index 00000000000..aff53b9c518
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_172.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef172"]
+
+
+class UnnamedSchemaRef172(BaseModel):
+ code: int
+
+ message: str
diff --git a/src/cloudflare/types/vectorize/index_delete_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_173.py
similarity index 58%
rename from src/cloudflare/types/vectorize/index_delete_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_173.py
index 813386c525b..90430ab29f5 100644
--- a/src/cloudflare/types/vectorize/index_delete_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_173.py
@@ -2,6 +2,6 @@
from typing import Union
-__all__ = ["IndexDeleteResponse"]
+__all__ = ["UnnamedSchemaRef173"]
-IndexDeleteResponse = Union[str, object, None]
+UnnamedSchemaRef173 = Union[str, object, None]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_2.py b/src/cloudflare/types/shared/unnamed_schema_ref_2.py
new file mode 100644
index 00000000000..a11d30e1938
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_2.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef2"]
+
+UnnamedSchemaRef2 = Literal["pending", "running", "completed", "failed"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_22.py b/src/cloudflare/types/shared/unnamed_schema_ref_22.py
new file mode 100644
index 00000000000..072b38afa9e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_22.py
@@ -0,0 +1,18 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef22"]
+
+
+class UnnamedSchemaRef22(BaseModel):
+ dimensions: List[str]
+ """
+ Array of dimension values, representing the combination of dimension values
+ corresponding to this row.
+ """
+
+ metrics: List[float]
+ """Array with one item per requested metric. Each item is a single value."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_23.py b/src/cloudflare/types/shared/unnamed_schema_ref_23.py
new file mode 100644
index 00000000000..bdfb1f9931a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_23.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+
+__all__ = ["UnnamedSchemaRef23"]
+
+UnnamedSchemaRef23 = List[object]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_24.py b/src/cloudflare/types/shared/unnamed_schema_ref_24.py
new file mode 100644
index 00000000000..09a8017f52c
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_24.py
@@ -0,0 +1,38 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef24"]
+
+
+class UnnamedSchemaRef24(BaseModel):
+ dimensions: List[str]
+ """Array of dimension names."""
+
+ limit: int
+ """Limit number of returned metrics."""
+
+ metrics: List[str]
+ """Array of metric names."""
+
+ since: datetime
+ """Start date and time of requesting data period in ISO 8601 format."""
+
+ time_delta: Literal["all", "auto", "year", "quarter", "month", "week", "day", "hour", "dekaminute", "minute"]
+ """Unit of time to group data by."""
+
+ until: datetime
+ """End date and time of requesting data period in ISO 8601 format."""
+
+ filters: Optional[str] = None
+ """Segmentation filter in 'attribute operator value' format."""
+
+ sort: Optional[List[str]] = None
+ """
+ Array of dimensions to sort by, where each dimension may be prefixed by -
+ (descending) or + (ascending).
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_25.py b/src/cloudflare/types/shared/unnamed_schema_ref_25.py
new file mode 100644
index 00000000000..d9459a6d3a6
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_25.py
@@ -0,0 +1,18 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef25"]
+
+
+class UnnamedSchemaRef25(BaseModel):
+ id: Optional[str] = None
+ """Cloudflare account ID."""
+
+ gateway_tag: Optional[str] = None
+ """Gateway internal ID."""
+
+ provider_name: Optional[str] = None
+ """The name of the provider. Usually Cloudflare."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_28.py b/src/cloudflare/types/shared/unnamed_schema_ref_28.py
new file mode 100644
index 00000000000..1427cef32b4
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_28.py
@@ -0,0 +1,18 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef28"]
+
+
+class UnnamedSchemaRef28(BaseModel):
+ dns: Optional[object] = None
+ """Logging settings for DNS firewall."""
+
+ http: Optional[object] = None
+ """Logging settings for HTTP/HTTPS firewall."""
+
+ l4: Optional[object] = None
+ """Logging settings for Network firewall."""
diff --git a/src/cloudflare/types/user/subscription_delete_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_3.py
similarity index 73%
rename from src/cloudflare/types/user/subscription_delete_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_3.py
index 9afa5116dc3..c660733c80d 100644
--- a/src/cloudflare/types/user/subscription_delete_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_3.py
@@ -4,9 +4,9 @@
from ..._models import BaseModel
-__all__ = ["SubscriptionDeleteResponse"]
+__all__ = ["UnnamedSchemaRef3"]
-class SubscriptionDeleteResponse(BaseModel):
+class UnnamedSchemaRef3(BaseModel):
subscription_id: Optional[str] = None
"""Subscription identifier tag."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_34.py b/src/cloudflare/types/shared/unnamed_schema_ref_34.py
new file mode 100644
index 00000000000..24772585b63
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_34.py
@@ -0,0 +1,20 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef34"]
+
+
+class UnnamedSchemaRef34(BaseModel):
+ id: Optional[str] = None
+ """Image unique identifier."""
+
+ upload_url: Optional[str] = FieldInfo(alias="uploadURL", default=None)
+ """
+ The URL the unauthenticated upload can be performed to using a single HTTP POST
+ (multipart/form-data) request.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_35.py b/src/cloudflare/types/shared/unnamed_schema_ref_35.py
new file mode 100644
index 00000000000..d4405c21691
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_35.py
@@ -0,0 +1,19 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from datetime import date
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef35"]
+
+
+class UnnamedSchemaRef35(BaseModel):
+ first_seen: Optional[date] = None
+ """First seen date of the DNS record during the time period."""
+
+ hostname: Optional[object] = None
+ """Hostname that the IP was observed resolving to."""
+
+ last_seen: Optional[date] = None
+ """Last seen date of the DNS record during the time period."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_36.py b/src/cloudflare/types/shared/unnamed_schema_ref_36.py
new file mode 100644
index 00000000000..75d553d415f
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_36.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef36"]
+
+
+class UnnamedSchemaRef36(BaseModel):
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_37.py b/src/cloudflare/types/shared/unnamed_schema_ref_37.py
new file mode 100644
index 00000000000..ee5b4dbb61f
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_37.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef37"]
+
+
+class UnnamedSchemaRef37(BaseModel):
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_38.py b/src/cloudflare/types/shared/unnamed_schema_ref_38.py
new file mode 100644
index 00000000000..f6949170055
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_38.py
@@ -0,0 +1,91 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+from .unnamed_schema_ref_83 import UnnamedSchemaRef83
+from .unnamed_schema_ref_84 import UnnamedSchemaRef84
+
+__all__ = ["UnnamedSchemaRef38", "GRETunnel", "GRETunnelHealthCheck"]
+
+
+class GRETunnelHealthCheck(BaseModel):
+ direction: Optional[Literal["unidirectional", "bidirectional"]] = None
+ """The direction of the flow of the healthcheck.
+
+ Either unidirectional, where the probe comes to you via the tunnel and the
+ result comes back to Cloudflare via the open Internet, or bidirectional where
+ both the probe and result come and go via the tunnel. Note in the case of
+ bidirecitonal healthchecks, the target field in health_check is ignored as the
+ interface_address is used to send traffic into the tunnel.
+ """
+
+ enabled: Optional[bool] = None
+ """Determines whether to run healthchecks for a tunnel."""
+
+ rate: Optional[UnnamedSchemaRef83] = None
+ """How frequent the health check is run. The default value is `mid`."""
+
+ target: Optional[str] = None
+ """The destination address in a request type health check.
+
+ After the healthcheck is decapsulated at the customer end of the tunnel, the
+ ICMP echo will be forwarded to this address. This field defaults to
+ `customer_gre_endpoint address`. This field is ignored for bidirectional
+ healthchecks as the interface_address (not assigned to the Cloudflare side of
+ the tunnel) is used as the target.
+ """
+
+ type: Optional[UnnamedSchemaRef84] = None
+ """The type of healthcheck to run, reply or request. The default value is `reply`."""
+
+
+class GRETunnel(BaseModel):
+ cloudflare_gre_endpoint: str
+ """The IP address assigned to the Cloudflare side of the GRE tunnel."""
+
+ customer_gre_endpoint: str
+ """The IP address assigned to the customer side of the GRE tunnel."""
+
+ interface_address: str
+ """
+ A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side
+ of the tunnel. Select the subnet from the following private IP space:
+ 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
+ """
+
+ name: str
+ """The name of the tunnel.
+
+ The name cannot contain spaces or special characters, must be 15 characters or
+ less, and cannot share a name with another GRE tunnel.
+ """
+
+ id: Optional[str] = None
+ """Tunnel identifier tag."""
+
+ created_on: Optional[datetime] = None
+ """The date and time the tunnel was created."""
+
+ description: Optional[str] = None
+ """An optional description of the GRE tunnel."""
+
+ health_check: Optional[GRETunnelHealthCheck] = None
+
+ modified_on: Optional[datetime] = None
+ """The date and time the tunnel was last modified."""
+
+ mtu: Optional[int] = None
+ """Maximum Transmission Unit (MTU) in bytes for the GRE tunnel.
+
+ The minimum value is 576.
+ """
+
+ ttl: Optional[int] = None
+ """Time To Live (TTL) in number of hops of the GRE tunnel."""
+
+
+class UnnamedSchemaRef38(BaseModel):
+ gre_tunnels: Optional[List[GRETunnel]] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_39.py b/src/cloudflare/types/shared/unnamed_schema_ref_39.py
new file mode 100644
index 00000000000..8f63c790d43
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_39.py
@@ -0,0 +1,85 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from datetime import datetime
+
+from ..._models import BaseModel
+from .unnamed_schema_ref_83 import UnnamedSchemaRef83
+from .unnamed_schema_ref_84 import UnnamedSchemaRef84
+
+__all__ = ["UnnamedSchemaRef39", "IPSECTunnel", "IPSECTunnelPSKMetadata", "IPSECTunnelTunnelHealthCheck"]
+
+
+class IPSECTunnelPSKMetadata(BaseModel):
+ last_generated_on: Optional[datetime] = None
+ """The date and time the tunnel was last modified."""
+
+
+class IPSECTunnelTunnelHealthCheck(BaseModel):
+ enabled: Optional[bool] = None
+ """Determines whether to run healthchecks for a tunnel."""
+
+ rate: Optional[UnnamedSchemaRef83] = None
+ """How frequent the health check is run. The default value is `mid`."""
+
+ target: Optional[str] = None
+ """The destination address in a request type health check.
+
+ After the healthcheck is decapsulated at the customer end of the tunnel, the
+ ICMP echo will be forwarded to this address. This field defaults to
+ `customer_gre_endpoint address`.
+ """
+
+ type: Optional[UnnamedSchemaRef84] = None
+ """The type of healthcheck to run, reply or request. The default value is `reply`."""
+
+
+class IPSECTunnel(BaseModel):
+ cloudflare_endpoint: str
+ """The IP address assigned to the Cloudflare side of the IPsec tunnel."""
+
+ interface_address: str
+ """
+ A 31-bit prefix (/31 in CIDR notation) supporting two hosts, one for each side
+ of the tunnel. Select the subnet from the following private IP space:
+ 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255.
+ """
+
+ name: str
+ """The name of the IPsec tunnel. The name cannot share a name with other tunnels."""
+
+ id: Optional[str] = None
+ """Tunnel identifier tag."""
+
+ allow_null_cipher: Optional[bool] = None
+ """
+ When `true`, the tunnel can use a null-cipher (`ENCR_NULL`) in the ESP tunnel
+ (Phase 2).
+ """
+
+ created_on: Optional[datetime] = None
+ """The date and time the tunnel was created."""
+
+ customer_endpoint: Optional[str] = None
+ """The IP address assigned to the customer side of the IPsec tunnel."""
+
+ description: Optional[str] = None
+ """An optional description forthe IPsec tunnel."""
+
+ modified_on: Optional[datetime] = None
+ """The date and time the tunnel was last modified."""
+
+ psk_metadata: Optional[IPSECTunnelPSKMetadata] = None
+ """The PSK metadata that includes when the PSK was generated."""
+
+ replay_protection: Optional[bool] = None
+ """
+ If `true`, then IPsec replay protection will be supported in the
+ Cloudflare-to-customer direction.
+ """
+
+ tunnel_health_check: Optional[IPSECTunnelTunnelHealthCheck] = None
+
+
+class UnnamedSchemaRef39(BaseModel):
+ ipsec_tunnels: Optional[List[IPSECTunnel]] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_4.py b/src/cloudflare/types/shared/unnamed_schema_ref_4.py
new file mode 100644
index 00000000000..ae5e88cd934
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_4.py
@@ -0,0 +1,81 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef4", "IP", "Membership"]
+
+
+class IP(BaseModel):
+ created_at: Optional[datetime] = None
+
+ ip: Optional[str] = None
+ """An IPv4 or IPv6 address."""
+
+
+class Membership(BaseModel):
+ can_delete: Optional[bool] = None
+ """Controls whether the membership can be deleted via the API or not."""
+
+ created_at: Optional[datetime] = None
+
+ identifier: Optional[str] = None
+ """Identifier"""
+
+ kind: Optional[Literal["zone", "account"]] = None
+ """The type of the membership."""
+
+
+class UnnamedSchemaRef4(BaseModel):
+ id: Optional[str] = None
+ """Identifier"""
+
+ can_delete: Optional[bool] = None
+ """If set to false, then the Address Map cannot be deleted via API.
+
+ This is true for Cloudflare-managed maps.
+ """
+
+ can_modify_ips: Optional[bool] = None
+ """If set to false, then the IPs on the Address Map cannot be modified via the API.
+
+ This is true for Cloudflare-managed maps.
+ """
+
+ created_at: Optional[datetime] = None
+
+ default_sni: Optional[str] = None
+ """
+ If you have legacy TLS clients which do not send the TLS server name indicator,
+ then you can specify one default SNI on the map. If Cloudflare receives a TLS
+ handshake from a client without an SNI, it will respond with the default SNI on
+ those IPs. The default SNI can be any valid zone or subdomain owned by the
+ account.
+ """
+
+ description: Optional[str] = None
+ """
+ An optional description field which may be used to describe the types of IPs or
+ zones on the map.
+ """
+
+ enabled: Optional[bool] = None
+ """Whether the Address Map is enabled or not.
+
+ Cloudflare's DNS will not respond with IP addresses on an Address Map until the
+ map is enabled.
+ """
+
+ ips: Optional[List[IP]] = None
+ """The set of IPs on the Address Map."""
+
+ memberships: Optional[List[Membership]] = None
+ """Zones and Accounts which will be assigned IPs on this Address Map.
+
+ A zone membership will take priority over an account membership.
+ """
+
+ modified_at: Optional[datetime] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_40.py b/src/cloudflare/types/shared/unnamed_schema_ref_40.py
new file mode 100644
index 00000000000..a2bfb425965
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_40.py
@@ -0,0 +1,49 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from datetime import datetime
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef40", "Route", "RouteScope"]
+
+
+class RouteScope(BaseModel):
+ colo_names: Optional[List[str]] = None
+ """List of colo names for the ECMP scope."""
+
+ colo_regions: Optional[List[str]] = None
+ """List of colo regions for the ECMP scope."""
+
+
+class Route(BaseModel):
+ nexthop: str
+ """The next-hop IP Address for the static route."""
+
+ prefix: str
+ """IP Prefix in Classless Inter-Domain Routing format."""
+
+ priority: int
+ """Priority of the static route."""
+
+ id: Optional[str] = None
+ """Identifier"""
+
+ created_on: Optional[datetime] = None
+ """When the route was created."""
+
+ description: Optional[str] = None
+ """An optional human provided description of the static route."""
+
+ modified_on: Optional[datetime] = None
+ """When the route was last modified."""
+
+ scope: Optional[RouteScope] = None
+ """Used only for ECMP routes."""
+
+ weight: Optional[int] = None
+ """Optional weight of the ECMP scope - if provided."""
+
+
+class UnnamedSchemaRef40(BaseModel):
+ routes: Optional[List[Route]] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_41.py b/src/cloudflare/types/shared/unnamed_schema_ref_41.py
new file mode 100644
index 00000000000..79b0b538444
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_41.py
@@ -0,0 +1,16 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef41"]
+
+
+class UnnamedSchemaRef41(BaseModel):
+ batch_size: Optional[float] = None
+ """The maximum number of messages to include in a batch"""
+
+ max_retries: Optional[float] = None
+
+ max_wait_time_ms: Optional[float] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_43.py b/src/cloudflare/types/shared/unnamed_schema_ref_43.py
new file mode 100644
index 00000000000..c3c4e7e9792
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_43.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef43"]
+
+
+class UnnamedSchemaRef43(BaseModel):
+ id: Optional[str] = None
+ """The unique ID of the item in the List."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_44.py b/src/cloudflare/types/shared/unnamed_schema_ref_44.py
new file mode 100644
index 00000000000..ae39964ce11
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_44.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef44"]
+
+
+class UnnamedSchemaRef44(BaseModel):
+ after: Optional[str] = None
+
+ before: Optional[str] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_46.py b/src/cloudflare/types/shared/unnamed_schema_ref_46.py
new file mode 100644
index 00000000000..6fd03d2c79a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_46.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef46"]
+
+
+class UnnamedSchemaRef46(BaseModel):
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/spectrum/app_get_response.py b/src/cloudflare/types/shared/unnamed_schema_ref_49.py
similarity index 60%
rename from src/cloudflare/types/spectrum/app_get_response.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_49.py
index c236b54c610..a8ac184b677 100644
--- a/src/cloudflare/types/spectrum/app_get_response.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_49.py
@@ -2,6 +2,6 @@
from typing import Union
-__all__ = ["AppGetResponse"]
+__all__ = ["UnnamedSchemaRef49"]
-AppGetResponse = Union[str, object, None]
+UnnamedSchemaRef49 = Union[str, object]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_5.py b/src/cloudflare/types/shared/unnamed_schema_ref_5.py
new file mode 100644
index 00000000000..0cc61530353
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_5.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef5"]
+
+
+class UnnamedSchemaRef5(BaseModel):
+ filename: Optional[str] = None
+ """Name of LOA document."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_51.py b/src/cloudflare/types/shared/unnamed_schema_ref_51.py
new file mode 100644
index 00000000000..bd64fe830d6
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_51.py
@@ -0,0 +1,22 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef51"]
+
+
+class UnnamedSchemaRef51(BaseModel):
+ body_part: Optional[str] = None
+ """Name of the part in the multipart request that contains the script (e.g.
+
+ the file adding a listener to the `fetch` event). Indicates a
+ `service worker syntax` Worker.
+ """
+
+ main_module: Optional[str] = None
+ """Name of the part in the multipart request that contains the main module (e.g.
+
+ the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_52.py b/src/cloudflare/types/shared/unnamed_schema_ref_52.py
new file mode 100644
index 00000000000..292cd6add8e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_52.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef52"]
+
+
+class UnnamedSchemaRef52(BaseModel):
+ batch_size: Optional[float] = None
+
+ max_retries: Optional[float] = None
+
+ max_wait_time_ms: Optional[float] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_57.py b/src/cloudflare/types/shared/unnamed_schema_ref_57.py
new file mode 100644
index 00000000000..9f00f2f11fe
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_57.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef57"]
+
+
+class UnnamedSchemaRef57(BaseModel):
+ id: str
+ """Identifier"""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_59.py b/src/cloudflare/types/shared/unnamed_schema_ref_59.py
new file mode 100644
index 00000000000..be41f31dd2c
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_59.py
@@ -0,0 +1,22 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef59"]
+
+
+class UnnamedSchemaRef59(BaseModel):
+ certificate_authority: Optional[Literal["google", "lets_encrypt"]] = None
+ """The Certificate Authority that Total TLS certificates will be issued through."""
+
+ enabled: Optional[bool] = None
+ """
+ If enabled, Total TLS will order a hostname specific TLS certificate for any
+ proxied A, AAAA, or CNAME record in your zone.
+ """
+
+ validity_days: Optional[Literal[90]] = None
+ """The validity period in days for the certificates ordered via Total TLS."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_61.py b/src/cloudflare/types/shared/unnamed_schema_ref_61.py
new file mode 100644
index 00000000000..c65687ebe3b
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_61.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef61"]
+
+
+class UnnamedSchemaRef61(BaseModel):
+ recs_added: Optional[float] = None
+ """Number of DNS records added."""
+
+ total_records_parsed: Optional[float] = None
+ """Total number of DNS records parsed."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_62.py b/src/cloudflare/types/shared/unnamed_schema_ref_62.py
new file mode 100644
index 00000000000..1caca0a05b8
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_62.py
@@ -0,0 +1,19 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from datetime import datetime
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef62"]
+
+
+class UnnamedSchemaRef62(BaseModel):
+ end_time: Optional[datetime] = None
+ """When the file parsing ended."""
+
+ process_time: Optional[float] = None
+ """Processing time of the file in seconds."""
+
+ start_time: Optional[datetime] = None
+ """When the file parsing started."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_63.py b/src/cloudflare/types/shared/unnamed_schema_ref_63.py
new file mode 100644
index 00000000000..076cdfb5b3f
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_63.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef63"]
+
+
+class UnnamedSchemaRef63(BaseModel):
+ id: Optional[str] = None
+ """Identifier"""
diff --git a/src/cloudflare/types/hostnames/settings/hostname_stting.py b/src/cloudflare/types/shared/unnamed_schema_ref_65.py
similarity index 86%
rename from src/cloudflare/types/hostnames/settings/hostname_stting.py
rename to src/cloudflare/types/shared/unnamed_schema_ref_65.py
index 31d6932795e..89fff6650f5 100644
--- a/src/cloudflare/types/hostnames/settings/hostname_stting.py
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_65.py
@@ -3,12 +3,12 @@
from typing import List, Union, Optional
from datetime import datetime
-from ...._models import BaseModel
+from ..._models import BaseModel
-__all__ = ["HostnameStting"]
+__all__ = ["UnnamedSchemaRef65"]
-class HostnameStting(BaseModel):
+class UnnamedSchemaRef65(BaseModel):
created_at: Optional[datetime] = None
"""This is the time the tls setting was originally created for this hostname."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_69.py b/src/cloudflare/types/shared/unnamed_schema_ref_69.py
new file mode 100644
index 00000000000..403429f856b
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_69.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef69"]
+
+
+class UnnamedSchemaRef69(BaseModel):
+ id: Optional[str] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_7.py b/src/cloudflare/types/shared/unnamed_schema_ref_7.py
new file mode 100644
index 00000000000..d93205d3695
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_7.py
@@ -0,0 +1,19 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from datetime import datetime
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef7"]
+
+
+class UnnamedSchemaRef7(BaseModel):
+ advertised: Optional[bool] = None
+ """Enablement of prefix advertisement to the Internet."""
+
+ advertised_modified_at: Optional[datetime] = None
+ """Last time the advertisement status was changed.
+
+ This field is only not 'null' if on demand is enabled.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_71.py b/src/cloudflare/types/shared/unnamed_schema_ref_71.py
new file mode 100644
index 00000000000..19605167e7d
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_71.py
@@ -0,0 +1,69 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef71"]
+
+
+class UnnamedSchemaRef71(BaseModel):
+ id: Optional[str] = None
+ """Identifier"""
+
+ certificate_authority: Optional[Literal["google", "lets_encrypt"]] = None
+ """Certificate Authority selected for the order.
+
+ For information on any certificate authority specific details or restrictions
+ [see this page for more details.](https://developers.cloudflare.com/ssl/reference/certificate-authorities)
+ """
+
+ cloudflare_branding: Optional[bool] = None
+ """Whether or not to add Cloudflare Branding for the order.
+
+ This will add sni.cloudflaressl.com as the Common Name if set true.
+ """
+
+ hosts: Optional[List[str]] = None
+ """Comma separated list of valid host names for the certificate packs.
+
+ Must contain the zone apex, may not contain more than 50 hosts, and may not be
+ empty.
+ """
+
+ status: Optional[
+ Literal[
+ "initializing",
+ "pending_validation",
+ "deleted",
+ "pending_issuance",
+ "pending_deployment",
+ "pending_deletion",
+ "pending_expiration",
+ "expired",
+ "active",
+ "initializing_timed_out",
+ "validation_timed_out",
+ "issuance_timed_out",
+ "deployment_timed_out",
+ "deletion_timed_out",
+ "pending_cleanup",
+ "staging_deployment",
+ "staging_active",
+ "deactivating",
+ "inactive",
+ "backup_issued",
+ "holding_deployment",
+ ]
+ ] = None
+ """Status of certificate pack."""
+
+ type: Optional[Literal["advanced"]] = None
+ """Type of certificate pack."""
+
+ validation_method: Optional[Literal["txt", "http", "email"]] = None
+ """Validation Method selected for the order."""
+
+ validity_days: Optional[Literal[14, 30, 90, 365]] = None
+ """Validity Days selected for the order."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_72.py b/src/cloudflare/types/shared/unnamed_schema_ref_72.py
new file mode 100644
index 00000000000..a11c729772a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_72.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef72"]
+
+
+class UnnamedSchemaRef72(BaseModel):
+ id: str
+ """Identifier"""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_73.py b/src/cloudflare/types/shared/unnamed_schema_ref_73.py
new file mode 100644
index 00000000000..ef6bb1acfeb
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_73.py
@@ -0,0 +1,131 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union, Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef73", "DNS", "EdgeIPs", "EdgeIPsEyeballIPs", "EdgeIPsCustomerOwnedIPs", "OriginDNS"]
+
+
+class DNS(BaseModel):
+ name: Optional[str] = None
+ """The name of the DNS record associated with the application."""
+
+ type: Optional[Literal["CNAME", "ADDRESS"]] = None
+ """The type of DNS record associated with the application."""
+
+
+class EdgeIPsEyeballIPs(BaseModel):
+ connectivity: Optional[Literal["all", "ipv4", "ipv6"]] = None
+ """The IP versions supported for inbound connections on Spectrum anycast IPs."""
+
+ type: Optional[Literal["dynamic"]] = None
+ """The type of edge IP configuration specified.
+
+ Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the
+ connectivity you specify. Only valid with CNAME DNS names.
+ """
+
+
+class EdgeIPsCustomerOwnedIPs(BaseModel):
+ ips: Optional[List[str]] = None
+ """
+ The array of customer owned IPs we broadcast via anycast for this hostname and
+ application.
+ """
+
+ type: Optional[Literal["static"]] = None
+ """The type of edge IP configuration specified.
+
+ Statically allocated edge IPs use customer IPs in accordance with the ips array
+ you specify. Only valid with ADDRESS DNS names.
+ """
+
+
+EdgeIPs = Union[EdgeIPsEyeballIPs, EdgeIPsCustomerOwnedIPs]
+
+
+class OriginDNS(BaseModel):
+ name: Optional[str] = None
+ """The name of the DNS record associated with the origin."""
+
+ ttl: Optional[int] = None
+ """The TTL of our resolution of your DNS record in seconds."""
+
+ type: Optional[Literal["", "A", "AAAA", "SRV"]] = None
+ """The type of DNS record associated with the origin.
+
+ "" is used to specify a combination of A/AAAA records.
+ """
+
+
+class UnnamedSchemaRef73(BaseModel):
+ id: Optional[str] = None
+ """Application identifier."""
+
+ argo_smart_routing: Optional[bool] = None
+ """
+ Enables Argo Smart Routing for this application. Notes: Only available for TCP
+ applications with traffic_type set to "direct".
+ """
+
+ created_on: Optional[datetime] = None
+ """When the Application was created."""
+
+ dns: Optional[DNS] = None
+ """The name and type of DNS record for the Spectrum application."""
+
+ edge_ips: Optional[EdgeIPs] = None
+ """The anycast edge IP configuration for the hostname of this application."""
+
+ ip_firewall: Optional[bool] = None
+ """
+ Enables IP Access Rules for this application. Notes: Only available for TCP
+ applications.
+ """
+
+ modified_on: Optional[datetime] = None
+ """When the Application was last modified."""
+
+ origin_dns: Optional[OriginDNS] = None
+ """The name and type of DNS record for the Spectrum application."""
+
+ origin_port: Union[int, str, None] = None
+ """The destination port at the origin.
+
+ Only specified in conjunction with origin_dns. May use an integer to specify a
+ single origin port, for example `1000`, or a string to specify a range of origin
+ ports, for example `"1000-2000"`. Notes: If specifying a port range, the number
+ of ports in the range must match the number of ports specified in the "protocol"
+ field.
+ """
+
+ protocol: Optional[str] = None
+ """The port configuration at Cloudflare’s edge.
+
+ May specify a single port, for example `"tcp/1000"`, or a range of ports, for
+ example `"tcp/1000-2000"`.
+ """
+
+ proxy_protocol: Optional[Literal["off", "v1", "v2", "simple"]] = None
+ """Enables Proxy Protocol to the origin.
+
+ Refer to
+ [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/)
+ for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple
+ Proxy Protocol.
+ """
+
+ tls: Optional[Literal["off", "flexible", "full", "strict"]] = None
+ """The type of TLS termination associated with the application."""
+
+ traffic_type: Optional[Literal["direct", "http", "https"]] = None
+ """Determines how data travels from the edge to your origin.
+
+ When set to "direct", Spectrum will send traffic directly to your origin, and
+ the application's type is derived from the `protocol`. When set to "http" or
+ "https", Spectrum will apply Cloudflare's HTTP/HTTPS features as it sends
+ traffic to your origin, and the application type matches this property exactly.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_75.py b/src/cloudflare/types/shared/unnamed_schema_ref_75.py
new file mode 100644
index 00000000000..5ab93d44ee3
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_75.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef75"]
+
+UnnamedSchemaRef75 = Literal[
+ "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
+ "urn:oasis:names:tc:SAML:2.0:attrname-format:basic",
+ "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
+]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_76.py b/src/cloudflare/types/shared/unnamed_schema_ref_76.py
new file mode 100644
index 00000000000..4ae0a575cb7
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_76.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef76"]
+
+
+class UnnamedSchemaRef76(BaseModel):
+ name: Optional[str] = None
+ """The name of the IdP attribute."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_77.py b/src/cloudflare/types/shared/unnamed_schema_ref_77.py
new file mode 100644
index 00000000000..c130de19a30
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_77.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef77"]
+
+UnnamedSchemaRef77 = Literal["id", "email"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_78.py b/src/cloudflare/types/shared/unnamed_schema_ref_78.py
new file mode 100644
index 00000000000..d27b4d5b507
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_78.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef78"]
+
+UnnamedSchemaRef78 = Literal["ubiquitous", "optimal", "force"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_79.py b/src/cloudflare/types/shared/unnamed_schema_ref_79.py
new file mode 100644
index 00000000000..3b4bb87d953
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_79.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef79"]
+
+UnnamedSchemaRef79 = Literal["http", "txt", "email"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_8.py b/src/cloudflare/types/shared/unnamed_schema_ref_8.py
new file mode 100644
index 00000000000..61103c2477a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_8.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef8"]
+
+
+class UnnamedSchemaRef8(BaseModel):
+ text: str
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_80.py b/src/cloudflare/types/shared/unnamed_schema_ref_80.py
new file mode 100644
index 00000000000..9098d3760c2
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_80.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef80"]
+
+UnnamedSchemaRef80 = Literal["dv"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_81.py b/src/cloudflare/types/shared/unnamed_schema_ref_81.py
new file mode 100644
index 00000000000..3231f64511a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_81.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef81"]
+
+UnnamedSchemaRef81 = Literal["on", "off"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_82.py b/src/cloudflare/types/shared/unnamed_schema_ref_82.py
new file mode 100644
index 00000000000..bcb9fb42164
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_82.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef82"]
+
+UnnamedSchemaRef82 = Literal["tcp", "udp", "icmp"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_83.py b/src/cloudflare/types/shared/unnamed_schema_ref_83.py
new file mode 100644
index 00000000000..849072f381b
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_83.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef83"]
+
+UnnamedSchemaRef83 = Literal["low", "mid", "high"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_84.py b/src/cloudflare/types/shared/unnamed_schema_ref_84.py
new file mode 100644
index 00000000000..713db3d6585
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_84.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef84"]
+
+UnnamedSchemaRef84 = Literal["reply", "request"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_85.py b/src/cloudflare/types/shared/unnamed_schema_ref_85.py
new file mode 100644
index 00000000000..ffbdf6716dd
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_85.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef85"]
+
+UnnamedSchemaRef85 = Literal["r2"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_87.py b/src/cloudflare/types/shared/unnamed_schema_ref_87.py
new file mode 100644
index 00000000000..ab3d7a86947
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_87.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef87"]
+
+UnnamedSchemaRef87 = Literal["<", "<=", ">", ">=", "=="]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_88.py b/src/cloudflare/types/shared/unnamed_schema_ref_88.py
new file mode 100644
index 00000000000..0a491120a93
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_88.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef88"]
+
+UnnamedSchemaRef88 = Literal["<", "<=", ">", ">=", "=="]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_89.py b/src/cloudflare/types/shared/unnamed_schema_ref_89.py
new file mode 100644
index 00000000000..ca23191da08
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_89.py
@@ -0,0 +1,23 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef89"]
+
+
+class UnnamedSchemaRef89(BaseModel):
+ action_type: str = FieldInfo(alias="actionType")
+ """Tool event type"""
+
+ blocking_triggers: List[str] = FieldInfo(alias="blockingTriggers")
+ """List of blocking triggers IDs"""
+
+ data: object
+ """Event payload"""
+
+ firing_triggers: List[str] = FieldInfo(alias="firingTriggers")
+ """List of firing triggers IDs"""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_9.py b/src/cloudflare/types/shared/unnamed_schema_ref_9.py
new file mode 100644
index 00000000000..98faf4aedca
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_9.py
@@ -0,0 +1,115 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Union, Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+from .unnamed_schema_ref_171 import UnnamedSchemaRef171
+from .unnamed_schema_ref_172 import UnnamedSchemaRef172
+
+__all__ = [
+ "UnnamedSchemaRef9",
+ "UnionMember0",
+ "UnionMember0Result",
+ "UnionMember0ResultAction",
+ "UnionMember0ResultActor",
+ "UnionMember0ResultOwner",
+ "UnionMember0ResultResource",
+ "AaaAPIResponseCommon",
+]
+
+
+class UnionMember0ResultAction(BaseModel):
+ result: Optional[bool] = None
+ """A boolean that indicates if the action attempted was successful."""
+
+ type: Optional[str] = None
+ """A short string that describes the action that was performed."""
+
+
+class UnionMember0ResultActor(BaseModel):
+ id: Optional[str] = None
+ """The ID of the actor that performed the action.
+
+ If a user performed the action, this will be their User ID.
+ """
+
+ email: Optional[str] = None
+ """The email of the user that performed the action."""
+
+ ip: Optional[str] = None
+ """The IP address of the request that performed the action."""
+
+ type: Optional[Literal["user", "admin", "Cloudflare"]] = None
+ """The type of actor, whether a User, Cloudflare Admin, or an Automated System."""
+
+
+class UnionMember0ResultOwner(BaseModel):
+ id: Optional[str] = None
+ """Identifier"""
+
+
+class UnionMember0ResultResource(BaseModel):
+ id: Optional[str] = None
+ """An identifier for the resource that was affected by the action."""
+
+ type: Optional[str] = None
+ """A short string that describes the resource that was affected by the action."""
+
+
+class UnionMember0Result(BaseModel):
+ id: Optional[str] = None
+ """A string that uniquely identifies the audit log."""
+
+ action: Optional[UnionMember0ResultAction] = None
+
+ actor: Optional[UnionMember0ResultActor] = None
+
+ interface: Optional[str] = None
+ """The source of the event."""
+
+ metadata: Optional[object] = None
+ """An object which can lend more context to the action being logged.
+
+ This is a flexible value and varies between different actions.
+ """
+
+ new_value: Optional[str] = FieldInfo(alias="newValue", default=None)
+ """The new value of the resource that was modified."""
+
+ old_value: Optional[str] = FieldInfo(alias="oldValue", default=None)
+ """The value of the resource before it was modified."""
+
+ owner: Optional[UnionMember0ResultOwner] = None
+
+ resource: Optional[UnionMember0ResultResource] = None
+
+ when: Optional[datetime] = None
+ """A UTC RFC3339 timestamp that specifies when the action being logged occured."""
+
+
+class UnionMember0(BaseModel):
+ errors: Optional[object] = None
+
+ messages: Optional[List[object]] = None
+
+ result: Optional[List[UnionMember0Result]] = None
+
+ success: Optional[bool] = None
+
+
+class AaaAPIResponseCommon(BaseModel):
+ errors: List[UnnamedSchemaRef172]
+
+ messages: List[UnnamedSchemaRef172]
+
+ result: UnnamedSchemaRef171
+
+ success: Literal[True]
+ """Whether the API call was successful"""
+
+
+UnnamedSchemaRef9 = Union[UnionMember0, AaaAPIResponseCommon]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_90.py b/src/cloudflare/types/shared/unnamed_schema_ref_90.py
new file mode 100644
index 00000000000..7052497de6a
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_90.py
@@ -0,0 +1,18 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Dict
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef90"]
+
+
+class UnnamedSchemaRef90(BaseModel):
+ accept_all: Dict[str, str]
+ """Object where keys are language codes"""
+
+ confirm_my_choices: Dict[str, str]
+ """Object where keys are language codes"""
+
+ reject_all: Dict[str, str]
+ """Object where keys are language codes"""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_91.py b/src/cloudflare/types/shared/unnamed_schema_ref_91.py
new file mode 100644
index 00000000000..966b9c2ecc6
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_91.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef91"]
+
+
+class UnnamedSchemaRef91(BaseModel):
+ escaped_worker_name: str = FieldInfo(alias="escapedWorkerName")
+
+ worker_tag: str = FieldInfo(alias="workerTag")
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_92.py b/src/cloudflare/types/shared/unnamed_schema_ref_92.py
new file mode 100644
index 00000000000..638db67a182
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_92.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef92"]
+
+UnnamedSchemaRef92 = Literal["on", "off"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_93.py b/src/cloudflare/types/shared/unnamed_schema_ref_93.py
new file mode 100644
index 00000000000..c2733e4f94e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_93.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef93"]
+
+
+class UnnamedSchemaRef93(BaseModel):
+ data: Optional[List[List[float]]] = None
+
+ shape: Optional[List[float]] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_94.py b/src/cloudflare/types/shared/unnamed_schema_ref_94.py
new file mode 100644
index 00000000000..59144fae53e
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_94.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef94"]
+
+
+class UnnamedSchemaRef94(BaseModel):
+ end: Optional[float] = None
+
+ start: Optional[float] = None
+
+ word: Optional[str] = None
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_96.py b/src/cloudflare/types/shared/unnamed_schema_ref_96.py
new file mode 100644
index 00000000000..033703dc0ca
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_96.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef96"]
+
+UnnamedSchemaRef96 = Literal["custom"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_97.py b/src/cloudflare/types/shared/unnamed_schema_ref_97.py
new file mode 100644
index 00000000000..fe919b688ab
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_97.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef97"]
+
+UnnamedSchemaRef97 = Literal["predefined"]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_98.py b/src/cloudflare/types/shared/unnamed_schema_ref_98.py
new file mode 100644
index 00000000000..5b1c7ebbc57
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_98.py
@@ -0,0 +1,267 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List, Optional
+from datetime import datetime
+from typing_extensions import Literal
+
+from pydantic import Field as FieldInfo
+
+from ..._models import BaseModel
+
+__all__ = [
+ "UnnamedSchemaRef98",
+ "LoadShedding",
+ "NotificationFilter",
+ "NotificationFilterOrigin",
+ "NotificationFilterPool",
+ "OriginSteering",
+ "Origin",
+ "OriginHeader",
+]
+
+
+class LoadShedding(BaseModel):
+ default_percent: Optional[float] = None
+ """The percent of traffic to shed from the pool, according to the default policy.
+
+ Applies to new sessions and traffic without session affinity.
+ """
+
+ default_policy: Optional[Literal["random", "hash"]] = None
+ """The default policy to use when load shedding.
+
+ A random policy randomly sheds a given percent of requests. A hash policy
+ computes a hash over the CF-Connecting-IP address and sheds all requests
+ originating from a percent of IPs.
+ """
+
+ session_percent: Optional[float] = None
+ """
+ The percent of existing sessions to shed from the pool, according to the session
+ policy.
+ """
+
+ session_policy: Optional[Literal["hash"]] = None
+ """
+ Only the hash policy is supported for existing sessions (to avoid exponential
+ decay).
+ """
+
+
+class NotificationFilterOrigin(BaseModel):
+ disable: Optional[bool] = None
+ """If set true, disable notifications for this type of resource (pool or origin)."""
+
+ healthy: Optional[bool] = None
+ """If present, send notifications only for this health status (e.g.
+
+ false for only DOWN events). Use null to reset (all events).
+ """
+
+
+class NotificationFilterPool(BaseModel):
+ disable: Optional[bool] = None
+ """If set true, disable notifications for this type of resource (pool or origin)."""
+
+ healthy: Optional[bool] = None
+ """If present, send notifications only for this health status (e.g.
+
+ false for only DOWN events). Use null to reset (all events).
+ """
+
+
+class NotificationFilter(BaseModel):
+ origin: Optional[NotificationFilterOrigin] = None
+ """Filter options for a particular resource type (pool or origin).
+
+ Use null to reset.
+ """
+
+ pool: Optional[NotificationFilterPool] = None
+ """Filter options for a particular resource type (pool or origin).
+
+ Use null to reset.
+ """
+
+
+class OriginSteering(BaseModel):
+ policy: Optional[Literal["random", "hash", "least_outstanding_requests", "least_connections"]] = None
+ """The type of origin steering policy to use.
+
+ - `"random"`: Select an origin randomly.
+ - `"hash"`: Select an origin by computing a hash over the CF-Connecting-IP
+ address.
+ - `"least_outstanding_requests"`: Select an origin by taking into consideration
+ origin weights, as well as each origin's number of outstanding requests.
+ Origins with more pending requests are weighted proportionately less relative
+ to others.
+ - `"least_connections"`: Select an origin by taking into consideration origin
+ weights, as well as each origin's number of open connections. Origins with
+ more open connections are weighted proportionately less relative to others.
+ Supported for HTTP/1 and HTTP/2 connections.
+ """
+
+
+class OriginHeader(BaseModel):
+ host: Optional[List[str]] = FieldInfo(alias="Host", default=None)
+ """The 'Host' header allows to override the hostname set in the HTTP request.
+
+ Current support is 1 'Host' header override per origin.
+ """
+
+
+class Origin(BaseModel):
+ address: Optional[str] = None
+ """
+ The IP address (IPv4 or IPv6) of the origin, or its publicly addressable
+ hostname. Hostnames entered here should resolve directly to the origin, and not
+ be a hostname proxied by Cloudflare. To set an internal/reserved address,
+ virtual_network_id must also be set.
+ """
+
+ disabled_at: Optional[datetime] = None
+ """This field shows up only if the origin is disabled.
+
+ This field is set with the time the origin was disabled.
+ """
+
+ enabled: Optional[bool] = None
+ """Whether to enable (the default) this origin within the pool.
+
+ Disabled origins will not receive traffic and are excluded from health checks.
+ The origin will only be disabled for the current pool.
+ """
+
+ header: Optional[OriginHeader] = None
+ """The request header is used to pass additional information with an HTTP request.
+
+ Currently supported header is 'Host'.
+ """
+
+ name: Optional[str] = None
+ """A human-identifiable name for the origin."""
+
+ virtual_network_id: Optional[str] = None
+ """The virtual network subnet ID the origin belongs in.
+
+ Virtual network must also belong to the account.
+ """
+
+ weight: Optional[float] = None
+ """The weight of this origin relative to other origins in the pool.
+
+ Based on the configured weight the total traffic is distributed among origins
+ within the pool.
+
+ - `origin_steering.policy="least_outstanding_requests"`: Use weight to scale the
+ origin's outstanding requests.
+ - `origin_steering.policy="least_connections"`: Use weight to scale the origin's
+ open connections.
+ """
+
+
+class UnnamedSchemaRef98(BaseModel):
+ check_regions: Optional[
+ List[
+ Literal[
+ "WNAM",
+ "ENAM",
+ "WEU",
+ "EEU",
+ "NSAM",
+ "SSAM",
+ "OC",
+ "ME",
+ "NAF",
+ "SAF",
+ "SAS",
+ "SEAS",
+ "NEAS",
+ "ALL_REGIONS",
+ ]
+ ]
+ ] = None
+ """A list of regions from which to run health checks.
+
+ Null means every Cloudflare data center.
+ """
+
+ description: Optional[str] = None
+ """A human-readable description of the pool."""
+
+ disabled_at: Optional[datetime] = None
+ """This field shows up only if the pool is disabled.
+
+ This field is set with the time the pool was disabled at.
+ """
+
+ enabled: Optional[bool] = None
+ """Whether to enable (the default) or disable this pool.
+
+ Disabled pools will not receive traffic and are excluded from health checks.
+ Disabling a pool will cause any load balancers using it to failover to the next
+ pool (if any).
+ """
+
+ latitude: Optional[float] = None
+ """
+ The latitude of the data center containing the origins used in this pool in
+ decimal degrees. If this is set, longitude must also be set.
+ """
+
+ load_shedding: Optional[LoadShedding] = None
+ """Configures load shedding policies and percentages for the pool."""
+
+ longitude: Optional[float] = None
+ """
+ The longitude of the data center containing the origins used in this pool in
+ decimal degrees. If this is set, latitude must also be set.
+ """
+
+ minimum_origins: Optional[int] = None
+ """
+ The minimum number of origins that must be healthy for this pool to serve
+ traffic. If the number of healthy origins falls below this number, the pool will
+ be marked unhealthy and will failover to the next available pool.
+ """
+
+ monitor: Optional[object] = None
+ """
+ The ID of the Monitor to use for checking the health of origins within this
+ pool.
+ """
+
+ name: Optional[str] = None
+ """A short name (tag) for the pool.
+
+ Only alphanumeric characters, hyphens, and underscores are allowed.
+ """
+
+ notification_email: Optional[str] = None
+ """This field is now deprecated.
+
+ It has been moved to Cloudflare's Centralized Notification service
+ https://developers.cloudflare.com/fundamentals/notifications/. The email address
+ to send health status notifications to. This can be an individual mailbox or a
+ mailing list. Multiple emails can be supplied as a comma delimited list.
+ """
+
+ notification_filter: Optional[NotificationFilter] = None
+ """Filter pool and origin health notifications by resource type or health status.
+
+ Use null to reset.
+ """
+
+ origin_steering: Optional[OriginSteering] = None
+ """Configures origin steering for the pool.
+
+ Controls how origins are selected for new sessions and traffic without session
+ affinity.
+ """
+
+ origins: Optional[List[Origin]] = None
+ """The list of origins within this pool.
+
+ Traffic directed at this pool is balanced across all currently healthy origins,
+ provided the pool itself is healthy.
+ """
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_99.py b/src/cloudflare/types/shared/unnamed_schema_ref_99.py
new file mode 100644
index 00000000000..4e25f04101b
--- /dev/null
+++ b/src/cloudflare/types/shared/unnamed_schema_ref_99.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef99"]
+
+
+class UnnamedSchemaRef99(BaseModel):
+ id: str
+ """Identifier"""
diff --git a/src/cloudflare/types/shared_params/__init__.py b/src/cloudflare/types/shared_params/__init__.py
new file mode 100644
index 00000000000..ad816ec1016
--- /dev/null
+++ b/src/cloudflare/types/shared_params/__init__.py
@@ -0,0 +1,24 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from .logging import Logging as Logging
+from .unnamed_schema_ref_28 import UnnamedSchemaRef28 as UnnamedSchemaRef28
+from .unnamed_schema_ref_51 import UnnamedSchemaRef51 as UnnamedSchemaRef51
+from .unnamed_schema_ref_75 import UnnamedSchemaRef75 as UnnamedSchemaRef75
+from .unnamed_schema_ref_76 import UnnamedSchemaRef76 as UnnamedSchemaRef76
+from .unnamed_schema_ref_77 import UnnamedSchemaRef77 as UnnamedSchemaRef77
+from .unnamed_schema_ref_78 import UnnamedSchemaRef78 as UnnamedSchemaRef78
+from .unnamed_schema_ref_81 import UnnamedSchemaRef81 as UnnamedSchemaRef81
+from .unnamed_schema_ref_82 import UnnamedSchemaRef82 as UnnamedSchemaRef82
+from .unnamed_schema_ref_83 import UnnamedSchemaRef83 as UnnamedSchemaRef83
+from .unnamed_schema_ref_84 import UnnamedSchemaRef84 as UnnamedSchemaRef84
+from .unnamed_schema_ref_85 import UnnamedSchemaRef85 as UnnamedSchemaRef85
+from .unnamed_schema_ref_87 import UnnamedSchemaRef87 as UnnamedSchemaRef87
+from .unnamed_schema_ref_88 import UnnamedSchemaRef88 as UnnamedSchemaRef88
+from .unnamed_schema_ref_92 import UnnamedSchemaRef92 as UnnamedSchemaRef92
+from .unnamed_schema_ref_119 import UnnamedSchemaRef119 as UnnamedSchemaRef119
+from .unnamed_schema_ref_121 import UnnamedSchemaRef121 as UnnamedSchemaRef121
+from .unnamed_schema_ref_125 import UnnamedSchemaRef125 as UnnamedSchemaRef125
+from .unnamed_schema_ref_131 import UnnamedSchemaRef131 as UnnamedSchemaRef131
+from .unnamed_schema_ref_158 import UnnamedSchemaRef158 as UnnamedSchemaRef158
+from .unnamed_schema_ref_163 import UnnamedSchemaRef163 as UnnamedSchemaRef163
+from .unnamed_schema_ref_172 import UnnamedSchemaRef172 as UnnamedSchemaRef172
diff --git a/src/cloudflare/types/shared_params/logging.py b/src/cloudflare/types/shared_params/logging.py
new file mode 100644
index 00000000000..7220210c22d
--- /dev/null
+++ b/src/cloudflare/types/shared_params/logging.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["Logging"]
+
+
+class Logging(TypedDict, total=False):
+ enabled: Required[bool]
+ """Whether to generate a log when the rule matches."""
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_119.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_119.py
new file mode 100644
index 00000000000..635199bcb70
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_119.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef119"]
+
+UnnamedSchemaRef119 = Literal["windows", "linux", "mac"]
diff --git a/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_121.py
similarity index 51%
rename from src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py
rename to src/cloudflare/types/shared_params/unnamed_schema_ref_121.py
index 3171e8788bc..86c5fd2f35f 100644
--- a/src/cloudflare/types/alerting/destinations/pagerduty_delete_response.py
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_121.py
@@ -1,7 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+from __future__ import annotations
+
from typing import List, Union
-__all__ = ["PagerdutyDeleteResponse"]
+__all__ = ["UnnamedSchemaRef121"]
-PagerdutyDeleteResponse = Union[List[object], str, object, None]
+UnnamedSchemaRef121 = Union[str, List[str]]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_125.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_125.py
new file mode 100644
index 00000000000..9da690c2e25
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_125.py
@@ -0,0 +1,161 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = [
+ "UnnamedSchemaRef125",
+ "ActivityLog",
+ "Antivirus",
+ "AntivirusNotificationSettings",
+ "BlockPage",
+ "BodyScanning",
+ "BrowserIsolation",
+ "CustomCertificate",
+ "ExtendedEmailMatching",
+ "Fips",
+ "ProtocolDetection",
+ "TLSDecrypt",
+]
+
+
+class ActivityLog(TypedDict, total=False):
+ enabled: bool
+ """Enable activity logging."""
+
+
+class AntivirusNotificationSettings(TypedDict, total=False):
+ enabled: bool
+ """Set notification on"""
+
+ msg: str
+ """Customize the message shown in the notification."""
+
+ support_url: str
+ """Optional URL to direct users to additional information.
+
+ If not set, the notification will open a block page.
+ """
+
+
+class Antivirus(TypedDict, total=False):
+ enabled_download_phase: bool
+ """Enable anti-virus scanning on downloads."""
+
+ enabled_upload_phase: bool
+ """Enable anti-virus scanning on uploads."""
+
+ fail_closed: bool
+ """Block requests for files that cannot be scanned."""
+
+ notification_settings: AntivirusNotificationSettings
+ """
+ Configure a message to display on the user's device when an antivirus search is
+ performed.
+ """
+
+
+class BlockPage(TypedDict, total=False):
+ background_color: str
+ """Block page background color in #rrggbb format."""
+
+ enabled: bool
+ """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
+
+ footer_text: str
+ """Block page footer text."""
+
+ header_text: str
+ """Block page header text."""
+
+ logo_path: str
+ """Full URL to the logo file."""
+
+ mailto_address: str
+ """Admin email for users to contact."""
+
+ mailto_subject: str
+ """Subject line for emails created from block page."""
+
+ name: str
+ """Block page title."""
+
+ suppress_footer: bool
+ """Suppress detailed info at the bottom of the block page."""
+
+
+class BodyScanning(TypedDict, total=False):
+ inspection_mode: str
+ """Set the inspection mode to either `deep` or `shallow`."""
+
+
+class BrowserIsolation(TypedDict, total=False):
+ non_identity_enabled: bool
+ """Enable non-identity onramp support for Browser Isolation."""
+
+ url_browser_isolation_enabled: bool
+ """Enable Clientless Browser Isolation."""
+
+
+class CustomCertificate(TypedDict, total=False):
+ enabled: Required[bool]
+ """Enable use of custom certificate authority for signing Gateway traffic."""
+
+ id: str
+ """UUID of certificate (ID from MTLS certificate store)."""
+
+
+class ExtendedEmailMatching(TypedDict, total=False):
+ enabled: bool
+ """Enable matching all variants of user emails (with + or .
+
+ modifiers) used as criteria in Firewall policies.
+ """
+
+
+class Fips(TypedDict, total=False):
+ tls: bool
+ """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
+
+
+class ProtocolDetection(TypedDict, total=False):
+ enabled: bool
+ """Enable detecting protocol on initial bytes of client traffic."""
+
+
+class TLSDecrypt(TypedDict, total=False):
+ enabled: bool
+ """Enable inspecting encrypted HTTP traffic."""
+
+
+class UnnamedSchemaRef125(TypedDict, total=False):
+ activity_log: ActivityLog
+ """Activity log settings."""
+
+ antivirus: Antivirus
+ """Anti-virus settings."""
+
+ block_page: BlockPage
+ """Block page layout settings."""
+
+ body_scanning: BodyScanning
+ """DLP body scanning settings."""
+
+ browser_isolation: BrowserIsolation
+ """Browser isolation settings."""
+
+ custom_certificate: CustomCertificate
+ """Custom certificate settings for BYO-PKI."""
+
+ extended_email_matching: ExtendedEmailMatching
+ """Extended e-mail matching settings."""
+
+ fips: Fips
+ """FIPS settings."""
+
+ protocol_detection: ProtocolDetection
+ """Protocol Detection settings."""
+
+ tls_decrypt: TLSDecrypt
+ """TLS interception settings."""
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_131.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_131.py
new file mode 100644
index 00000000000..500753513ab
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_131.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["UnnamedSchemaRef131"]
+
+
+class UnnamedSchemaRef131(TypedDict, total=False):
+ id: Required[str]
+ """The ID of a previously created Access group."""
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_158.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_158.py
new file mode 100644
index 00000000000..634998706e6
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_158.py
@@ -0,0 +1,39 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import TypedDict
+
+__all__ = ["UnnamedSchemaRef158"]
+
+
+class UnnamedSchemaRef158(TypedDict, total=False):
+ enabled: bool
+ """A flag to enable or disable SCIM for the identity provider."""
+
+ group_member_deprovision: bool
+ """
+ A flag to revoke a user's session in Access and force a reauthentication on the
+ user's Gateway session when they have been added or removed from a group in the
+ Identity Provider.
+ """
+
+ seat_deprovision: bool
+ """
+ A flag to remove a user's seat in Zero Trust when they have been deprovisioned
+ in the Identity Provider. This cannot be enabled unless user_deprovision is also
+ enabled.
+ """
+
+ secret: str
+ """
+ A read-only token generated when the SCIM integration is enabled for the first
+ time. It is redacted on subsequent requests. If you lose this you will need to
+ refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
+ """
+
+ user_deprovision: bool
+ """
+ A flag to enable revoking a user's session in Access and Gateway when they have
+ been deprovisioned in the Identity Provider.
+ """
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_163.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_163.py
new file mode 100644
index 00000000000..5958cbeca4e
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_163.py
@@ -0,0 +1,24 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef163"]
+
+UnnamedSchemaRef163 = Literal[
+ "onetimepin",
+ "azureAD",
+ "saml",
+ "centrify",
+ "facebook",
+ "github",
+ "google-apps",
+ "google",
+ "linkedin",
+ "oidc",
+ "okta",
+ "onelogin",
+ "pingone",
+ "yandex",
+]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_172.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_172.py
new file mode 100644
index 00000000000..4205c0958c1
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_172.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Required, TypedDict
+
+__all__ = ["UnnamedSchemaRef172"]
+
+
+class UnnamedSchemaRef172(TypedDict, total=False):
+ code: Required[int]
+
+ message: Required[str]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_28.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_28.py
new file mode 100644
index 00000000000..811a2de60cb
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_28.py
@@ -0,0 +1,18 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import TypedDict
+
+__all__ = ["UnnamedSchemaRef28"]
+
+
+class UnnamedSchemaRef28(TypedDict, total=False):
+ dns: object
+ """Logging settings for DNS firewall."""
+
+ http: object
+ """Logging settings for HTTP/HTTPS firewall."""
+
+ l4: object
+ """Logging settings for Network firewall."""
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_51.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_51.py
new file mode 100644
index 00000000000..9f7c325c7b9
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_51.py
@@ -0,0 +1,22 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import TypedDict
+
+__all__ = ["UnnamedSchemaRef51"]
+
+
+class UnnamedSchemaRef51(TypedDict, total=False):
+ body_part: str
+ """Name of the part in the multipart request that contains the script (e.g.
+
+ the file adding a listener to the `fetch` event). Indicates a
+ `service worker syntax` Worker.
+ """
+
+ main_module: str
+ """Name of the part in the multipart request that contains the main module (e.g.
+
+ the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
+ """
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_75.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_75.py
new file mode 100644
index 00000000000..3a651e9d78f
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_75.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef75"]
+
+UnnamedSchemaRef75 = Literal[
+ "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
+ "urn:oasis:names:tc:SAML:2.0:attrname-format:basic",
+ "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
+]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_76.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_76.py
new file mode 100644
index 00000000000..75172ddb621
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_76.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import TypedDict
+
+__all__ = ["UnnamedSchemaRef76"]
+
+
+class UnnamedSchemaRef76(TypedDict, total=False):
+ name: str
+ """The name of the IdP attribute."""
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_77.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_77.py
new file mode 100644
index 00000000000..5ed2bdc6ae4
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_77.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef77"]
+
+UnnamedSchemaRef77 = Literal["id", "email"]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_78.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_78.py
new file mode 100644
index 00000000000..905654996ce
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_78.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef78"]
+
+UnnamedSchemaRef78 = Literal["ubiquitous", "optimal", "force"]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_81.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_81.py
new file mode 100644
index 00000000000..3895e6976c7
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_81.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef81"]
+
+UnnamedSchemaRef81 = Literal["on", "off"]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_82.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_82.py
new file mode 100644
index 00000000000..3b3bc3d46e5
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_82.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef82"]
+
+UnnamedSchemaRef82 = Literal["tcp", "udp", "icmp"]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_83.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_83.py
new file mode 100644
index 00000000000..f745a2825ff
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_83.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef83"]
+
+UnnamedSchemaRef83 = Literal["low", "mid", "high"]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_84.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_84.py
new file mode 100644
index 00000000000..464ad5020e7
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_84.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef84"]
+
+UnnamedSchemaRef84 = Literal["reply", "request"]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_85.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_85.py
new file mode 100644
index 00000000000..2edf53261f3
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_85.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef85"]
+
+UnnamedSchemaRef85 = Literal["r2"]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_87.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_87.py
new file mode 100644
index 00000000000..d7009a9d6f9
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_87.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef87"]
+
+UnnamedSchemaRef87 = Literal["<", "<=", ">", ">=", "=="]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_88.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_88.py
new file mode 100644
index 00000000000..b383211bb72
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_88.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef88"]
+
+UnnamedSchemaRef88 = Literal["<", "<=", ">", ">=", "=="]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_92.py b/src/cloudflare/types/shared_params/unnamed_schema_ref_92.py
new file mode 100644
index 00000000000..bbb1ad0c694
--- /dev/null
+++ b/src/cloudflare/types/shared_params/unnamed_schema_ref_92.py
@@ -0,0 +1,9 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import Literal
+
+__all__ = ["UnnamedSchemaRef92"]
+
+UnnamedSchemaRef92 = Literal["on", "off"]
diff --git a/src/cloudflare/types/snippet_delete_response.py b/src/cloudflare/types/snippet_delete_response.py
deleted file mode 100644
index 4d10682f00e..00000000000
--- a/src/cloudflare/types/snippet_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["SnippetDeleteResponse"]
-
-SnippetDeleteResponse = Union[List[object], str, object]
diff --git a/src/cloudflare/types/spectrum/__init__.py b/src/cloudflare/types/spectrum/__init__.py
index 0dc9e6a6b7b..6f2b86f7d15 100644
--- a/src/cloudflare/types/spectrum/__init__.py
+++ b/src/cloudflare/types/spectrum/__init__.py
@@ -3,7 +3,6 @@
from __future__ import annotations
from .app_list_params import AppListParams as AppListParams
-from .app_get_response import AppGetResponse as AppGetResponse
from .app_create_params import AppCreateParams as AppCreateParams
from .app_delete_params import AppDeleteParams as AppDeleteParams
from .app_update_params import AppUpdateParams as AppUpdateParams
diff --git a/src/cloudflare/types/speed/test_list_response.py b/src/cloudflare/types/speed/test_list_response.py
index 0c610a295bc..0c526e3cc20 100644
--- a/src/cloudflare/types/speed/test_list_response.py
+++ b/src/cloudflare/types/speed/test_list_response.py
@@ -2,21 +2,10 @@
from typing import List, Optional
+from ..shared import UnnamedSchemaRef172
from ..._models import BaseModel
-__all__ = ["TestListResponse", "Error", "Message", "ResultInfo"]
-
-
-class Error(BaseModel):
- code: int
-
- message: str
-
-
-class Message(BaseModel):
- code: int
-
- message: str
+__all__ = ["TestListResponse", "ResultInfo"]
class ResultInfo(BaseModel):
@@ -31,9 +20,9 @@ class ResultInfo(BaseModel):
class TestListResponse(BaseModel):
__test__ = False
- errors: List[Error]
+ errors: List[UnnamedSchemaRef172]
- messages: List[Message]
+ messages: List[UnnamedSchemaRef172]
success: bool
"""Whether the API call was successful."""
diff --git a/src/cloudflare/types/ssl/analyze_create_params.py b/src/cloudflare/types/ssl/analyze_create_params.py
index 0e19cf3b6a2..e517dca5093 100644
--- a/src/cloudflare/types/ssl/analyze_create_params.py
+++ b/src/cloudflare/types/ssl/analyze_create_params.py
@@ -2,7 +2,9 @@
from __future__ import annotations
-from typing_extensions import Literal, Required, TypedDict
+from typing_extensions import Required, TypedDict
+
+from ..shared import UnnamedSchemaRef78
__all__ = ["AnalyzeCreateParams"]
@@ -11,7 +13,7 @@ class AnalyzeCreateParams(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
- bundle_method: Literal["ubiquitous", "optimal", "force"]
+ bundle_method: UnnamedSchemaRef78
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
diff --git a/src/cloudflare/types/storage/workers_kv_components_schemas_result.py b/src/cloudflare/types/storage/workers_kv_components_schemas_result.py
index 8f1f1306ee8..65576cf8718 100644
--- a/src/cloudflare/types/storage/workers_kv_components_schemas_result.py
+++ b/src/cloudflare/types/storage/workers_kv_components_schemas_result.py
@@ -3,14 +3,10 @@
from typing import List, Optional
from datetime import datetime
+from ..shared import UnnamedSchemaRef148
from ..._models import BaseModel
-__all__ = ["WorkersKVComponentsSchemasResult", "Data", "Query"]
-
-
-class Data(BaseModel):
- metrics: List[object]
- """List of metrics returned by the query."""
+__all__ = ["WorkersKVComponentsSchemasResult", "Query"]
class Query(BaseModel):
@@ -57,7 +53,7 @@ class Query(BaseModel):
class WorkersKVComponentsSchemasResult(BaseModel):
- data: Optional[List[Data]] = None
+ data: Optional[List[UnnamedSchemaRef148]] = None
data_lag: float
"""Number of seconds between current time and last processed event, i.e.
diff --git a/src/cloudflare/types/storage/workers_kv_schemas_result.py b/src/cloudflare/types/storage/workers_kv_schemas_result.py
index fede9df26ce..5424e3c16d5 100644
--- a/src/cloudflare/types/storage/workers_kv_schemas_result.py
+++ b/src/cloudflare/types/storage/workers_kv_schemas_result.py
@@ -3,14 +3,10 @@
from typing import List, Optional
from datetime import datetime
+from ..shared import UnnamedSchemaRef148
from ..._models import BaseModel
-__all__ = ["WorkersKVSchemasResult", "Data", "Query"]
-
-
-class Data(BaseModel):
- metrics: List[object]
- """List of metrics returned by the query."""
+__all__ = ["WorkersKVSchemasResult", "Query"]
class Query(BaseModel):
@@ -57,7 +53,7 @@ class Query(BaseModel):
class WorkersKVSchemasResult(BaseModel):
- data: Optional[List[Data]] = None
+ data: Optional[List[UnnamedSchemaRef148]] = None
data_lag: float
"""Number of seconds between current time and last processed event, i.e.
diff --git a/src/cloudflare/types/stream/__init__.py b/src/cloudflare/types/stream/__init__.py
index 03d5e2a7675..4a3dd4216f3 100644
--- a/src/cloudflare/types/stream/__init__.py
+++ b/src/cloudflare/types/stream/__init__.py
@@ -43,7 +43,6 @@
from .live_input_list_response import LiveInputListResponse as LiveInputListResponse
from .live_input_update_params import LiveInputUpdateParams as LiveInputUpdateParams
from .watermark_create_response import WatermarkCreateResponse as WatermarkCreateResponse
-from .watermark_delete_response import WatermarkDeleteResponse as WatermarkDeleteResponse
from .video_storage_usage_params import VideoStorageUsageParams as VideoStorageUsageParams
from .audio_track_delete_response import AudioTrackDeleteResponse as AudioTrackDeleteResponse
from .direct_upload_create_params import DirectUploadCreateParams as DirectUploadCreateParams
diff --git a/src/cloudflare/types/stream/watermark_delete_response.py b/src/cloudflare/types/stream/watermark_delete_response.py
deleted file mode 100644
index 64af4554a0f..00000000000
--- a/src/cloudflare/types/stream/watermark_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["WatermarkDeleteResponse"]
-
-WatermarkDeleteResponse = Union[str, object]
diff --git a/src/cloudflare/types/subscription_delete_response.py b/src/cloudflare/types/subscription_delete_response.py
deleted file mode 100644
index ce2b575d64b..00000000000
--- a/src/cloudflare/types/subscription_delete_response.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Optional
-
-from .._models import BaseModel
-
-__all__ = ["SubscriptionDeleteResponse"]
-
-
-class SubscriptionDeleteResponse(BaseModel):
- subscription_id: Optional[str] = None
- """Subscription identifier tag."""
diff --git a/src/cloudflare/types/unnamed_schema_ref_106.py b/src/cloudflare/types/unnamed_schema_ref_106.py
new file mode 100644
index 00000000000..662ca6cfb82
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_106.py
@@ -0,0 +1,11 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef106"]
+
+
+class UnnamedSchemaRef106(BaseModel):
+ code: str
+
+ name: str
diff --git a/src/cloudflare/types/unnamed_schema_ref_128.py b/src/cloudflare/types/unnamed_schema_ref_128.py
new file mode 100644
index 00000000000..326e486a929
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_128.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from pydantic import Field as FieldInfo
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef128"]
+
+
+class UnnamedSchemaRef128(BaseModel):
+ i_pv4: str = FieldInfo(alias="IPv4")
+
+ i_pv6: str = FieldInfo(alias="IPv6")
diff --git a/src/cloudflare/types/unnamed_schema_ref_129.py b/src/cloudflare/types/unnamed_schema_ref_129.py
new file mode 100644
index 00000000000..a6f0385b0c9
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_129.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+from datetime import datetime
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef129"]
+
+
+class UnnamedSchemaRef129(BaseModel):
+ timestamps: List[datetime]
+
+ values: List[str]
diff --git a/src/cloudflare/types/unnamed_schema_ref_130.py b/src/cloudflare/types/unnamed_schema_ref_130.py
new file mode 100644
index 00000000000..71bb38d6fd0
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_130.py
@@ -0,0 +1,13 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef130"]
+
+
+class UnnamedSchemaRef130(BaseModel):
+ data_time: str
+
+ query_time: str
+
+ total_peers: int
diff --git a/src/cloudflare/types/unnamed_schema_ref_153.py b/src/cloudflare/types/unnamed_schema_ref_153.py
new file mode 100644
index 00000000000..05a1f31acfd
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_153.py
@@ -0,0 +1,18 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import TYPE_CHECKING, List
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef153"]
+
+
+class UnnamedSchemaRef153(BaseModel):
+ timestamps: List[str]
+
+ if TYPE_CHECKING:
+ # Stub to indicate that arbitrary properties are accepted.
+ # To access properties that are not valid identifiers you can use `getattr`, e.g.
+ # `getattr(obj, '$type')`
+ def __getattr__(self, attr: str) -> List[str]:
+ ...
diff --git a/src/cloudflare/types/unnamed_schema_ref_154.py b/src/cloudflare/types/unnamed_schema_ref_154.py
new file mode 100644
index 00000000000..1ac4144562b
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_154.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from pydantic import Field as FieldInfo
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef154"]
+
+
+class UnnamedSchemaRef154(BaseModel):
+ client_asn: int = FieldInfo(alias="clientASN")
+
+ client_as_name: str = FieldInfo(alias="clientASName")
+
+ value: str
diff --git a/src/cloudflare/types/unnamed_schema_ref_160.py b/src/cloudflare/types/unnamed_schema_ref_160.py
new file mode 100644
index 00000000000..92be93deb0d
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_160.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from pydantic import Field as FieldInfo
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef160"]
+
+
+class UnnamedSchemaRef160(BaseModel):
+ client_country_alpha2: str = FieldInfo(alias="clientCountryAlpha2")
+
+ client_country_name: str = FieldInfo(alias="clientCountryName")
+
+ value: str
diff --git a/src/cloudflare/types/unnamed_schema_ref_174.py b/src/cloudflare/types/unnamed_schema_ref_174.py
new file mode 100644
index 00000000000..14d39ee864e
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_174.py
@@ -0,0 +1,26 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+from datetime import datetime
+
+from pydantic import Field as FieldInfo
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef174"]
+
+
+class UnnamedSchemaRef174(BaseModel):
+ data_source: str = FieldInfo(alias="dataSource")
+
+ description: str
+
+ event_type: str = FieldInfo(alias="eventType")
+
+ is_instantaneous: object = FieldInfo(alias="isInstantaneous")
+
+ end_time: Optional[datetime] = FieldInfo(alias="endTime", default=None)
+
+ linked_url: Optional[str] = FieldInfo(alias="linkedUrl", default=None)
+
+ start_time: Optional[datetime] = FieldInfo(alias="startTime", default=None)
diff --git a/src/cloudflare/types/unnamed_schema_ref_175.py b/src/cloudflare/types/unnamed_schema_ref_175.py
new file mode 100644
index 00000000000..c7fcd345c1e
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_175.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from datetime import datetime
+
+from pydantic import Field as FieldInfo
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef175"]
+
+
+class UnnamedSchemaRef175(BaseModel):
+ end_time: datetime = FieldInfo(alias="endTime")
+ """Adjusted end of date range."""
+
+ start_time: datetime = FieldInfo(alias="startTime")
+ """Adjusted start of date range."""
diff --git a/src/cloudflare/types/unnamed_schema_ref_53.py b/src/cloudflare/types/unnamed_schema_ref_53.py
new file mode 100644
index 00000000000..bcea7c6926a
--- /dev/null
+++ b/src/cloudflare/types/unnamed_schema_ref_53.py
@@ -0,0 +1,17 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+
+from pydantic import Field as FieldInfo
+
+from .._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef53"]
+
+
+class UnnamedSchemaRef53(BaseModel):
+ i_pv4: List[str] = FieldInfo(alias="IPv4")
+
+ i_pv6: List[str] = FieldInfo(alias="IPv6")
+
+ timestamps: List[str]
diff --git a/src/cloudflare/types/url_scanner/__init__.py b/src/cloudflare/types/url_scanner/__init__.py
index 06a15905741..e103c695024 100644
--- a/src/cloudflare/types/url_scanner/__init__.py
+++ b/src/cloudflare/types/url_scanner/__init__.py
@@ -7,3 +7,4 @@
from .scan_create_params import ScanCreateParams as ScanCreateParams
from .scan_create_response import ScanCreateResponse as ScanCreateResponse
from .scan_screenshot_params import ScanScreenshotParams as ScanScreenshotParams
+from .unnamed_schema_ref_134 import UnnamedSchemaRef134 as UnnamedSchemaRef134
diff --git a/src/cloudflare/types/url_scanner/scan_get_response.py b/src/cloudflare/types/url_scanner/scan_get_response.py
index 0864a5ce690..c0104e4b2ce 100644
--- a/src/cloudflare/types/url_scanner/scan_get_response.py
+++ b/src/cloudflare/types/url_scanner/scan_get_response.py
@@ -5,7 +5,9 @@
from pydantic import Field as FieldInfo
+from ..shared import UnnamedSchemaRef155
from ..._models import BaseModel
+from .unnamed_schema_ref_134 import UnnamedSchemaRef134
__all__ = [
"ScanGetResponse",
@@ -25,7 +27,6 @@
"ScanPage",
"ScanPageConsole",
"ScanPageCooky",
- "ScanPageHeader",
"ScanPageJs",
"ScanPageJsVariable",
"ScanPageSecurityViolation",
@@ -42,10 +43,6 @@
"ScanDomainsExampleCom",
"ScanDomainsExampleComCategories",
"ScanDomainsExampleComCategoriesInherited",
- "ScanDomainsExampleComCategoriesInheritedContent",
- "ScanDomainsExampleComCategoriesInheritedRisk",
- "ScanDomainsExampleComCategoriesContent",
- "ScanDomainsExampleComCategoriesRisk",
"ScanDomainsExampleComDNS",
"ScanDomainsExampleComRank",
"ScanIPs",
@@ -216,12 +213,6 @@ class ScanPageCooky(BaseModel):
priority: Optional[str] = None
-class ScanPageHeader(BaseModel):
- name: str
-
- value: str
-
-
class ScanPageJsVariable(BaseModel):
name: str
@@ -257,7 +248,7 @@ class ScanPage(BaseModel):
domain: str
- headers: List[ScanPageHeader]
+ headers: List[UnnamedSchemaRef155]
ip: str
@@ -418,52 +409,20 @@ class ScanASNs(BaseModel):
"""ASN's contacted"""
-class ScanDomainsExampleComCategoriesInheritedContent(BaseModel):
- id: int
-
- name: str
-
- super_category_id: Optional[int] = None
-
-
-class ScanDomainsExampleComCategoriesInheritedRisk(BaseModel):
- id: int
-
- name: str
-
- super_category_id: Optional[int] = None
-
-
class ScanDomainsExampleComCategoriesInherited(BaseModel):
- content: Optional[List[ScanDomainsExampleComCategoriesInheritedContent]] = None
+ content: Optional[List[UnnamedSchemaRef134]] = None
from_: Optional[str] = FieldInfo(alias="from", default=None)
- risks: Optional[List[ScanDomainsExampleComCategoriesInheritedRisk]] = None
-
-
-class ScanDomainsExampleComCategoriesContent(BaseModel):
- id: int
-
- name: str
-
- super_category_id: Optional[int] = None
-
-
-class ScanDomainsExampleComCategoriesRisk(BaseModel):
- id: int
-
- name: str
-
- super_category_id: Optional[int] = None
+ risks: Optional[List[UnnamedSchemaRef134]] = None
class ScanDomainsExampleComCategories(BaseModel):
inherited: ScanDomainsExampleComCategoriesInherited
- content: Optional[List[ScanDomainsExampleComCategoriesContent]] = None
+ content: Optional[List[UnnamedSchemaRef134]] = None
- risks: Optional[List[ScanDomainsExampleComCategoriesRisk]] = None
+ risks: Optional[List[UnnamedSchemaRef134]] = None
class ScanDomainsExampleComDNS(BaseModel):
diff --git a/src/cloudflare/types/url_scanner/unnamed_schema_ref_134.py b/src/cloudflare/types/url_scanner/unnamed_schema_ref_134.py
new file mode 100644
index 00000000000..b5ecc946056
--- /dev/null
+++ b/src/cloudflare/types/url_scanner/unnamed_schema_ref_134.py
@@ -0,0 +1,15 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Optional
+
+from ..._models import BaseModel
+
+__all__ = ["UnnamedSchemaRef134"]
+
+
+class UnnamedSchemaRef134(BaseModel):
+ id: int
+
+ name: str
+
+ super_category_id: Optional[int] = None
diff --git a/src/cloudflare/types/user/__init__.py b/src/cloudflare/types/user/__init__.py
index ce26f61ed18..f18b70f0721 100644
--- a/src/cloudflare/types/user/__init__.py
+++ b/src/cloudflare/types/user/__init__.py
@@ -28,5 +28,4 @@
from .subscription_edit_response import SubscriptionEditResponse as SubscriptionEditResponse
from .subscription_update_params import SubscriptionUpdateParams as SubscriptionUpdateParams
from .organization_delete_response import OrganizationDeleteResponse as OrganizationDeleteResponse
-from .subscription_delete_response import SubscriptionDeleteResponse as SubscriptionDeleteResponse
from .subscription_update_response import SubscriptionUpdateResponse as SubscriptionUpdateResponse
diff --git a/src/cloudflare/types/user/load_balancers/monitor_references_response.py b/src/cloudflare/types/user/load_balancers/monitor_references_response.py
index 2abe92dc5ae..67a9f1fb600 100644
--- a/src/cloudflare/types/user/load_balancers/monitor_references_response.py
+++ b/src/cloudflare/types/user/load_balancers/monitor_references_response.py
@@ -1,15 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef146
from ...._models import BaseModel
__all__ = ["MonitorReferencesResponse", "MonitorReferencesResponseItem"]
class MonitorReferencesResponseItem(BaseModel):
- reference_type: Optional[Literal["*", "referral", "referrer"]] = None
+ reference_type: Optional[UnnamedSchemaRef146] = None
resource_id: Optional[str] = None
diff --git a/src/cloudflare/types/user/load_balancers/pool_references_response.py b/src/cloudflare/types/user/load_balancers/pool_references_response.py
index 2dfacceb259..6b1dcb57d40 100644
--- a/src/cloudflare/types/user/load_balancers/pool_references_response.py
+++ b/src/cloudflare/types/user/load_balancers/pool_references_response.py
@@ -1,15 +1,15 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef146
from ...._models import BaseModel
__all__ = ["PoolReferencesResponse", "PoolReferencesResponseItem"]
class PoolReferencesResponseItem(BaseModel):
- reference_type: Optional[Literal["*", "referral", "referrer"]] = None
+ reference_type: Optional[UnnamedSchemaRef146] = None
resource_id: Optional[str] = None
diff --git a/src/cloudflare/types/vectorize/__init__.py b/src/cloudflare/types/vectorize/__init__.py
index b8d3a1fb94d..2e13c405b73 100644
--- a/src/cloudflare/types/vectorize/__init__.py
+++ b/src/cloudflare/types/vectorize/__init__.py
@@ -7,7 +7,6 @@
from .index_insert_params import IndexInsertParams as IndexInsertParams
from .index_update_params import IndexUpdateParams as IndexUpdateParams
from .index_upsert_params import IndexUpsertParams as IndexUpsertParams
-from .index_delete_response import IndexDeleteResponse as IndexDeleteResponse
from .vectorize_index_query import VectorizeIndexQuery as VectorizeIndexQuery
from .vectorize_create_index import VectorizeCreateIndex as VectorizeCreateIndex
from .vectorize_index_insert import VectorizeIndexInsert as VectorizeIndexInsert
diff --git a/src/cloudflare/types/warp_connector_create_response.py b/src/cloudflare/types/warp_connector_create_response.py
deleted file mode 100644
index 776956bfd9c..00000000000
--- a/src/cloudflare/types/warp_connector_create_response.py
+++ /dev/null
@@ -1,186 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from datetime import datetime
-from typing_extensions import Literal
-
-from .._models import BaseModel
-
-__all__ = [
- "WARPConnectorCreateResponse",
- "TunnelCfdTunnel",
- "TunnelCfdTunnelConnection",
- "TunnelWARPConnectorTunnel",
- "TunnelWARPConnectorTunnelConnection",
-]
-
-
-class TunnelCfdTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelCfdTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelCfdTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- remote_config: Optional[bool] = None
- """If `true`, the tunnel can be configured remotely from the Zero Trust dashboard.
-
- If `false`, the tunnel must be configured locally on the origin machine.
- """
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-class TunnelWARPConnectorTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelWARPConnectorTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelWARPConnectorTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-WARPConnectorCreateResponse = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
diff --git a/src/cloudflare/types/warp_connector_delete_response.py b/src/cloudflare/types/warp_connector_delete_response.py
deleted file mode 100644
index a5d35ddd2f9..00000000000
--- a/src/cloudflare/types/warp_connector_delete_response.py
+++ /dev/null
@@ -1,186 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from datetime import datetime
-from typing_extensions import Literal
-
-from .._models import BaseModel
-
-__all__ = [
- "WARPConnectorDeleteResponse",
- "TunnelCfdTunnel",
- "TunnelCfdTunnelConnection",
- "TunnelWARPConnectorTunnel",
- "TunnelWARPConnectorTunnelConnection",
-]
-
-
-class TunnelCfdTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelCfdTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelCfdTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- remote_config: Optional[bool] = None
- """If `true`, the tunnel can be configured remotely from the Zero Trust dashboard.
-
- If `false`, the tunnel must be configured locally on the origin machine.
- """
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-class TunnelWARPConnectorTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelWARPConnectorTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelWARPConnectorTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-WARPConnectorDeleteResponse = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
diff --git a/src/cloudflare/types/warp_connector_edit_response.py b/src/cloudflare/types/warp_connector_edit_response.py
deleted file mode 100644
index 614246293b8..00000000000
--- a/src/cloudflare/types/warp_connector_edit_response.py
+++ /dev/null
@@ -1,186 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from datetime import datetime
-from typing_extensions import Literal
-
-from .._models import BaseModel
-
-__all__ = [
- "WARPConnectorEditResponse",
- "TunnelCfdTunnel",
- "TunnelCfdTunnelConnection",
- "TunnelWARPConnectorTunnel",
- "TunnelWARPConnectorTunnelConnection",
-]
-
-
-class TunnelCfdTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelCfdTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelCfdTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- remote_config: Optional[bool] = None
- """If `true`, the tunnel can be configured remotely from the Zero Trust dashboard.
-
- If `false`, the tunnel must be configured locally on the origin machine.
- """
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-class TunnelWARPConnectorTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelWARPConnectorTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelWARPConnectorTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-WARPConnectorEditResponse = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
diff --git a/src/cloudflare/types/warp_connector_get_response.py b/src/cloudflare/types/warp_connector_get_response.py
deleted file mode 100644
index 43a01e55291..00000000000
--- a/src/cloudflare/types/warp_connector_get_response.py
+++ /dev/null
@@ -1,186 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from datetime import datetime
-from typing_extensions import Literal
-
-from .._models import BaseModel
-
-__all__ = [
- "WARPConnectorGetResponse",
- "TunnelCfdTunnel",
- "TunnelCfdTunnelConnection",
- "TunnelWARPConnectorTunnel",
- "TunnelWARPConnectorTunnelConnection",
-]
-
-
-class TunnelCfdTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelCfdTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelCfdTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- remote_config: Optional[bool] = None
- """If `true`, the tunnel can be configured remotely from the Zero Trust dashboard.
-
- If `false`, the tunnel must be configured locally on the origin machine.
- """
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-class TunnelWARPConnectorTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelWARPConnectorTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelWARPConnectorTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-WARPConnectorGetResponse = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
diff --git a/src/cloudflare/types/warp_connector_list_response.py b/src/cloudflare/types/warp_connector_list_response.py
deleted file mode 100644
index 019433baa2c..00000000000
--- a/src/cloudflare/types/warp_connector_list_response.py
+++ /dev/null
@@ -1,186 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union, Optional
-from datetime import datetime
-from typing_extensions import Literal
-
-from .._models import BaseModel
-
-__all__ = [
- "WARPConnectorListResponse",
- "TunnelCfdTunnel",
- "TunnelCfdTunnelConnection",
- "TunnelWARPConnectorTunnel",
- "TunnelWARPConnectorTunnelConnection",
-]
-
-
-class TunnelCfdTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelCfdTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelCfdTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- remote_config: Optional[bool] = None
- """If `true`, the tunnel can be configured remotely from the Zero Trust dashboard.
-
- If `false`, the tunnel must be configured locally on the origin machine.
- """
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-class TunnelWARPConnectorTunnelConnection(BaseModel):
- id: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
- client_id: Optional[object] = None
- """UUID of the cloudflared instance."""
-
- client_version: Optional[str] = None
- """The cloudflared version used to establish this connection."""
-
- colo_name: Optional[str] = None
- """The Cloudflare data center used for this connection."""
-
- is_pending_reconnect: Optional[bool] = None
- """
- Cloudflare continues to track connections for several minutes after they
- disconnect. This is an optimization to improve latency and reliability of
- reconnecting. If `true`, the connection has disconnected but is still being
- tracked. If `false`, the connection is actively serving traffic.
- """
-
- opened_at: Optional[datetime] = None
- """Timestamp of when the connection was established."""
-
- origin_ip: Optional[str] = None
- """The public IP address of the host running cloudflared."""
-
- uuid: Optional[str] = None
- """UUID of the Cloudflare Tunnel connection."""
-
-
-class TunnelWARPConnectorTunnel(BaseModel):
- id: Optional[str] = None
- """UUID of the tunnel."""
-
- account_tag: Optional[str] = None
- """Cloudflare account ID"""
-
- connections: Optional[List[TunnelWARPConnectorTunnelConnection]] = None
- """The Cloudflare Tunnel connections between your origin and Cloudflare's edge."""
-
- conns_active_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel established at least one connection to Cloudflare's
- edge. If `null`, the tunnel is inactive.
- """
-
- conns_inactive_at: Optional[datetime] = None
- """
- Timestamp of when the tunnel became inactive (no connections to Cloudflare's
- edge). If `null`, the tunnel is active.
- """
-
- created_at: Optional[datetime] = None
- """Timestamp of when the tunnel was created."""
-
- deleted_at: Optional[datetime] = None
- """Timestamp of when the tunnel was deleted.
-
- If `null`, the tunnel has not been deleted.
- """
-
- metadata: Optional[object] = None
- """Metadata associated with the tunnel."""
-
- name: Optional[str] = None
- """A user-friendly name for the tunnel."""
-
- status: Optional[str] = None
- """The status of the tunnel.
-
- Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is
- active and able to serve traffic but in an unhealthy state), `healthy` (tunnel
- is active and able to serve traffic), or `down` (tunnel can not serve traffic as
- it has no connections to the Cloudflare Edge).
- """
-
- tun_type: Optional[Literal["cfd_tunnel", "warp_connector", "ip_sec", "gre", "cni"]] = None
- """The type of tunnel."""
-
-
-WARPConnectorListResponse = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
diff --git a/src/cloudflare/types/workers/ai_run_params.py b/src/cloudflare/types/workers/ai_run_params.py
index f29e3068b68..1272bc9db1c 100644
--- a/src/cloudflare/types/workers/ai_run_params.py
+++ b/src/cloudflare/types/workers/ai_run_params.py
@@ -5,6 +5,8 @@
from typing import List, Union, Iterable
from typing_extensions import Required, TypedDict
+from ...types import shared_params
+
__all__ = [
"AIRunParams",
"TextClassification",
@@ -55,7 +57,7 @@ class SentenceSimilarity(TypedDict, total=False):
class TextEmbeddings(TypedDict, total=False):
account_id: Required[str]
- text: Required[Union[str, List[str]]]
+ text: Required[shared_params.UnnamedSchemaRef121]
class SpeechRecognition(TypedDict, total=False):
diff --git a/src/cloudflare/types/workers/ai_run_response.py b/src/cloudflare/types/workers/ai_run_response.py
index 5877761e02c..dfbe6f96fae 100644
--- a/src/cloudflare/types/workers/ai_run_response.py
+++ b/src/cloudflare/types/workers/ai_run_response.py
@@ -2,15 +2,13 @@
from typing import List, Union, Optional
+from ..shared import UnnamedSchemaRef94, UnnamedSchemaRef135
from ..._models import BaseModel
__all__ = [
"AIRunResponse",
- "TextClassification",
"TextEmbeddings",
"SpeechRecognition",
- "SpeechRecognitionWord",
- "ImageClassification",
"ObjectDetection",
"ObjectDetectionBox",
"Response",
@@ -20,26 +18,12 @@
]
-class TextClassification(BaseModel):
- label: Optional[str] = None
-
- score: Optional[float] = None
-
-
class TextEmbeddings(BaseModel):
data: Optional[List[List[float]]] = None
shape: Optional[List[float]] = None
-class SpeechRecognitionWord(BaseModel):
- end: Optional[float] = None
-
- start: Optional[float] = None
-
- word: Optional[str] = None
-
-
class SpeechRecognition(BaseModel):
text: str
@@ -47,13 +31,7 @@ class SpeechRecognition(BaseModel):
word_count: Optional[float] = None
- words: Optional[List[SpeechRecognitionWord]] = None
-
-
-class ImageClassification(BaseModel):
- label: Optional[str] = None
-
- score: Optional[float] = None
+ words: Optional[List[UnnamedSchemaRef94]] = None
class ObjectDetectionBox(BaseModel):
@@ -91,12 +69,12 @@ class ImageToText(BaseModel):
AIRunResponse = Union[
- List[TextClassification],
+ List[UnnamedSchemaRef135],
object,
List[float],
TextEmbeddings,
SpeechRecognition,
- List[ImageClassification],
+ List[UnnamedSchemaRef135],
List[ObjectDetection],
Response,
object,
diff --git a/src/cloudflare/types/workers/scripts/__init__.py b/src/cloudflare/types/workers/scripts/__init__.py
index 71b1e52e633..a0604d24a77 100644
--- a/src/cloudflare/types/workers/scripts/__init__.py
+++ b/src/cloudflare/types/workers/scripts/__init__.py
@@ -10,7 +10,6 @@
from .binding_get_response import BindingGetResponse as BindingGetResponse
from .setting_get_response import SettingGetResponse as SettingGetResponse
from .tail_create_response import TailCreateResponse as TailCreateResponse
-from .tail_delete_response import TailDeleteResponse as TailDeleteResponse
from .content_update_params import ContentUpdateParams as ContentUpdateParams
from .schedule_get_response import ScheduleGetResponse as ScheduleGetResponse
from .setting_edit_response import SettingEditResponse as SettingEditResponse
diff --git a/src/cloudflare/types/workers/scripts/content_update_params.py b/src/cloudflare/types/workers/scripts/content_update_params.py
index e19775eaa3c..43271f18b3a 100644
--- a/src/cloudflare/types/workers/scripts/content_update_params.py
+++ b/src/cloudflare/types/workers/scripts/content_update_params.py
@@ -5,10 +5,11 @@
from typing import List
from typing_extensions import Required, Annotated, TypedDict
+from ....types import shared_params
from ...._types import FileTypes
from ...._utils import PropertyInfo
-__all__ = ["ContentUpdateParams", "Metadata"]
+__all__ = ["ContentUpdateParams"]
class ContentUpdateParams(TypedDict, total=False):
@@ -25,20 +26,5 @@ class ContentUpdateParams(TypedDict, total=False):
part name.
"""
- metadata: Metadata
+ metadata: shared_params.UnnamedSchemaRef51
"""JSON encoded metadata about the uploaded parts and Worker configuration."""
-
-
-class Metadata(TypedDict, total=False):
- body_part: str
- """Name of the part in the multipart request that contains the script (e.g.
-
- the file adding a listener to the `fetch` event). Indicates a
- `service worker syntax` Worker.
- """
-
- main_module: str
- """Name of the part in the multipart request that contains the main module (e.g.
-
- the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
- """
diff --git a/src/cloudflare/types/workers/scripts/schedule_get_response.py b/src/cloudflare/types/workers/scripts/schedule_get_response.py
index f0d5df2f111..a19cf08562f 100644
--- a/src/cloudflare/types/workers/scripts/schedule_get_response.py
+++ b/src/cloudflare/types/workers/scripts/schedule_get_response.py
@@ -2,18 +2,11 @@
from typing import List, Optional
+from ...shared import UnnamedSchemaRef102
from ...._models import BaseModel
-__all__ = ["ScheduleGetResponse", "Schedule"]
-
-
-class Schedule(BaseModel):
- created_on: Optional[object] = None
-
- cron: Optional[object] = None
-
- modified_on: Optional[object] = None
+__all__ = ["ScheduleGetResponse"]
class ScheduleGetResponse(BaseModel):
- schedules: Optional[List[Schedule]] = None
+ schedules: Optional[List[UnnamedSchemaRef102]] = None
diff --git a/src/cloudflare/types/workers/scripts/schedule_update_response.py b/src/cloudflare/types/workers/scripts/schedule_update_response.py
index 7a2565993a1..b4b6b9312aa 100644
--- a/src/cloudflare/types/workers/scripts/schedule_update_response.py
+++ b/src/cloudflare/types/workers/scripts/schedule_update_response.py
@@ -2,18 +2,11 @@
from typing import List, Optional
+from ...shared import UnnamedSchemaRef102
from ...._models import BaseModel
-__all__ = ["ScheduleUpdateResponse", "Schedule"]
-
-
-class Schedule(BaseModel):
- created_on: Optional[object] = None
-
- cron: Optional[object] = None
-
- modified_on: Optional[object] = None
+__all__ = ["ScheduleUpdateResponse"]
class ScheduleUpdateResponse(BaseModel):
- schedules: Optional[List[Schedule]] = None
+ schedules: Optional[List[UnnamedSchemaRef102]] = None
diff --git a/src/cloudflare/types/workers/services/environments/content_update_params.py b/src/cloudflare/types/workers/services/environments/content_update_params.py
index cd2a645e3cc..a7adb925fb2 100644
--- a/src/cloudflare/types/workers/services/environments/content_update_params.py
+++ b/src/cloudflare/types/workers/services/environments/content_update_params.py
@@ -5,10 +5,11 @@
from typing import List
from typing_extensions import Required, Annotated, TypedDict
+from .....types import shared_params
from ....._types import FileTypes
from ....._utils import PropertyInfo
-__all__ = ["ContentUpdateParams", "Metadata"]
+__all__ = ["ContentUpdateParams"]
class ContentUpdateParams(TypedDict, total=False):
@@ -28,20 +29,5 @@ class ContentUpdateParams(TypedDict, total=False):
part name.
"""
- metadata: Metadata
+ metadata: shared_params.UnnamedSchemaRef51
"""JSON encoded metadata about the uploaded parts and Worker configuration."""
-
-
-class Metadata(TypedDict, total=False):
- body_part: str
- """Name of the part in the multipart request that contains the script (e.g.
-
- the file adding a listener to the `fetch` event). Indicates a
- `service worker syntax` Worker.
- """
-
- main_module: str
- """Name of the part in the multipart request that contains the main module (e.g.
-
- the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
- """
diff --git a/src/cloudflare/types/workers/services/environments/setting_edit_params.py b/src/cloudflare/types/workers/services/environments/setting_edit_params.py
index 1bf1ed5608c..febb4a55ba9 100644
--- a/src/cloudflare/types/workers/services/environments/setting_edit_params.py
+++ b/src/cloudflare/types/workers/services/environments/setting_edit_params.py
@@ -5,7 +5,9 @@
from typing import Iterable
from typing_extensions import Literal, Required, TypedDict
-__all__ = ["SettingEditParams", "Error", "Message", "Result", "ResultTailConsumer"]
+from .....types import shared_params
+
+__all__ = ["SettingEditParams", "Result", "ResultTailConsumer"]
class SettingEditParams(TypedDict, total=False):
@@ -15,9 +17,9 @@ class SettingEditParams(TypedDict, total=False):
service_name: Required[str]
"""Name of Worker to bind to"""
- errors: Required[Iterable[Error]]
+ errors: Required[Iterable[shared_params.UnnamedSchemaRef172]]
- messages: Required[Iterable[Message]]
+ messages: Required[Iterable[shared_params.UnnamedSchemaRef172]]
result: Required[Result]
@@ -25,18 +27,6 @@ class SettingEditParams(TypedDict, total=False):
"""Whether the API call was successful"""
-class Error(TypedDict, total=False):
- code: Required[int]
-
- message: Required[str]
-
-
-class Message(TypedDict, total=False):
- code: Required[int]
-
- message: Required[str]
-
-
class ResultTailConsumer(TypedDict, total=False):
service: Required[str]
"""Name of Worker that is to be the consumer."""
diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/content_update_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/content_update_params.py
index 1b619827982..0690b73da9b 100644
--- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/content_update_params.py
+++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/content_update_params.py
@@ -5,10 +5,11 @@
from typing import List
from typing_extensions import Required, Annotated, TypedDict
+from ......types import shared_params
from ......_types import FileTypes
from ......_utils import PropertyInfo
-__all__ = ["ContentUpdateParams", "Metadata"]
+__all__ = ["ContentUpdateParams"]
class ContentUpdateParams(TypedDict, total=False):
@@ -28,20 +29,5 @@ class ContentUpdateParams(TypedDict, total=False):
part name.
"""
- metadata: Metadata
+ metadata: shared_params.UnnamedSchemaRef51
"""JSON encoded metadata about the uploaded parts and Worker configuration."""
-
-
-class Metadata(TypedDict, total=False):
- body_part: str
- """Name of the part in the multipart request that contains the script (e.g.
-
- the file adding a listener to the `fetch` event). Indicates a
- `service worker syntax` Worker.
- """
-
- main_module: str
- """Name of the part in the multipart request that contains the main module (e.g.
-
- the file exporting a `fetch` handler). Indicates a `module syntax` Worker.
- """
diff --git a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py
index 2f61aedd1d5..874af0a660d 100644
--- a/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py
+++ b/src/cloudflare/types/workers_for_platforms/dispatch/namespaces/scripts/setting_edit_params.py
@@ -5,7 +5,9 @@
from typing import Iterable
from typing_extensions import Literal, Required, TypedDict
-__all__ = ["SettingEditParams", "Error", "Message", "Result", "ResultTailConsumer"]
+from ......types import shared_params
+
+__all__ = ["SettingEditParams", "Result", "ResultTailConsumer"]
class SettingEditParams(TypedDict, total=False):
@@ -15,9 +17,9 @@ class SettingEditParams(TypedDict, total=False):
dispatch_namespace: Required[str]
"""Name of the Workers for Platforms dispatch namespace."""
- errors: Required[Iterable[Error]]
+ errors: Required[Iterable[shared_params.UnnamedSchemaRef172]]
- messages: Required[Iterable[Message]]
+ messages: Required[Iterable[shared_params.UnnamedSchemaRef172]]
result: Required[Result]
@@ -25,18 +27,6 @@ class SettingEditParams(TypedDict, total=False):
"""Whether the API call was successful"""
-class Error(TypedDict, total=False):
- code: Required[int]
-
- message: Required[str]
-
-
-class Message(TypedDict, total=False):
- code: Required[int]
-
- message: Required[str]
-
-
class ResultTailConsumer(TypedDict, total=False):
service: Required[str]
"""Name of Worker that is to be the consumer."""
diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py
index 63750a56b20..e5b5aa80153 100644
--- a/src/cloudflare/types/zero_trust/__init__.py
+++ b/src/cloudflare/types/zero_trust/__init__.py
@@ -9,11 +9,8 @@
from .tunnel_edit_params import TunnelEditParams as TunnelEditParams
from .tunnel_list_params import TunnelListParams as TunnelListParams
from .zero_trust_devices import ZeroTrustDevices as ZeroTrustDevices
-from .device_get_response import DeviceGetResponse as DeviceGetResponse
from .tunnel_create_params import TunnelCreateParams as TunnelCreateParams
from .tunnel_delete_params import TunnelDeleteParams as TunnelDeleteParams
-from .tunnel_edit_response import TunnelEditResponse as TunnelEditResponse
-from .tunnel_list_response import TunnelListResponse as TunnelListResponse
from .gateway_list_response import GatewayListResponse as GatewayListResponse
from .gateway_create_response import GatewayCreateResponse as GatewayCreateResponse
from .zero_trust_organizations import ZeroTrustOrganizations as ZeroTrustOrganizations
diff --git a/src/cloudflare/types/zero_trust/access/application_create_params.py b/src/cloudflare/types/zero_trust/access/application_create_params.py
index c8cf94ea9fa..46efae019bb 100644
--- a/src/cloudflare/types/zero_trust/access/application_create_params.py
+++ b/src/cloudflare/types/zero_trust/access/application_create_params.py
@@ -5,6 +5,9 @@
from typing import List, Union
from typing_extensions import Literal, Required, TypedDict
+from ....types import shared_params
+from ...shared import UnnamedSchemaRef75, UnnamedSchemaRef77
+
__all__ = [
"ApplicationCreateParams",
"SelfHostedApplication",
@@ -13,7 +16,6 @@
"SaaSApplicationSaasApp",
"SaaSApplicationSaasAppAccessSamlSaasApp",
"SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributes",
- "SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource",
"SaaSApplicationSaasAppAccessOidcSaasApp",
"BrowserSSHApplication",
"BrowserSSHApplicationCorsHeaders",
@@ -218,23 +220,14 @@ class SaaSApplication(TypedDict, total=False):
"""The application type."""
-class SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource(TypedDict, total=False):
- name: str
- """The name of the IdP attribute."""
-
-
class SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributes(TypedDict, total=False):
name: str
"""The name of the attribute."""
- name_format: Literal[
- "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
- "urn:oasis:names:tc:SAML:2.0:attrname-format:basic",
- "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
- ]
+ name_format: UnnamedSchemaRef75
"""A globally unique name for an identity or service provider."""
- source: SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource
+ source: shared_params.UnnamedSchemaRef76
class SaaSApplicationSaasAppAccessSamlSaasApp(TypedDict, total=False):
@@ -262,7 +255,7 @@ class SaaSApplicationSaasAppAccessSamlSaasApp(TypedDict, total=False):
idp_entity_id: str
"""The unique identifier for your SaaS application."""
- name_id_format: Literal["id", "email"]
+ name_id_format: UnnamedSchemaRef77
"""The format of the name identifier sent to the SaaS application."""
name_id_transform_jsonata: str
diff --git a/src/cloudflare/types/zero_trust/access/application_update_params.py b/src/cloudflare/types/zero_trust/access/application_update_params.py
index e722654c5b7..009702481ee 100644
--- a/src/cloudflare/types/zero_trust/access/application_update_params.py
+++ b/src/cloudflare/types/zero_trust/access/application_update_params.py
@@ -5,6 +5,9 @@
from typing import List, Union
from typing_extensions import Literal, Required, TypedDict
+from ....types import shared_params
+from ...shared import UnnamedSchemaRef75, UnnamedSchemaRef77
+
__all__ = [
"ApplicationUpdateParams",
"SelfHostedApplication",
@@ -13,7 +16,6 @@
"SaaSApplicationSaasApp",
"SaaSApplicationSaasAppAccessSamlSaasApp",
"SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributes",
- "SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource",
"SaaSApplicationSaasAppAccessOidcSaasApp",
"BrowserSSHApplication",
"BrowserSSHApplicationCorsHeaders",
@@ -218,23 +220,14 @@ class SaaSApplication(TypedDict, total=False):
"""The application type."""
-class SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource(TypedDict, total=False):
- name: str
- """The name of the IdP attribute."""
-
-
class SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributes(TypedDict, total=False):
name: str
"""The name of the attribute."""
- name_format: Literal[
- "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
- "urn:oasis:names:tc:SAML:2.0:attrname-format:basic",
- "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
- ]
+ name_format: UnnamedSchemaRef75
"""A globally unique name for an identity or service provider."""
- source: SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource
+ source: shared_params.UnnamedSchemaRef76
class SaaSApplicationSaasAppAccessSamlSaasApp(TypedDict, total=False):
@@ -262,7 +255,7 @@ class SaaSApplicationSaasAppAccessSamlSaasApp(TypedDict, total=False):
idp_entity_id: str
"""The unique identifier for your SaaS application."""
- name_id_format: Literal["id", "email"]
+ name_id_format: UnnamedSchemaRef77
"""The format of the name identifier sent to the SaaS application."""
name_id_transform_jsonata: str
diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_create_params.py b/src/cloudflare/types/zero_trust/access/applications/policy_create_params.py
index a6d53febf41..45cb753979d 100644
--- a/src/cloudflare/types/zero_trust/access/applications/policy_create_params.py
+++ b/src/cloudflare/types/zero_trust/access/applications/policy_create_params.py
@@ -5,6 +5,7 @@
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, Annotated, TypedDict
+from .....types import shared_params
from ....._utils import PropertyInfo
__all__ = [
@@ -23,7 +24,6 @@
"IncludeAccessIPListRuleIPList",
"IncludeAccessCertificateRule",
"IncludeAccessAccessGroupRule",
- "IncludeAccessAccessGroupRuleGroup",
"IncludeAccessAzureGroupRule",
"IncludeAccessAzureGroupRuleAzureAd",
"IncludeAccessGitHubOrganizationRule",
@@ -60,7 +60,6 @@
"ExcludeAccessIPListRuleIPList",
"ExcludeAccessCertificateRule",
"ExcludeAccessAccessGroupRule",
- "ExcludeAccessAccessGroupRuleGroup",
"ExcludeAccessAzureGroupRule",
"ExcludeAccessAzureGroupRuleAzureAd",
"ExcludeAccessGitHubOrganizationRule",
@@ -96,7 +95,6 @@
"RequireAccessIPListRuleIPList",
"RequireAccessCertificateRule",
"RequireAccessAccessGroupRule",
- "RequireAccessAccessGroupRuleGroup",
"RequireAccessAzureGroupRule",
"RequireAccessAzureGroupRuleAzureAd",
"RequireAccessGitHubOrganizationRule",
@@ -239,13 +237,8 @@ class IncludeAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class IncludeAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class IncludeAccessAccessGroupRule(TypedDict, total=False):
- group: Required[IncludeAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class IncludeAccessAzureGroupRuleAzureAd(TypedDict, total=False):
@@ -456,13 +449,8 @@ class ExcludeAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class ExcludeAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class ExcludeAccessAccessGroupRule(TypedDict, total=False):
- group: Required[ExcludeAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class ExcludeAccessAzureGroupRuleAzureAd(TypedDict, total=False):
@@ -662,13 +650,8 @@ class RequireAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class RequireAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class RequireAccessAccessGroupRule(TypedDict, total=False):
- group: Required[RequireAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class RequireAccessAzureGroupRuleAzureAd(TypedDict, total=False):
diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_update_params.py b/src/cloudflare/types/zero_trust/access/applications/policy_update_params.py
index 223aea70ccd..c5161d54077 100644
--- a/src/cloudflare/types/zero_trust/access/applications/policy_update_params.py
+++ b/src/cloudflare/types/zero_trust/access/applications/policy_update_params.py
@@ -5,6 +5,7 @@
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, Annotated, TypedDict
+from .....types import shared_params
from ....._utils import PropertyInfo
__all__ = [
@@ -23,7 +24,6 @@
"IncludeAccessIPListRuleIPList",
"IncludeAccessCertificateRule",
"IncludeAccessAccessGroupRule",
- "IncludeAccessAccessGroupRuleGroup",
"IncludeAccessAzureGroupRule",
"IncludeAccessAzureGroupRuleAzureAd",
"IncludeAccessGitHubOrganizationRule",
@@ -60,7 +60,6 @@
"ExcludeAccessIPListRuleIPList",
"ExcludeAccessCertificateRule",
"ExcludeAccessAccessGroupRule",
- "ExcludeAccessAccessGroupRuleGroup",
"ExcludeAccessAzureGroupRule",
"ExcludeAccessAzureGroupRuleAzureAd",
"ExcludeAccessGitHubOrganizationRule",
@@ -96,7 +95,6 @@
"RequireAccessIPListRuleIPList",
"RequireAccessCertificateRule",
"RequireAccessAccessGroupRule",
- "RequireAccessAccessGroupRuleGroup",
"RequireAccessAzureGroupRule",
"RequireAccessAzureGroupRuleAzureAd",
"RequireAccessGitHubOrganizationRule",
@@ -242,13 +240,8 @@ class IncludeAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class IncludeAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class IncludeAccessAccessGroupRule(TypedDict, total=False):
- group: Required[IncludeAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class IncludeAccessAzureGroupRuleAzureAd(TypedDict, total=False):
@@ -459,13 +452,8 @@ class ExcludeAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class ExcludeAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class ExcludeAccessAccessGroupRule(TypedDict, total=False):
- group: Required[ExcludeAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class ExcludeAccessAzureGroupRuleAzureAd(TypedDict, total=False):
@@ -665,13 +653,8 @@ class RequireAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class RequireAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class RequireAccessAccessGroupRule(TypedDict, total=False):
- group: Required[RequireAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class RequireAccessAzureGroupRuleAzureAd(TypedDict, total=False):
diff --git a/src/cloudflare/types/zero_trust/access/applications/zero_trust_policies.py b/src/cloudflare/types/zero_trust/access/applications/zero_trust_policies.py
index 91fd93a10f2..8458453accc 100644
--- a/src/cloudflare/types/zero_trust/access/applications/zero_trust_policies.py
+++ b/src/cloudflare/types/zero_trust/access/applications/zero_trust_policies.py
@@ -6,6 +6,7 @@
from pydantic import Field as FieldInfo
+from ....shared import UnnamedSchemaRef131
from ....._models import BaseModel
__all__ = [
@@ -25,7 +26,6 @@
"ExcludeAccessIPListRuleIPList",
"ExcludeAccessCertificateRule",
"ExcludeAccessAccessGroupRule",
- "ExcludeAccessAccessGroupRuleGroup",
"ExcludeAccessAzureGroupRule",
"ExcludeAccessAzureGroupRuleAzureAd",
"ExcludeAccessGitHubOrganizationRule",
@@ -61,7 +61,6 @@
"IncludeAccessIPListRuleIPList",
"IncludeAccessCertificateRule",
"IncludeAccessAccessGroupRule",
- "IncludeAccessAccessGroupRuleGroup",
"IncludeAccessAzureGroupRule",
"IncludeAccessAzureGroupRuleAzureAd",
"IncludeAccessGitHubOrganizationRule",
@@ -97,7 +96,6 @@
"RequireAccessIPListRuleIPList",
"RequireAccessCertificateRule",
"RequireAccessAccessGroupRule",
- "RequireAccessAccessGroupRuleGroup",
"RequireAccessAzureGroupRule",
"RequireAccessAzureGroupRuleAzureAd",
"RequireAccessGitHubOrganizationRule",
@@ -187,13 +185,8 @@ class ExcludeAccessCertificateRule(BaseModel):
certificate: object
-class ExcludeAccessAccessGroupRuleGroup(BaseModel):
- id: str
- """The ID of a previously created Access group."""
-
-
class ExcludeAccessAccessGroupRule(BaseModel):
- group: ExcludeAccessAccessGroupRuleGroup
+ group: UnnamedSchemaRef131
class ExcludeAccessAzureGroupRuleAzureAd(BaseModel):
@@ -391,13 +384,8 @@ class IncludeAccessCertificateRule(BaseModel):
certificate: object
-class IncludeAccessAccessGroupRuleGroup(BaseModel):
- id: str
- """The ID of a previously created Access group."""
-
-
class IncludeAccessAccessGroupRule(BaseModel):
- group: IncludeAccessAccessGroupRuleGroup
+ group: UnnamedSchemaRef131
class IncludeAccessAzureGroupRuleAzureAd(BaseModel):
@@ -595,13 +583,8 @@ class RequireAccessCertificateRule(BaseModel):
certificate: object
-class RequireAccessAccessGroupRuleGroup(BaseModel):
- id: str
- """The ID of a previously created Access group."""
-
-
class RequireAccessAccessGroupRule(BaseModel):
- group: RequireAccessAccessGroupRuleGroup
+ group: UnnamedSchemaRef131
class RequireAccessAzureGroupRuleAzureAd(BaseModel):
diff --git a/src/cloudflare/types/zero_trust/access/group_create_params.py b/src/cloudflare/types/zero_trust/access/group_create_params.py
index c7866aad82e..1f97f6bd536 100644
--- a/src/cloudflare/types/zero_trust/access/group_create_params.py
+++ b/src/cloudflare/types/zero_trust/access/group_create_params.py
@@ -5,6 +5,7 @@
from typing import Union, Iterable
from typing_extensions import Required, Annotated, TypedDict
+from ....types import shared_params
from ...._utils import PropertyInfo
__all__ = [
@@ -23,7 +24,6 @@
"IncludeAccessIPListRuleIPList",
"IncludeAccessCertificateRule",
"IncludeAccessAccessGroupRule",
- "IncludeAccessAccessGroupRuleGroup",
"IncludeAccessAzureGroupRule",
"IncludeAccessAzureGroupRuleAzureAd",
"IncludeAccessGitHubOrganizationRule",
@@ -59,7 +59,6 @@
"ExcludeAccessIPListRuleIPList",
"ExcludeAccessCertificateRule",
"ExcludeAccessAccessGroupRule",
- "ExcludeAccessAccessGroupRuleGroup",
"ExcludeAccessAzureGroupRule",
"ExcludeAccessAzureGroupRuleAzureAd",
"ExcludeAccessGitHubOrganizationRule",
@@ -95,7 +94,6 @@
"RequireAccessIPListRuleIPList",
"RequireAccessCertificateRule",
"RequireAccessAccessGroupRule",
- "RequireAccessAccessGroupRuleGroup",
"RequireAccessAzureGroupRule",
"RequireAccessAzureGroupRuleAzureAd",
"RequireAccessGitHubOrganizationRule",
@@ -206,13 +204,8 @@ class IncludeAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class IncludeAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class IncludeAccessAccessGroupRule(TypedDict, total=False):
- group: Required[IncludeAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class IncludeAccessAzureGroupRuleAzureAd(TypedDict, total=False):
@@ -412,13 +405,8 @@ class ExcludeAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class ExcludeAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class ExcludeAccessAccessGroupRule(TypedDict, total=False):
- group: Required[ExcludeAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class ExcludeAccessAzureGroupRuleAzureAd(TypedDict, total=False):
@@ -618,13 +606,8 @@ class RequireAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class RequireAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class RequireAccessAccessGroupRule(TypedDict, total=False):
- group: Required[RequireAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class RequireAccessAzureGroupRuleAzureAd(TypedDict, total=False):
diff --git a/src/cloudflare/types/zero_trust/access/group_update_params.py b/src/cloudflare/types/zero_trust/access/group_update_params.py
index 15684eaf347..dc1ba0ed1f3 100644
--- a/src/cloudflare/types/zero_trust/access/group_update_params.py
+++ b/src/cloudflare/types/zero_trust/access/group_update_params.py
@@ -5,6 +5,7 @@
from typing import Union, Iterable
from typing_extensions import Required, Annotated, TypedDict
+from ....types import shared_params
from ...._utils import PropertyInfo
__all__ = [
@@ -23,7 +24,6 @@
"IncludeAccessIPListRuleIPList",
"IncludeAccessCertificateRule",
"IncludeAccessAccessGroupRule",
- "IncludeAccessAccessGroupRuleGroup",
"IncludeAccessAzureGroupRule",
"IncludeAccessAzureGroupRuleAzureAd",
"IncludeAccessGitHubOrganizationRule",
@@ -59,7 +59,6 @@
"ExcludeAccessIPListRuleIPList",
"ExcludeAccessCertificateRule",
"ExcludeAccessAccessGroupRule",
- "ExcludeAccessAccessGroupRuleGroup",
"ExcludeAccessAzureGroupRule",
"ExcludeAccessAzureGroupRuleAzureAd",
"ExcludeAccessGitHubOrganizationRule",
@@ -95,7 +94,6 @@
"RequireAccessIPListRuleIPList",
"RequireAccessCertificateRule",
"RequireAccessAccessGroupRule",
- "RequireAccessAccessGroupRuleGroup",
"RequireAccessAzureGroupRule",
"RequireAccessAzureGroupRuleAzureAd",
"RequireAccessGitHubOrganizationRule",
@@ -206,13 +204,8 @@ class IncludeAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class IncludeAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class IncludeAccessAccessGroupRule(TypedDict, total=False):
- group: Required[IncludeAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class IncludeAccessAzureGroupRuleAzureAd(TypedDict, total=False):
@@ -412,13 +405,8 @@ class ExcludeAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class ExcludeAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class ExcludeAccessAccessGroupRule(TypedDict, total=False):
- group: Required[ExcludeAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class ExcludeAccessAzureGroupRuleAzureAd(TypedDict, total=False):
@@ -618,13 +606,8 @@ class RequireAccessCertificateRule(TypedDict, total=False):
certificate: Required[object]
-class RequireAccessAccessGroupRuleGroup(TypedDict, total=False):
- id: Required[str]
- """The ID of a previously created Access group."""
-
-
class RequireAccessAccessGroupRule(TypedDict, total=False):
- group: Required[RequireAccessAccessGroupRuleGroup]
+ group: Required[shared_params.UnnamedSchemaRef131]
class RequireAccessAzureGroupRuleAzureAd(TypedDict, total=False):
diff --git a/src/cloudflare/types/zero_trust/access/zero_trust_apps.py b/src/cloudflare/types/zero_trust/access/zero_trust_apps.py
index bbd1111c7da..95336903279 100644
--- a/src/cloudflare/types/zero_trust/access/zero_trust_apps.py
+++ b/src/cloudflare/types/zero_trust/access/zero_trust_apps.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef75, UnnamedSchemaRef76, UnnamedSchemaRef77
from ...._models import BaseModel
__all__ = [
@@ -14,7 +15,6 @@
"SaaSApplicationSaasApp",
"SaaSApplicationSaasAppAccessSamlSaasApp",
"SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributes",
- "SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource",
"SaaSApplicationSaasAppAccessOidcSaasApp",
"BrowserSSHApplication",
"BrowserSSHApplicationCorsHeaders",
@@ -180,25 +180,14 @@ class SelfHostedApplication(BaseModel):
updated_at: Optional[datetime] = None
-class SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource(BaseModel):
- name: Optional[str] = None
- """The name of the IdP attribute."""
-
-
class SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributes(BaseModel):
name: Optional[str] = None
"""The name of the attribute."""
- name_format: Optional[
- Literal[
- "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified",
- "urn:oasis:names:tc:SAML:2.0:attrname-format:basic",
- "urn:oasis:names:tc:SAML:2.0:attrname-format:uri",
- ]
- ] = None
+ name_format: Optional[UnnamedSchemaRef75] = None
"""A globally unique name for an identity or service provider."""
- source: Optional[SaaSApplicationSaasAppAccessSamlSaasAppCustomAttributesSource] = None
+ source: Optional[UnnamedSchemaRef76] = None
class SaaSApplicationSaasAppAccessSamlSaasApp(BaseModel):
@@ -228,7 +217,7 @@ class SaaSApplicationSaasAppAccessSamlSaasApp(BaseModel):
idp_entity_id: Optional[str] = None
"""The unique identifier for your SaaS application."""
- name_id_format: Optional[Literal["id", "email"]] = None
+ name_id_format: Optional[UnnamedSchemaRef77] = None
"""The format of the name identifier sent to the SaaS application."""
name_id_transform_jsonata: Optional[str] = None
diff --git a/src/cloudflare/types/zero_trust/access/zero_trust_groups.py b/src/cloudflare/types/zero_trust/access/zero_trust_groups.py
index f7cde2ccddb..e33d7f5e56a 100644
--- a/src/cloudflare/types/zero_trust/access/zero_trust_groups.py
+++ b/src/cloudflare/types/zero_trust/access/zero_trust_groups.py
@@ -5,6 +5,7 @@
from pydantic import Field as FieldInfo
+from ...shared import UnnamedSchemaRef131
from ...._models import BaseModel
__all__ = [
@@ -23,7 +24,6 @@
"ExcludeAccessIPListRuleIPList",
"ExcludeAccessCertificateRule",
"ExcludeAccessAccessGroupRule",
- "ExcludeAccessAccessGroupRuleGroup",
"ExcludeAccessAzureGroupRule",
"ExcludeAccessAzureGroupRuleAzureAd",
"ExcludeAccessGitHubOrganizationRule",
@@ -59,7 +59,6 @@
"IncludeAccessIPListRuleIPList",
"IncludeAccessCertificateRule",
"IncludeAccessAccessGroupRule",
- "IncludeAccessAccessGroupRuleGroup",
"IncludeAccessAzureGroupRule",
"IncludeAccessAzureGroupRuleAzureAd",
"IncludeAccessGitHubOrganizationRule",
@@ -95,7 +94,6 @@
"IsDefaultAccessIPListRuleIPList",
"IsDefaultAccessCertificateRule",
"IsDefaultAccessAccessGroupRule",
- "IsDefaultAccessAccessGroupRuleGroup",
"IsDefaultAccessAzureGroupRule",
"IsDefaultAccessAzureGroupRuleAzureAd",
"IsDefaultAccessGitHubOrganizationRule",
@@ -131,7 +129,6 @@
"RequireAccessIPListRuleIPList",
"RequireAccessCertificateRule",
"RequireAccessAccessGroupRule",
- "RequireAccessAccessGroupRuleGroup",
"RequireAccessAzureGroupRule",
"RequireAccessAzureGroupRuleAzureAd",
"RequireAccessGitHubOrganizationRule",
@@ -210,13 +207,8 @@ class ExcludeAccessCertificateRule(BaseModel):
certificate: object
-class ExcludeAccessAccessGroupRuleGroup(BaseModel):
- id: str
- """The ID of a previously created Access group."""
-
-
class ExcludeAccessAccessGroupRule(BaseModel):
- group: ExcludeAccessAccessGroupRuleGroup
+ group: UnnamedSchemaRef131
class ExcludeAccessAzureGroupRuleAzureAd(BaseModel):
@@ -414,13 +406,8 @@ class IncludeAccessCertificateRule(BaseModel):
certificate: object
-class IncludeAccessAccessGroupRuleGroup(BaseModel):
- id: str
- """The ID of a previously created Access group."""
-
-
class IncludeAccessAccessGroupRule(BaseModel):
- group: IncludeAccessAccessGroupRuleGroup
+ group: UnnamedSchemaRef131
class IncludeAccessAzureGroupRuleAzureAd(BaseModel):
@@ -618,13 +605,8 @@ class IsDefaultAccessCertificateRule(BaseModel):
certificate: object
-class IsDefaultAccessAccessGroupRuleGroup(BaseModel):
- id: str
- """The ID of a previously created Access group."""
-
-
class IsDefaultAccessAccessGroupRule(BaseModel):
- group: IsDefaultAccessAccessGroupRuleGroup
+ group: UnnamedSchemaRef131
class IsDefaultAccessAzureGroupRuleAzureAd(BaseModel):
@@ -824,13 +806,8 @@ class RequireAccessCertificateRule(BaseModel):
certificate: object
-class RequireAccessAccessGroupRuleGroup(BaseModel):
- id: str
- """The ID of a previously created Access group."""
-
-
class RequireAccessAccessGroupRule(BaseModel):
- group: RequireAccessAccessGroupRuleGroup
+ group: UnnamedSchemaRef131
class RequireAccessAzureGroupRuleAzureAd(BaseModel):
diff --git a/src/cloudflare/types/zero_trust/device_get_response.py b/src/cloudflare/types/zero_trust/device_get_response.py
deleted file mode 100644
index 0365cadad59..00000000000
--- a/src/cloudflare/types/zero_trust/device_get_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["DeviceGetResponse"]
-
-DeviceGetResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/zero_trust/devices/__init__.py b/src/cloudflare/types/zero_trust/devices/__init__.py
index f82aec9d788..f21f706dfeb 100644
--- a/src/cloudflare/types/zero_trust/devices/__init__.py
+++ b/src/cloudflare/types/zero_trust/devices/__init__.py
@@ -18,13 +18,11 @@
from .dex_test_create_params import DEXTestCreateParams as DEXTestCreateParams
from .dex_test_update_params import DEXTestUpdateParams as DEXTestUpdateParams
from .policy_delete_response import PolicyDeleteResponse as PolicyDeleteResponse
-from .revoke_create_response import RevokeCreateResponse as RevokeCreateResponse
from .unrevoke_create_params import UnrevokeCreateParams as UnrevokeCreateParams
from .device_managed_networks import DeviceManagedNetworks as DeviceManagedNetworks
from .network_delete_response import NetworkDeleteResponse as NetworkDeleteResponse
from .posture_delete_response import PostureDeleteResponse as PostureDeleteResponse
from .dex_test_delete_response import DEXTestDeleteResponse as DEXTestDeleteResponse
-from .unrevoke_create_response import UnrevokeCreateResponse as UnrevokeCreateResponse
from .override_code_list_response import OverrideCodeListResponse as OverrideCodeListResponse
from .devices_device_settings_policy import DevicesDeviceSettingsPolicy as DevicesDeviceSettingsPolicy
from .zero_trust_account_device_settings import ZeroTrustAccountDeviceSettings as ZeroTrustAccountDeviceSettings
diff --git a/src/cloudflare/types/zero_trust/devices/device_posture_rules.py b/src/cloudflare/types/zero_trust/devices/device_posture_rules.py
index 0ec5ff47a90..39e5b12eaaa 100644
--- a/src/cloudflare/types/zero_trust/devices/device_posture_rules.py
+++ b/src/cloudflare/types/zero_trust/devices/device_posture_rules.py
@@ -5,6 +5,7 @@
from pydantic import Field as FieldInfo
+from ...shared import UnnamedSchemaRef87, UnnamedSchemaRef88, UnnamedSchemaRef119
from ...._models import BaseModel
__all__ = [
@@ -31,7 +32,7 @@
class InputTeamsDevicesFileInputRequest(BaseModel):
- operating_system: Literal["windows", "linux", "mac"]
+ operating_system: UnnamedSchemaRef119
"""Operating system"""
path: str
@@ -96,7 +97,7 @@ class InputTeamsDevicesFirewallInputRequest(BaseModel):
class InputTeamsDevicesSentineloneInputRequest(BaseModel):
- operating_system: Literal["windows", "linux", "mac"]
+ operating_system: UnnamedSchemaRef119
"""Operating system"""
path: str
@@ -110,7 +111,7 @@ class InputTeamsDevicesSentineloneInputRequest(BaseModel):
class InputTeamsDevicesCarbonblackInputRequest(BaseModel):
- operating_system: Literal["windows", "linux", "mac"]
+ operating_system: UnnamedSchemaRef119
"""Operating system"""
path: str
@@ -132,7 +133,7 @@ class InputTeamsDevicesDiskEncryptionInputRequest(BaseModel):
class InputTeamsDevicesApplicationInputRequest(BaseModel):
- operating_system: Literal["windows", "linux", "mac"]
+ operating_system: UnnamedSchemaRef119
"""Operating system"""
path: str
@@ -168,7 +169,7 @@ class InputTeamsDevicesCrowdstrikeInputRequest(BaseModel):
last_seen: Optional[str] = None
"""For more details on last seen, please refer to the Crowdstrike documentation."""
- operator: Optional[Literal["<", "<=", ">", ">=", "=="]] = None
+ operator: Optional[UnnamedSchemaRef87] = None
"""Operator"""
os: Optional[str] = None
@@ -186,7 +187,7 @@ class InputTeamsDevicesCrowdstrikeInputRequest(BaseModel):
version: Optional[str] = None
"""Version"""
- version_operator: Optional[Literal["<", "<=", ">", ">=", "=="]] = FieldInfo(alias="versionOperator", default=None)
+ version_operator: Optional[UnnamedSchemaRef88] = FieldInfo(alias="versionOperator", default=None)
"""Version Operator"""
diff --git a/src/cloudflare/types/zero_trust/devices/posture/__init__.py b/src/cloudflare/types/zero_trust/devices/posture/__init__.py
index 79d462b903a..ae6d179f159 100644
--- a/src/cloudflare/types/zero_trust/devices/posture/__init__.py
+++ b/src/cloudflare/types/zero_trust/devices/posture/__init__.py
@@ -6,4 +6,3 @@
from .integration_create_params import IntegrationCreateParams as IntegrationCreateParams
from .integration_delete_params import IntegrationDeleteParams as IntegrationDeleteParams
from .device_posture_integrations import DevicePostureIntegrations as DevicePostureIntegrations
-from .integration_delete_response import IntegrationDeleteResponse as IntegrationDeleteResponse
diff --git a/src/cloudflare/types/zero_trust/devices/posture/integration_delete_response.py b/src/cloudflare/types/zero_trust/devices/posture/integration_delete_response.py
deleted file mode 100644
index 05c1748f44b..00000000000
--- a/src/cloudflare/types/zero_trust/devices/posture/integration_delete_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["IntegrationDeleteResponse"]
-
-IntegrationDeleteResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/zero_trust/devices/posture_create_params.py b/src/cloudflare/types/zero_trust/devices/posture_create_params.py
index 1372b6ab886..268ab787828 100644
--- a/src/cloudflare/types/zero_trust/devices/posture_create_params.py
+++ b/src/cloudflare/types/zero_trust/devices/posture_create_params.py
@@ -5,6 +5,7 @@
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, Annotated, TypedDict
+from ...shared import UnnamedSchemaRef87, UnnamedSchemaRef88, UnnamedSchemaRef119
from ...._utils import PropertyInfo
__all__ = [
@@ -85,7 +86,7 @@ class PostureCreateParams(TypedDict, total=False):
class InputTeamsDevicesFileInputRequest(TypedDict, total=False):
- operating_system: Required[Literal["windows", "linux", "mac"]]
+ operating_system: Required[UnnamedSchemaRef119]
"""Operating system"""
path: Required[str]
@@ -150,7 +151,7 @@ class InputTeamsDevicesFirewallInputRequest(TypedDict, total=False):
class InputTeamsDevicesSentineloneInputRequest(TypedDict, total=False):
- operating_system: Required[Literal["windows", "linux", "mac"]]
+ operating_system: Required[UnnamedSchemaRef119]
"""Operating system"""
path: Required[str]
@@ -164,7 +165,7 @@ class InputTeamsDevicesSentineloneInputRequest(TypedDict, total=False):
class InputTeamsDevicesCarbonblackInputRequest(TypedDict, total=False):
- operating_system: Required[Literal["windows", "linux", "mac"]]
+ operating_system: Required[UnnamedSchemaRef119]
"""Operating system"""
path: Required[str]
@@ -186,7 +187,7 @@ class InputTeamsDevicesDiskEncryptionInputRequest(TypedDict, total=False):
class InputTeamsDevicesApplicationInputRequest(TypedDict, total=False):
- operating_system: Required[Literal["windows", "linux", "mac"]]
+ operating_system: Required[UnnamedSchemaRef119]
"""Operating system"""
path: Required[str]
@@ -222,7 +223,7 @@ class InputTeamsDevicesCrowdstrikeInputRequest(TypedDict, total=False):
last_seen: str
"""For more details on last seen, please refer to the Crowdstrike documentation."""
- operator: Literal["<", "<=", ">", ">=", "=="]
+ operator: UnnamedSchemaRef87
"""Operator"""
os: str
@@ -240,7 +241,7 @@ class InputTeamsDevicesCrowdstrikeInputRequest(TypedDict, total=False):
version: str
"""Version"""
- version_operator: Annotated[Literal["<", "<=", ">", ">=", "=="], PropertyInfo(alias="versionOperator")]
+ version_operator: Annotated[UnnamedSchemaRef88, PropertyInfo(alias="versionOperator")]
"""Version Operator"""
diff --git a/src/cloudflare/types/zero_trust/devices/posture_update_params.py b/src/cloudflare/types/zero_trust/devices/posture_update_params.py
index 4d672e25d9a..351432e4de9 100644
--- a/src/cloudflare/types/zero_trust/devices/posture_update_params.py
+++ b/src/cloudflare/types/zero_trust/devices/posture_update_params.py
@@ -5,6 +5,7 @@
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, Annotated, TypedDict
+from ...shared import UnnamedSchemaRef87, UnnamedSchemaRef88, UnnamedSchemaRef119
from ...._utils import PropertyInfo
__all__ = [
@@ -85,7 +86,7 @@ class PostureUpdateParams(TypedDict, total=False):
class InputTeamsDevicesFileInputRequest(TypedDict, total=False):
- operating_system: Required[Literal["windows", "linux", "mac"]]
+ operating_system: Required[UnnamedSchemaRef119]
"""Operating system"""
path: Required[str]
@@ -150,7 +151,7 @@ class InputTeamsDevicesFirewallInputRequest(TypedDict, total=False):
class InputTeamsDevicesSentineloneInputRequest(TypedDict, total=False):
- operating_system: Required[Literal["windows", "linux", "mac"]]
+ operating_system: Required[UnnamedSchemaRef119]
"""Operating system"""
path: Required[str]
@@ -164,7 +165,7 @@ class InputTeamsDevicesSentineloneInputRequest(TypedDict, total=False):
class InputTeamsDevicesCarbonblackInputRequest(TypedDict, total=False):
- operating_system: Required[Literal["windows", "linux", "mac"]]
+ operating_system: Required[UnnamedSchemaRef119]
"""Operating system"""
path: Required[str]
@@ -186,7 +187,7 @@ class InputTeamsDevicesDiskEncryptionInputRequest(TypedDict, total=False):
class InputTeamsDevicesApplicationInputRequest(TypedDict, total=False):
- operating_system: Required[Literal["windows", "linux", "mac"]]
+ operating_system: Required[UnnamedSchemaRef119]
"""Operating system"""
path: Required[str]
@@ -222,7 +223,7 @@ class InputTeamsDevicesCrowdstrikeInputRequest(TypedDict, total=False):
last_seen: str
"""For more details on last seen, please refer to the Crowdstrike documentation."""
- operator: Literal["<", "<=", ">", ">=", "=="]
+ operator: UnnamedSchemaRef87
"""Operator"""
os: str
@@ -240,7 +241,7 @@ class InputTeamsDevicesCrowdstrikeInputRequest(TypedDict, total=False):
version: str
"""Version"""
- version_operator: Annotated[Literal["<", "<=", ">", ">=", "=="], PropertyInfo(alias="versionOperator")]
+ version_operator: Annotated[UnnamedSchemaRef88, PropertyInfo(alias="versionOperator")]
"""Version Operator"""
diff --git a/src/cloudflare/types/zero_trust/devices/revoke_create_response.py b/src/cloudflare/types/zero_trust/devices/revoke_create_response.py
deleted file mode 100644
index 67ea75e5ec0..00000000000
--- a/src/cloudflare/types/zero_trust/devices/revoke_create_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["RevokeCreateResponse"]
-
-RevokeCreateResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py b/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py
deleted file mode 100644
index 7462d7fafeb..00000000000
--- a/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union
-
-__all__ = ["UnrevokeCreateResponse"]
-
-UnrevokeCreateResponse = Union[str, object, None]
diff --git a/src/cloudflare/types/zero_trust/dex/test_list_response.py b/src/cloudflare/types/zero_trust/dex/test_list_response.py
index 561b2839018..49f74a9b329 100644
--- a/src/cloudflare/types/zero_trust/dex/test_list_response.py
+++ b/src/cloudflare/types/zero_trust/dex/test_list_response.py
@@ -3,22 +3,11 @@
from typing import List, Optional
from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef172
from ...._models import BaseModel
from .digital_experience_monitoring_tests import DigitalExperienceMonitoringTests
-__all__ = ["TestListResponse", "Error", "Message", "ResultInfo"]
-
-
-class Error(BaseModel):
- code: int
-
- message: str
-
-
-class Message(BaseModel):
- code: int
-
- message: str
+__all__ = ["TestListResponse", "ResultInfo"]
class ResultInfo(BaseModel):
@@ -37,9 +26,9 @@ class ResultInfo(BaseModel):
class TestListResponse(BaseModel):
__test__ = False
- errors: List[Error]
+ errors: List[UnnamedSchemaRef172]
- messages: List[Message]
+ messages: List[UnnamedSchemaRef172]
result: DigitalExperienceMonitoringTests
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py b/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
index 43b82cdfeb2..0a226e95dfa 100644
--- a/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/__init__.py
@@ -7,6 +7,5 @@
from .custom_delete_params import CustomDeleteParams as CustomDeleteParams
from .custom_update_params import CustomUpdateParams as CustomUpdateParams
from .custom_create_response import CustomCreateResponse as CustomCreateResponse
-from .custom_delete_response import CustomDeleteResponse as CustomDeleteResponse
from .dlp_predefined_profile import DLPPredefinedProfile as DLPPredefinedProfile
from .predefined_update_params import PredefinedUpdateParams as PredefinedUpdateParams
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/dlp_custom_profile.py b/src/cloudflare/types/zero_trust/dlp/profiles/dlp_custom_profile.py
index 746676ab3d9..bd84cdd6e59 100644
--- a/src/cloudflare/types/zero_trust/dlp/profiles/dlp_custom_profile.py
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/dlp_custom_profile.py
@@ -4,6 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
+from ....shared import UnnamedSchemaRef96
from ....._models import BaseModel
__all__ = ["DLPCustomProfile", "ContextAwareness", "ContextAwarenessSkip", "Entry", "EntryPattern"]
@@ -85,7 +86,7 @@ class DLPCustomProfile(BaseModel):
ocr_enabled: Optional[bool] = None
"""If true, scan images via OCR to determine if any text present matches filters."""
- type: Optional[Literal["custom"]] = None
+ type: Optional[UnnamedSchemaRef96] = None
"""The type of the profile."""
updated_at: Optional[datetime] = None
diff --git a/src/cloudflare/types/zero_trust/dlp/profiles/dlp_predefined_profile.py b/src/cloudflare/types/zero_trust/dlp/profiles/dlp_predefined_profile.py
index 78d59d7e297..5f72a277fbc 100644
--- a/src/cloudflare/types/zero_trust/dlp/profiles/dlp_predefined_profile.py
+++ b/src/cloudflare/types/zero_trust/dlp/profiles/dlp_predefined_profile.py
@@ -1,8 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
-from typing_extensions import Literal
+from ....shared import UnnamedSchemaRef97
from ....._models import BaseModel
__all__ = ["DLPPredefinedProfile", "ContextAwareness", "ContextAwarenessSkip", "Entry"]
@@ -60,5 +60,5 @@ class DLPPredefinedProfile(BaseModel):
ocr_enabled: Optional[bool] = None
"""If true, scan images via OCR to determine if any text present matches filters."""
- type: Optional[Literal["predefined"]] = None
+ type: Optional[UnnamedSchemaRef97] = None
"""The type of the profile."""
diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py b/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py
index 1b8b4486943..4a6946a3219 100644
--- a/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/configuration_edit_params.py
@@ -4,166 +4,13 @@
from typing_extensions import Required, TypedDict
-__all__ = [
- "ConfigurationEditParams",
- "Settings",
- "SettingsActivityLog",
- "SettingsAntivirus",
- "SettingsAntivirusNotificationSettings",
- "SettingsBlockPage",
- "SettingsBodyScanning",
- "SettingsBrowserIsolation",
- "SettingsCustomCertificate",
- "SettingsExtendedEmailMatching",
- "SettingsFips",
- "SettingsProtocolDetection",
- "SettingsTLSDecrypt",
-]
+from ....types import shared_params
+
+__all__ = ["ConfigurationEditParams"]
class ConfigurationEditParams(TypedDict, total=False):
account_id: Required[str]
- settings: Settings
+ settings: shared_params.UnnamedSchemaRef125
"""account settings."""
-
-
-class SettingsActivityLog(TypedDict, total=False):
- enabled: bool
- """Enable activity logging."""
-
-
-class SettingsAntivirusNotificationSettings(TypedDict, total=False):
- enabled: bool
- """Set notification on"""
-
- msg: str
- """Customize the message shown in the notification."""
-
- support_url: str
- """Optional URL to direct users to additional information.
-
- If not set, the notification will open a block page.
- """
-
-
-class SettingsAntivirus(TypedDict, total=False):
- enabled_download_phase: bool
- """Enable anti-virus scanning on downloads."""
-
- enabled_upload_phase: bool
- """Enable anti-virus scanning on uploads."""
-
- fail_closed: bool
- """Block requests for files that cannot be scanned."""
-
- notification_settings: SettingsAntivirusNotificationSettings
- """
- Configure a message to display on the user's device when an antivirus search is
- performed.
- """
-
-
-class SettingsBlockPage(TypedDict, total=False):
- background_color: str
- """Block page background color in #rrggbb format."""
-
- enabled: bool
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
- footer_text: str
- """Block page footer text."""
-
- header_text: str
- """Block page header text."""
-
- logo_path: str
- """Full URL to the logo file."""
-
- mailto_address: str
- """Admin email for users to contact."""
-
- mailto_subject: str
- """Subject line for emails created from block page."""
-
- name: str
- """Block page title."""
-
- suppress_footer: bool
- """Suppress detailed info at the bottom of the block page."""
-
-
-class SettingsBodyScanning(TypedDict, total=False):
- inspection_mode: str
- """Set the inspection mode to either `deep` or `shallow`."""
-
-
-class SettingsBrowserIsolation(TypedDict, total=False):
- non_identity_enabled: bool
- """Enable non-identity onramp support for Browser Isolation."""
-
- url_browser_isolation_enabled: bool
- """Enable Clientless Browser Isolation."""
-
-
-class SettingsCustomCertificate(TypedDict, total=False):
- enabled: Required[bool]
- """Enable use of custom certificate authority for signing Gateway traffic."""
-
- id: str
- """UUID of certificate (ID from MTLS certificate store)."""
-
-
-class SettingsExtendedEmailMatching(TypedDict, total=False):
- enabled: bool
- """Enable matching all variants of user emails (with + or .
-
- modifiers) used as criteria in Firewall policies.
- """
-
-
-class SettingsFips(TypedDict, total=False):
- tls: bool
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
-
-class SettingsProtocolDetection(TypedDict, total=False):
- enabled: bool
- """Enable detecting protocol on initial bytes of client traffic."""
-
-
-class SettingsTLSDecrypt(TypedDict, total=False):
- enabled: bool
- """Enable inspecting encrypted HTTP traffic."""
-
-
-class Settings(TypedDict, total=False):
- activity_log: SettingsActivityLog
- """Activity log settings."""
-
- antivirus: SettingsAntivirus
- """Anti-virus settings."""
-
- block_page: SettingsBlockPage
- """Block page layout settings."""
-
- body_scanning: SettingsBodyScanning
- """DLP body scanning settings."""
-
- browser_isolation: SettingsBrowserIsolation
- """Browser isolation settings."""
-
- custom_certificate: SettingsCustomCertificate
- """Custom certificate settings for BYO-PKI."""
-
- extended_email_matching: SettingsExtendedEmailMatching
- """Extended e-mail matching settings."""
-
- fips: SettingsFips
- """FIPS settings."""
-
- protocol_detection: SettingsProtocolDetection
- """Protocol Detection settings."""
-
- tls_decrypt: SettingsTLSDecrypt
- """TLS interception settings."""
diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py b/src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py
index 4e067c18509..e5917a37e0d 100644
--- a/src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py
+++ b/src/cloudflare/types/zero_trust/gateway/configuration_edit_response.py
@@ -3,175 +3,16 @@
from typing import Optional
from datetime import datetime
+from ...shared import UnnamedSchemaRef125
from ...._models import BaseModel
-__all__ = [
- "ConfigurationEditResponse",
- "Settings",
- "SettingsActivityLog",
- "SettingsAntivirus",
- "SettingsAntivirusNotificationSettings",
- "SettingsBlockPage",
- "SettingsBodyScanning",
- "SettingsBrowserIsolation",
- "SettingsCustomCertificate",
- "SettingsExtendedEmailMatching",
- "SettingsFips",
- "SettingsProtocolDetection",
- "SettingsTLSDecrypt",
-]
-
-
-class SettingsActivityLog(BaseModel):
- enabled: Optional[bool] = None
- """Enable activity logging."""
-
-
-class SettingsAntivirusNotificationSettings(BaseModel):
- enabled: Optional[bool] = None
- """Set notification on"""
-
- msg: Optional[str] = None
- """Customize the message shown in the notification."""
-
- support_url: Optional[str] = None
- """Optional URL to direct users to additional information.
-
- If not set, the notification will open a block page.
- """
-
-
-class SettingsAntivirus(BaseModel):
- enabled_download_phase: Optional[bool] = None
- """Enable anti-virus scanning on downloads."""
-
- enabled_upload_phase: Optional[bool] = None
- """Enable anti-virus scanning on uploads."""
-
- fail_closed: Optional[bool] = None
- """Block requests for files that cannot be scanned."""
-
- notification_settings: Optional[SettingsAntivirusNotificationSettings] = None
- """
- Configure a message to display on the user's device when an antivirus search is
- performed.
- """
-
-
-class SettingsBlockPage(BaseModel):
- background_color: Optional[str] = None
- """Block page background color in #rrggbb format."""
-
- enabled: Optional[bool] = None
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
- footer_text: Optional[str] = None
- """Block page footer text."""
-
- header_text: Optional[str] = None
- """Block page header text."""
-
- logo_path: Optional[str] = None
- """Full URL to the logo file."""
-
- mailto_address: Optional[str] = None
- """Admin email for users to contact."""
-
- mailto_subject: Optional[str] = None
- """Subject line for emails created from block page."""
-
- name: Optional[str] = None
- """Block page title."""
-
- suppress_footer: Optional[bool] = None
- """Suppress detailed info at the bottom of the block page."""
-
-
-class SettingsBodyScanning(BaseModel):
- inspection_mode: Optional[str] = None
- """Set the inspection mode to either `deep` or `shallow`."""
-
-
-class SettingsBrowserIsolation(BaseModel):
- non_identity_enabled: Optional[bool] = None
- """Enable non-identity onramp support for Browser Isolation."""
-
- url_browser_isolation_enabled: Optional[bool] = None
- """Enable Clientless Browser Isolation."""
-
-
-class SettingsCustomCertificate(BaseModel):
- enabled: bool
- """Enable use of custom certificate authority for signing Gateway traffic."""
-
- id: Optional[str] = None
- """UUID of certificate (ID from MTLS certificate store)."""
-
- binding_status: Optional[str] = None
- """Certificate status (internal)."""
-
- updated_at: Optional[datetime] = None
-
-
-class SettingsExtendedEmailMatching(BaseModel):
- enabled: Optional[bool] = None
- """Enable matching all variants of user emails (with + or .
-
- modifiers) used as criteria in Firewall policies.
- """
-
-
-class SettingsFips(BaseModel):
- tls: Optional[bool] = None
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
-
-class SettingsProtocolDetection(BaseModel):
- enabled: Optional[bool] = None
- """Enable detecting protocol on initial bytes of client traffic."""
-
-
-class SettingsTLSDecrypt(BaseModel):
- enabled: Optional[bool] = None
- """Enable inspecting encrypted HTTP traffic."""
-
-
-class Settings(BaseModel):
- activity_log: Optional[SettingsActivityLog] = None
- """Activity log settings."""
-
- antivirus: Optional[SettingsAntivirus] = None
- """Anti-virus settings."""
-
- block_page: Optional[SettingsBlockPage] = None
- """Block page layout settings."""
-
- body_scanning: Optional[SettingsBodyScanning] = None
- """DLP body scanning settings."""
-
- browser_isolation: Optional[SettingsBrowserIsolation] = None
- """Browser isolation settings."""
-
- custom_certificate: Optional[SettingsCustomCertificate] = None
- """Custom certificate settings for BYO-PKI."""
-
- extended_email_matching: Optional[SettingsExtendedEmailMatching] = None
- """Extended e-mail matching settings."""
-
- fips: Optional[SettingsFips] = None
- """FIPS settings."""
-
- protocol_detection: Optional[SettingsProtocolDetection] = None
- """Protocol Detection settings."""
-
- tls_decrypt: Optional[SettingsTLSDecrypt] = None
- """TLS interception settings."""
+__all__ = ["ConfigurationEditResponse"]
class ConfigurationEditResponse(BaseModel):
created_at: Optional[datetime] = None
- settings: Optional[Settings] = None
+ settings: Optional[UnnamedSchemaRef125] = None
"""account settings."""
updated_at: Optional[datetime] = None
diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_get_response.py b/src/cloudflare/types/zero_trust/gateway/configuration_get_response.py
index b4b6520dc3b..b1d2ef1adab 100644
--- a/src/cloudflare/types/zero_trust/gateway/configuration_get_response.py
+++ b/src/cloudflare/types/zero_trust/gateway/configuration_get_response.py
@@ -3,175 +3,16 @@
from typing import Optional
from datetime import datetime
+from ...shared import UnnamedSchemaRef125
from ...._models import BaseModel
-__all__ = [
- "ConfigurationGetResponse",
- "Settings",
- "SettingsActivityLog",
- "SettingsAntivirus",
- "SettingsAntivirusNotificationSettings",
- "SettingsBlockPage",
- "SettingsBodyScanning",
- "SettingsBrowserIsolation",
- "SettingsCustomCertificate",
- "SettingsExtendedEmailMatching",
- "SettingsFips",
- "SettingsProtocolDetection",
- "SettingsTLSDecrypt",
-]
-
-
-class SettingsActivityLog(BaseModel):
- enabled: Optional[bool] = None
- """Enable activity logging."""
-
-
-class SettingsAntivirusNotificationSettings(BaseModel):
- enabled: Optional[bool] = None
- """Set notification on"""
-
- msg: Optional[str] = None
- """Customize the message shown in the notification."""
-
- support_url: Optional[str] = None
- """Optional URL to direct users to additional information.
-
- If not set, the notification will open a block page.
- """
-
-
-class SettingsAntivirus(BaseModel):
- enabled_download_phase: Optional[bool] = None
- """Enable anti-virus scanning on downloads."""
-
- enabled_upload_phase: Optional[bool] = None
- """Enable anti-virus scanning on uploads."""
-
- fail_closed: Optional[bool] = None
- """Block requests for files that cannot be scanned."""
-
- notification_settings: Optional[SettingsAntivirusNotificationSettings] = None
- """
- Configure a message to display on the user's device when an antivirus search is
- performed.
- """
-
-
-class SettingsBlockPage(BaseModel):
- background_color: Optional[str] = None
- """Block page background color in #rrggbb format."""
-
- enabled: Optional[bool] = None
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
- footer_text: Optional[str] = None
- """Block page footer text."""
-
- header_text: Optional[str] = None
- """Block page header text."""
-
- logo_path: Optional[str] = None
- """Full URL to the logo file."""
-
- mailto_address: Optional[str] = None
- """Admin email for users to contact."""
-
- mailto_subject: Optional[str] = None
- """Subject line for emails created from block page."""
-
- name: Optional[str] = None
- """Block page title."""
-
- suppress_footer: Optional[bool] = None
- """Suppress detailed info at the bottom of the block page."""
-
-
-class SettingsBodyScanning(BaseModel):
- inspection_mode: Optional[str] = None
- """Set the inspection mode to either `deep` or `shallow`."""
-
-
-class SettingsBrowserIsolation(BaseModel):
- non_identity_enabled: Optional[bool] = None
- """Enable non-identity onramp support for Browser Isolation."""
-
- url_browser_isolation_enabled: Optional[bool] = None
- """Enable Clientless Browser Isolation."""
-
-
-class SettingsCustomCertificate(BaseModel):
- enabled: bool
- """Enable use of custom certificate authority for signing Gateway traffic."""
-
- id: Optional[str] = None
- """UUID of certificate (ID from MTLS certificate store)."""
-
- binding_status: Optional[str] = None
- """Certificate status (internal)."""
-
- updated_at: Optional[datetime] = None
-
-
-class SettingsExtendedEmailMatching(BaseModel):
- enabled: Optional[bool] = None
- """Enable matching all variants of user emails (with + or .
-
- modifiers) used as criteria in Firewall policies.
- """
-
-
-class SettingsFips(BaseModel):
- tls: Optional[bool] = None
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
-
-class SettingsProtocolDetection(BaseModel):
- enabled: Optional[bool] = None
- """Enable detecting protocol on initial bytes of client traffic."""
-
-
-class SettingsTLSDecrypt(BaseModel):
- enabled: Optional[bool] = None
- """Enable inspecting encrypted HTTP traffic."""
-
-
-class Settings(BaseModel):
- activity_log: Optional[SettingsActivityLog] = None
- """Activity log settings."""
-
- antivirus: Optional[SettingsAntivirus] = None
- """Anti-virus settings."""
-
- block_page: Optional[SettingsBlockPage] = None
- """Block page layout settings."""
-
- body_scanning: Optional[SettingsBodyScanning] = None
- """DLP body scanning settings."""
-
- browser_isolation: Optional[SettingsBrowserIsolation] = None
- """Browser isolation settings."""
-
- custom_certificate: Optional[SettingsCustomCertificate] = None
- """Custom certificate settings for BYO-PKI."""
-
- extended_email_matching: Optional[SettingsExtendedEmailMatching] = None
- """Extended e-mail matching settings."""
-
- fips: Optional[SettingsFips] = None
- """FIPS settings."""
-
- protocol_detection: Optional[SettingsProtocolDetection] = None
- """Protocol Detection settings."""
-
- tls_decrypt: Optional[SettingsTLSDecrypt] = None
- """TLS interception settings."""
+__all__ = ["ConfigurationGetResponse"]
class ConfigurationGetResponse(BaseModel):
created_at: Optional[datetime] = None
- settings: Optional[Settings] = None
+ settings: Optional[UnnamedSchemaRef125] = None
"""account settings."""
updated_at: Optional[datetime] = None
diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py b/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py
index e2c78e50f50..03a0f948fc2 100644
--- a/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/configuration_update_params.py
@@ -4,166 +4,13 @@
from typing_extensions import Required, TypedDict
-__all__ = [
- "ConfigurationUpdateParams",
- "Settings",
- "SettingsActivityLog",
- "SettingsAntivirus",
- "SettingsAntivirusNotificationSettings",
- "SettingsBlockPage",
- "SettingsBodyScanning",
- "SettingsBrowserIsolation",
- "SettingsCustomCertificate",
- "SettingsExtendedEmailMatching",
- "SettingsFips",
- "SettingsProtocolDetection",
- "SettingsTLSDecrypt",
-]
+from ....types import shared_params
+
+__all__ = ["ConfigurationUpdateParams"]
class ConfigurationUpdateParams(TypedDict, total=False):
account_id: Required[str]
- settings: Settings
+ settings: shared_params.UnnamedSchemaRef125
"""account settings."""
-
-
-class SettingsActivityLog(TypedDict, total=False):
- enabled: bool
- """Enable activity logging."""
-
-
-class SettingsAntivirusNotificationSettings(TypedDict, total=False):
- enabled: bool
- """Set notification on"""
-
- msg: str
- """Customize the message shown in the notification."""
-
- support_url: str
- """Optional URL to direct users to additional information.
-
- If not set, the notification will open a block page.
- """
-
-
-class SettingsAntivirus(TypedDict, total=False):
- enabled_download_phase: bool
- """Enable anti-virus scanning on downloads."""
-
- enabled_upload_phase: bool
- """Enable anti-virus scanning on uploads."""
-
- fail_closed: bool
- """Block requests for files that cannot be scanned."""
-
- notification_settings: SettingsAntivirusNotificationSettings
- """
- Configure a message to display on the user's device when an antivirus search is
- performed.
- """
-
-
-class SettingsBlockPage(TypedDict, total=False):
- background_color: str
- """Block page background color in #rrggbb format."""
-
- enabled: bool
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
- footer_text: str
- """Block page footer text."""
-
- header_text: str
- """Block page header text."""
-
- logo_path: str
- """Full URL to the logo file."""
-
- mailto_address: str
- """Admin email for users to contact."""
-
- mailto_subject: str
- """Subject line for emails created from block page."""
-
- name: str
- """Block page title."""
-
- suppress_footer: bool
- """Suppress detailed info at the bottom of the block page."""
-
-
-class SettingsBodyScanning(TypedDict, total=False):
- inspection_mode: str
- """Set the inspection mode to either `deep` or `shallow`."""
-
-
-class SettingsBrowserIsolation(TypedDict, total=False):
- non_identity_enabled: bool
- """Enable non-identity onramp support for Browser Isolation."""
-
- url_browser_isolation_enabled: bool
- """Enable Clientless Browser Isolation."""
-
-
-class SettingsCustomCertificate(TypedDict, total=False):
- enabled: Required[bool]
- """Enable use of custom certificate authority for signing Gateway traffic."""
-
- id: str
- """UUID of certificate (ID from MTLS certificate store)."""
-
-
-class SettingsExtendedEmailMatching(TypedDict, total=False):
- enabled: bool
- """Enable matching all variants of user emails (with + or .
-
- modifiers) used as criteria in Firewall policies.
- """
-
-
-class SettingsFips(TypedDict, total=False):
- tls: bool
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
-
-class SettingsProtocolDetection(TypedDict, total=False):
- enabled: bool
- """Enable detecting protocol on initial bytes of client traffic."""
-
-
-class SettingsTLSDecrypt(TypedDict, total=False):
- enabled: bool
- """Enable inspecting encrypted HTTP traffic."""
-
-
-class Settings(TypedDict, total=False):
- activity_log: SettingsActivityLog
- """Activity log settings."""
-
- antivirus: SettingsAntivirus
- """Anti-virus settings."""
-
- block_page: SettingsBlockPage
- """Block page layout settings."""
-
- body_scanning: SettingsBodyScanning
- """DLP body scanning settings."""
-
- browser_isolation: SettingsBrowserIsolation
- """Browser isolation settings."""
-
- custom_certificate: SettingsCustomCertificate
- """Custom certificate settings for BYO-PKI."""
-
- extended_email_matching: SettingsExtendedEmailMatching
- """Extended e-mail matching settings."""
-
- fips: SettingsFips
- """FIPS settings."""
-
- protocol_detection: SettingsProtocolDetection
- """Protocol Detection settings."""
-
- tls_decrypt: SettingsTLSDecrypt
- """TLS interception settings."""
diff --git a/src/cloudflare/types/zero_trust/gateway/configuration_update_response.py b/src/cloudflare/types/zero_trust/gateway/configuration_update_response.py
index faec0a5c9be..30e9939ae0d 100644
--- a/src/cloudflare/types/zero_trust/gateway/configuration_update_response.py
+++ b/src/cloudflare/types/zero_trust/gateway/configuration_update_response.py
@@ -3,175 +3,16 @@
from typing import Optional
from datetime import datetime
+from ...shared import UnnamedSchemaRef125
from ...._models import BaseModel
-__all__ = [
- "ConfigurationUpdateResponse",
- "Settings",
- "SettingsActivityLog",
- "SettingsAntivirus",
- "SettingsAntivirusNotificationSettings",
- "SettingsBlockPage",
- "SettingsBodyScanning",
- "SettingsBrowserIsolation",
- "SettingsCustomCertificate",
- "SettingsExtendedEmailMatching",
- "SettingsFips",
- "SettingsProtocolDetection",
- "SettingsTLSDecrypt",
-]
-
-
-class SettingsActivityLog(BaseModel):
- enabled: Optional[bool] = None
- """Enable activity logging."""
-
-
-class SettingsAntivirusNotificationSettings(BaseModel):
- enabled: Optional[bool] = None
- """Set notification on"""
-
- msg: Optional[str] = None
- """Customize the message shown in the notification."""
-
- support_url: Optional[str] = None
- """Optional URL to direct users to additional information.
-
- If not set, the notification will open a block page.
- """
-
-
-class SettingsAntivirus(BaseModel):
- enabled_download_phase: Optional[bool] = None
- """Enable anti-virus scanning on downloads."""
-
- enabled_upload_phase: Optional[bool] = None
- """Enable anti-virus scanning on uploads."""
-
- fail_closed: Optional[bool] = None
- """Block requests for files that cannot be scanned."""
-
- notification_settings: Optional[SettingsAntivirusNotificationSettings] = None
- """
- Configure a message to display on the user's device when an antivirus search is
- performed.
- """
-
-
-class SettingsBlockPage(BaseModel):
- background_color: Optional[str] = None
- """Block page background color in #rrggbb format."""
-
- enabled: Optional[bool] = None
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
- footer_text: Optional[str] = None
- """Block page footer text."""
-
- header_text: Optional[str] = None
- """Block page header text."""
-
- logo_path: Optional[str] = None
- """Full URL to the logo file."""
-
- mailto_address: Optional[str] = None
- """Admin email for users to contact."""
-
- mailto_subject: Optional[str] = None
- """Subject line for emails created from block page."""
-
- name: Optional[str] = None
- """Block page title."""
-
- suppress_footer: Optional[bool] = None
- """Suppress detailed info at the bottom of the block page."""
-
-
-class SettingsBodyScanning(BaseModel):
- inspection_mode: Optional[str] = None
- """Set the inspection mode to either `deep` or `shallow`."""
-
-
-class SettingsBrowserIsolation(BaseModel):
- non_identity_enabled: Optional[bool] = None
- """Enable non-identity onramp support for Browser Isolation."""
-
- url_browser_isolation_enabled: Optional[bool] = None
- """Enable Clientless Browser Isolation."""
-
-
-class SettingsCustomCertificate(BaseModel):
- enabled: bool
- """Enable use of custom certificate authority for signing Gateway traffic."""
-
- id: Optional[str] = None
- """UUID of certificate (ID from MTLS certificate store)."""
-
- binding_status: Optional[str] = None
- """Certificate status (internal)."""
-
- updated_at: Optional[datetime] = None
-
-
-class SettingsExtendedEmailMatching(BaseModel):
- enabled: Optional[bool] = None
- """Enable matching all variants of user emails (with + or .
-
- modifiers) used as criteria in Firewall policies.
- """
-
-
-class SettingsFips(BaseModel):
- tls: Optional[bool] = None
- """Enable only cipher suites and TLS versions compliant with FIPS 140-2."""
-
-
-class SettingsProtocolDetection(BaseModel):
- enabled: Optional[bool] = None
- """Enable detecting protocol on initial bytes of client traffic."""
-
-
-class SettingsTLSDecrypt(BaseModel):
- enabled: Optional[bool] = None
- """Enable inspecting encrypted HTTP traffic."""
-
-
-class Settings(BaseModel):
- activity_log: Optional[SettingsActivityLog] = None
- """Activity log settings."""
-
- antivirus: Optional[SettingsAntivirus] = None
- """Anti-virus settings."""
-
- block_page: Optional[SettingsBlockPage] = None
- """Block page layout settings."""
-
- body_scanning: Optional[SettingsBodyScanning] = None
- """DLP body scanning settings."""
-
- browser_isolation: Optional[SettingsBrowserIsolation] = None
- """Browser isolation settings."""
-
- custom_certificate: Optional[SettingsCustomCertificate] = None
- """Custom certificate settings for BYO-PKI."""
-
- extended_email_matching: Optional[SettingsExtendedEmailMatching] = None
- """Extended e-mail matching settings."""
-
- fips: Optional[SettingsFips] = None
- """FIPS settings."""
-
- protocol_detection: Optional[SettingsProtocolDetection] = None
- """Protocol Detection settings."""
-
- tls_decrypt: Optional[SettingsTLSDecrypt] = None
- """TLS interception settings."""
+__all__ = ["ConfigurationUpdateResponse"]
class ConfigurationUpdateResponse(BaseModel):
created_at: Optional[datetime] = None
- settings: Optional[Settings] = None
+ settings: Optional[UnnamedSchemaRef125] = None
"""account settings."""
updated_at: Optional[datetime] = None
diff --git a/src/cloudflare/types/zero_trust/gateway/logging_update_params.py b/src/cloudflare/types/zero_trust/gateway/logging_update_params.py
index de1cb4dfeb6..b6b1895dbd9 100644
--- a/src/cloudflare/types/zero_trust/gateway/logging_update_params.py
+++ b/src/cloudflare/types/zero_trust/gateway/logging_update_params.py
@@ -4,7 +4,9 @@
from typing_extensions import Required, TypedDict
-__all__ = ["LoggingUpdateParams", "SettingsByRuleType"]
+from ....types import shared_params
+
+__all__ = ["LoggingUpdateParams"]
class LoggingUpdateParams(TypedDict, total=False):
@@ -16,16 +18,5 @@ class LoggingUpdateParams(TypedDict, total=False):
are: source IP, user email, user ID, device ID, URL, referrer, user agent).
"""
- settings_by_rule_type: SettingsByRuleType
+ settings_by_rule_type: shared_params.UnnamedSchemaRef28
"""Logging settings by rule type."""
-
-
-class SettingsByRuleType(TypedDict, total=False):
- dns: object
- """Logging settings for DNS firewall."""
-
- http: object
- """Logging settings for HTTP/HTTPS firewall."""
-
- l4: object
- """Logging settings for Network firewall."""
diff --git a/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_gateway_account_logging_settings.py b/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_gateway_account_logging_settings.py
index 940be064172..332a1330054 100644
--- a/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_gateway_account_logging_settings.py
+++ b/src/cloudflare/types/zero_trust/gateway/zero_trust_gateway_gateway_account_logging_settings.py
@@ -2,20 +2,10 @@
from typing import Optional
+from ...shared import UnnamedSchemaRef28
from ...._models import BaseModel
-__all__ = ["ZeroTrustGatewayGatewayAccountLoggingSettings", "SettingsByRuleType"]
-
-
-class SettingsByRuleType(BaseModel):
- dns: Optional[object] = None
- """Logging settings for DNS firewall."""
-
- http: Optional[object] = None
- """Logging settings for HTTP/HTTPS firewall."""
-
- l4: Optional[object] = None
- """Logging settings for Network firewall."""
+__all__ = ["ZeroTrustGatewayGatewayAccountLoggingSettings"]
class ZeroTrustGatewayGatewayAccountLoggingSettings(BaseModel):
@@ -25,5 +15,5 @@ class ZeroTrustGatewayGatewayAccountLoggingSettings(BaseModel):
are: source IP, user email, user ID, device ID, URL, referrer, user agent).
"""
- settings_by_rule_type: Optional[SettingsByRuleType] = None
+ settings_by_rule_type: Optional[UnnamedSchemaRef28] = None
"""Logging settings by rule type."""
diff --git a/src/cloudflare/types/zero_trust/identity_provider_create_params.py b/src/cloudflare/types/zero_trust/identity_provider_create_params.py
index 1361f7a999c..8d4508bb490 100644
--- a/src/cloudflare/types/zero_trust/identity_provider_create_params.py
+++ b/src/cloudflare/types/zero_trust/identity_provider_create_params.py
@@ -5,50 +5,39 @@
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from ...types import shared_params
+from ..shared import UnnamedSchemaRef163
+
__all__ = [
"IdentityProviderCreateParams",
"AccessAzureAd",
"AccessAzureAdConfig",
- "AccessAzureAdScimConfig",
"AccessCentrify",
"AccessCentrifyConfig",
- "AccessCentrifyScimConfig",
"AccessFacebook",
"AccessFacebookConfig",
- "AccessFacebookScimConfig",
"AccessGitHub",
"AccessGitHubConfig",
- "AccessGitHubScimConfig",
"AccessGoogle",
"AccessGoogleConfig",
- "AccessGoogleScimConfig",
"AccessGoogleApps",
"AccessGoogleAppsConfig",
- "AccessGoogleAppsScimConfig",
"AccessLinkedin",
"AccessLinkedinConfig",
- "AccessLinkedinScimConfig",
"AccessOidc",
"AccessOidcConfig",
- "AccessOidcScimConfig",
"AccessOkta",
"AccessOktaConfig",
- "AccessOktaScimConfig",
"AccessOnelogin",
"AccessOneloginConfig",
- "AccessOneloginScimConfig",
"AccessPingone",
"AccessPingoneConfig",
- "AccessPingoneScimConfig",
"AccessSaml",
"AccessSamlConfig",
"AccessSamlConfigHeaderAttribute",
- "AccessSamlScimConfig",
"AccessYandex",
"AccessYandexConfig",
- "AccessYandexScimConfig",
"AccessOnetimepin",
- "AccessOnetimepinScimConfig",
]
@@ -63,24 +52,7 @@ class AccessAzureAd(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -93,7 +65,7 @@ class AccessAzureAd(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessAzureAdScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -136,38 +108,6 @@ class AccessAzureAdConfig(TypedDict, total=False):
"""Should Cloudflare try to load groups from your account"""
-class AccessAzureAdScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessCentrify(TypedDict, total=False):
config: Required[AccessCentrifyConfig]
"""The configuration parameters for the identity provider.
@@ -179,24 +119,7 @@ class AccessCentrify(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -209,7 +132,7 @@ class AccessCentrify(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessCentrifyScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -236,38 +159,6 @@ class AccessCentrifyConfig(TypedDict, total=False):
"""The claim name for email in the id_token response."""
-class AccessCentrifyScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessFacebook(TypedDict, total=False):
config: Required[AccessFacebookConfig]
"""The configuration parameters for the identity provider.
@@ -279,24 +170,7 @@ class AccessFacebook(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -309,7 +183,7 @@ class AccessFacebook(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessFacebookScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -324,38 +198,6 @@ class AccessFacebookConfig(TypedDict, total=False):
"""Your OAuth Client Secret"""
-class AccessFacebookScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGitHub(TypedDict, total=False):
config: Required[AccessGitHubConfig]
"""The configuration parameters for the identity provider.
@@ -367,24 +209,7 @@ class AccessGitHub(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -397,7 +222,7 @@ class AccessGitHub(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessGitHubScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -412,38 +237,6 @@ class AccessGitHubConfig(TypedDict, total=False):
"""Your OAuth Client Secret"""
-class AccessGitHubScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGoogle(TypedDict, total=False):
config: Required[AccessGoogleConfig]
"""The configuration parameters for the identity provider.
@@ -455,24 +248,7 @@ class AccessGoogle(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -485,7 +261,7 @@ class AccessGoogle(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessGoogleScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -506,38 +282,6 @@ class AccessGoogleConfig(TypedDict, total=False):
"""The claim name for email in the id_token response."""
-class AccessGoogleScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGoogleApps(TypedDict, total=False):
config: Required[AccessGoogleAppsConfig]
"""The configuration parameters for the identity provider.
@@ -549,24 +293,7 @@ class AccessGoogleApps(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -579,7 +306,7 @@ class AccessGoogleApps(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessGoogleAppsScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -603,38 +330,6 @@ class AccessGoogleAppsConfig(TypedDict, total=False):
"""The claim name for email in the id_token response."""
-class AccessGoogleAppsScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessLinkedin(TypedDict, total=False):
config: Required[AccessLinkedinConfig]
"""The configuration parameters for the identity provider.
@@ -646,24 +341,7 @@ class AccessLinkedin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -676,7 +354,7 @@ class AccessLinkedin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessLinkedinScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -691,38 +369,6 @@ class AccessLinkedinConfig(TypedDict, total=False):
"""Your OAuth Client Secret"""
-class AccessLinkedinScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOidc(TypedDict, total=False):
config: Required[AccessOidcConfig]
"""The configuration parameters for the identity provider.
@@ -734,24 +380,7 @@ class AccessOidc(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -764,7 +393,7 @@ class AccessOidc(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessOidcScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -797,38 +426,6 @@ class AccessOidcConfig(TypedDict, total=False):
"""The token_endpoint URL of your IdP"""
-class AccessOidcScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOkta(TypedDict, total=False):
config: Required[AccessOktaConfig]
"""The configuration parameters for the identity provider.
@@ -840,24 +437,7 @@ class AccessOkta(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -870,7 +450,7 @@ class AccessOkta(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessOktaScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -897,38 +477,6 @@ class AccessOktaConfig(TypedDict, total=False):
"""Your okta account url"""
-class AccessOktaScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOnelogin(TypedDict, total=False):
config: Required[AccessOneloginConfig]
"""The configuration parameters for the identity provider.
@@ -940,24 +488,7 @@ class AccessOnelogin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -970,7 +501,7 @@ class AccessOnelogin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessOneloginScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -994,38 +525,6 @@ class AccessOneloginConfig(TypedDict, total=False):
"""Your OneLogin account url"""
-class AccessOneloginScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessPingone(TypedDict, total=False):
config: Required[AccessPingoneConfig]
"""The configuration parameters for the identity provider.
@@ -1037,24 +536,7 @@ class AccessPingone(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1067,7 +549,7 @@ class AccessPingone(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessPingoneScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1091,38 +573,6 @@ class AccessPingoneConfig(TypedDict, total=False):
"""Your PingOne environment identifier"""
-class AccessPingoneScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessSaml(TypedDict, total=False):
config: Required[AccessSamlConfig]
"""The configuration parameters for the identity provider.
@@ -1134,24 +584,7 @@ class AccessSaml(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1164,7 +597,7 @@ class AccessSaml(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessSamlScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1211,38 +644,6 @@ class AccessSamlConfig(TypedDict, total=False):
"""URL to send the SAML authentication requests to"""
-class AccessSamlScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessYandex(TypedDict, total=False):
config: Required[AccessYandexConfig]
"""The configuration parameters for the identity provider.
@@ -1254,24 +655,7 @@ class AccessYandex(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1284,7 +668,7 @@ class AccessYandex(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessYandexScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1299,38 +683,6 @@ class AccessYandexConfig(TypedDict, total=False):
"""Your OAuth Client Secret"""
-class AccessYandexScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOnetimepin(TypedDict, total=False):
config: Required[object]
"""The configuration parameters for the identity provider.
@@ -1342,24 +694,7 @@ class AccessOnetimepin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1372,45 +707,13 @@ class AccessOnetimepin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessOnetimepinScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOnetimepinScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
IdentityProviderCreateParams = Union[
AccessAzureAd,
AccessCentrify,
diff --git a/src/cloudflare/types/zero_trust/identity_provider_list_response.py b/src/cloudflare/types/zero_trust/identity_provider_list_response.py
index fe476a77ad3..76292a5d9d1 100644
--- a/src/cloudflare/types/zero_trust/identity_provider_list_response.py
+++ b/src/cloudflare/types/zero_trust/identity_provider_list_response.py
@@ -3,50 +3,38 @@
from typing import List, Union, Optional
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef158, UnnamedSchemaRef163
from ..._models import BaseModel
__all__ = [
"IdentityProviderListResponse",
"AccessAzureAd",
"AccessAzureAdConfig",
- "AccessAzureAdScimConfig",
"AccessCentrify",
"AccessCentrifyConfig",
- "AccessCentrifyScimConfig",
"AccessFacebook",
"AccessFacebookConfig",
- "AccessFacebookScimConfig",
"AccessGitHub",
"AccessGitHubConfig",
- "AccessGitHubScimConfig",
"AccessGoogle",
"AccessGoogleConfig",
- "AccessGoogleScimConfig",
"AccessGoogleApps",
"AccessGoogleAppsConfig",
- "AccessGoogleAppsScimConfig",
"AccessLinkedin",
"AccessLinkedinConfig",
- "AccessLinkedinScimConfig",
"AccessOidc",
"AccessOidcConfig",
- "AccessOidcScimConfig",
"AccessOkta",
"AccessOktaConfig",
- "AccessOktaScimConfig",
"AccessOnelogin",
"AccessOneloginConfig",
- "AccessOneloginScimConfig",
"AccessPingone",
"AccessPingoneConfig",
- "AccessPingoneScimConfig",
"AccessSaml",
"AccessSamlConfig",
"AccessSamlConfigHeaderAttribute",
- "AccessSamlScimConfig",
"AccessYandex",
"AccessYandexConfig",
- "AccessYandexScimConfig",
]
@@ -86,38 +74,6 @@ class AccessAzureAdConfig(BaseModel):
"""Should Cloudflare try to load groups from your account"""
-class AccessAzureAdScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessAzureAd(BaseModel):
config: AccessAzureAdConfig
"""The configuration parameters for the identity provider.
@@ -129,22 +85,7 @@ class AccessAzureAd(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -154,7 +95,7 @@ class AccessAzureAd(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessAzureAdScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -181,38 +122,6 @@ class AccessCentrifyConfig(BaseModel):
"""The claim name for email in the id_token response."""
-class AccessCentrifyScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessCentrify(BaseModel):
config: AccessCentrifyConfig
"""The configuration parameters for the identity provider.
@@ -224,22 +133,7 @@ class AccessCentrify(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -249,7 +143,7 @@ class AccessCentrify(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessCentrifyScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -264,38 +158,6 @@ class AccessFacebookConfig(BaseModel):
"""Your OAuth Client Secret"""
-class AccessFacebookScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessFacebook(BaseModel):
config: AccessFacebookConfig
"""The configuration parameters for the identity provider.
@@ -307,22 +169,7 @@ class AccessFacebook(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -332,7 +179,7 @@ class AccessFacebook(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessFacebookScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -347,38 +194,6 @@ class AccessGitHubConfig(BaseModel):
"""Your OAuth Client Secret"""
-class AccessGitHubScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGitHub(BaseModel):
config: AccessGitHubConfig
"""The configuration parameters for the identity provider.
@@ -390,22 +205,7 @@ class AccessGitHub(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -415,7 +215,7 @@ class AccessGitHub(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessGitHubScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -436,38 +236,6 @@ class AccessGoogleConfig(BaseModel):
"""The claim name for email in the id_token response."""
-class AccessGoogleScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGoogle(BaseModel):
config: AccessGoogleConfig
"""The configuration parameters for the identity provider.
@@ -479,22 +247,7 @@ class AccessGoogle(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -504,7 +257,7 @@ class AccessGoogle(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessGoogleScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -528,38 +281,6 @@ class AccessGoogleAppsConfig(BaseModel):
"""The claim name for email in the id_token response."""
-class AccessGoogleAppsScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGoogleApps(BaseModel):
config: AccessGoogleAppsConfig
"""The configuration parameters for the identity provider.
@@ -571,22 +292,7 @@ class AccessGoogleApps(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -596,7 +302,7 @@ class AccessGoogleApps(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessGoogleAppsScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -611,38 +317,6 @@ class AccessLinkedinConfig(BaseModel):
"""Your OAuth Client Secret"""
-class AccessLinkedinScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessLinkedin(BaseModel):
config: AccessLinkedinConfig
"""The configuration parameters for the identity provider.
@@ -654,22 +328,7 @@ class AccessLinkedin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -679,7 +338,7 @@ class AccessLinkedin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessLinkedinScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -712,38 +371,6 @@ class AccessOidcConfig(BaseModel):
"""The token_endpoint URL of your IdP"""
-class AccessOidcScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOidc(BaseModel):
config: AccessOidcConfig
"""The configuration parameters for the identity provider.
@@ -755,22 +382,7 @@ class AccessOidc(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -780,7 +392,7 @@ class AccessOidc(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessOidcScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -807,38 +419,6 @@ class AccessOktaConfig(BaseModel):
"""Your okta account url"""
-class AccessOktaScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOkta(BaseModel):
config: AccessOktaConfig
"""The configuration parameters for the identity provider.
@@ -850,22 +430,7 @@ class AccessOkta(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -875,7 +440,7 @@ class AccessOkta(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessOktaScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -899,38 +464,6 @@ class AccessOneloginConfig(BaseModel):
"""Your OneLogin account url"""
-class AccessOneloginScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOnelogin(BaseModel):
config: AccessOneloginConfig
"""The configuration parameters for the identity provider.
@@ -942,22 +475,7 @@ class AccessOnelogin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -967,7 +485,7 @@ class AccessOnelogin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessOneloginScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -991,38 +509,6 @@ class AccessPingoneConfig(BaseModel):
"""Your PingOne environment identifier"""
-class AccessPingoneScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessPingone(BaseModel):
config: AccessPingoneConfig
"""The configuration parameters for the identity provider.
@@ -1034,22 +520,7 @@ class AccessPingone(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1059,7 +530,7 @@ class AccessPingone(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessPingoneScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1106,38 +577,6 @@ class AccessSamlConfig(BaseModel):
"""URL to send the SAML authentication requests to"""
-class AccessSamlScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessSaml(BaseModel):
config: AccessSamlConfig
"""The configuration parameters for the identity provider.
@@ -1149,22 +588,7 @@ class AccessSaml(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1174,7 +598,7 @@ class AccessSaml(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessSamlScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1189,38 +613,6 @@ class AccessYandexConfig(BaseModel):
"""Your OAuth Client Secret"""
-class AccessYandexScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessYandex(BaseModel):
config: AccessYandexConfig
"""The configuration parameters for the identity provider.
@@ -1232,22 +624,7 @@ class AccessYandex(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1257,7 +634,7 @@ class AccessYandex(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessYandexScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
diff --git a/src/cloudflare/types/zero_trust/identity_provider_update_params.py b/src/cloudflare/types/zero_trust/identity_provider_update_params.py
index 27b9ae810b7..0a44d125c82 100644
--- a/src/cloudflare/types/zero_trust/identity_provider_update_params.py
+++ b/src/cloudflare/types/zero_trust/identity_provider_update_params.py
@@ -5,50 +5,39 @@
from typing import List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
+from ...types import shared_params
+from ..shared import UnnamedSchemaRef163
+
__all__ = [
"IdentityProviderUpdateParams",
"AccessAzureAd",
"AccessAzureAdConfig",
- "AccessAzureAdScimConfig",
"AccessCentrify",
"AccessCentrifyConfig",
- "AccessCentrifyScimConfig",
"AccessFacebook",
"AccessFacebookConfig",
- "AccessFacebookScimConfig",
"AccessGitHub",
"AccessGitHubConfig",
- "AccessGitHubScimConfig",
"AccessGoogle",
"AccessGoogleConfig",
- "AccessGoogleScimConfig",
"AccessGoogleApps",
"AccessGoogleAppsConfig",
- "AccessGoogleAppsScimConfig",
"AccessLinkedin",
"AccessLinkedinConfig",
- "AccessLinkedinScimConfig",
"AccessOidc",
"AccessOidcConfig",
- "AccessOidcScimConfig",
"AccessOkta",
"AccessOktaConfig",
- "AccessOktaScimConfig",
"AccessOnelogin",
"AccessOneloginConfig",
- "AccessOneloginScimConfig",
"AccessPingone",
"AccessPingoneConfig",
- "AccessPingoneScimConfig",
"AccessSaml",
"AccessSamlConfig",
"AccessSamlConfigHeaderAttribute",
- "AccessSamlScimConfig",
"AccessYandex",
"AccessYandexConfig",
- "AccessYandexScimConfig",
"AccessOnetimepin",
- "AccessOnetimepinScimConfig",
]
@@ -63,24 +52,7 @@ class AccessAzureAd(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -93,7 +65,7 @@ class AccessAzureAd(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessAzureAdScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -136,38 +108,6 @@ class AccessAzureAdConfig(TypedDict, total=False):
"""Should Cloudflare try to load groups from your account"""
-class AccessAzureAdScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessCentrify(TypedDict, total=False):
config: Required[AccessCentrifyConfig]
"""The configuration parameters for the identity provider.
@@ -179,24 +119,7 @@ class AccessCentrify(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -209,7 +132,7 @@ class AccessCentrify(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessCentrifyScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -236,38 +159,6 @@ class AccessCentrifyConfig(TypedDict, total=False):
"""The claim name for email in the id_token response."""
-class AccessCentrifyScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessFacebook(TypedDict, total=False):
config: Required[AccessFacebookConfig]
"""The configuration parameters for the identity provider.
@@ -279,24 +170,7 @@ class AccessFacebook(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -309,7 +183,7 @@ class AccessFacebook(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessFacebookScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -324,38 +198,6 @@ class AccessFacebookConfig(TypedDict, total=False):
"""Your OAuth Client Secret"""
-class AccessFacebookScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGitHub(TypedDict, total=False):
config: Required[AccessGitHubConfig]
"""The configuration parameters for the identity provider.
@@ -367,24 +209,7 @@ class AccessGitHub(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -397,7 +222,7 @@ class AccessGitHub(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessGitHubScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -412,38 +237,6 @@ class AccessGitHubConfig(TypedDict, total=False):
"""Your OAuth Client Secret"""
-class AccessGitHubScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGoogle(TypedDict, total=False):
config: Required[AccessGoogleConfig]
"""The configuration parameters for the identity provider.
@@ -455,24 +248,7 @@ class AccessGoogle(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -485,7 +261,7 @@ class AccessGoogle(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessGoogleScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -506,38 +282,6 @@ class AccessGoogleConfig(TypedDict, total=False):
"""The claim name for email in the id_token response."""
-class AccessGoogleScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGoogleApps(TypedDict, total=False):
config: Required[AccessGoogleAppsConfig]
"""The configuration parameters for the identity provider.
@@ -549,24 +293,7 @@ class AccessGoogleApps(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -579,7 +306,7 @@ class AccessGoogleApps(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessGoogleAppsScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -603,38 +330,6 @@ class AccessGoogleAppsConfig(TypedDict, total=False):
"""The claim name for email in the id_token response."""
-class AccessGoogleAppsScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessLinkedin(TypedDict, total=False):
config: Required[AccessLinkedinConfig]
"""The configuration parameters for the identity provider.
@@ -646,24 +341,7 @@ class AccessLinkedin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -676,7 +354,7 @@ class AccessLinkedin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessLinkedinScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -691,38 +369,6 @@ class AccessLinkedinConfig(TypedDict, total=False):
"""Your OAuth Client Secret"""
-class AccessLinkedinScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOidc(TypedDict, total=False):
config: Required[AccessOidcConfig]
"""The configuration parameters for the identity provider.
@@ -734,24 +380,7 @@ class AccessOidc(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -764,7 +393,7 @@ class AccessOidc(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessOidcScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -797,38 +426,6 @@ class AccessOidcConfig(TypedDict, total=False):
"""The token_endpoint URL of your IdP"""
-class AccessOidcScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOkta(TypedDict, total=False):
config: Required[AccessOktaConfig]
"""The configuration parameters for the identity provider.
@@ -840,24 +437,7 @@ class AccessOkta(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -870,7 +450,7 @@ class AccessOkta(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessOktaScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -897,38 +477,6 @@ class AccessOktaConfig(TypedDict, total=False):
"""Your okta account url"""
-class AccessOktaScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOnelogin(TypedDict, total=False):
config: Required[AccessOneloginConfig]
"""The configuration parameters for the identity provider.
@@ -940,24 +488,7 @@ class AccessOnelogin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -970,7 +501,7 @@ class AccessOnelogin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessOneloginScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -994,38 +525,6 @@ class AccessOneloginConfig(TypedDict, total=False):
"""Your OneLogin account url"""
-class AccessOneloginScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessPingone(TypedDict, total=False):
config: Required[AccessPingoneConfig]
"""The configuration parameters for the identity provider.
@@ -1037,24 +536,7 @@ class AccessPingone(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1067,7 +549,7 @@ class AccessPingone(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessPingoneScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1091,38 +573,6 @@ class AccessPingoneConfig(TypedDict, total=False):
"""Your PingOne environment identifier"""
-class AccessPingoneScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessSaml(TypedDict, total=False):
config: Required[AccessSamlConfig]
"""The configuration parameters for the identity provider.
@@ -1134,24 +584,7 @@ class AccessSaml(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1164,7 +597,7 @@ class AccessSaml(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessSamlScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1211,38 +644,6 @@ class AccessSamlConfig(TypedDict, total=False):
"""URL to send the SAML authentication requests to"""
-class AccessSamlScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessYandex(TypedDict, total=False):
config: Required[AccessYandexConfig]
"""The configuration parameters for the identity provider.
@@ -1254,24 +655,7 @@ class AccessYandex(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1284,7 +668,7 @@ class AccessYandex(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessYandexScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1299,38 +683,6 @@ class AccessYandexConfig(TypedDict, total=False):
"""Your OAuth Client Secret"""
-class AccessYandexScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOnetimepin(TypedDict, total=False):
config: Required[object]
"""The configuration parameters for the identity provider.
@@ -1342,24 +694,7 @@ class AccessOnetimepin(TypedDict, total=False):
name: Required[str]
"""The name of the identity provider, shown to users on the login page."""
- type: Required[
- Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
- ]
+ type: Required[UnnamedSchemaRef163]
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1372,45 +707,13 @@ class AccessOnetimepin(TypedDict, total=False):
zone_id: str
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
- scim_config: AccessOnetimepinScimConfig
+ scim_config: shared_params.UnnamedSchemaRef158
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOnetimepinScimConfig(TypedDict, total=False):
- enabled: bool
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: bool
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: bool
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: str
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: bool
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
IdentityProviderUpdateParams = Union[
AccessAzureAd,
AccessCentrify,
diff --git a/src/cloudflare/types/zero_trust/zero_trust_identity_providers.py b/src/cloudflare/types/zero_trust/zero_trust_identity_providers.py
index d4d22daa810..ff6a02a1066 100644
--- a/src/cloudflare/types/zero_trust/zero_trust_identity_providers.py
+++ b/src/cloudflare/types/zero_trust/zero_trust_identity_providers.py
@@ -3,52 +3,39 @@
from typing import List, Union, Optional
from typing_extensions import Literal
+from ..shared import UnnamedSchemaRef158, UnnamedSchemaRef163
from ..._models import BaseModel
__all__ = [
"ZeroTrustIdentityProviders",
"AccessAzureAd",
"AccessAzureAdConfig",
- "AccessAzureAdScimConfig",
"AccessCentrify",
"AccessCentrifyConfig",
- "AccessCentrifyScimConfig",
"AccessFacebook",
"AccessFacebookConfig",
- "AccessFacebookScimConfig",
"AccessGitHub",
"AccessGitHubConfig",
- "AccessGitHubScimConfig",
"AccessGoogle",
"AccessGoogleConfig",
- "AccessGoogleScimConfig",
"AccessGoogleApps",
"AccessGoogleAppsConfig",
- "AccessGoogleAppsScimConfig",
"AccessLinkedin",
"AccessLinkedinConfig",
- "AccessLinkedinScimConfig",
"AccessOidc",
"AccessOidcConfig",
- "AccessOidcScimConfig",
"AccessOkta",
"AccessOktaConfig",
- "AccessOktaScimConfig",
"AccessOnelogin",
"AccessOneloginConfig",
- "AccessOneloginScimConfig",
"AccessPingone",
"AccessPingoneConfig",
- "AccessPingoneScimConfig",
"AccessSaml",
"AccessSamlConfig",
"AccessSamlConfigHeaderAttribute",
- "AccessSamlScimConfig",
"AccessYandex",
"AccessYandexConfig",
- "AccessYandexScimConfig",
"AccessOnetimepin",
- "AccessOnetimepinScimConfig",
]
@@ -88,38 +75,6 @@ class AccessAzureAdConfig(BaseModel):
"""Should Cloudflare try to load groups from your account"""
-class AccessAzureAdScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessAzureAd(BaseModel):
config: AccessAzureAdConfig
"""The configuration parameters for the identity provider.
@@ -131,22 +86,7 @@ class AccessAzureAd(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -156,7 +96,7 @@ class AccessAzureAd(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessAzureAdScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -183,38 +123,6 @@ class AccessCentrifyConfig(BaseModel):
"""The claim name for email in the id_token response."""
-class AccessCentrifyScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessCentrify(BaseModel):
config: AccessCentrifyConfig
"""The configuration parameters for the identity provider.
@@ -226,22 +134,7 @@ class AccessCentrify(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -251,7 +144,7 @@ class AccessCentrify(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessCentrifyScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -266,38 +159,6 @@ class AccessFacebookConfig(BaseModel):
"""Your OAuth Client Secret"""
-class AccessFacebookScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessFacebook(BaseModel):
config: AccessFacebookConfig
"""The configuration parameters for the identity provider.
@@ -309,22 +170,7 @@ class AccessFacebook(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -334,7 +180,7 @@ class AccessFacebook(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessFacebookScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -349,38 +195,6 @@ class AccessGitHubConfig(BaseModel):
"""Your OAuth Client Secret"""
-class AccessGitHubScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGitHub(BaseModel):
config: AccessGitHubConfig
"""The configuration parameters for the identity provider.
@@ -392,22 +206,7 @@ class AccessGitHub(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -417,7 +216,7 @@ class AccessGitHub(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessGitHubScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -438,38 +237,6 @@ class AccessGoogleConfig(BaseModel):
"""The claim name for email in the id_token response."""
-class AccessGoogleScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGoogle(BaseModel):
config: AccessGoogleConfig
"""The configuration parameters for the identity provider.
@@ -481,22 +248,7 @@ class AccessGoogle(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -506,7 +258,7 @@ class AccessGoogle(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessGoogleScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -530,38 +282,6 @@ class AccessGoogleAppsConfig(BaseModel):
"""The claim name for email in the id_token response."""
-class AccessGoogleAppsScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessGoogleApps(BaseModel):
config: AccessGoogleAppsConfig
"""The configuration parameters for the identity provider.
@@ -573,22 +293,7 @@ class AccessGoogleApps(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -598,7 +303,7 @@ class AccessGoogleApps(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessGoogleAppsScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -613,38 +318,6 @@ class AccessLinkedinConfig(BaseModel):
"""Your OAuth Client Secret"""
-class AccessLinkedinScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessLinkedin(BaseModel):
config: AccessLinkedinConfig
"""The configuration parameters for the identity provider.
@@ -656,22 +329,7 @@ class AccessLinkedin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -681,7 +339,7 @@ class AccessLinkedin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessLinkedinScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -714,38 +372,6 @@ class AccessOidcConfig(BaseModel):
"""The token_endpoint URL of your IdP"""
-class AccessOidcScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOidc(BaseModel):
config: AccessOidcConfig
"""The configuration parameters for the identity provider.
@@ -757,22 +383,7 @@ class AccessOidc(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -782,7 +393,7 @@ class AccessOidc(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessOidcScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -809,38 +420,6 @@ class AccessOktaConfig(BaseModel):
"""Your okta account url"""
-class AccessOktaScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOkta(BaseModel):
config: AccessOktaConfig
"""The configuration parameters for the identity provider.
@@ -852,22 +431,7 @@ class AccessOkta(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -877,7 +441,7 @@ class AccessOkta(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessOktaScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -901,38 +465,6 @@ class AccessOneloginConfig(BaseModel):
"""Your OneLogin account url"""
-class AccessOneloginScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOnelogin(BaseModel):
config: AccessOneloginConfig
"""The configuration parameters for the identity provider.
@@ -944,22 +476,7 @@ class AccessOnelogin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -969,7 +486,7 @@ class AccessOnelogin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessOneloginScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -993,38 +510,6 @@ class AccessPingoneConfig(BaseModel):
"""Your PingOne environment identifier"""
-class AccessPingoneScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessPingone(BaseModel):
config: AccessPingoneConfig
"""The configuration parameters for the identity provider.
@@ -1036,22 +521,7 @@ class AccessPingone(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1061,7 +531,7 @@ class AccessPingone(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessPingoneScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1108,38 +578,6 @@ class AccessSamlConfig(BaseModel):
"""URL to send the SAML authentication requests to"""
-class AccessSamlScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessSaml(BaseModel):
config: AccessSamlConfig
"""The configuration parameters for the identity provider.
@@ -1151,22 +589,7 @@ class AccessSaml(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1176,7 +599,7 @@ class AccessSaml(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessSamlScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
@@ -1191,38 +614,6 @@ class AccessYandexConfig(BaseModel):
"""Your OAuth Client Secret"""
-class AccessYandexScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessYandex(BaseModel):
config: AccessYandexConfig
"""The configuration parameters for the identity provider.
@@ -1234,22 +625,7 @@ class AccessYandex(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1259,45 +635,13 @@ class AccessYandex(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessYandexScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
"""
-class AccessOnetimepinScimConfig(BaseModel):
- enabled: Optional[bool] = None
- """A flag to enable or disable SCIM for the identity provider."""
-
- group_member_deprovision: Optional[bool] = None
- """
- A flag to revoke a user's session in Access and force a reauthentication on the
- user's Gateway session when they have been added or removed from a group in the
- Identity Provider.
- """
-
- seat_deprovision: Optional[bool] = None
- """
- A flag to remove a user's seat in Zero Trust when they have been deprovisioned
- in the Identity Provider. This cannot be enabled unless user_deprovision is also
- enabled.
- """
-
- secret: Optional[str] = None
- """
- A read-only token generated when the SCIM integration is enabled for the first
- time. It is redacted on subsequent requests. If you lose this you will need to
- refresh it token at /access/identity_providers/:idpID/refresh_scim_secret.
- """
-
- user_deprovision: Optional[bool] = None
- """
- A flag to enable revoking a user's session in Access and Gateway when they have
- been deprovisioned in the Identity Provider.
- """
-
-
class AccessOnetimepin(BaseModel):
config: object
"""The configuration parameters for the identity provider.
@@ -1309,22 +653,7 @@ class AccessOnetimepin(BaseModel):
name: str
"""The name of the identity provider, shown to users on the login page."""
- type: Literal[
- "onetimepin",
- "azureAD",
- "saml",
- "centrify",
- "facebook",
- "github",
- "google-apps",
- "google",
- "linkedin",
- "oidc",
- "okta",
- "onelogin",
- "pingone",
- "yandex",
- ]
+ type: UnnamedSchemaRef163
"""The type of identity provider.
To determine the value for a specific provider, refer to our
@@ -1334,7 +663,7 @@ class AccessOnetimepin(BaseModel):
id: Optional[str] = None
"""UUID"""
- scim_config: Optional[AccessOnetimepinScimConfig] = None
+ scim_config: Optional[UnnamedSchemaRef158] = None
"""
The configuration settings for enabling a System for Cross-Domain Identity
Management (SCIM) with the identity provider.
diff --git a/src/cloudflare/types/zones/__init__.py b/src/cloudflare/types/zones/__init__.py
index aeacfccb200..e425529e08c 100644
--- a/src/cloudflare/types/zones/__init__.py
+++ b/src/cloudflare/types/zones/__init__.py
@@ -8,15 +8,14 @@
from .hold_delete_params import HoldDeleteParams as HoldDeleteParams
from .setting_edit_params import SettingEditParams as SettingEditParams
from .hold_create_response import HoldCreateResponse as HoldCreateResponse
-from .hold_delete_response import HoldDeleteResponse as HoldDeleteResponse
from .setting_get_response import SettingGetResponse as SettingGetResponse
from .setting_edit_response import SettingEditResponse as SettingEditResponse
+from .unnamed_schema_ref_64 import UnnamedSchemaRef64 as UnnamedSchemaRef64
from .dns_setting_edit_params import DNSSettingEditParams as DNSSettingEditParams
from .subscription_get_response import SubscriptionGetResponse as SubscriptionGetResponse
from .subscription_create_params import SubscriptionCreateParams as SubscriptionCreateParams
from .subscription_list_response import SubscriptionListResponse as SubscriptionListResponse
from .subscription_create_response import SubscriptionCreateResponse as SubscriptionCreateResponse
-from .custom_nameserver_get_response import CustomNameserverGetResponse as CustomNameserverGetResponse
from .custom_nameserver_update_params import CustomNameserverUpdateParams as CustomNameserverUpdateParams
from .activation_check_trigger_response import ActivationCheckTriggerResponse as ActivationCheckTriggerResponse
from .custom_nameserver_update_response import CustomNameserverUpdateResponse as CustomNameserverUpdateResponse
diff --git a/src/cloudflare/types/zones/custom_nameserver_get_response.py b/src/cloudflare/types/zones/custom_nameserver_get_response.py
deleted file mode 100644
index a257787a184..00000000000
--- a/src/cloudflare/types/zones/custom_nameserver_get_response.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List, Union
-
-__all__ = ["CustomNameserverGetResponse"]
-
-CustomNameserverGetResponse = Union[List[object], str, object, None]
diff --git a/src/cloudflare/types/zones/settings/minify_edit_params.py b/src/cloudflare/types/zones/settings/minify_edit_params.py
index 71a2e4988cf..e6b49fd8be5 100644
--- a/src/cloudflare/types/zones/settings/minify_edit_params.py
+++ b/src/cloudflare/types/zones/settings/minify_edit_params.py
@@ -4,6 +4,8 @@
from typing_extensions import Literal, Required, TypedDict
+from ...shared import UnnamedSchemaRef92
+
__all__ = ["MinifyEditParams", "Value"]
@@ -16,7 +18,7 @@ class MinifyEditParams(TypedDict, total=False):
class Value(TypedDict, total=False):
- css: Literal["on", "off"]
+ css: UnnamedSchemaRef92
"""Automatically minify all CSS files for your website."""
html: Literal["on", "off"]
diff --git a/src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py b/src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py
index bd12478c643..e7f903be78b 100644
--- a/src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py
+++ b/src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py
@@ -4,13 +4,14 @@
from datetime import datetime
from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef142
from ...._models import BaseModel
__all__ = ["OriginMaxHTTPVersionEditResponse"]
class OriginMaxHTTPVersionEditResponse(BaseModel):
- id: Literal["origin_max_http_version"]
+ id: UnnamedSchemaRef142
"""Value of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py b/src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py
index a3ef1e821f1..bd4e67b0471 100644
--- a/src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py
+++ b/src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py
@@ -4,13 +4,14 @@
from datetime import datetime
from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef142
from ...._models import BaseModel
__all__ = ["OriginMaxHTTPVersionGetResponse"]
class OriginMaxHTTPVersionGetResponse(BaseModel):
- id: Literal["origin_max_http_version"]
+ id: UnnamedSchemaRef142
"""Value of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/zones/settings/zone_setting_minify.py b/src/cloudflare/types/zones/settings/zone_setting_minify.py
index efb415b7712..e7f68b9536c 100644
--- a/src/cloudflare/types/zones/settings/zone_setting_minify.py
+++ b/src/cloudflare/types/zones/settings/zone_setting_minify.py
@@ -4,13 +4,14 @@
from datetime import datetime
from typing_extensions import Literal
+from ...shared import UnnamedSchemaRef92
from ...._models import BaseModel
__all__ = ["ZoneSettingMinify", "Value"]
class Value(BaseModel):
- css: Optional[Literal["on", "off"]] = None
+ css: Optional[UnnamedSchemaRef92] = None
"""Automatically minify all CSS files for your website."""
html: Optional[Literal["on", "off"]] = None
diff --git a/src/cloudflare/types/zones/settings/zone_setting_minify_param.py b/src/cloudflare/types/zones/settings/zone_setting_minify_param.py
index f812a1d9ca4..fad90549576 100644
--- a/src/cloudflare/types/zones/settings/zone_setting_minify_param.py
+++ b/src/cloudflare/types/zones/settings/zone_setting_minify_param.py
@@ -4,11 +4,13 @@
from typing_extensions import Literal, Required, TypedDict
+from ...shared import UnnamedSchemaRef92
+
__all__ = ["ZoneSettingMinifyParam", "Value"]
class Value(TypedDict, total=False):
- css: Literal["on", "off"]
+ css: UnnamedSchemaRef92
"""Automatically minify all CSS files for your website."""
html: Literal["on", "off"]
diff --git a/src/cloudflare/types/zones/hold_delete_response.py b/src/cloudflare/types/zones/unnamed_schema_ref_64.py
similarity index 79%
rename from src/cloudflare/types/zones/hold_delete_response.py
rename to src/cloudflare/types/zones/unnamed_schema_ref_64.py
index 7050fac8a9e..77456ba13d2 100644
--- a/src/cloudflare/types/zones/hold_delete_response.py
+++ b/src/cloudflare/types/zones/unnamed_schema_ref_64.py
@@ -4,10 +4,10 @@
from ..._models import BaseModel
-__all__ = ["HoldDeleteResponse"]
+__all__ = ["UnnamedSchemaRef64"]
-class HoldDeleteResponse(BaseModel):
+class UnnamedSchemaRef64(BaseModel):
hold: Optional[bool] = None
hold_after: Optional[str] = None
diff --git a/tests/api_resources/addressing/address_maps/test_accounts.py b/tests/api_resources/addressing/address_maps/test_accounts.py
index 873237569e9..93679ac2878 100644
--- a/tests/api_resources/addressing/address_maps/test_accounts.py
+++ b/tests/api_resources/addressing/address_maps/test_accounts.py
@@ -9,10 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.addressing.address_maps import (
- AccountDeleteResponse,
- AccountUpdateResponse,
-)
+from cloudflare.types.shared import UnnamedSchemaRef167
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -28,7 +25,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -42,7 +39,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -56,7 +53,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -85,7 +82,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -99,7 +96,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -113,7 +110,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -146,7 +143,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -160,7 +157,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -174,7 +171,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(Optional[AccountUpdateResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -203,7 +200,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -217,7 +214,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -231,7 +228,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(Optional[AccountDeleteResponse], account, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], account, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/address_maps/test_ips.py b/tests/api_resources/addressing/address_maps/test_ips.py
index 5ac092eb762..8e9406b5062 100644
--- a/tests/api_resources/addressing/address_maps/test_ips.py
+++ b/tests/api_resources/addressing/address_maps/test_ips.py
@@ -9,10 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.addressing.address_maps import (
- IPDeleteResponse,
- IPUpdateResponse,
-)
+from cloudflare.types.shared import UnnamedSchemaRef167
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -29,7 +26,7 @@ def test_method_update(self, client: Cloudflare) -> None:
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -44,7 +41,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = response.parse()
- assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -59,7 +56,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = response.parse()
- assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -99,7 +96,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -114,7 +111,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = response.parse()
- assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -129,7 +126,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = response.parse()
- assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -173,7 +170,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -188,7 +185,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = await response.parse()
- assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -203,7 +200,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = await response.parse()
- assert_matches_type(Optional[IPUpdateResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -243,7 +240,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
address_map_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -258,7 +255,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = await response.parse()
- assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -273,7 +270,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ip = await response.parse()
- assert_matches_type(Optional[IPDeleteResponse], ip, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], ip, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/address_maps/test_zones.py b/tests/api_resources/addressing/address_maps/test_zones.py
index 450019f8c44..3bb814ff629 100644
--- a/tests/api_resources/addressing/address_maps/test_zones.py
+++ b/tests/api_resources/addressing/address_maps/test_zones.py
@@ -9,10 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.addressing.address_maps import (
- ZoneDeleteResponse,
- ZoneUpdateResponse,
-)
+from cloudflare.types.shared import UnnamedSchemaRef167
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -29,7 +26,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -44,7 +41,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = response.parse()
- assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -59,7 +56,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = response.parse()
- assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -99,7 +96,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -114,7 +111,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = response.parse()
- assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -129,7 +126,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = response.parse()
- assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -173,7 +170,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -188,7 +185,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = await response.parse()
- assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -203,7 +200,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = await response.parse()
- assert_matches_type(Optional[ZoneUpdateResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -243,7 +240,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -258,7 +255,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = await response.parse()
- assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -273,7 +270,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
zone = await response.parse()
- assert_matches_type(Optional[ZoneDeleteResponse], zone, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], zone, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/prefixes/bgp/test_bindings.py b/tests/api_resources/addressing/prefixes/bgp/test_bindings.py
index d73e8c6eb13..5917c0952cf 100644
--- a/tests/api_resources/addressing/prefixes/bgp/test_bindings.py
+++ b/tests/api_resources/addressing/prefixes/bgp/test_bindings.py
@@ -10,10 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.addressing.prefixes.bgp import (
- BindingDeleteResponse,
- AddressingServiceBinding,
-)
+from cloudflare.types.shared import UnnamedSchemaRef171
+from cloudflare.types.addressing.prefixes.bgp import AddressingServiceBinding
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -144,7 +142,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(BindingDeleteResponse, binding, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, binding, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -158,7 +156,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
binding = response.parse()
- assert_matches_type(BindingDeleteResponse, binding, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, binding, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -172,7 +170,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
binding = response.parse()
- assert_matches_type(BindingDeleteResponse, binding, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, binding, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -391,7 +389,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
prefix_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(BindingDeleteResponse, binding, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, binding, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -405,7 +403,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
binding = await response.parse()
- assert_matches_type(BindingDeleteResponse, binding, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, binding, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -419,7 +417,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
binding = await response.parse()
- assert_matches_type(BindingDeleteResponse, binding, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, binding, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/test_address_maps.py b/tests/api_resources/addressing/test_address_maps.py
index d97e34185ae..c414336e7fc 100644
--- a/tests/api_resources/addressing/test_address_maps.py
+++ b/tests/api_resources/addressing/test_address_maps.py
@@ -10,11 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef167
from cloudflare.types.addressing import (
AddressingAddressMaps,
AddressMapGetResponse,
AddressMapCreateResponse,
- AddressMapDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -125,7 +125,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], address_map, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -139,7 +139,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
address_map = response.parse()
- assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], address_map, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -153,7 +153,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
address_map = response.parse()
- assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], address_map, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -396,7 +396,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], address_map, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -410,7 +410,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
address_map = await response.parse()
- assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], address_map, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -424,7 +424,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
address_map = await response.parse()
- assert_matches_type(Optional[AddressMapDeleteResponse], address_map, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], address_map, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/addressing/test_prefixes.py b/tests/api_resources/addressing/test_prefixes.py
index 69b0b61d288..8bc287d7a3a 100644
--- a/tests/api_resources/addressing/test_prefixes.py
+++ b/tests/api_resources/addressing/test_prefixes.py
@@ -10,8 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef167
from cloudflare.types.addressing import (
- PrefixDeleteResponse,
AddressingIpamPrefixes,
)
@@ -125,7 +125,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], prefix, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -139,7 +139,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
prefix = response.parse()
- assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], prefix, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -153,7 +153,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
prefix = response.parse()
- assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], prefix, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -391,7 +391,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], prefix, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -405,7 +405,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
prefix = await response.parse()
- assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], prefix, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -419,7 +419,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
prefix = await response.parse()
- assert_matches_type(Optional[PrefixDeleteResponse], prefix, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], prefix, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/alerting/destinations/test_pagerduty.py b/tests/api_resources/alerting/destinations/test_pagerduty.py
index 07b1cb56436..e354346dbc2 100644
--- a/tests/api_resources/alerting/destinations/test_pagerduty.py
+++ b/tests/api_resources/alerting/destinations/test_pagerduty.py
@@ -9,12 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.alerting.destinations import (
- PagerdutyGetResponse,
- PagerdutyLinkResponse,
- PagerdutyCreateResponse,
- PagerdutyDeleteResponse,
-)
+from cloudflare.types.shared import UnnamedSchemaRef167
+from cloudflare.types.alerting.destinations import PagerdutyGetResponse, PagerdutyLinkResponse, PagerdutyCreateResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -70,7 +66,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
pagerduty = client.alerting.destinations.pagerduty.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], pagerduty, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -82,7 +78,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerduty = response.parse()
- assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], pagerduty, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -94,7 +90,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerduty = response.parse()
- assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], pagerduty, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -252,7 +248,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
pagerduty = await async_client.alerting.destinations.pagerduty.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], pagerduty, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -264,7 +260,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerduty = await response.parse()
- assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], pagerduty, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -276,7 +272,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerduty = await response.parse()
- assert_matches_type(Optional[PagerdutyDeleteResponse], pagerduty, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], pagerduty, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/alerting/destinations/test_webhooks.py b/tests/api_resources/alerting/destinations/test_webhooks.py
index 315b3c36ea4..58a3d0d41ec 100644
--- a/tests/api_resources/alerting/destinations/test_webhooks.py
+++ b/tests/api_resources/alerting/destinations/test_webhooks.py
@@ -10,10 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef167
from cloudflare.types.alerting.destinations import (
AlertingWebhooks,
WebhookCreateResponse,
- WebhookDeleteResponse,
WebhookUpdateResponse,
)
@@ -207,7 +207,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"b115d5ec-15c6-41ee-8b76-92c449b5227b",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -220,7 +220,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = response.parse()
- assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = response.parse()
- assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], webhook, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -492,7 +492,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"b115d5ec-15c6-41ee-8b76-92c449b5227b",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -505,7 +505,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = await response.parse()
- assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -518,7 +518,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = await response.parse()
- assert_matches_type(Optional[WebhookDeleteResponse], webhook, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], webhook, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/alerting/test_available_alerts.py b/tests/api_resources/alerting/test_available_alerts.py
index c3c5c6dc2fe..d08fbd7953d 100644
--- a/tests/api_resources/alerting/test_available_alerts.py
+++ b/tests/api_resources/alerting/test_available_alerts.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.alerting import AvailableAlertListResponse
+from cloudflare.types.shared import UnnamedSchemaRef116
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -23,7 +23,7 @@ def test_method_list(self, client: Cloudflare) -> None:
available_alert = client.alerting.available_alerts.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[AvailableAlertListResponse], available_alert, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef116], available_alert, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -35,7 +35,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
available_alert = response.parse()
- assert_matches_type(Optional[AvailableAlertListResponse], available_alert, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef116], available_alert, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -47,7 +47,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
available_alert = response.parse()
- assert_matches_type(Optional[AvailableAlertListResponse], available_alert, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef116], available_alert, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -69,7 +69,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
available_alert = await async_client.alerting.available_alerts.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[AvailableAlertListResponse], available_alert, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef116], available_alert, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -81,7 +81,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
available_alert = await response.parse()
- assert_matches_type(Optional[AvailableAlertListResponse], available_alert, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef116], available_alert, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -93,7 +93,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
available_alert = await response.parse()
- assert_matches_type(Optional[AvailableAlertListResponse], available_alert, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef116], available_alert, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/alerting/test_policies.py b/tests/api_resources/alerting/test_policies.py
index 3668367e996..f79612d6358 100644
--- a/tests/api_resources/alerting/test_policies.py
+++ b/tests/api_resources/alerting/test_policies.py
@@ -10,10 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef167
from cloudflare.types.alerting import (
AlertingPolicies,
PolicyCreateResponse,
- PolicyDeleteResponse,
PolicyUpdateResponse,
)
@@ -317,7 +317,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"0da2b59e-f118-439d-8097-bdfb215203c9",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], policy, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -330,7 +330,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
policy = response.parse()
- assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], policy, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -343,7 +343,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
policy = response.parse()
- assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], policy, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -712,7 +712,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"0da2b59e-f118-439d-8097-bdfb215203c9",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], policy, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -725,7 +725,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
policy = await response.parse()
- assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], policy, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -738,7 +738,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
policy = await response.parse()
- assert_matches_type(Optional[PolicyDeleteResponse], policy, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], policy, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cloudforce_one/requests/test_message.py b/tests/api_resources/cloudforce_one/requests/test_message.py
index 6188545183d..ad14203df3d 100644
--- a/tests/api_resources/cloudforce_one/requests/test_message.py
+++ b/tests/api_resources/cloudforce_one/requests/test_message.py
@@ -10,9 +10,9 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare._utils import parse_datetime
+from cloudflare.types.shared import UnnamedSchemaRef171
from cloudflare.types.cloudforce_one.requests import (
MessageGetResponse,
- MessageDeleteResponse,
CloudforceOneRequestMessageItem,
)
@@ -164,7 +164,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
request_identifier="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
)
- assert_matches_type(MessageDeleteResponse, message, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, message, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -178,7 +178,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
message = response.parse()
- assert_matches_type(MessageDeleteResponse, message, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, message, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -192,7 +192,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
message = response.parse()
- assert_matches_type(MessageDeleteResponse, message, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, message, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -436,7 +436,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
request_identifier="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
)
- assert_matches_type(MessageDeleteResponse, message, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, message, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -450,7 +450,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
message = await response.parse()
- assert_matches_type(MessageDeleteResponse, message, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, message, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -464,7 +464,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
message = await response.parse()
- assert_matches_type(MessageDeleteResponse, message, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, message, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cloudforce_one/requests/test_priority.py b/tests/api_resources/cloudforce_one/requests/test_priority.py
index 4e5af43cf25..b3aa45a1451 100644
--- a/tests/api_resources/cloudforce_one/requests/test_priority.py
+++ b/tests/api_resources/cloudforce_one/requests/test_priority.py
@@ -9,9 +9,9 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
+from cloudflare.types.shared import UnnamedSchemaRef171
from cloudflare.types.cloudforce_one import CloudforceOneQuota, CloudforceOneRequestItem
from cloudflare.types.cloudforce_one.requests import (
- PriorityDeleteResponse,
CloudforceOnePriorityItem,
)
@@ -158,7 +158,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, priority, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -171,7 +171,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
priority = response.parse()
- assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, priority, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -184,7 +184,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
priority = response.parse()
- assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, priority, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -438,7 +438,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, priority, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -451,7 +451,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
priority = await response.parse()
- assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, priority, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -464,7 +464,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
priority = await response.parse()
- assert_matches_type(PriorityDeleteResponse, priority, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, priority, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cloudforce_one/test_requests.py b/tests/api_resources/cloudforce_one/test_requests.py
index 999e7f97b71..52fd89e6d41 100644
--- a/tests/api_resources/cloudforce_one/test_requests.py
+++ b/tests/api_resources/cloudforce_one/test_requests.py
@@ -11,9 +11,9 @@
from tests.utils import assert_matches_type
from cloudflare._utils import parse_datetime
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.shared import UnnamedSchemaRef171
from cloudflare.types.cloudforce_one import (
CloudforceOneQuota,
- RequestDeleteResponse,
CloudforceOneRequestItem,
CloudforceOneRequestTypes,
CloudforceOneRequestListItem,
@@ -222,7 +222,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(RequestDeleteResponse, request, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, request, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -235,7 +235,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
request = response.parse()
- assert_matches_type(RequestDeleteResponse, request, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, request, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -248,7 +248,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
request = response.parse()
- assert_matches_type(RequestDeleteResponse, request, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, request, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -645,7 +645,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(RequestDeleteResponse, request, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, request, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -658,7 +658,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
request = await response.parse()
- assert_matches_type(RequestDeleteResponse, request, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, request, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -671,7 +671,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
request = await response.parse()
- assert_matches_type(RequestDeleteResponse, request, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, request, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/d1/test_database.py b/tests/api_resources/d1/test_database.py
index 0fab88b9fd1..e008fc88787 100644
--- a/tests/api_resources/d1/test_database.py
+++ b/tests/api_resources/d1/test_database.py
@@ -13,9 +13,9 @@
D1CreateDatabase,
D1DatabaseDetails,
DatabaseQueryResponse,
- DatabaseDeleteResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.shared import UnnamedSchemaRef173
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -129,7 +129,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[DatabaseDeleteResponse], database, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], database, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -142,7 +142,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
database = response.parse()
- assert_matches_type(Optional[DatabaseDeleteResponse], database, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], database, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -155,7 +155,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
database = response.parse()
- assert_matches_type(Optional[DatabaseDeleteResponse], database, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], database, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -404,7 +404,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[DatabaseDeleteResponse], database, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], database, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -417,7 +417,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
database = await response.parse()
- assert_matches_type(Optional[DatabaseDeleteResponse], database, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], database, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -430,7 +430,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
database = await response.parse()
- assert_matches_type(Optional[DatabaseDeleteResponse], database, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], database, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/firewall/test_access_rules.py b/tests/api_resources/firewall/test_access_rules.py
index c9b0ae0cb22..9cd8e0ae26f 100644
--- a/tests/api_resources/firewall/test_access_rules.py
+++ b/tests/api_resources/firewall/test_access_rules.py
@@ -10,10 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.shared import UnnamedSchemaRef173
from cloudflare.types.firewall import (
- AccessRuleGetResponse,
- AccessRuleEditResponse,
- AccessRuleCreateResponse,
AccessRuleDeleteResponse,
)
@@ -32,7 +30,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[AccessRuleCreateResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -47,7 +45,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
zone_id="string",
notes="This rule is enabled because of an event that occurred on date X.",
)
- assert_matches_type(Optional[AccessRuleCreateResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -62,7 +60,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = response.parse()
- assert_matches_type(Optional[AccessRuleCreateResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -77,7 +75,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = response.parse()
- assert_matches_type(Optional[AccessRuleCreateResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -261,7 +259,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[AccessRuleEditResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -277,7 +275,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
zone_id="string",
notes="This rule is enabled because of an event that occurred on date X.",
)
- assert_matches_type(Optional[AccessRuleEditResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -293,7 +291,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = response.parse()
- assert_matches_type(Optional[AccessRuleEditResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -309,7 +307,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = response.parse()
- assert_matches_type(Optional[AccessRuleEditResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -342,7 +340,7 @@ def test_method_get(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[AccessRuleGetResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -352,7 +350,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[AccessRuleGetResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -366,7 +364,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = response.parse()
- assert_matches_type(Optional[AccessRuleGetResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -380,7 +378,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = response.parse()
- assert_matches_type(Optional[AccessRuleGetResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -414,7 +412,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[AccessRuleCreateResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -429,7 +427,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
zone_id="string",
notes="This rule is enabled because of an event that occurred on date X.",
)
- assert_matches_type(Optional[AccessRuleCreateResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -444,7 +442,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = await response.parse()
- assert_matches_type(Optional[AccessRuleCreateResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -459,7 +457,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = await response.parse()
- assert_matches_type(Optional[AccessRuleCreateResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -643,7 +641,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[AccessRuleEditResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -659,7 +657,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
zone_id="string",
notes="This rule is enabled because of an event that occurred on date X.",
)
- assert_matches_type(Optional[AccessRuleEditResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -675,7 +673,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = await response.parse()
- assert_matches_type(Optional[AccessRuleEditResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -691,7 +689,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = await response.parse()
- assert_matches_type(Optional[AccessRuleEditResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -724,7 +722,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[AccessRuleGetResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -734,7 +732,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[AccessRuleGetResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -748,7 +746,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = await response.parse()
- assert_matches_type(Optional[AccessRuleGetResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -762,7 +760,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
access_rule = await response.parse()
- assert_matches_type(Optional[AccessRuleGetResponse], access_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/firewall/test_ua_rules.py b/tests/api_resources/firewall/test_ua_rules.py
index 52b9554c76d..961bad4456f 100644
--- a/tests/api_resources/firewall/test_ua_rules.py
+++ b/tests/api_resources/firewall/test_ua_rules.py
@@ -10,12 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.shared import UnnamedSchemaRef173
from cloudflare.types.firewall import (
- UARuleGetResponse,
UARuleListResponse,
- UARuleCreateResponse,
UARuleDeleteResponse,
- UARuleUpdateResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -31,7 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UARuleCreateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -44,7 +42,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = response.parse()
- assert_matches_type(Optional[UARuleCreateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -57,7 +55,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = response.parse()
- assert_matches_type(Optional[UARuleCreateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -78,7 +76,7 @@ def test_method_update(self, client: Cloudflare) -> None:
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UARuleUpdateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -92,7 +90,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = response.parse()
- assert_matches_type(Optional[UARuleUpdateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -106,7 +104,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = response.parse()
- assert_matches_type(Optional[UARuleUpdateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -246,7 +244,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UARuleGetResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -259,7 +257,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = response.parse()
- assert_matches_type(Optional[UARuleGetResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -272,7 +270,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = response.parse()
- assert_matches_type(Optional[UARuleGetResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -302,7 +300,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UARuleCreateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -315,7 +313,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = await response.parse()
- assert_matches_type(Optional[UARuleCreateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -328,7 +326,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = await response.parse()
- assert_matches_type(Optional[UARuleCreateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -349,7 +347,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[UARuleUpdateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -363,7 +361,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = await response.parse()
- assert_matches_type(Optional[UARuleUpdateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -377,7 +375,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = await response.parse()
- assert_matches_type(Optional[UARuleUpdateResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -517,7 +515,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[UARuleGetResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -530,7 +528,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = await response.parse()
- assert_matches_type(Optional[UARuleGetResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -543,7 +541,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ua_rule = await response.parse()
- assert_matches_type(Optional[UARuleGetResponse], ua_rule, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/hostnames/settings/test_tls.py b/tests/api_resources/hostnames/settings/test_tls.py
index 36b390abae3..c0b7a137525 100644
--- a/tests/api_resources/hostnames/settings/test_tls.py
+++ b/tests/api_resources/hostnames/settings/test_tls.py
@@ -9,7 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.hostnames.settings import HostnameStting, TLSGetResponse, HostnameSettingDelete
+from cloudflare.types.shared import UnnamedSchemaRef65
+from cloudflare.types.hostnames.settings import TLSGetResponse, HostnameSettingDelete
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +27,7 @@ def test_method_update(self, client: Cloudflare) -> None:
setting_id="ciphers",
value=["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"],
)
- assert_matches_type(HostnameStting, tls, path=["response"])
+ assert_matches_type(UnnamedSchemaRef65, tls, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -41,7 +42,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tls = response.parse()
- assert_matches_type(HostnameStting, tls, path=["response"])
+ assert_matches_type(UnnamedSchemaRef65, tls, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -56,7 +57,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tls = response.parse()
- assert_matches_type(HostnameStting, tls, path=["response"])
+ assert_matches_type(UnnamedSchemaRef65, tls, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -195,7 +196,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
setting_id="ciphers",
value=["ECDHE-RSA-AES128-GCM-SHA256", "AES128-GCM-SHA256"],
)
- assert_matches_type(HostnameStting, tls, path=["response"])
+ assert_matches_type(UnnamedSchemaRef65, tls, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -210,7 +211,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tls = await response.parse()
- assert_matches_type(HostnameStting, tls, path=["response"])
+ assert_matches_type(UnnamedSchemaRef65, tls, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -225,7 +226,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tls = await response.parse()
- assert_matches_type(HostnameStting, tls, path=["response"])
+ assert_matches_type(UnnamedSchemaRef65, tls, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/hyperdrive/test_configs.py b/tests/api_resources/hyperdrive/test_configs.py
index 6839d6d1b25..104ea51410a 100644
--- a/tests/api_resources/hyperdrive/test_configs.py
+++ b/tests/api_resources/hyperdrive/test_configs.py
@@ -10,12 +10,12 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef173
from cloudflare.types.hyperdrive import (
ConfigGetResponse,
ConfigEditResponse,
ConfigListResponse,
ConfigCreateResponse,
- ConfigDeleteResponse,
ConfigUpdateResponse,
)
@@ -186,7 +186,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -199,7 +199,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = response.parse()
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -212,7 +212,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = response.parse()
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], config, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -510,7 +510,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -523,7 +523,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = await response.parse()
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -536,7 +536,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = await response.parse()
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], config, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/logpush/test_jobs.py b/tests/api_resources/logpush/test_jobs.py
index 674038ac83c..a7366aedf7a 100644
--- a/tests/api_resources/logpush/test_jobs.py
+++ b/tests/api_resources/logpush/test_jobs.py
@@ -10,7 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.logpush import JobDeleteResponse
+from cloudflare.types.shared import UnnamedSchemaRef161
from cloudflare.types.logpush.datasets import LogpushJob
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -262,7 +262,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -273,7 +273,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -288,7 +288,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
job = response.parse()
- assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -303,7 +303,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
job = response.parse()
- assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], job, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -640,7 +640,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -651,7 +651,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
account_id="string",
zone_id="string",
)
- assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -666,7 +666,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
job = await response.parse()
- assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], job, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -681,7 +681,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
job = await response.parse()
- assert_matches_type(Optional[JobDeleteResponse], job, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], job, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/logs/control/cmb/test_config.py b/tests/api_resources/logs/control/cmb/test_config.py
index 556af0c050d..ebd32858530 100644
--- a/tests/api_resources/logs/control/cmb/test_config.py
+++ b/tests/api_resources/logs/control/cmb/test_config.py
@@ -9,10 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.logs.control.cmb import (
- CmbConfig,
- ConfigDeleteResponse,
-)
+from cloudflare.types.shared import UnnamedSchemaRef161
+from cloudflare.types.logs.control.cmb import CmbConfig
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -78,7 +76,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -91,7 +89,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = response.parse()
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -104,7 +102,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = response.parse()
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], config, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -221,7 +219,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -234,7 +232,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = await response.parse()
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -247,7 +245,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
config = await response.parse()
- assert_matches_type(Optional[ConfigDeleteResponse], config, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef161], config, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/queues/test_consumers.py b/tests/api_resources/queues/test_consumers.py
index 20b325cd82f..e831cabfeb4 100644
--- a/tests/api_resources/queues/test_consumers.py
+++ b/tests/api_resources/queues/test_consumers.py
@@ -12,9 +12,9 @@
from cloudflare.types.queues import (
ConsumerGetResponse,
ConsumerCreateResponse,
- ConsumerDeleteResponse,
ConsumerUpdateResponse,
)
+from cloudflare.types.shared import UnnamedSchemaRef167
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -233,7 +233,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], consumer, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -248,7 +248,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
consumer = response.parse()
- assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], consumer, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -263,7 +263,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
consumer = response.parse()
- assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], consumer, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -561,7 +561,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
queue_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], consumer, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -576,7 +576,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
consumer = await response.parse()
- assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], consumer, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -591,7 +591,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
consumer = await response.parse()
- assert_matches_type(Optional[ConsumerDeleteResponse], consumer, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], consumer, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/spectrum/test_apps.py b/tests/api_resources/spectrum/test_apps.py
index bb84325f08d..baf6d870c20 100644
--- a/tests/api_resources/spectrum/test_apps.py
+++ b/tests/api_resources/spectrum/test_apps.py
@@ -10,8 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.shared import UnnamedSchemaRef173
from cloudflare.types.spectrum import (
- AppGetResponse,
AppCreateResponse,
AppDeleteResponse,
AppUpdateResponse,
@@ -328,7 +328,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
zone="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[AppGetResponse], app, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], app, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -341,7 +341,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
app = response.parse()
- assert_matches_type(Optional[AppGetResponse], app, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], app, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -354,7 +354,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
app = response.parse()
- assert_matches_type(Optional[AppGetResponse], app, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], app, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -682,7 +682,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
zone="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[AppGetResponse], app, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], app, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -695,7 +695,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
app = await response.parse()
- assert_matches_type(Optional[AppGetResponse], app, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], app, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -708,7 +708,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
app = await response.parse()
- assert_matches_type(Optional[AppGetResponse], app, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], app, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_watermarks.py b/tests/api_resources/stream/test_watermarks.py
index 640b7b33da2..c32c8313abf 100644
--- a/tests/api_resources/stream/test_watermarks.py
+++ b/tests/api_resources/stream/test_watermarks.py
@@ -10,11 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef49
from cloudflare.types.stream import (
StreamWatermarks,
WatermarkGetResponse,
WatermarkCreateResponse,
- WatermarkDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -133,7 +133,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -147,7 +147,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = response.parse()
- assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -161,7 +161,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = response.parse()
- assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, watermark, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -348,7 +348,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -362,7 +362,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = await response.parse()
- assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -376,7 +376,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = await response.parse()
- assert_matches_type(WatermarkDeleteResponse, watermark, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, watermark, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_dnssec.py b/tests/api_resources/test_dnssec.py
index 6294090c744..c854fe5ce79 100644
--- a/tests/api_resources/test_dnssec.py
+++ b/tests/api_resources/test_dnssec.py
@@ -9,7 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types import DNSSEC, DNSSECDeleteResponse
+from cloudflare.types import DNSSEC
+from cloudflare.types.shared import UnnamedSchemaRef49
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +25,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, dnssec, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,7 +38,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
dnssec = response.parse()
- assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, dnssec, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +51,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
dnssec = response.parse()
- assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, dnssec, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -169,7 +170,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, dnssec, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -182,7 +183,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
dnssec = await response.parse()
- assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, dnssec, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -195,7 +196,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
dnssec = await response.parse()
- assert_matches_type(DNSSECDeleteResponse, dnssec, path=["response"])
+ assert_matches_type(UnnamedSchemaRef49, dnssec, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_queues.py b/tests/api_resources/test_queues.py
index 09a971a7f1c..3dc04598cdf 100644
--- a/tests/api_resources/test_queues.py
+++ b/tests/api_resources/test_queues.py
@@ -13,9 +13,9 @@
QueueGetResponse,
QueueListResponse,
QueueCreateResponse,
- QueueDeleteResponse,
QueueUpdateResponse,
)
+from cloudflare.types.shared import UnnamedSchemaRef167
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -176,7 +176,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], queue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -190,7 +190,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
queue = response.parse()
- assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], queue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -204,7 +204,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
queue = response.parse()
- assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], queue, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -434,7 +434,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], queue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -448,7 +448,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
queue = await response.parse()
- assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], queue, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -462,7 +462,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
queue = await response.parse()
- assert_matches_type(Optional[QueueDeleteResponse], queue, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], queue, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_rate_limits.py b/tests/api_resources/test_rate_limits.py
index 4196c24afe6..a86a043e8ca 100644
--- a/tests/api_resources/test_rate_limits.py
+++ b/tests/api_resources/test_rate_limits.py
@@ -10,13 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types import (
- RateLimitGetResponse,
- RateLimitEditResponse,
RateLimitListResponse,
- RateLimitCreateResponse,
RateLimitDeleteResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.shared import UnnamedSchemaRef173
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -31,7 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[RateLimitCreateResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -44,7 +42,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = response.parse()
- assert_matches_type(Optional[RateLimitCreateResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -57,7 +55,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = response.parse()
- assert_matches_type(Optional[RateLimitCreateResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -187,7 +185,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[RateLimitEditResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -201,7 +199,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = response.parse()
- assert_matches_type(Optional[RateLimitEditResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -215,7 +213,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = response.parse()
- assert_matches_type(Optional[RateLimitEditResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -243,7 +241,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RateLimitGetResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -256,7 +254,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = response.parse()
- assert_matches_type(Optional[RateLimitGetResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -269,7 +267,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = response.parse()
- assert_matches_type(Optional[RateLimitGetResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -299,7 +297,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[RateLimitCreateResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -312,7 +310,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = await response.parse()
- assert_matches_type(Optional[RateLimitCreateResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -325,7 +323,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = await response.parse()
- assert_matches_type(Optional[RateLimitCreateResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -455,7 +453,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(Optional[RateLimitEditResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -469,7 +467,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = await response.parse()
- assert_matches_type(Optional[RateLimitEditResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -483,7 +481,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = await response.parse()
- assert_matches_type(Optional[RateLimitEditResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -511,7 +509,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[RateLimitGetResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -524,7 +522,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = await response.parse()
- assert_matches_type(Optional[RateLimitGetResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -537,7 +535,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rate_limit = await response.parse()
- assert_matches_type(Optional[RateLimitGetResponse], rate_limit, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_snippets.py b/tests/api_resources/test_snippets.py
index a47c07cf315..1f583ebbbdc 100644
--- a/tests/api_resources/test_snippets.py
+++ b/tests/api_resources/test_snippets.py
@@ -9,8 +9,9 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types import Snippet, SnippetDeleteResponse
+from cloudflare.types import Snippet
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef171
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -130,7 +131,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"snippet_name_01",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, snippet, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -143,7 +144,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
snippet = response.parse()
- assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, snippet, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -156,7 +157,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
snippet = response.parse()
- assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, snippet, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -343,7 +344,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"snippet_name_01",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, snippet, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -356,7 +357,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
snippet = await response.parse()
- assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, snippet, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -369,7 +370,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
snippet = await response.parse()
- assert_matches_type(SnippetDeleteResponse, snippet, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, snippet, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_subscriptions.py b/tests/api_resources/test_subscriptions.py
index cc29eb2155e..b017964b607 100644
--- a/tests/api_resources/test_subscriptions.py
+++ b/tests/api_resources/test_subscriptions.py
@@ -13,10 +13,10 @@
SubscriptionGetResponse,
SubscriptionListResponse,
SubscriptionCreateResponse,
- SubscriptionDeleteResponse,
SubscriptionUpdateResponse,
)
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef3
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -251,7 +251,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -265,7 +265,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -279,7 +279,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -575,7 +575,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -589,7 +589,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -603,7 +603,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_warp_connector.py b/tests/api_resources/test_warp_connector.py
index 9a8ad00e596..835f7b83b7f 100644
--- a/tests/api_resources/test_warp_connector.py
+++ b/tests/api_resources/test_warp_connector.py
@@ -10,15 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types import (
- WARPConnectorGetResponse,
- WARPConnectorEditResponse,
- WARPConnectorListResponse,
WARPConnectorTokenResponse,
- WARPConnectorCreateResponse,
- WARPConnectorDeleteResponse,
)
from cloudflare._utils import parse_datetime
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.shared import UnnamedSchemaRef123
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -33,7 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
name="blog",
)
- assert_matches_type(WARPConnectorCreateResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -46,7 +42,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(WARPConnectorCreateResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -59,7 +55,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(WARPConnectorCreateResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -78,7 +74,7 @@ def test_method_list(self, client: Cloudflare) -> None:
warp_connector = client.warp_connector.list(
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(SyncV4PagePaginationArray[WARPConnectorListResponse], warp_connector, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[UnnamedSchemaRef123], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -96,7 +92,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
- assert_matches_type(SyncV4PagePaginationArray[WARPConnectorListResponse], warp_connector, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[UnnamedSchemaRef123], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -108,7 +104,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(SyncV4PagePaginationArray[WARPConnectorListResponse], warp_connector, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[UnnamedSchemaRef123], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -120,7 +116,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(SyncV4PagePaginationArray[WARPConnectorListResponse], warp_connector, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[UnnamedSchemaRef123], warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -140,7 +136,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(WARPConnectorDeleteResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -154,7 +150,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(WARPConnectorDeleteResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -168,7 +164,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(WARPConnectorDeleteResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -196,7 +192,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(WARPConnectorEditResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -207,7 +203,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
name="blog",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
)
- assert_matches_type(WARPConnectorEditResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -220,7 +216,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(WARPConnectorEditResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -233,7 +229,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(WARPConnectorEditResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -259,7 +255,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(WARPConnectorGetResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -272,7 +268,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(WARPConnectorGetResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -285,7 +281,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = response.parse()
- assert_matches_type(WARPConnectorGetResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -367,7 +363,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
name="blog",
)
- assert_matches_type(WARPConnectorCreateResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -380,7 +376,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(WARPConnectorCreateResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -393,7 +389,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(WARPConnectorCreateResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -412,7 +408,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
warp_connector = await async_client.warp_connector.list(
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(AsyncV4PagePaginationArray[WARPConnectorListResponse], warp_connector, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[UnnamedSchemaRef123], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -430,7 +426,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
- assert_matches_type(AsyncV4PagePaginationArray[WARPConnectorListResponse], warp_connector, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[UnnamedSchemaRef123], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -442,7 +438,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(AsyncV4PagePaginationArray[WARPConnectorListResponse], warp_connector, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[UnnamedSchemaRef123], warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -454,9 +450,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(
- AsyncV4PagePaginationArray[WARPConnectorListResponse], warp_connector, path=["response"]
- )
+ assert_matches_type(AsyncV4PagePaginationArray[UnnamedSchemaRef123], warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -476,7 +470,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(WARPConnectorDeleteResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -490,7 +484,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(WARPConnectorDeleteResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -504,7 +498,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(WARPConnectorDeleteResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -532,7 +526,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(WARPConnectorEditResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -543,7 +537,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
name="blog",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
)
- assert_matches_type(WARPConnectorEditResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -556,7 +550,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(WARPConnectorEditResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -569,7 +563,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(WARPConnectorEditResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -595,7 +589,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(WARPConnectorGetResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -608,7 +602,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(WARPConnectorGetResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -621,7 +615,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
warp_connector = await response.parse()
- assert_matches_type(WARPConnectorGetResponse, warp_connector, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, warp_connector, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/user/test_subscriptions.py b/tests/api_resources/user/test_subscriptions.py
index 68f8a80684d..1b1ab2ca84c 100644
--- a/tests/api_resources/user/test_subscriptions.py
+++ b/tests/api_resources/user/test_subscriptions.py
@@ -12,9 +12,9 @@
from cloudflare.types.user import (
SubscriptionGetResponse,
SubscriptionEditResponse,
- SubscriptionDeleteResponse,
SubscriptionUpdateResponse,
)
+from cloudflare.types.shared import UnnamedSchemaRef3
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -111,7 +111,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"506e3185e9c882d175a2d0cb0093d9f2",
body={},
)
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -124,7 +124,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -137,7 +137,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -353,7 +353,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"506e3185e9c882d175a2d0cb0093d9f2",
body={},
)
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -366,7 +366,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -379,7 +379,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(SubscriptionDeleteResponse, subscription, path=["response"])
+ assert_matches_type(UnnamedSchemaRef3, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/vectorize/test_indexes.py b/tests/api_resources/vectorize/test_indexes.py
index 77c04f69e19..0d3eb1cc3f6 100644
--- a/tests/api_resources/vectorize/test_indexes.py
+++ b/tests/api_resources/vectorize/test_indexes.py
@@ -10,8 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef173
from cloudflare.types.vectorize import (
- IndexDeleteResponse,
VectorizeIndexQuery,
VectorizeCreateIndex,
VectorizeIndexInsert,
@@ -192,7 +192,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[IndexDeleteResponse], index, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], index, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -205,7 +205,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
index = response.parse()
- assert_matches_type(Optional[IndexDeleteResponse], index, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], index, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -218,7 +218,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
index = response.parse()
- assert_matches_type(Optional[IndexDeleteResponse], index, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], index, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -763,7 +763,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[IndexDeleteResponse], index, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], index, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -776,7 +776,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
index = await response.parse()
- assert_matches_type(Optional[IndexDeleteResponse], index, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], index, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -789,7 +789,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
index = await response.parse()
- assert_matches_type(Optional[IndexDeleteResponse], index, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], index, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/workers/scripts/test_tail.py b/tests/api_resources/workers/scripts/test_tail.py
index 819ac972cf9..546fca2b0ab 100644
--- a/tests/api_resources/workers/scripts/test_tail.py
+++ b/tests/api_resources/workers/scripts/test_tail.py
@@ -9,11 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.workers.scripts import (
- TailGetResponse,
- TailCreateResponse,
- TailDeleteResponse,
-)
+from cloudflare.types.shared import UnnamedSchemaRef171
+from cloudflare.types.workers.scripts import TailGetResponse, TailCreateResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -87,7 +84,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
script_name="this-is_my_script-01",
body={},
)
- assert_matches_type(TailDeleteResponse, tail, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, tail, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -102,7 +99,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tail = response.parse()
- assert_matches_type(TailDeleteResponse, tail, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, tail, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -117,7 +114,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tail = response.parse()
- assert_matches_type(TailDeleteResponse, tail, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, tail, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -270,7 +267,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
script_name="this-is_my_script-01",
body={},
)
- assert_matches_type(TailDeleteResponse, tail, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, tail, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -285,7 +282,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tail = await response.parse()
- assert_matches_type(TailDeleteResponse, tail, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, tail, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -300,7 +297,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tail = await response.parse()
- assert_matches_type(TailDeleteResponse, tail, path=["response"])
+ assert_matches_type(UnnamedSchemaRef171, tail, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/devices/posture/test_integrations.py b/tests/api_resources/zero_trust/devices/posture/test_integrations.py
index be1d8dd4c29..0c1bc24516d 100644
--- a/tests/api_resources/zero_trust/devices/posture/test_integrations.py
+++ b/tests/api_resources/zero_trust/devices/posture/test_integrations.py
@@ -10,9 +10,9 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
+from cloudflare.types.shared import UnnamedSchemaRef173
from cloudflare.types.zero_trust.devices.posture import (
DevicePostureIntegrations,
- IntegrationDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -166,7 +166,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(Optional[IntegrationDeleteResponse], integration, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], integration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -180,7 +180,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
integration = response.parse()
- assert_matches_type(Optional[IntegrationDeleteResponse], integration, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], integration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -194,7 +194,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
integration = response.parse()
- assert_matches_type(Optional[IntegrationDeleteResponse], integration, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], integration, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -486,7 +486,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(Optional[IntegrationDeleteResponse], integration, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], integration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -500,7 +500,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
integration = await response.parse()
- assert_matches_type(Optional[IntegrationDeleteResponse], integration, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], integration, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -514,7 +514,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
integration = await response.parse()
- assert_matches_type(Optional[IntegrationDeleteResponse], integration, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], integration, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/devices/test_revoke.py b/tests/api_resources/zero_trust/devices/test_revoke.py
index c31247f4e4b..4ccc5d675c9 100644
--- a/tests/api_resources/zero_trust/devices/test_revoke.py
+++ b/tests/api_resources/zero_trust/devices/test_revoke.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.zero_trust.devices import RevokeCreateResponse
+from cloudflare.types.shared import UnnamedSchemaRef173
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -28,7 +28,7 @@ def test_method_create(self, client: Cloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
],
)
- assert_matches_type(Optional[RevokeCreateResponse], revoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], revoke, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -45,7 +45,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
revoke = response.parse()
- assert_matches_type(Optional[RevokeCreateResponse], revoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], revoke, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -62,7 +62,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
revoke = response.parse()
- assert_matches_type(Optional[RevokeCreateResponse], revoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], revoke, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -94,7 +94,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
],
)
- assert_matches_type(Optional[RevokeCreateResponse], revoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], revoke, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -111,7 +111,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
revoke = await response.parse()
- assert_matches_type(Optional[RevokeCreateResponse], revoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], revoke, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -128,7 +128,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
revoke = await response.parse()
- assert_matches_type(Optional[RevokeCreateResponse], revoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], revoke, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/devices/test_unrevoke.py b/tests/api_resources/zero_trust/devices/test_unrevoke.py
index 17c702c7536..2987e36d0f7 100644
--- a/tests/api_resources/zero_trust/devices/test_unrevoke.py
+++ b/tests/api_resources/zero_trust/devices/test_unrevoke.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.zero_trust.devices import UnrevokeCreateResponse
+from cloudflare.types.shared import UnnamedSchemaRef173
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -28,7 +28,7 @@ def test_method_create(self, client: Cloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
],
)
- assert_matches_type(Optional[UnrevokeCreateResponse], unrevoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], unrevoke, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -45,7 +45,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
unrevoke = response.parse()
- assert_matches_type(Optional[UnrevokeCreateResponse], unrevoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], unrevoke, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -62,7 +62,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
unrevoke = response.parse()
- assert_matches_type(Optional[UnrevokeCreateResponse], unrevoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], unrevoke, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -94,7 +94,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
],
)
- assert_matches_type(Optional[UnrevokeCreateResponse], unrevoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], unrevoke, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -111,7 +111,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
unrevoke = await response.parse()
- assert_matches_type(Optional[UnrevokeCreateResponse], unrevoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], unrevoke, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -128,7 +128,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
unrevoke = await response.parse()
- assert_matches_type(Optional[UnrevokeCreateResponse], unrevoke, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], unrevoke, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/dlp/profiles/test_custom.py b/tests/api_resources/zero_trust/dlp/profiles/test_custom.py
index dc79083fc4c..ecfdaac8073 100644
--- a/tests/api_resources/zero_trust/dlp/profiles/test_custom.py
+++ b/tests/api_resources/zero_trust/dlp/profiles/test_custom.py
@@ -9,10 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
+from cloudflare.types.shared import UnnamedSchemaRef169
from cloudflare.types.zero_trust.dlp.profiles import (
DLPCustomProfile,
CustomCreateResponse,
- CustomDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -174,7 +174,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(CustomDeleteResponse, custom, path=["response"])
+ assert_matches_type(UnnamedSchemaRef169, custom, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -188,7 +188,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom = response.parse()
- assert_matches_type(CustomDeleteResponse, custom, path=["response"])
+ assert_matches_type(UnnamedSchemaRef169, custom, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -202,7 +202,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom = response.parse()
- assert_matches_type(CustomDeleteResponse, custom, path=["response"])
+ assert_matches_type(UnnamedSchemaRef169, custom, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -432,7 +432,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(CustomDeleteResponse, custom, path=["response"])
+ assert_matches_type(UnnamedSchemaRef169, custom, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -446,7 +446,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom = await response.parse()
- assert_matches_type(CustomDeleteResponse, custom, path=["response"])
+ assert_matches_type(UnnamedSchemaRef169, custom, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -460,7 +460,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom = await response.parse()
- assert_matches_type(CustomDeleteResponse, custom, path=["response"])
+ assert_matches_type(UnnamedSchemaRef169, custom, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/test_devices.py b/tests/api_resources/zero_trust/test_devices.py
index bdc426140f6..74916833d35 100644
--- a/tests/api_resources/zero_trust/test_devices.py
+++ b/tests/api_resources/zero_trust/test_devices.py
@@ -10,7 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.zero_trust import ZeroTrustDevices, DeviceGetResponse
+from cloudflare.types.shared import UnnamedSchemaRef173
+from cloudflare.types.zero_trust import ZeroTrustDevices
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -67,7 +68,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(Optional[DeviceGetResponse], device, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], device, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -80,7 +81,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
device = response.parse()
- assert_matches_type(Optional[DeviceGetResponse], device, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], device, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -93,7 +94,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
device = response.parse()
- assert_matches_type(Optional[DeviceGetResponse], device, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], device, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -165,7 +166,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(Optional[DeviceGetResponse], device, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], device, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -178,7 +179,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
device = await response.parse()
- assert_matches_type(Optional[DeviceGetResponse], device, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], device, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -191,7 +192,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
device = await response.parse()
- assert_matches_type(Optional[DeviceGetResponse], device, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef173], device, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/test_tunnels.py b/tests/api_resources/zero_trust/test_tunnels.py
index 38c791f3ad9..a96de42759e 100644
--- a/tests/api_resources/zero_trust/test_tunnels.py
+++ b/tests/api_resources/zero_trust/test_tunnels.py
@@ -11,10 +11,9 @@
from tests.utils import assert_matches_type
from cloudflare._utils import parse_datetime
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
+from cloudflare.types.shared import UnnamedSchemaRef123
from cloudflare.types.zero_trust import (
TunnelArgoTunnel,
- TunnelEditResponse,
- TunnelListResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -79,7 +78,7 @@ def test_method_list(self, client: Cloudflare) -> None:
tunnel = client.zero_trust.tunnels.list(
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(SyncV4PagePaginationArray[TunnelListResponse], tunnel, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[UnnamedSchemaRef123], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -98,7 +97,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
- assert_matches_type(SyncV4PagePaginationArray[TunnelListResponse], tunnel, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[UnnamedSchemaRef123], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -110,7 +109,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = response.parse()
- assert_matches_type(SyncV4PagePaginationArray[TunnelListResponse], tunnel, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[UnnamedSchemaRef123], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -122,7 +121,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = response.parse()
- assert_matches_type(SyncV4PagePaginationArray[TunnelListResponse], tunnel, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[UnnamedSchemaRef123], tunnel, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -198,7 +197,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(TunnelEditResponse, tunnel, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -209,7 +208,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
name="blog",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
)
- assert_matches_type(TunnelEditResponse, tunnel, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -222,7 +221,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = response.parse()
- assert_matches_type(TunnelEditResponse, tunnel, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -235,7 +234,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = response.parse()
- assert_matches_type(TunnelEditResponse, tunnel, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, tunnel, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -366,7 +365,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
tunnel = await async_client.zero_trust.tunnels.list(
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(AsyncV4PagePaginationArray[TunnelListResponse], tunnel, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[UnnamedSchemaRef123], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -385,7 +384,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
was_active_at=parse_datetime("2009-11-10T23:00:00Z"),
was_inactive_at=parse_datetime("2009-11-10T23:00:00Z"),
)
- assert_matches_type(AsyncV4PagePaginationArray[TunnelListResponse], tunnel, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[UnnamedSchemaRef123], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -397,7 +396,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = await response.parse()
- assert_matches_type(AsyncV4PagePaginationArray[TunnelListResponse], tunnel, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[UnnamedSchemaRef123], tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -409,7 +408,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = await response.parse()
- assert_matches_type(AsyncV4PagePaginationArray[TunnelListResponse], tunnel, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[UnnamedSchemaRef123], tunnel, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -485,7 +484,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(TunnelEditResponse, tunnel, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -496,7 +495,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
name="blog",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
)
- assert_matches_type(TunnelEditResponse, tunnel, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -509,7 +508,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = await response.parse()
- assert_matches_type(TunnelEditResponse, tunnel, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, tunnel, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -522,7 +521,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tunnel = await response.parse()
- assert_matches_type(TunnelEditResponse, tunnel, path=["response"])
+ assert_matches_type(UnnamedSchemaRef123, tunnel, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zones/test_custom_nameservers.py b/tests/api_resources/zones/test_custom_nameservers.py
index 0d059a2b75b..d66d6e22f6e 100644
--- a/tests/api_resources/zones/test_custom_nameservers.py
+++ b/tests/api_resources/zones/test_custom_nameservers.py
@@ -9,10 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.zones import (
- CustomNameserverGetResponse,
- CustomNameserverUpdateResponse,
-)
+from cloudflare.types.zones import CustomNameserverUpdateResponse
+from cloudflare.types.shared import UnnamedSchemaRef167
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -78,7 +76,7 @@ def test_method_get(self, client: Cloudflare) -> None:
custom_nameserver = client.zones.custom_nameservers.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -90,7 +88,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = response.parse()
- assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -102,7 +100,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = response.parse()
- assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], custom_nameserver, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -176,7 +174,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
custom_nameserver = await async_client.zones.custom_nameservers.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -188,7 +186,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = await response.parse()
- assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], custom_nameserver, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -200,7 +198,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_nameserver = await response.parse()
- assert_matches_type(Optional[CustomNameserverGetResponse], custom_nameserver, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef167], custom_nameserver, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zones/test_holds.py b/tests/api_resources/zones/test_holds.py
index 28c77cfd773..7022bac865f 100644
--- a/tests/api_resources/zones/test_holds.py
+++ b/tests/api_resources/zones/test_holds.py
@@ -12,7 +12,7 @@
from cloudflare.types.zones import (
HoldGetResponse,
HoldCreateResponse,
- HoldDeleteResponse,
+ UnnamedSchemaRef64,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -78,7 +78,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
hold = client.zones.holds.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[HoldDeleteResponse], hold, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef64], hold, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -87,7 +87,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
hold_after="string",
)
- assert_matches_type(Optional[HoldDeleteResponse], hold, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef64], hold, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -99,7 +99,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
hold = response.parse()
- assert_matches_type(Optional[HoldDeleteResponse], hold, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef64], hold, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -111,7 +111,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
hold = response.parse()
- assert_matches_type(Optional[HoldDeleteResponse], hold, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef64], hold, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -226,7 +226,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
hold = await async_client.zones.holds.delete(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(Optional[HoldDeleteResponse], hold, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef64], hold, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -235,7 +235,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
hold_after="string",
)
- assert_matches_type(Optional[HoldDeleteResponse], hold, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef64], hold, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -247,7 +247,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
hold = await response.parse()
- assert_matches_type(Optional[HoldDeleteResponse], hold, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef64], hold, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -259,7 +259,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
hold = await response.parse()
- assert_matches_type(Optional[HoldDeleteResponse], hold, path=["response"])
+ assert_matches_type(Optional[UnnamedSchemaRef64], hold, path=["response"])
assert cast(Any, response.is_closed) is True