diff --git a/api.md b/api.md
index ec5d3430a52..e30ae849cf5 100644
--- a/api.md
+++ b/api.md
@@ -4,16 +4,10 @@
from cloudflare.types import (
ErrorData,
Identifier,
+ LoadBalancerPreview,
PaginationInfo,
ResponseInfo,
Result,
- UnnamedSchemaRef025497b7e63379c31929636b5186e45c,
- UnnamedSchemaRef23001f1f0b697900e282236466a95fa3,
- UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19,
- UnnamedSchemaRef619309774d07ec6904f1e354560d6028,
- UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c,
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
- UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24,
)
```
@@ -22,14 +16,14 @@ from cloudflare.types import (
Types:
```python
-from cloudflare.types import Account, AccountListResponse
+from cloudflare.types import Account, AccountUpdateResponse, AccountListResponse, AccountGetResponse
```
Methods:
-- client.accounts.update(\*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.accounts.update(\*, account_id, \*\*params) -> AccountUpdateResponse
- client.accounts.list(\*\*params) -> SyncV4PagePaginationArray[object]
-- client.accounts.get(\*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.accounts.get(\*, account_id) -> AccountGetResponse
## Members
@@ -58,28 +52,33 @@ Methods:
Types:
```python
-from cloudflare.types.accounts import PermissionGrant, RoleListResponse
+from cloudflare.types.accounts import PermissionGrant, RoleListResponse, RoleGetResponse
```
Methods:
- client.accounts.roles.list(\*, account_id) -> SyncSinglePage[RoleListResponse]
-- client.accounts.roles.get(role_id, \*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.accounts.roles.get(role_id, \*, account_id) -> RoleGetResponse
# OriginCACertificates
Types:
```python
-from cloudflare.types import OriginCACertificate, OriginCACertificateDeleteResponse
+from cloudflare.types import (
+ OriginCACertificate,
+ OriginCACertificateCreateResponse,
+ OriginCACertificateDeleteResponse,
+ OriginCACertificateGetResponse,
+)
```
Methods:
-- client.origin_ca_certificates.create(\*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.origin_ca_certificates.create(\*\*params) -> OriginCACertificateCreateResponse
- client.origin_ca_certificates.list(\*\*params) -> SyncSinglePage[OriginCACertificate]
- client.origin_ca_certificates.delete(certificate_id, \*\*params) -> OriginCACertificateDeleteResponse
-- client.origin_ca_certificates.get(certificate_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.origin_ca_certificates.get(certificate_id) -> OriginCACertificateGetResponse
# IPs
@@ -98,22 +97,33 @@ Methods:
Types:
```python
-from cloudflare.types import Membership, MembershipDeleteResponse
+from cloudflare.types import (
+ Membership,
+ MembershipUpdateResponse,
+ MembershipDeleteResponse,
+ MembershipGetResponse,
+)
```
Methods:
-- client.memberships.update(membership_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.memberships.update(membership_id, \*\*params) -> MembershipUpdateResponse
- client.memberships.list(\*\*params) -> SyncV4PagePaginationArray[Membership]
- client.memberships.delete(membership_id, \*\*params) -> MembershipDeleteResponse
-- client.memberships.get(membership_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.memberships.get(membership_id) -> MembershipGetResponse
# User
+Types:
+
+```python
+from cloudflare.types import UserEditResponse, UserGetResponse
+```
+
Methods:
-- client.user.edit(\*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.user.get() -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.user.edit(\*\*params) -> UserEditResponse
+- client.user.get() -> UserGetResponse
## AuditLogs
@@ -143,51 +153,63 @@ Methods:
### Profile
+Types:
+
+```python
+from cloudflare.types.user.billing import ProfileGetResponse
+```
+
Methods:
-- client.user.billing.profile.get() -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.user.billing.profile.get() -> ProfileGetResponse
## Invites
Types:
```python
-from cloudflare.types.user import Invite
+from cloudflare.types.user import Invite, InviteEditResponse, InviteGetResponse
```
Methods:
- client.user.invites.list() -> SyncSinglePage[Invite]
-- client.user.invites.edit(invite_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.user.invites.get(invite_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.user.invites.edit(invite_id, \*\*params) -> InviteEditResponse
+- client.user.invites.get(invite_id) -> InviteGetResponse
## Organizations
Types:
```python
-from cloudflare.types.user import Organization, OrganizationDeleteResponse
+from cloudflare.types.user import Organization, OrganizationDeleteResponse, OrganizationGetResponse
```
Methods:
- client.user.organizations.list(\*\*params) -> SyncV4PagePaginationArray[Organization]
- client.user.organizations.delete(organization_id, \*\*params) -> OrganizationDeleteResponse
-- client.user.organizations.get(organization_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.user.organizations.get(organization_id) -> OrganizationGetResponse
## Subscriptions
Types:
```python
-from cloudflare.types.user import Subscription, SubscriptionDeleteResponse, SubscriptionGetResponse
+from cloudflare.types.user import (
+ Subscription,
+ SubscriptionUpdateResponse,
+ SubscriptionDeleteResponse,
+ SubscriptionEditResponse,
+ SubscriptionGetResponse,
+)
```
Methods:
-- client.user.subscriptions.update(identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.user.subscriptions.update(identifier, \*\*params) -> SubscriptionUpdateResponse
- client.user.subscriptions.delete(identifier, \*\*params) -> SubscriptionDeleteResponse
-- client.user.subscriptions.edit(identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.user.subscriptions.edit(identifier, \*\*params) -> SubscriptionEditResponse
- client.user.subscriptions.get() -> Optional
## Tokens
@@ -199,8 +221,10 @@ from cloudflare.types.user import (
CIDRList,
Policy,
TokenCreateResponse,
+ TokenUpdateResponse,
TokenListResponse,
TokenDeleteResponse,
+ TokenGetResponse,
TokenVerifyResponse,
)
```
@@ -208,10 +232,10 @@ from cloudflare.types.user import (
Methods:
- client.user.tokens.create(\*\*params) -> TokenCreateResponse
-- client.user.tokens.update(token_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.user.tokens.update(token_id, \*\*params) -> TokenUpdateResponse
- client.user.tokens.list(\*\*params) -> SyncV4PagePaginationArray[object]
- client.user.tokens.delete(token_id, \*\*params) -> Optional
-- client.user.tokens.get(token_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.user.tokens.get(token_id) -> TokenGetResponse
- client.user.tokens.verify() -> TokenVerifyResponse
### PermissionGroups
@@ -976,11 +1000,17 @@ Methods:
## Subscriptions
+Types:
+
+```python
+from cloudflare.types.zones import SubscriptionCreateResponse, SubscriptionGetResponse
+```
+
Methods:
-- client.zones.subscriptions.create(identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zones.subscriptions.create(identifier, \*\*params) -> SubscriptionCreateResponse
- client.zones.subscriptions.list(account_identifier) -> SyncSinglePage[Subscription]
-- client.zones.subscriptions.get(identifier) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zones.subscriptions.get(identifier) -> SubscriptionGetResponse
# LoadBalancers
@@ -1123,12 +1153,12 @@ Methods:
Types:
```python
-from cloudflare.types.load_balancers import RegionGetResponse
+from cloudflare.types.load_balancers import RegionListResponse, RegionGetResponse
```
Methods:
-- client.load_balancers.regions.list(\*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.load_balancers.regions.list(\*, account_id, \*\*params) -> RegionListResponse
- client.load_balancers.regions.get(region_id, \*, account_id) -> RegionGetResponse
## Searches
@@ -1162,7 +1192,7 @@ Types:
```python
from cloudflare.types.cache import (
CacheReserve,
- UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d,
+ CacheReserveClear,
CacheReserveClearResponse,
CacheReserveEditResponse,
CacheReserveGetResponse,
@@ -1179,11 +1209,21 @@ Methods:
## SmartTieredCache
+Types:
+
+```python
+from cloudflare.types.cache import (
+ SmartTieredCacheDeleteResponse,
+ SmartTieredCacheEditResponse,
+ SmartTieredCacheGetResponse,
+)
+```
+
Methods:
-- client.cache.smart_tiered_cache.delete(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.cache.smart_tiered_cache.edit(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.cache.smart_tiered_cache.get(\*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.cache.smart_tiered_cache.delete(\*, zone_id, \*\*params) -> SmartTieredCacheDeleteResponse
+- client.cache.smart_tiered_cache.edit(\*, zone_id, \*\*params) -> SmartTieredCacheEditResponse
+- client.cache.smart_tiered_cache.get(\*, zone_id) -> SmartTieredCacheGetResponse
## Variants
@@ -1191,8 +1231,8 @@ Types:
```python
from cloudflare.types.cache import (
- CacheVariants,
- UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0,
+ CacheVariant,
+ CacheVariantIdentifier,
VariantEditResponse,
VariantGetResponse,
)
@@ -1200,7 +1240,7 @@ from cloudflare.types.cache import (
Methods:
-- client.cache.variants.delete(\*, zone_id, \*\*params) -> CacheVariants
+- client.cache.variants.delete(\*, zone_id, \*\*params) -> CacheVariant
- client.cache.variants.edit(\*, zone_id, \*\*params) -> VariantEditResponse
- client.cache.variants.get(\*, zone_id) -> VariantGetResponse
@@ -1225,9 +1265,15 @@ Methods:
## Analyze
+Types:
+
+```python
+from cloudflare.types.ssl import AnalyzeCreateResponse
+```
+
Methods:
-- client.ssl.analyze.create(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.ssl.analyze.create(\*, zone_id, \*\*params) -> AnalyzeCreateResponse
## CertificatePacks
@@ -1239,6 +1285,7 @@ from cloudflare.types.ssl import (
CertificatePackListResponse,
CertificatePackDeleteResponse,
CertificatePackEditResponse,
+ CertificatePackGetResponse,
)
```
@@ -1247,7 +1294,7 @@ Methods:
- client.ssl.certificate_packs.list(\*, zone_id, \*\*params) -> SyncSinglePage[object]
- client.ssl.certificate_packs.delete(certificate_pack_id, \*, zone_id, \*\*params) -> CertificatePackDeleteResponse
- client.ssl.certificate_packs.edit(certificate_pack_id, \*, zone_id, \*\*params) -> CertificatePackEditResponse
-- client.ssl.certificate_packs.get(certificate_pack_id, \*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.ssl.certificate_packs.get(certificate_pack_id, \*, zone_id) -> CertificatePackGetResponse
### Order
@@ -1318,16 +1365,21 @@ Methods:
Types:
```python
-from cloudflare.types import SubscriptionDeleteResponse
+from cloudflare.types import (
+ SubscriptionCreateResponse,
+ SubscriptionUpdateResponse,
+ SubscriptionDeleteResponse,
+ SubscriptionGetResponse,
+)
```
Methods:
-- client.subscriptions.create(identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.subscriptions.update(subscription_identifier, \*, account_identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.subscriptions.create(identifier, \*\*params) -> SubscriptionCreateResponse
+- client.subscriptions.update(subscription_identifier, \*, account_identifier, \*\*params) -> SubscriptionUpdateResponse
- client.subscriptions.list(account_identifier) -> SyncSinglePage[Subscription]
- client.subscriptions.delete(subscription_identifier, \*, account_identifier, \*\*params) -> SubscriptionDeleteResponse
-- client.subscriptions.get(identifier) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.subscriptions.get(identifier) -> SubscriptionGetResponse
# ACM
@@ -1348,17 +1400,29 @@ Methods:
## SmartRouting
+Types:
+
+```python
+from cloudflare.types.argo import SmartRoutingEditResponse, SmartRoutingGetResponse
+```
+
Methods:
-- client.argo.smart_routing.edit(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.argo.smart_routing.get(\*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.argo.smart_routing.edit(\*, zone_id, \*\*params) -> SmartRoutingEditResponse
+- client.argo.smart_routing.get(\*, zone_id) -> SmartRoutingGetResponse
## TieredCaching
+Types:
+
+```python
+from cloudflare.types.argo import TieredCachingEditResponse, TieredCachingGetResponse
+```
+
Methods:
-- client.argo.tiered_caching.edit(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.argo.tiered_caching.get(\*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.argo.tiered_caching.edit(\*, zone_id, \*\*params) -> TieredCachingEditResponse
+- client.argo.tiered_caching.get(\*, zone_id) -> TieredCachingGetResponse
# Plans
@@ -1426,16 +1490,23 @@ Methods:
Types:
```python
-from cloudflare.types import CustomCertificate, GeoRestrictions, CustomCertificateDeleteResponse
+from cloudflare.types import (
+ CustomCertificate,
+ GeoRestrictions,
+ CustomCertificateCreateResponse,
+ CustomCertificateDeleteResponse,
+ CustomCertificateEditResponse,
+ CustomCertificateGetResponse,
+)
```
Methods:
-- client.custom_certificates.create(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.custom_certificates.create(\*, zone_id, \*\*params) -> CustomCertificateCreateResponse
- client.custom_certificates.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[CustomCertificate]
- client.custom_certificates.delete(custom_certificate_id, \*, zone_id, \*\*params) -> CustomCertificateDeleteResponse
-- client.custom_certificates.edit(custom_certificate_id, \*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.custom_certificates.get(custom_certificate_id, \*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.custom_certificates.edit(custom_certificate_id, \*, zone_id, \*\*params) -> CustomCertificateEditResponse
+- client.custom_certificates.get(custom_certificate_id, \*, zone_id) -> CustomCertificateGetResponse
## Prioritize
@@ -1455,30 +1526,43 @@ Types:
```python
from cloudflare.types import (
+ BundleMethod,
CustomHostname,
- UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1,
- UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510,
- UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1,
- UnnamedSchemaRefD2a16d7ee1ad3a888dd5821c918d51fd,
+ DCVMethod,
+ DomainValidationType,
+ CustomHostnameCreateResponse,
+ CustomHostnameListResponse,
CustomHostnameDeleteResponse,
+ CustomHostnameEditResponse,
+ CustomHostnameGetResponse,
)
```
Methods:
-- client.custom_hostnames.create(\*, zone_id, \*\*params) -> CustomHostname
-- client.custom_hostnames.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[CustomHostname]
+- client.custom_hostnames.create(\*, zone_id, \*\*params) -> CustomHostnameCreateResponse
+- client.custom_hostnames.list(\*, zone_id, \*\*params) -> SyncV4PagePaginationArray[CustomHostnameListResponse]
- client.custom_hostnames.delete(custom_hostname_id, \*, zone_id, \*\*params) -> CustomHostnameDeleteResponse
-- client.custom_hostnames.edit(custom_hostname_id, \*, zone_id, \*\*params) -> CustomHostname
-- client.custom_hostnames.get(custom_hostname_id, \*, zone_id) -> CustomHostname
+- client.custom_hostnames.edit(custom_hostname_id, \*, zone_id, \*\*params) -> CustomHostnameEditResponse
+- client.custom_hostnames.get(custom_hostname_id, \*, zone_id) -> CustomHostnameGetResponse
## FallbackOrigin
+Types:
+
+```python
+from cloudflare.types.custom_hostnames import (
+ FallbackOriginUpdateResponse,
+ FallbackOriginDeleteResponse,
+ FallbackOriginGetResponse,
+)
+```
+
Methods:
-- client.custom_hostnames.fallback_origin.update(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.custom_hostnames.fallback_origin.delete(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.custom_hostnames.fallback_origin.get(\*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.custom_hostnames.fallback_origin.update(\*, zone_id, \*\*params) -> FallbackOriginUpdateResponse
+- client.custom_hostnames.fallback_origin.delete(\*, zone_id, \*\*params) -> FallbackOriginDeleteResponse
+- client.custom_hostnames.fallback_origin.get(\*, zone_id) -> FallbackOriginGetResponse
# CustomNameservers
@@ -1507,11 +1591,7 @@ Methods:
Types:
```python
-from cloudflare.types import (
- UnnamedSchemaRef6595695ff25b0614667b25f66b7bbaba,
- UnnamedSchemaRef65be9614de145bf4a58d0fddf46df7ca,
- UnnamedSchemaRef85b45d163202bbab7456da6b346d9fe2,
-)
+from cloudflare.types import DNSAnalyticsNominalMetric, DNSAnalyticsQuery
```
## Records
@@ -1534,6 +1614,8 @@ from cloudflare.types.dns import (
NSRecord,
PTRRecord,
Record,
+ RecordMetadata,
+ RecordProcessTiming,
RecordTags,
SMIMEARecord,
SRVRecord,
@@ -1542,9 +1624,6 @@ from cloudflare.types.dns import (
TLSARecord,
TTL,
TXTRecord,
- UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb,
- UnnamedSchemaRef186756a742f85f535cb7bfb2d03b2b8c,
- UnnamedSchemaRef2f895e023ae55b55d2f5925449b819cd,
URIRecord,
RecordDeleteResponse,
RecordExportResponse,
@@ -1791,34 +1870,43 @@ from cloudflare.types.firewall import (
ASNConfiguration,
CountryConfiguration,
IPV6Configuration,
+ AccessRuleCreateResponse,
AccessRuleListResponse,
AccessRuleDeleteResponse,
+ AccessRuleEditResponse,
+ AccessRuleGetResponse,
)
```
Methods:
-- client.firewall.access_rules.create(\*, account_id, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.firewall.access_rules.create(\*, account_id, zone_id, \*\*params) -> AccessRuleCreateResponse
- 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) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.firewall.access_rules.get(identifier, \*, account_id, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.firewall.access_rules.edit(identifier, \*, account_id, zone_id, \*\*params) -> AccessRuleEditResponse
+- client.firewall.access_rules.get(identifier, \*, account_id, zone_id) -> AccessRuleGetResponse
## UARules
Types:
```python
-from cloudflare.types.firewall import UARuleListResponse, UARuleDeleteResponse
+from cloudflare.types.firewall import (
+ UARuleCreateResponse,
+ UARuleUpdateResponse,
+ UARuleListResponse,
+ UARuleDeleteResponse,
+ UARuleGetResponse,
+)
```
Methods:
-- client.firewall.ua_rules.create(zone_identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.firewall.ua_rules.update(id, \*, zone_identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.firewall.ua_rules.create(zone_identifier, \*\*params) -> UARuleCreateResponse
+- client.firewall.ua_rules.update(id, \*, zone_identifier, \*\*params) -> UARuleUpdateResponse
- client.firewall.ua_rules.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[UARuleListResponse]
- client.firewall.ua_rules.delete(id, \*, zone_identifier, \*\*params) -> UARuleDeleteResponse
-- client.firewall.ua_rules.get(id, \*, zone_identifier) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.firewall.ua_rules.get(id, \*, zone_identifier) -> UARuleGetResponse
## WAF
@@ -1862,14 +1950,14 @@ Methods:
Types:
```python
-from cloudflare.types.firewall.waf.packages import Group
+from cloudflare.types.firewall.waf.packages import Group, GroupEditResponse, GroupGetResponse
```
Methods:
- client.firewall.waf.packages.groups.list(package_id, \*, zone_id, \*\*params) -> SyncV4PagePaginationArray[Group]
-- client.firewall.waf.packages.groups.edit(group_id, \*, zone_id, package_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.firewall.waf.packages.groups.get(group_id, \*, zone_id, package_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.firewall.waf.packages.groups.edit(group_id, \*, zone_id, package_id, \*\*params) -> GroupEditResponse
+- client.firewall.waf.packages.groups.get(group_id, \*, zone_id, package_id) -> GroupGetResponse
#### Rules
@@ -1881,6 +1969,7 @@ from cloudflare.types.firewall.waf.packages import (
UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5,
RuleListResponse,
RuleEditResponse,
+ RuleGetResponse,
)
```
@@ -1888,7 +1977,7 @@ Methods:
- client.firewall.waf.packages.rules.list(package_id, \*, zone_id, \*\*params) -> SyncV4PagePaginationArray[RuleListResponse]
- client.firewall.waf.packages.rules.edit(rule_id, \*, zone_id, package_id, \*\*params) -> RuleEditResponse
-- client.firewall.waf.packages.rules.get(rule_id, \*, zone_id, package_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.firewall.waf.packages.rules.get(rule_id, \*, zone_id, package_id) -> RuleGetResponse
# Healthchecks
@@ -2113,15 +2202,20 @@ Methods:
Types:
```python
-from cloudflare.types import ZoneAuthenticatedOriginPull
+from cloudflare.types import (
+ ZoneAuthenticatedOriginPull,
+ OriginTLSClientAuthCreateResponse,
+ OriginTLSClientAuthDeleteResponse,
+ OriginTLSClientAuthGetResponse,
+)
```
Methods:
-- client.origin_tls_client_auth.create(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.origin_tls_client_auth.create(\*, zone_id, \*\*params) -> OriginTLSClientAuthCreateResponse
- client.origin_tls_client_auth.list(\*, zone_id) -> SyncSinglePage[ZoneAuthenticatedOriginPull]
-- client.origin_tls_client_auth.delete(certificate_id, \*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.origin_tls_client_auth.get(certificate_id, \*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.origin_tls_client_auth.delete(certificate_id, \*, zone_id, \*\*params) -> OriginTLSClientAuthDeleteResponse
+- client.origin_tls_client_auth.get(certificate_id, \*, zone_id) -> OriginTLSClientAuthGetResponse
## Hostnames
@@ -2181,19 +2275,23 @@ from cloudflare.types import (
Route,
Targes,
URLTarget,
+ PageruleCreateResponse,
+ PageruleUpdateResponse,
PageruleListResponse,
PageruleDeleteResponse,
+ PageruleEditResponse,
+ PageruleGetResponse,
)
```
Methods:
-- client.pagerules.create(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.pagerules.update(pagerule_id, \*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.pagerules.create(\*, zone_id, \*\*params) -> PageruleCreateResponse
+- client.pagerules.update(pagerule_id, \*, zone_id, \*\*params) -> PageruleUpdateResponse
- client.pagerules.list(\*, zone_id, \*\*params) -> PageruleListResponse
- client.pagerules.delete(pagerule_id, \*, zone_id, \*\*params) -> Optional
-- client.pagerules.edit(pagerule_id, \*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.pagerules.get(pagerule_id, \*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.pagerules.edit(pagerule_id, \*, zone_id, \*\*params) -> PageruleEditResponse
+- client.pagerules.get(pagerule_id, \*, zone_id) -> PageruleGetResponse
## Settings
@@ -2212,16 +2310,24 @@ Methods:
Types:
```python
-from cloudflare.types import Action, Methods, RateLimit, RateLimitDeleteResponse
+from cloudflare.types import (
+ Action,
+ Methods,
+ RateLimit,
+ RateLimitCreateResponse,
+ RateLimitDeleteResponse,
+ RateLimitEditResponse,
+ RateLimitGetResponse,
+)
```
Methods:
-- client.rate_limits.create(zone_identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.rate_limits.create(zone_identifier, \*\*params) -> RateLimitCreateResponse
- client.rate_limits.list(zone_identifier, \*\*params) -> SyncV4PagePaginationArray[RateLimit]
- client.rate_limits.delete(id, \*, zone_identifier, \*\*params) -> RateLimitDeleteResponse
-- client.rate_limits.edit(id, \*, zone_identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.rate_limits.get(id, \*, zone_identifier) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.rate_limits.edit(id, \*, zone_identifier, \*\*params) -> RateLimitEditResponse
+- client.rate_limits.get(id, \*, zone_identifier) -> RateLimitGetResponse
# SecondaryDNS
@@ -2544,6 +2650,7 @@ from cloudflare.types import (
ServiceBinding,
SingleStepMigration,
SteppedMigration,
+ WorkerMetadata,
)
```
@@ -2806,6 +2913,7 @@ Types:
from cloudflare.types import (
Queue,
QueueCreated,
+ QueueSettings,
QueueUpdated,
QueueCreateResponse,
QueueUpdateResponse,
@@ -2982,6 +3090,7 @@ from cloudflare.types.rulesets import (
BlockRule,
ExecuteRule,
LogRule,
+ Logging,
RulesetRule,
SkipRule,
RuleCreateResponse,
@@ -3101,6 +3210,7 @@ from cloudflare.types.spectrum import (
AppUpdateResponse,
AppListResponse,
AppDeleteResponse,
+ AppGetResponse,
)
```
@@ -3110,7 +3220,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) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.spectrum.apps.get(app_id, \*, zone) -> AppGetResponse
# Addressing
@@ -3304,9 +3414,15 @@ Methods:
## Profiles
+Types:
+
+```python
+from cloudflare.types.billing import ProfileGetResponse
+```
+
Methods:
-- client.billing.profiles.get(account_identifier) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.billing.profiles.get(account_identifier) -> ProfileGetResponse
# BrandProtection
@@ -3356,6 +3472,7 @@ from cloudflare.types.images import (
Image,
UnnamedSchemaRefE8461c343d70f42d35d6d68f1a58d05a,
V1ListResponse,
+ V1DeleteResponse,
)
```
@@ -3363,7 +3480,7 @@ Methods:
- client.images.v1.create(\*, account_id, \*\*params) -> Image
- client.images.v1.list(\*, account_id, \*\*params) -> SyncV4PagePagination[V1ListResponse]
-- client.images.v1.delete(image_id, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.images.v1.delete(image_id, \*, account_id, \*\*params) -> V1DeleteResponse
- client.images.v1.edit(image_id, \*, account_id, \*\*params) -> Image
- client.images.v1.get(image_id, \*, account_id) -> Image
@@ -3402,6 +3519,7 @@ from cloudflare.types.images.v1 import (
UnnamedSchemaRefD02195de7dadf27801875f36cddfa3a3,
Variant,
VariantCreateResponse,
+ VariantDeleteResponse,
VariantEditResponse,
VariantGetResponse,
)
@@ -3411,7 +3529,7 @@ Methods:
- client.images.v1.variants.create(\*, account_id, \*\*params) -> VariantCreateResponse
- client.images.v1.variants.list(\*, account_id) -> Variant
-- client.images.v1.variants.delete(variant_id, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.images.v1.variants.delete(variant_id, \*, account_id, \*\*params) -> VariantDeleteResponse
- client.images.v1.variants.edit(variant_id, \*, account_id, \*\*params) -> VariantEditResponse
- client.images.v1.variants.get(variant_id, \*, account_id) -> VariantGetResponse
@@ -4301,41 +4419,51 @@ Methods:
Types:
```python
-from cloudflare.types.stream import Watermaks, WatermarkDeleteResponse
+from cloudflare.types.stream import (
+ Watermaks,
+ WatermarkCreateResponse,
+ WatermarkDeleteResponse,
+ WatermarkGetResponse,
+)
```
Methods:
-- client.stream.watermarks.create(\*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.stream.watermarks.create(\*, account_id, \*\*params) -> WatermarkCreateResponse
- client.stream.watermarks.list(\*, account_id) -> SyncSinglePage[Watermaks]
- client.stream.watermarks.delete(identifier, \*, account_id, \*\*params) -> WatermarkDeleteResponse
-- client.stream.watermarks.get(identifier, \*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.stream.watermarks.get(identifier, \*, account_id) -> WatermarkGetResponse
## Webhooks
Types:
```python
-from cloudflare.types.stream import WebhookDeleteResponse
+from cloudflare.types.stream import WebhookUpdateResponse, WebhookDeleteResponse, WebhookGetResponse
```
Methods:
-- client.stream.webhooks.update(\*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.stream.webhooks.update(\*, account_id, \*\*params) -> WebhookUpdateResponse
- client.stream.webhooks.delete(\*, account_id, \*\*params) -> WebhookDeleteResponse
-- client.stream.webhooks.get(\*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.stream.webhooks.get(\*, account_id) -> WebhookGetResponse
## Captions
Types:
```python
-from cloudflare.types.stream import Caption, CaptionDeleteResponse, CaptionGetResponse
+from cloudflare.types.stream import (
+ Caption,
+ CaptionUpdateResponse,
+ CaptionDeleteResponse,
+ CaptionGetResponse,
+)
```
Methods:
-- client.stream.captions.update(language, \*, account_id, identifier, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.stream.captions.update(language, \*, account_id, identifier, \*\*params) -> CaptionUpdateResponse
- client.stream.captions.delete(language, \*, account_id, identifier, \*\*params) -> CaptionDeleteResponse
- client.stream.captions.get(identifier, \*, account_id) -> CaptionGetResponse
@@ -4344,14 +4472,18 @@ Methods:
Types:
```python
-from cloudflare.types.stream import DownloadDeleteResponse
+from cloudflare.types.stream import (
+ DownloadCreateResponse,
+ DownloadDeleteResponse,
+ DownloadGetResponse,
+)
```
Methods:
-- client.stream.downloads.create(identifier, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.stream.downloads.create(identifier, \*, account_id, \*\*params) -> DownloadCreateResponse
- client.stream.downloads.delete(identifier, \*, account_id) -> DownloadDeleteResponse
-- client.stream.downloads.get(identifier, \*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.stream.downloads.get(identifier, \*, account_id) -> DownloadGetResponse
## Embed
@@ -4505,6 +4637,7 @@ from cloudflare.types.d1 import (
QueryResult,
DatabaseCreateResponse,
DatabaseListResponse,
+ DatabaseDeleteResponse,
DatabaseQueryResponse,
)
```
@@ -4513,7 +4646,7 @@ Methods:
- client.d1.database.create(\*, account_id, \*\*params) -> DatabaseCreateResponse
- client.d1.database.list(\*, account_id, \*\*params) -> SyncV4PagePaginationArray[DatabaseListResponse]
-- client.d1.database.delete(database_identifier, \*, account_identifier) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.d1.database.delete(database_identifier, \*, account_identifier) -> DatabaseDeleteResponse
- client.d1.database.get(database_identifier, \*, account_identifier) -> D1
- client.d1.database.query(database_identifier, \*, account_identifier, \*\*params) -> DatabaseQueryResponse
@@ -4630,13 +4763,13 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust import Device
+from cloudflare.types.zero_trust import Device, DeviceGetResponse
```
Methods:
- client.zero_trust.devices.list(\*, account_id) -> SyncSinglePage[Device]
-- client.zero_trust.devices.get(device_id, \*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.devices.get(device_id, \*, account_id) -> DeviceGetResponse
### DEXTests
@@ -4800,6 +4933,7 @@ Types:
from cloudflare.types.zero_trust.devices.posture import (
Integration,
UnnamedSchemaRefB84b377dfc9454d455b646d4bc9ab507,
+ IntegrationDeleteResponse,
)
```
@@ -4807,15 +4941,21 @@ Methods:
- client.zero_trust.devices.posture.integrations.create(\*, account_id, \*\*params) -> Optional
- client.zero_trust.devices.posture.integrations.list(\*, account_id) -> SyncSinglePage[Integration]
-- client.zero_trust.devices.posture.integrations.delete(integration_id, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.devices.posture.integrations.delete(integration_id, \*, account_id, \*\*params) -> IntegrationDeleteResponse
- 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) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.devices.revoke.create(\*, account_id, \*\*params) -> RevokeCreateResponse
### Settings
@@ -4832,9 +4972,15 @@ Methods:
### Unrevoke
+Types:
+
+```python
+from cloudflare.types.zero_trust.devices import UnrevokeCreateResponse
+```
+
Methods:
-- client.zero_trust.devices.unrevoke.create(\*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.devices.unrevoke.create(\*, account_id, \*\*params) -> UnrevokeCreateResponse
### OverrideCodes
@@ -4942,15 +5088,20 @@ Methods:
Types:
```python
-from cloudflare.types.zero_trust.access.applications import CA, CADeleteResponse
+from cloudflare.types.zero_trust.access.applications import (
+ CA,
+ CACreateResponse,
+ CADeleteResponse,
+ CAGetResponse,
+)
```
Methods:
-- client.zero_trust.access.applications.cas.create(uuid, \*, account_id, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.access.applications.cas.create(uuid, \*, account_id, zone_id) -> CACreateResponse
- client.zero_trust.access.applications.cas.list(\*, account_id, zone_id) -> SyncSinglePage[CA]
- client.zero_trust.access.applications.cas.delete(uuid, \*, account_id, zone_id) -> CADeleteResponse
-- client.zero_trust.access.applications.cas.get(uuid, \*, account_id, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.access.applications.cas.get(uuid, \*, account_id, zone_id) -> CAGetResponse
#### UserPolicyChecks
@@ -5601,6 +5752,7 @@ from cloudflare.types.zero_trust.gateway import (
ListCreateResponse,
ListUpdateResponse,
ListListResponse,
+ ListDeleteResponse,
ListEditResponse,
ListGetResponse,
)
@@ -5611,7 +5763,7 @@ Methods:
- client.zero_trust.gateway.lists.create(\*, account_id, \*\*params) -> ListCreateResponse
- client.zero_trust.gateway.lists.update(list_id, \*, account_id, \*\*params) -> ListUpdateResponse
- client.zero_trust.gateway.lists.list(\*, account_id) -> SyncSinglePage[ListListResponse]
-- client.zero_trust.gateway.lists.delete(list_id, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.gateway.lists.delete(list_id, \*, account_id, \*\*params) -> ListDeleteResponse
- client.zero_trust.gateway.lists.edit(list_id, \*, account_id, \*\*params) -> ListEditResponse
- client.zero_trust.gateway.lists.get(list_id, \*, account_id) -> ListGetResponse
@@ -5636,6 +5788,7 @@ from cloudflare.types.zero_trust.gateway import (
Location,
LocationNetwork,
UnnamedSchemaRef1b37523fdb0ae5806cd8e062492aab66,
+ LocationDeleteResponse,
)
```
@@ -5644,7 +5797,7 @@ Methods:
- client.zero_trust.gateway.locations.create(\*, account_id, \*\*params) -> Location
- client.zero_trust.gateway.locations.update(location_id, \*, account_id, \*\*params) -> Location
- client.zero_trust.gateway.locations.list(\*, account_id) -> SyncSinglePage[Location]
-- client.zero_trust.gateway.locations.delete(location_id, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.gateway.locations.delete(location_id, \*, account_id, \*\*params) -> LocationDeleteResponse
- client.zero_trust.gateway.locations.get(location_id, \*, account_id) -> Location
### Logging
@@ -5672,6 +5825,7 @@ from cloudflare.types.zero_trust.gateway import (
GatewayIPs,
ProxyEndpoint,
UnnamedSchemaRef4753ee81779d0e57189420079abab61e,
+ ProxyEndpointDeleteResponse,
)
```
@@ -5679,7 +5833,7 @@ Methods:
- client.zero_trust.gateway.proxy_endpoints.create(\*, account_id, \*\*params) -> ProxyEndpoint
- client.zero_trust.gateway.proxy_endpoints.list(\*, account_id) -> SyncSinglePage[ProxyEndpoint]
-- client.zero_trust.gateway.proxy_endpoints.delete(proxy_endpoint_id, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.gateway.proxy_endpoints.delete(proxy_endpoint_id, \*, account_id, \*\*params) -> ProxyEndpointDeleteResponse
- client.zero_trust.gateway.proxy_endpoints.edit(proxy_endpoint_id, \*, account_id, \*\*params) -> ProxyEndpoint
- client.zero_trust.gateway.proxy_endpoints.get(proxy_endpoint_id, \*, account_id) -> ProxyEndpoint
@@ -5695,6 +5849,7 @@ from cloudflare.types.zero_trust.gateway import (
GatewayRule,
RuleSetting,
Schedule,
+ RuleDeleteResponse,
)
```
@@ -5703,7 +5858,7 @@ Methods:
- client.zero_trust.gateway.rules.create(\*, account_id, \*\*params) -> GatewayRule
- client.zero_trust.gateway.rules.update(rule_id, \*, account_id, \*\*params) -> GatewayRule
- client.zero_trust.gateway.rules.list(\*, account_id) -> SyncSinglePage[GatewayRule]
-- client.zero_trust.gateway.rules.delete(rule_id, \*, account_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.zero_trust.gateway.rules.delete(rule_id, \*, account_id, \*\*params) -> RuleDeleteResponse
- client.zero_trust.gateway.rules.get(rule_id, \*, account_id) -> GatewayRule
## Networks
@@ -5790,12 +5945,18 @@ from cloudflare.types import Configuration, Hyperdrive
## Configs
+Types:
+
+```python
+from cloudflare.types.hyperdrive import ConfigDeleteResponse
+```
+
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[Hyperdrive]
-- client.hyperdrive.configs.delete(hyperdrive_id, \*, account_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.hyperdrive.configs.delete(hyperdrive_id, \*, account_id) -> ConfigDeleteResponse
- client.hyperdrive.configs.edit(hyperdrive_id, \*, account_id, \*\*params) -> Optional
- client.hyperdrive.configs.get(hyperdrive_id, \*, account_id) -> Optional
@@ -5846,6 +6007,7 @@ from cloudflare.types.vectorize import (
IndexInsert,
IndexQuery,
IndexUpsert,
+ IndexDeleteResponse,
IndexGetByIDsResponse,
)
```
@@ -5855,7 +6017,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[CreateIndex]
-- client.vectorize.indexes.delete(index_name, \*, account_identifier) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.vectorize.indexes.delete(index_name, \*, account_identifier) -> IndexDeleteResponse
- 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
@@ -6990,10 +7152,19 @@ Methods:
# OriginPostQuantumEncryption
+Types:
+
+```python
+from cloudflare.types import (
+ OriginPostQuantumEncryptionUpdateResponse,
+ OriginPostQuantumEncryptionGetResponse,
+)
+```
+
Methods:
-- client.origin_post_quantum_encryption.update(\*, zone_id, \*\*params) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-- client.origin_post_quantum_encryption.get(\*, zone_id) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+- client.origin_post_quantum_encryption.update(\*, zone_id, \*\*params) -> OriginPostQuantumEncryptionUpdateResponse
+- client.origin_post_quantum_encryption.get(\*, zone_id) -> OriginPostQuantumEncryptionGetResponse
# Speed
diff --git a/src/cloudflare/resources/accounts/accounts.py b/src/cloudflare/resources/accounts/accounts.py
index 086913def35..e28952068c5 100644
--- a/src/cloudflare/resources/accounts/accounts.py
+++ b/src/cloudflare/resources/accounts/accounts.py
@@ -15,7 +15,12 @@
RolesWithStreamingResponse,
AsyncRolesWithStreamingResponse,
)
-from ...types import account_list_params, account_update_params
+from ...types import (
+ AccountGetResponse,
+ AccountUpdateResponse,
+ account_list_params,
+ account_update_params,
+)
from .members import (
Members,
AsyncMembers,
@@ -43,7 +48,6 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Accounts", "AsyncAccounts"]
@@ -77,7 +81,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccountUpdateResponse:
"""
Update an existing account.
@@ -95,7 +99,7 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccountUpdateResponse,
self._put(
f"/accounts/{account_id}",
body=maybe_transform(
@@ -113,7 +117,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccountUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -183,7 +187,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccountGetResponse:
"""
Get information about a specific account that you are a member of.
@@ -197,7 +201,7 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccountGetResponse,
self._get(
f"/accounts/{account_id}",
options=make_request_options(
@@ -208,7 +212,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccountGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -243,7 +247,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccountUpdateResponse:
"""
Update an existing account.
@@ -261,7 +265,7 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccountUpdateResponse,
await self._put(
f"/accounts/{account_id}",
body=await async_maybe_transform(
@@ -279,7 +283,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccountUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -349,7 +353,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccountGetResponse:
"""
Get information about a specific account that you are a member of.
@@ -363,7 +367,7 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccountGetResponse,
await self._get(
f"/accounts/{account_id}",
options=make_request_options(
@@ -374,7 +378,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccountGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/accounts/roles.py b/src/cloudflare/resources/accounts/roles.py
index f6b06f5ff02..c3d7190308e 100644
--- a/src/cloudflare/resources/accounts/roles.py
+++ b/src/cloudflare/resources/accounts/roles.py
@@ -21,8 +21,7 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ...types.accounts import RoleListResponse
+from ...types.accounts import RoleGetResponse, RoleListResponse
__all__ = ["Roles", "AsyncRoles"]
@@ -79,7 +78,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RoleGetResponse:
"""
Get information about a specific role for an account.
@@ -93,7 +92,7 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RoleGetResponse,
self._get(
f"/accounts/{account_id}/roles/{role_id}",
options=make_request_options(
@@ -104,7 +103,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RoleGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -162,7 +161,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RoleGetResponse:
"""
Get information about a specific role for an account.
@@ -176,7 +175,7 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RoleGetResponse,
await self._get(
f"/accounts/{account_id}/roles/{role_id}",
options=make_request_options(
@@ -187,7 +186,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RoleGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/argo/smart_routing.py b/src/cloudflare/resources/argo/smart_routing.py
index 25e676d9de9..b80da8e83d3 100644
--- a/src/cloudflare/resources/argo/smart_routing.py
+++ b/src/cloudflare/resources/argo/smart_routing.py
@@ -21,11 +21,10 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.argo import smart_routing_edit_params
+from ...types.argo import SmartRoutingGetResponse, SmartRoutingEditResponse, smart_routing_edit_params
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["SmartRouting", "AsyncSmartRouting"]
@@ -50,7 +49,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartRoutingEditResponse:
"""
Updates enablement of Argo Smart Routing.
@@ -70,7 +69,7 @@ def edit(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartRoutingEditResponse,
self._patch(
f"/zones/{zone_id}/argo/smart_routing",
body=maybe_transform({"value": value}, smart_routing_edit_params.SmartRoutingEditParams),
@@ -82,7 +81,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartRoutingEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -97,7 +96,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartRoutingGetResponse:
"""
Get Argo Smart Routing setting
@@ -115,7 +114,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartRoutingGetResponse,
self._get(
f"/zones/{zone_id}/argo/smart_routing",
options=make_request_options(
@@ -126,7 +125,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartRoutingGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -152,7 +151,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartRoutingEditResponse:
"""
Updates enablement of Argo Smart Routing.
@@ -172,7 +171,7 @@ async def edit(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartRoutingEditResponse,
await self._patch(
f"/zones/{zone_id}/argo/smart_routing",
body=await async_maybe_transform({"value": value}, smart_routing_edit_params.SmartRoutingEditParams),
@@ -184,7 +183,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartRoutingEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -199,7 +198,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartRoutingGetResponse:
"""
Get Argo Smart Routing setting
@@ -217,7 +216,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartRoutingGetResponse,
await self._get(
f"/zones/{zone_id}/argo/smart_routing",
options=make_request_options(
@@ -228,7 +227,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartRoutingGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/argo/tiered_caching.py b/src/cloudflare/resources/argo/tiered_caching.py
index 578afa33b62..354ba514e3a 100644
--- a/src/cloudflare/resources/argo/tiered_caching.py
+++ b/src/cloudflare/resources/argo/tiered_caching.py
@@ -21,11 +21,10 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.argo import tiered_caching_edit_params
+from ...types.argo import TieredCachingGetResponse, TieredCachingEditResponse, tiered_caching_edit_params
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["TieredCaching", "AsyncTieredCaching"]
@@ -50,7 +49,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> TieredCachingEditResponse:
"""
Updates enablement of Tiered Caching
@@ -70,7 +69,7 @@ def edit(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ TieredCachingEditResponse,
self._patch(
f"/zones/{zone_id}/argo/tiered_caching",
body=maybe_transform({"value": value}, tiered_caching_edit_params.TieredCachingEditParams),
@@ -82,7 +81,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[TieredCachingEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -97,7 +96,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> TieredCachingGetResponse:
"""
Get Tiered Caching setting
@@ -115,7 +114,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ TieredCachingGetResponse,
self._get(
f"/zones/{zone_id}/argo/tiered_caching",
options=make_request_options(
@@ -126,7 +125,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[TieredCachingGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -152,7 +151,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> TieredCachingEditResponse:
"""
Updates enablement of Tiered Caching
@@ -172,7 +171,7 @@ async def edit(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ TieredCachingEditResponse,
await self._patch(
f"/zones/{zone_id}/argo/tiered_caching",
body=await async_maybe_transform({"value": value}, tiered_caching_edit_params.TieredCachingEditParams),
@@ -184,7 +183,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[TieredCachingEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -199,7 +198,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> TieredCachingGetResponse:
"""
Get Tiered Caching setting
@@ -217,7 +216,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ TieredCachingGetResponse,
await self._get(
f"/zones/{zone_id}/argo/tiered_caching",
options=make_request_options(
@@ -228,7 +227,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[TieredCachingGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/billing/profiles.py b/src/cloudflare/resources/billing/profiles.py
index 061d4fcfd64..b7e24e1868a 100644
--- a/src/cloudflare/resources/billing/profiles.py
+++ b/src/cloudflare/resources/billing/profiles.py
@@ -19,7 +19,7 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from ...types.billing import ProfileGetResponse
__all__ = ["Profiles", "AsyncProfiles"]
@@ -43,7 +43,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ProfileGetResponse:
"""
Gets the current billing profile for the account.
@@ -57,7 +57,7 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ProfileGetResponse,
self._get(
f"/accounts/{account_identifier}/billing/profile",
options=make_request_options(
@@ -68,7 +68,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ProfileGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -93,7 +93,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ProfileGetResponse:
"""
Gets the current billing profile for the account.
@@ -107,7 +107,7 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ProfileGetResponse,
await self._get(
f"/accounts/{account_identifier}/billing/profile",
options=make_request_options(
@@ -118,7 +118,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ProfileGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/cache/smart_tiered_cache.py b/src/cloudflare/resources/cache/smart_tiered_cache.py
index 67334bb7f00..c7a485797b0 100644
--- a/src/cloudflare/resources/cache/smart_tiered_cache.py
+++ b/src/cloudflare/resources/cache/smart_tiered_cache.py
@@ -21,11 +21,16 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.cache import smart_tiered_cache_edit_params, smart_tiered_cache_delete_params
+from ...types.cache import (
+ SmartTieredCacheGetResponse,
+ SmartTieredCacheEditResponse,
+ SmartTieredCacheDeleteResponse,
+ smart_tiered_cache_edit_params,
+ smart_tiered_cache_delete_params,
+)
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["SmartTieredCache", "AsyncSmartTieredCache"]
@@ -50,7 +55,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartTieredCacheDeleteResponse:
"""
Remvoves enablement of Smart Tiered Cache
@@ -68,7 +73,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartTieredCacheDeleteResponse,
self._delete(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
body=maybe_transform(body, smart_tiered_cache_delete_params.SmartTieredCacheDeleteParams),
@@ -80,7 +85,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartTieredCacheDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -96,7 +101,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartTieredCacheEditResponse:
"""
Updates enablement of Tiered Cache
@@ -116,7 +121,7 @@ def edit(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartTieredCacheEditResponse,
self._patch(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
body=maybe_transform({"value": value}, smart_tiered_cache_edit_params.SmartTieredCacheEditParams),
@@ -128,7 +133,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartTieredCacheEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -143,7 +148,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartTieredCacheGetResponse:
"""
Get Smart Tiered Cache setting
@@ -161,7 +166,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartTieredCacheGetResponse,
self._get(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
options=make_request_options(
@@ -172,7 +177,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartTieredCacheGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -198,7 +203,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartTieredCacheDeleteResponse:
"""
Remvoves enablement of Smart Tiered Cache
@@ -216,7 +221,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartTieredCacheDeleteResponse,
await self._delete(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
body=await async_maybe_transform(body, smart_tiered_cache_delete_params.SmartTieredCacheDeleteParams),
@@ -228,7 +233,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartTieredCacheDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -244,7 +249,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartTieredCacheEditResponse:
"""
Updates enablement of Tiered Cache
@@ -264,7 +269,7 @@ async def edit(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartTieredCacheEditResponse,
await self._patch(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
body=await async_maybe_transform(
@@ -278,7 +283,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartTieredCacheEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -293,7 +298,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SmartTieredCacheGetResponse:
"""
Get Smart Tiered Cache setting
@@ -311,7 +316,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SmartTieredCacheGetResponse,
await self._get(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
options=make_request_options(
@@ -322,7 +327,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SmartTieredCacheGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/cache/variants.py b/src/cloudflare/resources/cache/variants.py
index 9c77523f114..a16acc3438f 100644
--- a/src/cloudflare/resources/cache/variants.py
+++ b/src/cloudflare/resources/cache/variants.py
@@ -21,7 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.cache import (
- CacheVariants,
+ CacheVariant,
VariantGetResponse,
VariantEditResponse,
variant_edit_params,
@@ -54,7 +54,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CacheVariants:
+ ) -> CacheVariant:
"""
Variant support enables caching variants of images with certain file extensions
in addition to the original. This only applies when the origin server sends the
@@ -85,7 +85,7 @@ def delete(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[CacheVariants], ResultWrapper[CacheVariants]),
+ cast_to=cast(Type[CacheVariant], ResultWrapper[CacheVariant]),
)
def edit(
@@ -199,7 +199,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CacheVariants:
+ ) -> CacheVariant:
"""
Variant support enables caching variants of images with certain file extensions
in addition to the original. This only applies when the origin server sends the
@@ -230,7 +230,7 @@ async def delete(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[CacheVariants], ResultWrapper[CacheVariants]),
+ cast_to=cast(Type[CacheVariant], ResultWrapper[CacheVariant]),
)
async def edit(
diff --git a/src/cloudflare/resources/custom_certificates/custom_certificates.py b/src/cloudflare/resources/custom_certificates/custom_certificates.py
index ddf3a01a32a..e2d0565b5ad 100644
--- a/src/cloudflare/resources/custom_certificates/custom_certificates.py
+++ b/src/cloudflare/resources/custom_certificates/custom_certificates.py
@@ -8,10 +8,13 @@
import httpx
from ...types import (
+ BundleMethod,
CustomCertificate,
GeoRestrictionsParam,
+ CustomCertificateGetResponse,
+ CustomCertificateEditResponse,
+ CustomCertificateCreateResponse,
CustomCertificateDeleteResponse,
- UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1,
custom_certificate_edit_params,
custom_certificate_list_params,
custom_certificate_create_params,
@@ -44,7 +47,6 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["CustomCertificates", "AsyncCustomCertificates"]
@@ -68,7 +70,7 @@ def create(
zone_id: str,
certificate: str,
private_key: str,
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 | NotGiven = NOT_GIVEN,
+ bundle_method: BundleMethod | NotGiven = NOT_GIVEN,
geo_restrictions: GeoRestrictionsParam | NotGiven = NOT_GIVEN,
policy: str | NotGiven = NOT_GIVEN,
type: Literal["legacy_custom", "sni_custom"] | NotGiven = NOT_GIVEN,
@@ -78,7 +80,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CustomCertificateCreateResponse:
"""
Upload a new SSL certificate for a zone.
@@ -126,7 +128,7 @@ def create(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CustomCertificateCreateResponse,
self._post(
f"/zones/{zone_id}/custom_certificates",
body=maybe_transform(
@@ -148,7 +150,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CustomCertificateCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -269,7 +271,7 @@ def edit(
custom_certificate_id: str,
*,
zone_id: str,
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 | NotGiven = NOT_GIVEN,
+ bundle_method: BundleMethod | NotGiven = NOT_GIVEN,
certificate: str | NotGiven = NOT_GIVEN,
geo_restrictions: GeoRestrictionsParam | NotGiven = NOT_GIVEN,
policy: str | NotGiven = NOT_GIVEN,
@@ -280,7 +282,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CustomCertificateEditResponse:
"""Upload a new private key and/or PEM/CRT for the SSL certificate.
Note: PATCHing
@@ -334,7 +336,7 @@ def edit(
f"Expected a non-empty value for `custom_certificate_id` but received {custom_certificate_id!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CustomCertificateEditResponse,
self._patch(
f"/zones/{zone_id}/custom_certificates/{custom_certificate_id}",
body=maybe_transform(
@@ -355,7 +357,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CustomCertificateEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -371,7 +373,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CustomCertificateGetResponse:
"""
SSL Configuration Details
@@ -395,7 +397,7 @@ def get(
f"Expected a non-empty value for `custom_certificate_id` but received {custom_certificate_id!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CustomCertificateGetResponse,
self._get(
f"/zones/{zone_id}/custom_certificates/{custom_certificate_id}",
options=make_request_options(
@@ -406,7 +408,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CustomCertificateGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -431,7 +433,7 @@ async def create(
zone_id: str,
certificate: str,
private_key: str,
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 | NotGiven = NOT_GIVEN,
+ bundle_method: BundleMethod | NotGiven = NOT_GIVEN,
geo_restrictions: GeoRestrictionsParam | NotGiven = NOT_GIVEN,
policy: str | NotGiven = NOT_GIVEN,
type: Literal["legacy_custom", "sni_custom"] | NotGiven = NOT_GIVEN,
@@ -441,7 +443,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CustomCertificateCreateResponse:
"""
Upload a new SSL certificate for a zone.
@@ -489,7 +491,7 @@ async def create(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CustomCertificateCreateResponse,
await self._post(
f"/zones/{zone_id}/custom_certificates",
body=await async_maybe_transform(
@@ -511,7 +513,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CustomCertificateCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -632,7 +634,7 @@ async def edit(
custom_certificate_id: str,
*,
zone_id: str,
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 | NotGiven = NOT_GIVEN,
+ bundle_method: BundleMethod | NotGiven = NOT_GIVEN,
certificate: str | NotGiven = NOT_GIVEN,
geo_restrictions: GeoRestrictionsParam | NotGiven = NOT_GIVEN,
policy: str | NotGiven = NOT_GIVEN,
@@ -643,7 +645,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CustomCertificateEditResponse:
"""Upload a new private key and/or PEM/CRT for the SSL certificate.
Note: PATCHing
@@ -697,7 +699,7 @@ async def edit(
f"Expected a non-empty value for `custom_certificate_id` but received {custom_certificate_id!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CustomCertificateEditResponse,
await self._patch(
f"/zones/{zone_id}/custom_certificates/{custom_certificate_id}",
body=await async_maybe_transform(
@@ -718,7 +720,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CustomCertificateEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -734,7 +736,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CustomCertificateGetResponse:
"""
SSL Configuration Details
@@ -758,7 +760,7 @@ async def get(
f"Expected a non-empty value for `custom_certificate_id` but received {custom_certificate_id!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CustomCertificateGetResponse,
await self._get(
f"/zones/{zone_id}/custom_certificates/{custom_certificate_id}",
options=make_request_options(
@@ -769,7 +771,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CustomCertificateGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
index 2d94a983400..843db8f0908 100644
--- a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
+++ b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py
@@ -8,7 +8,10 @@
import httpx
from ...types import (
- CustomHostname,
+ CustomHostnameGetResponse,
+ CustomHostnameEditResponse,
+ CustomHostnameListResponse,
+ CustomHostnameCreateResponse,
CustomHostnameDeleteResponse,
custom_hostname_edit_params,
custom_hostname_list_params,
@@ -72,7 +75,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CustomHostname:
+ ) -> CustomHostnameCreateResponse:
"""
Add a new custom hostname and request that an SSL certificate be issued for it.
One of three validation methods—http, txt, email—should be used, with 'http'
@@ -118,7 +121,7 @@ def create(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[CustomHostname], ResultWrapper[CustomHostname]),
+ cast_to=cast(Type[CustomHostnameCreateResponse], ResultWrapper[CustomHostnameCreateResponse]),
)
def list(
@@ -138,7 +141,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> SyncV4PagePaginationArray[CustomHostname]:
+ ) -> SyncV4PagePaginationArray[CustomHostnameListResponse]:
"""
List, search, sort, and filter all of your custom hostnames.
@@ -174,7 +177,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/custom_hostnames",
- page=SyncV4PagePaginationArray[CustomHostname],
+ page=SyncV4PagePaginationArray[CustomHostnameListResponse],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -193,7 +196,7 @@ def list(
custom_hostname_list_params.CustomHostnameListParams,
),
),
- model=CustomHostname,
+ model=CustomHostnameListResponse,
)
def delete(
@@ -253,7 +256,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CustomHostname:
+ ) -> CustomHostnameEditResponse:
"""Modify SSL configuration for a custom hostname.
When sent with SSL config that
@@ -309,7 +312,7 @@ def edit(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[CustomHostname], ResultWrapper[CustomHostname]),
+ cast_to=cast(Type[CustomHostnameEditResponse], ResultWrapper[CustomHostnameEditResponse]),
)
def get(
@@ -323,7 +326,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CustomHostname:
+ ) -> CustomHostnameGetResponse:
"""
Custom Hostname Details
@@ -353,7 +356,7 @@ def get(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[CustomHostname], ResultWrapper[CustomHostname]),
+ cast_to=cast(Type[CustomHostnameGetResponse], ResultWrapper[CustomHostnameGetResponse]),
)
@@ -383,7 +386,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CustomHostname:
+ ) -> CustomHostnameCreateResponse:
"""
Add a new custom hostname and request that an SSL certificate be issued for it.
One of three validation methods—http, txt, email—should be used, with 'http'
@@ -429,7 +432,7 @@ async def create(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[CustomHostname], ResultWrapper[CustomHostname]),
+ cast_to=cast(Type[CustomHostnameCreateResponse], ResultWrapper[CustomHostnameCreateResponse]),
)
def list(
@@ -449,7 +452,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> AsyncPaginator[CustomHostname, AsyncV4PagePaginationArray[CustomHostname]]:
+ ) -> AsyncPaginator[CustomHostnameListResponse, AsyncV4PagePaginationArray[CustomHostnameListResponse]]:
"""
List, search, sort, and filter all of your custom hostnames.
@@ -485,7 +488,7 @@ def list(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._get_api_list(
f"/zones/{zone_id}/custom_hostnames",
- page=AsyncV4PagePaginationArray[CustomHostname],
+ page=AsyncV4PagePaginationArray[CustomHostnameListResponse],
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
@@ -504,7 +507,7 @@ def list(
custom_hostname_list_params.CustomHostnameListParams,
),
),
- model=CustomHostname,
+ model=CustomHostnameListResponse,
)
async def delete(
@@ -564,7 +567,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CustomHostname:
+ ) -> CustomHostnameEditResponse:
"""Modify SSL configuration for a custom hostname.
When sent with SSL config that
@@ -620,7 +623,7 @@ async def edit(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[CustomHostname], ResultWrapper[CustomHostname]),
+ cast_to=cast(Type[CustomHostnameEditResponse], ResultWrapper[CustomHostnameEditResponse]),
)
async def get(
@@ -634,7 +637,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> CustomHostname:
+ ) -> CustomHostnameGetResponse:
"""
Custom Hostname Details
@@ -664,7 +667,7 @@ async def get(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[CustomHostname], ResultWrapper[CustomHostname]),
+ cast_to=cast(Type[CustomHostnameGetResponse], ResultWrapper[CustomHostnameGetResponse]),
)
diff --git a/src/cloudflare/resources/custom_hostnames/fallback_origin.py b/src/cloudflare/resources/custom_hostnames/fallback_origin.py
index 5f221a567da..f5f725c8d56 100644
--- a/src/cloudflare/resources/custom_hostnames/fallback_origin.py
+++ b/src/cloudflare/resources/custom_hostnames/fallback_origin.py
@@ -23,8 +23,13 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ...types.custom_hostnames import fallback_origin_delete_params, fallback_origin_update_params
+from ...types.custom_hostnames import (
+ FallbackOriginGetResponse,
+ FallbackOriginDeleteResponse,
+ FallbackOriginUpdateResponse,
+ fallback_origin_delete_params,
+ fallback_origin_update_params,
+)
__all__ = ["FallbackOrigin", "AsyncFallbackOrigin"]
@@ -49,7 +54,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> FallbackOriginUpdateResponse:
"""
Update Fallback Origin for Custom Hostnames
@@ -69,7 +74,7 @@ def update(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ FallbackOriginUpdateResponse,
self._put(
f"/zones/{zone_id}/custom_hostnames/fallback_origin",
body=maybe_transform({"origin": origin}, fallback_origin_update_params.FallbackOriginUpdateParams),
@@ -81,7 +86,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[FallbackOriginUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -97,7 +102,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> FallbackOriginDeleteResponse:
"""
Delete Fallback Origin for Custom Hostnames
@@ -115,7 +120,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ FallbackOriginDeleteResponse,
self._delete(
f"/zones/{zone_id}/custom_hostnames/fallback_origin",
body=maybe_transform(body, fallback_origin_delete_params.FallbackOriginDeleteParams),
@@ -127,7 +132,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[FallbackOriginDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -142,7 +147,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> FallbackOriginGetResponse:
"""
Get Fallback Origin for Custom Hostnames
@@ -160,7 +165,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ FallbackOriginGetResponse,
self._get(
f"/zones/{zone_id}/custom_hostnames/fallback_origin",
options=make_request_options(
@@ -171,7 +176,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[FallbackOriginGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -197,7 +202,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> FallbackOriginUpdateResponse:
"""
Update Fallback Origin for Custom Hostnames
@@ -217,7 +222,7 @@ async def update(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ FallbackOriginUpdateResponse,
await self._put(
f"/zones/{zone_id}/custom_hostnames/fallback_origin",
body=await async_maybe_transform(
@@ -231,7 +236,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[FallbackOriginUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -247,7 +252,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> FallbackOriginDeleteResponse:
"""
Delete Fallback Origin for Custom Hostnames
@@ -265,7 +270,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ FallbackOriginDeleteResponse,
await self._delete(
f"/zones/{zone_id}/custom_hostnames/fallback_origin",
body=await async_maybe_transform(body, fallback_origin_delete_params.FallbackOriginDeleteParams),
@@ -277,7 +282,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[FallbackOriginDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -292,7 +297,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> FallbackOriginGetResponse:
"""
Get Fallback Origin for Custom Hostnames
@@ -310,7 +315,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ FallbackOriginGetResponse,
await self._get(
f"/zones/{zone_id}/custom_hostnames/fallback_origin",
options=make_request_options(
@@ -321,7 +326,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[FallbackOriginGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/d1/database.py b/src/cloudflare/resources/d1/database.py
index 516a55c90a9..63765c014b2 100644
--- a/src/cloudflare/resources/d1/database.py
+++ b/src/cloudflare/resources/d1/database.py
@@ -17,6 +17,7 @@
DatabaseListResponse,
DatabaseQueryResponse,
DatabaseCreateResponse,
+ DatabaseDeleteResponse,
database_list_params,
database_query_params,
database_create_params,
@@ -34,7 +35,6 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Database", "AsyncDatabase"]
@@ -156,7 +156,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> DatabaseDeleteResponse:
"""
Deletes the specified D1 database.
@@ -178,7 +178,7 @@ def delete(
f"Expected a non-empty value for `database_identifier` but received {database_identifier!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ DatabaseDeleteResponse,
self._delete(
f"/accounts/{account_identifier}/d1/database/{database_identifier}",
options=make_request_options(
@@ -189,7 +189,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[DatabaseDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -409,7 +409,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> DatabaseDeleteResponse:
"""
Deletes the specified D1 database.
@@ -431,7 +431,7 @@ async def delete(
f"Expected a non-empty value for `database_identifier` but received {database_identifier!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ DatabaseDeleteResponse,
await self._delete(
f"/accounts/{account_identifier}/d1/database/{database_identifier}",
options=make_request_options(
@@ -442,7 +442,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[DatabaseDeleteResponse]
), # 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 eeb7875093b..6e5eb3dab16 100644
--- a/src/cloudflare/resources/firewall/access_rules.py
+++ b/src/cloudflare/resources/firewall/access_rules.py
@@ -26,8 +26,10 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from ...types.firewall import (
+ AccessRuleGetResponse,
+ AccessRuleEditResponse,
+ AccessRuleCreateResponse,
AccessRuleDeleteResponse,
access_rule_edit_params,
access_rule_list_params,
@@ -61,7 +63,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccessRuleCreateResponse:
"""Creates a new IP Access rule for an account or zone.
The rule will apply to all
@@ -105,7 +107,7 @@ def create(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccessRuleCreateResponse,
self._post(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules",
body=maybe_transform(
@@ -124,7 +126,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccessRuleCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -287,7 +289,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccessRuleEditResponse:
"""
Updates an IP Access rule defined.
@@ -328,7 +330,7 @@ def edit(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccessRuleEditResponse,
self._patch(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
body=maybe_transform(
@@ -347,7 +349,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccessRuleEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -364,7 +366,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccessRuleGetResponse:
"""
Fetches the details of an IP Access rule defined.
@@ -397,7 +399,7 @@ def get(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccessRuleGetResponse,
self._get(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
options=make_request_options(
@@ -408,7 +410,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccessRuleGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -437,7 +439,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccessRuleCreateResponse:
"""Creates a new IP Access rule for an account or zone.
The rule will apply to all
@@ -481,7 +483,7 @@ async def create(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccessRuleCreateResponse,
await self._post(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules",
body=await async_maybe_transform(
@@ -500,7 +502,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccessRuleCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -663,7 +665,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccessRuleEditResponse:
"""
Updates an IP Access rule defined.
@@ -704,7 +706,7 @@ async def edit(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccessRuleEditResponse,
await self._patch(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
body=await async_maybe_transform(
@@ -723,7 +725,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccessRuleEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -740,7 +742,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AccessRuleGetResponse:
"""
Fetches the details of an IP Access rule defined.
@@ -773,7 +775,7 @@ async def get(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AccessRuleGetResponse,
await self._get(
f"/{account_or_zone}/{account_or_zone_id}/firewall/access_rules/rules/{identifier}",
options=make_request_options(
@@ -784,7 +786,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AccessRuleGetResponse]
), # 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 f27c54383dc..93e2639b9fb 100644
--- a/src/cloudflare/resources/firewall/ua_rules.py
+++ b/src/cloudflare/resources/firewall/ua_rules.py
@@ -25,10 +25,12 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from ...types.firewall import (
+ UARuleGetResponse,
UARuleListResponse,
+ UARuleCreateResponse,
UARuleDeleteResponse,
+ UARuleUpdateResponse,
ua_rule_list_params,
ua_rule_create_params,
ua_rule_delete_params,
@@ -58,7 +60,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UARuleCreateResponse:
"""
Creates a new User Agent Blocking rule in a zone.
@@ -76,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UARuleCreateResponse,
self._post(
f"/zones/{zone_identifier}/firewall/ua_rules",
body=maybe_transform(body, ua_rule_create_params.UARuleCreateParams),
@@ -88,7 +90,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UARuleCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -105,7 +107,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UARuleUpdateResponse:
"""
Updates an existing User Agent Blocking rule.
@@ -127,7 +129,7 @@ def update(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UARuleUpdateResponse,
self._put(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
body=maybe_transform(body, ua_rule_update_params.UARuleUpdateParams),
@@ -139,7 +141,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UARuleUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -268,7 +270,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UARuleGetResponse:
"""
Fetches the details of a User Agent Blocking rule.
@@ -290,7 +292,7 @@ def get(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UARuleGetResponse,
self._get(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
options=make_request_options(
@@ -301,7 +303,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UARuleGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -327,7 +329,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UARuleCreateResponse:
"""
Creates a new User Agent Blocking rule in a zone.
@@ -345,7 +347,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UARuleCreateResponse,
await self._post(
f"/zones/{zone_identifier}/firewall/ua_rules",
body=await async_maybe_transform(body, ua_rule_create_params.UARuleCreateParams),
@@ -357,7 +359,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UARuleCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -374,7 +376,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UARuleUpdateResponse:
"""
Updates an existing User Agent Blocking rule.
@@ -396,7 +398,7 @@ async def update(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UARuleUpdateResponse,
await self._put(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
body=await async_maybe_transform(body, ua_rule_update_params.UARuleUpdateParams),
@@ -408,7 +410,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UARuleUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -537,7 +539,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UARuleGetResponse:
"""
Fetches the details of a User Agent Blocking rule.
@@ -559,7 +561,7 @@ async def get(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UARuleGetResponse,
await self._get(
f"/zones/{zone_identifier}/firewall/ua_rules/{id}",
options=make_request_options(
@@ -570,7 +572,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UARuleGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/firewall/waf/packages/groups.py b/src/cloudflare/resources/firewall/waf/packages/groups.py
index cc56aa33724..6b1531faf5b 100644
--- a/src/cloudflare/resources/firewall/waf/packages/groups.py
+++ b/src/cloudflare/resources/firewall/waf/packages/groups.py
@@ -26,8 +26,13 @@
AsyncPaginator,
make_request_options,
)
-from .....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from .....types.firewall.waf.packages import Group, group_edit_params, group_list_params
+from .....types.firewall.waf.packages import (
+ Group,
+ GroupGetResponse,
+ GroupEditResponse,
+ group_edit_params,
+ group_list_params,
+)
__all__ = ["Groups", "AsyncGroups"]
@@ -140,7 +145,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> GroupEditResponse:
"""Updates a WAF rule group.
You can update the state (`mode` parameter) of a rule
@@ -174,7 +179,7 @@ def edit(
if not group_id:
raise ValueError(f"Expected a non-empty value for `group_id` but received {group_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ GroupEditResponse,
self._patch(
f"/zones/{zone_id}/firewall/waf/packages/{package_id}/groups/{group_id}",
body=maybe_transform({"mode": mode}, group_edit_params.GroupEditParams),
@@ -186,7 +191,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[GroupEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -203,7 +208,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> GroupGetResponse:
"""
Fetches the details of a WAF rule group.
@@ -232,7 +237,7 @@ def get(
if not group_id:
raise ValueError(f"Expected a non-empty value for `group_id` but received {group_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ GroupGetResponse,
self._get(
f"/zones/{zone_id}/firewall/waf/packages/{package_id}/groups/{group_id}",
options=make_request_options(
@@ -243,7 +248,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[GroupGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -357,7 +362,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> GroupEditResponse:
"""Updates a WAF rule group.
You can update the state (`mode` parameter) of a rule
@@ -391,7 +396,7 @@ async def edit(
if not group_id:
raise ValueError(f"Expected a non-empty value for `group_id` but received {group_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ GroupEditResponse,
await self._patch(
f"/zones/{zone_id}/firewall/waf/packages/{package_id}/groups/{group_id}",
body=await async_maybe_transform({"mode": mode}, group_edit_params.GroupEditParams),
@@ -403,7 +408,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[GroupEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -420,7 +425,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> GroupGetResponse:
"""
Fetches the details of a WAF rule group.
@@ -449,7 +454,7 @@ async def get(
if not group_id:
raise ValueError(f"Expected a non-empty value for `group_id` but received {group_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ GroupGetResponse,
await self._get(
f"/zones/{zone_id}/firewall/waf/packages/{package_id}/groups/{group_id}",
options=make_request_options(
@@ -460,7 +465,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[GroupGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/firewall/waf/packages/rules.py b/src/cloudflare/resources/firewall/waf/packages/rules.py
index d1a4f4f456f..742f12db92a 100644
--- a/src/cloudflare/resources/firewall/waf/packages/rules.py
+++ b/src/cloudflare/resources/firewall/waf/packages/rules.py
@@ -26,8 +26,13 @@
AsyncPaginator,
make_request_options,
)
-from .....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from .....types.firewall.waf.packages import RuleEditResponse, RuleListResponse, rule_edit_params, rule_list_params
+from .....types.firewall.waf.packages import (
+ RuleGetResponse,
+ RuleEditResponse,
+ RuleListResponse,
+ rule_edit_params,
+ rule_list_params,
+)
__all__ = ["Rules", "AsyncRules"]
@@ -205,7 +210,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RuleGetResponse:
"""
Fetches the details of a WAF rule in a WAF package.
@@ -234,7 +239,7 @@ def get(
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RuleGetResponse,
self._get(
f"/zones/{zone_id}/firewall/waf/packages/{package_id}/rules/{rule_id}",
options=make_request_options(
@@ -245,7 +250,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RuleGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -424,7 +429,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RuleGetResponse:
"""
Fetches the details of a WAF rule in a WAF package.
@@ -453,7 +458,7 @@ async def get(
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RuleGetResponse,
await self._get(
f"/zones/{zone_id}/firewall/waf/packages/{package_id}/rules/{rule_id}",
options=make_request_options(
@@ -464,7 +469,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RuleGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/hyperdrive/configs.py b/src/cloudflare/resources/hyperdrive/configs.py
index b412f91877f..37422cccc90 100644
--- a/src/cloudflare/resources/hyperdrive/configs.py
+++ b/src/cloudflare/resources/hyperdrive/configs.py
@@ -26,8 +26,7 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ...types.hyperdrive import config_edit_params, config_create_params, config_update_params
+from ...types.hyperdrive import ConfigDeleteResponse, config_edit_params, config_create_params, config_update_params
__all__ = ["Configs", "AsyncConfigs"]
@@ -189,7 +188,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ConfigDeleteResponse:
"""
Deletes the specified Hyperdrive.
@@ -211,7 +210,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ConfigDeleteResponse,
self._delete(
f"/accounts/{account_id}/hyperdrive/configs/{hyperdrive_id}",
options=make_request_options(
@@ -222,7 +221,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ConfigDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -477,7 +476,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ConfigDeleteResponse:
"""
Deletes the specified Hyperdrive.
@@ -499,7 +498,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ConfigDeleteResponse,
await self._delete(
f"/accounts/{account_id}/hyperdrive/configs/{hyperdrive_id}",
options=make_request_options(
@@ -510,7 +509,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ConfigDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/images/v1/v1.py b/src/cloudflare/resources/images/v1/v1.py
index e3f746b1d80..23e46dc8367 100644
--- a/src/cloudflare/resources/images/v1/v1.py
+++ b/src/cloudflare/resources/images/v1/v1.py
@@ -57,8 +57,15 @@
AsyncPaginator,
make_request_options,
)
-from ....types.images import Image, V1ListResponse, v1_edit_params, v1_list_params, v1_create_params, v1_delete_params
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from ....types.images import (
+ Image,
+ V1ListResponse,
+ V1DeleteResponse,
+ v1_edit_params,
+ v1_list_params,
+ v1_create_params,
+ v1_delete_params,
+)
__all__ = ["V1", "AsyncV1"]
@@ -218,7 +225,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> V1DeleteResponse:
"""Delete an image on Cloudflare Images.
On success, all copies of the image are
@@ -242,7 +249,7 @@ def delete(
if not image_id:
raise ValueError(f"Expected a non-empty value for `image_id` but received {image_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ V1DeleteResponse,
self._delete(
f"/accounts/{account_id}/images/v1/{image_id}",
body=maybe_transform(body, v1_delete_params.V1DeleteParams),
@@ -254,7 +261,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[V1DeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -521,7 +528,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> V1DeleteResponse:
"""Delete an image on Cloudflare Images.
On success, all copies of the image are
@@ -545,7 +552,7 @@ async def delete(
if not image_id:
raise ValueError(f"Expected a non-empty value for `image_id` but received {image_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ V1DeleteResponse,
await self._delete(
f"/accounts/{account_id}/images/v1/{image_id}",
body=await async_maybe_transform(body, v1_delete_params.V1DeleteParams),
@@ -557,7 +564,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[V1DeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/images/v1/variants.py b/src/cloudflare/resources/images/v1/variants.py
index 462f999bb9f..3f06a0ed1a9 100644
--- a/src/cloudflare/resources/images/v1/variants.py
+++ b/src/cloudflare/resources/images/v1/variants.py
@@ -23,12 +23,12 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from ....types.images.v1 import (
Variant,
VariantGetResponse,
VariantEditResponse,
VariantCreateResponse,
+ VariantDeleteResponse,
variant_edit_params,
variant_create_params,
variant_delete_params,
@@ -152,7 +152,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> VariantDeleteResponse:
"""
Deleting a variant purges the cache for all images associated with the variant.
@@ -172,7 +172,7 @@ def delete(
if not variant_id:
raise ValueError(f"Expected a non-empty value for `variant_id` but received {variant_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ VariantDeleteResponse,
self._delete(
f"/accounts/{account_id}/images/v1/variants/{variant_id}",
body=maybe_transform(body, variant_delete_params.VariantDeleteParams),
@@ -184,7 +184,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[VariantDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -403,7 +403,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> VariantDeleteResponse:
"""
Deleting a variant purges the cache for all images associated with the variant.
@@ -423,7 +423,7 @@ async def delete(
if not variant_id:
raise ValueError(f"Expected a non-empty value for `variant_id` but received {variant_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ VariantDeleteResponse,
await self._delete(
f"/accounts/{account_id}/images/v1/variants/{variant_id}",
body=await async_maybe_transform(body, variant_delete_params.VariantDeleteParams),
@@ -435,7 +435,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[VariantDeleteResponse]
), # 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 e0f813a8ebc..75b1888a6bf 100644
--- a/src/cloudflare/resources/keyless_certificates.py
+++ b/src/cloudflare/resources/keyless_certificates.py
@@ -9,9 +9,9 @@
from ..types import (
Hostname,
TunnelParam,
+ BundleMethod,
KeylessCertificate,
KeylessCertificateDeleteResponse,
- UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1,
keyless_certificate_edit_params,
keyless_certificate_create_params,
keyless_certificate_delete_params,
@@ -55,7 +55,7 @@ def create(
certificate: str,
host: str,
port: float,
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 | NotGiven = NOT_GIVEN,
+ bundle_method: BundleMethod | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
tunnel: TunnelParam | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -341,7 +341,7 @@ async def create(
certificate: str,
host: str,
port: float,
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 | NotGiven = NOT_GIVEN,
+ bundle_method: BundleMethod | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
tunnel: TunnelParam | 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/load_balancers/regions.py b/src/cloudflare/resources/load_balancers/regions.py
index 0f7281f4034..eb787f86d2d 100644
--- a/src/cloudflare/resources/load_balancers/regions.py
+++ b/src/cloudflare/resources/load_balancers/regions.py
@@ -24,8 +24,7 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ...types.load_balancers import RegionGetResponse, region_list_params
+from ...types.load_balancers import RegionGetResponse, RegionListResponse, region_list_params
__all__ = ["Regions", "AsyncRegions"]
@@ -52,7 +51,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RegionListResponse:
"""
List all region mappings.
@@ -76,7 +75,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RegionListResponse,
self._get(
f"/accounts/{account_id}/load_balancers/regions",
options=make_request_options(
@@ -95,7 +94,7 @@ def list(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RegionListResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -178,7 +177,7 @@ async def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RegionListResponse:
"""
List all region mappings.
@@ -202,7 +201,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RegionListResponse,
await self._get(
f"/accounts/{account_id}/load_balancers/regions",
options=make_request_options(
@@ -221,7 +220,7 @@ async def list(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RegionListResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/memberships.py b/src/cloudflare/resources/memberships.py
index 0f7b7c2b225..b8eef5abc76 100644
--- a/src/cloudflare/resources/memberships.py
+++ b/src/cloudflare/resources/memberships.py
@@ -9,7 +9,9 @@
from ..types import (
Membership,
+ MembershipGetResponse,
MembershipDeleteResponse,
+ MembershipUpdateResponse,
membership_list_params,
membership_delete_params,
membership_update_params,
@@ -33,7 +35,6 @@
AsyncPaginator,
make_request_options,
)
-from ..types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Memberships", "AsyncMemberships"]
@@ -58,7 +59,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> MembershipUpdateResponse:
"""
Accept or reject this account invitation.
@@ -78,7 +79,7 @@ def update(
if not membership_id:
raise ValueError(f"Expected a non-empty value for `membership_id` but received {membership_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ MembershipUpdateResponse,
self._put(
f"/memberships/{membership_id}",
body=maybe_transform({"status": status}, membership_update_params.MembershipUpdateParams),
@@ -90,7 +91,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[MembershipUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -211,7 +212,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> MembershipGetResponse:
"""
Get a specific membership.
@@ -229,7 +230,7 @@ def get(
if not membership_id:
raise ValueError(f"Expected a non-empty value for `membership_id` but received {membership_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ MembershipGetResponse,
self._get(
f"/memberships/{membership_id}",
options=make_request_options(
@@ -240,7 +241,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[MembershipGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -266,7 +267,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> MembershipUpdateResponse:
"""
Accept or reject this account invitation.
@@ -286,7 +287,7 @@ async def update(
if not membership_id:
raise ValueError(f"Expected a non-empty value for `membership_id` but received {membership_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ MembershipUpdateResponse,
await self._put(
f"/memberships/{membership_id}",
body=await async_maybe_transform({"status": status}, membership_update_params.MembershipUpdateParams),
@@ -298,7 +299,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[MembershipUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -419,7 +420,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> MembershipGetResponse:
"""
Get a specific membership.
@@ -437,7 +438,7 @@ async def get(
if not membership_id:
raise ValueError(f"Expected a non-empty value for `membership_id` but received {membership_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ MembershipGetResponse,
await self._get(
f"/memberships/{membership_id}",
options=make_request_options(
@@ -448,7 +449,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[MembershipGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/origin_ca_certificates.py b/src/cloudflare/resources/origin_ca_certificates.py
index 0e223984f29..3859b2a5c33 100644
--- a/src/cloudflare/resources/origin_ca_certificates.py
+++ b/src/cloudflare/resources/origin_ca_certificates.py
@@ -9,6 +9,8 @@
from ..types import (
OriginCACertificate,
+ OriginCACertificateGetResponse,
+ OriginCACertificateCreateResponse,
OriginCACertificateDeleteResponse,
origin_ca_certificate_list_params,
origin_ca_certificate_create_params,
@@ -33,7 +35,6 @@
AsyncPaginator,
make_request_options,
)
-from ..types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["OriginCACertificates", "AsyncOriginCACertificates"]
@@ -60,7 +61,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginCACertificateCreateResponse:
"""Create an Origin CA certificate.
Use your Origin CA Key as your User Service Key
@@ -86,7 +87,7 @@ def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginCACertificateCreateResponse,
self._post(
"/certificates",
body=maybe_transform(
@@ -106,7 +107,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginCACertificateCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -208,7 +209,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginCACertificateGetResponse:
"""Get an existing Origin CA certificate by its serial number.
Use your Origin CA
@@ -229,7 +230,7 @@ def get(
if not certificate_id:
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginCACertificateGetResponse,
self._get(
f"/certificates/{certificate_id}",
options=make_request_options(
@@ -240,7 +241,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginCACertificateGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -268,7 +269,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginCACertificateCreateResponse:
"""Create an Origin CA certificate.
Use your Origin CA Key as your User Service Key
@@ -294,7 +295,7 @@ async def create(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginCACertificateCreateResponse,
await self._post(
"/certificates",
body=await async_maybe_transform(
@@ -314,7 +315,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginCACertificateCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -416,7 +417,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginCACertificateGetResponse:
"""Get an existing Origin CA certificate by its serial number.
Use your Origin CA
@@ -437,7 +438,7 @@ async def get(
if not certificate_id:
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginCACertificateGetResponse,
await self._get(
f"/certificates/{certificate_id}",
options=make_request_options(
@@ -448,7 +449,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginCACertificateGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/origin_post_quantum_encryption.py b/src/cloudflare/resources/origin_post_quantum_encryption.py
index ae590661992..084104ad3fa 100644
--- a/src/cloudflare/resources/origin_post_quantum_encryption.py
+++ b/src/cloudflare/resources/origin_post_quantum_encryption.py
@@ -7,7 +7,11 @@
import httpx
-from ..types import origin_post_quantum_encryption_update_params
+from ..types import (
+ OriginPostQuantumEncryptionGetResponse,
+ OriginPostQuantumEncryptionUpdateResponse,
+ origin_post_quantum_encryption_update_params,
+)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
@@ -25,7 +29,6 @@
from .._base_client import (
make_request_options,
)
-from ..types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["OriginPostQuantumEncryption", "AsyncOriginPostQuantumEncryption"]
@@ -50,7 +53,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginPostQuantumEncryptionUpdateResponse:
"""
Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when
connecting to your origin. Preferred instructs Cloudflare to opportunistically
@@ -75,7 +78,7 @@ def update(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginPostQuantumEncryptionUpdateResponse,
self._put(
f"/zones/{zone_id}/cache/origin_post_quantum_encryption",
body=maybe_transform(
@@ -90,7 +93,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginPostQuantumEncryptionUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -105,7 +108,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginPostQuantumEncryptionGetResponse:
"""
Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when
connecting to your origin. Preferred instructs Cloudflare to opportunistically
@@ -128,7 +131,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginPostQuantumEncryptionGetResponse,
self._get(
f"/zones/{zone_id}/cache/origin_post_quantum_encryption",
options=make_request_options(
@@ -139,7 +142,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginPostQuantumEncryptionGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -165,7 +168,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginPostQuantumEncryptionUpdateResponse:
"""
Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when
connecting to your origin. Preferred instructs Cloudflare to opportunistically
@@ -190,7 +193,7 @@ async def update(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginPostQuantumEncryptionUpdateResponse,
await self._put(
f"/zones/{zone_id}/cache/origin_post_quantum_encryption",
body=await async_maybe_transform(
@@ -205,7 +208,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginPostQuantumEncryptionUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -220,7 +223,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginPostQuantumEncryptionGetResponse:
"""
Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when
connecting to your origin. Preferred instructs Cloudflare to opportunistically
@@ -243,7 +246,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginPostQuantumEncryptionGetResponse,
await self._get(
f"/zones/{zone_id}/cache/origin_post_quantum_encryption",
options=make_request_options(
@@ -254,7 +257,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginPostQuantumEncryptionGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py b/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
index 0a1c7d5ddfb..a92d927e632 100644
--- a/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
+++ b/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py
@@ -8,6 +8,9 @@
from ...types import (
ZoneAuthenticatedOriginPull,
+ OriginTLSClientAuthGetResponse,
+ OriginTLSClientAuthCreateResponse,
+ OriginTLSClientAuthDeleteResponse,
origin_tls_client_auth_create_params,
origin_tls_client_auth_delete_params,
)
@@ -46,7 +49,6 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from .hostnames.hostnames import Hostnames, AsyncHostnames
__all__ = ["OriginTLSClientAuth", "AsyncOriginTLSClientAuth"]
@@ -81,7 +83,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginTLSClientAuthCreateResponse:
"""
Upload your own certificate you want Cloudflare to use for edge-to-origin
communication to override the shared certificate. Please note that it is
@@ -107,7 +109,7 @@ def create(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginTLSClientAuthCreateResponse,
self._post(
f"/zones/{zone_id}/origin_tls_client_auth",
body=maybe_transform(
@@ -125,7 +127,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginTLSClientAuthCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -178,7 +180,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginTLSClientAuthDeleteResponse:
"""
Delete Certificate
@@ -200,7 +202,7 @@ def delete(
if not certificate_id:
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginTLSClientAuthDeleteResponse,
self._delete(
f"/zones/{zone_id}/origin_tls_client_auth/{certificate_id}",
body=maybe_transform(body, origin_tls_client_auth_delete_params.OriginTLSClientAuthDeleteParams),
@@ -212,7 +214,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginTLSClientAuthDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -228,7 +230,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginTLSClientAuthGetResponse:
"""
Get Certificate Details
@@ -250,7 +252,7 @@ def get(
if not certificate_id:
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginTLSClientAuthGetResponse,
self._get(
f"/zones/{zone_id}/origin_tls_client_auth/{certificate_id}",
options=make_request_options(
@@ -261,7 +263,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginTLSClientAuthGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -296,7 +298,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginTLSClientAuthCreateResponse:
"""
Upload your own certificate you want Cloudflare to use for edge-to-origin
communication to override the shared certificate. Please note that it is
@@ -322,7 +324,7 @@ async def create(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginTLSClientAuthCreateResponse,
await self._post(
f"/zones/{zone_id}/origin_tls_client_auth",
body=await async_maybe_transform(
@@ -340,7 +342,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginTLSClientAuthCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -393,7 +395,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginTLSClientAuthDeleteResponse:
"""
Delete Certificate
@@ -415,7 +417,7 @@ async def delete(
if not certificate_id:
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginTLSClientAuthDeleteResponse,
await self._delete(
f"/zones/{zone_id}/origin_tls_client_auth/{certificate_id}",
body=await async_maybe_transform(
@@ -429,7 +431,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginTLSClientAuthDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -445,7 +447,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OriginTLSClientAuthGetResponse:
"""
Get Certificate Details
@@ -467,7 +469,7 @@ async def get(
if not certificate_id:
raise ValueError(f"Expected a non-empty value for `certificate_id` but received {certificate_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OriginTLSClientAuthGetResponse,
await self._get(
f"/zones/{zone_id}/origin_tls_client_auth/{certificate_id}",
options=make_request_options(
@@ -478,7 +480,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OriginTLSClientAuthGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/pagerules/pagerules.py b/src/cloudflare/resources/pagerules/pagerules.py
index b63d394d3a7..ae8f577e9dc 100644
--- a/src/cloudflare/resources/pagerules/pagerules.py
+++ b/src/cloudflare/resources/pagerules/pagerules.py
@@ -10,8 +10,12 @@
from ...types import (
RouteParam,
TargesParam,
+ PageruleGetResponse,
+ PageruleEditResponse,
PageruleListResponse,
+ PageruleCreateResponse,
PageruleDeleteResponse,
+ PageruleUpdateResponse,
pagerule_edit_params,
pagerule_list_params,
pagerule_create_params,
@@ -43,7 +47,6 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Pagerules", "AsyncPagerules"]
@@ -75,7 +78,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> PageruleCreateResponse:
"""
Creates a new Page Rule.
@@ -106,7 +109,7 @@ def create(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ PageruleCreateResponse,
self._post(
f"/zones/{zone_id}/pagerules",
body=maybe_transform(
@@ -126,7 +129,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[PageruleCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -146,7 +149,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> PageruleUpdateResponse:
"""Replaces the configuration of an existing Page Rule.
The configuration of the
@@ -183,7 +186,7 @@ def update(
if not pagerule_id:
raise ValueError(f"Expected a non-empty value for `pagerule_id` but received {pagerule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ PageruleUpdateResponse,
self._put(
f"/zones/{zone_id}/pagerules/{pagerule_id}",
body=maybe_transform(
@@ -203,7 +206,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[PageruleUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -330,7 +333,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> PageruleEditResponse:
"""
Updates one or more fields of an existing Page Rule.
@@ -365,7 +368,7 @@ def edit(
if not pagerule_id:
raise ValueError(f"Expected a non-empty value for `pagerule_id` but received {pagerule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ PageruleEditResponse,
self._patch(
f"/zones/{zone_id}/pagerules/{pagerule_id}",
body=maybe_transform(
@@ -385,7 +388,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[PageruleEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -401,7 +404,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> PageruleGetResponse:
"""
Fetches the details of a Page Rule.
@@ -423,7 +426,7 @@ def get(
if not pagerule_id:
raise ValueError(f"Expected a non-empty value for `pagerule_id` but received {pagerule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ PageruleGetResponse,
self._get(
f"/zones/{zone_id}/pagerules/{pagerule_id}",
options=make_request_options(
@@ -434,7 +437,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[PageruleGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -467,7 +470,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> PageruleCreateResponse:
"""
Creates a new Page Rule.
@@ -498,7 +501,7 @@ async def create(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ PageruleCreateResponse,
await self._post(
f"/zones/{zone_id}/pagerules",
body=await async_maybe_transform(
@@ -518,7 +521,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[PageruleCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -538,7 +541,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> PageruleUpdateResponse:
"""Replaces the configuration of an existing Page Rule.
The configuration of the
@@ -575,7 +578,7 @@ async def update(
if not pagerule_id:
raise ValueError(f"Expected a non-empty value for `pagerule_id` but received {pagerule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ PageruleUpdateResponse,
await self._put(
f"/zones/{zone_id}/pagerules/{pagerule_id}",
body=await async_maybe_transform(
@@ -595,7 +598,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[PageruleUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -722,7 +725,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> PageruleEditResponse:
"""
Updates one or more fields of an existing Page Rule.
@@ -757,7 +760,7 @@ async def edit(
if not pagerule_id:
raise ValueError(f"Expected a non-empty value for `pagerule_id` but received {pagerule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ PageruleEditResponse,
await self._patch(
f"/zones/{zone_id}/pagerules/{pagerule_id}",
body=await async_maybe_transform(
@@ -777,7 +780,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[PageruleEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -793,7 +796,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> PageruleGetResponse:
"""
Fetches the details of a Page Rule.
@@ -815,7 +818,7 @@ async def get(
if not pagerule_id:
raise ValueError(f"Expected a non-empty value for `pagerule_id` but received {pagerule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ PageruleGetResponse,
await self._get(
f"/zones/{zone_id}/pagerules/{pagerule_id}",
options=make_request_options(
@@ -826,7 +829,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[PageruleGetResponse]
), # 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 7ccf7855517..3f41b23397d 100644
--- a/src/cloudflare/resources/rate_limits.py
+++ b/src/cloudflare/resources/rate_limits.py
@@ -8,6 +8,9 @@
from ..types import (
RateLimit,
+ RateLimitGetResponse,
+ RateLimitEditResponse,
+ RateLimitCreateResponse,
RateLimitDeleteResponse,
rate_limit_edit_params,
rate_limit_list_params,
@@ -33,7 +36,6 @@
AsyncPaginator,
make_request_options,
)
-from ..types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["RateLimits", "AsyncRateLimits"]
@@ -58,7 +60,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RateLimitCreateResponse:
"""Creates a new rate limit for a zone.
Refer to the object definition for a list
@@ -78,7 +80,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RateLimitCreateResponse,
self._post(
f"/zones/{zone_identifier}/rate_limits",
body=maybe_transform(body, rate_limit_create_params.RateLimitCreateParams),
@@ -90,7 +92,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RateLimitCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -206,7 +208,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RateLimitEditResponse:
"""
Updates an existing rate limit.
@@ -228,7 +230,7 @@ def edit(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RateLimitEditResponse,
self._put(
f"/zones/{zone_identifier}/rate_limits/{id}",
body=maybe_transform(body, rate_limit_edit_params.RateLimitEditParams),
@@ -240,7 +242,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RateLimitEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -256,7 +258,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RateLimitGetResponse:
"""
Fetches the details of a rate limit.
@@ -278,7 +280,7 @@ def get(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RateLimitGetResponse,
self._get(
f"/zones/{zone_identifier}/rate_limits/{id}",
options=make_request_options(
@@ -289,7 +291,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RateLimitGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -315,7 +317,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RateLimitCreateResponse:
"""Creates a new rate limit for a zone.
Refer to the object definition for a list
@@ -335,7 +337,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RateLimitCreateResponse,
await self._post(
f"/zones/{zone_identifier}/rate_limits",
body=await async_maybe_transform(body, rate_limit_create_params.RateLimitCreateParams),
@@ -347,7 +349,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RateLimitCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -463,7 +465,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RateLimitEditResponse:
"""
Updates an existing rate limit.
@@ -485,7 +487,7 @@ async def edit(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RateLimitEditResponse,
await self._put(
f"/zones/{zone_identifier}/rate_limits/{id}",
body=await async_maybe_transform(body, rate_limit_edit_params.RateLimitEditParams),
@@ -497,7 +499,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RateLimitEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -513,7 +515,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RateLimitGetResponse:
"""
Fetches the details of a rate limit.
@@ -535,7 +537,7 @@ async def get(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RateLimitGetResponse,
await self._get(
f"/zones/{zone_identifier}/rate_limits/{id}",
options=make_request_options(
@@ -546,7 +548,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RateLimitGetResponse]
), # 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 826ab6a3b4c..9855957ff1f 100644
--- a/src/cloudflare/resources/rulesets/rules.py
+++ b/src/cloudflare/resources/rulesets/rules.py
@@ -7,7 +7,6 @@
import httpx
-from ...types import shared_params
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
required_args,
@@ -27,6 +26,7 @@
make_request_options,
)
from ...types.rulesets import (
+ LoggingParam,
RuleEditResponse,
RuleCreateResponse,
RuleDeleteResponse,
@@ -59,7 +59,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -119,7 +119,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -179,7 +179,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -239,7 +239,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -302,7 +302,7 @@ def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -432,7 +432,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -493,7 +493,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -554,7 +554,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -615,7 +615,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -680,7 +680,7 @@ def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -756,7 +756,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -816,7 +816,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -876,7 +876,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -936,7 +936,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -999,7 +999,7 @@ async def create(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -1129,7 +1129,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -1190,7 +1190,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -1251,7 +1251,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -1312,7 +1312,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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.
@@ -1377,7 +1377,7 @@ async def edit(
description: str | NotGiven = NOT_GIVEN,
enabled: bool | NotGiven = NOT_GIVEN,
expression: str | NotGiven = NOT_GIVEN,
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c | NotGiven = NOT_GIVEN,
+ logging: LoggingParam | 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/spectrum/apps.py b/src/cloudflare/resources/spectrum/apps.py
index 811415fd0ad..d9bfbbabf05 100644
--- a/src/cloudflare/resources/spectrum/apps.py
+++ b/src/cloudflare/resources/spectrum/apps.py
@@ -32,8 +32,8 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from ...types.spectrum import (
+ AppGetResponse,
AppCreateResponse,
AppDeleteResponse,
AppUpdateResponse,
@@ -377,7 +377,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AppGetResponse:
"""
Gets the application configuration of a specific application inside a zone.
@@ -399,7 +399,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AppGetResponse,
self._get(
f"/zones/{zone}/spectrum/apps/{app_id}",
options=make_request_options(
@@ -410,7 +410,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AppGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -747,7 +747,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AppGetResponse:
"""
Gets the application configuration of a specific application inside a zone.
@@ -769,7 +769,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AppGetResponse,
await self._get(
f"/zones/{zone}/spectrum/apps/{app_id}",
options=make_request_options(
@@ -780,7 +780,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AppGetResponse]
), # 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 fa945749659..33a1710c516 100644
--- a/src/cloudflare/resources/ssl/analyze.py
+++ b/src/cloudflare/resources/ssl/analyze.py
@@ -6,7 +6,7 @@
import httpx
-from ...types import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+from ...types import BundleMethod
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
@@ -21,11 +21,10 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
-from ...types.ssl import analyze_create_params
+from ...types.ssl import AnalyzeCreateResponse, analyze_create_params
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Analyze", "AsyncAnalyze"]
@@ -43,7 +42,7 @@ def create(
self,
*,
zone_id: str,
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 | NotGiven = NOT_GIVEN,
+ bundle_method: BundleMethod | 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.
@@ -51,7 +50,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AnalyzeCreateResponse:
"""
Returns the set of hostnames, the signature algorithm, and the expiration date
of the certificate.
@@ -77,7 +76,7 @@ def create(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AnalyzeCreateResponse,
self._post(
f"/zones/{zone_id}/ssl/analyze",
body=maybe_transform(
@@ -95,7 +94,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AnalyzeCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -114,7 +113,7 @@ async def create(
self,
*,
zone_id: str,
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 | NotGiven = NOT_GIVEN,
+ bundle_method: BundleMethod | 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.
@@ -122,7 +121,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> AnalyzeCreateResponse:
"""
Returns the set of hostnames, the signature algorithm, and the expiration date
of the certificate.
@@ -148,7 +147,7 @@ async def create(
if not zone_id:
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ AnalyzeCreateResponse,
await self._post(
f"/zones/{zone_id}/ssl/analyze",
body=await async_maybe_transform(
@@ -166,7 +165,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[AnalyzeCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
index bfc4d588351..32ac54db08d 100644
--- a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
+++ b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py
@@ -38,6 +38,7 @@
)
from ...._wrappers import ResultWrapper
from ....types.ssl import (
+ CertificatePackGetResponse,
CertificatePackEditResponse,
CertificatePackDeleteResponse,
certificate_pack_edit_params,
@@ -49,7 +50,6 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["CertificatePacks", "AsyncCertificatePacks"]
@@ -224,7 +224,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CertificatePackGetResponse:
"""
For a given zone, get a certificate pack.
@@ -248,7 +248,7 @@ def get(
f"Expected a non-empty value for `certificate_pack_id` but received {certificate_pack_id!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CertificatePackGetResponse,
self._get(
f"/zones/{zone_id}/ssl/certificate_packs/{certificate_pack_id}",
options=make_request_options(
@@ -259,7 +259,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CertificatePackGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -435,7 +435,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CertificatePackGetResponse:
"""
For a given zone, get a certificate pack.
@@ -459,7 +459,7 @@ async def get(
f"Expected a non-empty value for `certificate_pack_id` but received {certificate_pack_id!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CertificatePackGetResponse,
await self._get(
f"/zones/{zone_id}/ssl/certificate_packs/{certificate_pack_id}",
options=make_request_options(
@@ -470,7 +470,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CertificatePackGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/captions.py b/src/cloudflare/resources/stream/captions.py
index 7443fd7bbf4..4c7b84edb8a 100644
--- a/src/cloudflare/resources/stream/captions.py
+++ b/src/cloudflare/resources/stream/captions.py
@@ -23,8 +23,13 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ...types.stream import CaptionGetResponse, CaptionDeleteResponse, caption_delete_params, caption_update_params
+from ...types.stream import (
+ CaptionGetResponse,
+ CaptionDeleteResponse,
+ CaptionUpdateResponse,
+ caption_delete_params,
+ caption_update_params,
+)
__all__ = ["Captions", "AsyncCaptions"]
@@ -51,7 +56,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CaptionUpdateResponse:
"""
Uploads the caption or subtitle file to the endpoint for a specific BCP47
language. One caption or subtitle file per language is allowed.
@@ -80,7 +85,7 @@ def update(
if not language:
raise ValueError(f"Expected a non-empty value for `language` but received {language!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CaptionUpdateResponse,
self._put(
f"/accounts/{account_id}/stream/{identifier}/captions/{language}",
body=maybe_transform({"file": file}, caption_update_params.CaptionUpdateParams),
@@ -92,7 +97,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CaptionUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -220,7 +225,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CaptionUpdateResponse:
"""
Uploads the caption or subtitle file to the endpoint for a specific BCP47
language. One caption or subtitle file per language is allowed.
@@ -249,7 +254,7 @@ async def update(
if not language:
raise ValueError(f"Expected a non-empty value for `language` but received {language!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CaptionUpdateResponse,
await self._put(
f"/accounts/{account_id}/stream/{identifier}/captions/{language}",
body=await async_maybe_transform({"file": file}, caption_update_params.CaptionUpdateParams),
@@ -261,7 +266,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CaptionUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/downloads.py b/src/cloudflare/resources/stream/downloads.py
index b08964ca105..af8f714cd63 100644
--- a/src/cloudflare/resources/stream/downloads.py
+++ b/src/cloudflare/resources/stream/downloads.py
@@ -23,8 +23,7 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ...types.stream import DownloadDeleteResponse, download_create_params
+from ...types.stream import DownloadGetResponse, DownloadCreateResponse, DownloadDeleteResponse, download_create_params
__all__ = ["Downloads", "AsyncDownloads"]
@@ -50,7 +49,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> DownloadCreateResponse:
"""
Creates a download for a video when a video is ready to view.
@@ -72,7 +71,7 @@ def create(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ DownloadCreateResponse,
self._post(
f"/accounts/{account_id}/stream/{identifier}/downloads",
body=maybe_transform(body, download_create_params.DownloadCreateParams),
@@ -84,7 +83,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[DownloadCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -149,7 +148,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> DownloadGetResponse:
"""
Lists the downloads created for a video.
@@ -171,7 +170,7 @@ def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ DownloadGetResponse,
self._get(
f"/accounts/{account_id}/stream/{identifier}/downloads",
options=make_request_options(
@@ -182,7 +181,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[DownloadGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -209,7 +208,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> DownloadCreateResponse:
"""
Creates a download for a video when a video is ready to view.
@@ -231,7 +230,7 @@ async def create(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ DownloadCreateResponse,
await self._post(
f"/accounts/{account_id}/stream/{identifier}/downloads",
body=await async_maybe_transform(body, download_create_params.DownloadCreateParams),
@@ -243,7 +242,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[DownloadCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -308,7 +307,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> DownloadGetResponse:
"""
Lists the downloads created for a video.
@@ -330,7 +329,7 @@ async def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ DownloadGetResponse,
await self._get(
f"/accounts/{account_id}/stream/{identifier}/downloads",
options=make_request_options(
@@ -341,7 +340,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[DownloadGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/watermarks.py b/src/cloudflare/resources/stream/watermarks.py
index 1ce6519a646..f6226bed949 100644
--- a/src/cloudflare/resources/stream/watermarks.py
+++ b/src/cloudflare/resources/stream/watermarks.py
@@ -25,8 +25,14 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ...types.stream import Watermaks, WatermarkDeleteResponse, watermark_create_params, watermark_delete_params
+from ...types.stream import (
+ Watermaks,
+ WatermarkGetResponse,
+ WatermarkCreateResponse,
+ WatermarkDeleteResponse,
+ watermark_create_params,
+ watermark_delete_params,
+)
__all__ = ["Watermarks", "AsyncWatermarks"]
@@ -56,7 +62,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> WatermarkCreateResponse:
"""
Creates watermark profiles using a single `HTTP POST multipart/form-data`
request.
@@ -96,7 +102,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ WatermarkCreateResponse,
self._post(
f"/accounts/{account_id}/stream/watermarks",
body=maybe_transform(
@@ -118,7 +124,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[WatermarkCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -221,7 +227,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> WatermarkGetResponse:
"""
Retrieves details for a single watermark profile.
@@ -243,7 +249,7 @@ def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ WatermarkGetResponse,
self._get(
f"/accounts/{account_id}/stream/watermarks/{identifier}",
options=make_request_options(
@@ -254,7 +260,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[WatermarkGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -285,7 +291,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> WatermarkCreateResponse:
"""
Creates watermark profiles using a single `HTTP POST multipart/form-data`
request.
@@ -325,7 +331,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ WatermarkCreateResponse,
await self._post(
f"/accounts/{account_id}/stream/watermarks",
body=await async_maybe_transform(
@@ -347,7 +353,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[WatermarkCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -450,7 +456,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> WatermarkGetResponse:
"""
Retrieves details for a single watermark profile.
@@ -472,7 +478,7 @@ async def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ WatermarkGetResponse,
await self._get(
f"/accounts/{account_id}/stream/watermarks/{identifier}",
options=make_request_options(
@@ -483,7 +489,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[WatermarkGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/stream/webhooks.py b/src/cloudflare/resources/stream/webhooks.py
index b2307157fd2..a98c45e5d89 100644
--- a/src/cloudflare/resources/stream/webhooks.py
+++ b/src/cloudflare/resources/stream/webhooks.py
@@ -23,8 +23,13 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ...types.stream import WebhookDeleteResponse, webhook_delete_params, webhook_update_params
+from ...types.stream import (
+ WebhookGetResponse,
+ WebhookDeleteResponse,
+ WebhookUpdateResponse,
+ webhook_delete_params,
+ webhook_update_params,
+)
__all__ = ["Webhooks", "AsyncWebhooks"]
@@ -49,7 +54,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> WebhookUpdateResponse:
"""
Creates a webhook notification.
@@ -69,7 +74,7 @@ def update(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ WebhookUpdateResponse,
self._put(
f"/accounts/{account_id}/stream/webhook",
body=maybe_transform({"notification_url": notification_url}, webhook_update_params.WebhookUpdateParams),
@@ -81,7 +86,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[WebhookUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -142,7 +147,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> WebhookGetResponse:
"""
Retrieves a list of webhooks.
@@ -160,7 +165,7 @@ def get(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ WebhookGetResponse,
self._get(
f"/accounts/{account_id}/stream/webhook",
options=make_request_options(
@@ -171,7 +176,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[WebhookGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -197,7 +202,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> WebhookUpdateResponse:
"""
Creates a webhook notification.
@@ -217,7 +222,7 @@ async def update(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ WebhookUpdateResponse,
await self._put(
f"/accounts/{account_id}/stream/webhook",
body=await async_maybe_transform(
@@ -231,7 +236,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[WebhookUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -292,7 +297,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> WebhookGetResponse:
"""
Retrieves a list of webhooks.
@@ -310,7 +315,7 @@ async def get(
if not account_id:
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ WebhookGetResponse,
await self._get(
f"/accounts/{account_id}/stream/webhook",
options=make_request_options(
@@ -321,7 +326,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[WebhookGetResponse]
), # 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 5ea4121018a..8f5c04a27d5 100644
--- a/src/cloudflare/resources/subscriptions.py
+++ b/src/cloudflare/resources/subscriptions.py
@@ -8,7 +8,10 @@
import httpx
from ..types import (
+ SubscriptionGetResponse,
+ SubscriptionCreateResponse,
SubscriptionDeleteResponse,
+ SubscriptionUpdateResponse,
subscription_create_params,
subscription_delete_params,
subscription_update_params,
@@ -33,7 +36,6 @@
AsyncPaginator,
make_request_options,
)
-from ..types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Subscriptions", "AsyncSubscriptions"]
@@ -62,7 +64,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionCreateResponse:
"""
Create a zone subscription, either plan or add-ons.
@@ -88,7 +90,7 @@ def create(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionCreateResponse,
self._post(
f"/zones/{identifier}/subscription",
body=maybe_transform(
@@ -109,7 +111,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -130,7 +132,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionUpdateResponse:
"""
Updates an account subscription.
@@ -162,7 +164,7 @@ def update(
f"Expected a non-empty value for `subscription_identifier` but received {subscription_identifier!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionUpdateResponse,
self._put(
f"/accounts/{account_identifier}/subscriptions/{subscription_identifier}",
body=maybe_transform(
@@ -183,7 +185,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -282,7 +284,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionGetResponse:
"""
Lists zone subscription details.
@@ -300,7 +302,7 @@ def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionGetResponse,
self._get(
f"/zones/{identifier}/subscription",
options=make_request_options(
@@ -311,7 +313,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -341,7 +343,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionCreateResponse:
"""
Create a zone subscription, either plan or add-ons.
@@ -367,7 +369,7 @@ async def create(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionCreateResponse,
await self._post(
f"/zones/{identifier}/subscription",
body=await async_maybe_transform(
@@ -388,7 +390,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -409,7 +411,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionUpdateResponse:
"""
Updates an account subscription.
@@ -441,7 +443,7 @@ async def update(
f"Expected a non-empty value for `subscription_identifier` but received {subscription_identifier!r}"
)
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionUpdateResponse,
await self._put(
f"/accounts/{account_identifier}/subscriptions/{subscription_identifier}",
body=await async_maybe_transform(
@@ -462,7 +464,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -561,7 +563,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionGetResponse:
"""
Lists zone subscription details.
@@ -579,7 +581,7 @@ async def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionGetResponse,
await self._get(
f"/zones/{identifier}/subscription",
options=make_request_options(
@@ -590,7 +592,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/user/billing/profile.py b/src/cloudflare/resources/user/billing/profile.py
index e87290b3aec..fd7d55ccca6 100644
--- a/src/cloudflare/resources/user/billing/profile.py
+++ b/src/cloudflare/resources/user/billing/profile.py
@@ -19,7 +19,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from ....types.user.billing import ProfileGetResponse
__all__ = ["Profile", "AsyncProfile"]
@@ -42,10 +42,10 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ProfileGetResponse:
"""Accesses your billing profile object."""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ProfileGetResponse,
self._get(
"/user/billing/profile",
options=make_request_options(
@@ -56,7 +56,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ProfileGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -80,10 +80,10 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ProfileGetResponse:
"""Accesses your billing profile object."""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ProfileGetResponse,
await self._get(
"/user/billing/profile",
options=make_request_options(
@@ -94,7 +94,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ProfileGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/user/invites.py b/src/cloudflare/resources/user/invites.py
index d6b0e29ee95..430d2b5a028 100644
--- a/src/cloudflare/resources/user/invites.py
+++ b/src/cloudflare/resources/user/invites.py
@@ -22,12 +22,11 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
-from ...types.user import Invite, invite_edit_params
+from ...types.user import Invite, InviteGetResponse, InviteEditResponse, invite_edit_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Invites", "AsyncInvites"]
@@ -72,7 +71,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> InviteEditResponse:
"""
Responds to an invitation.
@@ -92,7 +91,7 @@ def edit(
if not invite_id:
raise ValueError(f"Expected a non-empty value for `invite_id` but received {invite_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ InviteEditResponse,
self._patch(
f"/user/invites/{invite_id}",
body=maybe_transform({"status": status}, invite_edit_params.InviteEditParams),
@@ -104,7 +103,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[InviteEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -119,7 +118,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> InviteGetResponse:
"""
Gets the details of an invitation.
@@ -137,7 +136,7 @@ def get(
if not invite_id:
raise ValueError(f"Expected a non-empty value for `invite_id` but received {invite_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ InviteGetResponse,
self._get(
f"/user/invites/{invite_id}",
options=make_request_options(
@@ -148,7 +147,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[InviteGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -194,7 +193,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> InviteEditResponse:
"""
Responds to an invitation.
@@ -214,7 +213,7 @@ async def edit(
if not invite_id:
raise ValueError(f"Expected a non-empty value for `invite_id` but received {invite_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ InviteEditResponse,
await self._patch(
f"/user/invites/{invite_id}",
body=await async_maybe_transform({"status": status}, invite_edit_params.InviteEditParams),
@@ -226,7 +225,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[InviteEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -241,7 +240,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> InviteGetResponse:
"""
Gets the details of an invitation.
@@ -259,7 +258,7 @@ async def get(
if not invite_id:
raise ValueError(f"Expected a non-empty value for `invite_id` but received {invite_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ InviteGetResponse,
await self._get(
f"/user/invites/{invite_id}",
options=make_request_options(
@@ -270,7 +269,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[InviteGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/user/organizations.py b/src/cloudflare/resources/user/organizations.py
index 84e30443e67..f92c4810930 100644
--- a/src/cloudflare/resources/user/organizations.py
+++ b/src/cloudflare/resources/user/organizations.py
@@ -22,12 +22,17 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from ...types.user import Organization, OrganizationDeleteResponse, organization_list_params, organization_delete_params
+from ...types.user import (
+ Organization,
+ OrganizationGetResponse,
+ OrganizationDeleteResponse,
+ organization_list_params,
+ organization_delete_params,
+)
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Organizations", "AsyncOrganizations"]
@@ -155,7 +160,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OrganizationGetResponse:
"""
Gets a specific organization the user is associated with.
@@ -173,7 +178,7 @@ def get(
if not organization_id:
raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OrganizationGetResponse,
self._get(
f"/user/organizations/{organization_id}",
options=make_request_options(
@@ -184,7 +189,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OrganizationGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -313,7 +318,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> OrganizationGetResponse:
"""
Gets a specific organization the user is associated with.
@@ -331,7 +336,7 @@ async def get(
if not organization_id:
raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ OrganizationGetResponse,
await self._get(
f"/user/organizations/{organization_id}",
options=make_request_options(
@@ -342,7 +347,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[OrganizationGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/user/subscriptions.py b/src/cloudflare/resources/user/subscriptions.py
index 7bebcfbb292..48a9fef6ed7 100644
--- a/src/cloudflare/resources/user/subscriptions.py
+++ b/src/cloudflare/resources/user/subscriptions.py
@@ -23,7 +23,9 @@
from ..._wrappers import ResultWrapper
from ...types.user import (
SubscriptionGetResponse,
+ SubscriptionEditResponse,
SubscriptionDeleteResponse,
+ SubscriptionUpdateResponse,
subscription_edit_params,
subscription_delete_params,
subscription_update_params,
@@ -31,7 +33,6 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Subscriptions", "AsyncSubscriptions"]
@@ -60,7 +61,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionUpdateResponse:
"""
Updates a user's subscriptions.
@@ -86,7 +87,7 @@ def update(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionUpdateResponse,
self._put(
f"/user/subscriptions/{identifier}",
body=maybe_transform(
@@ -107,7 +108,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -164,7 +165,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionEditResponse:
"""
Updates zone subscriptions, either plan or add-ons.
@@ -190,7 +191,7 @@ def edit(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionEditResponse,
self._put(
f"/zones/{identifier}/subscription",
body=maybe_transform(
@@ -211,7 +212,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -264,7 +265,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionUpdateResponse:
"""
Updates a user's subscriptions.
@@ -290,7 +291,7 @@ async def update(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionUpdateResponse,
await self._put(
f"/user/subscriptions/{identifier}",
body=await async_maybe_transform(
@@ -311,7 +312,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -368,7 +369,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionEditResponse:
"""
Updates zone subscriptions, either plan or add-ons.
@@ -394,7 +395,7 @@ async def edit(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionEditResponse,
await self._put(
f"/zones/{identifier}/subscription",
body=await async_maybe_transform(
@@ -415,7 +416,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/user/tokens/tokens.py b/src/cloudflare/resources/user/tokens/tokens.py
index 9abba1acedf..d612fb44fc6 100644
--- a/src/cloudflare/resources/user/tokens/tokens.py
+++ b/src/cloudflare/resources/user/tokens/tokens.py
@@ -33,8 +33,10 @@
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ....types.user import (
PolicyParam,
+ TokenGetResponse,
TokenCreateResponse,
TokenDeleteResponse,
+ TokenUpdateResponse,
TokenVerifyResponse,
token_list_params,
token_create_params,
@@ -45,7 +47,6 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from .permission_groups import (
PermissionGroups,
AsyncPermissionGroups,
@@ -149,7 +150,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> TokenUpdateResponse:
"""
Update an existing token.
@@ -174,7 +175,7 @@ def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ TokenUpdateResponse,
self._put(
f"/user/tokens/{token_id}",
body=maybe_transform(
@@ -196,7 +197,7 @@ def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[TokenUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -299,7 +300,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> TokenGetResponse:
"""
Get information about a specific token.
@@ -313,7 +314,7 @@ def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ TokenGetResponse,
self._get(
f"/user/tokens/{token_id}",
options=make_request_options(
@@ -324,7 +325,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[TokenGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -444,7 +445,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> TokenUpdateResponse:
"""
Update an existing token.
@@ -469,7 +470,7 @@ async def update(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ TokenUpdateResponse,
await self._put(
f"/user/tokens/{token_id}",
body=await async_maybe_transform(
@@ -491,7 +492,7 @@ async def update(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[TokenUpdateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -594,7 +595,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> TokenGetResponse:
"""
Get information about a specific token.
@@ -608,7 +609,7 @@ async def get(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ TokenGetResponse,
await self._get(
f"/user/tokens/{token_id}",
options=make_request_options(
@@ -619,7 +620,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[TokenGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/user/user.py b/src/cloudflare/resources/user/user.py
index a795872fc7d..659324ac2fe 100644
--- a/src/cloudflare/resources/user/user.py
+++ b/src/cloudflare/resources/user/user.py
@@ -14,7 +14,7 @@
TokensWithStreamingResponse,
AsyncTokensWithStreamingResponse,
)
-from ...types import user_edit_params
+from ...types import UserGetResponse, UserEditResponse, user_edit_params
from .billing import (
Billing,
AsyncBilling,
@@ -73,7 +73,6 @@
from ..._base_client import (
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from .billing.billing import Billing, AsyncBilling
__all__ = ["User", "AsyncUser"]
@@ -126,7 +125,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UserEditResponse:
"""
Edit part of your user details.
@@ -150,7 +149,7 @@ def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UserEditResponse,
self._patch(
"/user",
body=maybe_transform(
@@ -171,7 +170,7 @@ def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UserEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -185,10 +184,10 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UserGetResponse:
"""User Details"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UserGetResponse,
self._get(
"/user",
options=make_request_options(
@@ -199,7 +198,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UserGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -252,7 +251,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UserEditResponse:
"""
Edit part of your user details.
@@ -276,7 +275,7 @@ async def edit(
timeout: Override the client-level default timeout for this request, in seconds
"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UserEditResponse,
await self._patch(
"/user",
body=await async_maybe_transform(
@@ -297,7 +296,7 @@ async def edit(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UserEditResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -311,10 +310,10 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UserGetResponse:
"""User Details"""
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UserGetResponse,
await self._get(
"/user",
options=make_request_options(
@@ -325,7 +324,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UserGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/vectorize/indexes.py b/src/cloudflare/resources/vectorize/indexes.py
index d1a3803686e..96533c0670e 100644
--- a/src/cloudflare/resources/vectorize/indexes.py
+++ b/src/cloudflare/resources/vectorize/indexes.py
@@ -25,12 +25,12 @@
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from ...types.vectorize import (
IndexQuery,
CreateIndex,
IndexInsert,
IndexUpsert,
+ IndexDeleteResponse,
IndexDeleteVectorsByID,
index_query_params,
index_create_params,
@@ -200,7 +200,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> IndexDeleteResponse:
"""
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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ IndexDeleteResponse,
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[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[IndexDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -680,7 +680,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> IndexDeleteResponse:
"""
Deletes the specified Vectorize Index.
@@ -700,7 +700,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ IndexDeleteResponse,
await self._delete(
f"/accounts/{account_identifier}/vectorize/indexes/{index_name}",
options=make_request_options(
@@ -711,7 +711,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[IndexDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/workers/scripts/content.py b/src/cloudflare/resources/workers/scripts/content.py
index 20439245e8a..a30c03bc011 100644
--- a/src/cloudflare/resources/workers/scripts/content.py
+++ b/src/cloudflare/resources/workers/scripts/content.py
@@ -6,7 +6,7 @@
import httpx
-from ....types import shared_params
+from ....types import WorkerMetadataParam
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
from ...._utils import (
extract_files,
@@ -55,7 +55,7 @@ def update(
*,
account_id: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: shared_params.UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 | NotGiven = NOT_GIVEN,
+ metadata: WorkerMetadataParam | 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,
@@ -174,7 +174,7 @@ async def update(
*,
account_id: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: shared_params.UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 | NotGiven = NOT_GIVEN,
+ metadata: WorkerMetadataParam | 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/content.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py
index 51702f522cd..4accbd37876 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,7 +6,7 @@
import httpx
-from ......types import shared_params
+from ......types import WorkerMetadataParam
from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
from ......_utils import (
extract_files,
@@ -56,7 +56,7 @@ def update(
account_id: str,
dispatch_namespace: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: shared_params.UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 | NotGiven = NOT_GIVEN,
+ metadata: WorkerMetadataParam | 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,
@@ -186,7 +186,7 @@ async def update(
account_id: str,
dispatch_namespace: str,
any_part_name: List[FileTypes] | NotGiven = NOT_GIVEN,
- metadata: shared_params.UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 | NotGiven = NOT_GIVEN,
+ metadata: WorkerMetadataParam | 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/access/applications/cas.py b/src/cloudflare/resources/zero_trust/access/applications/cas.py
index 66e0d503764..bff83329c50 100644
--- a/src/cloudflare/resources/zero_trust/access/applications/cas.py
+++ b/src/cloudflare/resources/zero_trust/access/applications/cas.py
@@ -21,8 +21,7 @@
AsyncPaginator,
make_request_options,
)
-from .....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from .....types.zero_trust.access.applications import CA, CADeleteResponse
+from .....types.zero_trust.access.applications import CA, CAGetResponse, CACreateResponse, CADeleteResponse
__all__ = ["CAs", "AsyncCAs"]
@@ -48,7 +47,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CACreateResponse:
"""
Generates a new short-lived certificate CA and public key.
@@ -85,7 +84,7 @@ def create(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CACreateResponse,
self._post(
f"/{account_or_zone}/{account_or_zone_id}/access/apps/{uuid}/ca",
options=make_request_options(
@@ -96,7 +95,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CACreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -225,7 +224,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CAGetResponse:
"""
Fetches a short-lived certificate CA and its public key.
@@ -262,7 +261,7 @@ def get(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CAGetResponse,
self._get(
f"/{account_or_zone}/{account_or_zone_id}/access/apps/{uuid}/ca",
options=make_request_options(
@@ -273,7 +272,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CAGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -300,7 +299,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CACreateResponse:
"""
Generates a new short-lived certificate CA and public key.
@@ -337,7 +336,7 @@ async def create(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CACreateResponse,
await self._post(
f"/{account_or_zone}/{account_or_zone_id}/access/apps/{uuid}/ca",
options=make_request_options(
@@ -348,7 +347,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CACreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -477,7 +476,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> CAGetResponse:
"""
Fetches a short-lived certificate CA and its public key.
@@ -514,7 +513,7 @@ async def get(
account_or_zone = "zones"
account_or_zone_id = zone_id
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ CAGetResponse,
await self._get(
f"/{account_or_zone}/{account_or_zone_id}/access/apps/{uuid}/ca",
options=make_request_options(
@@ -525,7 +524,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[CAGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/devices/devices.py b/src/cloudflare/resources/zero_trust/devices/devices.py
index c1c1da4fd30..a6d5bac0b09 100644
--- a/src/cloudflare/resources/zero_trust/devices/devices.py
+++ b/src/cloudflare/resources/zero_trust/devices/devices.py
@@ -85,10 +85,9 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from .posture.posture import Posture, AsyncPosture
from .policies.policies import Policies, AsyncPolicies
-from ....types.zero_trust import Device
+from ....types.zero_trust import Device, DeviceGetResponse
__all__ = ["Devices", "AsyncDevices"]
@@ -179,7 +178,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> DeviceGetResponse:
"""
Fetches details for a single device.
@@ -199,7 +198,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ DeviceGetResponse,
self._get(
f"/accounts/{account_id}/devices/{device_id}",
options=make_request_options(
@@ -210,7 +209,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[DeviceGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -302,7 +301,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> DeviceGetResponse:
"""
Fetches details for a single device.
@@ -322,7 +321,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ DeviceGetResponse,
await self._get(
f"/accounts/{account_id}/devices/{device_id}",
options=make_request_options(
@@ -333,7 +332,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[DeviceGetResponse]
), # 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 c9b932ced2c..2f40040b66a 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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from .....types.zero_trust.devices.posture import (
Integration,
+ 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,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> IntegrationDeleteResponse:
"""
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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ IntegrationDeleteResponse,
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[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[IntegrationDeleteResponse]
), # 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,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> IntegrationDeleteResponse:
"""
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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ IntegrationDeleteResponse,
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[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[IntegrationDeleteResponse]
), # 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 64a2722a70c..dd25c363ded 100644
--- a/src/cloudflare/resources/zero_trust/devices/revoke.py
+++ b/src/cloudflare/resources/zero_trust/devices/revoke.py
@@ -23,8 +23,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ....types.zero_trust.devices import revoke_create_params
+from ....types.zero_trust.devices import RevokeCreateResponse, revoke_create_params
__all__ = ["Revoke", "AsyncRevoke"]
@@ -49,7 +48,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RevokeCreateResponse:
"""
Revokes a list of devices.
@@ -67,7 +66,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RevokeCreateResponse,
self._post(
f"/accounts/{account_id}/devices/revoke",
body=maybe_transform(body, revoke_create_params.RevokeCreateParams),
@@ -79,7 +78,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RevokeCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -105,7 +104,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RevokeCreateResponse:
"""
Revokes a list of devices.
@@ -123,7 +122,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RevokeCreateResponse,
await self._post(
f"/accounts/{account_id}/devices/revoke",
body=await async_maybe_transform(body, revoke_create_params.RevokeCreateParams),
@@ -135,7 +134,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RevokeCreateResponse]
), # 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 5a8e29c66e1..e17c2b94722 100644
--- a/src/cloudflare/resources/zero_trust/devices/unrevoke.py
+++ b/src/cloudflare/resources/zero_trust/devices/unrevoke.py
@@ -23,8 +23,7 @@
from ...._base_client import (
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from ....types.zero_trust.devices import unrevoke_create_params
+from ....types.zero_trust.devices import UnrevokeCreateResponse, unrevoke_create_params
__all__ = ["Unrevoke", "AsyncUnrevoke"]
@@ -49,7 +48,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UnrevokeCreateResponse:
"""
Unrevokes a list of devices.
@@ -67,7 +66,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UnrevokeCreateResponse,
self._post(
f"/accounts/{account_id}/devices/unrevoke",
body=maybe_transform(body, unrevoke_create_params.UnrevokeCreateParams),
@@ -79,7 +78,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UnrevokeCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -105,7 +104,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> UnrevokeCreateResponse:
"""
Unrevokes a list of devices.
@@ -123,7 +122,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(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ UnrevokeCreateResponse,
await self._post(
f"/accounts/{account_id}/devices/unrevoke",
body=await async_maybe_transform(body, unrevoke_create_params.UnrevokeCreateParams),
@@ -135,7 +134,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[UnrevokeCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
index 98e19fd4278..63931ebc000 100644
--- a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
+++ b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py
@@ -34,13 +34,13 @@
AsyncPaginator,
make_request_options,
)
-from .....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from .....types.zero_trust.gateway import (
ListsParam,
ListGetResponse,
ListEditResponse,
ListListResponse,
ListCreateResponse,
+ ListDeleteResponse,
ListUpdateResponse,
list_edit_params,
list_create_params,
@@ -223,7 +223,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ListDeleteResponse:
"""
Deletes a Zero Trust list.
@@ -243,7 +243,7 @@ def delete(
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ListDeleteResponse,
self._delete(
f"/accounts/{account_id}/gateway/lists/{list_id}",
body=maybe_transform(body, list_delete_params.ListDeleteParams),
@@ -255,7 +255,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ListDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -530,7 +530,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ListDeleteResponse:
"""
Deletes a Zero Trust list.
@@ -550,7 +550,7 @@ async def delete(
if not list_id:
raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ListDeleteResponse,
await self._delete(
f"/accounts/{account_id}/gateway/lists/{list_id}",
body=await async_maybe_transform(body, list_delete_params.ListDeleteParams),
@@ -562,7 +562,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ListDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/gateway/locations.py b/src/cloudflare/resources/zero_trust/gateway/locations.py
index 2b37346c366..d862949beed 100644
--- a/src/cloudflare/resources/zero_trust/gateway/locations.py
+++ b/src/cloudflare/resources/zero_trust/gateway/locations.py
@@ -25,10 +25,10 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from ....types.zero_trust.gateway import (
Location,
LocationNetworkParam,
+ LocationDeleteResponse,
location_create_params,
location_delete_params,
location_update_params,
@@ -211,7 +211,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> LocationDeleteResponse:
"""
Deletes a configured Zero Trust Gateway location.
@@ -229,7 +229,7 @@ def delete(
if not location_id:
raise ValueError(f"Expected a non-empty value for `location_id` but received {location_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ LocationDeleteResponse,
self._delete(
f"/accounts/{account_id}/gateway/locations/{location_id}",
body=maybe_transform(body, location_delete_params.LocationDeleteParams),
@@ -241,7 +241,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[LocationDeleteResponse]
), # 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,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> LocationDeleteResponse:
"""
Deletes a configured Zero Trust Gateway location.
@@ -479,7 +479,7 @@ async def delete(
if not location_id:
raise ValueError(f"Expected a non-empty value for `location_id` but received {location_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ LocationDeleteResponse,
await self._delete(
f"/accounts/{account_id}/gateway/locations/{location_id}",
body=await async_maybe_transform(body, location_delete_params.LocationDeleteParams),
@@ -491,7 +491,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[LocationDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
index 2d96320db1a..8939c8b3cd7 100644
--- a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
+++ b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py
@@ -25,10 +25,10 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from ....types.zero_trust.gateway import (
GatewayIPs,
ProxyEndpoint,
+ ProxyEndpointDeleteResponse,
proxy_endpoint_edit_params,
proxy_endpoint_create_params,
proxy_endpoint_delete_params,
@@ -142,7 +142,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ProxyEndpointDeleteResponse:
"""
Deletes a configured Zero Trust Gateway proxy endpoint.
@@ -160,7 +160,7 @@ def delete(
if not proxy_endpoint_id:
raise ValueError(f"Expected a non-empty value for `proxy_endpoint_id` but received {proxy_endpoint_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ProxyEndpointDeleteResponse,
self._delete(
f"/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",
body=maybe_transform(body, proxy_endpoint_delete_params.ProxyEndpointDeleteParams),
@@ -172,7 +172,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ProxyEndpointDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -376,7 +376,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> ProxyEndpointDeleteResponse:
"""
Deletes a configured Zero Trust Gateway proxy endpoint.
@@ -394,7 +394,7 @@ async def delete(
if not proxy_endpoint_id:
raise ValueError(f"Expected a non-empty value for `proxy_endpoint_id` but received {proxy_endpoint_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ ProxyEndpointDeleteResponse,
await self._delete(
f"/accounts/{account_id}/gateway/proxy_endpoints/{proxy_endpoint_id}",
body=await async_maybe_transform(body, proxy_endpoint_delete_params.ProxyEndpointDeleteParams),
@@ -406,7 +406,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[ProxyEndpointDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zero_trust/gateway/rules.py b/src/cloudflare/resources/zero_trust/gateway/rules.py
index 2101eba0a9b..8c468d770f9 100644
--- a/src/cloudflare/resources/zero_trust/gateway/rules.py
+++ b/src/cloudflare/resources/zero_trust/gateway/rules.py
@@ -26,12 +26,12 @@
AsyncPaginator,
make_request_options,
)
-from ....types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from ....types.zero_trust.gateway import (
GatewayRule,
GatewayFilter,
ScheduleParam,
RuleSettingParam,
+ RuleDeleteResponse,
rule_create_params,
rule_delete_params,
rule_update_params,
@@ -314,7 +314,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RuleDeleteResponse:
"""
Deletes a Zero Trust Gateway rule.
@@ -334,7 +334,7 @@ def delete(
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RuleDeleteResponse,
self._delete(
f"/accounts/{account_id}/gateway/rules/{rule_id}",
body=maybe_transform(body, rule_delete_params.RuleDeleteParams),
@@ -346,7 +346,7 @@ def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RuleDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -668,7 +668,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> RuleDeleteResponse:
"""
Deletes a Zero Trust Gateway rule.
@@ -688,7 +688,7 @@ async def delete(
if not rule_id:
raise ValueError(f"Expected a non-empty value for `rule_id` but received {rule_id!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ RuleDeleteResponse,
await self._delete(
f"/accounts/{account_id}/gateway/rules/{rule_id}",
body=await async_maybe_transform(body, rule_delete_params.RuleDeleteParams),
@@ -700,7 +700,7 @@ async def delete(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[RuleDeleteResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/resources/zones/subscriptions.py b/src/cloudflare/resources/zones/subscriptions.py
index 27788c9c5e0..313c81490b1 100644
--- a/src/cloudflare/resources/zones/subscriptions.py
+++ b/src/cloudflare/resources/zones/subscriptions.py
@@ -23,12 +23,11 @@
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.user import Subscription
-from ...types.zones import subscription_create_params
+from ...types.zones import SubscriptionGetResponse, SubscriptionCreateResponse, subscription_create_params
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
-from ...types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
__all__ = ["Subscriptions", "AsyncSubscriptions"]
@@ -57,7 +56,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionCreateResponse:
"""
Create a zone subscription, either plan or add-ons.
@@ -83,7 +82,7 @@ def create(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionCreateResponse,
self._post(
f"/zones/{identifier}/subscription",
body=maybe_transform(
@@ -104,7 +103,7 @@ def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -155,7 +154,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionGetResponse:
"""
Lists zone subscription details.
@@ -173,7 +172,7 @@ def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionGetResponse,
self._get(
f"/zones/{identifier}/subscription",
options=make_request_options(
@@ -184,7 +183,7 @@ def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -214,7 +213,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionCreateResponse:
"""
Create a zone subscription, either plan or add-ons.
@@ -240,7 +239,7 @@ async def create(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionCreateResponse,
await self._post(
f"/zones/{identifier}/subscription",
body=await async_maybe_transform(
@@ -261,7 +260,7 @@ async def create(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionCreateResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
@@ -312,7 +311,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a:
+ ) -> SubscriptionGetResponse:
"""
Lists zone subscription details.
@@ -330,7 +329,7 @@ async def get(
if not identifier:
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
return cast(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
+ SubscriptionGetResponse,
await self._get(
f"/zones/{identifier}/subscription",
options=make_request_options(
@@ -341,7 +340,7 @@ async def get(
post_parser=ResultWrapper._unwrapper,
),
cast_to=cast(
- Any, ResultWrapper[UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a]
+ Any, ResultWrapper[SubscriptionGetResponse]
), # Union types cannot be passed in as arguments in the type system
),
)
diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py
index 4df660b2fd5..488baa77ff9 100644
--- a/src/cloudflare/types/__init__.py
+++ b/src/cloudflare/types/__init__.py
@@ -23,13 +23,7 @@
Identifier as Identifier,
ResponseInfo as ResponseInfo,
PaginationInfo as PaginationInfo,
- UnnamedSchemaRef025497b7e63379c31929636b5186e45c as UnnamedSchemaRef025497b7e63379c31929636b5186e45c,
- UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19 as UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19,
- UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c as UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c,
- UnnamedSchemaRef23001f1f0b697900e282236466a95fa3 as UnnamedSchemaRef23001f1f0b697900e282236466a95fa3,
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a as UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
- UnnamedSchemaRef619309774d07ec6904f1e354560d6028 as UnnamedSchemaRef619309774d07ec6904f1e354560d6028,
- UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 as UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24,
+ LoadBalancerPreview as LoadBalancerPreview,
)
from .submit import Submit as Submit
from .targes import Targes as Targes
@@ -49,6 +43,7 @@
from .page_rule import PageRule as PageRule
from .rate_plan import RatePlan as RatePlan
from .d1_binding import D1Binding as D1Binding
+from .dcv_method import DCVMethod as DCVMethod
from .hyperdrive import Hyperdrive as Hyperdrive
from .membership import Membership as Membership
from .origin_dns import OriginDNS as OriginDNS
@@ -67,6 +62,7 @@
from .targes_param import TargesParam as TargesParam
from .tunnel_param import TunnelParam as TunnelParam
from .waiting_room import WaitingRoom as WaitingRoom
+from .bundle_method import BundleMethod as BundleMethod
from .configuration import Configuration as Configuration
from .default_pools import DefaultPools as DefaultPools
from .load_balancer import LoadBalancer as LoadBalancer
@@ -79,7 +75,6 @@
from .labeled_region import LabeledRegion as LabeledRegion
from .warp_connector import WARPConnector as WARPConnector
from .allowed_origins import AllowedOrigins as AllowedOrigins
-from .custom_hostname import CustomHostname as CustomHostname
from .firewall_filter import FirewallFilter as FirewallFilter
from .origin_steering import OriginSteering as OriginSteering
from .random_steering import RandomSteering as RandomSteering
@@ -103,6 +98,7 @@
from .pcap_filter_param import PCAPFilterParam as PCAPFilterParam
from .pcap_get_response import PCAPGetResponse as PCAPGetResponse
from .tcp_configuration import TCPConfiguration as TCPConfiguration
+from .user_get_response import UserGetResponse as UserGetResponse
from .cache_purge_params import CachePurgeParams as CachePurgeParams
from .call_create_params import CallCreateParams as CallCreateParams
from .call_update_params import CallUpdateParams as CallUpdateParams
@@ -116,10 +112,12 @@
from .pcap_list_response import PCAPListResponse as PCAPListResponse
from .queue_get_response import QueueGetResponse as QueueGetResponse
from .stream_list_params import StreamListParams as StreamListParams
+from .user_edit_response import UserEditResponse as UserEditResponse
from .zone_create_params import ZoneCreateParams as ZoneCreateParams
from .account_list_params import AccountListParams as AccountListParams
from .available_rate_plan import AvailableRatePlan as AvailableRatePlan
from .configuration_param import ConfigurationParam as ConfigurationParam
+from .dns_analytics_query import DNSAnalyticsQuery as DNSAnalyticsQuery
from .keyless_certificate import KeylessCertificate as KeylessCertificate
from .load_shedding_param import LoadSheddingParam as LoadSheddingParam
from .notification_filter import NotificationFilter as NotificationFilter
@@ -129,6 +127,7 @@
from .queue_update_params import QueueUpdateParams as QueueUpdateParams
from .request_model_param import RequestModelParam as RequestModelParam
from .speed_delete_params import SpeedDeleteParams as SpeedDeleteParams
+from .account_get_response import AccountGetResponse as AccountGetResponse
from .cache_purge_response import CachePurgeResponse as CachePurgeResponse
from .dnssec_delete_params import DNSSECDeleteParams as DNSSECDeleteParams
from .filter_create_params import FilterCreateParams as FilterCreateParams
@@ -149,6 +148,7 @@
from .calls_app_with_secret import CallsAppWithSecret as CallsAppWithSecret
from .origin_ca_certificate import OriginCACertificate as OriginCACertificate
from .origin_steering_param import OriginSteeringParam as OriginSteeringParam
+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
@@ -157,24 +157,30 @@
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 .worker_metadata_param import WorkerMetadataParam as WorkerMetadataParam
from .adaptive_routing_param import AdaptiveRoutingParam as AdaptiveRoutingParam
from .dnssec_delete_response import DNSSECDeleteResponse as DNSSECDeleteResponse
+from .domain_validation_type import DomainValidationType as DomainValidationType
from .durable_object_binding import DurableObjectBinding as DurableObjectBinding
from .filter_create_response import FilterCreateResponse as FilterCreateResponse
from .geo_restrictions_param import GeoRestrictionsParam as GeoRestrictionsParam
from .membership_list_params import MembershipListParams as MembershipListParams
from .pagerule_create_params import PageruleCreateParams as PageruleCreateParams
from .pagerule_delete_params import PageruleDeleteParams as PageruleDeleteParams
+from .pagerule_edit_response import PageruleEditResponse as PageruleEditResponse
from .pagerule_list_response import PageruleListResponse as PageruleListResponse
from .pagerule_update_params import PageruleUpdateParams as PageruleUpdateParams
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 .account_update_response import AccountUpdateResponse as AccountUpdateResponse
from .additional_routes_param import AdditionalRoutesParam as AdditionalRoutesParam
from .audit_log_list_response import AuditLogListResponse as AuditLogListResponse
from .cookie_attributes_param import CookieAttributesParam as CookieAttributesParam
from .healthcheck_edit_params import HealthcheckEditParams as HealthcheckEditParams
from .location_strategy_param import LocationStrategyParam as LocationStrategyParam
+from .membership_get_response import MembershipGetResponse as MembershipGetResponse
+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
@@ -184,9 +190,12 @@
from .http_configuration_param import HTTPConfigurationParam as HTTPConfigurationParam
from .membership_delete_params import MembershipDeleteParams as MembershipDeleteParams
from .membership_update_params import MembershipUpdateParams as MembershipUpdateParams
+from .pagerule_create_response import PageruleCreateResponse as PageruleCreateResponse
from .pagerule_delete_response import PageruleDeleteResponse as PageruleDeleteResponse
+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 .speed_trends_list_params import SpeedTrendsListParams as SpeedTrendsListParams
from .waiting_room_edit_params import WaitingRoomEditParams as WaitingRoomEditParams
from .healthcheck_create_params import HealthcheckCreateParams as HealthcheckCreateParams
@@ -196,10 +205,13 @@
from .notification_filter_param import NotificationFilterParam as NotificationFilterParam
from .page_shield_update_params import PageShieldUpdateParams as PageShieldUpdateParams
from .speed_schedule_get_params import SpeedScheduleGetParams as SpeedScheduleGetParams
+from .subscription_get_response import SubscriptionGetResponse as SubscriptionGetResponse
from .url_scanner_scan_response import URLScannerScanResponse as URLScannerScanResponse
from .dispatch_namespace_binding import DispatchNamespaceBinding as DispatchNamespaceBinding
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_configuration import SubscriptionConfiguration as SubscriptionConfiguration
from .subscription_create_params import SubscriptionCreateParams as SubscriptionCreateParams
@@ -223,15 +235,21 @@
from .single_step_migration_param import SingleStepMigrationParam as SingleStepMigrationParam
from .bot_fight_mode_configuration import BotFightModeConfiguration as BotFightModeConfiguration
from .bot_management_update_params import BotManagementUpdateParams as BotManagementUpdateParams
+from .custom_hostname_get_response import CustomHostnameGetResponse as CustomHostnameGetResponse
+from .dns_analytics_nominal_metric import DNSAnalyticsNominalMetric as DNSAnalyticsNominalMetric
from .email_routing_disable_params import EmailRoutingDisableParams as EmailRoutingDisableParams
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 .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
+from .custom_hostname_list_response import CustomHostnameListResponse as CustomHostnameListResponse
from .load_balancer_delete_response import LoadBalancerDeleteResponse as LoadBalancerDeleteResponse
from .placement_configuration_param import PlacementConfigurationParam as PlacementConfigurationParam
from .warp_connector_token_response import WARPConnectorTokenResponse as WARPConnectorTokenResponse
@@ -245,6 +263,8 @@
from .mtls_certificate_delete_params import MTLSCertificateDeleteParams as MTLSCertificateDeleteParams
from .url_normalization_get_response import URLNormalizationGetResponse as URLNormalizationGetResponse
from .zone_authenticated_origin_pull import ZoneAuthenticatedOriginPull as ZoneAuthenticatedOriginPull
+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
from .custom_nameserver_create_params import CustomNameserverCreateParams as CustomNameserverCreateParams
from .custom_nameserver_delete_params import CustomNameserverDeleteParams as CustomNameserverDeleteParams
@@ -255,6 +275,7 @@
from .client_certificate_create_params import ClientCertificateCreateParams as ClientCertificateCreateParams
from .custom_certificate_create_params import CustomCertificateCreateParams as CustomCertificateCreateParams
from .custom_certificate_delete_params import CustomCertificateDeleteParams as CustomCertificateDeleteParams
+from .custom_certificate_edit_response import CustomCertificateEditResponse as CustomCertificateEditResponse
from .mtls_certificate_create_response import MTLSCertificateCreateResponse as MTLSCertificateCreateResponse
from .custom_nameserver_delete_response import CustomNameserverDeleteResponse as CustomNameserverDeleteResponse
from .custom_nameserver_verify_response import CustomNameserverVerifyResponse as CustomNameserverVerifyResponse
@@ -263,63 +284,66 @@
from .origin_ca_certificate_list_params import OriginCACertificateListParams as OriginCACertificateListParams
from .session_affinity_attributes_param import SessionAffinityAttributesParam as SessionAffinityAttributesParam
from .url_normalization_update_response import URLNormalizationUpdateResponse as URLNormalizationUpdateResponse
+from .custom_certificate_create_response import CustomCertificateCreateResponse as CustomCertificateCreateResponse
from .custom_certificate_delete_response import CustomCertificateDeleteResponse as CustomCertificateDeleteResponse
+from .origin_ca_certificate_get_response import OriginCACertificateGetResponse as OriginCACertificateGetResponse
from .keyless_certificate_delete_response import KeylessCertificateDeleteResponse as KeylessCertificateDeleteResponse
from .origin_ca_certificate_create_params import OriginCACertificateCreateParams as OriginCACertificateCreateParams
from .origin_ca_certificate_delete_params import OriginCACertificateDeleteParams as OriginCACertificateDeleteParams
+from .origin_tls_client_auth_get_response import OriginTLSClientAuthGetResponse as OriginTLSClientAuthGetResponse
from .origin_tls_client_auth_create_params import OriginTLSClientAuthCreateParams as OriginTLSClientAuthCreateParams
from .origin_tls_client_auth_delete_params import OriginTLSClientAuthDeleteParams as OriginTLSClientAuthDeleteParams
+from .origin_ca_certificate_create_response import (
+ OriginCACertificateCreateResponse as OriginCACertificateCreateResponse,
+)
from .origin_ca_certificate_delete_response import (
OriginCACertificateDeleteResponse as OriginCACertificateDeleteResponse,
)
from .custom_nameserver_availabilty_response import (
CustomNameserverAvailabiltyResponse as CustomNameserverAvailabiltyResponse,
)
+from .origin_tls_client_auth_create_response import (
+ OriginTLSClientAuthCreateResponse as OriginTLSClientAuthCreateResponse,
+)
+from .origin_tls_client_auth_delete_response import (
+ OriginTLSClientAuthDeleteResponse as OriginTLSClientAuthDeleteResponse,
+)
from .super_bot_fight_mode_likely_configuration import (
SuperBotFightModeLikelyConfiguration as SuperBotFightModeLikelyConfiguration,
)
+from .origin_post_quantum_encryption_get_response import (
+ OriginPostQuantumEncryptionGetResponse as OriginPostQuantumEncryptionGetResponse,
+)
from .origin_post_quantum_encryption_update_params import (
OriginPostQuantumEncryptionUpdateParams as OriginPostQuantumEncryptionUpdateParams,
)
from .super_bot_fight_mode_definitely_configuration import (
SuperBotFightModeDefinitelyConfiguration as SuperBotFightModeDefinitelyConfiguration,
)
+from .origin_post_quantum_encryption_update_response import (
+ OriginPostQuantumEncryptionUpdateResponse as OriginPostQuantumEncryptionUpdateResponse,
+)
from .unnamed_schema_ref_3e10ea08deb8102a27500f986488c1e8 import (
UnnamedSchemaRef3e10ea08deb8102a27500f986488c1e8 as UnnamedSchemaRef3e10ea08deb8102a27500f986488c1e8,
)
from .unnamed_schema_ref_8b383e904d9fb02521257ef9cc77d297 import (
UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297 as UnnamedSchemaRef8b383e904d9fb02521257ef9cc77d297,
)
-from .unnamed_schema_ref_9a9935a9a770967bb604ae41a81e42e1 import (
- UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1 as UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1,
-)
from .unnamed_schema_ref_9b4c9779a35b172cb69c71389ebc7014 import (
UnnamedSchemaRef9b4c9779a35b172cb69c71389ebc7014 as UnnamedSchemaRef9b4c9779a35b172cb69c71389ebc7014,
)
-from .unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import (
- UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 as UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1,
-)
from .unnamed_schema_ref_16e559c45a31db5480e21fbe904b2e42 import (
UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42 as UnnamedSchemaRef16e559c45a31db5480e21fbe904b2e42,
)
from .unnamed_schema_ref_44e66100b948bfe723054c56b6144766 import (
UnnamedSchemaRef44e66100b948bfe723054c56b6144766 as UnnamedSchemaRef44e66100b948bfe723054c56b6144766,
)
-from .unnamed_schema_ref_65be9614de145bf4a58d0fddf46df7ca import (
- UnnamedSchemaRef65be9614de145bf4a58d0fddf46df7ca as UnnamedSchemaRef65be9614de145bf4a58d0fddf46df7ca,
-)
from .unnamed_schema_ref_75bae70cf28e6bcef364b9840db3bdeb import (
UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb as UnnamedSchemaRef75bae70cf28e6bcef364b9840db3bdeb,
)
-from .unnamed_schema_ref_78adb375f06c6d462dd92b99e2ecf510 import (
- UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510 as UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510,
-)
from .unnamed_schema_ref_83a14d589e799bc901b9ccc870251d09 import (
UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09 as UnnamedSchemaRef83a14d589e799bc901b9ccc870251d09,
)
-from .unnamed_schema_ref_85b45d163202bbab7456da6b346d9fe2 import (
- UnnamedSchemaRef85b45d163202bbab7456da6b346d9fe2 as UnnamedSchemaRef85b45d163202bbab7456da6b346d9fe2,
-)
from .unnamed_schema_ref_209db30ed499548152d6f3bccf720b54 import (
UnnamedSchemaRef209db30ed499548152d6f3bccf720b54 as UnnamedSchemaRef209db30ed499548152d6f3bccf720b54,
)
@@ -332,9 +356,6 @@
from .unnamed_schema_ref_39419d70e2399b28b15cd660afd342fb import (
UnnamedSchemaRef39419d70e2399b28b15cd660afd342fb as UnnamedSchemaRef39419d70e2399b28b15cd660afd342fb,
)
-from .unnamed_schema_ref_6595695ff25b0614667b25f66b7bbaba import (
- UnnamedSchemaRef6595695ff25b0614667b25f66b7bbaba as UnnamedSchemaRef6595695ff25b0614667b25f66b7bbaba,
-)
from .unnamed_schema_ref_7826220e105d84352ba1108d9ed88e55 import (
UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55 as UnnamedSchemaRef7826220e105d84352ba1108d9ed88e55,
)
diff --git a/src/cloudflare/types/account_get_response.py b/src/cloudflare/types/account_get_response.py
new file mode 100644
index 00000000000..90ec592d62b
--- /dev/null
+++ b/src/cloudflare/types/account_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["AccountGetResponse"]
+
+AccountGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/account_update_response.py b/src/cloudflare/types/account_update_response.py
new file mode 100644
index 00000000000..a10025d46aa
--- /dev/null
+++ b/src/cloudflare/types/account_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["AccountUpdateResponse"]
+
+AccountUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/accounts/__init__.py b/src/cloudflare/types/accounts/__init__.py
index 625005b0112..e8460936d42 100644
--- a/src/cloudflare/types/accounts/__init__.py
+++ b/src/cloudflare/types/accounts/__init__.py
@@ -5,6 +5,7 @@
from .member import Member as Member
from .member_role import MemberRole as MemberRole
from .permission_grant import PermissionGrant as PermissionGrant
+from .role_get_response import RoleGetResponse as RoleGetResponse
from .member_list_params import MemberListParams as MemberListParams
from .role_list_response import RoleListResponse as RoleListResponse
from .member_create_params import MemberCreateParams as MemberCreateParams
diff --git a/src/cloudflare/types/accounts/role_get_response.py b/src/cloudflare/types/accounts/role_get_response.py
new file mode 100644
index 00000000000..50bca84535e
--- /dev/null
+++ b/src/cloudflare/types/accounts/role_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["RoleGetResponse"]
+
+RoleGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/argo/__init__.py b/src/cloudflare/types/argo/__init__.py
index 8f2de8400f9..5ba8527803d 100644
--- a/src/cloudflare/types/argo/__init__.py
+++ b/src/cloudflare/types/argo/__init__.py
@@ -3,4 +3,8 @@
from __future__ import annotations
from .smart_routing_edit_params import SmartRoutingEditParams as SmartRoutingEditParams
+from .smart_routing_get_response import SmartRoutingGetResponse as SmartRoutingGetResponse
from .tiered_caching_edit_params import TieredCachingEditParams as TieredCachingEditParams
+from .smart_routing_edit_response import SmartRoutingEditResponse as SmartRoutingEditResponse
+from .tiered_caching_get_response import TieredCachingGetResponse as TieredCachingGetResponse
+from .tiered_caching_edit_response import TieredCachingEditResponse as TieredCachingEditResponse
diff --git a/src/cloudflare/types/argo/smart_routing_edit_response.py b/src/cloudflare/types/argo/smart_routing_edit_response.py
new file mode 100644
index 00000000000..6d377a0f9a3
--- /dev/null
+++ b/src/cloudflare/types/argo/smart_routing_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SmartRoutingEditResponse"]
+
+SmartRoutingEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/argo/smart_routing_get_response.py b/src/cloudflare/types/argo/smart_routing_get_response.py
new file mode 100644
index 00000000000..666187291ad
--- /dev/null
+++ b/src/cloudflare/types/argo/smart_routing_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SmartRoutingGetResponse"]
+
+SmartRoutingGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/argo/tiered_caching_edit_response.py b/src/cloudflare/types/argo/tiered_caching_edit_response.py
new file mode 100644
index 00000000000..e86ebbfb070
--- /dev/null
+++ b/src/cloudflare/types/argo/tiered_caching_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["TieredCachingEditResponse"]
+
+TieredCachingEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/argo/tiered_caching_get_response.py b/src/cloudflare/types/argo/tiered_caching_get_response.py
new file mode 100644
index 00000000000..b50be22c227
--- /dev/null
+++ b/src/cloudflare/types/argo/tiered_caching_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["TieredCachingGetResponse"]
+
+TieredCachingGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/billing/__init__.py b/src/cloudflare/types/billing/__init__.py
index f8ee8b14b1c..94cf7da6397 100644
--- a/src/cloudflare/types/billing/__init__.py
+++ b/src/cloudflare/types/billing/__init__.py
@@ -1,3 +1,5 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
+
+from .profile_get_response import ProfileGetResponse as ProfileGetResponse
diff --git a/src/cloudflare/types/billing/profile_get_response.py b/src/cloudflare/types/billing/profile_get_response.py
new file mode 100644
index 00000000000..29d6d78c949
--- /dev/null
+++ b/src/cloudflare/types/billing/profile_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["ProfileGetResponse"]
+
+ProfileGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/bundle_method.py b/src/cloudflare/types/bundle_method.py
new file mode 100644
index 00000000000..eb7600c9e10
--- /dev/null
+++ b/src/cloudflare/types/bundle_method.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["BundleMethod"]
+
+BundleMethod = Literal["ubiquitous", "optimal", "force"]
diff --git a/src/cloudflare/types/cache/__init__.py b/src/cloudflare/types/cache/__init__.py
index 0f1101fda32..e44ff699ecd 100644
--- a/src/cloudflare/types/cache/__init__.py
+++ b/src/cloudflare/types/cache/__init__.py
@@ -3,12 +3,14 @@
from __future__ import annotations
from .cache_reserve import CacheReserve as CacheReserve
-from .cache_variants import CacheVariants as CacheVariants
+from .cache_variant import CacheVariant as CacheVariant
+from .cache_reserve_clear import CacheReserveClear as CacheReserveClear
from .variant_edit_params import VariantEditParams as VariantEditParams
from .variant_get_response import VariantGetResponse as VariantGetResponse
from .regional_tiered_cache import RegionalTieredCache as RegionalTieredCache
from .variant_delete_params import VariantDeleteParams as VariantDeleteParams
from .variant_edit_response import VariantEditResponse as VariantEditResponse
+from .cache_variant_identifier import CacheVariantIdentifier as CacheVariantIdentifier
from .cache_reserve_edit_params import CacheReserveEditParams as CacheReserveEditParams
from .cache_reserve_clear_params import CacheReserveClearParams as CacheReserveClearParams
from .cache_reserve_get_response import CacheReserveGetResponse as CacheReserveGetResponse
@@ -16,13 +18,10 @@
from .cache_reserve_clear_response import CacheReserveClearResponse as CacheReserveClearResponse
from .cache_reserve_status_response import CacheReserveStatusResponse as CacheReserveStatusResponse
from .smart_tiered_cache_edit_params import SmartTieredCacheEditParams as SmartTieredCacheEditParams
+from .smart_tiered_cache_get_response import SmartTieredCacheGetResponse as SmartTieredCacheGetResponse
from .smart_tiered_cache_delete_params import SmartTieredCacheDeleteParams as SmartTieredCacheDeleteParams
+from .smart_tiered_cache_edit_response import SmartTieredCacheEditResponse as SmartTieredCacheEditResponse
from .regional_tiered_cache_edit_params import RegionalTieredCacheEditParams as RegionalTieredCacheEditParams
from .regional_tiered_cache_get_response import RegionalTieredCacheGetResponse as RegionalTieredCacheGetResponse
+from .smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse as SmartTieredCacheDeleteResponse
from .regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse as RegionalTieredCacheEditResponse
-from .unnamed_schema_ref_2b5e755404a4bfd7892291ce97c4968d import (
- UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d as UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d,
-)
-from .unnamed_schema_ref_669bfbb16c0913af7077c3c194fbfcd0 import (
- UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0 as UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0,
-)
diff --git a/src/cloudflare/types/cache/cache_reserve_clear.py b/src/cloudflare/types/cache/cache_reserve_clear.py
new file mode 100644
index 00000000000..4f92b373231
--- /dev/null
+++ b/src/cloudflare/types/cache/cache_reserve_clear.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["CacheReserveClear"]
+
+CacheReserveClear = Literal["cache_reserve_clear"]
diff --git a/src/cloudflare/types/cache/cache_reserve_clear_response.py b/src/cloudflare/types/cache/cache_reserve_clear_response.py
index 40fc59d9ddd..b65b18ed8c3 100644
--- a/src/cloudflare/types/cache/cache_reserve_clear_response.py
+++ b/src/cloudflare/types/cache/cache_reserve_clear_response.py
@@ -5,13 +5,13 @@
from typing_extensions import Literal
from ..._models import BaseModel
-from .unnamed_schema_ref_2b5e755404a4bfd7892291ce97c4968d import UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d
+from .cache_reserve_clear import CacheReserveClear
__all__ = ["CacheReserveClearResponse"]
class CacheReserveClearResponse(BaseModel):
- id: UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d
+ id: CacheReserveClear
"""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 f1974133771..46d79cbf06b 100644
--- a/src/cloudflare/types/cache/cache_reserve_status_response.py
+++ b/src/cloudflare/types/cache/cache_reserve_status_response.py
@@ -5,13 +5,13 @@
from typing_extensions import Literal
from ..._models import BaseModel
-from .unnamed_schema_ref_2b5e755404a4bfd7892291ce97c4968d import UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d
+from .cache_reserve_clear import CacheReserveClear
__all__ = ["CacheReserveStatusResponse"]
class CacheReserveStatusResponse(BaseModel):
- id: UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d
+ id: CacheReserveClear
"""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_variant.py
similarity index 57%
rename from src/cloudflare/types/cache/cache_variants.py
rename to src/cloudflare/types/cache/cache_variant.py
index 6a45d81ffb0..6f442feaf26 100644
--- a/src/cloudflare/types/cache/cache_variants.py
+++ b/src/cloudflare/types/cache/cache_variant.py
@@ -4,13 +4,13 @@
from datetime import datetime
from ..._models import BaseModel
-from .unnamed_schema_ref_669bfbb16c0913af7077c3c194fbfcd0 import UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0
+from .cache_variant_identifier import CacheVariantIdentifier
-__all__ = ["CacheVariants"]
+__all__ = ["CacheVariant"]
-class CacheVariants(BaseModel):
- id: UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0
+class CacheVariant(BaseModel):
+ id: CacheVariantIdentifier
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/cache/cache_variant_identifier.py b/src/cloudflare/types/cache/cache_variant_identifier.py
new file mode 100644
index 00000000000..064a574bdac
--- /dev/null
+++ b/src/cloudflare/types/cache/cache_variant_identifier.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["CacheVariantIdentifier"]
+
+CacheVariantIdentifier = Literal["variants"]
diff --git a/src/cloudflare/types/cache/smart_tiered_cache_delete_response.py b/src/cloudflare/types/cache/smart_tiered_cache_delete_response.py
new file mode 100644
index 00000000000..5163ec1c632
--- /dev/null
+++ b/src/cloudflare/types/cache/smart_tiered_cache_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SmartTieredCacheDeleteResponse"]
+
+SmartTieredCacheDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/cache/smart_tiered_cache_edit_response.py b/src/cloudflare/types/cache/smart_tiered_cache_edit_response.py
new file mode 100644
index 00000000000..904f1c78e2f
--- /dev/null
+++ b/src/cloudflare/types/cache/smart_tiered_cache_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SmartTieredCacheEditResponse"]
+
+SmartTieredCacheEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/cache/smart_tiered_cache_get_response.py b/src/cloudflare/types/cache/smart_tiered_cache_get_response.py
new file mode 100644
index 00000000000..d174244f78d
--- /dev/null
+++ b/src/cloudflare/types/cache/smart_tiered_cache_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SmartTieredCacheGetResponse"]
+
+SmartTieredCacheGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/cache/unnamed_schema_ref_2b5e755404a4bfd7892291ce97c4968d.py b/src/cloudflare/types/cache/unnamed_schema_ref_2b5e755404a4bfd7892291ce97c4968d.py
deleted file mode 100644
index 7b3dbd973d7..00000000000
--- a/src/cloudflare/types/cache/unnamed_schema_ref_2b5e755404a4bfd7892291ce97c4968d.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d"]
-
-UnnamedSchemaRef2b5e755404a4bfd7892291ce97c4968d = Literal["cache_reserve_clear"]
diff --git a/src/cloudflare/types/cache/unnamed_schema_ref_669bfbb16c0913af7077c3c194fbfcd0.py b/src/cloudflare/types/cache/unnamed_schema_ref_669bfbb16c0913af7077c3c194fbfcd0.py
deleted file mode 100644
index a827234b1b3..00000000000
--- a/src/cloudflare/types/cache/unnamed_schema_ref_669bfbb16c0913af7077c3c194fbfcd0.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0"]
-
-UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0 = Literal["variants"]
diff --git a/src/cloudflare/types/cache/variant_edit_response.py b/src/cloudflare/types/cache/variant_edit_response.py
index c59a817de5c..a158e913eb4 100644
--- a/src/cloudflare/types/cache/variant_edit_response.py
+++ b/src/cloudflare/types/cache/variant_edit_response.py
@@ -4,7 +4,7 @@
from datetime import datetime
from ..._models import BaseModel
-from .unnamed_schema_ref_669bfbb16c0913af7077c3c194fbfcd0 import UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0
+from .cache_variant_identifier import CacheVariantIdentifier
__all__ = ["VariantEditResponse", "Value"]
@@ -78,7 +78,7 @@ class Value(BaseModel):
class VariantEditResponse(BaseModel):
- id: UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0
+ id: CacheVariantIdentifier
"""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 f6fbba22cfa..e1ad28a0470 100644
--- a/src/cloudflare/types/cache/variant_get_response.py
+++ b/src/cloudflare/types/cache/variant_get_response.py
@@ -4,7 +4,7 @@
from datetime import datetime
from ..._models import BaseModel
-from .unnamed_schema_ref_669bfbb16c0913af7077c3c194fbfcd0 import UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0
+from .cache_variant_identifier import CacheVariantIdentifier
__all__ = ["VariantGetResponse", "Value"]
@@ -78,7 +78,7 @@ class Value(BaseModel):
class VariantGetResponse(BaseModel):
- id: UnnamedSchemaRef669bfbb16c0913af7077c3c194fbfcd0
+ id: CacheVariantIdentifier
"""ID of the zone setting."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/custom_certificate.py b/src/cloudflare/types/custom_certificate.py
index 13070e06d2e..34d0d0fd51b 100644
--- a/src/cloudflare/types/custom_certificate.py
+++ b/src/cloudflare/types/custom_certificate.py
@@ -5,9 +5,9 @@
from typing_extensions import Literal
from .._models import BaseModel
+from .bundle_method import BundleMethod
from .geo_restrictions import GeoRestrictions
from .keyless_certificate import KeylessCertificate
-from .unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
__all__ = ["CustomCertificate"]
@@ -16,7 +16,7 @@ class CustomCertificate(BaseModel):
id: str
"""Identifier"""
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+ bundle_method: BundleMethod
"""
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 eb91110f357..7c9dfd6e61b 100644
--- a/src/cloudflare/types/custom_certificate_create_params.py
+++ b/src/cloudflare/types/custom_certificate_create_params.py
@@ -4,8 +4,8 @@
from typing_extensions import Literal, Required, TypedDict
+from .bundle_method import BundleMethod
from .geo_restrictions_param import GeoRestrictionsParam
-from .unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
__all__ = ["CustomCertificateCreateParams"]
@@ -20,7 +20,7 @@ class CustomCertificateCreateParams(TypedDict, total=False):
private_key: Required[str]
"""The zone's private key."""
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+ bundle_method: BundleMethod
"""
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_response.py b/src/cloudflare/types/custom_certificate_create_response.py
new file mode 100644
index 00000000000..051cffb09f8
--- /dev/null
+++ b/src/cloudflare/types/custom_certificate_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["CustomCertificateCreateResponse"]
+
+CustomCertificateCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/custom_certificate_edit_params.py b/src/cloudflare/types/custom_certificate_edit_params.py
index 246e6fe60ed..7cb02a59ab3 100644
--- a/src/cloudflare/types/custom_certificate_edit_params.py
+++ b/src/cloudflare/types/custom_certificate_edit_params.py
@@ -4,8 +4,8 @@
from typing_extensions import Required, TypedDict
+from .bundle_method import BundleMethod
from .geo_restrictions_param import GeoRestrictionsParam
-from .unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
__all__ = ["CustomCertificateEditParams"]
@@ -14,7 +14,7 @@ class CustomCertificateEditParams(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+ bundle_method: BundleMethod
"""
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_response.py b/src/cloudflare/types/custom_certificate_edit_response.py
new file mode 100644
index 00000000000..eefb2807119
--- /dev/null
+++ b/src/cloudflare/types/custom_certificate_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["CustomCertificateEditResponse"]
+
+CustomCertificateEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/custom_certificate_get_response.py b/src/cloudflare/types/custom_certificate_get_response.py
new file mode 100644
index 00000000000..f49aed30a8c
--- /dev/null
+++ b/src/cloudflare/types/custom_certificate_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["CustomCertificateGetResponse"]
+
+CustomCertificateGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/custom_hostname_create_params.py b/src/cloudflare/types/custom_hostname_create_params.py
index d6d0b385173..ef1ec55d60b 100644
--- a/src/cloudflare/types/custom_hostname_create_params.py
+++ b/src/cloudflare/types/custom_hostname_create_params.py
@@ -5,9 +5,9 @@
from typing import List
from typing_extensions import Literal, Required, TypedDict
-from .unnamed_schema_ref_9a9935a9a770967bb604ae41a81e42e1 import UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1
-from .unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
-from .unnamed_schema_ref_78adb375f06c6d462dd92b99e2ecf510 import UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510
+from .dcv_method import DCVMethod
+from .bundle_method import BundleMethod
+from .domain_validation_type import DomainValidationType
__all__ = ["CustomHostnameCreateParams", "SSL", "SSLSettings", "CustomMetadata"]
@@ -47,7 +47,7 @@ class SSLSettings(TypedDict, total=False):
class SSL(TypedDict, total=False):
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+ bundle_method: BundleMethod
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
@@ -64,13 +64,13 @@ class SSL(TypedDict, total=False):
custom_key: str
"""The key for a custom uploaded certificate."""
- method: UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510
+ method: DCVMethod
"""Domain control validation (DCV) method used for this hostname."""
settings: SSLSettings
"""SSL specific settings."""
- type: UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1
+ type: DomainValidationType
"""Level of validation to be used for this hostname.
Domain validation (dv) must be used.
diff --git a/src/cloudflare/types/custom_hostname.py b/src/cloudflare/types/custom_hostname_create_response.py
similarity index 58%
rename from src/cloudflare/types/custom_hostname.py
rename to src/cloudflare/types/custom_hostname_create_response.py
index 1b8f4d4d1a7..fe61cff0ec7 100644
--- a/src/cloudflare/types/custom_hostname.py
+++ b/src/cloudflare/types/custom_hostname_create_response.py
@@ -5,47 +5,11 @@
from typing_extensions import Literal
from .._models import BaseModel
-from .unnamed_schema_ref_9a9935a9a770967bb604ae41a81e42e1 import UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1
-from .unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
-from .unnamed_schema_ref_78adb375f06c6d462dd92b99e2ecf510 import UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510
+from .dcv_method import DCVMethod
+from .bundle_method import BundleMethod
+from .domain_validation_type import DomainValidationType
-__all__ = [
- "CustomHostname",
- "CustomMetadata",
- "OwnershipVerification",
- "OwnershipVerificationHTTP",
- "SSL",
- "SSLSettings",
- "SSLValidationError",
- "SSLValidationRecord",
-]
-
-
-class CustomMetadata(BaseModel):
- key: Optional[str] = None
- """Unique metadata for this hostname."""
-
-
-class OwnershipVerification(BaseModel):
- name: Optional[str] = None
- """DNS Name for record."""
-
- type: Optional[Literal["txt"]] = None
- """DNS Record type."""
-
- value: Optional[str] = None
- """Content for the record."""
-
-
-class OwnershipVerificationHTTP(BaseModel):
- http_body: Optional[str] = None
- """Token to be served."""
-
- http_url: Optional[str] = None
- """
- The HTTP URL that will be checked during custom hostname verification and where
- the customer should host the token.
- """
+__all__ = ["CustomHostnameCreateResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"]
class SSLSettings(BaseModel):
@@ -106,7 +70,7 @@ class SSL(BaseModel):
id: Optional[str] = None
"""Custom hostname SSL identifier tag."""
- bundle_method: Optional[UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1] = None
+ bundle_method: Optional[BundleMethod] = 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
@@ -135,7 +99,7 @@ class SSL(BaseModel):
issuer: Optional[str] = None
"""The issuer on a custom uploaded certificate."""
- method: Optional[UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510] = None
+ method: Optional[DCVMethod] = None
"""Domain control validation (DCV) method used for this hostname."""
serial_number: Optional[str] = None
@@ -174,7 +138,7 @@ class SSL(BaseModel):
] = None
"""Status of the hostname's SSL certificates."""
- type: Optional[UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1] = None
+ type: Optional[DomainValidationType] = None
"""Level of validation to be used for this hostname.
Domain validation (dv) must be used.
@@ -195,67 +159,12 @@ class SSL(BaseModel):
"""Indicates whether the certificate covers a wildcard."""
-class CustomHostname(BaseModel):
- id: Optional[str] = None
+class CustomHostnameCreateResponse(BaseModel):
+ id: str
"""Identifier"""
- created_at: Optional[datetime] = None
- """This is the time the hostname was created."""
-
- custom_metadata: Optional[CustomMetadata] = None
- """These are per-hostname (customer) settings."""
-
- custom_origin_server: Optional[str] = None
- """
- a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME
- record.
- """
-
- custom_origin_sni: Optional[str] = None
- """
- A hostname that will be sent to your custom origin server as SNI for TLS
- handshake. This can be a valid subdomain of the zone or custom origin server
- name or the string ':request_host_header:' which will cause the host header in
- the request to be used as SNI. Not configurable with default/fallback origin
- server.
- """
-
- hostname: Optional[str] = None
+ hostname: str
"""The custom hostname that will point to your hostname via CNAME."""
- ownership_verification: Optional[OwnershipVerification] = None
- """This is a record which can be placed to activate a hostname."""
-
- ownership_verification_http: Optional[OwnershipVerificationHTTP] = None
- """
- This presents the token to be served by the given http url to activate a
- hostname.
- """
-
- ssl: Optional[SSL] = None
+ ssl: SSL
"""SSL properties for the custom hostname."""
-
- status: Optional[
- Literal[
- "active",
- "pending",
- "active_redeploying",
- "moved",
- "pending_deletion",
- "deleted",
- "pending_blocked",
- "pending_migration",
- "pending_provisioned",
- "test_pending",
- "test_active",
- "test_active_apex",
- "test_blocked",
- "test_failed",
- "provisioned",
- "blocked",
- ]
- ] = None
- """Status of the hostname's activation."""
-
- verification_errors: Optional[List[object]] = None
- """These are errors that were encountered while trying to activate a hostname."""
diff --git a/src/cloudflare/types/custom_hostname_edit_params.py b/src/cloudflare/types/custom_hostname_edit_params.py
index 660b91453e4..a1c237659da 100644
--- a/src/cloudflare/types/custom_hostname_edit_params.py
+++ b/src/cloudflare/types/custom_hostname_edit_params.py
@@ -5,9 +5,9 @@
from typing import List
from typing_extensions import Literal, Required, TypedDict
-from .unnamed_schema_ref_9a9935a9a770967bb604ae41a81e42e1 import UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1
-from .unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
-from .unnamed_schema_ref_78adb375f06c6d462dd92b99e2ecf510 import UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510
+from .dcv_method import DCVMethod
+from .bundle_method import BundleMethod
+from .domain_validation_type import DomainValidationType
__all__ = ["CustomHostnameEditParams", "CustomMetadata", "SSL", "SSLSettings"]
@@ -64,7 +64,7 @@ class SSLSettings(TypedDict, total=False):
class SSL(TypedDict, total=False):
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+ bundle_method: BundleMethod
"""
A ubiquitous bundle has the highest probability of being verified everywhere,
even by clients using outdated or unusual trust stores. An optimal bundle uses
@@ -81,13 +81,13 @@ class SSL(TypedDict, total=False):
custom_key: str
"""The key for a custom uploaded certificate."""
- method: UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510
+ method: DCVMethod
"""Domain control validation (DCV) method used for this hostname."""
settings: SSLSettings
"""SSL specific settings."""
- type: UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1
+ type: DomainValidationType
"""Level of validation to be used for this hostname.
Domain validation (dv) must be used.
diff --git a/src/cloudflare/types/custom_hostname_edit_response.py b/src/cloudflare/types/custom_hostname_edit_response.py
new file mode 100644
index 00000000000..9a109d4b75d
--- /dev/null
+++ b/src/cloudflare/types/custom_hostname_edit_response.py
@@ -0,0 +1,170 @@
+# 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 .dcv_method import DCVMethod
+from .bundle_method import BundleMethod
+from .domain_validation_type import DomainValidationType
+
+__all__ = ["CustomHostnameEditResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"]
+
+
+class SSLSettings(BaseModel):
+ ciphers: Optional[List[str]] = None
+ """An allowlist of ciphers for TLS termination.
+
+ These ciphers must be in the BoringSSL format.
+ """
+
+ early_hints: Optional[Literal["on", "off"]] = None
+ """Whether or not Early Hints is enabled."""
+
+ http2: Optional[Literal["on", "off"]] = None
+ """Whether or not HTTP2 is enabled."""
+
+ min_tls_version: Optional[Literal["1.0", "1.1", "1.2", "1.3"]] = None
+ """The minimum TLS version supported."""
+
+ tls_1_3: Optional[Literal["on", "off"]] = None
+ """Whether or not TLS 1.3 is enabled."""
+
+
+class SSLValidationError(BaseModel):
+ message: Optional[str] = None
+ """A domain validation error."""
+
+
+class SSLValidationRecord(BaseModel):
+ emails: Optional[List[object]] = None
+ """
+ The set of email addresses that the certificate authority (CA) will use to
+ complete domain validation.
+ """
+
+ http_body: Optional[str] = None
+ """
+ The content that the certificate authority (CA) will expect to find at the
+ http_url during the domain validation.
+ """
+
+ http_url: Optional[str] = None
+ """The url that will be checked during domain validation."""
+
+ txt_name: Optional[str] = None
+ """
+ The hostname that the certificate authority (CA) will check for a TXT record
+ during domain validation .
+ """
+
+ txt_value: Optional[str] = None
+ """
+ The TXT record that the certificate authority (CA) will check during domain
+ validation.
+ """
+
+
+class SSL(BaseModel):
+ id: Optional[str] = None
+ """Custom hostname SSL identifier tag."""
+
+ bundle_method: Optional[BundleMethod] = 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
+ the shortest chain and newest intermediates. And the force bundle verifies the
+ chain, but does not otherwise modify it.
+ """
+
+ certificate_authority: Optional[Literal["digicert", "google", "lets_encrypt"]] = None
+ """The Certificate Authority that will issue the certificate"""
+
+ custom_certificate: Optional[str] = None
+ """If a custom uploaded certificate is used."""
+
+ custom_csr_id: Optional[str] = None
+ """The identifier for the Custom CSR that was used."""
+
+ custom_key: Optional[str] = None
+ """The key for a custom uploaded certificate."""
+
+ expires_on: Optional[datetime] = None
+ """The time the custom certificate expires on."""
+
+ hosts: Optional[List[object]] = None
+ """A list of Hostnames on a custom uploaded certificate."""
+
+ issuer: Optional[str] = None
+ """The issuer on a custom uploaded certificate."""
+
+ method: Optional[DCVMethod] = None
+ """Domain control validation (DCV) method used for this hostname."""
+
+ serial_number: Optional[str] = None
+ """The serial number on a custom uploaded certificate."""
+
+ settings: Optional[SSLSettings] = None
+ """SSL specific settings."""
+
+ signature: Optional[str] = None
+ """The signature on a custom uploaded certificate."""
+
+ 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 the hostname's SSL certificates."""
+
+ type: Optional[DomainValidationType] = None
+ """Level of validation to be used for this hostname.
+
+ Domain validation (dv) must be used.
+ """
+
+ uploaded_on: Optional[datetime] = None
+ """The time the custom certificate was uploaded."""
+
+ validation_errors: Optional[List[SSLValidationError]] = None
+ """
+ Domain validation errors that have been received by the certificate authority
+ (CA).
+ """
+
+ validation_records: Optional[List[SSLValidationRecord]] = None
+
+ wildcard: Optional[bool] = None
+ """Indicates whether the certificate covers a wildcard."""
+
+
+class CustomHostnameEditResponse(BaseModel):
+ id: str
+ """Identifier"""
+
+ hostname: str
+ """The custom hostname that will point to your hostname via CNAME."""
+
+ ssl: SSL
+ """SSL properties for the custom hostname."""
diff --git a/src/cloudflare/types/custom_hostname_get_response.py b/src/cloudflare/types/custom_hostname_get_response.py
new file mode 100644
index 00000000000..c37b19685d9
--- /dev/null
+++ b/src/cloudflare/types/custom_hostname_get_response.py
@@ -0,0 +1,170 @@
+# 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 .dcv_method import DCVMethod
+from .bundle_method import BundleMethod
+from .domain_validation_type import DomainValidationType
+
+__all__ = ["CustomHostnameGetResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"]
+
+
+class SSLSettings(BaseModel):
+ ciphers: Optional[List[str]] = None
+ """An allowlist of ciphers for TLS termination.
+
+ These ciphers must be in the BoringSSL format.
+ """
+
+ early_hints: Optional[Literal["on", "off"]] = None
+ """Whether or not Early Hints is enabled."""
+
+ http2: Optional[Literal["on", "off"]] = None
+ """Whether or not HTTP2 is enabled."""
+
+ min_tls_version: Optional[Literal["1.0", "1.1", "1.2", "1.3"]] = None
+ """The minimum TLS version supported."""
+
+ tls_1_3: Optional[Literal["on", "off"]] = None
+ """Whether or not TLS 1.3 is enabled."""
+
+
+class SSLValidationError(BaseModel):
+ message: Optional[str] = None
+ """A domain validation error."""
+
+
+class SSLValidationRecord(BaseModel):
+ emails: Optional[List[object]] = None
+ """
+ The set of email addresses that the certificate authority (CA) will use to
+ complete domain validation.
+ """
+
+ http_body: Optional[str] = None
+ """
+ The content that the certificate authority (CA) will expect to find at the
+ http_url during the domain validation.
+ """
+
+ http_url: Optional[str] = None
+ """The url that will be checked during domain validation."""
+
+ txt_name: Optional[str] = None
+ """
+ The hostname that the certificate authority (CA) will check for a TXT record
+ during domain validation .
+ """
+
+ txt_value: Optional[str] = None
+ """
+ The TXT record that the certificate authority (CA) will check during domain
+ validation.
+ """
+
+
+class SSL(BaseModel):
+ id: Optional[str] = None
+ """Custom hostname SSL identifier tag."""
+
+ bundle_method: Optional[BundleMethod] = 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
+ the shortest chain and newest intermediates. And the force bundle verifies the
+ chain, but does not otherwise modify it.
+ """
+
+ certificate_authority: Optional[Literal["digicert", "google", "lets_encrypt"]] = None
+ """The Certificate Authority that will issue the certificate"""
+
+ custom_certificate: Optional[str] = None
+ """If a custom uploaded certificate is used."""
+
+ custom_csr_id: Optional[str] = None
+ """The identifier for the Custom CSR that was used."""
+
+ custom_key: Optional[str] = None
+ """The key for a custom uploaded certificate."""
+
+ expires_on: Optional[datetime] = None
+ """The time the custom certificate expires on."""
+
+ hosts: Optional[List[object]] = None
+ """A list of Hostnames on a custom uploaded certificate."""
+
+ issuer: Optional[str] = None
+ """The issuer on a custom uploaded certificate."""
+
+ method: Optional[DCVMethod] = None
+ """Domain control validation (DCV) method used for this hostname."""
+
+ serial_number: Optional[str] = None
+ """The serial number on a custom uploaded certificate."""
+
+ settings: Optional[SSLSettings] = None
+ """SSL specific settings."""
+
+ signature: Optional[str] = None
+ """The signature on a custom uploaded certificate."""
+
+ 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 the hostname's SSL certificates."""
+
+ type: Optional[DomainValidationType] = None
+ """Level of validation to be used for this hostname.
+
+ Domain validation (dv) must be used.
+ """
+
+ uploaded_on: Optional[datetime] = None
+ """The time the custom certificate was uploaded."""
+
+ validation_errors: Optional[List[SSLValidationError]] = None
+ """
+ Domain validation errors that have been received by the certificate authority
+ (CA).
+ """
+
+ validation_records: Optional[List[SSLValidationRecord]] = None
+
+ wildcard: Optional[bool] = None
+ """Indicates whether the certificate covers a wildcard."""
+
+
+class CustomHostnameGetResponse(BaseModel):
+ id: str
+ """Identifier"""
+
+ hostname: str
+ """The custom hostname that will point to your hostname via CNAME."""
+
+ ssl: SSL
+ """SSL properties for the custom hostname."""
diff --git a/src/cloudflare/types/custom_hostname_list_response.py b/src/cloudflare/types/custom_hostname_list_response.py
new file mode 100644
index 00000000000..f8ed3baf91a
--- /dev/null
+++ b/src/cloudflare/types/custom_hostname_list_response.py
@@ -0,0 +1,170 @@
+# 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 .dcv_method import DCVMethod
+from .bundle_method import BundleMethod
+from .domain_validation_type import DomainValidationType
+
+__all__ = ["CustomHostnameListResponse", "SSL", "SSLSettings", "SSLValidationError", "SSLValidationRecord"]
+
+
+class SSLSettings(BaseModel):
+ ciphers: Optional[List[str]] = None
+ """An allowlist of ciphers for TLS termination.
+
+ These ciphers must be in the BoringSSL format.
+ """
+
+ early_hints: Optional[Literal["on", "off"]] = None
+ """Whether or not Early Hints is enabled."""
+
+ http2: Optional[Literal["on", "off"]] = None
+ """Whether or not HTTP2 is enabled."""
+
+ min_tls_version: Optional[Literal["1.0", "1.1", "1.2", "1.3"]] = None
+ """The minimum TLS version supported."""
+
+ tls_1_3: Optional[Literal["on", "off"]] = None
+ """Whether or not TLS 1.3 is enabled."""
+
+
+class SSLValidationError(BaseModel):
+ message: Optional[str] = None
+ """A domain validation error."""
+
+
+class SSLValidationRecord(BaseModel):
+ emails: Optional[List[object]] = None
+ """
+ The set of email addresses that the certificate authority (CA) will use to
+ complete domain validation.
+ """
+
+ http_body: Optional[str] = None
+ """
+ The content that the certificate authority (CA) will expect to find at the
+ http_url during the domain validation.
+ """
+
+ http_url: Optional[str] = None
+ """The url that will be checked during domain validation."""
+
+ txt_name: Optional[str] = None
+ """
+ The hostname that the certificate authority (CA) will check for a TXT record
+ during domain validation .
+ """
+
+ txt_value: Optional[str] = None
+ """
+ The TXT record that the certificate authority (CA) will check during domain
+ validation.
+ """
+
+
+class SSL(BaseModel):
+ id: Optional[str] = None
+ """Custom hostname SSL identifier tag."""
+
+ bundle_method: Optional[BundleMethod] = 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
+ the shortest chain and newest intermediates. And the force bundle verifies the
+ chain, but does not otherwise modify it.
+ """
+
+ certificate_authority: Optional[Literal["digicert", "google", "lets_encrypt"]] = None
+ """The Certificate Authority that will issue the certificate"""
+
+ custom_certificate: Optional[str] = None
+ """If a custom uploaded certificate is used."""
+
+ custom_csr_id: Optional[str] = None
+ """The identifier for the Custom CSR that was used."""
+
+ custom_key: Optional[str] = None
+ """The key for a custom uploaded certificate."""
+
+ expires_on: Optional[datetime] = None
+ """The time the custom certificate expires on."""
+
+ hosts: Optional[List[object]] = None
+ """A list of Hostnames on a custom uploaded certificate."""
+
+ issuer: Optional[str] = None
+ """The issuer on a custom uploaded certificate."""
+
+ method: Optional[DCVMethod] = None
+ """Domain control validation (DCV) method used for this hostname."""
+
+ serial_number: Optional[str] = None
+ """The serial number on a custom uploaded certificate."""
+
+ settings: Optional[SSLSettings] = None
+ """SSL specific settings."""
+
+ signature: Optional[str] = None
+ """The signature on a custom uploaded certificate."""
+
+ 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 the hostname's SSL certificates."""
+
+ type: Optional[DomainValidationType] = None
+ """Level of validation to be used for this hostname.
+
+ Domain validation (dv) must be used.
+ """
+
+ uploaded_on: Optional[datetime] = None
+ """The time the custom certificate was uploaded."""
+
+ validation_errors: Optional[List[SSLValidationError]] = None
+ """
+ Domain validation errors that have been received by the certificate authority
+ (CA).
+ """
+
+ validation_records: Optional[List[SSLValidationRecord]] = None
+
+ wildcard: Optional[bool] = None
+ """Indicates whether the certificate covers a wildcard."""
+
+
+class CustomHostnameListResponse(BaseModel):
+ id: str
+ """Identifier"""
+
+ hostname: str
+ """The custom hostname that will point to your hostname via CNAME."""
+
+ ssl: SSL
+ """SSL properties for the custom hostname."""
diff --git a/src/cloudflare/types/custom_hostnames/__init__.py b/src/cloudflare/types/custom_hostnames/__init__.py
index 11ba7d5d5e6..da94f2c93ee 100644
--- a/src/cloudflare/types/custom_hostnames/__init__.py
+++ b/src/cloudflare/types/custom_hostnames/__init__.py
@@ -2,5 +2,8 @@
from __future__ import annotations
+from .fallback_origin_get_response import FallbackOriginGetResponse as FallbackOriginGetResponse
from .fallback_origin_delete_params import FallbackOriginDeleteParams as FallbackOriginDeleteParams
from .fallback_origin_update_params import FallbackOriginUpdateParams as FallbackOriginUpdateParams
+from .fallback_origin_delete_response import FallbackOriginDeleteResponse as FallbackOriginDeleteResponse
+from .fallback_origin_update_response import FallbackOriginUpdateResponse as FallbackOriginUpdateResponse
diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py b/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py
new file mode 100644
index 00000000000..3b4c1ef2f97
--- /dev/null
+++ b/src/cloudflare/types/custom_hostnames/fallback_origin_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["FallbackOriginDeleteResponse"]
+
+FallbackOriginDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py b/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py
new file mode 100644
index 00000000000..2a43cf04e81
--- /dev/null
+++ b/src/cloudflare/types/custom_hostnames/fallback_origin_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["FallbackOriginGetResponse"]
+
+FallbackOriginGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py b/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py
new file mode 100644
index 00000000000..0902ecd4e58
--- /dev/null
+++ b/src/cloudflare/types/custom_hostnames/fallback_origin_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["FallbackOriginUpdateResponse"]
+
+FallbackOriginUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/d1/__init__.py b/src/cloudflare/types/d1/__init__.py
index ee8808412aa..2c77c7a96e5 100644
--- a/src/cloudflare/types/d1/__init__.py
+++ b/src/cloudflare/types/d1/__init__.py
@@ -10,3 +10,4 @@
from .database_list_response import DatabaseListResponse as DatabaseListResponse
from .database_query_response import DatabaseQueryResponse as DatabaseQueryResponse
from .database_create_response import DatabaseCreateResponse as DatabaseCreateResponse
+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
new file mode 100644
index 00000000000..53e10cdd237
--- /dev/null
+++ b/src/cloudflare/types/d1/database_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["DatabaseDeleteResponse"]
+
+DatabaseDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/dcv_method.py b/src/cloudflare/types/dcv_method.py
new file mode 100644
index 00000000000..0a87ee2154f
--- /dev/null
+++ b/src/cloudflare/types/dcv_method.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["DCVMethod"]
+
+DCVMethod = Literal["http", "txt", "email"]
diff --git a/src/cloudflare/types/dns/__init__.py b/src/cloudflare/types/dns/__init__.py
index 1c19db22c62..ab67cfd2979 100644
--- a/src/cloudflare/types/dns/__init__.py
+++ b/src/cloudflare/types/dns/__init__.py
@@ -29,6 +29,7 @@
from .upstream_ips import UpstreamIPs as UpstreamIPs
from .dnskey_record import DNSKEYRecord as DNSKEYRecord
from .smimea_record import SMIMEARecord as SMIMEARecord
+from .record_metadata import RecordMetadata as RecordMetadata
from .attack_mitigation import AttackMitigation as AttackMitigation
from .firewall_ips_param import FirewallIPsParam as FirewallIPsParam
from .record_edit_params import RecordEditParams as RecordEditParams
@@ -42,6 +43,7 @@
from .record_import_params import RecordImportParams as RecordImportParams
from .record_scan_response import RecordScanResponse as RecordScanResponse
from .record_update_params import RecordUpdateParams as RecordUpdateParams
+from .record_process_timing import RecordProcessTiming as RecordProcessTiming
from .firewall_create_params import FirewallCreateParams as FirewallCreateParams
from .firewall_delete_params import FirewallDeleteParams as FirewallDeleteParams
from .record_delete_response import RecordDeleteResponse as RecordDeleteResponse
@@ -49,9 +51,3 @@
from .record_import_response import RecordImportResponse as RecordImportResponse
from .attack_mitigation_param import AttackMitigationParam as AttackMitigationParam
from .firewall_delete_response import FirewallDeleteResponse as FirewallDeleteResponse
-from .unnamed_schema_ref_2f895e023ae55b55d2f5925449b819cd import (
- UnnamedSchemaRef2f895e023ae55b55d2f5925449b819cd as UnnamedSchemaRef2f895e023ae55b55d2f5925449b819cd,
-)
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import (
- UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb as UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb,
-)
diff --git a/src/cloudflare/types/dns/a_record.py b/src/cloudflare/types/dns/a_record.py
index b7b29da1ba2..dc064cf7d8a 100644
--- a/src/cloudflare/types/dns/a_record.py
+++ b/src/cloudflare/types/dns/a_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["ARecord"]
@@ -40,7 +40,7 @@ class ARecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/aaaa_record.py b/src/cloudflare/types/dns/aaaa_record.py
index 37e28a6663a..75f77f1ab61 100644
--- a/src/cloudflare/types/dns/aaaa_record.py
+++ b/src/cloudflare/types/dns/aaaa_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["AAAARecord"]
@@ -40,7 +40,7 @@ class AAAARecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/analytics/report.py b/src/cloudflare/types/dns/analytics/report.py
index e5210e54879..00314a88ec3 100644
--- a/src/cloudflare/types/dns/analytics/report.py
+++ b/src/cloudflare/types/dns/analytics/report.py
@@ -4,9 +4,19 @@
from datetime import datetime
from ...._models import BaseModel
-from ...unnamed_schema_ref_6595695ff25b0614667b25f66b7bbaba import UnnamedSchemaRef6595695ff25b0614667b25f66b7bbaba
-__all__ = ["Report", "Query"]
+__all__ = ["Report", "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."""
class Query(BaseModel):
@@ -36,7 +46,7 @@ class Query(BaseModel):
class Report(BaseModel):
- data: List[UnnamedSchemaRef6595695ff25b0614667b25f66b7bbaba]
+ data: List[Data]
"""Array with one row per combination of dimension values."""
data_lag: float
diff --git a/src/cloudflare/types/dns/analytics/reports/by_time.py b/src/cloudflare/types/dns/analytics/reports/by_time.py
index 138f5e3338b..5ce605506b8 100644
--- a/src/cloudflare/types/dns/analytics/reports/by_time.py
+++ b/src/cloudflare/types/dns/analytics/reports/by_time.py
@@ -4,8 +4,8 @@
from datetime import datetime
from ....._models import BaseModel
-from ....unnamed_schema_ref_65be9614de145bf4a58d0fddf46df7ca import UnnamedSchemaRef65be9614de145bf4a58d0fddf46df7ca
-from ....unnamed_schema_ref_85b45d163202bbab7456da6b346d9fe2 import UnnamedSchemaRef85b45d163202bbab7456da6b346d9fe2
+from ....dns_analytics_query import DNSAnalyticsQuery
+from ....dns_analytics_nominal_metric import DNSAnalyticsNominalMetric
__all__ = ["ByTime", "Data"]
@@ -17,7 +17,7 @@ class Data(BaseModel):
corresponding to this row.
"""
- metrics: List[UnnamedSchemaRef65be9614de145bf4a58d0fddf46df7ca]
+ metrics: List[DNSAnalyticsNominalMetric]
"""Array with one item per requested metric.
Each item is an array of values, broken down by time interval.
@@ -46,7 +46,7 @@ class ByTime(BaseModel):
Currently always an empty object.
"""
- query: UnnamedSchemaRef85b45d163202bbab7456da6b346d9fe2
+ query: DNSAnalyticsQuery
rows: float
"""Total number of rows in the result."""
diff --git a/src/cloudflare/types/dns/caa_record.py b/src/cloudflare/types/dns/caa_record.py
index 9729f5f88f3..298495fc040 100644
--- a/src/cloudflare/types/dns/caa_record.py
+++ b/src/cloudflare/types/dns/caa_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["CAARecord", "Data"]
@@ -54,7 +54,7 @@ class CAARecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/cert_record.py b/src/cloudflare/types/dns/cert_record.py
index a2f737a1b35..d9a7a6ba9b3 100644
--- a/src/cloudflare/types/dns/cert_record.py
+++ b/src/cloudflare/types/dns/cert_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["CERTRecord", "Data"]
@@ -57,7 +57,7 @@ class CERTRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/cname_record.py b/src/cloudflare/types/dns/cname_record.py
index 099bdbd3490..39e42f0f7d4 100644
--- a/src/cloudflare/types/dns/cname_record.py
+++ b/src/cloudflare/types/dns/cname_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["CNAMERecord"]
@@ -40,7 +40,7 @@ class CNAMERecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/dnskey_record.py b/src/cloudflare/types/dns/dnskey_record.py
index 1acf9d29571..e2f6284d7ca 100644
--- a/src/cloudflare/types/dns/dnskey_record.py
+++ b/src/cloudflare/types/dns/dnskey_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["DNSKEYRecord", "Data"]
@@ -57,7 +57,7 @@ class DNSKEYRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/ds_record.py b/src/cloudflare/types/dns/ds_record.py
index a24d5b535e1..cc6e93c8ab7 100644
--- a/src/cloudflare/types/dns/ds_record.py
+++ b/src/cloudflare/types/dns/ds_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["DSRecord", "Data"]
@@ -57,7 +57,7 @@ class DSRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/https_record.py b/src/cloudflare/types/dns/https_record.py
index 65175876b7c..f3a412966f5 100644
--- a/src/cloudflare/types/dns/https_record.py
+++ b/src/cloudflare/types/dns/https_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["HTTPSRecord", "Data"]
@@ -54,7 +54,7 @@ class HTTPSRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/loc_record.py b/src/cloudflare/types/dns/loc_record.py
index 071e0c5b467..66b3e2d9eaf 100644
--- a/src/cloudflare/types/dns/loc_record.py
+++ b/src/cloudflare/types/dns/loc_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["LOCRecord", "Data"]
@@ -81,7 +81,7 @@ class LOCRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/mx_record.py b/src/cloudflare/types/dns/mx_record.py
index 447e3da682d..dd2aa333e2a 100644
--- a/src/cloudflare/types/dns/mx_record.py
+++ b/src/cloudflare/types/dns/mx_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["MXRecord"]
@@ -46,7 +46,7 @@ class MXRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/naptr_record.py b/src/cloudflare/types/dns/naptr_record.py
index 8b94e2292b0..77dc8f3539a 100644
--- a/src/cloudflare/types/dns/naptr_record.py
+++ b/src/cloudflare/types/dns/naptr_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["NAPTRRecord", "Data"]
@@ -63,7 +63,7 @@ class NAPTRRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/ns_record.py b/src/cloudflare/types/dns/ns_record.py
index 68c4539ac7a..d71fd5437fa 100644
--- a/src/cloudflare/types/dns/ns_record.py
+++ b/src/cloudflare/types/dns/ns_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["NSRecord"]
@@ -40,7 +40,7 @@ class NSRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/ptr_record.py b/src/cloudflare/types/dns/ptr_record.py
index f056154eee6..46d91d3a4eb 100644
--- a/src/cloudflare/types/dns/ptr_record.py
+++ b/src/cloudflare/types/dns/ptr_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["PTRRecord"]
@@ -40,7 +40,7 @@ class PTRRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb.py b/src/cloudflare/types/dns/record_metadata.py
similarity index 74%
rename from src/cloudflare/types/dns/unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb.py
rename to src/cloudflare/types/dns/record_metadata.py
index df69ac76640..f2e67cdb214 100644
--- a/src/cloudflare/types/dns/unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb.py
+++ b/src/cloudflare/types/dns/record_metadata.py
@@ -4,10 +4,10 @@
from ..._models import BaseModel
-__all__ = ["UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb"]
+__all__ = ["RecordMetadata"]
-class UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb(BaseModel):
+class RecordMetadata(BaseModel):
auto_added: Optional[bool] = None
"""
Will exist if Cloudflare automatically added this DNS record during initial
diff --git a/src/cloudflare/types/dns/unnamed_schema_ref_2f895e023ae55b55d2f5925449b819cd.py b/src/cloudflare/types/dns/record_process_timing.py
similarity index 77%
rename from src/cloudflare/types/dns/unnamed_schema_ref_2f895e023ae55b55d2f5925449b819cd.py
rename to src/cloudflare/types/dns/record_process_timing.py
index 59e24ff1aa0..1fc4d7db12a 100644
--- a/src/cloudflare/types/dns/unnamed_schema_ref_2f895e023ae55b55d2f5925449b819cd.py
+++ b/src/cloudflare/types/dns/record_process_timing.py
@@ -5,10 +5,10 @@
from ..._models import BaseModel
-__all__ = ["UnnamedSchemaRef2f895e023ae55b55d2f5925449b819cd"]
+__all__ = ["RecordProcessTiming"]
-class UnnamedSchemaRef2f895e023ae55b55d2f5925449b819cd(BaseModel):
+class RecordProcessTiming(BaseModel):
end_time: Optional[datetime] = None
"""When the file parsing ended."""
diff --git a/src/cloudflare/types/dns/smimea_record.py b/src/cloudflare/types/dns/smimea_record.py
index 32cb6a90a11..34ce2908956 100644
--- a/src/cloudflare/types/dns/smimea_record.py
+++ b/src/cloudflare/types/dns/smimea_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["SMIMEARecord", "Data"]
@@ -57,7 +57,7 @@ class SMIMEARecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/srv_record.py b/src/cloudflare/types/dns/srv_record.py
index c0f9c21a03f..5bb285beee5 100644
--- a/src/cloudflare/types/dns/srv_record.py
+++ b/src/cloudflare/types/dns/srv_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["SRVRecord", "Data"]
@@ -89,7 +89,7 @@ class SRVRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/sshfp_record.py b/src/cloudflare/types/dns/sshfp_record.py
index 45ce49bc768..7be08b2031e 100644
--- a/src/cloudflare/types/dns/sshfp_record.py
+++ b/src/cloudflare/types/dns/sshfp_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["SSHFPRecord", "Data"]
@@ -54,7 +54,7 @@ class SSHFPRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/svcb_record.py b/src/cloudflare/types/dns/svcb_record.py
index 299c46d8534..5b5fcad2b98 100644
--- a/src/cloudflare/types/dns/svcb_record.py
+++ b/src/cloudflare/types/dns/svcb_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["SVCBRecord", "Data"]
@@ -54,7 +54,7 @@ class SVCBRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/tlsa_record.py b/src/cloudflare/types/dns/tlsa_record.py
index 6c9c4ff9844..a398ee626ec 100644
--- a/src/cloudflare/types/dns/tlsa_record.py
+++ b/src/cloudflare/types/dns/tlsa_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["TLSARecord", "Data"]
@@ -57,7 +57,7 @@ class TLSARecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/txt_record.py b/src/cloudflare/types/dns/txt_record.py
index b4a96e69b55..f2e0404df9a 100644
--- a/src/cloudflare/types/dns/txt_record.py
+++ b/src/cloudflare/types/dns/txt_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["TXTRecord"]
@@ -40,7 +40,7 @@ class TXTRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns/uri_record.py b/src/cloudflare/types/dns/uri_record.py
index c23dd6d4f37..508c3941b5f 100644
--- a/src/cloudflare/types/dns/uri_record.py
+++ b/src/cloudflare/types/dns/uri_record.py
@@ -7,7 +7,7 @@
from .ttl import TTL
from ..._models import BaseModel
from .record_tags import RecordTags
-from .unnamed_schema_ref_1391721bdb8938d5420a8bc738a44deb import UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb
+from .record_metadata import RecordMetadata
__all__ = ["URIRecord", "Data"]
@@ -57,7 +57,7 @@ class URIRecord(BaseModel):
Cloudflare).
"""
- meta: Optional[UnnamedSchemaRef1391721bdb8938d5420a8bc738a44deb] = None
+ meta: Optional[RecordMetadata] = None
"""Extra Cloudflare-specific information about the record."""
modified_on: Optional[datetime] = None
diff --git a/src/cloudflare/types/dns_analytics_nominal_metric.py b/src/cloudflare/types/dns_analytics_nominal_metric.py
new file mode 100644
index 00000000000..c8805568346
--- /dev/null
+++ b/src/cloudflare/types/dns_analytics_nominal_metric.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import List
+
+__all__ = ["DNSAnalyticsNominalMetric"]
+
+DNSAnalyticsNominalMetric = List[object]
diff --git a/src/cloudflare/types/unnamed_schema_ref_85b45d163202bbab7456da6b346d9fe2.py b/src/cloudflare/types/dns_analytics_query.py
similarity index 88%
rename from src/cloudflare/types/unnamed_schema_ref_85b45d163202bbab7456da6b346d9fe2.py
rename to src/cloudflare/types/dns_analytics_query.py
index fce05fe3178..d287e82cf77 100644
--- a/src/cloudflare/types/unnamed_schema_ref_85b45d163202bbab7456da6b346d9fe2.py
+++ b/src/cloudflare/types/dns_analytics_query.py
@@ -6,10 +6,10 @@
from .._models import BaseModel
-__all__ = ["UnnamedSchemaRef85b45d163202bbab7456da6b346d9fe2"]
+__all__ = ["DNSAnalyticsQuery"]
-class UnnamedSchemaRef85b45d163202bbab7456da6b346d9fe2(BaseModel):
+class DNSAnalyticsQuery(BaseModel):
dimensions: List[str]
"""Array of dimension names."""
diff --git a/src/cloudflare/types/domain_validation_type.py b/src/cloudflare/types/domain_validation_type.py
new file mode 100644
index 00000000000..1d079af9828
--- /dev/null
+++ b/src/cloudflare/types/domain_validation_type.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing_extensions import Literal
+
+__all__ = ["DomainValidationType"]
+
+DomainValidationType = Literal["dv"]
diff --git a/src/cloudflare/types/firewall/__init__.py b/src/cloudflare/types/firewall/__init__.py
index 34842db5dd6..463e992a863 100644
--- a/src/cloudflare/types/firewall/__init__.py
+++ b/src/cloudflare/types/firewall/__init__.py
@@ -19,6 +19,7 @@
from .ua_rule_list_params import UARuleListParams as UARuleListParams
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
@@ -29,12 +30,17 @@
from .access_rule_edit_params import AccessRuleEditParams as AccessRuleEditParams
from .access_rule_list_params import AccessRuleListParams as AccessRuleListParams
from .asn_configuration_param import ASNConfigurationParam as ASNConfigurationParam
+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 .ipv6_configuration_param import IPV6ConfigurationParam as IPV6ConfigurationParam
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 .lockdown_ip_configuration import LockdownIPConfiguration as LockdownIPConfiguration
+from .access_rule_create_response import AccessRuleCreateResponse as AccessRuleCreateResponse
from .access_rule_delete_response import AccessRuleDeleteResponse as AccessRuleDeleteResponse
from .country_configuration_param import CountryConfigurationParam as CountryConfigurationParam
from .lockdown_cidr_configuration import LockdownCIDRConfiguration as LockdownCIDRConfiguration
diff --git a/src/cloudflare/types/firewall/access_rule_create_response.py b/src/cloudflare/types/firewall/access_rule_create_response.py
new file mode 100644
index 00000000000..0a4df8a881b
--- /dev/null
+++ b/src/cloudflare/types/firewall/access_rule_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["AccessRuleCreateResponse"]
+
+AccessRuleCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/firewall/access_rule_edit_response.py b/src/cloudflare/types/firewall/access_rule_edit_response.py
new file mode 100644
index 00000000000..a27b308d2ab
--- /dev/null
+++ b/src/cloudflare/types/firewall/access_rule_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["AccessRuleEditResponse"]
+
+AccessRuleEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/firewall/access_rule_get_response.py b/src/cloudflare/types/firewall/access_rule_get_response.py
new file mode 100644
index 00000000000..a824c545bc9
--- /dev/null
+++ b/src/cloudflare/types/firewall/access_rule_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["AccessRuleGetResponse"]
+
+AccessRuleGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/firewall/ua_rule_create_response.py b/src/cloudflare/types/firewall/ua_rule_create_response.py
new file mode 100644
index 00000000000..9f5213baa44
--- /dev/null
+++ b/src/cloudflare/types/firewall/ua_rule_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["UARuleCreateResponse"]
+
+UARuleCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/firewall/ua_rule_get_response.py b/src/cloudflare/types/firewall/ua_rule_get_response.py
new file mode 100644
index 00000000000..135eee2fdca
--- /dev/null
+++ b/src/cloudflare/types/firewall/ua_rule_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["UARuleGetResponse"]
+
+UARuleGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/firewall/ua_rule_update_response.py b/src/cloudflare/types/firewall/ua_rule_update_response.py
new file mode 100644
index 00000000000..4d88bc66b96
--- /dev/null
+++ b/src/cloudflare/types/firewall/ua_rule_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["UARuleUpdateResponse"]
+
+UARuleUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/firewall/waf/packages/__init__.py b/src/cloudflare/types/firewall/waf/packages/__init__.py
index 2610fbd1ed9..944fccf42da 100644
--- a/src/cloudflare/types/firewall/waf/packages/__init__.py
+++ b/src/cloudflare/types/firewall/waf/packages/__init__.py
@@ -7,8 +7,11 @@
from .rule_list_params import RuleListParams as RuleListParams
from .group_edit_params import GroupEditParams as GroupEditParams
from .group_list_params import GroupListParams as GroupListParams
+from .rule_get_response import RuleGetResponse as RuleGetResponse
+from .group_get_response import GroupGetResponse as GroupGetResponse
from .rule_edit_response import RuleEditResponse as RuleEditResponse
from .rule_list_response import RuleListResponse as RuleListResponse
+from .group_edit_response import GroupEditResponse as GroupEditResponse
from .allowed_modes_anomaly import AllowedModesAnomaly as AllowedModesAnomaly
from .unnamed_schema_ref_532d8b97684c9032dd36bae8acddebf5 import (
UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5 as UnnamedSchemaRef532d8b97684c9032dd36bae8acddebf5,
diff --git a/src/cloudflare/types/firewall/waf/packages/group_edit_response.py b/src/cloudflare/types/firewall/waf/packages/group_edit_response.py
new file mode 100644
index 00000000000..8e8ef5a3f20
--- /dev/null
+++ b/src/cloudflare/types/firewall/waf/packages/group_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["GroupEditResponse"]
+
+GroupEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/firewall/waf/packages/group_get_response.py b/src/cloudflare/types/firewall/waf/packages/group_get_response.py
new file mode 100644
index 00000000000..3d8278e8487
--- /dev/null
+++ b/src/cloudflare/types/firewall/waf/packages/group_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["GroupGetResponse"]
+
+GroupGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/firewall/waf/packages/rule_get_response.py b/src/cloudflare/types/firewall/waf/packages/rule_get_response.py
new file mode 100644
index 00000000000..b17274e52fe
--- /dev/null
+++ b/src/cloudflare/types/firewall/waf/packages/rule_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["RuleGetResponse"]
+
+RuleGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/hyperdrive/__init__.py b/src/cloudflare/types/hyperdrive/__init__.py
index dea31023f50..2f425ad383c 100644
--- a/src/cloudflare/types/hyperdrive/__init__.py
+++ b/src/cloudflare/types/hyperdrive/__init__.py
@@ -6,3 +6,4 @@
from .config_edit_params import ConfigEditParams as ConfigEditParams
from .config_create_params import ConfigCreateParams as ConfigCreateParams
from .config_update_params import ConfigUpdateParams as ConfigUpdateParams
+from .config_delete_response import ConfigDeleteResponse as ConfigDeleteResponse
diff --git a/src/cloudflare/types/hyperdrive/config_delete_response.py b/src/cloudflare/types/hyperdrive/config_delete_response.py
new file mode 100644
index 00000000000..be480da8945
--- /dev/null
+++ b/src/cloudflare/types/hyperdrive/config_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["ConfigDeleteResponse"]
+
+ConfigDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/images/__init__.py b/src/cloudflare/types/images/__init__.py
index c30696d0c30..30dfb30e782 100644
--- a/src/cloudflare/types/images/__init__.py
+++ b/src/cloudflare/types/images/__init__.py
@@ -10,3 +10,4 @@
from .v1_delete_params import V1DeleteParams as V1DeleteParams
from .v1_list_response import V1ListResponse as V1ListResponse
from .v2_list_response import V2ListResponse as V2ListResponse
+from .v1_delete_response import V1DeleteResponse as V1DeleteResponse
diff --git a/src/cloudflare/types/images/v1/__init__.py b/src/cloudflare/types/images/v1/__init__.py
index 0c36bab12ea..ceb1405d630 100644
--- a/src/cloudflare/types/images/v1/__init__.py
+++ b/src/cloudflare/types/images/v1/__init__.py
@@ -11,3 +11,4 @@
from .variant_delete_params import VariantDeleteParams as VariantDeleteParams
from .variant_edit_response import VariantEditResponse as VariantEditResponse
from .variant_create_response import VariantCreateResponse as VariantCreateResponse
+from .variant_delete_response import VariantDeleteResponse as VariantDeleteResponse
diff --git a/src/cloudflare/types/images/v1/variant_delete_response.py b/src/cloudflare/types/images/v1/variant_delete_response.py
new file mode 100644
index 00000000000..76df3ba49a2
--- /dev/null
+++ b/src/cloudflare/types/images/v1/variant_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["VariantDeleteResponse"]
+
+VariantDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/images/v1_delete_response.py b/src/cloudflare/types/images/v1_delete_response.py
new file mode 100644
index 00000000000..1cd4c8aec50
--- /dev/null
+++ b/src/cloudflare/types/images/v1_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["V1DeleteResponse"]
+
+V1DeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/keyless_certificate_create_params.py b/src/cloudflare/types/keyless_certificate_create_params.py
index b937dbdb683..0d3c9922376 100644
--- a/src/cloudflare/types/keyless_certificate_create_params.py
+++ b/src/cloudflare/types/keyless_certificate_create_params.py
@@ -5,7 +5,7 @@
from typing_extensions import Required, TypedDict
from .tunnel_param import TunnelParam
-from .unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+from .bundle_method import BundleMethod
__all__ = ["KeylessCertificateCreateParams"]
@@ -26,7 +26,7 @@ class KeylessCertificateCreateParams(TypedDict, total=False):
Keyless SSL server.
"""
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+ bundle_method: BundleMethod
"""
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/__init__.py b/src/cloudflare/types/load_balancers/__init__.py
index a7e6c17cea9..efdda69cbca 100644
--- a/src/cloudflare/types/load_balancers/__init__.py
+++ b/src/cloudflare/types/load_balancers/__init__.py
@@ -16,6 +16,7 @@
from .monitor_get_response import MonitorGetResponse as MonitorGetResponse
from .pool_delete_response import PoolDeleteResponse as PoolDeleteResponse
from .preview_get_response import PreviewGetResponse as PreviewGetResponse
+from .region_list_response import RegionListResponse as RegionListResponse
from .monitor_create_params import MonitorCreateParams as MonitorCreateParams
from .monitor_delete_params import MonitorDeleteParams as MonitorDeleteParams
from .monitor_edit_response import MonitorEditResponse as MonitorEditResponse
diff --git a/src/cloudflare/types/load_balancers/region_list_response.py b/src/cloudflare/types/load_balancers/region_list_response.py
new file mode 100644
index 00000000000..1e027bdb51f
--- /dev/null
+++ b/src/cloudflare/types/load_balancers/region_list_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["RegionListResponse"]
+
+RegionListResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/membership_get_response.py b/src/cloudflare/types/membership_get_response.py
new file mode 100644
index 00000000000..58aa5f5943b
--- /dev/null
+++ b/src/cloudflare/types/membership_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["MembershipGetResponse"]
+
+MembershipGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/membership_update_response.py b/src/cloudflare/types/membership_update_response.py
new file mode 100644
index 00000000000..adcc658f350
--- /dev/null
+++ b/src/cloudflare/types/membership_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["MembershipUpdateResponse"]
+
+MembershipUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/origin_ca_certificate_create_response.py b/src/cloudflare/types/origin_ca_certificate_create_response.py
new file mode 100644
index 00000000000..dfa04eb256f
--- /dev/null
+++ b/src/cloudflare/types/origin_ca_certificate_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["OriginCACertificateCreateResponse"]
+
+OriginCACertificateCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/origin_ca_certificate_get_response.py b/src/cloudflare/types/origin_ca_certificate_get_response.py
new file mode 100644
index 00000000000..7b2a5a6f147
--- /dev/null
+++ b/src/cloudflare/types/origin_ca_certificate_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["OriginCACertificateGetResponse"]
+
+OriginCACertificateGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/origin_post_quantum_encryption_get_response.py b/src/cloudflare/types/origin_post_quantum_encryption_get_response.py
new file mode 100644
index 00000000000..29d22ad7a3b
--- /dev/null
+++ b/src/cloudflare/types/origin_post_quantum_encryption_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["OriginPostQuantumEncryptionGetResponse"]
+
+OriginPostQuantumEncryptionGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/origin_post_quantum_encryption_update_response.py b/src/cloudflare/types/origin_post_quantum_encryption_update_response.py
new file mode 100644
index 00000000000..ecf11d9553f
--- /dev/null
+++ b/src/cloudflare/types/origin_post_quantum_encryption_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["OriginPostQuantumEncryptionUpdateResponse"]
+
+OriginPostQuantumEncryptionUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/origin_tls_client_auth_create_response.py b/src/cloudflare/types/origin_tls_client_auth_create_response.py
new file mode 100644
index 00000000000..8342a97f7eb
--- /dev/null
+++ b/src/cloudflare/types/origin_tls_client_auth_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["OriginTLSClientAuthCreateResponse"]
+
+OriginTLSClientAuthCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/origin_tls_client_auth_delete_response.py b/src/cloudflare/types/origin_tls_client_auth_delete_response.py
new file mode 100644
index 00000000000..930afb0c8f4
--- /dev/null
+++ b/src/cloudflare/types/origin_tls_client_auth_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["OriginTLSClientAuthDeleteResponse"]
+
+OriginTLSClientAuthDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/origin_tls_client_auth_get_response.py b/src/cloudflare/types/origin_tls_client_auth_get_response.py
new file mode 100644
index 00000000000..d75e3ab651d
--- /dev/null
+++ b/src/cloudflare/types/origin_tls_client_auth_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["OriginTLSClientAuthGetResponse"]
+
+OriginTLSClientAuthGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/pagerule_create_response.py b/src/cloudflare/types/pagerule_create_response.py
new file mode 100644
index 00000000000..96a4e595341
--- /dev/null
+++ b/src/cloudflare/types/pagerule_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["PageruleCreateResponse"]
+
+PageruleCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/pagerule_edit_response.py b/src/cloudflare/types/pagerule_edit_response.py
new file mode 100644
index 00000000000..d57a5670779
--- /dev/null
+++ b/src/cloudflare/types/pagerule_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["PageruleEditResponse"]
+
+PageruleEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/pagerule_get_response.py b/src/cloudflare/types/pagerule_get_response.py
new file mode 100644
index 00000000000..00aebec71a7
--- /dev/null
+++ b/src/cloudflare/types/pagerule_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["PageruleGetResponse"]
+
+PageruleGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/pagerule_update_response.py b/src/cloudflare/types/pagerule_update_response.py
new file mode 100644
index 00000000000..7e101d4eace
--- /dev/null
+++ b/src/cloudflare/types/pagerule_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["PageruleUpdateResponse"]
+
+PageruleUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/rate_limit_create_response.py b/src/cloudflare/types/rate_limit_create_response.py
new file mode 100644
index 00000000000..f5db0f69aaa
--- /dev/null
+++ b/src/cloudflare/types/rate_limit_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["RateLimitCreateResponse"]
+
+RateLimitCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/rate_limit_edit_response.py b/src/cloudflare/types/rate_limit_edit_response.py
new file mode 100644
index 00000000000..0ab401c3f13
--- /dev/null
+++ b/src/cloudflare/types/rate_limit_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["RateLimitEditResponse"]
+
+RateLimitEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/rate_limit_get_response.py b/src/cloudflare/types/rate_limit_get_response.py
new file mode 100644
index 00000000000..ea395191218
--- /dev/null
+++ b/src/cloudflare/types/rate_limit_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["RateLimitGetResponse"]
+
+RateLimitGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/rulesets/__init__.py b/src/cloudflare/types/rulesets/__init__.py
index b73de6bb37b..2a3e688b0f5 100644
--- a/src/cloudflare/types/rulesets/__init__.py
+++ b/src/cloudflare/types/rulesets/__init__.py
@@ -2,10 +2,12 @@
from __future__ import annotations
+from .logging import Logging as Logging
from .log_rule import LogRule as LogRule
from .skip_rule import SkipRule as SkipRule
from .block_rule import BlockRule as BlockRule
from .execute_rule import ExecuteRule as ExecuteRule
+from .logging_param import LoggingParam as LoggingParam
from .log_rule_param import LogRuleParam as LogRuleParam
from .skip_rule_param import SkipRuleParam as SkipRuleParam
from .block_rule_param import BlockRuleParam as BlockRuleParam
diff --git a/src/cloudflare/types/rulesets/block_rule.py b/src/cloudflare/types/rulesets/block_rule.py
index 3ff2fa2e025..2efc89a4e2d 100644
--- a/src/cloudflare/types/rulesets/block_rule.py
+++ b/src/cloudflare/types/rulesets/block_rule.py
@@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
-from ..shared import UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+from .logging import Logging
from ..._models import BaseModel
__all__ = ["BlockRule", "ActionParameters", "ActionParametersResponse"]
@@ -54,7 +54,7 @@ class BlockRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/block_rule_param.py b/src/cloudflare/types/rulesets/block_rule_param.py
index e9361d673c8..c1ff6a627cf 100644
--- a/src/cloudflare/types/rulesets/block_rule_param.py
+++ b/src/cloudflare/types/rulesets/block_rule_param.py
@@ -4,7 +4,7 @@
from typing_extensions import Literal, Required, TypedDict
-from ...types import shared_params
+from .logging_param import LoggingParam
__all__ = ["BlockRuleParam", "ActionParameters", "ActionParametersResponse"]
@@ -44,7 +44,7 @@ class BlockRuleParam(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/rulesets/execute_rule.py b/src/cloudflare/types/rulesets/execute_rule.py
index 40ce925232a..fc82785cd1a 100644
--- a/src/cloudflare/types/rulesets/execute_rule.py
+++ b/src/cloudflare/types/rulesets/execute_rule.py
@@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
-from ..shared import UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+from .logging import Logging
from ..._models import BaseModel
__all__ = [
@@ -122,7 +122,7 @@ class ExecuteRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/execute_rule_param.py b/src/cloudflare/types/rulesets/execute_rule_param.py
index 64673f58c5e..e720f682577 100644
--- a/src/cloudflare/types/rulesets/execute_rule_param.py
+++ b/src/cloudflare/types/rulesets/execute_rule_param.py
@@ -5,7 +5,7 @@
from typing import Iterable
from typing_extensions import Literal, Required, TypedDict
-from ...types import shared_params
+from .logging_param import LoggingParam
__all__ = [
"ExecuteRuleParam",
@@ -113,7 +113,7 @@ class ExecuteRuleParam(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/rulesets/log_rule.py b/src/cloudflare/types/rulesets/log_rule.py
index 0c991cbdd9b..2f0ae1804b8 100644
--- a/src/cloudflare/types/rulesets/log_rule.py
+++ b/src/cloudflare/types/rulesets/log_rule.py
@@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
-from ..shared import UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+from .logging import Logging
from ..._models import BaseModel
__all__ = ["LogRule"]
@@ -38,7 +38,7 @@ class LogRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/log_rule_param.py b/src/cloudflare/types/rulesets/log_rule_param.py
index 74bd3e7b1cb..ef0c1e455ca 100644
--- a/src/cloudflare/types/rulesets/log_rule_param.py
+++ b/src/cloudflare/types/rulesets/log_rule_param.py
@@ -4,7 +4,7 @@
from typing_extensions import Literal, TypedDict
-from ...types import shared_params
+from .logging_param import LoggingParam
__all__ = ["LogRuleParam"]
@@ -28,7 +28,7 @@ class LogRuleParam(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c.py b/src/cloudflare/types/rulesets/logging.py
similarity index 60%
rename from src/cloudflare/types/shared/unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c.py
rename to src/cloudflare/types/rulesets/logging.py
index 1b370c85e5b..d7a37ba86e6 100644
--- a/src/cloudflare/types/shared/unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c.py
+++ b/src/cloudflare/types/rulesets/logging.py
@@ -1,12 +1,10 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-
from ..._models import BaseModel
-__all__ = ["UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c"]
+__all__ = ["Logging"]
-class UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c(BaseModel):
+class Logging(BaseModel):
enabled: bool
"""Whether to generate a log when the rule matches."""
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c.py b/src/cloudflare/types/rulesets/logging_param.py
similarity index 64%
rename from src/cloudflare/types/shared_params/unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c.py
rename to src/cloudflare/types/rulesets/logging_param.py
index 0399c05f1e7..7ffdd5a2f4d 100644
--- a/src/cloudflare/types/shared_params/unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c.py
+++ b/src/cloudflare/types/rulesets/logging_param.py
@@ -4,9 +4,9 @@
from typing_extensions import Required, TypedDict
-__all__ = ["UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c"]
+__all__ = ["LoggingParam"]
-class UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c(TypedDict, total=False):
+class LoggingParam(TypedDict, total=False):
enabled: Required[bool]
"""Whether to generate a log when the rule matches."""
diff --git a/src/cloudflare/types/rulesets/rule_create_params.py b/src/cloudflare/types/rulesets/rule_create_params.py
index f90079b147a..4aa8236f744 100644
--- a/src/cloudflare/types/rulesets/rule_create_params.py
+++ b/src/cloudflare/types/rulesets/rule_create_params.py
@@ -5,7 +5,7 @@
from typing import Dict, List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
-from ...types import shared_params
+from .logging_param import LoggingParam
__all__ = [
"RuleCreateParams",
@@ -49,7 +49,7 @@ class BlockRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
@@ -97,7 +97,7 @@ class ExecuteRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
@@ -206,7 +206,7 @@ class LogRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
@@ -238,7 +238,7 @@ class SkipRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/rulesets/rule_edit_params.py b/src/cloudflare/types/rulesets/rule_edit_params.py
index d8f55fc560d..c682395c92f 100644
--- a/src/cloudflare/types/rulesets/rule_edit_params.py
+++ b/src/cloudflare/types/rulesets/rule_edit_params.py
@@ -5,7 +5,7 @@
from typing import Dict, List, Union, Iterable
from typing_extensions import Literal, Required, TypedDict
-from ...types import shared_params
+from .logging_param import LoggingParam
__all__ = [
"RuleEditParams",
@@ -52,7 +52,7 @@ class BlockRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
@@ -103,7 +103,7 @@ class ExecuteRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
@@ -215,7 +215,7 @@ class LogRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
@@ -250,7 +250,7 @@ class SkipRule(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/rulesets/skip_rule.py b/src/cloudflare/types/rulesets/skip_rule.py
index 25e6e09faa3..ae51803c15b 100644
--- a/src/cloudflare/types/rulesets/skip_rule.py
+++ b/src/cloudflare/types/rulesets/skip_rule.py
@@ -4,7 +4,7 @@
from datetime import datetime
from typing_extensions import Literal
-from ..shared import UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+from .logging import Logging
from ..._models import BaseModel
__all__ = ["SkipRule", "ActionParameters"]
@@ -97,7 +97,7 @@ class SkipRule(BaseModel):
expression: Optional[str] = None
"""The expression defining which traffic will match the rule."""
- logging: Optional[UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c] = None
+ logging: Optional[Logging] = None
"""An object configuring the rule's logging behavior."""
ref: Optional[str] = None
diff --git a/src/cloudflare/types/rulesets/skip_rule_param.py b/src/cloudflare/types/rulesets/skip_rule_param.py
index bc8f97bca1b..27b20ebba30 100644
--- a/src/cloudflare/types/rulesets/skip_rule_param.py
+++ b/src/cloudflare/types/rulesets/skip_rule_param.py
@@ -5,7 +5,7 @@
from typing import Dict, List
from typing_extensions import Literal, TypedDict
-from ...types import shared_params
+from .logging_param import LoggingParam
__all__ = ["SkipRuleParam", "ActionParameters"]
@@ -84,7 +84,7 @@ class SkipRuleParam(TypedDict, total=False):
expression: str
"""The expression defining which traffic will match the rule."""
- logging: shared_params.UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c
+ logging: LoggingParam
"""An object configuring the rule's logging behavior."""
ref: str
diff --git a/src/cloudflare/types/shared/__init__.py b/src/cloudflare/types/shared/__init__.py
index a93b1d9d2af..5a67949303d 100644
--- a/src/cloudflare/types/shared/__init__.py
+++ b/src/cloudflare/types/shared/__init__.py
@@ -5,24 +5,4 @@
from .identifier import Identifier as Identifier
from .response_info import ResponseInfo as ResponseInfo
from .pagination_info import PaginationInfo as PaginationInfo
-from .unnamed_schema_ref_025497b7e63379c31929636b5186e45c import (
- UnnamedSchemaRef025497b7e63379c31929636b5186e45c as UnnamedSchemaRef025497b7e63379c31929636b5186e45c,
-)
-from .unnamed_schema_ref_33f2e3917f3fe46ad98af0acbb1d9a19 import (
- UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19 as UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19,
-)
-from .unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c import (
- UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c as UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c,
-)
-from .unnamed_schema_ref_23001f1f0b697900e282236466a95fa3 import (
- UnnamedSchemaRef23001f1f0b697900e282236466a95fa3 as UnnamedSchemaRef23001f1f0b697900e282236466a95fa3,
-)
-from .unnamed_schema_ref_9444735ca60712dbcf8afd832eb5716a import (
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a as UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a,
-)
-from .unnamed_schema_ref_619309774d07ec6904f1e354560d6028 import (
- UnnamedSchemaRef619309774d07ec6904f1e354560d6028 as UnnamedSchemaRef619309774d07ec6904f1e354560d6028,
-)
-from .unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24 import (
- UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 as UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24,
-)
+from .load_balancer_preview import LoadBalancerPreview as LoadBalancerPreview
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_025497b7e63379c31929636b5186e45c.py b/src/cloudflare/types/shared/load_balancer_preview.py
similarity index 69%
rename from src/cloudflare/types/shared/unnamed_schema_ref_025497b7e63379c31929636b5186e45c.py
rename to src/cloudflare/types/shared/load_balancer_preview.py
index 698a501bde0..e57784aa9b5 100644
--- a/src/cloudflare/types/shared/unnamed_schema_ref_025497b7e63379c31929636b5186e45c.py
+++ b/src/cloudflare/types/shared/load_balancer_preview.py
@@ -4,10 +4,10 @@
from ..._models import BaseModel
-__all__ = ["UnnamedSchemaRef025497b7e63379c31929636b5186e45c"]
+__all__ = ["LoadBalancerPreview"]
-class UnnamedSchemaRef025497b7e63379c31929636b5186e45c(BaseModel):
+class LoadBalancerPreview(BaseModel):
pools: Optional[Dict[str, str]] = None
"""Monitored pool IDs mapped to their respective names."""
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_23001f1f0b697900e282236466a95fa3.py b/src/cloudflare/types/shared/unnamed_schema_ref_23001f1f0b697900e282236466a95fa3.py
deleted file mode 100644
index efe0112f7d1..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_23001f1f0b697900e282236466a95fa3.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Optional
-
-from ..._models import BaseModel
-
-__all__ = ["UnnamedSchemaRef23001f1f0b697900e282236466a95fa3"]
-
-
-class UnnamedSchemaRef23001f1f0b697900e282236466a95fa3(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_33f2e3917f3fe46ad98af0acbb1d9a19.py b/src/cloudflare/types/shared/unnamed_schema_ref_33f2e3917f3fe46ad98af0acbb1d9a19.py
deleted file mode 100644
index cf2899cec22..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_33f2e3917f3fe46ad98af0acbb1d9a19.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__ = [
- "UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19",
- "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."""
-
-
-UnnamedSchemaRef33f2e3917f3fe46ad98af0acbb1d9a19 = Union[TunnelCfdTunnel, TunnelWARPConnectorTunnel]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_619309774d07ec6904f1e354560d6028.py b/src/cloudflare/types/shared/unnamed_schema_ref_619309774d07ec6904f1e354560d6028.py
deleted file mode 100644
index 128623ca632..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_619309774d07ec6904f1e354560d6028.py
+++ /dev/null
@@ -1,4 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-
-
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_9444735ca60712dbcf8afd832eb5716a.py b/src/cloudflare/types/shared/unnamed_schema_ref_9444735ca60712dbcf8afd832eb5716a.py
deleted file mode 100644
index 7d657bb9cfd..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_9444735ca60712dbcf8afd832eb5716a.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union, Optional
-
-__all__ = ["UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a"]
-
-UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/shared/unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24.py b/src/cloudflare/types/shared/unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24.py
deleted file mode 100644
index 00b7abb4f48..00000000000
--- a/src/cloudflare/types/shared/unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Optional
-
-from ..._models import BaseModel
-
-__all__ = ["UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24"]
-
-
-class UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24(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_params/__init__.py b/src/cloudflare/types/shared_params/__init__.py
index 91ba5ddd999..9325e6fd293 100644
--- a/src/cloudflare/types/shared_params/__init__.py
+++ b/src/cloudflare/types/shared_params/__init__.py
@@ -1,9 +1,3 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .response_info import ResponseInfo as ResponseInfo
-from .unnamed_schema_ref_70f2c6ccd8a405358ac7ef8fc3d6751c import (
- UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c as UnnamedSchemaRef70f2c6ccd8a405358ac7ef8fc3d6751c,
-)
-from .unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24 import (
- UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24 as UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24,
-)
diff --git a/src/cloudflare/types/spectrum/__init__.py b/src/cloudflare/types/spectrum/__init__.py
index 6f2b86f7d15..0dc9e6a6b7b 100644
--- a/src/cloudflare/types/spectrum/__init__.py
+++ b/src/cloudflare/types/spectrum/__init__.py
@@ -3,6 +3,7 @@
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/spectrum/app_get_response.py b/src/cloudflare/types/spectrum/app_get_response.py
new file mode 100644
index 00000000000..67e2aa1f173
--- /dev/null
+++ b/src/cloudflare/types/spectrum/app_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["AppGetResponse"]
+
+AppGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/ssl/__init__.py b/src/cloudflare/types/ssl/__init__.py
index fbc549559f6..6fce3a9b641 100644
--- a/src/cloudflare/types/ssl/__init__.py
+++ b/src/cloudflare/types/ssl/__init__.py
@@ -5,6 +5,7 @@
from .host import Host as Host
from .verification import Verification as Verification
from .analyze_create_params import AnalyzeCreateParams as AnalyzeCreateParams
+from .analyze_create_response import AnalyzeCreateResponse as AnalyzeCreateResponse
from .verification_get_params import VerificationGetParams as VerificationGetParams
from .verification_edit_params import VerificationEditParams as VerificationEditParams
from .verification_get_response import VerificationGetResponse as VerificationGetResponse
@@ -12,6 +13,7 @@
from .recommendation_get_response import RecommendationGetResponse as RecommendationGetResponse
from .certificate_pack_edit_params import CertificatePackEditParams as CertificatePackEditParams
from .certificate_pack_list_params import CertificatePackListParams as CertificatePackListParams
+from .certificate_pack_get_response import CertificatePackGetResponse as CertificatePackGetResponse
from .certificate_pack_delete_params import CertificatePackDeleteParams as CertificatePackDeleteParams
from .certificate_pack_edit_response import CertificatePackEditResponse as CertificatePackEditResponse
from .certificate_pack_delete_response import CertificatePackDeleteResponse as CertificatePackDeleteResponse
diff --git a/src/cloudflare/types/ssl/analyze_create_params.py b/src/cloudflare/types/ssl/analyze_create_params.py
index 35efe11a72d..284bd34587f 100644
--- a/src/cloudflare/types/ssl/analyze_create_params.py
+++ b/src/cloudflare/types/ssl/analyze_create_params.py
@@ -4,7 +4,7 @@
from typing_extensions import Required, TypedDict
-from ..unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1 import UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+from ..bundle_method import BundleMethod
__all__ = ["AnalyzeCreateParams"]
@@ -13,7 +13,7 @@ class AnalyzeCreateParams(TypedDict, total=False):
zone_id: Required[str]
"""Identifier"""
- bundle_method: UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1
+ bundle_method: BundleMethod
"""
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/ssl/analyze_create_response.py b/src/cloudflare/types/ssl/analyze_create_response.py
new file mode 100644
index 00000000000..7f3bb40cf1f
--- /dev/null
+++ b/src/cloudflare/types/ssl/analyze_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["AnalyzeCreateResponse"]
+
+AnalyzeCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/ssl/certificate_pack_get_response.py b/src/cloudflare/types/ssl/certificate_pack_get_response.py
new file mode 100644
index 00000000000..3623b6ab5af
--- /dev/null
+++ b/src/cloudflare/types/ssl/certificate_pack_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["CertificatePackGetResponse"]
+
+CertificatePackGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/stream/__init__.py b/src/cloudflare/types/stream/__init__.py
index 3bc69b1a145..23791af2545 100644
--- a/src/cloudflare/types/stream/__init__.py
+++ b/src/cloudflare/types/stream/__init__.py
@@ -17,25 +17,32 @@
from .key_delete_response import KeyDeleteResponse as KeyDeleteResponse
from .token_create_params import TokenCreateParams as TokenCreateParams
from .caption_get_response import CaptionGetResponse as CaptionGetResponse
+from .webhook_get_response import WebhookGetResponse as WebhookGetResponse
from .caption_delete_params import CaptionDeleteParams as CaptionDeleteParams
from .caption_update_params import CaptionUpdateParams as CaptionUpdateParams
+from .download_get_response import DownloadGetResponse as DownloadGetResponse
from .token_create_response import TokenCreateResponse as TokenCreateResponse
from .webhook_delete_params import WebhookDeleteParams as WebhookDeleteParams
from .webhook_update_params import WebhookUpdateParams as WebhookUpdateParams
from .download_create_params import DownloadCreateParams as DownloadCreateParams
from .live_input_list_params import LiveInputListParams as LiveInputListParams
+from .watermark_get_response import WatermarkGetResponse as WatermarkGetResponse
from .audio_track_copy_params import AudioTrackCopyParams as AudioTrackCopyParams
from .audio_track_edit_params import AudioTrackEditParams as AudioTrackEditParams
from .caption_delete_response import CaptionDeleteResponse as CaptionDeleteResponse
+from .caption_update_response import CaptionUpdateResponse as CaptionUpdateResponse
from .watermark_create_params import WatermarkCreateParams as WatermarkCreateParams
from .watermark_delete_params import WatermarkDeleteParams as WatermarkDeleteParams
from .webhook_delete_response import WebhookDeleteResponse as WebhookDeleteResponse
+from .webhook_update_response import WebhookUpdateResponse as WebhookUpdateResponse
from .audio_track_get_response import AudioTrackGetResponse as AudioTrackGetResponse
+from .download_create_response import DownloadCreateResponse as DownloadCreateResponse
from .download_delete_response import DownloadDeleteResponse as DownloadDeleteResponse
from .live_input_create_params import LiveInputCreateParams as LiveInputCreateParams
from .live_input_delete_params import LiveInputDeleteParams as LiveInputDeleteParams
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
diff --git a/src/cloudflare/types/stream/caption_update_response.py b/src/cloudflare/types/stream/caption_update_response.py
new file mode 100644
index 00000000000..764754136d0
--- /dev/null
+++ b/src/cloudflare/types/stream/caption_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["CaptionUpdateResponse"]
+
+CaptionUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/stream/download_create_response.py b/src/cloudflare/types/stream/download_create_response.py
new file mode 100644
index 00000000000..814ff089c4a
--- /dev/null
+++ b/src/cloudflare/types/stream/download_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["DownloadCreateResponse"]
+
+DownloadCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/stream/download_get_response.py b/src/cloudflare/types/stream/download_get_response.py
new file mode 100644
index 00000000000..59e574ca9de
--- /dev/null
+++ b/src/cloudflare/types/stream/download_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["DownloadGetResponse"]
+
+DownloadGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/stream/watermark_create_response.py b/src/cloudflare/types/stream/watermark_create_response.py
new file mode 100644
index 00000000000..5d3cfba18a3
--- /dev/null
+++ b/src/cloudflare/types/stream/watermark_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["WatermarkCreateResponse"]
+
+WatermarkCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/stream/watermark_get_response.py b/src/cloudflare/types/stream/watermark_get_response.py
new file mode 100644
index 00000000000..ef115151a41
--- /dev/null
+++ b/src/cloudflare/types/stream/watermark_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["WatermarkGetResponse"]
+
+WatermarkGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/stream/webhook_get_response.py b/src/cloudflare/types/stream/webhook_get_response.py
new file mode 100644
index 00000000000..bc96795077e
--- /dev/null
+++ b/src/cloudflare/types/stream/webhook_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["WebhookGetResponse"]
+
+WebhookGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/stream/webhook_update_response.py b/src/cloudflare/types/stream/webhook_update_response.py
new file mode 100644
index 00000000000..d313dbcbd1e
--- /dev/null
+++ b/src/cloudflare/types/stream/webhook_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["WebhookUpdateResponse"]
+
+WebhookUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/subscription_create_response.py b/src/cloudflare/types/subscription_create_response.py
new file mode 100644
index 00000000000..4b0efa12663
--- /dev/null
+++ b/src/cloudflare/types/subscription_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SubscriptionCreateResponse"]
+
+SubscriptionCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/subscription_get_response.py b/src/cloudflare/types/subscription_get_response.py
new file mode 100644
index 00000000000..6f4b5754077
--- /dev/null
+++ b/src/cloudflare/types/subscription_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SubscriptionGetResponse"]
+
+SubscriptionGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/subscription_update_response.py b/src/cloudflare/types/subscription_update_response.py
new file mode 100644
index 00000000000..12cf6aa283a
--- /dev/null
+++ b/src/cloudflare/types/subscription_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SubscriptionUpdateResponse"]
+
+SubscriptionUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1.py b/src/cloudflare/types/unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1.py
deleted file mode 100644
index c1324606cdc..00000000000
--- a/src/cloudflare/types/unnamed_schema_ref_16aca57bde2963201c7e6e895436c1c1.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1"]
-
-UnnamedSchemaRef16aca57bde2963201c7e6e895436c1c1 = Literal["ubiquitous", "optimal", "force"]
diff --git a/src/cloudflare/types/unnamed_schema_ref_6595695ff25b0614667b25f66b7bbaba.py b/src/cloudflare/types/unnamed_schema_ref_6595695ff25b0614667b25f66b7bbaba.py
deleted file mode 100644
index 52af265a78b..00000000000
--- a/src/cloudflare/types/unnamed_schema_ref_6595695ff25b0614667b25f66b7bbaba.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List
-
-from .._models import BaseModel
-
-__all__ = ["UnnamedSchemaRef6595695ff25b0614667b25f66b7bbaba"]
-
-
-class UnnamedSchemaRef6595695ff25b0614667b25f66b7bbaba(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/unnamed_schema_ref_65be9614de145bf4a58d0fddf46df7ca.py b/src/cloudflare/types/unnamed_schema_ref_65be9614de145bf4a58d0fddf46df7ca.py
deleted file mode 100644
index 8428b253488..00000000000
--- a/src/cloudflare/types/unnamed_schema_ref_65be9614de145bf4a58d0fddf46df7ca.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List
-
-__all__ = ["UnnamedSchemaRef65be9614de145bf4a58d0fddf46df7ca"]
-
-UnnamedSchemaRef65be9614de145bf4a58d0fddf46df7ca = List[object]
diff --git a/src/cloudflare/types/unnamed_schema_ref_78adb375f06c6d462dd92b99e2ecf510.py b/src/cloudflare/types/unnamed_schema_ref_78adb375f06c6d462dd92b99e2ecf510.py
deleted file mode 100644
index 144df300f82..00000000000
--- a/src/cloudflare/types/unnamed_schema_ref_78adb375f06c6d462dd92b99e2ecf510.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510"]
-
-UnnamedSchemaRef78adb375f06c6d462dd92b99e2ecf510 = Literal["http", "txt", "email"]
diff --git a/src/cloudflare/types/unnamed_schema_ref_9a9935a9a770967bb604ae41a81e42e1.py b/src/cloudflare/types/unnamed_schema_ref_9a9935a9a770967bb604ae41a81e42e1.py
deleted file mode 100644
index eb7fad16f89..00000000000
--- a/src/cloudflare/types/unnamed_schema_ref_9a9935a9a770967bb604ae41a81e42e1.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing_extensions import Literal
-
-__all__ = ["UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1"]
-
-UnnamedSchemaRef9a9935a9a770967bb604ae41a81e42e1 = Literal["dv"]
diff --git a/src/cloudflare/types/user/__init__.py b/src/cloudflare/types/user/__init__.py
index bcb4c010762..87aa4f37df5 100644
--- a/src/cloudflare/types/user/__init__.py
+++ b/src/cloudflare/types/user/__init__.py
@@ -10,19 +10,26 @@
from .subscription import Subscription as Subscription
from .token_list_params import TokenListParams as TokenListParams
from .invite_edit_params import InviteEditParams as InviteEditParams
+from .token_get_response import TokenGetResponse as TokenGetResponse
+from .invite_get_response import InviteGetResponse as InviteGetResponse
from .token_create_params import TokenCreateParams as TokenCreateParams
from .token_delete_params import TokenDeleteParams as TokenDeleteParams
from .token_update_params import TokenUpdateParams as TokenUpdateParams
+from .invite_edit_response import InviteEditResponse as InviteEditResponse
from .audit_log_list_params import AuditLogListParams as AuditLogListParams
from .token_create_response import TokenCreateResponse as TokenCreateResponse
from .token_delete_response import TokenDeleteResponse as TokenDeleteResponse
+from .token_update_response import TokenUpdateResponse as TokenUpdateResponse
from .token_verify_response import TokenVerifyResponse as TokenVerifyResponse
from .audit_log_list_response import AuditLogListResponse as AuditLogListResponse
from .organization_list_params import OrganizationListParams as OrganizationListParams
from .subscription_edit_params import SubscriptionEditParams as SubscriptionEditParams
+from .organization_get_response import OrganizationGetResponse as OrganizationGetResponse
from .subscription_get_response import SubscriptionGetResponse as SubscriptionGetResponse
from .organization_delete_params import OrganizationDeleteParams as OrganizationDeleteParams
from .subscription_delete_params import SubscriptionDeleteParams as SubscriptionDeleteParams
+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/billing/__init__.py b/src/cloudflare/types/user/billing/__init__.py
index df6493c8b62..6ec9233866f 100644
--- a/src/cloudflare/types/user/billing/__init__.py
+++ b/src/cloudflare/types/user/billing/__init__.py
@@ -4,3 +4,4 @@
from .billing_history import BillingHistory as BillingHistory
from .history_list_params import HistoryListParams as HistoryListParams
+from .profile_get_response import ProfileGetResponse as ProfileGetResponse
diff --git a/src/cloudflare/types/user/billing/profile_get_response.py b/src/cloudflare/types/user/billing/profile_get_response.py
new file mode 100644
index 00000000000..29d6d78c949
--- /dev/null
+++ b/src/cloudflare/types/user/billing/profile_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["ProfileGetResponse"]
+
+ProfileGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user/invite_edit_response.py b/src/cloudflare/types/user/invite_edit_response.py
new file mode 100644
index 00000000000..646377ca831
--- /dev/null
+++ b/src/cloudflare/types/user/invite_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["InviteEditResponse"]
+
+InviteEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user/invite_get_response.py b/src/cloudflare/types/user/invite_get_response.py
new file mode 100644
index 00000000000..27a15f71311
--- /dev/null
+++ b/src/cloudflare/types/user/invite_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["InviteGetResponse"]
+
+InviteGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user/organization_get_response.py b/src/cloudflare/types/user/organization_get_response.py
new file mode 100644
index 00000000000..4ba74b46f85
--- /dev/null
+++ b/src/cloudflare/types/user/organization_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["OrganizationGetResponse"]
+
+OrganizationGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user/subscription_edit_response.py b/src/cloudflare/types/user/subscription_edit_response.py
new file mode 100644
index 00000000000..b83f60ab65b
--- /dev/null
+++ b/src/cloudflare/types/user/subscription_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SubscriptionEditResponse"]
+
+SubscriptionEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user/subscription_update_response.py b/src/cloudflare/types/user/subscription_update_response.py
new file mode 100644
index 00000000000..12cf6aa283a
--- /dev/null
+++ b/src/cloudflare/types/user/subscription_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SubscriptionUpdateResponse"]
+
+SubscriptionUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user/token_get_response.py b/src/cloudflare/types/user/token_get_response.py
new file mode 100644
index 00000000000..a45eff43263
--- /dev/null
+++ b/src/cloudflare/types/user/token_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["TokenGetResponse"]
+
+TokenGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user/token_update_response.py b/src/cloudflare/types/user/token_update_response.py
new file mode 100644
index 00000000000..4600c9aba02
--- /dev/null
+++ b/src/cloudflare/types/user/token_update_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["TokenUpdateResponse"]
+
+TokenUpdateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user_edit_response.py b/src/cloudflare/types/user_edit_response.py
new file mode 100644
index 00000000000..e2077cf822d
--- /dev/null
+++ b/src/cloudflare/types/user_edit_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["UserEditResponse"]
+
+UserEditResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/user_get_response.py b/src/cloudflare/types/user_get_response.py
new file mode 100644
index 00000000000..7a0f59652a5
--- /dev/null
+++ b/src/cloudflare/types/user_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["UserGetResponse"]
+
+UserGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/vectorize/__init__.py b/src/cloudflare/types/vectorize/__init__.py
index 399dfadf6e8..756fca55ae5 100644
--- a/src/cloudflare/types/vectorize/__init__.py
+++ b/src/cloudflare/types/vectorize/__init__.py
@@ -11,6 +11,7 @@
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 .index_get_by_ids_params import IndexGetByIDsParams as IndexGetByIDsParams
from .index_delete_by_ids_params import IndexDeleteByIDsParams as IndexDeleteByIDsParams
from .index_delete_vectors_by_id import IndexDeleteVectorsByID as IndexDeleteVectorsByID
diff --git a/src/cloudflare/types/vectorize/index_delete_response.py b/src/cloudflare/types/vectorize/index_delete_response.py
new file mode 100644
index 00000000000..b64904cdd6e
--- /dev/null
+++ b/src/cloudflare/types/vectorize/index_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["IndexDeleteResponse"]
+
+IndexDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/shared_params/unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24.py b/src/cloudflare/types/worker_metadata_param.py
similarity index 79%
rename from src/cloudflare/types/shared_params/unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24.py
rename to src/cloudflare/types/worker_metadata_param.py
index 92d25bae35a..dbfae3cd26d 100644
--- a/src/cloudflare/types/shared_params/unnamed_schema_ref_ee1e79edcb234d14c4dd266880f2fd24.py
+++ b/src/cloudflare/types/worker_metadata_param.py
@@ -4,10 +4,10 @@
from typing_extensions import TypedDict
-__all__ = ["UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24"]
+__all__ = ["WorkerMetadataParam"]
-class UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24(TypedDict, total=False):
+class WorkerMetadataParam(TypedDict, total=False):
body_part: str
"""Name of the part in the multipart request that contains the script (e.g.
diff --git a/src/cloudflare/types/workers/scripts/content_update_params.py b/src/cloudflare/types/workers/scripts/content_update_params.py
index d50a85c565d..10089d59229 100644
--- a/src/cloudflare/types/workers/scripts/content_update_params.py
+++ b/src/cloudflare/types/workers/scripts/content_update_params.py
@@ -5,9 +5,9 @@
from typing import List
from typing_extensions import Required, Annotated, TypedDict
-from ....types import shared_params
from ...._types import FileTypes
from ...._utils import PropertyInfo
+from ...worker_metadata_param import WorkerMetadataParam
__all__ = ["ContentUpdateParams"]
@@ -26,5 +26,5 @@ class ContentUpdateParams(TypedDict, total=False):
part name.
"""
- metadata: shared_params.UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24
+ metadata: WorkerMetadataParam
"""JSON encoded metadata about the uploaded parts and Worker configuration."""
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 7ebc603efe9..75cfc5b9d04 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,9 +5,9 @@
from typing import List
from typing_extensions import Required, Annotated, TypedDict
-from ......types import shared_params
from ......_types import FileTypes
from ......_utils import PropertyInfo
+from .....worker_metadata_param import WorkerMetadataParam
__all__ = ["ContentUpdateParams"]
@@ -29,5 +29,5 @@ class ContentUpdateParams(TypedDict, total=False):
part name.
"""
- metadata: shared_params.UnnamedSchemaRefEe1e79edcb234d14c4dd266880f2fd24
+ metadata: WorkerMetadataParam
"""JSON encoded metadata about the uploaded parts and Worker configuration."""
diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py
index 3564fcdeb66..8e7c366537b 100644
--- a/src/cloudflare/types/zero_trust/__init__.py
+++ b/src/cloudflare/types/zero_trust/__init__.py
@@ -21,6 +21,7 @@
from .seat_edit_response import SeatEditResponse as SeatEditResponse
from .tunnel_edit_params import TunnelEditParams as TunnelEditParams
from .tunnel_list_params import TunnelListParams as TunnelListParams
+from .device_get_response import DeviceGetResponse as DeviceGetResponse
from .generic_oauth_config import GenericOAuthConfig as GenericOAuthConfig
from .tunnel_create_params import TunnelCreateParams as TunnelCreateParams
from .tunnel_delete_params import TunnelDeleteParams as TunnelDeleteParams
diff --git a/src/cloudflare/types/zero_trust/access/applications/__init__.py b/src/cloudflare/types/zero_trust/access/applications/__init__.py
index a255b04c380..cf138daeb24 100644
--- a/src/cloudflare/types/zero_trust/access/applications/__init__.py
+++ b/src/cloudflare/types/zero_trust/access/applications/__init__.py
@@ -6,6 +6,8 @@
from .policy import Policy as Policy
from .policy_param import PolicyParam as PolicyParam
from .approval_group import ApprovalGroup as ApprovalGroup
+from .ca_get_response import CAGetResponse as CAGetResponse
+from .ca_create_response import CACreateResponse as CACreateResponse
from .ca_delete_response import CADeleteResponse as CADeleteResponse
from .approval_group_param import ApprovalGroupParam as ApprovalGroupParam
from .policy_create_params import PolicyCreateParams as PolicyCreateParams
diff --git a/src/cloudflare/types/zero_trust/access/applications/ca_create_response.py b/src/cloudflare/types/zero_trust/access/applications/ca_create_response.py
new file mode 100644
index 00000000000..c0a4d7af889
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/applications/ca_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["CACreateResponse"]
+
+CACreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/access/applications/ca_get_response.py b/src/cloudflare/types/zero_trust/access/applications/ca_get_response.py
new file mode 100644
index 00000000000..8a2b05ffa92
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/access/applications/ca_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["CAGetResponse"]
+
+CAGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/device_get_response.py b/src/cloudflare/types/zero_trust/device_get_response.py
new file mode 100644
index 00000000000..8bc4c694795
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/device_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["DeviceGetResponse"]
+
+DeviceGetResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/devices/__init__.py b/src/cloudflare/types/zero_trust/devices/__init__.py
index 325b3488d77..e5448a3f15c 100644
--- a/src/cloudflare/types/zero_trust/devices/__init__.py
+++ b/src/cloudflare/types/zero_trust/devices/__init__.py
@@ -27,10 +27,12 @@
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 .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 .unnamed_schema_ref_34ef0ad73a63c3f76ed170adca181930 import (
UnnamedSchemaRef34ef0ad73a63c3f76ed170adca181930 as UnnamedSchemaRef34ef0ad73a63c3f76ed170adca181930,
diff --git a/src/cloudflare/types/zero_trust/devices/posture/__init__.py b/src/cloudflare/types/zero_trust/devices/posture/__init__.py
index b020c834d8f..c2a4c5f170b 100644
--- a/src/cloudflare/types/zero_trust/devices/posture/__init__.py
+++ b/src/cloudflare/types/zero_trust/devices/posture/__init__.py
@@ -6,3 +6,4 @@
from .integration_edit_params import IntegrationEditParams as IntegrationEditParams
from .integration_create_params import IntegrationCreateParams as IntegrationCreateParams
from .integration_delete_params import IntegrationDeleteParams as IntegrationDeleteParams
+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
new file mode 100644
index 00000000000..6f19fa53620
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/devices/posture/integration_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["IntegrationDeleteResponse"]
+
+IntegrationDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/devices/revoke_create_response.py b/src/cloudflare/types/zero_trust/devices/revoke_create_response.py
new file mode 100644
index 00000000000..9eb7a16d7cf
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/devices/revoke_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["RevokeCreateResponse"]
+
+RevokeCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py b/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py
new file mode 100644
index 00000000000..0abba62d03a
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/devices/unrevoke_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["UnrevokeCreateResponse"]
+
+UnrevokeCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/gateway/__init__.py b/src/cloudflare/types/zero_trust/gateway/__init__.py
index 9799d01edf7..5acd7e95023 100644
--- a/src/cloudflare/types/zero_trust/gateway/__init__.py
+++ b/src/cloudflare/types/zero_trust/gateway/__init__.py
@@ -36,7 +36,9 @@
from .block_page_settings import BlockPageSettings as BlockPageSettings
from .fips_settings_param import FipsSettingsParam as FipsSettingsParam
from .list_create_response import ListCreateResponse as ListCreateResponse
+from .list_delete_response import ListDeleteResponse as ListDeleteResponse
from .list_update_response import ListUpdateResponse as ListUpdateResponse
+from .rule_delete_response import RuleDeleteResponse as RuleDeleteResponse
from .activity_log_settings import ActivityLogSettings as ActivityLogSettings
from .logging_update_params import LoggingUpdateParams as LoggingUpdateParams
from .notification_settings import NotificationSettings as NotificationSettings
@@ -48,6 +50,7 @@
from .extended_email_matching import ExtendedEmailMatching as ExtendedEmailMatching
from .dns_resolver_settings_v4 import DNSResolverSettingsV4 as DNSResolverSettingsV4
from .dns_resolver_settings_v6 import DNSResolverSettingsV6 as DNSResolverSettingsV6
+from .location_delete_response import LocationDeleteResponse as LocationDeleteResponse
from .protocol_detection_param import ProtocolDetectionParam as ProtocolDetectionParam
from .anti_virus_settings_param import AntiVirusSettingsParam as AntiVirusSettingsParam
from .block_page_settings_param import BlockPageSettingsParam as BlockPageSettingsParam
@@ -67,6 +70,7 @@
from .extended_email_matching_param import ExtendedEmailMatchingParam as ExtendedEmailMatchingParam
from .dns_resolver_settings_v4_param import DNSResolverSettingsV4Param as DNSResolverSettingsV4Param
from .dns_resolver_settings_v6_param import DNSResolverSettingsV6Param as DNSResolverSettingsV6Param
+from .proxy_endpoint_delete_response import ProxyEndpointDeleteResponse as ProxyEndpointDeleteResponse
from .audit_ssh_setting_update_params import AuditSSHSettingUpdateParams as AuditSSHSettingUpdateParams
from .browser_isolation_settings_param import BrowserIsolationSettingsParam as BrowserIsolationSettingsParam
from .custom_certificate_settings_param import CustomCertificateSettingsParam as CustomCertificateSettingsParam
diff --git a/src/cloudflare/types/zero_trust/gateway/list_delete_response.py b/src/cloudflare/types/zero_trust/gateway/list_delete_response.py
new file mode 100644
index 00000000000..a798b20e4ad
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/gateway/list_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["ListDeleteResponse"]
+
+ListDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/gateway/location_delete_response.py b/src/cloudflare/types/zero_trust/gateway/location_delete_response.py
new file mode 100644
index 00000000000..d152621d0fa
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/gateway/location_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["LocationDeleteResponse"]
+
+LocationDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_delete_response.py b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_delete_response.py
new file mode 100644
index 00000000000..00e29cea0c4
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/gateway/proxy_endpoint_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["ProxyEndpointDeleteResponse"]
+
+ProxyEndpointDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zero_trust/gateway/rule_delete_response.py b/src/cloudflare/types/zero_trust/gateway/rule_delete_response.py
new file mode 100644
index 00000000000..e26a4455b29
--- /dev/null
+++ b/src/cloudflare/types/zero_trust/gateway/rule_delete_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["RuleDeleteResponse"]
+
+RuleDeleteResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zones/__init__.py b/src/cloudflare/types/zones/__init__.py
index 45e84baf124..b3677ac247e 100644
--- a/src/cloudflare/types/zones/__init__.py
+++ b/src/cloudflare/types/zones/__init__.py
@@ -9,7 +9,9 @@
from .hold_create_params import HoldCreateParams as HoldCreateParams
from .hold_delete_params import HoldDeleteParams as HoldDeleteParams
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_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
diff --git a/src/cloudflare/types/zones/subscription_create_response.py b/src/cloudflare/types/zones/subscription_create_response.py
new file mode 100644
index 00000000000..4b0efa12663
--- /dev/null
+++ b/src/cloudflare/types/zones/subscription_create_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SubscriptionCreateResponse"]
+
+SubscriptionCreateResponse = Union[Optional[str], Optional[object]]
diff --git a/src/cloudflare/types/zones/subscription_get_response.py b/src/cloudflare/types/zones/subscription_get_response.py
new file mode 100644
index 00000000000..6f4b5754077
--- /dev/null
+++ b/src/cloudflare/types/zones/subscription_get_response.py
@@ -0,0 +1,7 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from typing import Union, Optional
+
+__all__ = ["SubscriptionGetResponse"]
+
+SubscriptionGetResponse = Union[Optional[str], Optional[object]]
diff --git a/tests/api_resources/accounts/test_roles.py b/tests/api_resources/accounts/test_roles.py
index 0fa4f2c8a47..2cbdcfab4c5 100644
--- a/tests/api_resources/accounts/test_roles.py
+++ b/tests/api_resources/accounts/test_roles.py
@@ -10,8 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from cloudflare.types.accounts import RoleListResponse
+from cloudflare.types.accounts import RoleGetResponse, RoleListResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -60,7 +59,7 @@ def test_method_get(self, client: Cloudflare) -> None:
{},
account_id={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, role, path=["response"])
+ assert_matches_type(RoleGetResponse, role, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -73,7 +72,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"
role = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, role, path=["response"])
+ assert_matches_type(RoleGetResponse, role, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -86,7 +85,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
role = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, role, path=["response"])
+ assert_matches_type(RoleGetResponse, role, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -135,7 +134,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
{},
account_id={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, role, path=["response"])
+ assert_matches_type(RoleGetResponse, role, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -148,7 +147,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"
role = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, role, path=["response"])
+ assert_matches_type(RoleGetResponse, role, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -161,6 +160,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
role = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, role, path=["response"])
+ assert_matches_type(RoleGetResponse, role, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/argo/test_smart_routing.py b/tests/api_resources/argo/test_smart_routing.py
index f4c99f2ae09..27d13739d4c 100644
--- a/tests/api_resources/argo/test_smart_routing.py
+++ b/tests/api_resources/argo/test_smart_routing.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.argo import SmartRoutingGetResponse, SmartRoutingEditResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
value="on",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingEditResponse, smart_routing, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,7 +37,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"
smart_routing = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingEditResponse, smart_routing, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +50,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_routing = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingEditResponse, smart_routing, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -69,7 +69,7 @@ def test_method_get(self, client: Cloudflare) -> None:
smart_routing = client.argo.smart_routing.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingGetResponse, smart_routing, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -81,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"
smart_routing = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingGetResponse, smart_routing, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -93,7 +93,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_routing = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingGetResponse, smart_routing, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -116,7 +116,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
value="on",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingEditResponse, smart_routing, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -129,7 +129,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"
smart_routing = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingEditResponse, smart_routing, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -142,7 +142,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_routing = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingEditResponse, smart_routing, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -161,7 +161,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
smart_routing = await async_client.argo.smart_routing.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingGetResponse, smart_routing, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -173,7 +173,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"
smart_routing = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingGetResponse, smart_routing, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -185,7 +185,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_routing = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_routing, path=["response"])
+ assert_matches_type(SmartRoutingGetResponse, smart_routing, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/argo/test_tiered_caching.py b/tests/api_resources/argo/test_tiered_caching.py
index ec82b2af103..13d8943f000 100644
--- a/tests/api_resources/argo/test_tiered_caching.py
+++ b/tests/api_resources/argo/test_tiered_caching.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.argo import TieredCachingGetResponse, TieredCachingEditResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +24,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
value="on",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingEditResponse, tiered_caching, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,7 +37,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"
tiered_caching = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingEditResponse, tiered_caching, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +50,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tiered_caching = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingEditResponse, tiered_caching, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -69,7 +69,7 @@ def test_method_get(self, client: Cloudflare) -> None:
tiered_caching = client.argo.tiered_caching.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingGetResponse, tiered_caching, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -81,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"
tiered_caching = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingGetResponse, tiered_caching, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -93,7 +93,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tiered_caching = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingGetResponse, tiered_caching, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -116,7 +116,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
value="on",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingEditResponse, tiered_caching, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -129,7 +129,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"
tiered_caching = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingEditResponse, tiered_caching, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -142,7 +142,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tiered_caching = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingEditResponse, tiered_caching, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -161,7 +161,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
tiered_caching = await async_client.argo.tiered_caching.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingGetResponse, tiered_caching, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -173,7 +173,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"
tiered_caching = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingGetResponse, tiered_caching, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -185,7 +185,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
tiered_caching = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, tiered_caching, path=["response"])
+ assert_matches_type(TieredCachingGetResponse, tiered_caching, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/billing/test_profiles.py b/tests/api_resources/billing/test_profiles.py
index d62b9ffa17a..63e0a0eca24 100644
--- a/tests/api_resources/billing/test_profiles.py
+++ b/tests/api_resources/billing/test_profiles.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.billing import ProfileGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -23,7 +23,7 @@ def test_method_get(self, client: Cloudflare) -> None:
profile = client.billing.profiles.get(
{},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -35,7 +35,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"
profile = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -47,7 +47,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
profile = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -61,7 +61,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
profile = await async_client.billing.profiles.get(
{},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -73,7 +73,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"
profile = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -85,6 +85,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
profile = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cache/test_smart_tiered_cache.py b/tests/api_resources/cache/test_smart_tiered_cache.py
index 8df2a3c14ee..a45c9af8dba 100644
--- a/tests/api_resources/cache/test_smart_tiered_cache.py
+++ b/tests/api_resources/cache/test_smart_tiered_cache.py
@@ -9,7 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.cache import (
+ SmartTieredCacheGetResponse,
+ SmartTieredCacheEditResponse,
+ SmartTieredCacheDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +28,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheDeleteResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,7 +41,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"
smart_tiered_cache = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheDeleteResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +54,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_tiered_cache = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheDeleteResponse, smart_tiered_cache, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -70,7 +74,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
value="on",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheEditResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -83,7 +87,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"
smart_tiered_cache = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheEditResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -96,7 +100,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_tiered_cache = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheEditResponse, smart_tiered_cache, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -115,7 +119,7 @@ def test_method_get(self, client: Cloudflare) -> None:
smart_tiered_cache = client.cache.smart_tiered_cache.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheGetResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -127,7 +131,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"
smart_tiered_cache = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheGetResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -139,7 +143,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_tiered_cache = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheGetResponse, smart_tiered_cache, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -162,7 +166,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheDeleteResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -175,7 +179,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"
smart_tiered_cache = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheDeleteResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -188,7 +192,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_tiered_cache = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheDeleteResponse, smart_tiered_cache, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -208,7 +212,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
value="on",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheEditResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -221,7 +225,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"
smart_tiered_cache = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheEditResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -234,7 +238,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_tiered_cache = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheEditResponse, smart_tiered_cache, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -253,7 +257,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
smart_tiered_cache = await async_client.cache.smart_tiered_cache.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheGetResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -265,7 +269,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"
smart_tiered_cache = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheGetResponse, smart_tiered_cache, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -277,7 +281,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
smart_tiered_cache = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, smart_tiered_cache, path=["response"])
+ assert_matches_type(SmartTieredCacheGetResponse, smart_tiered_cache, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/cache/test_variants.py b/tests/api_resources/cache/test_variants.py
index 6fe45951d3c..bd8c3ef6f89 100644
--- a/tests/api_resources/cache/test_variants.py
+++ b/tests/api_resources/cache/test_variants.py
@@ -10,7 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types.cache import (
- CacheVariants,
+ CacheVariant,
VariantGetResponse,
VariantEditResponse,
)
@@ -28,7 +28,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(CacheVariants, variant, path=["response"])
+ assert_matches_type(CacheVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -41,7 +41,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"
variant = response.parse()
- assert_matches_type(CacheVariants, variant, path=["response"])
+ assert_matches_type(CacheVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -54,7 +54,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(CacheVariants, variant, path=["response"])
+ assert_matches_type(CacheVariant, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -187,7 +187,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(CacheVariants, variant, path=["response"])
+ assert_matches_type(CacheVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -200,7 +200,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"
variant = await response.parse()
- assert_matches_type(CacheVariants, variant, path=["response"])
+ assert_matches_type(CacheVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -213,7 +213,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(CacheVariants, variant, path=["response"])
+ assert_matches_type(CacheVariant, variant, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/custom_hostnames/test_fallback_origin.py b/tests/api_resources/custom_hostnames/test_fallback_origin.py
index fd6a0803869..ba04772700c 100644
--- a/tests/api_resources/custom_hostnames/test_fallback_origin.py
+++ b/tests/api_resources/custom_hostnames/test_fallback_origin.py
@@ -9,7 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.custom_hostnames import (
+ FallbackOriginGetResponse,
+ FallbackOriginDeleteResponse,
+ FallbackOriginUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +28,7 @@ def test_method_update(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
origin="fallback.example.com",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginUpdateResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,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"
fallback_origin = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginUpdateResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +54,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
fallback_origin = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginUpdateResponse, fallback_origin, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -70,7 +74,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginDeleteResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -83,7 +87,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"
fallback_origin = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginDeleteResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -96,7 +100,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
fallback_origin = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginDeleteResponse, fallback_origin, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -115,7 +119,7 @@ def test_method_get(self, client: Cloudflare) -> None:
fallback_origin = client.custom_hostnames.fallback_origin.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginGetResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -127,7 +131,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"
fallback_origin = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginGetResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -139,7 +143,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
fallback_origin = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginGetResponse, fallback_origin, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -162,7 +166,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
origin="fallback.example.com",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginUpdateResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -175,7 +179,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"
fallback_origin = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginUpdateResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -188,7 +192,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
fallback_origin = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginUpdateResponse, fallback_origin, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -208,7 +212,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginDeleteResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -221,7 +225,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"
fallback_origin = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginDeleteResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -234,7 +238,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
fallback_origin = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginDeleteResponse, fallback_origin, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -253,7 +257,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
fallback_origin = await async_client.custom_hostnames.fallback_origin.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginGetResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -265,7 +269,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"
fallback_origin = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginGetResponse, fallback_origin, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -277,7 +281,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
fallback_origin = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, fallback_origin, path=["response"])
+ assert_matches_type(FallbackOriginGetResponse, fallback_origin, 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 4d7bc71ae02..c252773edc8 100644
--- a/tests/api_resources/d1/test_database.py
+++ b/tests/api_resources/d1/test_database.py
@@ -14,9 +14,9 @@
DatabaseListResponse,
DatabaseQueryResponse,
DatabaseCreateResponse,
+ DatabaseDeleteResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -130,7 +130,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, database, path=["response"])
+ assert_matches_type(DatabaseDeleteResponse, database, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -143,7 +143,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, database, path=["response"])
+ assert_matches_type(DatabaseDeleteResponse, database, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -156,7 +156,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, database, path=["response"])
+ assert_matches_type(DatabaseDeleteResponse, database, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -405,7 +405,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, database, path=["response"])
+ assert_matches_type(DatabaseDeleteResponse, database, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -418,7 +418,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, database, path=["response"])
+ assert_matches_type(DatabaseDeleteResponse, database, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -431,7 +431,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, database, path=["response"])
+ assert_matches_type(DatabaseDeleteResponse, 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 a6c4dd142aa..25d2152c462 100644
--- a/tests/api_resources/firewall/test_access_rules.py
+++ b/tests/api_resources/firewall/test_access_rules.py
@@ -10,8 +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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.firewall import (
+ AccessRuleGetResponse,
+ AccessRuleEditResponse,
+ AccessRuleCreateResponse,
AccessRuleDeleteResponse,
)
@@ -30,7 +32,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleCreateResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -45,7 +47,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleCreateResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -60,7 +62,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleCreateResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -75,7 +77,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleCreateResponse, access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -259,7 +261,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleEditResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -275,7 +277,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleEditResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -291,7 +293,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleEditResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -307,7 +309,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleEditResponse, access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -340,7 +342,7 @@ def test_method_get(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleGetResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -350,7 +352,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleGetResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -364,7 +366,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleGetResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -378,7 +380,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleGetResponse, access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -412,7 +414,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleCreateResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -427,7 +429,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleCreateResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -442,7 +444,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleCreateResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -457,7 +459,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleCreateResponse, access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -641,7 +643,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleEditResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -657,7 +659,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleEditResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -673,7 +675,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleEditResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -689,7 +691,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleEditResponse, access_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -722,7 +724,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleGetResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -732,7 +734,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleGetResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -746,7 +748,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleGetResponse, access_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -760,7 +762,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, access_rule, path=["response"])
+ assert_matches_type(AccessRuleGetResponse, 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 ae64eddcf08..ab5a374f1c4 100644
--- a/tests/api_resources/firewall/test_ua_rules.py
+++ b/tests/api_resources/firewall/test_ua_rules.py
@@ -10,10 +10,12 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
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")
@@ -29,7 +31,7 @@ def test_method_create(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleCreateResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -42,7 +44,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleCreateResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -55,7 +57,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleCreateResponse, ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -76,7 +78,7 @@ def test_method_update(self, client: Cloudflare) -> None:
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleUpdateResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -90,7 +92,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleUpdateResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -104,7 +106,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleUpdateResponse, ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -244,7 +246,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleGetResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -257,7 +259,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleGetResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -270,7 +272,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleGetResponse, ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -300,7 +302,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleCreateResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -313,7 +315,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleCreateResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -326,7 +328,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleCreateResponse, ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -347,7 +349,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleUpdateResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -361,7 +363,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleUpdateResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -375,7 +377,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleUpdateResponse, ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -515,7 +517,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleGetResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -528,7 +530,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleGetResponse, ua_rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -541,7 +543,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ua_rule, path=["response"])
+ assert_matches_type(UARuleGetResponse, ua_rule, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/firewall/waf/packages/test_groups.py b/tests/api_resources/firewall/waf/packages/test_groups.py
index f2582d3ced6..9fc8f82f467 100644
--- a/tests/api_resources/firewall/waf/packages/test_groups.py
+++ b/tests/api_resources/firewall/waf/packages/test_groups.py
@@ -10,8 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from cloudflare.types.firewall.waf.packages import Group
+from cloudflare.types.firewall.waf.packages import (
+ Group,
+ GroupGetResponse,
+ GroupEditResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -96,7 +99,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
package_id="a25a9a7e9c00afc1fb2e0245519d725b",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupEditResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -107,7 +110,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
package_id="a25a9a7e9c00afc1fb2e0245519d725b",
mode="on",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupEditResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -121,7 +124,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"
group = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupEditResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -135,7 +138,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
group = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupEditResponse, group, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -171,7 +174,7 @@ def test_method_get(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
package_id="a25a9a7e9c00afc1fb2e0245519d725b",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupGetResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -185,7 +188,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"
group = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupGetResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -199,7 +202,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
group = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupGetResponse, group, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -308,7 +311,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
package_id="a25a9a7e9c00afc1fb2e0245519d725b",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupEditResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -319,7 +322,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
package_id="a25a9a7e9c00afc1fb2e0245519d725b",
mode="on",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupEditResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -333,7 +336,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"
group = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupEditResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -347,7 +350,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
group = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupEditResponse, group, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -383,7 +386,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
package_id="a25a9a7e9c00afc1fb2e0245519d725b",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupGetResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -397,7 +400,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"
group = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupGetResponse, group, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -411,7 +414,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
group = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, group, path=["response"])
+ assert_matches_type(GroupGetResponse, group, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/firewall/waf/packages/test_rules.py b/tests/api_resources/firewall/waf/packages/test_rules.py
index a480bf32926..772dd3a3128 100644
--- a/tests/api_resources/firewall/waf/packages/test_rules.py
+++ b/tests/api_resources/firewall/waf/packages/test_rules.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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.firewall.waf.packages import (
+ RuleGetResponse,
RuleEditResponse,
RuleListResponse,
)
@@ -175,7 +175,7 @@ def test_method_get(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
package_id="a25a9a7e9c00afc1fb2e0245519d725b",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleGetResponse, rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -189,7 +189,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"
rule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleGetResponse, rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -203,7 +203,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleGetResponse, rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -388,7 +388,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
package_id="a25a9a7e9c00afc1fb2e0245519d725b",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleGetResponse, rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -402,7 +402,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"
rule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleGetResponse, rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -416,7 +416,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleGetResponse, rule, 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 18738819f59..283a1f7d4f3 100644
--- a/tests/api_resources/hyperdrive/test_configs.py
+++ b/tests/api_resources/hyperdrive/test_configs.py
@@ -11,7 +11,9 @@
from tests.utils import assert_matches_type
from cloudflare.types import Hyperdrive
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.hyperdrive import (
+ ConfigDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -180,7 +182,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, config, path=["response"])
+ assert_matches_type(ConfigDeleteResponse, config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -193,7 +195,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, config, path=["response"])
+ assert_matches_type(ConfigDeleteResponse, config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -206,7 +208,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, config, path=["response"])
+ assert_matches_type(ConfigDeleteResponse, config, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -504,7 +506,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, config, path=["response"])
+ assert_matches_type(ConfigDeleteResponse, config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -517,7 +519,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, config, path=["response"])
+ assert_matches_type(ConfigDeleteResponse, config, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -530,7 +532,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, config, path=["response"])
+ assert_matches_type(ConfigDeleteResponse, config, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/images/test_v1.py b/tests/api_resources/images/test_v1.py
index decdb71baa8..dd02d217f8d 100644
--- a/tests/api_resources/images/test_v1.py
+++ b/tests/api_resources/images/test_v1.py
@@ -13,8 +13,8 @@
from cloudflare.types.images import (
Image,
V1ListResponse,
+ V1DeleteResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -136,7 +136,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, v1, path=["response"])
+ assert_matches_type(V1DeleteResponse, v1, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -150,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"
v1 = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, v1, path=["response"])
+ assert_matches_type(V1DeleteResponse, v1, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -164,7 +164,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
v1 = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, v1, path=["response"])
+ assert_matches_type(V1DeleteResponse, v1, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -418,7 +418,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, v1, path=["response"])
+ assert_matches_type(V1DeleteResponse, v1, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -432,7 +432,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"
v1 = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, v1, path=["response"])
+ assert_matches_type(V1DeleteResponse, v1, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -446,7 +446,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
v1 = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, v1, path=["response"])
+ assert_matches_type(V1DeleteResponse, v1, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/images/v1/test_variants.py b/tests/api_resources/images/v1/test_variants.py
index 31937f986de..7cf913e80f6 100644
--- a/tests/api_resources/images/v1/test_variants.py
+++ b/tests/api_resources/images/v1/test_variants.py
@@ -9,12 +9,12 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.images.v1 import (
Variant,
VariantGetResponse,
VariantEditResponse,
VariantCreateResponse,
+ VariantDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -159,7 +159,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, variant, path=["response"])
+ assert_matches_type(VariantDeleteResponse, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -173,7 +173,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"
variant = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, variant, path=["response"])
+ assert_matches_type(VariantDeleteResponse, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -187,7 +187,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, variant, path=["response"])
+ assert_matches_type(VariantDeleteResponse, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -498,7 +498,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, variant, path=["response"])
+ assert_matches_type(VariantDeleteResponse, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -512,7 +512,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"
variant = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, variant, path=["response"])
+ assert_matches_type(VariantDeleteResponse, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -526,7 +526,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, variant, path=["response"])
+ assert_matches_type(VariantDeleteResponse, variant, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/load_balancers/test_regions.py b/tests/api_resources/load_balancers/test_regions.py
index cb700116a07..ae7e7b8f3d4 100644
--- a/tests/api_resources/load_balancers/test_regions.py
+++ b/tests/api_resources/load_balancers/test_regions.py
@@ -9,8 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from cloudflare.types.load_balancers import RegionGetResponse
+from cloudflare.types.load_balancers import RegionGetResponse, RegionListResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -24,7 +23,7 @@ def test_method_list(self, client: Cloudflare) -> None:
region = client.load_balancers.regions.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, region, path=["response"])
+ assert_matches_type(RegionListResponse, region, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -35,7 +34,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
subdivision_code="CA",
subdivision_code_a2="CA",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, region, path=["response"])
+ assert_matches_type(RegionListResponse, region, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -47,7 +46,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"
region = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, region, path=["response"])
+ assert_matches_type(RegionListResponse, region, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -59,7 +58,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
region = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, region, path=["response"])
+ assert_matches_type(RegionListResponse, region, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -127,7 +126,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
region = await async_client.load_balancers.regions.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, region, path=["response"])
+ assert_matches_type(RegionListResponse, region, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -138,7 +137,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
subdivision_code="CA",
subdivision_code_a2="CA",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, region, path=["response"])
+ assert_matches_type(RegionListResponse, region, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -150,7 +149,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"
region = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, region, path=["response"])
+ assert_matches_type(RegionListResponse, region, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -162,7 +161,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
region = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, region, path=["response"])
+ assert_matches_type(RegionListResponse, region, 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 125a20ed805..1c99356b97a 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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, app, path=["response"])
+ assert_matches_type(AppGetResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, app, path=["response"])
+ assert_matches_type(AppGetResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, app, path=["response"])
+ assert_matches_type(AppGetResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, app, path=["response"])
+ assert_matches_type(AppGetResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, app, path=["response"])
+ assert_matches_type(AppGetResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, app, path=["response"])
+ assert_matches_type(AppGetResponse, app, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/ssl/test_analyze.py b/tests/api_resources/ssl/test_analyze.py
index d4b07d25fe5..ce96ca2df0c 100644
--- a/tests/api_resources/ssl/test_analyze.py
+++ b/tests/api_resources/ssl/test_analyze.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.ssl import AnalyzeCreateResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -23,7 +23,7 @@ def test_method_create(self, client: Cloudflare) -> None:
analyze = client.ssl.analyze.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, analyze, path=["response"])
+ assert_matches_type(AnalyzeCreateResponse, analyze, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -33,7 +33,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
bundle_method="ubiquitous",
certificate="-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, analyze, path=["response"])
+ assert_matches_type(AnalyzeCreateResponse, analyze, 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"
analyze = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, analyze, path=["response"])
+ assert_matches_type(AnalyzeCreateResponse, analyze, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -57,7 +57,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
analyze = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, analyze, path=["response"])
+ assert_matches_type(AnalyzeCreateResponse, analyze, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -79,7 +79,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
analyze = await async_client.ssl.analyze.create(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, analyze, path=["response"])
+ assert_matches_type(AnalyzeCreateResponse, analyze, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -89,7 +89,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
bundle_method="ubiquitous",
certificate="-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, analyze, path=["response"])
+ assert_matches_type(AnalyzeCreateResponse, analyze, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -101,7 +101,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"
analyze = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, analyze, path=["response"])
+ assert_matches_type(AnalyzeCreateResponse, analyze, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -113,7 +113,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
analyze = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, analyze, path=["response"])
+ assert_matches_type(AnalyzeCreateResponse, analyze, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/ssl/test_certificate_packs.py b/tests/api_resources/ssl/test_certificate_packs.py
index 1eedf90cf48..8cc4c1436fe 100644
--- a/tests/api_resources/ssl/test_certificate_packs.py
+++ b/tests/api_resources/ssl/test_certificate_packs.py
@@ -10,11 +10,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types.ssl import (
+ CertificatePackGetResponse,
CertificatePackEditResponse,
CertificatePackDeleteResponse,
)
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -194,7 +194,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, certificate_pack, path=["response"])
+ assert_matches_type(CertificatePackGetResponse, certificate_pack, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -207,7 +207,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"
certificate_pack = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, certificate_pack, path=["response"])
+ assert_matches_type(CertificatePackGetResponse, certificate_pack, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -220,7 +220,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
certificate_pack = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, certificate_pack, path=["response"])
+ assert_matches_type(CertificatePackGetResponse, certificate_pack, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -415,7 +415,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, certificate_pack, path=["response"])
+ assert_matches_type(CertificatePackGetResponse, certificate_pack, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -428,7 +428,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"
certificate_pack = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, certificate_pack, path=["response"])
+ assert_matches_type(CertificatePackGetResponse, certificate_pack, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -441,7 +441,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
certificate_pack = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, certificate_pack, path=["response"])
+ assert_matches_type(CertificatePackGetResponse, certificate_pack, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_captions.py b/tests/api_resources/stream/test_captions.py
index 4993d08ce2c..6365db01a96 100644
--- a/tests/api_resources/stream/test_captions.py
+++ b/tests/api_resources/stream/test_captions.py
@@ -9,10 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.stream import (
CaptionGetResponse,
CaptionDeleteResponse,
+ CaptionUpdateResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -30,7 +30,7 @@ def test_method_update(self, client: Cloudflare) -> None:
identifier="ea95132c15732412d22c1476fa83f27a",
file="@/Users/kyle/Desktop/tr.vtt",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, caption, path=["response"])
+ assert_matches_type(CaptionUpdateResponse, caption, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -45,7 +45,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"
caption = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, caption, path=["response"])
+ assert_matches_type(CaptionUpdateResponse, caption, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -60,7 +60,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
caption = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, caption, path=["response"])
+ assert_matches_type(CaptionUpdateResponse, caption, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -226,7 +226,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
identifier="ea95132c15732412d22c1476fa83f27a",
file="@/Users/kyle/Desktop/tr.vtt",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, caption, path=["response"])
+ assert_matches_type(CaptionUpdateResponse, caption, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -241,7 +241,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"
caption = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, caption, path=["response"])
+ assert_matches_type(CaptionUpdateResponse, caption, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -256,7 +256,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
caption = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, caption, path=["response"])
+ assert_matches_type(CaptionUpdateResponse, caption, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_downloads.py b/tests/api_resources/stream/test_downloads.py
index a9fa2d83736..c5a8662fa51 100644
--- a/tests/api_resources/stream/test_downloads.py
+++ b/tests/api_resources/stream/test_downloads.py
@@ -9,8 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from cloudflare.types.stream import DownloadDeleteResponse
+from cloudflare.types.stream import (
+ DownloadGetResponse,
+ DownloadCreateResponse,
+ DownloadDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadCreateResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -40,7 +43,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"
download = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadCreateResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -54,7 +57,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
download = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadCreateResponse, download, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -134,7 +137,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadGetResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -147,7 +150,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"
download = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadGetResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -160,7 +163,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
download = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadGetResponse, download, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -191,7 +194,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadCreateResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -205,7 +208,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"
download = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadCreateResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -219,7 +222,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
download = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadCreateResponse, download, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -299,7 +302,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadGetResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -312,7 +315,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"
download = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadGetResponse, download, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -325,7 +328,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
download = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, download, path=["response"])
+ assert_matches_type(DownloadGetResponse, download, 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 64cc3c84785..7ec7dfccd33 100644
--- a/tests/api_resources/stream/test_watermarks.py
+++ b/tests/api_resources/stream/test_watermarks.py
@@ -10,8 +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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from cloudflare.types.stream import Watermaks, WatermarkDeleteResponse
+from cloudflare.types.stream import (
+ Watermaks,
+ WatermarkGetResponse,
+ WatermarkCreateResponse,
+ WatermarkDeleteResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +30,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
file="@/Users/rchen/Downloads/watermark.png",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkCreateResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -40,7 +44,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
position="center",
scale=0.1,
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkCreateResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -53,7 +57,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"
watermark = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkCreateResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -66,7 +70,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkCreateResponse, watermark, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -185,7 +189,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkGetResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -198,7 +202,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"
watermark = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkGetResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -211,7 +215,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkGetResponse, watermark, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -241,7 +245,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
file="@/Users/rchen/Downloads/watermark.png",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkCreateResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -255,7 +259,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
position="center",
scale=0.1,
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkCreateResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -268,7 +272,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"
watermark = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkCreateResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -281,7 +285,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkCreateResponse, watermark, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -400,7 +404,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"ea95132c15732412d22c1476fa83f27a",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkGetResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -413,7 +417,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"
watermark = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkGetResponse, watermark, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -426,7 +430,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
watermark = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, watermark, path=["response"])
+ assert_matches_type(WatermarkGetResponse, watermark, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/stream/test_webhooks.py b/tests/api_resources/stream/test_webhooks.py
index dd848dee8f2..d9ffbfa7de4 100644
--- a/tests/api_resources/stream/test_webhooks.py
+++ b/tests/api_resources/stream/test_webhooks.py
@@ -9,8 +9,11 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from cloudflare.types.stream import WebhookDeleteResponse
+from cloudflare.types.stream import (
+ WebhookGetResponse,
+ WebhookDeleteResponse,
+ WebhookUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -25,7 +28,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
notification_url="https://example.com",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookUpdateResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -38,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"
webhook = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookUpdateResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -51,7 +54,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookUpdateResponse, webhook, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -116,7 +119,7 @@ def test_method_get(self, client: Cloudflare) -> None:
webhook = client.stream.webhooks.get(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookGetResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -128,7 +131,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"
webhook = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookGetResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -140,7 +143,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookGetResponse, webhook, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -163,7 +166,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
notification_url="https://example.com",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookUpdateResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -176,7 +179,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"
webhook = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookUpdateResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -189,7 +192,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookUpdateResponse, webhook, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -254,7 +257,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
webhook = await async_client.stream.webhooks.get(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookGetResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -266,7 +269,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"
webhook = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookGetResponse, webhook, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -278,7 +281,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
webhook = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, webhook, path=["response"])
+ assert_matches_type(WebhookGetResponse, webhook, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py
index a8fa48afd29..272bd5c46fc 100644
--- a/tests/api_resources/test_accounts.py
+++ b/tests/api_resources/test_accounts.py
@@ -9,8 +9,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
+from cloudflare.types import AccountGetResponse, AccountUpdateResponse
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -25,7 +25,7 @@ def test_method_update(self, client: Cloudflare) -> None:
account_id={},
name="Demo Account",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountUpdateResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -39,7 +39,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
"use_account_custom_ns_by_default": True,
},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountUpdateResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -52,7 +52,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountUpdateResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -65,7 +65,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountUpdateResponse, account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -114,7 +114,7 @@ def test_method_get(self, client: Cloudflare) -> None:
account = client.accounts.get(
account_id={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountGetResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -126,7 +126,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"
account = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountGetResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -138,7 +138,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountGetResponse, account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -153,7 +153,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
account_id={},
name="Demo Account",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountUpdateResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -167,7 +167,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
"use_account_custom_ns_by_default": True,
},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountUpdateResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -180,7 +180,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountUpdateResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -193,7 +193,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountUpdateResponse, account, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -242,7 +242,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
account = await async_client.accounts.get(
account_id={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountGetResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -254,7 +254,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"
account = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountGetResponse, account, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -266,6 +266,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
account = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, account, path=["response"])
+ assert_matches_type(AccountGetResponse, account, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_custom_certificates.py b/tests/api_resources/test_custom_certificates.py
index c407e129207..81fa03c2e4e 100644
--- a/tests/api_resources/test_custom_certificates.py
+++ b/tests/api_resources/test_custom_certificates.py
@@ -11,10 +11,12 @@
from tests.utils import assert_matches_type
from cloudflare.types import (
CustomCertificate,
+ CustomCertificateGetResponse,
+ CustomCertificateEditResponse,
+ CustomCertificateCreateResponse,
CustomCertificateDeleteResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -30,7 +32,7 @@ def test_method_create(self, client: Cloudflare) -> None:
certificate="-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n",
private_key="-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateCreateResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -44,7 +46,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
policy="(country: US) or (region: EU)",
type="sni_custom",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateCreateResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -58,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"
custom_certificate = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateCreateResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -72,7 +74,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_certificate = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateCreateResponse, custom_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -204,7 +206,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateEditResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -218,7 +220,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
policy="(country: US) or (region: EU)",
private_key="-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateEditResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -231,7 +233,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"
custom_certificate = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateEditResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -244,7 +246,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_certificate = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateEditResponse, custom_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -270,7 +272,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateGetResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -283,7 +285,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_certificate = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateGetResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -296,7 +298,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_certificate = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateGetResponse, custom_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -327,7 +329,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
certificate="-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n",
private_key="-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateCreateResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -341,7 +343,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
policy="(country: US) or (region: EU)",
type="sni_custom",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateCreateResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -355,7 +357,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"
custom_certificate = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateCreateResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -369,7 +371,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_certificate = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateCreateResponse, custom_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -501,7 +503,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateEditResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -515,7 +517,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
policy="(country: US) or (region: EU)",
private_key="-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateEditResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -528,7 +530,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"
custom_certificate = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateEditResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -541,7 +543,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_certificate = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateEditResponse, custom_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -567,7 +569,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateGetResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -580,7 +582,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_certificate = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateGetResponse, custom_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -593,7 +595,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_certificate = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, custom_certificate, path=["response"])
+ assert_matches_type(CustomCertificateGetResponse, custom_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_custom_hostnames.py b/tests/api_resources/test_custom_hostnames.py
index b1a65483012..e45d10f59fd 100644
--- a/tests/api_resources/test_custom_hostnames.py
+++ b/tests/api_resources/test_custom_hostnames.py
@@ -10,7 +10,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types import (
- CustomHostname,
+ CustomHostnameGetResponse,
+ CustomHostnameEditResponse,
+ CustomHostnameListResponse,
+ CustomHostnameCreateResponse,
CustomHostnameDeleteResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
@@ -29,7 +32,7 @@ def test_method_create(self, client: Cloudflare) -> None:
hostname="app.example.com",
ssl={},
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameCreateResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -55,7 +58,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
},
custom_metadata={"key": "value"},
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameCreateResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -69,7 +72,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"
custom_hostname = response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameCreateResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -83,7 +86,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_hostname = response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameCreateResponse, custom_hostname, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -103,7 +106,7 @@ def test_method_list(self, client: Cloudflare) -> None:
custom_hostname = client.custom_hostnames.list(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(SyncV4PagePaginationArray[CustomHostname], custom_hostname, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[CustomHostnameListResponse], custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -118,7 +121,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
per_page=5,
ssl=0,
)
- assert_matches_type(SyncV4PagePaginationArray[CustomHostname], custom_hostname, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[CustomHostnameListResponse], custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -130,7 +133,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"
custom_hostname = response.parse()
- assert_matches_type(SyncV4PagePaginationArray[CustomHostname], custom_hostname, path=["response"])
+ assert_matches_type(SyncV4PagePaginationArray[CustomHostnameListResponse], custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -142,7 +145,9 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_hostname = response.parse()
- assert_matches_type(SyncV4PagePaginationArray[CustomHostname], custom_hostname, path=["response"])
+ assert_matches_type(
+ SyncV4PagePaginationArray[CustomHostnameListResponse], custom_hostname, path=["response"]
+ )
assert cast(Any, response.is_closed) is True
@@ -218,7 +223,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameEditResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -246,7 +251,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
"wildcard": False,
},
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameEditResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -259,7 +264,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"
custom_hostname = response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameEditResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -272,7 +277,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_hostname = response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameEditResponse, custom_hostname, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -298,7 +303,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameGetResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -311,7 +316,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_hostname = response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameGetResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -324,7 +329,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_hostname = response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameGetResponse, custom_hostname, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -355,7 +360,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
hostname="app.example.com",
ssl={},
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameCreateResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -381,7 +386,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
},
custom_metadata={"key": "value"},
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameCreateResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -395,7 +400,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"
custom_hostname = await response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameCreateResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -409,7 +414,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_hostname = await response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameCreateResponse, custom_hostname, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -429,7 +434,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
custom_hostname = await async_client.custom_hostnames.list(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(AsyncV4PagePaginationArray[CustomHostname], custom_hostname, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[CustomHostnameListResponse], custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -444,7 +449,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
per_page=5,
ssl=0,
)
- assert_matches_type(AsyncV4PagePaginationArray[CustomHostname], custom_hostname, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[CustomHostnameListResponse], custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -456,7 +461,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"
custom_hostname = await response.parse()
- assert_matches_type(AsyncV4PagePaginationArray[CustomHostname], custom_hostname, path=["response"])
+ assert_matches_type(AsyncV4PagePaginationArray[CustomHostnameListResponse], custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -468,7 +473,9 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_hostname = await response.parse()
- assert_matches_type(AsyncV4PagePaginationArray[CustomHostname], custom_hostname, path=["response"])
+ assert_matches_type(
+ AsyncV4PagePaginationArray[CustomHostnameListResponse], custom_hostname, path=["response"]
+ )
assert cast(Any, response.is_closed) is True
@@ -544,7 +551,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameEditResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -572,7 +579,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
"wildcard": False,
},
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameEditResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -585,7 +592,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"
custom_hostname = await response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameEditResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -598,7 +605,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_hostname = await response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameEditResponse, custom_hostname, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -624,7 +631,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameGetResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -637,7 +644,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_hostname = await response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameGetResponse, custom_hostname, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -650,7 +657,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
custom_hostname = await response.parse()
- assert_matches_type(CustomHostname, custom_hostname, path=["response"])
+ assert_matches_type(CustomHostnameGetResponse, custom_hostname, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_memberships.py b/tests/api_resources/test_memberships.py
index eacb0087301..5f0f4fb7056 100644
--- a/tests/api_resources/test_memberships.py
+++ b/tests/api_resources/test_memberships.py
@@ -11,10 +11,11 @@
from tests.utils import assert_matches_type
from cloudflare.types import (
Membership,
+ MembershipGetResponse,
MembershipDeleteResponse,
+ MembershipUpdateResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -29,7 +30,7 @@ def test_method_update(self, client: Cloudflare) -> None:
"4536bcfad5faccb111b47003c79917fa",
status="accepted",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipUpdateResponse, membership, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -42,7 +43,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"
membership = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipUpdateResponse, membership, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -55,7 +56,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
membership = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipUpdateResponse, membership, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -162,7 +163,7 @@ def test_method_get(self, client: Cloudflare) -> None:
membership = client.memberships.get(
"4536bcfad5faccb111b47003c79917fa",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipGetResponse, membership, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -174,7 +175,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"
membership = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipGetResponse, membership, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -186,7 +187,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
membership = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipGetResponse, membership, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -209,7 +210,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
"4536bcfad5faccb111b47003c79917fa",
status="accepted",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipUpdateResponse, membership, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -222,7 +223,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"
membership = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipUpdateResponse, membership, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -235,7 +236,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
membership = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipUpdateResponse, membership, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -342,7 +343,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
membership = await async_client.memberships.get(
"4536bcfad5faccb111b47003c79917fa",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipGetResponse, membership, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -354,7 +355,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"
membership = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipGetResponse, membership, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -366,7 +367,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
membership = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, membership, path=["response"])
+ assert_matches_type(MembershipGetResponse, membership, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_origin_ca_certificates.py b/tests/api_resources/test_origin_ca_certificates.py
index 3f1d7089ecc..1b640b94000 100644
--- a/tests/api_resources/test_origin_ca_certificates.py
+++ b/tests/api_resources/test_origin_ca_certificates.py
@@ -11,10 +11,11 @@
from tests.utils import assert_matches_type
from cloudflare.types import (
OriginCACertificate,
+ OriginCACertificateGetResponse,
+ OriginCACertificateCreateResponse,
OriginCACertificateDeleteResponse,
)
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -26,7 +27,7 @@ class TestOriginCACertificates:
@parametrize
def test_method_create(self, client: Cloudflare) -> None:
origin_ca_certificate = client.origin_ca_certificates.create()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateCreateResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,7 +38,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
request_type="origin-rsa",
requested_validity=5475,
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateCreateResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -47,7 +48,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"
origin_ca_certificate = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateCreateResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -57,9 +58,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_ca_certificate = response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"]
- )
+ assert_matches_type(OriginCACertificateCreateResponse, origin_ca_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -151,7 +150,7 @@ def test_method_get(self, client: Cloudflare) -> None:
origin_ca_certificate = client.origin_ca_certificates.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateGetResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -163,7 +162,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"
origin_ca_certificate = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateGetResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -175,9 +174,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_ca_certificate = response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"]
- )
+ assert_matches_type(OriginCACertificateGetResponse, origin_ca_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -197,7 +194,7 @@ class TestAsyncOriginCACertificates:
@parametrize
async def test_method_create(self, async_client: AsyncCloudflare) -> None:
origin_ca_certificate = await async_client.origin_ca_certificates.create()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateCreateResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -208,7 +205,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
request_type="origin-rsa",
requested_validity=5475,
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateCreateResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -218,7 +215,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"
origin_ca_certificate = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateCreateResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -228,9 +225,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_ca_certificate = await response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"]
- )
+ assert_matches_type(OriginCACertificateCreateResponse, origin_ca_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -322,7 +317,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
origin_ca_certificate = await async_client.origin_ca_certificates.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateGetResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -334,7 +329,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"
origin_ca_certificate = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"])
+ assert_matches_type(OriginCACertificateGetResponse, origin_ca_certificate, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -346,9 +341,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_ca_certificate = await response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_ca_certificate, path=["response"]
- )
+ assert_matches_type(OriginCACertificateGetResponse, origin_ca_certificate, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_origin_post_quantum_encryption.py b/tests/api_resources/test_origin_post_quantum_encryption.py
index d21b5ded7c7..794b93f5d90 100644
--- a/tests/api_resources/test_origin_post_quantum_encryption.py
+++ b/tests/api_resources/test_origin_post_quantum_encryption.py
@@ -9,7 +9,10 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types import (
+ OriginPostQuantumEncryptionGetResponse,
+ OriginPostQuantumEncryptionUpdateResponse,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -25,7 +28,7 @@ def test_method_update(self, client: Cloudflare) -> None:
value="preferred",
)
assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
+ OriginPostQuantumEncryptionUpdateResponse, origin_post_quantum_encryption, path=["response"]
)
@pytest.mark.skip()
@@ -40,7 +43,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_post_quantum_encryption = response.parse()
assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
+ OriginPostQuantumEncryptionUpdateResponse, origin_post_quantum_encryption, path=["response"]
)
@pytest.mark.skip()
@@ -55,7 +58,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
origin_post_quantum_encryption = response.parse()
assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
+ OriginPostQuantumEncryptionUpdateResponse, origin_post_quantum_encryption, path=["response"]
)
assert cast(Any, response.is_closed) is True
@@ -75,9 +78,7 @@ def test_method_get(self, client: Cloudflare) -> None:
origin_post_quantum_encryption = client.origin_post_quantum_encryption.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
- )
+ assert_matches_type(OriginPostQuantumEncryptionGetResponse, origin_post_quantum_encryption, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -89,9 +90,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"
origin_post_quantum_encryption = response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
- )
+ assert_matches_type(OriginPostQuantumEncryptionGetResponse, origin_post_quantum_encryption, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -104,7 +103,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
origin_post_quantum_encryption = response.parse()
assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
+ OriginPostQuantumEncryptionGetResponse, origin_post_quantum_encryption, path=["response"]
)
assert cast(Any, response.is_closed) is True
@@ -129,7 +128,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
value="preferred",
)
assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
+ OriginPostQuantumEncryptionUpdateResponse, origin_post_quantum_encryption, path=["response"]
)
@pytest.mark.skip()
@@ -144,7 +143,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_post_quantum_encryption = await response.parse()
assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
+ OriginPostQuantumEncryptionUpdateResponse, origin_post_quantum_encryption, path=["response"]
)
@pytest.mark.skip()
@@ -159,7 +158,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
origin_post_quantum_encryption = await response.parse()
assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
+ OriginPostQuantumEncryptionUpdateResponse, origin_post_quantum_encryption, path=["response"]
)
assert cast(Any, response.is_closed) is True
@@ -179,9 +178,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
origin_post_quantum_encryption = await async_client.origin_post_quantum_encryption.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
- )
+ assert_matches_type(OriginPostQuantumEncryptionGetResponse, origin_post_quantum_encryption, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -193,9 +190,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"
origin_post_quantum_encryption = await response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
- )
+ assert_matches_type(OriginPostQuantumEncryptionGetResponse, origin_post_quantum_encryption, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -208,7 +203,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
origin_post_quantum_encryption = await response.parse()
assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_post_quantum_encryption, path=["response"]
+ OriginPostQuantumEncryptionGetResponse, origin_post_quantum_encryption, path=["response"]
)
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_origin_tls_client_auth.py b/tests/api_resources/test_origin_tls_client_auth.py
index f881995b793..805df523520 100644
--- a/tests/api_resources/test_origin_tls_client_auth.py
+++ b/tests/api_resources/test_origin_tls_client_auth.py
@@ -11,9 +11,11 @@
from tests.utils import assert_matches_type
from cloudflare.types import (
ZoneAuthenticatedOriginPull,
+ OriginTLSClientAuthGetResponse,
+ OriginTLSClientAuthCreateResponse,
+ OriginTLSClientAuthDeleteResponse,
)
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -29,7 +31,7 @@ def test_method_create(self, client: Cloudflare) -> None:
certificate="-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n",
private_key="-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthCreateResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -43,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"
origin_tls_client_auth = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthCreateResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -57,9 +59,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_tls_client_auth = response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"]
- )
+ assert_matches_type(OriginTLSClientAuthCreateResponse, origin_tls_client_auth, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -123,7 +123,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthDeleteResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -137,7 +137,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"
origin_tls_client_auth = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthDeleteResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -151,9 +151,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_tls_client_auth = response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"]
- )
+ assert_matches_type(OriginTLSClientAuthDeleteResponse, origin_tls_client_auth, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -181,7 +179,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthGetResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -194,7 +192,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"
origin_tls_client_auth = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthGetResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -207,9 +205,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_tls_client_auth = response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"]
- )
+ assert_matches_type(OriginTLSClientAuthGetResponse, origin_tls_client_auth, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -240,7 +236,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
certificate="-----BEGIN CERTIFICATE-----\nMIIDtTCCAp2gAwIBAgIJAMHAwfXZ5/PWMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV\nBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX\naWRnaXRzIFB0eSBMdGQwHhcNMTYwODI0MTY0MzAxWhcNMTYxMTIyMTY0MzAxWjBF\nMQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50\nZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmGdtcGbg/1\nCGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKnabIRuGvB\nKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpidtnKX/a+5\n0GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+pyFxIXjbEI\ndZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pEewooaeO2\nizNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABo4GnMIGkMB0GA1UdDgQWBBT/LbE4\n9rWf288N6sJA5BRb6FJIGDB1BgNVHSMEbjBsgBT/LbE49rWf288N6sJA5BRb6FJI\nGKFJpEcwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNV\nBAoTGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZIIJAMHAwfXZ5/PWMAwGA1UdEwQF\nMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHHFwl0tH0quUYZYO0dZYt4R7SJ0pCm2\n2satiyzHl4OnXcHDpekAo7/a09c6Lz6AU83cKy/+x3/djYHXWba7HpEu0dR3ugQP\nMlr4zrhd9xKZ0KZKiYmtJH+ak4OM4L3FbT0owUZPyjLSlhMtJVcoRp5CJsjAMBUG\nSvD8RX+T01wzox/Qb+lnnNnOlaWpqu8eoOenybxKp1a9ULzIVvN/LAcc+14vioFq\n2swRWtmocBAs8QR9n4uvbpiYvS8eYueDCWMM4fvFfBhaDZ3N9IbtySh3SpFdQDhw\nYbjM2rxXiyLGxB4Bol7QTv4zHif7Zt89FReT/NBy4rzaskDJY5L6xmY=\n-----END CERTIFICATE-----\n",
private_key="-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAwQHoetcl9+5ikGzV6cMzWtWPJHqXT3wpbEkRU9Yz7lgvddmG\ndtcGbg/1CGZu0jJGkMoppoUo4c3dts3iwqRYmBikUP77wwY2QGmDZw2FvkJCJlKn\nabIRuGvBKwzESIXgKk2016aTP6/dAjEHyo6SeoK8lkIySUvK0fyOVlsiEsCmOpid\ntnKX/a+50GjB79CJH4ER2lLVZnhePFR/zUOyPxZQQ4naHf7yu/b5jhO0f8fwt+py\nFxIXjbEIdZliWRkRMtzrHOJIhrmJ2A1J7iOrirbbwillwjjNVUWPf3IJ3M12S9pE\newooaeO2izNTERcG9HzAacbVRn2Y2SWIyT/18QIDAQABAoIBACbhTYXBZYKmYPCb\nHBR1IBlCQA2nLGf0qRuJNJZg5iEzXows/6tc8YymZkQE7nolapWsQ+upk2y5Xdp/\naxiuprIs9JzkYK8Ox0r+dlwCG1kSW+UAbX0bQ/qUqlsTvU6muVuMP8vZYHxJ3wmb\n+ufRBKztPTQ/rYWaYQcgC0RWI20HTFBMxlTAyNxYNWzX7RKFkGVVyB9RsAtmcc8g\n+j4OdosbfNoJPS0HeIfNpAznDfHKdxDk2Yc1tV6RHBrC1ynyLE9+TaflIAdo2MVv\nKLMLq51GqYKtgJFIlBRPQqKoyXdz3fGvXrTkf/WY9QNq0J1Vk5ERePZ54mN8iZB7\n9lwy/AkCgYEA6FXzosxswaJ2wQLeoYc7ceaweX/SwTvxHgXzRyJIIT0eJWgx13Wo\n/WA3Iziimsjf6qE+SI/8laxPp2A86VMaIt3Z3mJN/CqSVGw8LK2AQst+OwdPyDMu\niacE8lj/IFGC8mwNUAb9CzGU3JpU4PxxGFjS/eMtGeRXCWkK4NE+G08CgYEA1Kp9\nN2JrVlqUz+gAX+LPmE9OEMAS9WQSQsfCHGogIFDGGcNf7+uwBM7GAaSJIP01zcoe\nVAgWdzXCv3FLhsaZoJ6RyLOLay5phbu1iaTr4UNYm5WtYTzMzqh8l1+MFFDl9xDB\nvULuCIIrglM5MeS/qnSg1uMoH2oVPj9TVst/ir8CgYEAxrI7Ws9Zc4Bt70N1As+U\nlySjaEVZCMkqvHJ6TCuVZFfQoE0r0whdLdRLU2PsLFP+q7qaeZQqgBaNSKeVcDYR\n9B+nY/jOmQoPewPVsp/vQTCnE/R81spu0mp0YI6cIheT1Z9zAy322svcc43JaWB7\nmEbeqyLOP4Z4qSOcmghZBSECgYACvR9Xs0DGn+wCsW4vze/2ei77MD4OQvepPIFX\ndFZtlBy5ADcgE9z0cuVB6CiL8DbdK5kwY9pGNr8HUCI03iHkW6Zs+0L0YmihfEVe\nPG19PSzK9CaDdhD9KFZSbLyVFmWfxOt50H7YRTTiPMgjyFpfi5j2q348yVT0tEQS\nfhRqaQKBgAcWPokmJ7EbYQGeMbS7HC8eWO/RyamlnSffdCdSc7ue3zdVJxpAkQ8W\nqu80pEIF6raIQfAf8MXiiZ7auFOSnHQTXUbhCpvDLKi0Mwq3G8Pl07l+2s6dQG6T\nlv6XTQaMyf6n1yjzL+fzDrH3qXMxHMO/b13EePXpDMpY7HQpoLDi\n-----END RSA PRIVATE KEY-----\n",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthCreateResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -254,7 +250,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"
origin_tls_client_auth = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthCreateResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -268,9 +264,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_tls_client_auth = await response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"]
- )
+ assert_matches_type(OriginTLSClientAuthCreateResponse, origin_tls_client_auth, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -334,7 +328,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthDeleteResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -348,7 +342,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"
origin_tls_client_auth = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthDeleteResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -362,9 +356,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_tls_client_auth = await response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"]
- )
+ assert_matches_type(OriginTLSClientAuthDeleteResponse, origin_tls_client_auth, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -392,7 +384,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthGetResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -405,7 +397,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"
origin_tls_client_auth = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"])
+ assert_matches_type(OriginTLSClientAuthGetResponse, origin_tls_client_auth, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -418,9 +410,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
origin_tls_client_auth = await response.parse()
- assert_matches_type(
- UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, origin_tls_client_auth, path=["response"]
- )
+ assert_matches_type(OriginTLSClientAuthGetResponse, origin_tls_client_auth, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_pagerules.py b/tests/api_resources/test_pagerules.py
index 168cf507c86..7fd08df0297 100644
--- a/tests/api_resources/test_pagerules.py
+++ b/tests/api_resources/test_pagerules.py
@@ -10,10 +10,13 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types import (
+ PageruleGetResponse,
+ PageruleEditResponse,
PageruleListResponse,
+ PageruleCreateResponse,
PageruleDeleteResponse,
+ PageruleUpdateResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -37,7 +40,7 @@ def test_method_create(self, client: Cloudflare) -> None:
}
],
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleCreateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -65,7 +68,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
priority=0,
status="active",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleCreateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -87,7 +90,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"
pagerule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleCreateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -109,7 +112,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleCreateResponse, pagerule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -148,7 +151,7 @@ def test_method_update(self, client: Cloudflare) -> None:
}
],
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleUpdateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -177,7 +180,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
priority=0,
status="active",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleUpdateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -200,7 +203,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"
pagerule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleUpdateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -223,7 +226,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleUpdateResponse, pagerule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -380,7 +383,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleEditResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -409,7 +412,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
}
],
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleEditResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -422,7 +425,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"
pagerule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleEditResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -435,7 +438,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleEditResponse, pagerule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -461,7 +464,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleGetResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -474,7 +477,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"
pagerule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleGetResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -487,7 +490,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleGetResponse, pagerule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -526,7 +529,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
}
],
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleCreateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -554,7 +557,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
priority=0,
status="active",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleCreateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -576,7 +579,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"
pagerule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleCreateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -598,7 +601,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleCreateResponse, pagerule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -637,7 +640,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
}
],
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleUpdateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -666,7 +669,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
priority=0,
status="active",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleUpdateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -689,7 +692,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"
pagerule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleUpdateResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -712,7 +715,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleUpdateResponse, pagerule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -869,7 +872,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleEditResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -898,7 +901,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
}
],
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleEditResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -911,7 +914,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"
pagerule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleEditResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -924,7 +927,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleEditResponse, pagerule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -950,7 +953,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleGetResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -963,7 +966,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"
pagerule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleGetResponse, pagerule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -976,7 +979,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
pagerule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, pagerule, path=["response"])
+ assert_matches_type(PageruleGetResponse, pagerule, 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 4dcfbbc96af..b95d91fd931 100644
--- a/tests/api_resources/test_rate_limits.py
+++ b/tests/api_resources/test_rate_limits.py
@@ -11,10 +11,12 @@
from tests.utils import assert_matches_type
from cloudflare.types import (
RateLimit,
+ RateLimitGetResponse,
+ RateLimitEditResponse,
+ RateLimitCreateResponse,
RateLimitDeleteResponse,
)
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -29,7 +31,7 @@ def test_method_create(self, client: Cloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitCreateResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -42,7 +44,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitCreateResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -55,7 +57,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitCreateResponse, rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -185,7 +187,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitEditResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -199,7 +201,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitEditResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -213,7 +215,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitEditResponse, rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -241,7 +243,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitGetResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -254,7 +256,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitGetResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -267,7 +269,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitGetResponse, rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -297,7 +299,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
"023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitCreateResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -310,7 +312,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitCreateResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -323,7 +325,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitCreateResponse, rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -453,7 +455,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitEditResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -467,7 +469,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitEditResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -481,7 +483,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitEditResponse, rate_limit, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -509,7 +511,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"372e67954025e0ba6aaa6d586b9e0b59",
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitGetResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -522,7 +524,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitGetResponse, rate_limit, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -535,7 +537,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rate_limit, path=["response"])
+ assert_matches_type(RateLimitGetResponse, rate_limit, 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 a058901dc56..aeb9314fb21 100644
--- a/tests/api_resources/test_subscriptions.py
+++ b/tests/api_resources/test_subscriptions.py
@@ -10,11 +10,13 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types import (
+ SubscriptionGetResponse,
+ SubscriptionCreateResponse,
SubscriptionDeleteResponse,
+ SubscriptionUpdateResponse,
)
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
from cloudflare.types.user import Subscription
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -28,7 +30,7 @@ def test_method_create(self, client: Cloudflare) -> None:
subscription = client.subscriptions.create(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -68,7 +70,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -80,7 +82,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"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -92,7 +94,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -111,7 +113,7 @@ def test_method_update(self, client: Cloudflare) -> None:
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -152,7 +154,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -165,7 +167,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"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -178,7 +180,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -306,7 +308,7 @@ def test_method_get(self, client: Cloudflare) -> None:
subscription = client.subscriptions.get(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -318,7 +320,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"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -330,7 +332,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -352,7 +354,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
subscription = await async_client.subscriptions.create(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -392,7 +394,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -404,7 +406,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"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -416,7 +418,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -435,7 +437,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
"506e3185e9c882d175a2d0cb0093d9f2",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -476,7 +478,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -489,7 +491,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"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -502,7 +504,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -630,7 +632,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
subscription = await async_client.subscriptions.get(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -642,7 +644,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"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -654,7 +656,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_user.py b/tests/api_resources/test_user.py
index 59733454a1c..0d384f15858 100644
--- a/tests/api_resources/test_user.py
+++ b/tests/api_resources/test_user.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types import UserGetResponse, UserEditResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -21,7 +21,7 @@ class TestUser:
@parametrize
def test_method_edit(self, client: Cloudflare) -> None:
user = client.user.edit()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserEditResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -33,7 +33,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
telephone="+1 123-123-1234",
zipcode="12345",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserEditResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -43,7 +43,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"
user = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserEditResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -53,7 +53,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserEditResponse, user, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -61,7 +61,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
user = client.user.get()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserGetResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -71,7 +71,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"
user = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserGetResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -81,7 +81,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserGetResponse, user, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -93,7 +93,7 @@ class TestAsyncUser:
@parametrize
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
user = await async_client.user.edit()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserEditResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -105,7 +105,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
telephone="+1 123-123-1234",
zipcode="12345",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserEditResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -115,7 +115,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"
user = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserEditResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -125,7 +125,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserEditResponse, user, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -133,7 +133,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
user = await async_client.user.get()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserGetResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -143,7 +143,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"
user = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserGetResponse, user, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -153,6 +153,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
user = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, user, path=["response"])
+ assert_matches_type(UserGetResponse, user, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/user/billing/test_profile.py b/tests/api_resources/user/billing/test_profile.py
index 8341e2f7f7e..fdeecb4384e 100644
--- a/tests/api_resources/user/billing/test_profile.py
+++ b/tests/api_resources/user/billing/test_profile.py
@@ -9,7 +9,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.user.billing import ProfileGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -21,7 +21,7 @@ class TestProfile:
@parametrize
def test_method_get(self, client: Cloudflare) -> None:
profile = client.user.billing.profile.get()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -31,7 +31,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"
profile = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -41,7 +41,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
profile = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -53,7 +53,7 @@ class TestAsyncProfile:
@parametrize
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
profile = await async_client.user.billing.profile.get()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -63,7 +63,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"
profile = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -73,6 +73,6 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
profile = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, profile, path=["response"])
+ assert_matches_type(ProfileGetResponse, profile, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/user/test_invites.py b/tests/api_resources/user/test_invites.py
index a72d639967b..0236e4db1f9 100644
--- a/tests/api_resources/user/test_invites.py
+++ b/tests/api_resources/user/test_invites.py
@@ -10,8 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.user import Invite
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.user import Invite, InviteGetResponse, InviteEditResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -54,7 +53,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"4f5f0c14a2a41d5063dd301b2f829f04",
status="accepted",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteEditResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -67,7 +66,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"
invite = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteEditResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -80,7 +79,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
invite = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteEditResponse, invite, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -99,7 +98,7 @@ def test_method_get(self, client: Cloudflare) -> None:
invite = client.user.invites.get(
"4f5f0c14a2a41d5063dd301b2f829f04",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteGetResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -111,7 +110,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"
invite = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteGetResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -123,7 +122,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
invite = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteGetResponse, invite, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -174,7 +173,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"4f5f0c14a2a41d5063dd301b2f829f04",
status="accepted",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteEditResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -187,7 +186,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"
invite = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteEditResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -200,7 +199,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
invite = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteEditResponse, invite, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -219,7 +218,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
invite = await async_client.user.invites.get(
"4f5f0c14a2a41d5063dd301b2f829f04",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteGetResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -231,7 +230,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"
invite = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteGetResponse, invite, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -243,7 +242,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
invite = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, invite, path=["response"])
+ assert_matches_type(InviteGetResponse, invite, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/user/test_organizations.py b/tests/api_resources/user/test_organizations.py
index 9683a086bdc..9d3593991ee 100644
--- a/tests/api_resources/user/test_organizations.py
+++ b/tests/api_resources/user/test_organizations.py
@@ -12,9 +12,9 @@
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from cloudflare.types.user import (
Organization,
+ OrganizationGetResponse,
OrganizationDeleteResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -116,7 +116,7 @@ def test_method_get(self, client: Cloudflare) -> None:
organization = client.user.organizations.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, organization, path=["response"])
+ assert_matches_type(OrganizationGetResponse, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -128,7 +128,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"
organization = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, organization, path=["response"])
+ assert_matches_type(OrganizationGetResponse, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -140,7 +140,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, organization, path=["response"])
+ assert_matches_type(OrganizationGetResponse, organization, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -250,7 +250,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
organization = await async_client.user.organizations.get(
"023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, organization, path=["response"])
+ assert_matches_type(OrganizationGetResponse, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -262,7 +262,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"
organization = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, organization, path=["response"])
+ assert_matches_type(OrganizationGetResponse, organization, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -274,7 +274,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
organization = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, organization, path=["response"])
+ assert_matches_type(OrganizationGetResponse, organization, 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 bbc51d17643..68f8a80684d 100644
--- a/tests/api_resources/user/test_subscriptions.py
+++ b/tests/api_resources/user/test_subscriptions.py
@@ -11,9 +11,10 @@
from tests.utils import assert_matches_type
from cloudflare.types.user import (
SubscriptionGetResponse,
+ SubscriptionEditResponse,
SubscriptionDeleteResponse,
+ SubscriptionUpdateResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -27,7 +28,7 @@ def test_method_update(self, client: Cloudflare) -> None:
subscription = client.user.subscriptions.update(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -67,7 +68,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -79,7 +80,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"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -91,7 +92,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -155,7 +156,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
subscription = client.user.subscriptions.edit(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionEditResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -195,7 +196,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionEditResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -207,7 +208,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"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionEditResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -219,7 +220,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionEditResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -269,7 +270,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
subscription = await async_client.user.subscriptions.update(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -309,7 +310,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -321,7 +322,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"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -333,7 +334,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionUpdateResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -397,7 +398,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
subscription = await async_client.user.subscriptions.edit(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionEditResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -437,7 +438,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionEditResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -449,7 +450,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"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionEditResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -461,7 +462,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionEditResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/user/test_tokens.py b/tests/api_resources/user/test_tokens.py
index be3ecd9e733..69ffa843fff 100644
--- a/tests/api_resources/user/test_tokens.py
+++ b/tests/api_resources/user/test_tokens.py
@@ -12,11 +12,12 @@
from cloudflare._utils import parse_datetime
from cloudflare.pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from cloudflare.types.user import (
+ TokenGetResponse,
TokenCreateResponse,
TokenDeleteResponse,
+ TokenUpdateResponse,
TokenVerifyResponse,
)
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -212,7 +213,7 @@ def test_method_update(self, client: Cloudflare) -> None:
],
status="active",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenUpdateResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -256,7 +257,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
expires_on=parse_datetime("2020-01-01T00:00:00Z"),
not_before=parse_datetime("2018-07-01T05:20:00Z"),
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenUpdateResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -296,7 +297,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"
token = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenUpdateResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -336,7 +337,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
token = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenUpdateResponse, token, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -421,7 +422,7 @@ def test_method_get(self, client: Cloudflare) -> None:
token = client.user.tokens.get(
{},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenGetResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -433,7 +434,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"
token = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenGetResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -445,7 +446,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
token = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenGetResponse, token, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -669,7 +670,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
],
status="active",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenUpdateResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -713,7 +714,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
expires_on=parse_datetime("2020-01-01T00:00:00Z"),
not_before=parse_datetime("2018-07-01T05:20:00Z"),
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenUpdateResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -753,7 +754,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"
token = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenUpdateResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -793,7 +794,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
token = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenUpdateResponse, token, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -878,7 +879,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
token = await async_client.user.tokens.get(
{},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenGetResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -890,7 +891,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"
token = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenGetResponse, token, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -902,7 +903,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
token = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, token, path=["response"])
+ assert_matches_type(TokenGetResponse, token, 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 9588b6184de..5f49d3ff9f3 100644
--- a/tests/api_resources/vectorize/test_indexes.py
+++ b/tests/api_resources/vectorize/test_indexes.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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.vectorize import (
IndexQuery,
CreateIndex,
IndexInsert,
IndexUpsert,
+ IndexDeleteResponse,
IndexDeleteVectorsByID,
)
@@ -192,7 +192,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
"example-index",
account_identifier="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, index, path=["response"])
+ assert_matches_type(IndexDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, index, path=["response"])
+ assert_matches_type(IndexDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, index, path=["response"])
+ assert_matches_type(IndexDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, index, path=["response"])
+ assert_matches_type(IndexDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, index, path=["response"])
+ assert_matches_type(IndexDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, index, path=["response"])
+ assert_matches_type(IndexDeleteResponse, index, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/access/applications/test_cas.py b/tests/api_resources/zero_trust/access/applications/test_cas.py
index 68e66d5c981..02bfc89264b 100644
--- a/tests/api_resources/zero_trust/access/applications/test_cas.py
+++ b/tests/api_resources/zero_trust/access/applications/test_cas.py
@@ -10,8 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from cloudflare.types.zero_trust.access.applications import CA, CADeleteResponse
+from cloudflare.types.zero_trust.access.applications import CA, CAGetResponse, CACreateResponse, CADeleteResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -27,7 +26,7 @@ def test_method_create(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CACreateResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -37,7 +36,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CACreateResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -51,7 +50,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"
ca = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CACreateResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -65,7 +64,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ca = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CACreateResponse, ca, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -236,7 +235,7 @@ def test_method_get(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CAGetResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -246,7 +245,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CAGetResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -260,7 +259,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"
ca = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CAGetResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -274,7 +273,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ca = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CAGetResponse, ca, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -314,7 +313,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CACreateResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -324,7 +323,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CACreateResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -338,7 +337,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"
ca = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CACreateResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -352,7 +351,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ca = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CACreateResponse, ca, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -523,7 +522,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CAGetResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -533,7 +532,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -
account_id="string",
zone_id="string",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CAGetResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -547,7 +546,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"
ca = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CAGetResponse, ca, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -561,7 +560,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
ca = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, ca, path=["response"])
+ assert_matches_type(CAGetResponse, ca, 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 26c9cb0c844..febee75d18a 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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.zero_trust.devices.posture import (
Integration,
+ 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, integration, path=["response"])
+ assert_matches_type(IntegrationDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, integration, path=["response"])
+ assert_matches_type(IntegrationDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, integration, path=["response"])
+ assert_matches_type(IntegrationDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, integration, path=["response"])
+ assert_matches_type(IntegrationDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, integration, path=["response"])
+ assert_matches_type(IntegrationDeleteResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, integration, path=["response"])
+ assert_matches_type(IntegrationDeleteResponse, 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 ab512905d6f..450ed115f7a 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.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.zero_trust.devices import RevokeCreateResponse
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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, revoke, path=["response"])
+ assert_matches_type(RevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, revoke, path=["response"])
+ assert_matches_type(RevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, revoke, path=["response"])
+ assert_matches_type(RevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, revoke, path=["response"])
+ assert_matches_type(RevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, revoke, path=["response"])
+ assert_matches_type(RevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, revoke, path=["response"])
+ assert_matches_type(RevokeCreateResponse, 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 da363198ba2..1734c9f55fd 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.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.zero_trust.devices import UnrevokeCreateResponse
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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, unrevoke, path=["response"])
+ assert_matches_type(UnrevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, unrevoke, path=["response"])
+ assert_matches_type(UnrevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, unrevoke, path=["response"])
+ assert_matches_type(UnrevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, unrevoke, path=["response"])
+ assert_matches_type(UnrevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, unrevoke, path=["response"])
+ assert_matches_type(UnrevokeCreateResponse, 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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, unrevoke, path=["response"])
+ assert_matches_type(UnrevokeCreateResponse, unrevoke, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/gateway/test_lists.py b/tests/api_resources/zero_trust/gateway/test_lists.py
index 14035f4a55c..90639596e26 100644
--- a/tests/api_resources/zero_trust/gateway/test_lists.py
+++ b/tests/api_resources/zero_trust/gateway/test_lists.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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.zero_trust.gateway import (
ListGetResponse,
ListEditResponse,
ListListResponse,
ListCreateResponse,
+ ListDeleteResponse,
ListUpdateResponse,
)
@@ -205,7 +205,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, list, path=["response"])
+ assert_matches_type(ListDeleteResponse, list, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -219,7 +219,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"
list = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, list, path=["response"])
+ assert_matches_type(ListDeleteResponse, list, 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"
list = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, list, path=["response"])
+ assert_matches_type(ListDeleteResponse, list, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -553,7 +553,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, list, path=["response"])
+ assert_matches_type(ListDeleteResponse, list, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -567,7 +567,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"
list = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, list, path=["response"])
+ assert_matches_type(ListDeleteResponse, list, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -581,7 +581,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
list = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, list, path=["response"])
+ assert_matches_type(ListDeleteResponse, list, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/gateway/test_locations.py b/tests/api_resources/zero_trust/gateway/test_locations.py
index 9a3e0803e59..480c78dec2a 100644
--- a/tests/api_resources/zero_trust/gateway/test_locations.py
+++ b/tests/api_resources/zero_trust/gateway/test_locations.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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.zero_trust.gateway import (
Location,
+ LocationDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -199,7 +199,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, location, path=["response"])
+ assert_matches_type(LocationDeleteResponse, location, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -213,7 +213,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"
location = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, location, path=["response"])
+ assert_matches_type(LocationDeleteResponse, location, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -227,7 +227,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
location = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, location, path=["response"])
+ assert_matches_type(LocationDeleteResponse, location, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -482,7 +482,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, location, path=["response"])
+ assert_matches_type(LocationDeleteResponse, location, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -496,7 +496,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"
location = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, location, path=["response"])
+ assert_matches_type(LocationDeleteResponse, location, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -510,7 +510,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
location = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, location, path=["response"])
+ assert_matches_type(LocationDeleteResponse, location, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py b/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py
index 4c0d7ab0f7d..4c429f89513 100644
--- a/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.py
+++ b/tests/api_resources/zero_trust/gateway/test_proxy_endpoints.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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.zero_trust.gateway import (
ProxyEndpoint,
+ ProxyEndpointDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -121,7 +121,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, proxy_endpoint, path=["response"])
+ assert_matches_type(ProxyEndpointDeleteResponse, proxy_endpoint, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -135,7 +135,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"
proxy_endpoint = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, proxy_endpoint, path=["response"])
+ assert_matches_type(ProxyEndpointDeleteResponse, proxy_endpoint, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -149,7 +149,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
proxy_endpoint = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, proxy_endpoint, path=["response"])
+ assert_matches_type(ProxyEndpointDeleteResponse, proxy_endpoint, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -389,7 +389,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, proxy_endpoint, path=["response"])
+ assert_matches_type(ProxyEndpointDeleteResponse, proxy_endpoint, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -403,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"
proxy_endpoint = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, proxy_endpoint, path=["response"])
+ assert_matches_type(ProxyEndpointDeleteResponse, proxy_endpoint, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -417,7 +417,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
proxy_endpoint = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, proxy_endpoint, path=["response"])
+ assert_matches_type(ProxyEndpointDeleteResponse, proxy_endpoint, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zero_trust/gateway/test_rules.py b/tests/api_resources/zero_trust/gateway/test_rules.py
index c94520397d3..08779259405 100644
--- a/tests/api_resources/zero_trust/gateway/test_rules.py
+++ b/tests/api_resources/zero_trust/gateway/test_rules.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 UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
from cloudflare.types.zero_trust.gateway import (
GatewayRule,
+ RuleDeleteResponse,
)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -410,7 +410,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleDeleteResponse, rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -424,7 +424,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"
rule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleDeleteResponse, rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -438,7 +438,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rule = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleDeleteResponse, rule, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -904,7 +904,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
account_id="699d98642c564d2e855e9661899b7252",
body={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleDeleteResponse, rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -918,7 +918,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"
rule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleDeleteResponse, rule, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -932,7 +932,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
rule = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, rule, path=["response"])
+ assert_matches_type(RuleDeleteResponse, rule, 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 62ee181072e..1beef070418 100644
--- a/tests/api_resources/zero_trust/test_devices.py
+++ b/tests/api_resources/zero_trust/test_devices.py
@@ -10,8 +10,7 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
-from cloudflare.types.zero_trust import Device
+from cloudflare.types.zero_trust import Device, DeviceGetResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -68,7 +67,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, device, path=["response"])
+ assert_matches_type(DeviceGetResponse, device, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -81,7 +80,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, device, path=["response"])
+ assert_matches_type(DeviceGetResponse, device, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -94,7 +93,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, device, path=["response"])
+ assert_matches_type(DeviceGetResponse, device, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -166,7 +165,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="699d98642c564d2e855e9661899b7252",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, device, path=["response"])
+ assert_matches_type(DeviceGetResponse, device, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -179,7 +178,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, device, path=["response"])
+ assert_matches_type(DeviceGetResponse, device, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -192,7 +191,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(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, device, path=["response"])
+ assert_matches_type(DeviceGetResponse, device, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/zones/test_subscriptions.py b/tests/api_resources/zones/test_subscriptions.py
index babfccc8c28..7a2c16b5aee 100644
--- a/tests/api_resources/zones/test_subscriptions.py
+++ b/tests/api_resources/zones/test_subscriptions.py
@@ -11,7 +11,7 @@
from tests.utils import assert_matches_type
from cloudflare.pagination import SyncSinglePage, AsyncSinglePage
from cloudflare.types.user import Subscription
-from cloudflare.types.shared import UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a
+from cloudflare.types.zones import SubscriptionGetResponse, SubscriptionCreateResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -25,7 +25,7 @@ def test_method_create(self, client: Cloudflare) -> None:
subscription = client.zones.subscriptions.create(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -65,7 +65,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -77,7 +77,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"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -89,7 +89,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -149,7 +149,7 @@ def test_method_get(self, client: Cloudflare) -> None:
subscription = client.zones.subscriptions.get(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -161,7 +161,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"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -173,7 +173,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -195,7 +195,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
subscription = await async_client.zones.subscriptions.create(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -235,7 +235,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
},
zone={},
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -247,7 +247,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"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -259,7 +259,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionCreateResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -319,7 +319,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
subscription = await async_client.zones.subscriptions.get(
"506e3185e9c882d175a2d0cb0093d9f2",
)
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -331,7 +331,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"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -343,7 +343,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
subscription = await response.parse()
- assert_matches_type(UnnamedSchemaRef9444735ca60712dbcf8afd832eb5716a, subscription, path=["response"])
+ assert_matches_type(SubscriptionGetResponse, subscription, path=["response"])
assert cast(Any, response.is_closed) is True